浏览代码

采集调整

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

+ 6 - 5
src/views/GATHER/index.vue

@@ -475,15 +475,16 @@
           <template v-for="listItem in form.feeLists">
             <el-form
               v-if="listItem.normId == item.normId"
-              :rules="validatorList(listItem.normfeeCode,listItem.normfeeName)"
+              :rules="validatorList(listItem.normfeeCode,listItem.normfeeName,listItem.sendValue)"
               :model="listItem"
               :ref="'form' + listItem.normfeeId"
               :key="listItem.normfeeId"
+              :disabled = "listItem.sendValue == 1"
             >
               <!-- :key="index + listIndex + listItem.normId" -->
               <!-- :rules="rules" ref="form" -->
               
-                <el-col :span="12">
+                <el-col :span="12" >
                   <el-form-item
                     :label="
                       listItem.normfeeName + '(' + listItem.funit_dictText + ')'
@@ -833,8 +834,9 @@ export default {
         callback();
       }
     },
-    validatorList(code,name) {
+    validatorList(code,name,sendValue) {
       if (typeof name != "string") return;
+      if (sendValue==1) return;
 
       if(code == 'A001' || code == 'A002' || code == 'A003' || code == 'A004' || code == 'A005' || code == 'A006' || code == 'A007' || code == 'A008' ||
         code == 'C002' || code == 'C003' || code == 'D001' ||
@@ -1297,6 +1299,7 @@ export default {
             }
           });
         });
+      
       });
       Promise.all(p)
         .then(() => {
@@ -1317,8 +1320,6 @@ export default {
           }
         })
         .catch((err) => {
-          console.log(err);
-          debugger;
           this.$message.error("请检查是否有必填项未输入!");
         });
     },