From 7ef3644bbe8cea4b6c9cc9b097087edafb9f5c4d Mon Sep 17 00:00:00 2001 From: guoshuang Date: Fri, 13 Dec 2024 21:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=A2=86=E6=96=99=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/login/index.vue | 2 +- src/pages/wms/Raw/ProductionREQ/index.vue | 10 ++++++++++ src/pages/wms/Raw/ProductionREQ/model.ts | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/pages/login/login/index.vue b/src/pages/login/login/index.vue index 2a076b2..d41ee88 100644 --- a/src/pages/login/login/index.vue +++ b/src/pages/login/login/index.vue @@ -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; diff --git a/src/pages/wms/Raw/ProductionREQ/index.vue b/src/pages/wms/Raw/ProductionREQ/index.vue index 0966116..df4de28 100644 --- a/src/pages/wms/Raw/ProductionREQ/index.vue +++ b/src/pages/wms/Raw/ProductionREQ/index.vue @@ -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; diff --git a/src/pages/wms/Raw/ProductionREQ/model.ts b/src/pages/wms/Raw/ProductionREQ/model.ts index fd54d10..70d3622 100644 --- a/src/pages/wms/Raw/ProductionREQ/model.ts +++ b/src/pages/wms/Raw/ProductionREQ/model.ts @@ -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 }; } }