|
|
|
@ -40,7 +40,7 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 物料已扫 -->
|
|
|
|
|
<u-form-item :label="$t('message.product_Swept')" prop="productDescZh">
|
|
|
|
|
<u-input v-model="productItem.spQty" placeholder=" " :disabled="true" type="number" />
|
|
|
|
|
<u-input v-model="spQtyed" placeholder=" " :disabled="true" type="number" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 数量 -->
|
|
|
|
|
<u-form-item :label="$t('message.dn_Number')" prop="spQty">
|
|
|
|
@ -84,6 +84,7 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
spQty: any = '';
|
|
|
|
|
productItem: any = {};
|
|
|
|
|
allNum = 0;
|
|
|
|
|
spQtyed = 0;
|
|
|
|
|
originWlSelect = false;
|
|
|
|
|
wl: any = {};
|
|
|
|
|
barcode: any = '';
|
|
|
|
@ -102,6 +103,7 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
this.spQty = '';
|
|
|
|
|
this.productItem = {};
|
|
|
|
|
this.allNum = 0;
|
|
|
|
|
//this.spQtyed = 0;
|
|
|
|
|
this.scanreturndata = {};
|
|
|
|
|
this.barcode = '';
|
|
|
|
|
}
|
|
|
|
@ -163,7 +165,8 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
factoryCode: this.session.factoryCode,
|
|
|
|
|
loginName: this.session.loginName,
|
|
|
|
|
pddNo: this.pddNo,
|
|
|
|
|
pddItem: this.productItem.pddItem,
|
|
|
|
|
// pddItem: this.productItem.pddItem,
|
|
|
|
|
productStatus: this.model.scandata.productStatus,
|
|
|
|
|
productCode: this.productItem.productCode,
|
|
|
|
|
locCode: this.productItem.locCode,
|
|
|
|
|
barcode: this.barcode,
|
|
|
|
@ -186,6 +189,7 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
uni.showToast({ title: this.$t('message.Warehouse_Tip9') as any });
|
|
|
|
|
this.empty();
|
|
|
|
|
this.pddNo = '';
|
|
|
|
|
this.spQtyed = 0;
|
|
|
|
|
}
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
return;
|
|
|
|
@ -207,19 +211,22 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
this.customToast(this.$t('message.barcode') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.getRawStorageSnNew(this.barcode);
|
|
|
|
|
await this.model.getRawStorageSnNew({ barcode: this.barcode, locCode: this.model.InventoryList[0].locCode });
|
|
|
|
|
if (this.model.Semifedcode == '1') {
|
|
|
|
|
//this.customToast(this.$t('message.Warehouse_Tip9') as string);
|
|
|
|
|
// if (JSON.stringify(this.model.InventoryList).indexOf(this.model.Semifedcode) != -1) {
|
|
|
|
|
//this.scanreturndata = this.model.scandata;
|
|
|
|
|
this.spQty = Number(this.model.scandata.barQty);
|
|
|
|
|
this.model.InventoryList.forEach((item: any) => {
|
|
|
|
|
if (item.productCode == this.model.scandata.productCode && item.locCode == this.model.scandata.locCode) {
|
|
|
|
|
this.productItem = item;
|
|
|
|
|
// this.wl = item;
|
|
|
|
|
this.productItem.spQty += 1;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.productItem = this.model.scandata;
|
|
|
|
|
// this.wl = item;
|
|
|
|
|
this.spQtyed += 1;
|
|
|
|
|
// this.model.InventoryList.forEach((item: any) => {
|
|
|
|
|
// if (item.productCode == this.model.scandata.productCode && item.locCode == this.model.scandata.locCode) {
|
|
|
|
|
// this.productItem = item;
|
|
|
|
|
// // this.wl = item;
|
|
|
|
|
// this.productItem.spQty += 1;
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// } else {
|
|
|
|
|
// this.customToast(this.$t('message.Nomatch') as string);
|
|
|
|
|
// }
|
|
|
|
|