Ver código fonte

fix(合同制作):合同制作问题修复

sufan 5 meses atrás
pai
commit
cc78fea79f

+ 10 - 3
src/views/financingManage/components/ContractConclusion.vue

@@ -242,10 +242,17 @@ export default {
           }
         })
       }
-      const params = {
-        ...this.ruleForm,
-        uploadContractInfoList
+      let params = {
+        conclusion
       }
+      if (conclusion === 'pass') {
+        params = {
+          ...params,
+          ...this.ruleForm,
+          uploadContractInfoList
+        }
+      }
+
       return params
     },
     getParams(type) {

+ 6 - 6
src/views/financingManage/components/ContractPreparationContent.vue

@@ -53,7 +53,7 @@
         <el-input v-model="ruleForm.financingConfirmAgreement" :disabled="disabled" placeholder="请输入融资确认书特殊约定" clearable />
       </el-form-item>
       <div style="width: 100%">
-        <tripartite-agreement ref="tripartiteAgreement" :disabled="disabled" v-if="tripartiteData.reviewBasicContractList.length" :details-info="tripartiteData" type="contract"></tripartite-agreement>
+        <tripartite-agreement v-if="tripartiteData.reviewBasicContractList.length" ref="tripartiteAgreement" :disabled="disabled" :details-info="tripartiteData" type="contract"></tripartite-agreement>
       </div>
     </el-form>
     <contract-conclusion ref="contractConclusion" :disabled="disabled" :details-info="detailsInfo"></contract-conclusion>
@@ -193,7 +193,7 @@ export default {
       ]
     }
   },
-  watch: {  
+  watch: {
     detailsInfo: {
       handler(newV) {
         if (newV === undefined) return
@@ -222,7 +222,7 @@ export default {
         this.conditionSettingList.push({
           fixedCondition: false,
           loanCondition: '',
-          checked: true,
+          checked: true
         })
       } else if (type === 'delete') {
         this.conditionSettingList.splice(index, 1)
@@ -242,12 +242,12 @@ export default {
         contractNum, specialAgreement, factoringContractAgreement, financingConfirmAgreement
       }
       var contractBasicContractList
-      if(this.tripartiteData.reviewBasicContractList.length) {
+      if (this.tripartiteData.reviewBasicContractList.length) {
         contractBasicContractList = this.$refs.tripartiteAgreement.tableData
-      }else {
+      } else {
         contractBasicContractList = []
       }
-     
+
       const contractConclusion = await this.$refs.contractConclusion.getParams(type)
       const params = {
         contractFinancingInfo,