@logwire/logwire-wms-pda-ui 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BlockInfo.1c8ece6a.mjs → BlockInfo.3487efb0.mjs} +1 -1
- package/dist/{InboundQualityExecuteView.3c816a1e.mjs → InboundQualityExecuteView.a6d80f60.mjs} +1 -1
- package/dist/{InboundQualityTaskListView.14185db1.mjs → InboundQualityTaskListView.ae990a72.mjs} +1 -1
- package/dist/{InboundReceiveAllocSkuExecuteView.ad248f9e.mjs → InboundReceiveAllocSkuExecuteView.95b7981d.mjs} +1 -1
- package/dist/{InboundReceiveAllocSnExecuteView.c8a4abc8.mjs → InboundReceiveAllocSnExecuteView.484c2620.mjs} +1 -1
- package/dist/{InboundReceiveAllocTabListView.9639b998.mjs → InboundReceiveAllocTabListView.461436d3.mjs} +1 -1
- package/dist/{InboundReceiveCaseExecuteView.3f937231.mjs → InboundReceiveCaseExecuteView.bb1b67a3.mjs} +1 -1
- package/dist/{InboundReceiveCaseScanView.a88b4178.mjs → InboundReceiveCaseScanView.e10901f0.mjs} +1 -1
- package/dist/{InboundReceiveLpnBatchExecuteView.6034a9e1.mjs → InboundReceiveLpnBatchExecuteView.ca08118b.mjs} +1 -1
- package/dist/{InboundReceiveLpnExecuteView.d3116e23.mjs → InboundReceiveLpnExecuteView.8dad3f06.mjs} +1 -1
- package/dist/{InboundReceiveLpnScanView.4db78898.mjs → InboundReceiveLpnScanView.09bc3a30.mjs} +1 -1
- package/dist/{InboundReceiveRandomSkuExecuteView.1b6e0637.mjs → InboundReceiveRandomSkuExecuteView.38abae97.mjs} +1 -1
- package/dist/{InboundReceiveRandomSkuScanView.1821d2c4.mjs → InboundReceiveRandomSkuScanView.9b6d5afe.mjs} +1 -1
- package/dist/{InboundReceiveRandomSkuSnExecuteView.2f3cfcea.mjs → InboundReceiveRandomSkuSnExecuteView.f87c58dc.mjs} +1 -1
- package/dist/{InboundReceiveSkuAdvanceView.a6b4568f.mjs → InboundReceiveSkuAdvanceView.e3b3cf46.mjs} +1 -1
- package/dist/{InboundReceiveSkuDirectView.811bf351.mjs → InboundReceiveSkuDirectView.3804b727.mjs} +1 -1
- package/dist/{InboundReceiveSkuScanView.5e614e01.mjs → InboundReceiveSkuScanView.97c6d301.mjs} +1 -1
- package/dist/{LwInboundSortingAsnView.3e1106d7.mjs → LwInboundSortingAsnView.146bc442.mjs} +1 -1
- package/dist/{LwInboundSortingByContainerView.33299f9f.mjs → LwInboundSortingByContainerView.31d39da9.mjs} +1 -1
- package/dist/{LwInboundSortingByOrderView.2f8db636.mjs → LwInboundSortingByOrderView.724e2bab.mjs} +1 -1
- package/dist/{LwInboundSortingIndexView.c9ed07c1.mjs → LwInboundSortingIndexView.42d87950.mjs} +1 -1
- package/dist/{LwOutboundReprintBoxView.72539c87.mjs → LwOutboundReprintBoxView.9b848144.mjs} +1 -1
- package/dist/{LwOutboundStockoutExecuteView.3fe57cee.mjs → LwOutboundStockoutExecuteView.a3725330.mjs} +2 -2
- package/dist/{LwOutboundStockoutListView.d9a1e1bd.mjs → LwOutboundStockoutListView.dedaa8b9.mjs} +2 -2
- package/dist/{MoveRandomWholeCaseView.c2742890.mjs → MoveRandomWholeCaseView.f88904ff.mjs} +1 -1
- package/dist/{MoveTaskWholeCaseDownView.5250c675.mjs → MoveTaskWholeCaseDownView.c41d4e56.mjs} +1 -1
- package/dist/{MoveTaskWholeCaseUpView.824a2aee.mjs → MoveTaskWholeCaseUpView.88056e7d.mjs} +1 -1
- package/dist/{MoveTaskWholeIndexView.4de7edfc.mjs → MoveTaskWholeIndexView.7423ada1.mjs} +1 -1
- package/dist/{OutboundBlockBoxListView.dedc1292.mjs → OutboundBlockBoxListView.7b0db7db.mjs} +2 -2
- package/dist/{OutboundBlockExecuteView.db1ab452.mjs → OutboundBlockExecuteView.c3eec33f.mjs} +2 -2
- package/dist/{action.4a3773c1.mjs → action.0234330b.mjs} +1 -1
- package/dist/{action.5aa67994.mjs → action.12b64d92.mjs} +1 -1
- package/dist/{action.eff389f9.mjs → action.1657efd5.mjs} +1 -1
- package/dist/{action.034382ff.mjs → action.1ac0d530.mjs} +1 -1
- package/dist/{action.f03dbf79.mjs → action.3323de3b.mjs} +1 -1
- package/dist/{action.0cfc710c.mjs → action.368c9235.mjs} +1 -1
- package/dist/{action.7424605b.mjs → action.4a89bd61.mjs} +1 -1
- package/dist/{action.01da8ae9.mjs → action.4f6ba001.mjs} +1 -1
- package/dist/{action.54fe5fe2.mjs → action.51830209.mjs} +1 -1
- package/dist/{action.6ba45e3b.mjs → action.66b154f0.mjs} +1 -1
- package/dist/{action.95aa8c94.mjs → action.674d5079.mjs} +1 -1
- package/dist/{action.0a1d10ad.mjs → action.684e20cd.mjs} +1 -1
- package/dist/{action.8f655f2e.mjs → action.6c1e4592.mjs} +1 -1
- package/dist/{action.2baf8260.mjs → action.709285c2.mjs} +1 -1
- package/dist/{action.c1816f01.mjs → action.7b4fb35c.mjs} +1 -1
- package/dist/{action.ec9705f5.mjs → action.96c2b54b.mjs} +1 -1
- package/dist/{action.4dc11c91.mjs → action.979e886f.mjs} +1 -1
- package/dist/{action.6be6f5d3.mjs → action.b7e8794e.mjs} +1 -1
- package/dist/{action.02bbb588.mjs → action.bb169b8d.mjs} +1 -1
- package/dist/{action.b0306402.mjs → action.bdf4d219.mjs} +1 -1
- package/dist/{action.04ee34d5.mjs → action.c4543175.mjs} +1 -1
- package/dist/{action.5bb65cf2.mjs → action.cc8b6482.mjs} +1 -1
- package/dist/{action.88067120.mjs → action.d1bc2cc4.mjs} +1 -1
- package/dist/{action.017a327c.mjs → action.e3c182ba.mjs} +1 -1
- package/dist/{action.f8726b24.mjs → action.ebd52caf.mjs} +1 -1
- package/dist/{action.68f0c9ef.mjs → action.ef70b920.mjs} +1 -1
- package/dist/{action.8e26827f.mjs → action.f25bd0c2.mjs} +1 -1
- package/dist/{action.8ffbd19f.mjs → action.f9dba895.mjs} +1 -1
- package/dist/{add.2e5ce839.mjs → add.dd390a20.mjs} +1 -1
- package/dist/{addOrder.4f228676.mjs → addOrder.6fd7cb00.mjs} +1 -1
- package/dist/{allCheck.c5c9395b.mjs → allCheck.87b682df.mjs} +1 -1
- package/dist/{aloneAction.43f83144.mjs → aloneAction.b44cee97.mjs} +1 -1
- package/dist/{boxAction.3d4eb6d9.mjs → boxAction.057da96b.mjs} +1 -1
- package/dist/{caseAction.74093bb0.mjs → caseAction.2c4fc2bc.mjs} +1 -1
- package/dist/{console.4232cad5.mjs → console.7840ce91.mjs} +1 -1
- package/dist/{consoleInfo.3eefa9b6.mjs → consoleInfo.6a9e23f4.mjs} +1 -1
- package/dist/{content.44aa1b2c.mjs → content.4e9e0afd.mjs} +1 -1
- package/dist/{contentInfo.4b40e2e7.mjs → contentInfo.e46095fe.mjs} +1 -1
- package/dist/{customer.cc356336.mjs → customer.79633ad1.mjs} +1 -1
- package/dist/{device.807dfeb7.mjs → device.d43bd03a.mjs} +1 -1
- package/dist/{generate.72d6586b.mjs → generate.8b91a9d8.mjs} +1 -1
- package/dist/{home.862fcd6d.mjs → home.a8091216.mjs} +1 -1
- package/dist/{index.af8fef71.mjs → index.003274c3.mjs} +1 -1
- package/dist/{index.68be1564.mjs → index.03c9bc30.mjs} +1 -1
- package/dist/{index.6c35d72c.mjs → index.0b1c7ecb.mjs} +1 -1
- package/dist/{index.de826989.mjs → index.1086f5db.mjs} +1 -1
- package/dist/{index.9cc1b8cb.mjs → index.11d753a1.mjs} +1 -1
- package/dist/{index.1fa9c485.mjs → index.193dd1b9.mjs} +1 -1
- package/dist/{index.bc0f7742.mjs → index.2338d10c.mjs} +1 -1
- package/dist/{index.3330acfb.mjs → index.253cf171.mjs} +1 -1
- package/dist/{index.5c3a5656.mjs → index.2987600f.mjs} +1 -1
- package/dist/{index.00779596.mjs → index.2b10d6da.mjs} +1 -1
- package/dist/{index.962f2cd9.mjs → index.2c13370e.mjs} +1 -1
- package/dist/{index.5307f035.mjs → index.3cd0d854.mjs} +1 -1
- package/dist/{index.8fb5154c.mjs → index.3eee7c36.mjs} +1 -1
- package/dist/{index.6ce411ca.mjs → index.426b0236.mjs} +1 -1
- package/dist/{index.41e9615a.mjs → index.4aa0533f.mjs} +1 -1
- package/dist/{index.2833a061.mjs → index.4ca99f5f.mjs} +1 -1
- package/dist/{index.69a0e492.mjs → index.5293dbda.mjs} +1 -1
- package/dist/{index.22aef932.mjs → index.5cf6bd1b.mjs} +10319 -10221
- package/dist/{index.db5c6017.mjs → index.6285d960.mjs} +1 -1
- package/dist/{index.65987267.mjs → index.6367d8bb.mjs} +1 -1
- package/dist/{index.1156af3a.mjs → index.6dfe9f62.mjs} +1 -1
- package/dist/{index.69c12a25.mjs → index.724911f7.mjs} +1 -1
- package/dist/{index.bff4ac60.mjs → index.7539d91b.mjs} +1 -1
- package/dist/{index.bcce7d7e.mjs → index.7a69c9fa.mjs} +1 -1
- package/dist/{index.53edfcba.mjs → index.7d5c0004.mjs} +1 -1
- package/dist/{index.b13b9084.mjs → index.7d940910.mjs} +1 -1
- package/dist/{index.1accff9d.mjs → index.7dcf630d.mjs} +1 -1
- package/dist/{index.2186bd36.mjs → index.9008d54c.mjs} +1 -1
- package/dist/{index.eccf6574.mjs → index.93b09268.mjs} +1 -1
- package/dist/{index.d1f6dd66.mjs → index.95b0f7f5.mjs} +1 -1
- package/dist/{index.5def9da7.mjs → index.96780357.mjs} +1 -1
- package/dist/{index.255f016c.mjs → index.9b8d0de7.mjs} +1 -1
- package/dist/{index.baeda2e1.mjs → index.9d353631.mjs} +1 -1
- package/dist/{index.b28a704f.mjs → index.9e5eab15.mjs} +1 -1
- package/dist/{index.c47c55d2.mjs → index.a3384e66.mjs} +1 -1
- package/dist/{index.e751b3ad.mjs → index.a889e1f0.mjs} +1 -1
- package/dist/{index.98d8e385.mjs → index.b0c8bf7d.mjs} +1 -1
- package/dist/{index.585c56c2.mjs → index.b0c8d29a.mjs} +1 -1
- package/dist/{index.88defcf5.mjs → index.b1f56e66.mjs} +1 -1
- package/dist/{index.ddc65ec9.mjs → index.bfb835a9.mjs} +1 -1
- package/dist/{index.a4868e2e.mjs → index.cc9cfbbc.mjs} +1 -1
- package/dist/{index.3e28f529.mjs → index.d552b591.mjs} +1 -1
- package/dist/{index.15f6f203.mjs → index.dc6c5c7c.mjs} +1 -1
- package/dist/{index.f35febce.mjs → index.e0b1afe0.mjs} +1 -1
- package/dist/{index.5ed3d1b8.mjs → index.e278bd59.mjs} +1 -1
- package/dist/{index.9b2f3427.mjs → index.e31e3db7.mjs} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{index.11007dde.mjs → index.f218d2f1.mjs} +1 -1
- package/dist/{index.c53a8678.mjs → index.fa89c5c8.mjs} +1 -1
- package/dist/{index.fac867ec.mjs → index.fcfe4e56.mjs} +1 -1
- package/dist/{index.f82b4518.mjs → index.fd8fb4a5.mjs} +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/{language.0238a2bb.mjs → language.d6a1849c.mjs} +1 -1
- package/dist/{large.c0e2e5e2.mjs → large.0a8ca190.mjs} +1 -1
- package/dist/{line.d6075059.mjs → line.ebcb7dab.mjs} +1 -1
- package/dist/{lpn.407d85bd.mjs → lpn.1d1e4768.mjs} +1 -1
- package/dist/{lpnAction.53153261.mjs → lpnAction.b26481e4.mjs} +1 -1
- package/dist/{lpnAction.e02fa075.mjs → lpnAction.cd5b7aa7.mjs} +1 -1
- package/dist/{lpnBatchAction.6616460e.mjs → lpnBatchAction.40f98816.mjs} +1 -1
- package/dist/{menuOne.01b2c0b4.mjs → menuOne.7d125654.mjs} +1 -1
- package/dist/{menuTwo.35fcbc35.mjs → menuTwo.46c8b970.mjs} +1 -1
- package/dist/{msg.3587e42c.mjs → msg.91f58378.mjs} +1 -1
- package/dist/{newBale.e62943b8.mjs → newBale.90588bd0.mjs} +1 -1
- package/dist/{newBale.fa567c88.mjs → newBale.e51a5aaf.mjs} +1 -1
- package/dist/{newLpn.2f06a7fb.mjs → newLpn.a19ce053.mjs} +1 -1
- package/dist/{notAloneAction.12f5c1f0.mjs → notAloneAction.e289ff12.mjs} +1 -1
- package/dist/{over.0897f137.mjs → over.13b511ab.mjs} +1 -1
- package/dist/{page.051e1c8c.mjs → page.c4821cc4.mjs} +1 -1
- package/dist/{print.34afe6a8.mjs → print.08bc5962.mjs} +1 -1
- package/dist/{printLabel.efb743ab.mjs → printLabel.83d4f9a6.mjs} +1 -1
- package/dist/{queryByLocationCode.5abdd79f.mjs → queryByLocationCode.df46cf21.mjs} +1 -1
- package/dist/{queryBySkuCode.9b53e304.mjs → queryBySkuCode.39bfe2d6.mjs} +1 -1
- package/dist/{sample.7c395c51.mjs → sample.d791b154.mjs} +1 -1
- package/dist/{search.49ecd7f6.mjs → search.a080cb08.mjs} +1 -1
- package/dist/{skuAction.8ed7a1c3.mjs → skuAction.37fab7ab.mjs} +1 -1
- package/dist/{skuCheck.279b82b0.mjs → skuCheck.67853719.mjs} +1 -1
- package/dist/{smallPage.dde66fc7.mjs → smallPage.57acfec8.mjs} +1 -1
- package/dist/{sowAction.b1db1fc0.mjs → sowAction.1cac1ba3.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{taskEntrance.7fe227a2.mjs → taskEntrance.18082375.mjs} +1 -1
- package/dist/{timezone.6ced3ba0.mjs → timezone.9574e603.mjs} +1 -1
- package/dist/{warehouse.94715780.mjs → warehouse.70d15a21.mjs} +1 -1
- package/package.json +2 -2
- package/src/components/page/process/screen/display/index.vue +2 -4
- package/src/components/ui/ErrorMsg/index.js +10 -3
- package/src/components/ui/ErrorMsg/index.vue +3 -2
- package/src/components/ui/ImgUpload/request.js +1 -1
- package/src/components/ui/Loading/index.js +9 -8
- package/src/components/ui/NoticeBar/index.js +10 -4
- package/src/components/ui/NoticeBar/index.vue +1 -2
- package/src/directive/Permissions.js +2 -2
- package/src/utils/Axios.js +12 -12
- package/src/utils/BarcodeResolve.js +5 -5
- package/src/utils/Print.js +9 -9
- package/src/utils/index.js +9 -9
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script>
|
|
24
|
-
import {lwCloseNoticeBar} from "./index";
|
|
25
24
|
|
|
26
25
|
/* 注意此组件不能使用 this.$XXX 的方法,因为没有注册组件是通过指令调用的 */
|
|
27
26
|
|
|
@@ -61,7 +60,7 @@ export default {
|
|
|
61
60
|
|
|
62
61
|
// 手动关闭
|
|
63
62
|
closeClick(){
|
|
64
|
-
lwCloseNoticeBar()
|
|
63
|
+
this.$lwCloseNoticeBar()
|
|
65
64
|
},
|
|
66
65
|
|
|
67
66
|
// 关闭弹框
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* */
|
|
6
6
|
|
|
7
7
|
import {Permissions} from "../utils/Permissions";
|
|
8
|
-
import {
|
|
8
|
+
import {lwErrMsg} from "../components/ui/ErrorMsg";
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
inserted(el, binding) {
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
el.parentNode && el.parentNode.removeChild(el)
|
|
27
27
|
}
|
|
28
28
|
} else {
|
|
29
|
-
|
|
29
|
+
lwErrMsg.show('权限校验失败,请检查传入数据是否正确')
|
|
30
30
|
throw new Error(
|
|
31
31
|
"权限校验失败,请检查传入数据是否正确! 像这样使用:<div v-permission=\"['admin','editor']\"></div>"
|
|
32
32
|
)
|
package/src/utils/Axios.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* @date 2022-02-10
|
|
6
6
|
* */
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import {axios} from "@bundled-es-modules/axios";
|
|
9
9
|
import {ApiUtils} from "./ApiUtils";
|
|
10
10
|
import {Warehouse} from "./Warehouse";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import {lwErrMsg} from "../components/ui/ErrorMsg";
|
|
12
|
+
import {lwLoading} from "../components/ui/Loading";
|
|
13
13
|
import {Language} from "./Language";
|
|
14
14
|
import {LocalStorage} from "./LocalStorage";
|
|
15
15
|
import {Timezone} from "./Timezone";
|
|
@@ -17,7 +17,7 @@ import {Timezone} from "./Timezone";
|
|
|
17
17
|
// 用于自定义处理http报错的问题,为false时候不显示报错信息,直接返回错误信息,通过catch接收
|
|
18
18
|
let errGetMe = false
|
|
19
19
|
|
|
20
|
-
const lwAxios =
|
|
20
|
+
const lwAxios = axios.create({
|
|
21
21
|
baseURL: import.meta.env.VITE_APP_BASE_URL,
|
|
22
22
|
timeout: 1000 * 60 * 30,
|
|
23
23
|
})
|
|
@@ -112,7 +112,7 @@ lwAxios.interceptors.request.use(
|
|
|
112
112
|
|
|
113
113
|
// 判断是否显示加载框
|
|
114
114
|
if (config.loading || config.loading === undefined){
|
|
115
|
-
|
|
115
|
+
lwLoading.show()
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
// 记录当前请求是否需要手动处理报错
|
|
@@ -121,7 +121,7 @@ lwAxios.interceptors.request.use(
|
|
|
121
121
|
return config
|
|
122
122
|
},
|
|
123
123
|
error => {
|
|
124
|
-
|
|
124
|
+
lwLoading.close()
|
|
125
125
|
console.error('请求异常: ', error)
|
|
126
126
|
return Promise.reject(error)
|
|
127
127
|
}
|
|
@@ -131,7 +131,7 @@ lwAxios.interceptors.request.use(
|
|
|
131
131
|
lwAxios.interceptors.response.use(
|
|
132
132
|
response => {
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
lwLoading.close()
|
|
135
135
|
|
|
136
136
|
let result = response.data
|
|
137
137
|
if (!result || !['none', 'success'].includes(result.code)) {
|
|
@@ -151,7 +151,7 @@ lwAxios.interceptors.response.use(
|
|
|
151
151
|
},
|
|
152
152
|
error => {
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
lwLoading.close()
|
|
155
155
|
console.error('接口返回异常: ', error)
|
|
156
156
|
|
|
157
157
|
let resp = error.response
|
|
@@ -164,19 +164,19 @@ lwAxios.interceptors.response.use(
|
|
|
164
164
|
if (resp){
|
|
165
165
|
if (resp.status === 401) {
|
|
166
166
|
ApiUtils.setToken(undefined)
|
|
167
|
-
|
|
167
|
+
lwErrMsg.show({ message: Language.get('wms_project.pda.utils.axios.loginOvertime', '登录超时,请重新登录') })
|
|
168
168
|
ApiUtils.delToken()
|
|
169
169
|
history.go(0)
|
|
170
170
|
return Promise.reject(resp)
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
if (resp.status === 404){
|
|
174
|
-
|
|
174
|
+
lwErrMsg.show({ message: Language.get('wms_project.pda.utils.axios.serveError', '请求失败,接口路径错误(404)') })
|
|
175
175
|
return Promise.reject(resp)
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
if (resp.data) {
|
|
179
|
-
|
|
179
|
+
lwErrMsg.show({
|
|
180
180
|
message: resp.data && resp.data.message ?
|
|
181
181
|
resp.data.message :
|
|
182
182
|
Language.get('wms_project.pda.utils.axios.unknownError', '未知错误(可能是系统正在升级或异常)请稍后再试')
|
|
@@ -186,7 +186,7 @@ lwAxios.interceptors.response.use(
|
|
|
186
186
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
lwErrMsg.show({message: Language.get('wms_project.pda.utils.axios.network', '请求失败,请检查网络连接')})
|
|
190
190
|
return Promise.reject(resp)
|
|
191
191
|
}
|
|
192
192
|
)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* */
|
|
6
6
|
|
|
7
7
|
import {common} from "../api/common/common";
|
|
8
|
-
import {
|
|
8
|
+
import {lwErrMsg} from "../components/ui/ErrorMsg";
|
|
9
9
|
import {DateTime} from "luxon";
|
|
10
10
|
import {Language} from "./Language";
|
|
11
11
|
|
|
@@ -181,7 +181,7 @@ export const BarcodeResolve = {
|
|
|
181
181
|
const {componentId, barcode, ownerId, createRule} = param
|
|
182
182
|
|
|
183
183
|
if (!componentId){
|
|
184
|
-
|
|
184
|
+
lwErrMsg.show(
|
|
185
185
|
Language.get('wms_project.pda.utils.BarcodeResolve.qemvmsdn','获取条码解析规则失败,未指定输入框解析ID')
|
|
186
186
|
)
|
|
187
187
|
return {
|
|
@@ -217,7 +217,7 @@ export const BarcodeResolve = {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
}else {
|
|
220
|
-
|
|
220
|
+
lwErrMsg.show(
|
|
221
221
|
Language.get('wms_project.pda.utils.BarcodeResolve.bmkxoyxk','获取条码解析规则失败,未获取到解析规则。输入框解析ID:')+ componentId
|
|
222
222
|
)
|
|
223
223
|
return {
|
|
@@ -272,7 +272,7 @@ export const BarcodeResolve = {
|
|
|
272
272
|
) {
|
|
273
273
|
|
|
274
274
|
if (!typeResolvers.primaryValid || !typeResolvers.primaryValid.field){
|
|
275
|
-
|
|
275
|
+
lwErrMsg.show(
|
|
276
276
|
Language.get('wms_project.pda.utils.BarcodeResolve.stpryqma','主字段配置有误,请联系管理员重新配置')
|
|
277
277
|
)
|
|
278
278
|
return {
|
|
@@ -309,7 +309,7 @@ export const BarcodeResolve = {
|
|
|
309
309
|
|
|
310
310
|
|
|
311
311
|
// 走到这就是所有解析规则都没过了且没有使用默认规则
|
|
312
|
-
|
|
312
|
+
lwErrMsg.show(
|
|
313
313
|
Language.get('wms_project.pda.utils.BarcodeResolve.agyiotes','条码解析失败!输入框ID:') + componentId
|
|
314
314
|
)
|
|
315
315
|
|
package/src/utils/Print.js
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
import {AppPower} from "./AppPower";
|
|
8
8
|
import {lwToast} from "./Toast";
|
|
9
9
|
import {print} from "../api/common/Print";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import {lwLoading} from "../components/ui/Loading";
|
|
11
|
+
import {lwErrMsg} from "../components/ui/ErrorMsg";
|
|
12
|
+
import {lwNoticeBar} from "../components/ui/NoticeBar";
|
|
13
13
|
import {Language} from "./Language";
|
|
14
14
|
|
|
15
15
|
export const Print = {
|
|
@@ -87,7 +87,7 @@ export const Print = {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
const message = msg + Language.get('','打印模板未配置!请前往【打印设置栏】配置模板。模板编码:') + templateCode
|
|
90
|
-
needWarn ?
|
|
90
|
+
needWarn ? lwErrMsg.show(message) : lwNoticeBar.show({message, showTime: 8, type:'warning'})
|
|
91
91
|
return {success: false, printData: {}}
|
|
92
92
|
},
|
|
93
93
|
|
|
@@ -112,11 +112,11 @@ export const Print = {
|
|
|
112
112
|
|
|
113
113
|
if (!taskId && !taskNo) {
|
|
114
114
|
msg = Language.get('wms_project.pda.utils.print.error', '打印数据有误')
|
|
115
|
-
|
|
115
|
+
lwErrMsg.show(msg)
|
|
116
116
|
throw new Error(msg)
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
lwLoading.show(Language.get('wms_project.pda.utils.print.printing', '正在打印') + '...')
|
|
120
120
|
|
|
121
121
|
try {
|
|
122
122
|
await this.asyncGeyPrintData({
|
|
@@ -128,7 +128,7 @@ export const Print = {
|
|
|
128
128
|
billStatusList,
|
|
129
129
|
})
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
lwLoading.close()
|
|
132
132
|
|
|
133
133
|
lwToast.success({
|
|
134
134
|
message: Language.get('wms_project.pda.utils.print.success', '打印成功'),
|
|
@@ -137,9 +137,9 @@ export const Print = {
|
|
|
137
137
|
}catch (e){
|
|
138
138
|
console.log(e,'方法错误')
|
|
139
139
|
if (e.msg){
|
|
140
|
-
|
|
140
|
+
lwErrMsg.show(e.msg)
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
lwLoading.close()
|
|
143
143
|
throw new Error(e)
|
|
144
144
|
}
|
|
145
145
|
|
package/src/utils/index.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import {DateTime} from "./DateTime"
|
|
8
8
|
import {ScanRule} from "./ScanRule"
|
|
9
9
|
import {AppPower} from './AppPower'
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import {lwLoading} from "../components/ui/Loading"
|
|
11
|
+
import {lwErrMsg} from "../components/ui/ErrorMsg"
|
|
12
12
|
import lwAxios from './Axios'
|
|
13
13
|
import {GetImgSrc} from "./GetImgSrc";
|
|
14
14
|
import {lwToast} from "./Toast";
|
|
@@ -32,7 +32,7 @@ import {BarcodeResolve} from "./BarcodeResolve";
|
|
|
32
32
|
import {lwDialog} from "./Dialog";
|
|
33
33
|
import {Timezone} from "./Timezone";
|
|
34
34
|
import {Utils} from "./Utils";
|
|
35
|
-
import {
|
|
35
|
+
import {lwNoticeBar} from "../components/ui/NoticeBar";
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -40,12 +40,12 @@ export const utils = (Vue) => {
|
|
|
40
40
|
Vue.prototype.$lwDate = DateTime
|
|
41
41
|
Vue.prototype.$lwScanRule = ScanRule
|
|
42
42
|
Vue.prototype.$lwAppPower = AppPower
|
|
43
|
-
Vue.prototype.$lwShowLoading =
|
|
44
|
-
Vue.prototype.$lwCloseLoading =
|
|
45
|
-
Vue.prototype.$lwShowErrorMsg =
|
|
46
|
-
Vue.prototype.$
|
|
47
|
-
Vue.prototype.$
|
|
48
|
-
Vue.prototype.$
|
|
43
|
+
Vue.prototype.$lwShowLoading = lwLoading.show
|
|
44
|
+
Vue.prototype.$lwCloseLoading = lwLoading.close
|
|
45
|
+
Vue.prototype.$lwShowErrorMsg = lwErrMsg.show
|
|
46
|
+
Vue.prototype.$lwCloseErrorMsg = lwErrMsg.close
|
|
47
|
+
Vue.prototype.$lwShowNoticeBar = lwNoticeBar.show
|
|
48
|
+
Vue.prototype.$lwCloseNoticeBar = lwNoticeBar.close
|
|
49
49
|
Vue.prototype.$lwAxios = lwAxios
|
|
50
50
|
Vue.prototype.$lwGetImgSrc = GetImgSrc
|
|
51
51
|
Vue.prototype.$lwToast = lwToast
|