Explorar el Código

fix(融资):融资修改

sufan hace 3 meses
padre
commit
63c5e16828
Se han modificado 1 ficheros con 39 adiciones y 5 borrados
  1. 39 5
      src/views/myFinancing/applyFinancing/index.vue

+ 39 - 5
src/views/myFinancing/applyFinancing/index.vue

@@ -103,6 +103,21 @@
         <el-input v-model="ruleForm.applicantContactEmail" :disabled="disabled" placeholder="请输入保理申请人联系人邮箱" />
       </el-form-item>
       <cy-info-title style="margin-top: 20px;">账户信息</cy-info-title>
+      <el-form-item label="是否为江苏苏商银行" prop="smb">
+        <el-radio-group v-model="ruleForm.smb" :disabled="disabled" @change="smbChange">
+          <el-radio :label="1">是</el-radio>
+          <el-radio :label="0">否</el-radio>
+        </el-radio-group>
+      </el-form-item>
+      <el-form-item
+        label="保理申请人银行名称"
+        prop="applicantDesignatedBankName"
+        :rules="[
+          { required: ruleForm.smb === 0, message: '请输入保理申请人银行名称', trigger: 'blur' }
+        ]"
+      >
+        <el-input v-model="ruleForm.applicantDesignatedBankName" :disabled="disabled" placeholder="请输入保理申请人银行名称" />
+      </el-form-item>
       <el-form-item label="保理申请人指定账户户名" prop="applicantDesignatedAccountName">
         <el-input v-model="ruleForm.applicantDesignatedAccountName" :disabled="disabled" placeholder="请输入保理申请人指定账户户名" />
       </el-form-item>
@@ -176,7 +191,9 @@ export default {
         applicantContactEmail: '',
         applicantDesignatedAccountName: '',
         applicantDesignatedAccount: '',
-        applicantDesignatedBank: ''
+        applicantDesignatedBank: '',
+        smb: '',
+        applicantDesignatedBankName: ''
       },
       rules: {
         businessNumber: [
@@ -201,6 +218,9 @@ export default {
         ],
         applicantDesignatedBank: [
           { required: true, message: '请输入保理申请人指定账户开户行', trigger: 'blur' }
+        ],
+        smb: [
+          { required: true, message: '请选择是否为江苏苏商银行', trigger: 'change' }
         ]
       },
       fileStorageList: [],
@@ -472,7 +492,10 @@ export default {
         applicantContactEmail,
         applicantDesignatedAccountName,
         applicantDesignatedAccount,
-        applicantDesignatedBank } = financingApplicantInfo
+        applicantDesignatedBank,
+        applicantDesignatedBankName,
+        smb
+      } = financingApplicantInfo
       this.ruleForm = {
         ...financingBasicInfo,
         applicantContact,
@@ -480,7 +503,9 @@ export default {
         applicantContactEmail,
         applicantDesignatedAccountName,
         applicantDesignatedAccount,
-        applicantDesignatedBank
+        applicantDesignatedBank,
+        applicantDesignatedBankName,
+        smb
       }
       this.fileStorageList = fileStorageDOList
       this.oldTableDataInfo = financingAccountsReceivableInfoList
@@ -626,7 +651,7 @@ export default {
       })
     },
     submit(type) {
-      const { applicantContact, applicantContactNumber, applicantContactEmail, applicantDesignatedAccountName, applicantDesignatedAccount, applicantDesignatedBank } = this.ruleForm
+      const { applicantContact, applicantContactNumber, applicantContactEmail, applicantDesignatedAccountName, applicantDesignatedAccount, applicantDesignatedBank, smb, applicantDesignatedBankName } = this.ruleForm
       const fileStorageList = this.$refs.fileStorage.getFileLists
       const params = {
         financingBasicInfo: {
@@ -640,7 +665,9 @@ export default {
           applicantContactEmail,
           applicantDesignatedAccountName,
           applicantDesignatedAccount,
-          applicantDesignatedBank
+          applicantDesignatedBank,
+          smb,
+          applicantDesignatedBankName
         },
         fileIds: fileStorageList.map(item => item.id),
         visible: type !== 'temp'
@@ -680,6 +707,13 @@ export default {
         acc[cur.acceptanceGoodsNumber].children.push({ ...cur, fid: getUuid(), tid: getUuid(), tOrder })
         return acc
       }, {}))
+    },
+    smbChange(val) {
+      if (val) {
+        this.ruleForm.applicantDesignatedBankName = '江苏苏商银行'
+      } else {
+        this.ruleForm.applicantDesignatedBankName = ''
+      }
     }
   }
 }