peixh %!s(int64=3) %!d(string=hai) anos
pai
achega
61fa1fe0ae

+ 7 - 4
front-vue/src/views/service/financeRecord/detailFinanceRecord.vue

@@ -133,7 +133,7 @@
             </el-row>
             <el-row class="zap-form" style="padding-bottom: 0;">
                 <el-col :span="12">
-                    <el-form-item label="净融资额:" prop="amount" size="large"  label-width="101px" v-if="this.status == '01'">
+                    <el-form-item label="净融资额:" prop="amountIng" size="large"  label-width="101px" v-if="this.status == '01'">
                         <el-input v-model="form.amountIng" clearable placeholder="请输入净融资额" maxlength="25" readonly />
                     </el-form-item>
                 </el-col>
@@ -457,6 +457,7 @@ export default {
       },
       // 表单参数
       form: {},
+      formIng:{},
       // 表单校验
       rules: {
         zfrFinanceId: [
@@ -520,6 +521,7 @@ export default {
           });
         })
         .then(() => {
+          this.formIng = response.data;
           //this.form = response.data;
           // this.$set(
           //   this.form,
@@ -615,7 +617,7 @@ export default {
       this.$set(this.form, "zfpcrChargeRate", item.zfpcrChargeRate);
       this.$set(this.form, "cost", item.cost);
       this.$set(this.form, "term", item.term);
-      this.$set(this.form, "amountIng", item.amountIng);
+      this.$set(this.form, "amount", item.amount);
       this.$set(this.form, "costIng", item.costIng);
       this.$set(this.form, "termIng", item.termIng);
       this.$set(this.form, "amountIng", item.amountIng);
@@ -755,10 +757,11 @@ export default {
     },
     //获取盖章文件
     getRecordSealFile() {
-      getRecordSealFile(this.form).then(response => {
+      var self = this
+      getRecordSealFile(self.formIng).then(response => {
         debugger;
         if (response.data.list) {
-          this.recordSealList = response.data.list;
+          self.recordSealList = response.data.list;
         }
       });
     },

+ 15 - 3
front-vue/src/views/service/financeRecord/financeRecord.vue

@@ -1381,12 +1381,17 @@ export default {
       tableIdThree: "/sc-service/financeRecord/list/three",
       // 表单校验
       rules: {
-        zfrloanAmount: [
+        zfrLoanAmount: [
           {
             required: true,
             message: "放款金额不能为空",
-            trigger: "blur"
-          }
+            trigger: ["blur", "change"],
+          },
+          {
+            pattern: /^(?:0|[1-9]\d{0,8})(?:\.\d{1,2})?$/,
+            message: "请输入正确的金额",
+            trigger: ["blur", "change"],
+          },
         ]
       },
       rulesRefuse:{
@@ -1917,6 +1922,13 @@ export default {
           }
         })
         .catch(response => {
+          let uid = fileObj.uid; // 关键作用代码,去除文件列表失败文件
+                        let idx = this.$refs.upload.uploadFiles.findIndex(
+                            (item) => item.uid === uid
+                        ); // 关键作用代码,去除文件列表失败文件(uploadFiles为el-upload中的ref值)
+          this.$refs.upload.uploadFiles.splice(idx, 1); // 关键作用代码,去除文件列表失败文件
+          // this.showBtnImg = true;
+          this.noneBtnImg = false;
           loading.close();
         });
     },