cosmoim-852 fix 线边库盘点&半成品盘点修改

master
guoshuang 2 years ago
parent ed5d554493
commit cc940dbfcb

@ -171,7 +171,7 @@ export default class LoginPage extends BasePage {
console.log('......', server.serverAddress); console.log('......', server.serverAddress);
if (server.serverAddress.includes('https://eurmom.haier.net')) { if (server.serverAddress.includes('https://eurmom.haier.net')) {
// //
this.Version = '1.1.34'; this.Version = '1.1.35';
} else { } else {
this.Version = '1.0.49'; this.Version = '1.0.49';
} }

@ -40,7 +40,7 @@
</u-form-item> </u-form-item>
<!-- 物料已扫 --> <!-- 物料已扫 -->
<u-form-item :label="$t('message.product_Swept')" prop="productDescZh"> <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>
<!-- 库存数量 --> <!-- 库存数量 -->
<u-form-item :label="$t('message.dn_Number')" prop="spQty"> <u-form-item :label="$t('message.dn_Number')" prop="spQty">
@ -84,6 +84,7 @@ export default class rawMaterialInventory extends BasePage {
spQty: any = ''; spQty: any = '';
productItem: any = {}; productItem: any = {};
allNum = 0; allNum = 0;
spQtyed = 0;
originWlSelect = false; originWlSelect = false;
wl: any = {}; wl: any = {};
barcode: any = ''; barcode: any = '';
@ -102,6 +103,7 @@ export default class rawMaterialInventory extends BasePage {
this.spQty = ''; this.spQty = '';
this.productItem = {}; this.productItem = {};
this.allNum = 0; this.allNum = 0;
// this.spQtyed = 0;
this.scanreturndata = {}; this.scanreturndata = {};
this.barcode = ''; this.barcode = '';
} }
@ -186,6 +188,7 @@ export default class rawMaterialInventory extends BasePage {
uni.showToast({ title: this.$t('message.Warehouse_Tip9') as any }); uni.showToast({ title: this.$t('message.Warehouse_Tip9') as any });
this.empty(); this.empty();
this.pddNo = ''; this.pddNo = '';
this.spQtyed = 0;
} }
} else if (res.cancel) { } else if (res.cancel) {
return; return;
@ -212,14 +215,10 @@ export default class rawMaterialInventory extends BasePage {
//this.customToast(this.$t('message.Warehouse_Tip9') as string); //this.customToast(this.$t('message.Warehouse_Tip9') as string);
// if (JSON.stringify(this.model.InventoryList).indexOf(this.model.Semifedcode) != -1) { // if (JSON.stringify(this.model.InventoryList).indexOf(this.model.Semifedcode) != -1) {
//this.scanreturndata = this.model.scandata; //this.scanreturndata = this.model.scandata;
///&& item.locCode == this.model.scandata.locCode
this.spQty = Number(this.model.scandata.barQty); this.spQty = Number(this.model.scandata.barQty);
this.model.InventoryList.forEach((item: any) => { this.productItem = this.model.scandata;
if (item.productCode == this.model.scandata.productCode && item.locCode == this.model.scandata.locCode) { this.spQtyed += 1;
this.productItem = item;
// this.wl = item;
this.productItem.spQty += 1;
}
});
// } else { // } else {
// this.customToast(this.$t('message.Nomatch') as string); // this.customToast(this.$t('message.Nomatch') as string);
// } // }

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

@ -190,9 +190,9 @@ export class ReceiptModule extends VuexModule {
* @param barcode * @param barcode
*/ */
@MutationAction @MutationAction
async getRawStorageSnNew(barcode: string) { async getRawStorageSnNew(param: any) {
const res: any = await http.post(url.material.rawMaterialInventory.getRawStorageSnNew, { const res: any = await http.post(url.material.rawMaterialInventory.newbarcodeScanPd, {
barcode, ...param,
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
loginName: session.loginName, loginName: session.loginName,
}); });
@ -283,7 +283,7 @@ export class ReceiptModule extends VuexModule {
*/ */
@MutationAction @MutationAction
async checkRawOrderComplete(pddNo?: string | null) { async checkRawOrderComplete(pddNo?: string | null) {
const res: any = await http.post(url.material.rawMaterialInventory.orderComplete, { const res: any = await http.post(url.material.rawMaterialInventory.sfgPdorderComplete, {
pddNo, pddNo,
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
loginName: session.loginName, loginName: session.loginName,

@ -108,6 +108,8 @@ export const url = {
getRawStorageSnNew: '/wmspda/material/getRawStorageSnNew', getRawStorageSnNew: '/wmspda/material/getRawStorageSnNew',
barcodeConfirm: '/wmspda/product/finished/sfgPd/barcodeConfirm', barcodeConfirm: '/wmspda/product/finished/sfgPd/barcodeConfirm',
barcodeScanPd: '/wmspda/material/barcodeScanPd', barcodeScanPd: '/wmspda/material/barcodeScanPd',
newbarcodeScanPd: '/wmspda/material/inventoryPd/barcodeScanPd',
sfgPdorderComplete: '/wmspda/product/finished/sfgPd/orderComplete',
}, },
// 委外 commission // 委外 commission
commission: { commission: {

Loading…
Cancel
Save