销售出库重复扫描标志卡校验

master
guoshuang 8 months ago
parent 2cc8c7b770
commit 0aab719baf

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version); // console.log('Version////', this.Version);
} }
///****************** ///******************
version = '0.0.119'; // version = '0.0.120'; //
//version = '0.0.14'; // //version = '0.0.14'; //
//*************** false true **************** //*************** false true ****************
//isTest = true; //isTest = true;

@ -356,22 +356,32 @@ export default class SaleOutWH extends BasePage {
item.siteCode = session.FactoryCode; item.siteCode = session.FactoryCode;
await this.model.ScanCodeWholePallet(item); await this.model.ScanCodeWholePallet(item);
if (this.model.scanCode == '200') { if (this.model.scanCode == '200') {
(this.$refs.uToast as any).show({ let chongfuscan = this.list.some((item) => item.storageId === model.scandatalist[0].storageId);
title: '成功', if (chongfuscan) {
type: 'success', (this.$refs.uToast as any).show({
}); title: '请勿重复扫描标志卡',
model.scandatalist.map((item) => { // url: '/pages/user/index'
item.productCode = item.productCode.slice(item.productCode.search(/[1-9]/)); });
if (item.productCode == this.orderNoItemList.productCode) { return;
this.list.push(item); } else {
this.orderNoItemList.outQuantity += item.amount; (this.$refs.uToast as any).show({
} else { title: '成功',
(this.$refs.uToast as any).show({ type: 'success',
title: '扫描的物料必须与选择的物料相同', });
type: 'error', 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',
});
}
});
}
// this.list.push() // this.list.push()
this.boxnumber = ''; this.boxnumber = '';

Loading…
Cancel
Save