浏览代码

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

jingbb 8 月之前
父节点
当前提交
41746bf6df
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/views/production/materialprocurement/modules/materialProcurementAdd.vue

+ 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){