Procházet zdrojové kódy

成品明细、材料明细、余料明细子表物料选择完成之后带出颜色定尺等物料属性;

jingbb před 8 měsíci
rodič
revize
95c1170706

+ 6 - 0
src/views/production/productionTotalOrder/modules/SurplusMaterials.vue

@@ -597,6 +597,12 @@
             this.$set(recoerd,'quantity','' )
             this.$set(recoerd,'unQuantity','')
             this.$set(recoerd,'rate',data.rate)
+            var attributeArr = data.Code1.split("-")
+              if(attributeArr.length==4){
+                this.$set(recoerd,'color',attributeArr[1])
+                this.$set(recoerd,'fixedLength',attributeArr[2])
+                this.$set(recoerd,'widthHeight',attributeArr[3])
+              }
         },
         //杂发/杂收
         sendOrReceive(data){

+ 6 - 0
src/views/production/productionTotalOrder/modules/material.vue

@@ -656,6 +656,12 @@
             this.$set(recoerd,'quantity','' )
             this.$set(recoerd,'unQuantity','')
             this.$set(recoerd,'rate',data.rate)
+            var attributeArr = data.Code1.split("-")
+            if(attributeArr.length==4){
+                this.$set(recoerd,'color',attributeArr[1])
+                this.$set(recoerd,'fixedLength',attributeArr[2])
+                this.$set(recoerd,'widthHeight',attributeArr[3])
+            }
         },
     },
   

+ 6 - 0
src/views/production/productionTotalOrder/modules/productDetails.vue

@@ -687,6 +687,12 @@
             this.$set(recoerd,'quantity','' )
             this.$set(recoerd,'unQuantity','')
             this.$set(recoerd,'rate',data.rate)
+            var attributeArr = data.Code1.split("-")
+              if(attributeArr.length==4){
+                this.$set(recoerd,'color',attributeArr[1])
+                this.$set(recoerd,'fixedLength',attributeArr[2])
+                this.$set(recoerd,'widthHeight',attributeArr[3])
+              }
         },
         delectRow(){
             if( this.selectedRowKeys.length==0){