From bf493bd65c8d9cbea84c5773294e47dfdfee7802 Mon Sep 17 00:00:00 2001 From: guoshuang Date: Tue, 26 Sep 2023 18:03:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=9C=BA=E5=8F=B0=E8=AE=BE=E7=BD=AErf?= =?UTF-8?q?id=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/mes/PalletChange/index.vue | 19 ++++++++++++++++++- src/utils/url.ts | 4 ++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/pages/mes/PalletChange/index.vue b/src/pages/mes/PalletChange/index.vue index 3060f26..2155860 100644 --- a/src/pages/mes/PalletChange/index.vue +++ b/src/pages/mes/PalletChange/index.vue @@ -13,6 +13,7 @@ rfid: + 查询 @@ -127,6 +128,11 @@ export default class PalletChange extends BasePage { } } } + stationNos.map((item) => ({ + label: item.equipmentName, + value: item.equipmentCode, + ...item, + })); this.oldstationNos = stationNos; } generateGUID() { @@ -164,7 +170,7 @@ export default class PalletChange extends BasePage { // productionState: this.productCodeList.value, }; await this.model.palletInforUpdate(params); - if (model.SubmitCode == 10) { + if (model.SubmitCode == 200) { this.uni.showToast({ title: '成功' }); this.Clear(); } @@ -176,6 +182,7 @@ export default class PalletChange extends BasePage { this.productCodeList = {}; this.productCodeTypeList = {}; this.shouciFocus = false; + this.isshow = false; this.$nextTick(() => { this.shouciFocus = true; }); @@ -196,6 +203,16 @@ export default class PalletChange extends BasePage { await this.model.getAllEquipmentsle(params); this.DictList = model.seleDictList; } + scanCodeOne() { + uni.scanCode({ + scanType: ['barCode'], + success: function (res) { + console.log('条码类型:' + res.scanType); + console.log('条码内容:' + res.result); + this.orderNo = res.result; + }, + }); + } }