Browse Source

装箱单面料新增那个页面动态展示字段名

jbb 2 years ago
parent
commit
60b66e649e

+ 5 - 2
src/views/packing-list/fabric-list.vue

@@ -359,16 +359,19 @@ export default {
                remarks:data.remarks,
                 plumbumNo:data.plumbumNo,
              }
+             if(record.documentNo.substr(0, 2) == "FL"){  
+                this.$refs.addFabricDrawer.judageCloumn()
+             }
              data.syPackingListFabricItem.map(item =>{
                 if(item.manualYarnFlag == 0){
                   this.$refs.addFabricDrawer.manualYarnDisabled = true
                   this.$forceUpdate()
                }else {
                  this.$refs.addFabricDrawer.manualYarnDisabled = false
-                }
-                
+                }            
                })
               this.$refs.addFabricDrawer.addFabricData = data.syPackingListFabricItem
+              
                
           }else{
               this.$message.error(res.message);

+ 13 - 0
src/views/packing-list/packinglist-fabrics/addFabricDrawer.vue

@@ -691,6 +691,14 @@ export default {
       this.addFabricData.push(addrow)
     },
 
+    judageCloumn(){
+      this.addFabricColumns.map(item => {
+        if(item.title ==  "匹数/Rolls"){
+          item.title = '箱数'
+        }
+      })
+    },
+
     // -------------------------------------
     // 操作 删除
     handleDelete(record,index) {
@@ -827,6 +835,11 @@ export default {
       this.defaultMethod = 'add'
       this.addFabric = {}
       this.addFabricData = []
+      this.addFabricColumns.map(item => {
+        if(item.title ==  "箱数"){
+          item.title = '匹数/Rolls'
+        }
+      })
       this.$refs.form.resetFields()
     },
     // - father------------------------------------