Browse Source

装箱单面辅料动态列

jbb 2 years ago
parent
commit
0e00b2c6e3

+ 3 - 0
src/views/packing-list/fabric-list.vue

@@ -321,6 +321,9 @@ export default {
                 plumbumNo:data.plumbumNo,
 
              }
+             if(record.documentNo.substr(0, 2) == "FL"){  
+                this.$refs.detailsFabricDrawer.judageCloumn()
+             }
              data.syPackingListFabricItem.map(item =>{
                if(item.manualYarnFlag == 0){
                  item.manualYarnFlag = '否'

+ 9 - 1
src/views/packing-list/packinglist-fabrics/addFabricDrawer.vue

@@ -697,7 +697,14 @@ export default {
           item.title = '箱数'
         }
       })
-    },
+      var obj = {
+          title: '尺码',
+          dataIndex: 'size',
+          width: 120,
+          className: 'replacecolor'
+      }
+      this.addFabricColumns.splice(30,0,obj)
+   },
 
     // -------------------------------------
     // 操作 删除
@@ -835,6 +842,7 @@ export default {
       this.defaultMethod = 'add'
       this.addFabric = {}
       this.addFabricData = []
+      this.addFabricColumns = this.addFabricColumns.filter(item => item.title !== '尺码')
       this.addFabricColumns.map(item => {
         if(item.title ==  "箱数"){
           item.title = '匹数/Rolls'

+ 44 - 20
src/views/packing-list/packinglist-fabrics/detailsFabricDrawer.vue

@@ -229,12 +229,12 @@ export default {
           width: 130,
           className: 'replacecolor'
         },
-        {
-          title: '价格',
-          dataIndex: 'price',
-          width: 120,
-          className: 'replacecolor'
-        },
+        // {
+        //   title: '价格',
+        //   dataIndex: 'price',
+        //   width: 120,
+        //   className: 'replacecolor'
+        // },
         {
           title: '克重/G',
           dataIndex: 'gramWeight',
@@ -244,17 +244,20 @@ export default {
         {
           title: '供应商编码(染厂)',
           dataIndex: 'supplierCodeDyeingPlant',
+          // scopedSlots: { customRender: 'supplierCodeDyeingPlant' },
           width: 120,
           className: 'replacecolor'
         },
         {
           title: '供应商(染厂)',
           dataIndex: 'supplierDyeingPlant',
+          // scopedSlots: { customRender: 'supplierDyeingPlant' },
           width: 120,
           className: 'replacecolor'
         },
         {
           title: '供应商编码(印厂)',
+          // scopedSlots: { customRender: 'supplierCodePrintingPlant' },
           dataIndex: 'supplierCodePrintingPlant',
           width: 120,
           className: 'replacecolor'
@@ -302,19 +305,20 @@ export default {
           className: 'replacecolor'
         },
 
-        {
-          title: '备注',
-          dataIndex: 'memo',
-          width: 160,
-          customRender: t => ellipsis(t),
-          className: 'replacecolor'
-        },
-        {
-          title: '入库数量',
-          dataIndex: 'inventoryQuantity',
-          width: 120,
-          className: 'replacecolor'
-        },
+        // {
+        //   title: '备注',
+        //   dataIndex: 'memo',
+        //   width: 160,
+        //   customRender: t => ellipsis(t),
+        //   className: 'replacecolor'
+        // },
+        // {
+        //   title: '入库数量',
+        //   dataIndex: 'inventoryQuantity',
+        //   scopedSlots: { customRender: 'inventoryQuantity' },
+        //   width: 120,
+        //   className: 'replacecolor'
+        // },
         {
           title: '规格型号',
           dataIndex: 'specificationAndModel',
@@ -344,7 +348,7 @@ export default {
           dataIndex: 'remarks2',
           width: 160,
           fixed: 'right',
-          customRender: t => ellipsis(t),
+           customRender: t => ellipsis(t),
           className: 'replacecolor'
         },
       ],
@@ -365,6 +369,20 @@ export default {
       console.log('点击抽屉取消')
       this.close()
     },
+     judageCloumn(){
+      this.addFabricColumns.map(item => {
+        if(item.title ==  "匹数/Rolls"){
+          item.title = '箱数'
+        }
+      })
+      var obj = {
+          title: '尺码',
+          dataIndex: 'size',
+          width: 120,
+          className: 'replacecolor'
+      }
+      this.addFabricColumns.splice(30,0,obj)
+   },
  
 
     // -------------------------------------
@@ -373,6 +391,12 @@ export default {
       this.visible = false
       this.addFabric = {}
       this.addFabricData = []
+      this.addFabricColumns = this.addFabricColumns.filter(item => item.title !== '尺码')
+      this.addFabricColumns.map(item => {
+        if(item.title ==  "箱数"){
+          item.title = '匹数/Rolls'
+        }
+      })
     },
 
      // 分页、排序、筛选变化时触发