浏览代码

录入undefined问题

1 年之前
父节点
当前提交
d6e4a0d13e
共有 1 个文件被更改,包括 9 次插入7 次删除
  1. 9 7
      src/views/GATHER/index.vue

+ 9 - 7
src/views/GATHER/index.vue

@@ -483,7 +483,7 @@
       center
       :title="title"
       :visible.sync="open"
-      width="90%"
+      width="95%"
       append-to-body
       :close-on-click-modal="false"
     >
@@ -522,8 +522,9 @@
                 :ref="'form' + listItem.normfeeId"
                 :key="listItem.normfeeId"
                 :disabled="listItem.sendValue == 1"
+                label-width="350px"
               >
-                <el-col :span="6">
+                <el-col :span="8">
                   <el-form-item
 
                   style="padding:10px;"
@@ -633,7 +634,7 @@
       @close="handleClose"
       :title="title"
       :visible.sync="openDetail"
-      width="90%"
+      width="95%"
       append-to-body
       :close-on-click-modal="false"
     >
@@ -651,7 +652,6 @@
         
           <template v-for="listItem in form.feeLists">
               <el-form
-              
                 v-if="listItem.normId == item.normId"
                 :rules="
                   validatorList(
@@ -664,8 +664,10 @@
                 :ref="'form' + listItem.normfeeId"
                 :key="listItem.normfeeId"
                 :disabled="listItem.sendValue == 1"
-              >
-                <el-col :span="6">
+                label-width="340px"
+                >
+                <!-- label-width="350px" -->
+                <el-col :span="8">
                   <el-form-item
 
                   style="padding:10px;"
@@ -1230,7 +1232,7 @@ export default {
         //深拷贝,而不是拷贝地址
         this.form = JSON.parse(JSON.stringify(response.data));
         this.form.feeLists.forEach((item) => {
-          if(item.funit == "%"){
+          if(item.funit == "%" && item.collCalue){
             item.collCalue = item.collCalue.toFixed(2);
           }
         })