Przeglądaj źródła

fix:苏商银行授信问题优化

lazy 2 miesięcy temu
rodzic
commit
6ecde92768

+ 2 - 1
src/views/capitalFinancingManage/capitalAuth/capticalAuthEdit.vue

@@ -73,7 +73,8 @@ export default {
     $route: {
       async handler(val) {
         if (val.query && val.query.id) {
-          const res = await getDetails({ id: val.query.id })
+          console.log(val.query.id)
+          const res = await getDetails({ id: Number(val.query.id) })
 
           console.log('xxxxxxxxxxxxxxxxxx')
           console.log(res)

+ 1 - 1
src/views/capitalFinancingManage/capitalAuth/components/BaseInfo.vue

@@ -89,7 +89,7 @@ export default {
       supplierList: [], // 供应商列表
       capitalList: [], // 资方列表-默认是苏商银行
       ruleForm: {
-        customerType: 0,
+        customerType: 1,
         supplierInfoId: '',
         socialCreditCode: '',
         refinancingManagementName: '',

+ 3 - 1
src/views/capitalFinancingManage/capitalAuth/components/CompanyInfo.vue

@@ -192,7 +192,9 @@ export default {
             industryTypeFore
           }
 
-          if (businessLicense) {
+          if (Array.isArray(businessLicense)) {
+            this.ruleForm.businessLicense = businessLicense
+          } else {
             const temp = []
             temp.push(businessLicense)
             this.ruleForm.businessLicense = temp

+ 1 - 2
src/views/capitalFinancingManage/capitalAuth/components/ContractFile.vue

@@ -173,9 +173,8 @@ export default {
   watch: {
     detailsInfo: {
       handler(val) {
+        this.tableData = val || []
         if (val && val.length) {
-          this.tableData = val
-
           this.tableData.forEach((el) => {
             if (el.contractAmount === null) {
               el.contractAmount = ''