commit
This commit is contained in:
@@ -179,7 +179,7 @@ const optionSelect = {
|
|||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24" v-if="projectInfo.signMode === 2">
|
||||||
<el-form-item prop="sign" label="签字">
|
<el-form-item prop="sign" label="签字">
|
||||||
<pc-signature v-model="contactForm.userSign"></pc-signature>
|
<pc-signature v-model="contactForm.userSign"></pc-signature>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -387,7 +387,9 @@ const optionSelect = {
|
|||||||
this.selectedRadioId = null
|
this.selectedRadioId = null
|
||||||
this.contactForm = {
|
this.contactForm = {
|
||||||
mobile: "",
|
mobile: "",
|
||||||
receiveAddress: ""
|
receiveAddress: "",
|
||||||
|
userName: "",
|
||||||
|
userSign: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getProjectInfo()
|
this.getProjectInfo()
|
||||||
@@ -439,6 +441,7 @@ const optionSelect = {
|
|||||||
|
|
||||||
if (this.userSelection && this.userSelection.length > 0) {
|
if (this.userSelection && this.userSelection.length > 0) {
|
||||||
this.contactForm.mobile = this.userSelection[0]?.mobile
|
this.contactForm.mobile = this.userSelection[0]?.mobile
|
||||||
|
this.$set(this.contactForm, "userSign", this.userSelection[0]?.userSign || "")
|
||||||
} else {
|
} else {
|
||||||
if (this.isProxySelect) {
|
if (this.isProxySelect) {
|
||||||
// 否则使用默认手机号
|
// 否则使用默认手机号
|
||||||
@@ -494,6 +497,11 @@ const optionSelect = {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 仅“需要签字”时校验签字,避免默认“不签字”的项目仍展示或提交签字字段
|
||||||
|
if (this.projectInfo.signMode === 2 && !this.contactForm.userSign) {
|
||||||
|
this.$message.warning("请签字")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (this.isSubmitting) return
|
if (this.isSubmitting) return
|
||||||
this.isSubmitting = true
|
this.isSubmitting = true
|
||||||
@@ -509,7 +517,7 @@ const optionSelect = {
|
|||||||
selectNum: 1,
|
selectNum: 1,
|
||||||
mobile: this.contactForm.mobile,
|
mobile: this.contactForm.mobile,
|
||||||
userName: this.contactForm.userName,
|
userName: this.contactForm.userName,
|
||||||
userSign: this.contactForm.userSign,
|
userSign: this.projectInfo.signMode === 2 ? this.contactForm.userSign : "",
|
||||||
receiveAddress: this.contactForm.receiveAddress
|
receiveAddress: this.contactForm.receiveAddress
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -522,7 +530,7 @@ const optionSelect = {
|
|||||||
selectNum: option.selectNum,
|
selectNum: option.selectNum,
|
||||||
mobile: this.contactForm.mobile,
|
mobile: this.contactForm.mobile,
|
||||||
userName: this.contactForm.userName,
|
userName: this.contactForm.userName,
|
||||||
userSign: this.contactForm.userSign,
|
userSign: this.projectInfo.signMode === 2 ? this.contactForm.userSign : "",
|
||||||
receiveAddress: this.contactForm.receiveAddress
|
receiveAddress: this.contactForm.receiveAddress
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user