|
|
|
@ -357,30 +357,38 @@ export default class SaleOutWH extends BasePage {
|
|
|
|
|
item.batchNumber = this.bimWl.value;
|
|
|
|
|
await this.model.ScanCodeWholePallet(item);
|
|
|
|
|
if (this.model.scanCode == '200') {
|
|
|
|
|
let chongfuscan = this.list.some((item) => item.storageId === model.scandatalist[0].storageId);
|
|
|
|
|
if (chongfuscan) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请勿重复扫描标志卡',
|
|
|
|
|
// url: '/pages/user/index'
|
|
|
|
|
});
|
|
|
|
|
this.boxnumber = '';
|
|
|
|
|
return;
|
|
|
|
|
if (model.scandatalist.length != 0) {
|
|
|
|
|
let chongfuscan = this.list.some((item) => item.storageId === model.scandatalist[0].storageId);
|
|
|
|
|
if (chongfuscan) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请勿重复扫描标志卡',
|
|
|
|
|
// url: '/pages/user/index'
|
|
|
|
|
});
|
|
|
|
|
this.boxnumber = '';
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '成功',
|
|
|
|
|
type: 'success',
|
|
|
|
|
});
|
|
|
|
|
model.scandatalist.map((item) => {
|
|
|
|
|
item.productCode = item.productCode.slice(item.productCode.search(/[1-9]/));
|
|
|
|
|
if (item.productCode == this.orderNoItemList.productCode) {
|
|
|
|
|
this.list.push(item);
|
|
|
|
|
this.orderNoItemList.outQuantity += item.amount;
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '扫描的物料必须与选择的物料相同',
|
|
|
|
|
type: 'error',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '成功',
|
|
|
|
|
type: 'success',
|
|
|
|
|
});
|
|
|
|
|
model.scandatalist.map((item) => {
|
|
|
|
|
item.productCode = item.productCode.slice(item.productCode.search(/[1-9]/));
|
|
|
|
|
if (item.productCode == this.orderNoItemList.productCode) {
|
|
|
|
|
this.list.push(item);
|
|
|
|
|
this.orderNoItemList.outQuantity += item.amount;
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '扫描的物料必须与选择的物料相同',
|
|
|
|
|
type: 'error',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
title: model.Submitmsg,
|
|
|
|
|
duration: 3000,
|
|
|
|
|
type: 'error',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|