From cb5964dbc2c742843c6c80ab2d35576f725750bc Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 2 Sep 2024 13:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20=202024/6/19=2017:19:08?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/http.ts | 2 + src/hybrid/html/pointPutawayJob.html | 56 ++++++- src/main.ts | 3 + src/mycomponents/scan/winScanLocation.vue | 18 ++- .../scan/winScanPackAndLocation.vue | 16 +- src/pages.json | 1 + .../package/record/overPackageRecord.vue | 20 ++- src/pages/pointPutawayJob/index.vue | 147 +++++++++--------- src/plugins/storage.js | 42 +++++ src/store/modules/countStore.ts | 2 + 10 files changed, 223 insertions(+), 84 deletions(-) create mode 100644 src/plugins/storage.js diff --git a/src/api/http.ts b/src/api/http.ts index 93e5502a..73507521 100644 --- a/src/api/http.ts +++ b/src/api/http.ts @@ -95,6 +95,8 @@ instance.interceptors.response.use((v) => { } }) } else if(v.data.code == 401){ + uni.clearStorageSync() + uni.removeStorageSync('overPackageRecord') uni.showModal({ title: '系统提示', content: '账号未登录,请重新登录', diff --git a/src/hybrid/html/pointPutawayJob.html b/src/hybrid/html/pointPutawayJob.html index 20a53275..686bcb11 100644 --- a/src/hybrid/html/pointPutawayJob.html +++ b/src/hybrid/html/pointPutawayJob.html @@ -17,7 +17,7 @@
diff --git a/src/main.ts b/src/main.ts index 677698d8..a5c6e497 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,6 +10,7 @@ import comMessage from '@/mycomponents/common/comMessage.vue' import tab from './plugins/tab' import modal from './plugins/modal' import time from './plugins/time' +import storage from './plugins/storage' // unocss @@ -31,6 +32,8 @@ export function createApp() { app.config.globalProperties.$modal = modal // 时间对象 app.config.globalProperties.$time = time + // 缓存 + app.config.globalProperties.$storage = storage app.component('com-message', comMessage) diff --git a/src/mycomponents/scan/winScanLocation.vue b/src/mycomponents/scan/winScanLocation.vue index 033ea7b9..4236ee3e 100644 --- a/src/mycomponents/scan/winScanLocation.vue +++ b/src/mycomponents/scan/winScanLocation.vue @@ -14,6 +14,9 @@ + +物品代码 | -物品描述 | -批次 | -包装号 | -包装规格 | -数量 | -计量单位 | -
---|---|---|---|---|---|---|