From 318be441a40bacde3fa527d1405fef4060113112 Mon Sep 17 00:00:00 2001 From: admin-lmm <2497833386@QQ.com> Date: Wed, 12 Jul 2023 16:05:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pile/merchant/components/adapayMember.vue | 50 +++++++++++++------ 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/jsowell-ui/src/views/pile/merchant/components/adapayMember.vue b/jsowell-ui/src/views/pile/merchant/components/adapayMember.vue index c15c7bfcb..5a1965c24 100644 --- a/jsowell-ui/src/views/pile/merchant/components/adapayMember.vue +++ b/jsowell-ui/src/views/pile/merchant/components/adapayMember.vue @@ -54,10 +54,11 @@ - 长期 @@ -74,10 +75,11 @@ 长期 @@ -343,10 +345,11 @@ 长期 @@ -363,10 +366,11 @@ 长期 @@ -455,6 +459,12 @@ export default { props: ["merchantId"], data() { return { + dataDisabled:false, + addLegDisabled:false, + updatelegalCertId:null, + updateSocialCreditCode:null, + addLegalCertIdDate:null, + dataValue:null, adapayLegalCertIdChecked:false, adapaySocialCredChecked:false, pickerChecked:false,// 统一社会编码有效期 长期 @@ -704,32 +714,36 @@ export default { methods: { adapayLegalCertIdChange(e){ if(e===true){ - return this.adapayCorpMember.legalCertIdExpires = '20991231' - } else { - return this.adapayCorpMember.legalCertIdExpires = '' + this.addLegDisabled = true + this.updatelegalCertId = '20991231' + } else{ + this.addLegDisabled = false } }, adapaySocialCredChange(e){ if(e===true){ - return this.adapayCorpMember.socialCreditCodeExpires = '20991231' - } else { - return this.adapayCorpMember.socialCreditCodeExpires = '' + this.dataDisabled = true + this.updateSocialCreditCode = '20991231' + } else{ + this.dataDisabled = false } }, // 法人身份证有效期 当用户点击长期时出现的事件 legalCertIdaChange(e){ if(e===true){ - return this.dialogForm.legalCertIdExpires = '20991231' + this.addLegalCertIdDate = '20991231' + this.addLegDisabled = true } else { - return this.dialogForm.legalCertIdExpires = '' + this.addLegDisabled = false } }, // 统一社会编码有效期 点击长期时出现的事件 dataChange(e){ if(e===true){ - return this.dialogForm.socialCreditCodeExpires = '20991231' + this.dataValue = '20991231' + this.dataDisabled = true } else { - return this.dialogForm.socialCreditCodeExpires = '' + this.dataDisabled = false } }, businessExceed(files) { @@ -821,6 +835,8 @@ export default { this.uploadDisable = false }, updateDialogForm(form){ + this.adapayCorpMember.legalCertIdExpires = this.updatelegalCertId + this.adapayCorpMember.socialCreditCodeExpires = this.updateSocialCreditCode console.log(this.adapayCorpMember,'this.adapayCorpMember') this.adapayCorpMember.merchantId = this.merchantId this.$refs[form].validate((valid) =>{ @@ -877,9 +893,11 @@ export default { }, // 新建提交按钮 submitDialogForm(dialogForm){ + this.dialogForm.socialCreditCodeExpires = this.dataValue + this.dialogForm.legalCertIdExpires = this.addLegalCertIdDate this.$refs[dialogForm].validate((valid) =>{ + console.log(this.dialogForm,'this.dialogForm') if (valid) { - console.log(this.dialogForm,'this.dialogForm') console.log(valid,dialogForm) if (this.dialogForm.bankAcctType === '1') { if (!this.dialogForm.socialCreditCodeExpires) return this.$message.warning('请输入统一社会信用证有效期') @@ -890,7 +908,7 @@ export default { this.dialogForm.imgList = [this.idCardList[0].url,this.sideCardList[0].url,this.depositBankList[0].url,this.businessList[0].url] } } - // console.log('执行请求,创建成功') + console.log('执行请求,创建成功') createSettleAccount(this.dialogForm).then((response) =>{ console.log('新增',response); this.$message.success('新增成功,请勿重新提交')