Parcourir la source

Merge branch 'dev1.2.0' of http://192.168.0.200:3000/suf/factoring-trade-c-front-end into dev1.2.0

lazy il y a 2 mois
Parent
commit
e399d3cfe3
1 fichiers modifiés avec 39 ajouts et 5 suppressions
  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 = ''
+      }
     }
   }
 }