From a0ffdf2bca1d500637a964385ff9da991dd80b4d Mon Sep 17 00:00:00 2001 From: wangweidong <850489345@qq.com> Date: Wed, 19 Nov 2025 13:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=87=87=E8=B4=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 ++ pages/Warehouse/Warehouse.vue | 102 ++++++------------- pages/procurement/outbound.vue | 32 ++++++ unpackage/dist/dev/.nvue/pages/camera.js | 2 +- unpackage/dist/dev/.nvue/pages/fullcamera.js | 2 +- 5 files changed, 72 insertions(+), 73 deletions(-) create mode 100644 pages/procurement/outbound.vue diff --git a/pages.json b/pages.json index 80f91a6..fc1357a 100644 --- a/pages.json +++ b/pages.json @@ -212,6 +212,13 @@ { "navigationBarTitleText" : "" } + }, + { + "path" : "pages/procurement/outbound", + "style" : + { + "navigationBarTitleText" : "" + } } // { diff --git a/pages/Warehouse/Warehouse.vue b/pages/Warehouse/Warehouse.vue index a3b2367..8f9743a 100644 --- a/pages/Warehouse/Warehouse.vue +++ b/pages/Warehouse/Warehouse.vue @@ -21,7 +21,7 @@ + :key='i' @click.stop="housactive(i)"> {{v}} @@ -34,7 +34,6 @@ - @@ -59,17 +58,21 @@ }, }); const housedex = ref(-1); - const forthmenuIndex = ref(0); const lastTap = ref(0) const DOUBLE_TAP_DELAY = 300; const setout = ref(null) const housactive = (index : number) => { housedex.value = index; const now = Date.now() - forthmenuIndex.value = i if (now - lastTap.value < DOUBLE_TAP_DELAY) { // 双击成立 clearTimeout(setout.value) + if (index == 0) { + navurl.value = 'pages/Warehouse/paymoney' + uni.navigateTo({ + url: '/' + navurl.value + }) + } if (index == 1) { navurl.value = 'pages/procurement/material' uni.navigateTo({ @@ -88,6 +91,23 @@ url: '/' + navurl.value }) } + if (index === 5) { + uni.navigateTo({ + url: "/pages/watch/full" + }) + } + if (index ==6) { + navurl.value = 'pages/procurement/outbound?code=0' + uni.navigateTo({ + url: '/' + navurl.value + }) + } + if (index ==7) { + navurl.value = 'pages/procurement/outbound?code=1' + uni.navigateTo({ + url: '/' + navurl.value + }) + } // 重置,避免多次触发 lastTap.value = 0 } else { @@ -104,80 +124,20 @@ lastTap.value = now } - - - if(housedex.value == index){ - if (housedex.value == 0) { - navurl.value = 'pages/Warehouse/paymoney' - uni.navigateTo({ - url: '/' + navurl.value - }) - } - - return - } - } onMounted(() => { housedex.value = 1 }) const navurl = ref(''); - const movecard = (type : number) => { - // console.log(type,housedex.value) - switch (type) { - case 0: - // 上 - housedex.value > 0 ? housedex.value-- : housedex.value = 3 - break; - case 1: - housedex.value > 2 ? housedex.value = 0 : housedex.value++ - // → - break; - case 2: - housedex.value > 2 ? housedex.value = 0 : housedex.value++ - // 下 - break; - case 3: - housedex.value > 0 ? housedex.value-- : housedex.value = 3 - // ← - break; - case 4: - // 确定 - // console.log('选中' + housedex.value) - if (housedex.value == 1) { - navurl.value = 'pages/Warehouse/procurement' - uni.navigateTo({ - url: '/' + navurl.value - }) - } - if (housedex.value == 2) { - navurl.value = 'pages/Warehouse/picking' - uni.navigateTo({ - url: '/' + navurl.value - }) - } - if (housedex.value == 3) { - navurl.value = 'pages/Warehouse/finish' - uni.navigateTo({ - url: '/' + navurl.value - }) - } - // uni.navigateTo({ - // url: '/' + navurl.value - // }) - break; - case 5: - // 返回 - uni.navigateBack() - break; - - default: - break; - } - } const onlyjump = (index : number) => { console.log("点击了哪个图标", index) - if (index > 5) { return } + if (index > 5) { + navurl.value = 'pages/Warehouse/finish' + uni.navigateTo({ + url: '/' + navurl.value + }) + return + } if (index < 4) { housedex.value = index; } diff --git a/pages/procurement/outbound.vue b/pages/procurement/outbound.vue new file mode 100644 index 0000000..a2fe5bd --- /dev/null +++ b/pages/procurement/outbound.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/unpackage/dist/dev/.nvue/pages/camera.js b/unpackage/dist/dev/.nvue/pages/camera.js index 12310ff..04100f2 100644 --- a/unpackage/dist/dev/.nvue/pages/camera.js +++ b/unpackage/dist/dev/.nvue/pages/camera.js @@ -574,7 +574,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { ) ]); } -const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]); +const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]); export { camera as default }; diff --git a/unpackage/dist/dev/.nvue/pages/fullcamera.js b/unpackage/dist/dev/.nvue/pages/fullcamera.js index fc534ca..beefd5c 100644 --- a/unpackage/dist/dev/.nvue/pages/fullcamera.js +++ b/unpackage/dist/dev/.nvue/pages/fullcamera.js @@ -577,7 +577,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { ) ]); } -const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]); +const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]); export { fullcamera as default };