From 757262be2fca28084c0d89c7a9168175fe2b07e0 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Tue, 4 Mar 2025 17:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=89=A9=E5=93=81=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=90=8E=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E9=A2=86=E7=94=A8=E6=98=AF=E5=90=A6=E8=B6=85?= =?UTF-8?q?=E8=BF=87=E5=BA=93=E5=AD=98=EF=BC=8C=E8=B6=85=E8=BF=87=E5=BC=B9?= =?UTF-8?q?=E6=A1=86=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/claimAndRefund/receive.js | 9 +++++ .../picking/apply/component/AddPicking.vue | 35 ++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/sgzb-ui/src/api/claimAndRefund/receive.js b/sgzb-ui/src/api/claimAndRefund/receive.js index ad3b6b4b..a5b587c4 100644 --- a/sgzb-ui/src/api/claimAndRefund/receive.js +++ b/sgzb-ui/src/api/claimAndRefund/receive.js @@ -314,3 +314,12 @@ export const outboundOrderApi = (params) => { params, }) } + +// 领料申请-校验是否在审核 +export function getNumISenough(params) { + return request({ + url: '/base/tm_task/getNumISenough', + method: 'get', + params, + }) +} diff --git a/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue b/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue index 41bebc4a..24287de5 100644 --- a/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue +++ b/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue @@ -270,6 +270,7 @@ import { editLeaseApply, getLeaseApplyListAll, getLeaseApplyAuditListAll, + getNumISenough, } from '@/api/claimAndRefund/receive' import { @@ -834,8 +835,27 @@ export default { } }, /////// 设备类型树 切换 - deviceTypeChange(val) { + async deviceTypeChange(val) { console.log(val) + const warnMsg = await this.handleDeviceType(val[val.length - 1]) + // console.log('🚀 ~ deviceTypeChange-->> ~ warnMsg:', warnMsg) + if (warnMsg) { + // 确认框 + this.$confirm(warnMsg, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(() => { + this.handleData(val) + }) + .catch(() => {}) + } else { + this.handleData(val) + } + + }, + handleData(val) { let nodes = null nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 @@ -876,6 +896,19 @@ export default { this.deviceType = {} }, + // 选择设备类型后-处理数据 + async handleDeviceType(val) { + // console.log('🚀 ~ handleDeviceType ~ val:', val) + //getNumISenough + try { + const res = await getNumISenough({ typeId: val }) + // console.log('🚀 ~ handleDeviceType ~ res:', res) + return res.data.warnMsg + } catch (error) { + console.log('🚀 ~ handleDeviceType ~ error:', error) + } + + }, //// 将数据处理成 表格中需要的数据 handelTableItemData(node) { const template = JSON.parse(