From ba0bc562afb689b1bec6bc7fc058de6f595fb811 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Fri, 9 Jan 2026 15:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=82=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/hdyy/ccgl/kn-hepan.vue | 27 +++++++++++----------- pages/hdyy/ccgl/sh-instore.vue | 2 +- pages/hdyy/ccgl/zj-instore.vue | 40 ++++++++++++++++++++++----------- pages/hdyy/ccgl/zj-outstore.vue | 27 +++++++++++----------- 4 files changed, 56 insertions(+), 40 deletions(-) diff --git a/pages/hdyy/ccgl/kn-hepan.vue b/pages/hdyy/ccgl/kn-hepan.vue index 5f7169c..422d27e 100644 --- a/pages/hdyy/ccgl/kn-hepan.vue +++ b/pages/hdyy/ccgl/kn-hepan.vue @@ -34,6 +34,16 @@ + + + 袋码 + + + + + @@ -100,6 +110,7 @@ num: null, val1: '', val2: '', + bagCode: '', dataList: [], // dataList: [{material_code: 'm001', qty: 100, checked: false, initialQty: 100}, {material_code: 'm002', qty: 200, checked: false, initialQty: 200}], disabled: false @@ -110,19 +121,9 @@ }, methods: { toScanAdd () { - uni.scanCode({ - success: (res) => { - // console.log('扫码成功:', res.result); - this._insideCodeInsert(res.result) - }, - fail: (err) => { - console.log('扫码失败:', err) - // uni.showToast({ - // title: err + '扫码失败', - // icon: 'none' - // }) - } - }) + if (this.bagCode) { + this._insideCodeInsert(this.bagCode) + } }, toDel () { if (!this.pkId) { diff --git a/pages/hdyy/ccgl/sh-instore.vue b/pages/hdyy/ccgl/sh-instore.vue index 8c1c5d3..5b77011 100644 --- a/pages/hdyy/ccgl/sh-instore.vue +++ b/pages/hdyy/ccgl/sh-instore.vue @@ -59,7 +59,7 @@ {{e.material_code}} {{e.material_name}} {{e.pcsn}} - {{e.canuse_qty}} + {{e.qty}} {{e.qty_unit_name}} {{e.supp_name}} {{e.class_name}} diff --git a/pages/hdyy/ccgl/zj-instore.vue b/pages/hdyy/ccgl/zj-instore.vue index e0c0004..00499ca 100644 --- a/pages/hdyy/ccgl/zj-instore.vue +++ b/pages/hdyy/ccgl/zj-instore.vue @@ -22,6 +22,16 @@ + + + 袋码 + + + + + @@ -85,6 +95,7 @@ title: '', num: null, val1: '', + bagCode: '', dataList: [], // dataList: [{material_code: 'm001', qty: 100, checked: false, initialQty: 100}, {material_code: 'm002', qty: 200, checked: false, initialQty: 200}], disabled: false @@ -95,19 +106,22 @@ }, methods: { toScanAdd () { - uni.scanCode({ - success: (res) => { - // console.log('扫码成功:', res.result); - this._getPalletAssembly(res.result) - }, - fail: (err) => { - console.log('扫码失败:', err) - // uni.showToast({ - // title: err + '扫码失败', - // icon: 'none' - // }) - } - }) + if (this.bagCode) { + this._getPalletAssembly(this.bagCode) + } + // uni.scanCode({ + // success: (res) => { + // // console.log('扫码成功:', res.result); + // this._getPalletAssembly(res.result) + // }, + // fail: (err) => { + // console.log('扫码失败:', err) + // // uni.showToast({ + // // title: err + '扫码失败', + // // icon: 'none' + // // }) + // } + // }) }, toDel () { if (!this.pkId) { diff --git a/pages/hdyy/ccgl/zj-outstore.vue b/pages/hdyy/ccgl/zj-outstore.vue index 3e4639f..80017b0 100644 --- a/pages/hdyy/ccgl/zj-outstore.vue +++ b/pages/hdyy/ccgl/zj-outstore.vue @@ -12,6 +12,16 @@ + + + 袋码 + + + + + @@ -76,6 +86,7 @@ return { title: '', options: [], + bagCode: '', num: null, index: '', dataList: [], @@ -108,19 +119,9 @@ } }, toScanAdd () { - uni.scanCode({ - success: (res) => { - // console.log('扫码成功:', res.result); - this._directlyOutCodeInsert(res.result) - }, - fail: (err) => { - console.log('扫码失败:', err) - // uni.showToast({ - // title: err + '扫码失败', - // icon: 'none' - // }) - } - }) + if (this.bagCode) { + this._directlyOutCodeInsert(this.bagCode) + } }, toDel () { if (!this.pkId) {