From dd7a2a6be31a2d9a37545d97b27bdcc777d0d778 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 1 Sep 2025 22:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/new-purchase/entry/code-inbound.vue | 48 ++++++++++++------- src/pages/repair/equipAssessment/index.vue | 2 +- src/pages/repair/scrapExamine/index.vue | 6 +-- 3 files changed, 34 insertions(+), 22 deletions(-) diff --git a/src/pages/new-purchase/entry/code-inbound.vue b/src/pages/new-purchase/entry/code-inbound.vue index 91555b0..f30b56b 100644 --- a/src/pages/new-purchase/entry/code-inbound.vue +++ b/src/pages/new-purchase/entry/code-inbound.vue @@ -426,24 +426,36 @@ const onHandleOutbound = async () => { }) } }) - let param = { - taskId: queryParams.value.taskId, - typeId: queryParams.value.typeId, - purchaseId: queryParams.value.id, - inPutList: paramsList, - } - const res = await setInboundCodeAPI(param) - console.log(res, '入库') - if (res.code === 200) { - uni.showToast({ - title: '入库成功!', - icon: 'none', - }) - getCodeDeviceListData() - setTimeout(() => { - queryParams.value.inputNum = Number(queryParams.value.inputNum) + paramsList.length - }, 800) - } + uni.showModal({ + title: '提示', + content: '是否确定入库?', + success: async (req) => { + if (req.confirm) { + try { + let param = { + taskId: queryParams.value.taskId, + typeId: queryParams.value.typeId, + purchaseId: queryParams.value.id, + inPutList: paramsList, + } + const res = await setInboundCodeAPI(param) + console.log(res, '入库') + if (res.code === 200) { + uni.showToast({ + title: '入库成功!', + icon: 'none', + }) + getCodeDeviceListData() + setTimeout(() => { + queryParams.value.inputNum = Number(queryParams.value.inputNum) + paramsList.length + }, 800) + } + } catch (error) { + console.log('🚀 ~ onHandleOutbound ~ error:', error) + } + } + } + }) } diff --git a/src/pages/repair/equipAssessment/index.vue b/src/pages/repair/equipAssessment/index.vue index a1a350e..3070665 100644 --- a/src/pages/repair/equipAssessment/index.vue +++ b/src/pages/repair/equipAssessment/index.vue @@ -50,7 +50,7 @@
{{ item.repairCode }} - {{ `${item.backCode}-${item.level}` }} + {{ `${item.backCode}-${item.level}` }}
diff --git a/src/pages/repair/scrapExamine/index.vue b/src/pages/repair/scrapExamine/index.vue index 1821404..d08f323 100644 --- a/src/pages/repair/scrapExamine/index.vue +++ b/src/pages/repair/scrapExamine/index.vue @@ -124,7 +124,7 @@ import { ref, computed } from 'vue' import { getListScrapExamineApply } from '@/services/repair/scrapExamine.js' -import { onLoad } from '@dcloudio/uni-app' +import { onShow } from '@dcloudio/uni-app' import { debounce } from 'lodash-es' const total = ref(0) // 数据总量 @@ -233,11 +233,11 @@ const getTableList = async (isTap = false) => { } // // 页面加载完毕 -// onLoad(() => { +// onShow(() => { // getTableList() // }) -onLoad(() => { +onShow(() => { tableList.value = [] total.value = 0 getTableList()