|
@@ -1320,6 +1320,9 @@
|
|
if (!/^\d{1,32}$/.test(v.barCode)){
|
|
if (!/^\d{1,32}$/.test(v.barCode)){
|
|
return this.$message.warning('69码-商品条码为数字,最大32位');
|
|
return this.$message.warning('69码-商品条码为数字,最大32位');
|
|
}
|
|
}
|
|
|
|
+ if (!/^\d{1,32}$/.test(v.skuCode)){
|
|
|
|
+ return this.$message.warning('物料编码不能输入中文');
|
|
|
|
+ }
|
|
|
|
|
|
// if(v.weight&&v.weight!=0){
|
|
// if(v.weight&&v.weight!=0){
|
|
// v.weight = v.weight/1000
|
|
// v.weight = v.weight/1000
|
|
@@ -1766,7 +1769,7 @@
|
|
val2.name = this.tableRadio.fname;
|
|
val2.name = this.tableRadio.fname;
|
|
val2.shortName = this.tableRadio.fname;
|
|
val2.shortName = this.tableRadio.fname;
|
|
// 物料属性赋值
|
|
// 物料属性赋值
|
|
- console.log(this.materialSpec)
|
|
|
|
|
|
+ // console.log(this.materialSpec)
|
|
if(this.materialSpec==0){
|
|
if(this.materialSpec==0){
|
|
var val = (this.$refs.singeTable as any).getValue();
|
|
var val = (this.$refs.singeTable as any).getValue();
|
|
if(JSON.stringify(val[0]) === "{}" || val[0] === null){
|
|
if(JSON.stringify(val[0]) === "{}" || val[0] === null){
|
|
@@ -1798,7 +1801,7 @@
|
|
}
|
|
}
|
|
if(this.materialSpec==1){
|
|
if(this.materialSpec==1){
|
|
var val = (this.$refs.table as any).getValue();
|
|
var val = (this.$refs.table as any).getValue();
|
|
- console.log(val)
|
|
|
|
|
|
+ // console.log(val)
|
|
if(!val || JSON.stringify(val[0]) === "{}" || val[0] === null || val.length==0){
|
|
if(!val || JSON.stringify(val[0]) === "{}" || val[0] === null || val.length==0){
|
|
val = [{
|
|
val = [{
|
|
skuTitle: this.tableRadio.fname,
|
|
skuTitle: this.tableRadio.fname,
|