From af03713ac98a110077ed48d653c09d34364958f1 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 20 Jun 2024 17:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=B0=E9=87=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/WarehouseManage/InStoreConfirm.vue | 25 +++++++++++++++++++++--- utils/getData2.js | 8 ++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/pages/WarehouseManage/InStoreConfirm.vue b/pages/WarehouseManage/InStoreConfirm.vue index 7bf349f..781326a 100644 --- a/pages/WarehouseManage/InStoreConfirm.vue +++ b/pages/WarehouseManage/InStoreConfirm.vue @@ -67,9 +67,10 @@ - + + - + @@ -79,7 +80,7 @@ import SearchBox from '@/components/SearchBox.vue' import SearchBoxMx from '@/components/SearchBoxMx.vue' import permision from "@/utils/permission.js" - import {boxQuery, stConfirm, stPrint, getStorSect} from '@/utils/getData2.js' + import {boxQuery, stConfirm, stPrint, getStorSect, stWeighCheck} from '@/utils/getData2.js' export default { components: { NavBar, @@ -171,6 +172,24 @@ }, handleChange (e) { this._boxQuery(this.val1) + }, + // 称重校验 + async _stWeighCheck () { + this.disabled1 = true + if (!this.val1 || !this.val2) { + this.disabled1 = false + return + } + try { + let res = await stWeighCheck(this.val1, this.val2) + this.disabled1 = false + uni.showToast({ + title: res.message, + icon: 'none' + }) + } catch (e) { + this.disabled1 = false + } } } } diff --git a/utils/getData2.js b/utils/getData2.js index 121a562..54470e1 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -324,6 +324,14 @@ export const stConfirm = (box_jo, code, option, is, mcode, no, sid) => request({ sect_id: sid } }) +// 1.3称重校验 +export const stWeighCheck = (no, code) => request({ + url:'api/pda/st/weighCheck', + data: { + box_no: no, + point_code: code + } +}) /** * 生产入库