生产领料调整

master
guoshuang 6 months ago
parent 0da9c980cf
commit 7ef3644bbe

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

@ -229,6 +229,16 @@ export default class ProductionREQ extends BasePage {
};
await this.model.getByidcard(item);
if (model.getidcardcode == '200') {
if (model.byidcardobj == undefined) {
(this.$refs.uToast as any).show({
title: model.byidcarmsg,
});
this.twofouces = false;
this.$nextTick(() => {
this.Idcard = '';
this.twofouces = true;
});
}
let alreadyList = model.byidcardobj;
alreadyList.handlematerialCode = alreadyList.materialCode.slice(alreadyList.materialCode.search(/[1-9]/));
alreadyList.actuamount = alreadyList.amount;

@ -94,12 +94,14 @@ export class ProductionREQ extends VuexModule {
///扫描标志卡
getidcardcode: any = '';
byidcardobj: any = {};
byidcarmsg: any = '';
@MutationAction
async getByidcard(data: any) {
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.SweepMaterialCardSC, data);
const getidcardcode = result.code;
const byidcardobj = result.data;
return { getidcardcode, byidcardobj };
const byidcarmsg = result.msg;
return { getidcardcode, byidcardobj, byidcarmsg };
}
}

Loading…
Cancel
Save