|
@@ -277,6 +277,9 @@
|
|
|
],
|
|
|
skuCode: [
|
|
|
{ required: true, message: '请输入物料编码'}
|
|
|
+ ],
|
|
|
+ barCode: [
|
|
|
+ { required: true, message: '请输入商品条码'}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -317,6 +320,18 @@
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ // width: '150px',
|
|
|
+ title: '商品条码(必填项)',
|
|
|
+ field: 'barCode',
|
|
|
+ component: 'by-input',
|
|
|
+ compConfig: {
|
|
|
+ attr: {
|
|
|
+ size: 'mini',
|
|
|
+ placeholder: ' '
|
|
|
+ },
|
|
|
+ }
|
|
|
+ },
|
|
|
// {
|
|
|
// width: '55px',
|
|
|
// component: selectKin
|
|
@@ -480,6 +495,9 @@
|
|
|
],
|
|
|
skuCode: [
|
|
|
{ required: true, message: '请输入物料编码'}
|
|
|
+ ],
|
|
|
+ barCode: [
|
|
|
+ { required: true, message: '请输入商品条码'}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -520,6 +538,18 @@
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ width: '150px',
|
|
|
+ title: '商品条码(必填项)',
|
|
|
+ field: 'barCode',
|
|
|
+ component: 'by-input',
|
|
|
+ compConfig: {
|
|
|
+ attr: {
|
|
|
+ size: 'mini',
|
|
|
+ placeholder: ' '
|
|
|
+ },
|
|
|
+ }
|
|
|
+ },
|
|
|
// {
|
|
|
// width: '55px',
|
|
|
// component: selectKin
|
|
@@ -1229,6 +1259,7 @@
|
|
|
(this.$refs.table as any).validate();
|
|
|
if (!v.skuTitle) return this.$message.warning('物料标题必填');
|
|
|
if (!v.skuCode) return this.$message.warning('物料编码必填');
|
|
|
+ if (!v.barCode) return this.$message.warning('物料属性的商品条码需必填');
|
|
|
// if(v.weight&&v.weight!=0){
|
|
|
// v.weight = v.weight/1000
|
|
|
// }
|
|
@@ -1277,6 +1308,7 @@
|
|
|
(this.$refs.singeTable as any).validate();
|
|
|
if (!v.skuTitle) return this.$message.warning('物料属性的标题需必填');
|
|
|
if (!v.skuCode) return this.$message.warning('物料属性的物料编码需必填');
|
|
|
+ if (!v.barCode) return this.$message.warning('物料属性的商品条码需必填');
|
|
|
|
|
|
// if(v.weight&&v.weight!=0){
|
|
|
// v.weight = v.weight/1000
|