- `
- let str1 = ''
- this.data.sublist.forEach((cur, key) => {
- str1 += `
-
+
+
+ 目标库位:
${item.toLocationCode}
+
+
+
+
+
+ 托包装号:
${item.packingNumber}
+
+
+
+
+
+ `
})
- str = str.replace('tableTrTd', str1)
- // })
this.newHtmlContent = this.newHtmlContent.replace('mainBody', str) // 替换物品代码
})
})
@@ -235,7 +219,7 @@ export default {
.box {
font-size: 26rpx;
/* display: flex; */
- padding: 20rpx;
+ /* padding: 20rpx; */
border: 1px solid #dedede;
}
@@ -292,25 +276,46 @@ export default {
.mb-kw {
border-bottom: 1px solid #dedede;
- padding-bottom: 20rpx;
+ padding: 20rpx;
+ font-size: 30rpx;
}
-.mb-kw text {
+.mb-kw view {
+ font-weight: bold;
+ font-size: 46rpx;
+ text-align: center;
+}
+.mb-bo {
+ display: flex;
+}
+.mb-bo .mb-left {
+ flex: 1;
+}
+.mb-bo .mb-left .mb-text {
+ padding: 20rpx;
+}
+.mb-bo .mb-left .mb-text:nth-child(1) {
+ border-bottom: 1px solid #dedede;
+}
+.mb-bo .mb-left .mb-text view {
font-weight: bold;
font-size: 32rpx;
+ text-align: center;
}
-
-.mb-text {
- margin-top: 10rpx;
+.mb-bo .mb-right {
+ padding: 20rpx;
+ width: 260rpx;
+ border-left: 1px solid #dedede;
+ display: flex;
+ align-items: center;
}
-
-::v-deep .u-th {
- font-size: 24rpx !important;
+.mb-bo .mb-right .mb-text {
+ width: 100%;
}
-
-::v-deep .u-td {
- height: auto !important;
- font-size: 24rpx !important;
- word-break: break-all;
+.mb-bo .mb-right .mb-text view {
+ font-weight: bold;
+ font-size: 40rpx;
+ text-align: center;
+ width: 100%;
}
diff --git a/src/plugins/storage.js b/src/plugins/storage.js
new file mode 100644
index 00000000..ecc8c283
--- /dev/null
+++ b/src/plugins/storage.js
@@ -0,0 +1,42 @@
+export default {
+ // 获取本地存储对应key
+ getStorage(key){
+ return uni.getStorageSync( key );
+ },
+ // 设置本地存储对应key
+ setStorage(key,value){
+ return uni.setStorageSync( key,value );
+ },
+// 清除全部本地存储
+ clearStorage (){
+ const overPackageRecordPointParams = ''
+ if( uni.getStorageSync('overPackageRecordPointParams')){
+ overPackageRecordPointParams = uni.getStorageSync('overPackageRecordPointParams')
+ }
+ const overPackageJobDetailPointParams = ''
+ if( uni.getStorageSync('overPackageJobDetailPointParams')){
+ overPackageJobDetailPointParams = uni.getStorageSync('overPackageJobDetailPointParams')
+ }
+ uni.clearStorageSync();
+ if(overPackageRecordPointParams){
+ uni.setStorageSync('overPackageRecordPointParams',overPackageRecordPointParams)
+ }
+ if(overPackageJobDetailPointParams){
+ uni.setStorageSync('overPackageJobDetailPointParams',overPackageJobDetailPointParams)
+ }
+
+ },
+// 清除指定key本地存储
+ removeStorage ( key ){
+ uni.removeStorageSync( key );
+ },
+ // 关闭当前页面,返回上一页面或多级页面
+ constant:{
+ id:"id",
+ token:"token",
+ avatar: 'avatar',
+ name: 'name',
+ roles: 'roles',
+ permissions: 'permissions'
+ }
+}
diff --git a/src/store/modules/countStore.ts b/src/store/modules/countStore.ts
index dfc0e889..6b2d9b8e 100644
--- a/src/store/modules/countStore.ts
+++ b/src/store/modules/countStore.ts
@@ -1,4 +1,5 @@
import { defineStore } from 'pinia'
+import * as storage from '@/plugins/storage.js'
import {
login,
logout,
@@ -110,6 +111,7 @@ const useStore = defineStore('storeId', {
this.post = ''
this.dept = ''
removeToken()
+ storage.clearStorage()
resolve(res)
}).catch(error => {
reject(error)