浏览代码

fix:视频尽调

jiand 7 月之前
父节点
当前提交
49cae59caf

+ 26 - 18
src/views/creditManage/supplierManage/supplementaryInfo/components/BusinessSituation.vue

@@ -112,24 +112,24 @@ export default {
       listData: [],
       key: 0,
       upstreamTableData: [
-        {
-          name: '',
-          fileStorages: []
-        },
-        {
-          name: '',
-          fileStorages: []
-        }
+        // {
+        //   name: '',
+        //   fileStorages: []
+        // },
+        // {
+        //   name: '',
+        //   fileStorages: []
+        // }
       ],
       downstreamTableData: [
-        {
-          name: '',
-          fileStorages: []
-        },
-        {
-          name: '',
-          fileStorages: []
-        }
+        // {
+        //   name: '',
+        //   fileStorages: []
+        // },
+        // {
+        //   name: '',
+        //   fileStorages: []
+        // }
       ]
     }
   },
@@ -138,8 +138,16 @@ export default {
       handler(newV) {
         if (newV && Object.keys(newV).length) {
           const { upstreamProcurementDocuments, salesDocumentsInfos } = newV
-          this.upstreamTableData = upstreamProcurementDocuments.length ? upstreamProcurementDocuments : this.upstreamTableData
-          this.downstreamTableData = salesDocumentsInfos.length ? salesDocumentsInfos : this.downstreamTableData
+          this.upstreamTableData = upstreamProcurementDocuments.length ? upstreamProcurementDocuments.map(item => {
+            if(item.name) {
+              return item
+            }
+          }) : this.upstreamTableData
+          this.downstreamTableData = salesDocumentsInfos.length ? salesDocumentsInfos.map(item => {
+            if(item.name) {
+              return item
+            }
+          }) : this.downstreamTableData
         }
       },
       immediate: true,

+ 7 - 6
src/views/creditManage/supplierManage/videoDue/components/Assess.vue

@@ -13,14 +13,15 @@
       <el-form-item label="得分" prop="name">
         <el-input v-model="detailsInfo.score" disabled placeholder="请输入得分" />
       </el-form-item>
-      <el-form-item label="修改得分" prop="fixScore">
-        <el-input v-model="detailsInfo.fixScore" :disabled="disabled" placeholder="请输入修改得分" />
-      </el-form-item>
+  
       <el-form-item label="授信额度" prop="name">
         <el-input v-model="detailsInfo.creditLimit" disabled placeholder="请输入授信额度">
           <template slot="append">万元</template>
         </el-input>
       </el-form-item>
+      <el-form-item label="修改得分" prop="fixScore">
+        <el-input v-model="ruleForm.fixScore" :disabled="disabled" placeholder="请输入修改得分" />
+      </el-form-item>
     </el-form>
   </div>
 </template>
@@ -53,9 +54,9 @@ export default {
         evaluationOpinions: [
           { required: true, message: '请选择审批结论', trigger: 'change' }
         ],
-        fixScore: [
-          { required: true, message: '请输入修改得分', trigger: 'blur' }
-        ]
+        // fixScore: [
+        //   { required: true, message: '请输入修改得分', trigger: 'blur' }
+        // ]
       }
     }
   },

+ 12 - 4
src/views/creditManage/supplierManage/videoDue/components/OperateFinance/FinancialSituation.vue

@@ -70,7 +70,7 @@
         </el-input>
       </el-form-item>
       <el-form-item label="主营业务收入" prop="mainBusinessIncomeFix" class="one-form-item">
-        <el-input v-model="ruleForm.mainBusinessIncomeFix" placeholder="请输入主营业务收入" :disabled="disabled">
+        <el-input v-model="ruleForm.mainBusinessIncomeFix" @blur="calcMainBusinessProfit" placeholder="请输入主营业务收入" :disabled="disabled">
           <template slot="append">元</template>
         </el-input>
       </el-form-item>
@@ -80,7 +80,7 @@
         </el-input>
       </el-form-item>
       <el-form-item label="主营业务成本" prop="mainBusinessCostFix" class="one-form-item">
-        <el-input v-model="ruleForm.mainBusinessCostFix" placeholder="请输入主营业务成本" :disabled="disabled">
+        <el-input v-model="ruleForm.mainBusinessCostFix" @blur="calcMainBusinessProfit" placeholder="请输入主营业务成本" :disabled="disabled">
           <template slot="append">元</template>
         </el-input>
       </el-form-item>
@@ -90,8 +90,8 @@
         </el-input>
       </el-form-item>
       <el-form-item label="上年度毛利率" prop="mainBusinessProfitFix" class="one-form-item">
-        <el-input v-model="ruleForm.mainBusinessProfitFix" placeholder="请输入上年度毛利率" :disabled="disabled">
-          <template slot="append"></template>
+        <el-input v-model="ruleForm.mainBusinessProfitFix" placeholder="请输入上年度毛利率" disabled>
+          <template slot="append">%</template>
         </el-input>
       </el-form-item>
       <el-form-item
@@ -219,6 +219,14 @@ export default {
     })
   },
   methods: {
+    calcMainBusinessProfit() {
+      const { mainBusinessIncomeFix, mainBusinessCostFix } = this.ruleForm
+      if (mainBusinessIncomeFix && mainBusinessCostFix) {
+        this.ruleForm.mainBusinessProfitFix = ((Number(mainBusinessIncomeFix) - Number(mainBusinessCostFix)) / Number(mainBusinessIncomeFix) * 100).toFixed(2)
+      } else {
+        this.ruleForm.mainBusinessProfitFix = ''
+      }
+    },
     async getParams() {
       const _this = this
       return new Promise((resolve, reject) => {