Prechádzať zdrojové kódy

材料请购单-物料选择完成之后获取并赋值颜色定尺等物料属性;

jingbb 8 mesiacov pred
rodič
commit
41746bf6df

+ 6 - 0
src/views/production/materialprocurement/modules/materialProcurementAdd.vue

@@ -795,6 +795,12 @@
               this.$set(recoerd,'rate',data.rate)
               this.$set(recoerd,'quantity','')
               this.$set(recoerd,'unQuantity','')
+              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])
+              }
               this.$refs.formRef.clearValidate(['inventoryName']);
             },
             okDataDeparment(data){