@logwire/logwire-wms-pda-ui 1.2.0 → 3.1.0

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.
Files changed (658) hide show
  1. package/README.md +117 -117
  2. package/dist/BlockInfo.1c8ece6a.mjs +47 -0
  3. package/dist/InboundQualityExecuteView.3c816a1e.mjs +23 -0
  4. package/dist/InboundQualityTaskListView.14185db1.mjs +23 -0
  5. package/dist/InboundReceiveAllocSkuExecuteView.ad248f9e.mjs +23 -0
  6. package/dist/InboundReceiveAllocSnExecuteView.c8a4abc8.mjs +23 -0
  7. package/dist/InboundReceiveAllocTabListView.9639b998.mjs +23 -0
  8. package/dist/InboundReceiveCaseExecuteView.3f937231.mjs +217 -0
  9. package/dist/InboundReceiveCaseScanView.a88b4178.mjs +83 -0
  10. package/dist/InboundReceiveLpnBatchExecuteView.6034a9e1.mjs +23 -0
  11. package/dist/InboundReceiveLpnExecuteView.d3116e23.mjs +23 -0
  12. package/dist/InboundReceiveLpnScanView.4db78898.mjs +23 -0
  13. package/dist/InboundReceiveRandomSkuExecuteView.1b6e0637.mjs +23 -0
  14. package/dist/InboundReceiveRandomSkuScanView.1821d2c4.mjs +23 -0
  15. package/dist/InboundReceiveRandomSkuSnExecuteView.2f3cfcea.mjs +23 -0
  16. package/dist/InboundReceiveSkuAdvanceView.a6b4568f.mjs +23 -0
  17. package/dist/InboundReceiveSkuDirectView.811bf351.mjs +23 -0
  18. package/dist/InboundReceiveSkuScanView.5e614e01.mjs +23 -0
  19. package/dist/LwInboundSortingAsnView.3e1106d7.mjs +23 -0
  20. package/dist/LwInboundSortingByContainerView.33299f9f.mjs +23 -0
  21. package/dist/LwInboundSortingByOrderView.2f8db636.mjs +23 -0
  22. package/dist/LwInboundSortingIndexView.c9ed07c1.mjs +23 -0
  23. package/dist/LwOutboundReprintBoxView.72539c87.mjs +180 -0
  24. package/dist/LwOutboundStockoutExecuteView.3fe57cee.mjs +76 -0
  25. package/dist/LwOutboundStockoutListView.d9a1e1bd.mjs +123 -0
  26. package/dist/MoveRandomWholeCaseView.c2742890.mjs +20 -0
  27. package/dist/MoveTaskWholeCaseDownView.5250c675.mjs +20 -0
  28. package/dist/MoveTaskWholeCaseUpView.824a2aee.mjs +20 -0
  29. package/dist/MoveTaskWholeIndexView.4de7edfc.mjs +20 -0
  30. package/dist/OutboundBlockBoxListView.dedc1292.mjs +83 -0
  31. package/dist/OutboundBlockExecuteView.db1ab452.mjs +166 -0
  32. package/dist/action.017a327c.mjs +26 -0
  33. package/dist/action.01da8ae9.mjs +26 -0
  34. package/dist/action.02bbb588.mjs +26 -0
  35. package/dist/action.034382ff.mjs +26 -0
  36. package/dist/action.04ee34d5.mjs +26 -0
  37. package/dist/action.0a1d10ad.mjs +26 -0
  38. package/dist/action.0cfc710c.mjs +26 -0
  39. package/dist/action.2baf8260.mjs +26 -0
  40. package/dist/action.4a3773c1.mjs +26 -0
  41. package/dist/action.4dc11c91.mjs +26 -0
  42. package/dist/action.54fe5fe2.mjs +26 -0
  43. package/dist/action.5aa67994.mjs +26 -0
  44. package/dist/action.5bb65cf2.mjs +22 -0
  45. package/dist/action.68f0c9ef.mjs +26 -0
  46. package/dist/action.6ba45e3b.mjs +26 -0
  47. package/dist/action.6be6f5d3.mjs +26 -0
  48. package/dist/action.7424605b.mjs +26 -0
  49. package/dist/action.88067120.mjs +26 -0
  50. package/dist/action.8e26827f.mjs +26 -0
  51. package/dist/action.8f655f2e.mjs +26 -0
  52. package/dist/action.8ffbd19f.mjs +26 -0
  53. package/dist/action.95aa8c94.mjs +26 -0
  54. package/dist/action.b0306402.mjs +26 -0
  55. package/dist/action.c1816f01.mjs +26 -0
  56. package/dist/action.ec9705f5.mjs +26 -0
  57. package/dist/action.eff389f9.mjs +26 -0
  58. package/dist/action.f03dbf79.mjs +26 -0
  59. package/dist/action.f8726b24.mjs +22 -0
  60. package/dist/add.2e5ce839.mjs +26 -0
  61. package/dist/addOrder.4f228676.mjs +26 -0
  62. package/dist/allCheck.c5c9395b.mjs +26 -0
  63. package/dist/aloneAction.43f83144.mjs +26 -0
  64. package/dist/boxAction.3d4eb6d9.mjs +26 -0
  65. package/dist/caseAction.74093bb0.mjs +26 -0
  66. package/dist/console.4232cad5.mjs +26 -0
  67. package/dist/consoleInfo.3eefa9b6.mjs +26 -0
  68. package/dist/content.44aa1b2c.mjs +26 -0
  69. package/dist/contentInfo.4b40e2e7.mjs +26 -0
  70. package/dist/customer.cc356336.mjs +26 -0
  71. package/dist/device.807dfeb7.mjs +26 -0
  72. package/dist/generate.72d6586b.mjs +26 -0
  73. package/dist/home.862fcd6d.mjs +22 -0
  74. package/dist/index.00779596.mjs +26 -0
  75. package/dist/index.11007dde.mjs +26 -0
  76. package/dist/index.1156af3a.mjs +26 -0
  77. package/dist/index.15f6f203.mjs +26 -0
  78. package/dist/index.1accff9d.mjs +26 -0
  79. package/dist/index.1fa9c485.mjs +26 -0
  80. package/dist/index.2186bd36.mjs +26 -0
  81. package/dist/index.22aef932.mjs +60561 -0
  82. package/dist/index.255f016c.mjs +26 -0
  83. package/dist/index.2833a061.mjs +26 -0
  84. package/dist/index.3330acfb.mjs +26 -0
  85. package/dist/index.3e28f529.mjs +26 -0
  86. package/dist/index.41e9615a.mjs +26 -0
  87. package/dist/index.5307f035.mjs +26 -0
  88. package/dist/index.53edfcba.mjs +22 -0
  89. package/dist/index.585c56c2.mjs +26 -0
  90. package/dist/index.5c3a5656.mjs +26 -0
  91. package/dist/index.5def9da7.mjs +26 -0
  92. package/dist/index.5ed3d1b8.mjs +26 -0
  93. package/dist/index.65987267.mjs +25 -0
  94. package/dist/index.68be1564.mjs +26 -0
  95. package/dist/index.69a0e492.mjs +58 -0
  96. package/dist/index.69c12a25.mjs +26 -0
  97. package/dist/index.6c35d72c.mjs +26 -0
  98. package/dist/index.6ce411ca.mjs +26 -0
  99. package/dist/index.88defcf5.mjs +26 -0
  100. package/dist/index.8fb5154c.mjs +26 -0
  101. package/dist/index.962f2cd9.mjs +45 -0
  102. package/dist/index.98d8e385.mjs +26 -0
  103. package/dist/index.9b2f3427.mjs +26 -0
  104. package/dist/index.9cc1b8cb.mjs +26 -0
  105. package/dist/index.a4868e2e.mjs +26 -0
  106. package/dist/index.af8fef71.mjs +26 -0
  107. package/dist/index.b13b9084.mjs +26 -0
  108. package/dist/index.b28a704f.mjs +26 -0
  109. package/dist/index.baeda2e1.mjs +26 -0
  110. package/dist/index.bc0f7742.mjs +26 -0
  111. package/dist/index.bcce7d7e.mjs +26 -0
  112. package/dist/index.bff4ac60.mjs +22 -0
  113. package/dist/index.c47c55d2.mjs +26 -0
  114. package/dist/index.c53a8678.mjs +22 -0
  115. package/dist/index.d1f6dd66.mjs +76 -0
  116. package/dist/index.db5c6017.mjs +26 -0
  117. package/dist/index.ddc65ec9.mjs +26 -0
  118. package/dist/index.de826989.mjs +38 -0
  119. package/dist/index.e751b3ad.mjs +26 -0
  120. package/dist/index.eccf6574.mjs +26 -0
  121. package/dist/index.es.js +5 -0
  122. package/dist/index.f35febce.mjs +26 -0
  123. package/dist/index.f82b4518.mjs +26 -0
  124. package/dist/index.fac867ec.mjs +26 -0
  125. package/dist/index.umd.js +24 -0
  126. package/dist/language.0238a2bb.mjs +26 -0
  127. package/dist/large.c0e2e5e2.mjs +26 -0
  128. package/dist/line.d6075059.mjs +26 -0
  129. package/dist/lpn.407d85bd.mjs +26 -0
  130. package/dist/lpnAction.53153261.mjs +26 -0
  131. package/dist/lpnAction.e02fa075.mjs +26 -0
  132. package/dist/lpnBatchAction.6616460e.mjs +26 -0
  133. package/dist/menuOne.01b2c0b4.mjs +38 -0
  134. package/dist/menuTwo.35fcbc35.mjs +36 -0
  135. package/dist/msg.3587e42c.mjs +26 -0
  136. package/dist/newBale.e62943b8.mjs +26 -0
  137. package/dist/newBale.fa567c88.mjs +26 -0
  138. package/dist/newLpn.2f06a7fb.mjs +26 -0
  139. package/dist/notAloneAction.12f5c1f0.mjs +26 -0
  140. package/dist/over.0897f137.mjs +26 -0
  141. package/dist/page.051e1c8c.mjs +26 -0
  142. package/dist/print.34afe6a8.mjs +26 -0
  143. package/dist/printLabel.efb743ab.mjs +26 -0
  144. package/dist/queryByLocationCode.5abdd79f.mjs +26 -0
  145. package/dist/queryBySkuCode.9b53e304.mjs +26 -0
  146. package/dist/sample.7c395c51.mjs +26 -0
  147. package/dist/search.49ecd7f6.mjs +26 -0
  148. package/dist/skuAction.8ed7a1c3.mjs +26 -0
  149. package/dist/skuCheck.279b82b0.mjs +26 -0
  150. package/dist/smallPage.dde66fc7.mjs +26 -0
  151. package/dist/sowAction.b1db1fc0.mjs +26 -0
  152. package/dist/style.css +1 -0
  153. package/dist/taskEntrance.7fe227a2.mjs +26 -0
  154. package/dist/timezone.6ced3ba0.mjs +26 -0
  155. package/dist/warehouse.94715780.mjs +26 -0
  156. package/package.json +57 -43
  157. package/src/api/common/Msg.js +34 -34
  158. package/src/api/common/Print.js +9 -1
  159. package/src/api/common/Task.js +16 -0
  160. package/src/api/common/UUID.js +2 -0
  161. package/src/api/common/User.js +15 -0
  162. package/src/api/common/barcode.js +165 -165
  163. package/src/api/common/common.js +72 -48
  164. package/src/api/inbound/index.js +3 -1
  165. package/src/api/inbound/printLabel.js +34 -0
  166. package/src/api/inbound/quality.js +1 -1
  167. package/src/api/inbound/receive.js +20 -0
  168. package/src/api/inbound/sorting.js +198 -0
  169. package/src/api/inner/check/action.js +32 -0
  170. package/src/api/inner/count/console.js +61 -0
  171. package/src/api/inner/dead/action.js +24 -24
  172. package/src/api/inner/dead/large.js +78 -78
  173. package/src/api/inner/dead/query.js +17 -0
  174. package/src/api/inner/dead/small.js +8 -0
  175. package/src/api/inner/disposeAbnormal/action.js +24 -0
  176. package/src/api/inner/materialApply/index.js +1 -1
  177. package/src/api/inner/move/quickMove.js +51 -0
  178. package/src/api/inner/move/taskMove.js +176 -19
  179. package/src/api/inner/quality/action.js +2 -2
  180. package/src/api/inner/quality/sample.js +9 -0
  181. package/src/api/inner/snCheck/snCheck.js +58 -0
  182. package/src/api/inventory/inventory.js +23 -0
  183. package/src/api/outbound/bale/aloneBale/action.js +123 -123
  184. package/src/api/outbound/bale/aloneBale/index.js +24 -24
  185. package/src/api/outbound/bale/baleChange/action.js +51 -51
  186. package/src/api/outbound/bale/baleChange/addCheck.js +33 -33
  187. package/src/api/outbound/bale/checkBale/action.js +141 -132
  188. package/src/api/outbound/bale/checkBale/index.js +52 -52
  189. package/src/api/outbound/bale/packTableConfig.js +25 -0
  190. package/src/api/outbound/handover/index.js +42 -33
  191. package/src/api/outbound/handover/lpn.js +33 -33
  192. package/src/api/outbound/handover/mixin.js +42 -42
  193. package/src/api/outbound/handover/pageBox.js +24 -24
  194. package/src/api/outbound/lpnPack/index.js +79 -0
  195. package/src/api/outbound/packCollect/index.js +24 -0
  196. package/src/api/outbound/pick/sow.js +9 -0
  197. package/src/api/outbound/pickMerge/index.js +9 -0
  198. package/src/api/outbound/reprint-box/index.js +9 -0
  199. package/src/api/outbound/sow/action.js +9 -0
  200. package/src/api/outbound/sow/index.js +18 -0
  201. package/src/api/outbound/sowCollect/index.js +24 -0
  202. package/src/api/outbound/summary/box.js +9 -0
  203. package/src/api/process/order.js +149 -0
  204. package/src/api/process/work_process.js +17 -0
  205. package/src/api/process/work_process_screen.js +27 -0
  206. package/src/api/process/work_table.js +120 -0
  207. package/src/api/receive/putaway.js +32 -1
  208. package/src/assets/css/changeVant.less +29 -29
  209. package/src/assets/css/global.less +468 -428
  210. package/src/assets/css/var.less +99 -99
  211. package/src/assets/css//345/205/250/345/261/200/346/240/267/345/274/217.md +1 -1
  212. package/src/assets/img/lwInputIcon/scanIcon.png +0 -0
  213. package/src/assets/img/lwLoginModel/captcha.png +0 -0
  214. package/src/assets/img/menu/packCollect.png +0 -0
  215. package/src/assets/img/menu/sorting.png +0 -0
  216. package/src/assets/img/menu/sowCollect.png +0 -0
  217. package/src/components/module/AbnormalInput/index.js +11 -11
  218. package/src/components/module/AbnormalInput/index.vue +322 -322
  219. package/src/components/module/AbnormalInput//345/274/202/345/270/270/350/276/223/345/205/245/346/250/241/345/235/227.md +1 -1
  220. package/src/components/module/InnerAbnormal/index.js +11 -11
  221. package/src/components/module/InnerAbnormal/index.vue +120 -120
  222. package/src/components/module/InnerAbnormal//345/234/250/345/272/223/345/274/202/345/270/270/346/250/241/345/235/227.md +1 -1
  223. package/src/components/module/Login/index.vue +84 -5
  224. package/src/components/module/Login//347/231/273/345/275/225/346/250/241/345/235/227.md +1 -1
  225. package/src/components/module/Lot/index.vue +205 -205
  226. package/src/components/module/Lot//346/211/271/346/254/241/345/261/236/346/200/247.md +4 -4
  227. package/src/components/module/LotLook/index.vue +93 -93
  228. package/src/components/module/LotLook//346/225/260/346/215/256/346/237/245/347/234/213.md +3 -3
  229. package/src/components/module/Menu//350/217/234/345/215/225/346/240/217.md +1 -1
  230. package/src/components/module/MsgItem/index.vue +124 -124
  231. package/src/components/module/MsgItem//346/266/210/346/201/257/345/210/227/350/241/250/345/217/212/345/210/206/351/241/265/346/250/241/345/235/227.md +1 -1
  232. package/src/components/module/OffLinePopup/index.js +12 -0
  233. package/src/components/module/OffLinePopup/index.vue +110 -0
  234. package/src/components/module/OffLinePopup//344/270/213/347/272/277/347/220/206/347/224/261/345/274/271/346/241/206.md +0 -0
  235. package/src/components/module/OnLine/index.vue +217 -195
  236. package/src/components/module/OnLine//344/270/212/344/270/213/347/272/277/347/256/241/347/220/206/346/250/241/345/235/227.md +1 -1
  237. package/src/components/module/ReceiveAbnormal/index.vue +956 -956
  238. package/src/components/module/ReceiveAbnormal//346/224/266/350/264/247/345/274/202/345/270/270/346/250/241/345/235/227.md +1 -1
  239. package/src/components/module/ScanDataList/index.vue +357 -333
  240. package/src/components/module/ScanDataList//346/211/253/346/217/217/346/225/260/346/215/256/345/261/225/347/244/272/345/217/212/345/210/240/351/231/244.md +2 -2
  241. package/src/components/module/SkuInfo/index.vue +68 -68
  242. package/src/components/module/SkuInfo//346/237/245/347/234/213/345/225/206/345/223/201/344/277/241/346/201/257.md +4 -4
  243. package/src/components/module/SnSearchSku/index.js +11 -0
  244. package/src/components/module/SnSearchSku/index.vue +150 -0
  245. package/src/components/module/SnSearchSku//351/200/232/350/277/207/345/272/217/345/210/227/345/217/267/346/220/234/347/264/242/345/225/206/345/223/201/345/217/267.md +2 -0
  246. package/src/components/module/SystemInfo/index.vue +229 -227
  247. package/src/components/module/SystemInfo//347/263/273/347/273/237/344/277/241/346/201/257/344/270/216/344/270/212/347/272/277/347/212/266/346/200/201/346/250/241/345/235/227.md +1 -1
  248. package/src/components/module/index.js +54 -48
  249. package/src/components/page/common/Device/index.vue +186 -186
  250. package/src/components/page/common/Language/index.vue +12 -7
  251. package/src/components/page/common/Login/index.vue +2 -2
  252. package/src/components/page/common/Msg/index.vue +8 -1
  253. package/src/components/page/common/My/index.vue +6 -5
  254. package/src/components/page/common/Print/index.vue +311 -311
  255. package/src/components/page/common/Task/components/itemContent.vue +74 -0
  256. package/src/components/page/common/Task/components/itemHeader.vue +61 -0
  257. package/src/components/page/common/Task/components/lookTaskContentPopup.vue +180 -0
  258. package/src/components/page/common/Task/components/overTaskPopup.vue +108 -0
  259. package/src/components/page/common/Task/components/taskItem.vue +87 -0
  260. package/src/components/page/common/Task/{index.js → index/index.js} +0 -0
  261. package/src/components/page/common/Task/{index.vue → index/index.vue} +80 -266
  262. package/src/components/page/common/Task/{ → index/}/344/273/273/345/212/241/351/241/265.md +0 -0
  263. package/src/components/page/common/Task/searchTask/index.js +11 -0
  264. package/src/components/page/common/Task/searchTask/index.vue +196 -0
  265. package/src/components/page/common/Task/searchTask//344/273/273/345/212/241/351/241/265/346/220/234/347/264/242.md +1 -0
  266. package/src/components/page/common/Timezone/index.js +11 -11
  267. package/src/components/page/common/Timezone/index.vue +85 -82
  268. package/src/components/page/common/Warehouse/index.vue +221 -221
  269. package/src/components/page/common/index.js +45 -42
  270. package/src/components/page/config/masterLocation/masterLocationConfig/action/index.vue +33 -20
  271. package/src/components/page/config/masterLocation/masterLocationConfig/index/index.vue +129 -112
  272. package/src/components/page/config/masterLocation/masterLocationQuery/action/queryBySkuCode.vue +1 -0
  273. package/src/components/page/config/newProject/action/index.vue +16 -24
  274. package/src/components/page/count/components/CountBoard.vue +6 -1
  275. package/src/components/page/count/components/RandomCount.vue +168 -154
  276. package/src/components/page/count/console/components/itemContent.vue +74 -0
  277. package/src/components/page/count/console/components/itemHeader.vue +61 -0
  278. package/src/components/page/count/console/components/lookTaskContentPopup.vue +180 -0
  279. package/src/components/page/count/console/components/overTaskPopup.vue +108 -0
  280. package/src/components/page/count/console/components/randomCountItem.vue +146 -0
  281. package/src/components/page/count/console/components/taskItem.vue +87 -0
  282. package/src/components/page/count/console/index/index.js +11 -0
  283. package/src/components/page/count/console/index/index.vue +922 -0
  284. package/src/components/page/count/console/index//347/233/230/347/202/271/346/216/247/345/210/266/345/217/260.md +0 -0
  285. package/src/components/page/count/index.js +4 -0
  286. package/src/components/page/count/inv/action/index.vue +64 -10
  287. package/src/components/page/count/inv/index/index.vue +13 -3
  288. package/src/components/page/count/loc/action/index.vue +561 -546
  289. package/src/components/page/count/loc/index/index.vue +8 -2
  290. package/src/components/page/count//347/233/230/347/202/271.md +0 -0
  291. package/src/components/page/inbound/components/AllocScanListItem.vue +14 -2
  292. package/src/components/page/inbound/components/AsnInfo.vue +17 -2
  293. package/src/components/page/inbound/components/AsnSkuInfo.vue +17 -2
  294. package/src/components/page/inbound/components/QualityCard.vue +552 -171
  295. package/src/components/page/inbound/components/SearchBar.vue +1 -1
  296. package/src/components/page/inbound/components/SkuReceiveInfo.vue +2 -2
  297. package/src/components/page/inbound/components/SnsList.vue +103 -103
  298. package/src/components/page/inbound/components/SortingAsnInfo.vue +243 -0
  299. package/src/components/page/inbound/components/SortingBoxInfo.vue +118 -0
  300. package/src/components/page/inbound/components/printLabelPopup.vue +353 -0
  301. package/src/components/page/inbound/index.js +10 -2
  302. package/src/components/page/inbound/receive/home/index.vue +29 -16
  303. package/src/components/page/inbound/receive/index/index.vue +101 -92
  304. package/src/components/page/inbound/receive/printLabel/index.js +10 -0
  305. package/src/components/page/inbound/receive/printLabel/index.vue +209 -0
  306. package/src/components/page/inbound/receive/printLabel//346/211/223/345/215/260/346/240/207/347/255/276.md +0 -0
  307. package/src/components/page/inbound/receive/quality/LwInboundQualityExecutePage.vue +457 -457
  308. package/src/components/page/inbound/receive/quality/LwInboundQualityTaskListPage.vue +195 -164
  309. package/src/components/page/inbound/receive/receive-alloc/LwInboundReceiveAllocSkuExecutePage.vue +598 -595
  310. package/src/components/page/inbound/receive/receive-alloc/LwInboundReceiveAllocSnExecutePage.vue +235 -233
  311. package/src/components/page/inbound/receive/receive-case/LwInboundReceiveCaseExecutePage.vue +327 -312
  312. package/src/components/page/inbound/receive/receive-case/LwInboundReceiveCaseScanPage.vue +92 -80
  313. package/src/components/page/inbound/receive/receive-lpn/LwInboundReceiveLpnBatchExecutePage.vue +385 -386
  314. package/src/components/page/inbound/receive/receive-lpn/LwInboundReceiveLpnExecutePage.vue +222 -216
  315. package/src/components/page/inbound/receive/receive-lpn/LwInboundReceiveLpnScanPage.vue +80 -80
  316. package/src/components/page/inbound/receive/receive-random/LwInboundReceiveRandomSkuExecutePage.vue +345 -340
  317. package/src/components/page/inbound/receive/receive-random/LwInboundReceiveRandomSkuScanPage.vue +111 -111
  318. package/src/components/page/inbound/receive/receive-random/LwInboundReceiveRandomSkuSnExecutePage.vue +345 -340
  319. package/src/components/page/inbound/receive/receive-sku/LwInboundReceiveSkuAdvancePage.vue +373 -330
  320. package/src/components/page/inbound/receive/receive-sku/LwInboundReceiveSkuDirectPage.vue +467 -424
  321. package/src/components/page/inbound/receive/receive-sku/LwInboundReceiveSkuScanPage.vue +162 -161
  322. package/src/components/page/inbound/sorting/LwInboundSortingAsnPage.vue +81 -0
  323. package/src/components/page/inbound/sorting/LwInboundSortingByContainerPage.vue +588 -0
  324. package/src/components/page/inbound/sorting/LwInboundSortingByOrderPage.vue +548 -0
  325. package/src/components/page/inbound/sorting/LwInboundSortingIndexPage.vue +59 -0
  326. package/src/components/page/inbound/sorting/index.js +22 -0
  327. package/src/components/page/inbound/sorting//345/210/206/346/213/243.md +0 -0
  328. package/src/components/page/inbound/unload/action/index.js +11 -0
  329. package/src/components/page/inbound/unload/action/index.vue +557 -0
  330. package/src/components/page/inbound/unload/add/index.js +11 -0
  331. package/src/components/page/inbound/unload/add/index.vue +308 -0
  332. package/src/components/page/inbound/unload/index/index.js +11 -0
  333. package/src/components/page/inbound/unload/index/index.vue +159 -0
  334. package/src/components/page/inbound/unload/index.js +15 -0
  335. package/src/components/page/inbound/unload//345/215/270/350/264/247.md +0 -0
  336. package/src/components/page/index.js +41 -41
  337. package/src/components/page/inner/abnormalMove/index/index.vue +466 -466
  338. package/src/components/page/inner/borrow/action/index.vue +875 -831
  339. package/src/components/page/inner/borrow/index/index.vue +249 -249
  340. package/src/components/page/inner/caseQuickMove/index/index.js +11 -0
  341. package/src/components/page/inner/caseQuickMove/index/index.vue +431 -0
  342. package/src/components/page/inner/caseQuickMove//351/232/217/346/234/272/345/277/253/351/200/237/347/247/273/345/212/250-/346/225/264/347/256/261.md +0 -0
  343. package/src/components/page/inner/check/action/action.vue +867 -0
  344. package/src/components/page/inner/check/action/index.js +11 -0
  345. package/src/components/page/inner/dead/components/abnPopup.vue +83 -83
  346. package/src/components/page/inner/dead/components/bagItem.vue +110 -104
  347. package/src/components/page/inner/dead/components/boxListItem.vue +135 -135
  348. package/src/components/page/inner/dead/components/dataInfo.vue +94 -94
  349. package/src/components/page/inner/dead/components/lackPopup.vue +190 -190
  350. package/src/components/page/inner/dead/components/lpnListItem.vue +115 -115
  351. package/src/components/page/inner/dead/components/taskItem.vue +621 -570
  352. package/src/components/page/inner/dead/components/waitOverLpn.vue +74 -74
  353. package/src/components/page/inner/dead/large/index.vue +381 -376
  354. package/src/components/page/inner/dead/putaway/action/index.js +11 -11
  355. package/src/components/page/inner/dead/putaway/action/index.vue +131 -131
  356. package/src/components/page/inner/dead/putaway/components/collapseItem.vue +128 -128
  357. package/src/components/page/inner/dead/putaway/index/index.js +11 -11
  358. package/src/components/page/inner/dead/putaway/index/index.vue +63 -63
  359. package/src/components/page/inner/dead/query/action/action.vue +809 -0
  360. package/src/components/page/inner/dead/query/action/index.js +11 -0
  361. package/src/components/page/inner/dead/query/index/index.js +11 -0
  362. package/src/components/page/inner/dead/query/index/index.vue +130 -0
  363. package/src/components/page/inner/dead/small/index.js +11 -11
  364. package/src/components/page/inner/dead/small/index.vue +27 -13
  365. package/src/components/page/inner/dead/taskEntrance/index.js +11 -11
  366. package/src/components/page/inner/disposeAbnormal/action/index.vue +634 -524
  367. package/src/components/page/inner/disposeAbnormal/components/abnInfo/index.vue +5 -1
  368. package/src/components/page/inner/disposeAbnormal/components/disposePopup/index.vue +308 -229
  369. package/src/components/page/inner/disposeAbnormal/components/searchBar/index.vue +264 -264
  370. package/src/components/page/inner/disposeAbnormal/index/index.vue +248 -248
  371. package/src/components/page/inner/fragQuickMove/action/index.js +11 -0
  372. package/src/components/page/inner/fragQuickMove/action/index.vue +498 -0
  373. package/src/components/page/inner/fragQuickMove/index/index.js +11 -0
  374. package/src/components/page/inner/fragQuickMove/index/index.vue +222 -0
  375. package/src/components/page/inner/fragQuickMove//351/232/217/346/234/272/345/277/253/351/200/237/347/247/273/345/212/250-/351/233/266/346/225/243.md +0 -0
  376. package/src/components/page/inner/index.js +30 -2
  377. package/src/components/page/inner/lpnMove/action/index.vue +244 -243
  378. package/src/components/page/inner/lpnMove/index/index.vue +155 -155
  379. package/src/components/page/inner/materialApply/action/index.js +2 -2
  380. package/src/components/page/inner/materialApply/action/index.vue +555 -555
  381. package/src/components/page/inner/materialApply/generate/index.js +2 -2
  382. package/src/components/page/inner/materialApply/generate/index.vue +385 -385
  383. package/src/components/page/inner/movePutAway/index/index.vue +363 -363
  384. package/src/components/page/inner/quality/action/index.vue +713 -720
  385. package/src/components/page/inner/quality/components/lookData.vue +15 -10
  386. package/src/components/page/inner/quality/components/sampleInfo.vue +5 -5
  387. package/src/components/page/inner/quality/sample/index.vue +418 -426
  388. package/src/components/page/inner/randomMove/components/Down/index.vue +564 -507
  389. package/src/components/page/inner/randomMove/components/Up/index.vue +663 -587
  390. package/src/components/page/inner/randomMove/index/index.vue +123 -10
  391. package/src/components/page/inner/reportAbnormal/index/index.vue +251 -251
  392. package/src/components/page/inner/taskMove/index/index.vue +426 -49
  393. package/src/components/page/inner/taskMove/whole/MoveRandomWholeCase.vue +459 -0
  394. package/src/components/page/inner/taskMove/whole/MoveTaskWholeCaseDown.vue +328 -0
  395. package/src/components/page/inner/taskMove/whole/MoveTaskWholeCaseUp.vue +282 -0
  396. package/src/components/page/inner/taskMove/whole/MoveTaskWholeIndex.vue +519 -0
  397. package/src/components/page/inner/taskMove/whole/index.js +22 -0
  398. package/src/components/page/inventory/inventoryItem/index.vue +72 -0
  399. package/src/components/page/inventory/inventoryLotPage/index.vue +2 -1
  400. package/src/components/page/inventory/queryInventory/index/index.vue +368 -231
  401. package/src/components/page/inventory/queryInventory/page/index.vue +146 -9
  402. package/src/components/page/outbound/bale/aloneBale/action/index.vue +896 -779
  403. package/src/components/page/outbound/bale/aloneBale/index/index.vue +34 -5
  404. package/src/components/page/outbound/bale/aloneBale/newBale/index.vue +19 -0
  405. package/src/components/page/outbound/bale/baleChange/action/index.js +11 -11
  406. package/src/components/page/outbound/bale/baleChange/action/index.vue +604 -585
  407. package/src/components/page/outbound/bale/baleChange/index/index.js +11 -11
  408. package/src/components/page/outbound/bale/baleChange/skuCheck/index.js +11 -11
  409. package/src/components/page/outbound/bale/baleChange/skuCheck/index.vue +351 -351
  410. package/src/components/page/outbound/bale/checkBale/action/index.vue +1052 -941
  411. package/src/components/page/outbound/bale/checkBale/allCheck/index.vue +19 -3
  412. package/src/components/page/outbound/bale/checkBale/index/index.vue +41 -5
  413. package/src/components/page/outbound/bale/checkBale/newBale/index.vue +20 -3
  414. package/src/components/page/outbound/bale/components/checkPackConfig/index.vue +177 -0
  415. package/src/components/page/outbound/bale/components/checkPackConfig//345/275/223/345/211/215/346/215/206/345/214/205/345/217/260.md +0 -0
  416. package/src/components/page/outbound/bale/components/containerInfo/index.vue +242 -242
  417. package/src/components/page/outbound/bale/components/containerSkuQty//345/275/223/345/211/215/346/215/206/345/214/205/345/256/271/345/231/250/345/217/212/345/223/201/347/247/215/346/225/260.md +1 -1
  418. package/src/components/page/outbound/bale/components/delSku/index.vue +317 -317
  419. package/src/components/page/outbound/bale/components/partBlock/index.vue +201 -201
  420. package/src/components/page/outbound/bale/components/planCollapse/index.vue +392 -392
  421. package/src/components/page/outbound/bale/components/repeatCheck/index.vue +101 -101
  422. package/src/components/page/outbound/bale/components/storeInfo/index.vue +135 -135
  423. package/src/components/page/outbound/bale/components/storeInfoSkuList/index.vue +148 -128
  424. package/src/components/page/outbound/bale/components/suggestMaterial/index.vue +107 -0
  425. package/src/components/page/outbound/bale/components/suggestMaterial//346/216/250/350/215/220/345/214/205/346/235/220/346/212/230/345/217/240/346/240/217.md +0 -0
  426. package/src/components/page/outbound/bale/mixins.js +236 -212
  427. package/src/components/page/outbound/block/LwOutboundBlockExecutePage.vue +316 -316
  428. package/src/components/page/outbound/boxTransfer/action/index.js +11 -11
  429. package/src/components/page/outbound/boxTransfer/action/index.vue +214 -214
  430. package/src/components/page/outbound/boxTransfer/index/index.js +11 -11
  431. package/src/components/page/outbound/boxTransfer/index/index.vue +174 -174
  432. package/src/components/page/outbound/delivery/action/index.vue +784 -784
  433. package/src/components/page/outbound/delivery/addOrder/index.vue +281 -281
  434. package/src/components/page/outbound/delivery/components/boxItem/index.vue +154 -154
  435. package/src/components/page/outbound/delivery/components/soAndLpnItem/index.vue +199 -199
  436. package/src/components/page/outbound/delivery/index/index.vue +205 -205
  437. package/src/components/page/outbound/handover/components/boxInfo.vue +51 -51
  438. package/src/components/page/outbound/handover/components/boxNumList.vue +158 -158
  439. package/src/components/page/outbound/handover/components/collapseItem.vue +136 -136
  440. package/src/components/page/outbound/handover/components/pageBox.vue +524 -524
  441. package/src/components/page/outbound/handover/customer/index.js +11 -11
  442. package/src/components/page/outbound/handover/index/index.js +11 -11
  443. package/src/components/page/outbound/handover/index/index.vue +5 -2
  444. package/src/components/page/outbound/handover/line/index.js +11 -11
  445. package/src/components/page/outbound/handover/lpn/index.js +11 -11
  446. package/src/components/page/outbound/index.js +162 -152
  447. package/src/components/page/outbound/lpnPack/action/index.js +11 -11
  448. package/src/components/page/outbound/lpnPack/action/index.vue +437 -287
  449. package/src/components/page/outbound/lpnPack/components/boxItem.vue +90 -0
  450. package/src/components/page/outbound/lpnPack/components/lpnActionInfo.vue +132 -113
  451. package/src/components/page/outbound/lpnPack/components/lpnItem.vue +126 -126
  452. package/src/components/page/outbound/lpnPack/index/index.js +11 -11
  453. package/src/components/page/outbound/lpnPack/index/index.vue +304 -166
  454. package/src/components/page/outbound/lpnPack/newLpnPack/index.js +11 -11
  455. package/src/components/page/outbound/lpnPack/newLpnPack/index.vue +95 -80
  456. package/src/components/page/outbound/lpnPack/over/index.js +11 -11
  457. package/src/components/page/outbound/lpnPack/over/index.vue +114 -85
  458. package/src/components/page/outbound/packCollect/components/containerInfo.vue +108 -0
  459. package/src/components/page/outbound/packCollect/index/index.js +11 -0
  460. package/src/components/page/outbound/packCollect/index/index.vue +192 -0
  461. package/src/components/page/outbound/packCollect//351/233/206/350/264/247/346/215/206/345/214/205.md +0 -0
  462. package/src/components/page/outbound/pick/alone/index.vue +551 -504
  463. package/src/components/page/outbound/pick/box/index.vue +380 -371
  464. package/src/components/page/outbound/pick/components/dataLookAndChange/index.vue +709 -671
  465. package/src/components/page/outbound/pick/components/splitPutDown/index.vue +208 -208
  466. package/src/components/page/outbound/pick/index/index.vue +579 -622
  467. package/src/components/page/outbound/pick/lpn/index.vue +326 -321
  468. package/src/components/page/outbound/pick/mixin/all.js +98 -98
  469. package/src/components/page/outbound/pick/mixin/aloneAndNotAlone.js +132 -132
  470. package/src/components/page/outbound/pick/notAlone/index.vue +692 -533
  471. package/src/components/page/outbound/pick/sow/index.vue +1387 -1290
  472. package/src/components/page/outbound/pickContainer/action/index.js +11 -11
  473. package/src/components/page/outbound/pickContainer/index/index.js +11 -11
  474. package/src/components/page/outbound/pickMerge/content/index.vue +179 -170
  475. package/src/components/page/outbound/reprint-box/LwOutboundReprintBoxListPage.vue +115 -118
  476. package/src/components/page/outbound/reprint-box/collapseItem.vue +71 -0
  477. package/src/components/page/outbound/sow/action/index.vue +80 -29
  478. package/src/components/page/outbound/sow/components/sowLotItem/index.vue +142 -0
  479. package/src/components/page/outbound/sow/components/sowLotItem//346/222/255/347/247/215/346/211/271/346/254/241/344/277/241/346/201/257.md +0 -0
  480. package/src/components/page/outbound/sow/index/index.vue +399 -371
  481. package/src/components/page/outbound/sowCollect/index/index.js +11 -0
  482. package/src/components/page/outbound/sowCollect/index/index.vue +234 -0
  483. package/src/components/page/outbound/sowCollect//346/222/255/347/247/215/351/233/206/350/264/247.md +0 -0
  484. package/src/components/page/outbound/stockout/LwOutboundStockoutListPage.vue +103 -103
  485. package/src/components/page/outbound/summary/box/index/index.vue +648 -645
  486. package/src/components/page/outbound/summary/lpn/action/index.vue +254 -254
  487. package/src/components/page/outbound/summary/lpn/index/index.vue +5 -0
  488. package/src/components/page/process/index.js +25 -21
  489. package/src/components/page/process/prepare/index.js +11 -11
  490. package/src/components/page/process/prepare/index.vue +770 -841
  491. package/src/components/page/process/process/action/index.js +11 -11
  492. package/src/components/page/process/process/action/index.vue +56 -75
  493. package/src/components/page/process/process/components/FinishView.vue +299 -0
  494. package/src/components/page/process/process/components/craftCollapse.vue +91 -130
  495. package/src/components/page/process/process/components/dockInfo.vue +73 -79
  496. package/src/components/page/process/process/components/dockTaskInfo.vue +172 -192
  497. package/src/components/page/process/process/components/overCollapse.vue +385 -376
  498. package/src/components/page/process/process/components/rawCollapse.vue +82 -113
  499. package/src/components/page/process/process/components/stopPopup.vue +108 -90
  500. package/src/components/page/process/process/console/index.js +11 -11
  501. package/src/components/page/process/process/console/index.vue +149 -436
  502. package/src/components/page/process/process/content/index.js +11 -11
  503. package/src/components/page/process/process/content/index.vue +340 -367
  504. package/src/components/page/process/process/index/index.js +11 -11
  505. package/src/components/page/process/process/index/index.vue +71 -68
  506. package/src/components/page/process/screen/display/index.js +11 -0
  507. package/src/components/page/process/screen/display/index.vue +163 -0
  508. package/src/components/page/process/screen/index/index.js +11 -0
  509. package/src/components/page/process/screen/index/index.vue +76 -0
  510. package/src/components/page/receive/putaway/caseAction/index.vue +548 -542
  511. package/src/components/page/receive/putaway/components/CaseInfo/index.vue +6 -0
  512. package/src/components/page/receive/putaway/components/SkuInfo/index.vue +19 -3
  513. package/src/components/page/receive/putaway/components/SkuPutAwayInfo/index.vue +203 -203
  514. package/src/components/page/receive/putaway/components/TaskInfo/index.vue +61 -32
  515. package/src/components/page/receive/putaway/index/index.vue +585 -450
  516. package/src/components/page/receive/putaway/lpnAction/index.vue +362 -362
  517. package/src/components/page/receive/putaway/lpnBatchAction/index.js +11 -11
  518. package/src/components/page/receive/putaway/lpnBatchAction/index.vue +213 -213
  519. package/src/components/page/receive/putaway/skuAction/index.vue +989 -742
  520. package/src/components/page/receive/receipt/action/index.vue +276 -276
  521. package/src/components/page/receive/receipt/index/index.vue +132 -132
  522. package/src/components/ui/BottomBar/index.vue +102 -98
  523. package/src/components/ui/BottomBar//345/272/225/351/203/250/345/233/272/345/256/232/346/240/217.md +1 -1
  524. package/src/components/ui/BottomBarBtnHidden/index.vue +91 -91
  525. package/src/components/ui/BottomBarBtnHidden//345/272/225/351/203/250/346/214/211/351/222/256/346/240/217/351/232/220/350/227/217/345/244/232/344/275/231/346/214/211/351/222/256.md +1 -1
  526. package/src/components/ui/Button/index.vue +183 -183
  527. package/src/components/ui/Button//346/214/211/351/222/256.md +1 -1
  528. package/src/components/ui/CarPlate/index.vue +501 -495
  529. package/src/components/ui/Cell/index.vue +259 -259
  530. package/src/components/ui/Cell//345/215/225/345/205/203/346/240/274.md +1 -1
  531. package/src/components/ui/CellPopupCheckbox/index.js +11 -0
  532. package/src/components/ui/CellPopupCheckbox/index.vue +158 -0
  533. package/src/components/ui/CellPopupCheckbox//350/241/214/345/212/240/345/244/232/351/200/211/345/274/271/345/207/272/346/241/206.md +0 -0
  534. package/src/components/ui/CellPopupDate/index.vue +217 -212
  535. package/src/components/ui/CellPopupRadio/index.vue +136 -136
  536. package/src/components/ui/CellPopupSelect/index.js +11 -0
  537. package/src/components/ui/CellPopupSelect/index.vue +303 -0
  538. package/src/components/ui/CellPopupSelect//345/215/225/345/205/203/350/241/214/345/212/240/351/200/211/346/213/251/345/231/250.md +1 -0
  539. package/src/components/ui/CutCard/index.vue +0 -11
  540. package/src/components/ui/DataLookBg//346/225/260/346/215/256/347/234/213/346/235/277.md +1 -1
  541. package/src/components/ui/ErrorMsg//351/224/231/350/257/257/346/217/220/347/244/272/346/241/206.md +1 -1
  542. package/src/components/ui/Form//350/241/250/345/215/225.md +1 -1
  543. package/src/components/ui/ImgLook/index.vue +105 -105
  544. package/src/components/ui/ImgLook//345/233/276/347/211/207/346/237/245/347/234/213.md +1 -1
  545. package/src/components/ui/ImgUpload/imgUploadAxios.js +37 -37
  546. package/src/components/ui/ImgUpload/index.vue +120 -120
  547. package/src/components/ui/ImgUpload//345/233/276/347/211/207/344/270/212/344/274/240.md +1 -1
  548. package/src/components/ui/Input/index.vue +567 -581
  549. package/src/components/ui/Loading/index.js +49 -49
  550. package/src/components/ui/Loading//345/212/240/350/275/275/346/241/206.md +1 -1
  551. package/src/components/ui/MenuItem//350/217/234/345/215/225/351/241/271.md +1 -1
  552. package/src/components/ui/NavBar/index.vue +4 -4
  553. package/src/components/ui/NotData//347/251/272/346/225/260/346/215/256/347/212/266/346/200/201.md +1 -1
  554. package/src/components/ui/NoticeBar/index.js +88 -0
  555. package/src/components/ui/NoticeBar/index.vue +98 -0
  556. package/src/components/ui/NoticeBar//351/200/232/347/237/245/346/240/217.md +0 -0
  557. package/src/components/ui/Pages/index.vue +4 -4
  558. package/src/components/ui/Pages//345/210/206/351/241/265/351/241/265/347/240/201.md +1 -1
  559. package/src/components/ui/Pagination/index.js +11 -11
  560. package/src/components/ui/Pagination/index.vue +274 -274
  561. package/src/components/ui/Pagination//345/210/206/351/241/265V2.md +1 -1
  562. package/src/components/ui/Popup/index.vue +242 -242
  563. package/src/components/ui/Popup//345/274/271/345/207/272/345/261/202.md +1 -1
  564. package/src/components/ui/PopupCheckbox/index.vue +27 -6
  565. package/src/components/ui/PopupCheckbox//345/244/232/351/200/211/345/274/271/346/241/206.md +1 -1
  566. package/src/components/ui/PopupRadio//345/215/225/351/200/211/345/274/271/346/241/206.md +1 -1
  567. package/src/components/ui/TabBar/index.vue +1 -1
  568. package/src/components/ui/Table//350/241/250/346/240/274.md +1 -1
  569. package/src/components/ui/Tag/index.vue +11 -11
  570. package/src/components/ui/Tag//346/240/207/347/255/276.md +1 -1
  571. package/src/components/ui/TitleValueCell/index.vue +90 -88
  572. package/src/components/ui/TitleValueCell//346/240/207/351/242/230/345/200/274/350/241/214.md +2 -2
  573. package/src/components/ui/index.js +92 -87
  574. package/src/mixins/loginAndInit/index.js +31 -31
  575. package/src/router/index.js +895 -742
  576. package/src/router/menu.js +754 -638
  577. package/src/test/file/index.js +11 -11
  578. package/src/utils/ApiUtils.js +59 -59
  579. package/src/utils/AppBack.js +43 -43
  580. package/src/utils/AppPower.js +621 -76
  581. package/src/utils/Axios.js +30 -0
  582. package/src/utils/BarcodeResolve.js +5 -5
  583. package/src/utils/DateTime.js +234 -233
  584. package/src/utils/DeepCopy.js +61 -61
  585. package/src/utils/Dialog.js +16 -0
  586. package/src/utils/Dict.js +89 -73
  587. package/src/utils/GetImgSrc.js +54 -54
  588. package/src/utils/Language.js +87 -79
  589. package/src/utils/LocalStorage.js +66 -66
  590. package/src/utils/Permissions.js +65 -65
  591. package/src/utils/Print.js +232 -177
  592. package/src/utils/README.md +60 -60
  593. package/src/utils/ScanRule.js +39 -39
  594. package/src/utils/SetColor.js +57 -57
  595. package/src/utils/TabBar.js +31 -31
  596. package/src/utils/Timezone.js +183 -179
  597. package/src/utils/Tip.js +26 -26
  598. package/src/utils/UUID.js +33 -39
  599. package/src/utils/Warehouse.js +30 -30
  600. package/src/utils/index.js +4 -1
  601. package/src/utils/windowGlobalData.js +114 -114
  602. package/src/views/common/init/index.vue +145 -138
  603. package/src/views/common/my/timezone.vue +23 -23
  604. package/src/views/common/task/search.vue +23 -0
  605. package/src/views/count/console.vue +23 -0
  606. package/src/views/inbound/receive/printLabel.vue +23 -0
  607. package/src/views/inbound/sorting/LwInboundSortingAsnView.vue +16 -0
  608. package/src/views/inbound/sorting/LwInboundSortingByContainerView.vue +16 -0
  609. package/src/views/inbound/sorting/LwInboundSortingByOrderView.vue +16 -0
  610. package/src/views/inbound/sorting/LwInboundSortingIndexView.vue +16 -0
  611. package/src/views/inbound/unload/action.vue +23 -0
  612. package/src/views/inbound/unload/add.vue +23 -0
  613. package/src/views/inbound/unload/index.vue +23 -0
  614. package/src/views/inner/caseQuickMove/index.vue +23 -0
  615. package/src/views/inner/check/action.vue +23 -0
  616. package/src/views/inner/dead/large.vue +23 -23
  617. package/src/views/inner/dead/putaway/action.vue +23 -23
  618. package/src/views/inner/dead/putaway/index.vue +23 -23
  619. package/src/views/inner/dead/query/action.vue +23 -0
  620. package/src/views/inner/dead/query/index.vue +23 -0
  621. package/src/views/inner/dead/smallPage.vue +23 -23
  622. package/src/views/inner/dead/taskEntrance.vue +23 -23
  623. package/src/views/inner/fragQuickMove/action.vue +23 -0
  624. package/src/views/inner/fragQuickMove/index.vue +23 -0
  625. package/src/views/inner/materialApply/action.vue +2 -2
  626. package/src/views/inner/materialApply/generate.vue +2 -2
  627. package/src/views/inner/taskMove/whole/MoveRandomWholeCaseView.vue +3 -0
  628. package/src/views/inner/taskMove/whole/MoveTaskWholeCaseDownView.vue +3 -0
  629. package/src/views/inner/taskMove/whole/MoveTaskWholeCaseUpView.vue +3 -0
  630. package/src/views/inner/taskMove/whole/MoveTaskWholeIndexView.vue +3 -0
  631. package/src/views/outbound/baleChange/action.vue +23 -23
  632. package/src/views/outbound/baleChange/index.vue +23 -23
  633. package/src/views/outbound/baleChange/skuCheck.vue +23 -23
  634. package/src/views/outbound/boxTransfer/action.vue +23 -23
  635. package/src/views/outbound/boxTransfer/index.vue +23 -23
  636. package/src/views/outbound/handover/customer.vue +23 -23
  637. package/src/views/outbound/handover/index.vue +23 -23
  638. package/src/views/outbound/handover/line.vue +23 -23
  639. package/src/views/outbound/handover/lpn.vue +23 -23
  640. package/src/views/outbound/lpnPack/action.vue +23 -23
  641. package/src/views/outbound/lpnPack/index.vue +23 -23
  642. package/src/views/outbound/lpnPack/newLpn.vue +23 -23
  643. package/src/views/outbound/lpnPack/over.vue +23 -23
  644. package/src/views/outbound/packCollect/index.vue +23 -0
  645. package/src/views/outbound/pickContainer/action.vue +23 -23
  646. package/src/views/outbound/pickContainer/index.vue +23 -23
  647. package/src/views/outbound/sowCollect/index.vue +23 -0
  648. package/src/views/process/action/action.vue +23 -23
  649. package/src/views/process/action/index.vue +23 -23
  650. package/src/views/process/prepare/index.vue +23 -23
  651. package/src/views/process/screen/display/index.vue +23 -0
  652. package/src/views/process/screen/index/index.vue +23 -0
  653. package/src/views/receive/putaway/lpnBatchAction.vue +23 -23
  654. package/dist/logwire-wms-pda-ui.js +0 -7
  655. package/src/assets/img/lwInputIcon/keyboard.png +0 -0
  656. package/src/components/page/outbound/bale/components/containerInfo/img.png +0 -0
  657. package/src/components/page/outbound/bale/components/containerSkuQty/img.png +0 -0
  658. package/src/components/page/outbound/bale/components/storeInfo/img.png +0 -0
@@ -1,831 +1,875 @@
1
- <!--
2
- * 借用单 - 执行拣选
3
- * @author: 王强
4
- * @date 2022-07-11
5
- -->
6
- <template>
7
- <div>
8
- <!-- 导航栏-->
9
- <lw-nav-bar :title="$lwLanguage.get('wms_project.pda.inner.borrow.borrowPick','借件拣选')"/>
10
-
11
- <!-- 中间内容-->
12
- <div v-if="taskLine.length" class="lw-global-page-box">
13
-
14
- <!-- 借件单信息-->
15
- <div class="lw-global-model-top-radius">
16
- <!-- 借件单号、类型-->
17
- <div class="lw-global-flex-between lw-global-row-start">
18
- <lw-title-value-cell
19
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.borrowNo','借件单号') "
20
- :value="this.borrowNo"
21
- val-bold
22
- :is-row="false"
23
- />
24
- <div class="lw-global-value-bold-red">{{ typeLabel }}</div>
25
- </div>
26
-
27
- <!-- 借件单其他信息-->
28
- <div class="lw-global-row-end">
29
- <div class="lw-global-flex-between ">
30
- <lw-title-value-cell
31
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.org','借件单位') "
32
- :value="this.borrowOrganization"
33
- val-bold
34
- :is-row="false"
35
- />
36
- <lw-title-value-cell
37
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.unPickQty','待捡量') "
38
- :value="this.unPickQty"
39
- val-bold
40
- val-red
41
- :is-row="false"
42
- />
43
- </div>
44
-
45
- <div class="lw-global-flex-between ">
46
- <lw-title-value-cell
47
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.user','借件人') "
48
- :value="this.borrowerName"
49
- val-bold
50
- :is-row="false"
51
- />
52
- <lw-title-value-cell
53
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickedQty','已拣量') "
54
- :value="this.pickedQty"
55
- val-bold
56
- :is-row="false"
57
- />
58
- </div>
59
- </div>
60
-
61
- </div>
62
-
63
-
64
- <!-- tab页-->
65
- <div class="lw-global-tab-box" style="margin-top: 10px">
66
- <van-tabs
67
- type="card"
68
- animated
69
- v-model="tabActive"
70
- >
71
- <!-- 正在拣选 -->
72
- <van-tab
73
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.picking','正在拣选')"
74
- name="ing"
75
- >
76
- <!-- 任务明细-->
77
- <div class="lw-global-model-box">
78
- <!-- 商品编码、状态 -->
79
- <div class="lw-global-flex-between lw-global-row-start">
80
- <div class="lw-global-value-bold">{{ taskLine[task.index].skuCode }}</div>
81
- <div class="lw-global-value-bold-red">{{ taskLine[task.index].statusLabel }}</div>
82
- </div>
83
-
84
- <!-- 商品名称、大小 -->
85
- <div class="lw-global-flex-between lw-global-row" >
86
- <div class="lw-global-value-bold">{{ taskLine[task.index].skuName }}</div>
87
- <lw-tag round plain style="flex-shrink: 0">{{ taskLine[task.index].sizeTypeLabel }}</lw-tag>
88
- </div>
89
-
90
- <!-- 库位 -->
91
- <div class="lw-global-row">
92
- <span class="lw-global-title">
93
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.location', '库位') }}
94
- </span>
95
- <span class="lw-global-value-bold">
96
- {{ taskLine[task.index].locationCode }}
97
- </span>
98
- </div>
99
-
100
- <!-- 托盘号 -->
101
- <div class="lw-global-row" v-if="hasLpn()">
102
- <span class="lw-global-title">
103
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.lpn', '托盘号') }}
104
- </span>
105
- <span class="lw-global-value-bold">
106
- {{ taskLine[task.index].lpn }}
107
- </span>
108
- </div>
109
-
110
- <!-- 数据看板 -->
111
- <div class="lw-global-row lw-global-flex-around">
112
- <!-- 计划量 -->
113
- <div class="lw-global-data-look-item">
114
- <div class="lw-global-value-bold">{{ taskLine[task.index].planQty || 0 }}</div>
115
- <div class="lw-global-title">
116
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.planQty', '计划量') }}
117
- </div>
118
- </div>
119
-
120
- <!-- 已拣选 -->
121
- <div class="lw-global-data-look-item">
122
- <div class="lw-global-value-bold">{{ taskLine[task.index].pickQty || 0 }}</div>
123
- <div class="lw-global-title">
124
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.picked', '已拣选') }}
125
- </div>
126
- </div>
127
-
128
- <!-- 待拣选 -->
129
- <div class="lw-global-data-look-item">
130
- <div class="lw-global-value-bold" style="color: #D50000" >{{ taskLine[task.index].unPickQty || 0 }}</div>
131
- <div class="lw-global-title">
132
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.unPick', '待拣选') }}
133
- </div>
134
- </div>
135
- </div>
136
-
137
- <!-- 库位 -->
138
- <lw-input
139
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickLocation.confirm','确认拣选库位')"
140
- v-model="task.input.location.value"
141
- :get-focus.sync="task.input.location.focus"
142
- required
143
- @confirm="taskLocationConfirm"
144
- />
145
-
146
- <!-- LPN -->
147
- <lw-input
148
- v-if="hasLpn()"
149
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.lpn.confirm','确认托盘号')"
150
- v-model="task.input.lpn.value"
151
- :get-focus.sync="task.input.lpn.focus"
152
- required
153
- @confirm="taskLpnConfirm"
154
- />
155
-
156
- <div>
157
- <div v-if="taskLine[task.index].needHandleSn">
158
-
159
- <lw-input
160
- :title="$lwLanguage.get('','扫描序列号')"
161
- v-model="task.input.sn.value"
162
- :get-focus.sync="task.input.sn.focus"
163
- :rule-production-data="$lwScanRule.production('借件拣选-SN','SN')"
164
- rule-key="sn"
165
- required
166
- @confirm="taskSnConfirm"
167
- />
168
- <lw-scan-data-list-module
169
- title="已扫描序列号"
170
- v-model="task.input.snList"
171
- @confirm="taskSnConfirm"
172
- />
173
-
174
- </div>
175
- <div v-else>
176
-
177
- <!-- 商品条码 -->
178
- <lw-input
179
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.skuCode.confirm','确认商品编码')"
180
- v-model="task.input.sku.value"
181
- :get-focus.sync="task.input.sku.focus"
182
- required
183
- @confirm="taskSkuCodeConfirm"
184
- />
185
-
186
- <!-- 数量 -->
187
- <lw-input
188
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.qty','拣选数量')"
189
- v-model="task.input.qty.value"
190
- :get-focus.sync="task.input.qty.focus"
191
- type="digit"
192
- required
193
- @confirm="taskQtyCheck"
194
- />
195
- </div>
196
- <lw-cut-card
197
- v-model="task.index"
198
- :length="taskLine.length"
199
- :cut-end="clearInput"
200
- />
201
- </div>
202
-
203
-
204
- </div>
205
- <!-- 批次属性 -->
206
- <div class="lw-global-model-box" v-if="this.taskLine.length">
207
- <lw-lot-look-module :columns="taskLine[task.index].lotAttributeData.items"/>
208
- </div>
209
-
210
- </van-tab>
211
-
212
- <!-- 拣选明细 -->
213
- <van-tab
214
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickLine','拣选明细')"
215
- name="wait"
216
- >
217
- <div
218
- v-for="(i,k) in pickLine"
219
- :key="k"
220
- style="margin-top: 10px"
221
- >
222
- <div class="lw-global-model-top-radius">
223
- <!-- 商品编码、状态 -->
224
- <div class="lw-global-flex-between lw-global-row-start">
225
- <div class="lw-global-value-bold">{{ i.skuCode }}</div>
226
- <div class="lw-global-value-bold-red">{{ i.statusLabel }}</div>
227
- </div>
228
-
229
- <!-- 商品名称 大小-->
230
- <div class="lw-global-flex-between ">
231
- <div class="lw-global-value-bold">{{ i.skuName }}</div>
232
- <lw-tag round plain style="flex-shrink: 0">{{ i.sizeTypeLabel }}</lw-tag>
233
- </div>
234
-
235
-
236
- <div class="lw-global-flex-between ">
237
- <!-- 库位-->
238
- <lw-title-value-cell
239
- style="flex:1"
240
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickLocation','拣选库位')"
241
- :value="i.locationCode"
242
- val-bold
243
- :is-row="false"
244
- />
245
- <!-- 数量-->
246
- <div style="flex-shrink: 0">
247
- <span class="lw-global-title">
248
- {{$lwLanguage.get('wms_project.pda.inner.borrow.pickAndPlan','已拣选/计划')}}
249
- </span>
250
- <span class="lw-global-value-bold">
251
- <span class="lw-global-value-bold-red">
252
- {{i.pickQty || 0}}
253
- </span>
254
- <span >
255
- / {{i.planQty}}
256
- </span>
257
- </span>
258
-
259
- </div>
260
-
261
- </div>
262
-
263
- <!-- 托盘号-->
264
- <lw-title-value-cell
265
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.lpn','托盘号')"
266
- :value="i.lpn"
267
- val-bold
268
- :is-row="false"
269
- />
270
-
271
- </div>
272
- </div>
273
- </van-tab>
274
- </van-tabs>
275
- </div>
276
-
277
- </div>
278
-
279
-
280
- <!-- 底部按钮-->
281
- <lw-bottom-bar >
282
-
283
- <!-- 拣选缺货-->
284
- <lw-button
285
- type="last"
286
- plain
287
- @click="lackPopupShow"
288
- >
289
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.pickLack','拣选缺货') }}
290
- </lw-button>
291
-
292
- <!-- 确认拣选-->
293
- <lw-button
294
- @click="execPick"
295
- >
296
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.confirmPick','确认拣选') }}
297
- </lw-button>
298
-
299
- <!-- 拣选异常-->
300
- <lw-button
301
- @click="abnPopShow"
302
- >
303
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.abnormal','异常') }}
304
- </lw-button>
305
- </lw-bottom-bar>
306
-
307
- <!-- 拣选缺货弹窗 -->
308
- <lw-popup
309
- v-if="taskLine.length"
310
- v-model="lackPopup.show"
311
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickLack','拣选缺货')"
312
- >
313
- <!-- 拣选缺货商品信息 -->
314
- <div >
315
-
316
- <!-- 商品编码、状态 -->
317
- <div class="lw-global-flex-between">
318
- <div class="lw-global-value-bold">{{ taskLine[task.index].skuCode }}</div>
319
- </div>
320
-
321
- <!-- 商品名称 大小-->
322
- <div class="lw-global-flex-between ">
323
- <div class="lw-global-value-bold">{{ taskLine[task.index].skuName }}</div>
324
- <lw-tag round plain style="flex-shrink: 0">{{ taskLine[task.index].sizeTypeLabel }}</lw-tag>
325
- </div>
326
-
327
- <!-- 库位、内装数-->
328
- <div class="lw-global-flex-between ">
329
- <div class="lw-global-value-bold">{{ taskLine[task.index].locationCode }}</div>
330
- <lw-title-value-cell
331
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.innerQty','内装数')"
332
- :value="taskLine[task.index].innerQty"
333
- val-bold
334
- :is-row="false"
335
- />
336
- </div>
337
-
338
- <lw-input
339
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.lackQty','缺货量')"
340
- v-model="task.input.lackQty.value"
341
- :get-focus.sync="task.input.lackQty.focus"
342
- type="digit"
343
- required
344
- @confirm="lackQtyCheck"
345
- />
346
- </div>
347
-
348
- <template #button>
349
- <lw-button @click="pickLack">
350
- {{ $lwLanguage.get('wms_project.pda.inner.borrow.confirmLack', '确认拣选缺货') }}
351
- </lw-button>
352
- </template>
353
-
354
- </lw-popup>
355
-
356
- <!-- 拣选异常弹窗 -->
357
- <lw-popup
358
- :title="$lwLanguage.get('wms_project.pda.inner.borrow.abnSubmit','异常上报')"
359
- v-model="abnPopup.show"
360
- @closed="abnPopup.comShow = false"
361
- >
362
-
363
- <lw-inner-abnormal-module
364
- v-if="abnPopup.comShow"
365
- ref="abnormal"
366
- :type="$lwLanguage.get('wms_project.pda.inner.borrow.inner','在库')"
367
- :ab-type="$lwLanguage.get('wms_project.pda.inner.borrow.borrowPick','借件拣选')"
368
- :sku-code="this.taskLine[task.index].skuCode"
369
- :sku-name="this.taskLine[task.index].skuName"
370
- :qty="this.taskLine[task.index].unPickQty"
371
- :location="this.taskLine[task.index].locationCode"
372
- />
373
-
374
- <template #button>
375
- <lw-button @click="submitAbnormal"
376
- >{{ $lwLanguage.get('wms_project.pda.inner.borrow.report','上报') }}</lw-button>
377
- </template>
378
-
379
- </lw-popup>
380
-
381
- </div>
382
- </template>
383
-
384
- <script>
385
-
386
- import {
387
- wmsGetBorrowPickTask,
388
- wmsExecBorrowPick,
389
- wmsBorrowPickLack,
390
- wmsBorrowSubmitAbnormal,
391
- } from "../../../../../api/inner/borrow";
392
-
393
- export default {
394
- name: "lwInnerBorrowActionPage",
395
- data() {
396
- return {
397
-
398
- // 借件单Id
399
- borrowId: '',
400
- // 借件单号
401
- borrowNo: '',
402
- // 任务Id
403
- taskId: '',
404
- // 借件类型
405
- typeLabel:'',
406
- // 借件单位
407
- borrowOrganization:'',
408
- // 借件人
409
- borrowerName:'',
410
- // 待捡量
411
- unPickQty:'',
412
- // 已捡量
413
- pickedQty:'',
414
-
415
- // 任务明细
416
- taskLine: [],
417
-
418
- // 拣选明细
419
- pickLine: [],
420
-
421
-
422
- // 缺货弹窗
423
- lackPopup: {
424
- show : false
425
- },
426
- // 异常弹窗
427
- abnPopup: {
428
- show : false,
429
- comShow:false,
430
- },
431
-
432
- //tab
433
- tabActive: "ing",
434
-
435
- //当前任务数据
436
- task: {
437
- // 任务行索引
438
- index:0,
439
- // 输入框
440
- input:{
441
- // 库位
442
- location:{
443
- value:'',
444
- focus: false
445
- },
446
- // LPN
447
- lpn:{
448
- value:'',
449
- focus: false
450
- },
451
- // 商品
452
- sku: {
453
- value:'',
454
- focus: false
455
- },
456
- // 数量
457
- qty:{
458
- value:'',
459
- focus: false
460
- },
461
- // 缺货数量
462
- lackQty:{
463
- value:'',
464
- focus: false
465
- },
466
- // sn
467
- sn: {
468
- value:'',
469
- focus: false
470
- },
471
- // sn扫描列表
472
- snList:[],
473
-
474
- }
475
- }
476
- }
477
- },
478
- mounted() {
479
- this.init()
480
- },
481
-
482
- methods: {
483
-
484
- init() {
485
- this.getPickTaskData()
486
- },
487
-
488
- //获取借件拣选任务数据
489
- getPickTaskData() {
490
-
491
- wmsGetBorrowPickTask({
492
- borrowId: this.borrowId,
493
- borrowNo: this.$route.query.borrowNo,
494
- taskId: this.$route.query.lwTaskId
495
- }).then(res => {
496
- console.log(res)
497
-
498
- this.borrowId = res.borrowId
499
- this.borrowNo = res.borrowNo
500
- this.taskId = res.taskId
501
- this.typeLabel = res.typeLabel
502
- this.borrowOrganization = res.borrowOrganization
503
- this.borrowerName = res.borrowerName
504
- this.unPickQty = res.unPickQty
505
- this.pickedQty = res.pickedQty
506
-
507
- this.task.index = this.$lwUtils.cutCardIndexCount(this.task.index,res.taskLine.length )
508
- this.taskLine = res.taskLine
509
-
510
- this.pickLine = res.pickLine
511
- }).catch((e) => {
512
- console.log(e)
513
- setTimeout(()=>{
514
- history.go(-1)
515
- },2000)
516
- })
517
- },
518
-
519
- //执行拣选
520
- execPick() {
521
-
522
- if (
523
- !(this.taskLocationCheck() &&
524
- this.taskLpnCheck() &&
525
- this.taskSkuCodeCheck() &&
526
- this.taskQtyCheck())
527
- ) return
528
-
529
- const pickingLine = this.taskLine[this.task.index]
530
- wmsExecBorrowPick({
531
- borrowId: this.borrowId,
532
- taskId: this.taskId,
533
- skuId: pickingLine.skuId,
534
- ownerId: pickingLine.ownerId,
535
- locationId: pickingLine.locationId,
536
- lpn: this.task.input.lpn.value,
537
- qty: this.task.input.qty.value,
538
- snParamList:this.task.input.snList
539
- }).then(res => {
540
- console.log(res)
541
- this.clearInput()
542
- if (res.taskFinished) {
543
- this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.taskFinish','借用拣选任务已完成'))
544
- setTimeout(()=>{
545
- history.go(-1)
546
- },2000)
547
- } else {
548
- this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.pickSuccess','拣选成功'))
549
- setTimeout(()=>{
550
- this.getPickTaskData()
551
- },2000)
552
- }
553
- }).catch((e) => {
554
- console.log(e)
555
- })
556
- },
557
-
558
- //拣选缺货
559
- pickLack() {
560
-
561
- if (!this.lackQtyCheck()) {
562
- return
563
- }
564
- const pickingLine = this.taskLine[this.task.index]
565
- wmsBorrowPickLack({
566
- borrowId: this.borrowId,
567
- taskId: this.taskId,
568
- skuId: pickingLine.skuId,
569
- ownerId: pickingLine.ownerId,
570
- locationId: pickingLine.locationId,
571
- lpn: this.task.input.lpn.value,
572
- qty: this.task.input.lackQty.value
573
- }).then(res => {
574
- console.log(res)
575
-
576
- this.clearInput()
577
- if (res.taskFinished) {
578
- this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.taskFinish','借用拣选任务已完成'))
579
- setTimeout(()=>{
580
- history.go(-1)
581
- },2000)
582
- } else {
583
- this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.lackSuccess','拣选缺货成功'))
584
- setTimeout(()=>{
585
- this.getPickTaskData()
586
- this.lackPopup.show = false
587
- },2000)
588
- }
589
- }).catch((e) => {
590
- console.log(e)
591
- })
592
- },
593
-
594
- //上报异常
595
- submitAbnormal() {
596
- const {success, data} = this.$refs.abnormal.getAbnormalData()
597
- if (!success) return
598
- const pickingLine = this.taskLine[this.task.index]
599
- wmsBorrowSubmitAbnormal({
600
- ...data,
601
- taskId: this.taskId,
602
- borrowId: this.borrowId,
603
- skuId: pickingLine.skuId,
604
- ownerId: pickingLine.ownerId,
605
- fromLpn: pickingLine.lpn,
606
- fromLocationId: pickingLine.locationId
607
- }).then(res => {
608
- console.log(res)
609
- this.clearInput()
610
- if (res.taskFinished) {
611
- this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.taskFinish','借用拣选任务已完成'))
612
- setTimeout(()=>{
613
- history.go(-1)
614
- },2000)
615
- } else {
616
- this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.reportSuccess','上报成功'))
617
- setTimeout(()=>{
618
- this.abnPopDown()
619
- this.getPickTaskData()
620
- },2000)
621
- }
622
- }).catch((e) => {
623
- console.log(e)
624
- })
625
- },
626
-
627
- // 清空输入框
628
- clearInput(){
629
- const input = this.task.input
630
- input.location.value = ''
631
- input.location.focus = true
632
- input.sku.value = ''
633
- input.qty.value = ''
634
- input.lpn.value = ''
635
- input.lackQty.value = ''
636
- },
637
-
638
- // 是否有托盘
639
- hasLpn(){
640
- let item = this.taskLine[this.task.index]
641
- console.log(item.lpn && item.lpn !== '')
642
- return item.lpn && item.lpn !== ''
643
- },
644
-
645
- // 库位确认
646
- taskLocationConfirm(){
647
- if (this.taskLocationCheck()){
648
- if (this.hasLpn()) {
649
- this.task.input.lpn.focus = true
650
- } else {
651
- this.task.input.sku.focus = true
652
- }
653
- }
654
- },
655
-
656
-
657
- taskSnConfirm(value,{data}){
658
-
659
- let snkey = data.key;
660
- let snQty = data.qty;
661
-
662
- this.task.input.snList.unshift({
663
- sn:snkey,
664
- qty: snQty
665
- })
666
- },
667
-
668
- // 库位校验
669
- taskLocationCheck(){
670
- const location = this.task.input.location
671
- if (!location.value) {
672
- location.focus = true
673
- this.$lwShowErrorMsg(
674
- this.$lwLanguage.get('wms_project.pda.inner.borrow.locationNull','库位不能为空')
675
- )
676
- return false
677
- }
678
-
679
- if (location.value !== this.taskLine[this.task.index].locationCode){
680
- location.focus = true
681
- this.$lwShowErrorMsg(
682
- this.$lwLanguage.get('wms_project.pda.inner.borrow.locationNotMatch','库位与任务库位不一致')
683
- )
684
- location.value = ''
685
- return false
686
- }
687
- return true
688
- },
689
-
690
- // 托盘确认
691
- taskLpnConfirm() {
692
- if (this.taskLpnCheck()){
693
- this.task.input.sku.focus = true
694
- }
695
- },
696
- // 托盘校验
697
- taskLpnCheck(){
698
- if (!this.hasLpn()) {
699
- return true
700
- }
701
- const lpn = this.task.input.lpn
702
- if (!lpn.value) {
703
- lpn.focus = true
704
- this.$lwShowErrorMsg(
705
- this.$lwLanguage.get('wms_project.pda.inner.borrow.lpnNull','托盘号不能为空')
706
- )
707
- return false
708
- }
709
-
710
- if (lpn.value !== this.taskLine[this.task.index].lpn){
711
- lpn.focus = true
712
- this.$lwShowErrorMsg(
713
- this.$lwLanguage.get('wms_project.pda.inner.borrow.lpnNotMatch','托盘号与任务托盘号不一致')
714
- )
715
- lpn.value = ''
716
- return false
717
- }
718
- return true
719
- },
720
-
721
- // 商品号确认
722
- taskSkuCodeConfirm(){
723
- if (this.taskSkuCodeCheck()){
724
- this.task.input.qty.focus = true
725
- }
726
- },
727
- // 商品号输入校验
728
- taskSkuCodeCheck(){
729
-
730
- // 需要处理sn,不用扫描商品条码
731
- if(this.taskLine[this.task.index].needHandleSn){
732
- return true
733
- }
734
-
735
- const sku = this.task.input.sku
736
- // 非空校验
737
- if (!sku.value){
738
- sku.focus = true
739
- this.$lwShowErrorMsg(
740
- this.$lwLanguage.get('wms_project.pda.inner.borrow.skuCodeNull','商品编码不能为空')
741
- )
742
- return false
743
- }
744
-
745
- // 是否输入正确
746
- if (sku.value !== this.taskLine[this.task.index].skuCode){
747
- sku.focus = true
748
- this.$lwShowErrorMsg(
749
- this.$lwLanguage.get('wms_project.pda.inner.borrow.skuCodeNotMatch','当前商品编码与任务商品编码不一致')
750
- )
751
- sku.value = ''
752
- return false
753
- }
754
- return true
755
- },
756
-
757
- // 数量确认
758
- taskQtyCheck(){
759
-
760
- if(this.taskLine[this.task.index].needHandleSn){
761
- return true
762
- }
763
-
764
- const qty = Number(this.task.input.qty.value || 0)
765
- if (!qty){
766
- this.task.input.qty.focus = true
767
- this.task.input.qty.value = ''
768
- this.$lwShowErrorMsg(
769
- this.$lwLanguage.get('wms_project.pda.inner.borrow.qtyLessZero','数量不能为空,且应当是大于0的整数')
770
- )
771
- return false
772
- }
773
-
774
- if (qty > this.taskLine[this.task.index].unPickQty){
775
- this.task.input.qty.focus = true
776
- this.task.input.qty.value = ''
777
- this.$lwShowErrorMsg(
778
- this.$lwLanguage.get('wms_project.pda.inner.borrow.qtyMore','数量不能大于待拣选量')
779
- )
780
- return false
781
- }
782
- return true
783
- },
784
-
785
- //缺货数量确认
786
- lackQtyCheck(){
787
- const qty = Number(this.task.input.lackQty.value || 0)
788
- if (!qty){
789
- this.task.input.lackQty.focus = true
790
- this.task.input.lackQty.value = ''
791
- this.$lwShowErrorMsg(
792
- this.$lwLanguage.get('wms_project.pda.inner.borrow.qtyLessZero','数量不能为空,且应当是大于0的整数')
793
- )
794
- return false
795
- }
796
-
797
- if (qty > this.taskLine[this.task.index].unPickQty){
798
- this.task.input.lackQty.focus = true
799
- this.task.input.lackQty.value = ''
800
- this.$lwShowErrorMsg(
801
- this.$lwLanguage.get('wms_project.pda.inner.borrow.qtyMore','数量不能大于待领取量')
802
- )
803
- return false
804
- }
805
- return true
806
- },
807
-
808
- abnPopShow() {
809
- this.abnPopup.comShow = true
810
- this.abnPopup.show = true
811
- },
812
-
813
- abnPopDown() {
814
- this.abnPopup.show = false
815
- this.abnPopup.comShow = false
816
- },
817
-
818
- lackPopupShow() {
819
- this.lackPopup.show = true
820
- this.task.input.lackQty.focus = true
821
- }
822
-
823
-
824
-
825
- }
826
- }
827
- </script>
828
-
829
- <style scoped lang="less">
830
-
831
- </style>
1
+ <!--
2
+ * 借用单 - 执行拣选
3
+ * @author: 王强
4
+ * @date 2022-07-11
5
+ -->
6
+ <template>
7
+ <div>
8
+ <!-- 导航栏-->
9
+ <lw-nav-bar :title="$lwLanguage.get('wms_project.pda.inner.borrow.borrowPick','借件拣选')"/>
10
+
11
+ <!-- 中间内容-->
12
+ <div v-if="taskLine.length" class="lw-global-page-box">
13
+
14
+ <!-- 借件单信息-->
15
+ <div class="lw-global-model-top-radius">
16
+ <!-- 借件单号、类型-->
17
+ <div class="lw-global-flex-between lw-global-row-start">
18
+ <lw-title-value-cell
19
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.borrowNo','借件单号') "
20
+ :value="this.borrowNo"
21
+ val-bold
22
+ :is-row="false"
23
+ />
24
+ <div class="lw-global-value-bold-red">{{ typeLabel }}</div>
25
+ </div>
26
+
27
+ <!-- 借件单其他信息-->
28
+ <div class="lw-global-row-end">
29
+ <div class="lw-global-flex-between ">
30
+ <lw-title-value-cell
31
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.org','借件单位') "
32
+ :value="this.borrowOrganization"
33
+ val-bold
34
+ :is-row="false"
35
+ />
36
+ <lw-title-value-cell
37
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.unPickQty','待捡量') "
38
+ :value="this.unPickQty"
39
+ val-bold
40
+ val-red
41
+ :is-row="false"
42
+ />
43
+ </div>
44
+
45
+ <div class="lw-global-flex-between ">
46
+ <lw-title-value-cell
47
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.user','借件人') "
48
+ :value="this.borrowerName"
49
+ val-bold
50
+ :is-row="false"
51
+ />
52
+ <lw-title-value-cell
53
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickedQty','已拣量') "
54
+ :value="this.pickedQty"
55
+ val-bold
56
+ :is-row="false"
57
+ />
58
+ </div>
59
+ </div>
60
+
61
+ </div>
62
+
63
+
64
+ <!-- tab页-->
65
+ <div class="lw-global-tab-box" style="margin-top: 10px">
66
+ <van-tabs
67
+ type="card"
68
+ animated
69
+ v-model="tabActive"
70
+ >
71
+ <!-- 正在拣选 -->
72
+ <van-tab
73
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.picking','正在拣选')"
74
+ name="ing"
75
+ >
76
+ <!-- 任务明细-->
77
+ <div class="lw-global-model-box">
78
+ <!-- 商品编码、状态 -->
79
+ <div class="lw-global-flex-between lw-global-row-start">
80
+ <div class="lw-global-value-bold">{{ taskLine[task.index].skuCode }}</div>
81
+ <div class="lw-global-value-bold-red">{{ taskLine[task.index].statusLabel }}</div>
82
+ </div>
83
+
84
+ <!-- 商品名称、大小 -->
85
+ <div class="lw-global-flex-between lw-global-row" >
86
+ <div class="lw-global-value-bold">{{ taskLine[task.index].skuName }}</div>
87
+ <lw-tag v-if="taskLine[task.index].sizeTypeLabel" round plain style="flex-shrink: 0">{{ taskLine[task.index].sizeTypeLabel }}</lw-tag>
88
+ </div>
89
+
90
+ <!-- 库位 -->
91
+ <div class="lw-global-row">
92
+ <span class="lw-global-title">
93
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.location', '库位') }}
94
+ </span>
95
+ <span class="lw-global-value-bold">
96
+ {{ taskLine[task.index].locationCode }}
97
+ </span>
98
+ </div>
99
+
100
+ <!-- 托盘号 -->
101
+ <div class="lw-global-row" v-if="hasLpn()">
102
+ <span class="lw-global-title">
103
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.lpn', '托盘号') }}
104
+ </span>
105
+ <span class="lw-global-value-bold">
106
+ {{ taskLine[task.index].lpn }}
107
+ </span>
108
+ </div>
109
+
110
+ <!-- 数据看板 -->
111
+ <div class="lw-global-row lw-global-flex-around">
112
+ <!-- 计划量 -->
113
+ <div class="lw-global-data-look-item">
114
+ <div class="lw-global-value-bold">{{ taskLine[task.index].planQty || 0 }}</div>
115
+ <div class="lw-global-title">
116
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.planQty', '计划量') }}
117
+ </div>
118
+ </div>
119
+
120
+ <!-- 已拣选 -->
121
+ <div class="lw-global-data-look-item">
122
+ <div class="lw-global-value-bold">{{ taskLine[task.index].pickQty || 0 }}</div>
123
+ <div class="lw-global-title">
124
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.picked', '已拣选') }}
125
+ </div>
126
+ </div>
127
+
128
+ <!-- 待拣选 -->
129
+ <div class="lw-global-data-look-item">
130
+ <div class="lw-global-value-bold" style="color: #D50000" >{{ taskLine[task.index].unPickQty || 0 }}</div>
131
+ <div class="lw-global-title">
132
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.unPick', '待拣选') }}
133
+ </div>
134
+ </div>
135
+ </div>
136
+
137
+ <!-- 库位 -->
138
+ <lw-input
139
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickLocation.confirm','确认拣选库位')"
140
+ v-model="task.input.location.value"
141
+ :get-focus.sync="task.input.location.focus"
142
+ required
143
+ @confirm="taskLocationConfirm"
144
+ />
145
+
146
+ <!-- LPN -->
147
+ <lw-input
148
+ v-if="hasLpn()"
149
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.lpn.confirm','确认托盘号')"
150
+ v-model="task.input.lpn.value"
151
+ :get-focus.sync="task.input.lpn.focus"
152
+ required
153
+ @confirm="taskLpnConfirm"
154
+ />
155
+
156
+ <div>
157
+ <div v-if="taskLine[task.index].needHandleSn">
158
+
159
+ <lw-input
160
+ :title="$lwLanguage.get('','扫描序列号')"
161
+ v-model="task.input.sn.value"
162
+ :get-focus.sync="task.input.sn.focus"
163
+ :create-rule="$lwScanRule.create('借件拣选-SN','SN')"
164
+ rule-key="sn"
165
+ required
166
+ @confirm="taskSnConfirm"
167
+ />
168
+ <lw-scan-data-list-module
169
+ title="已扫描序列号"
170
+ v-model="task.input.snList"
171
+ />
172
+
173
+ </div>
174
+ <div v-else>
175
+
176
+ <!-- 商品条码 -->
177
+ <lw-input
178
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.skuCode.confirm','确认商品编码')"
179
+ v-model="task.input.sku.value"
180
+ :get-focus.sync="task.input.sku.focus"
181
+ required
182
+ @confirm="taskSkuCodeConfirm"
183
+ />
184
+
185
+ <!-- 数量 -->
186
+ <lw-input
187
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.qty','拣选数量')"
188
+ v-model="task.input.qty.value"
189
+ :get-focus.sync="task.input.qty.focus"
190
+ type="digit"
191
+ required
192
+ @confirm="taskQtyCheck"
193
+ />
194
+ </div>
195
+ <lw-cut-card
196
+ v-model="task.index"
197
+ :length="taskLine.length"
198
+ :cut-end="clearInput"
199
+ />
200
+ </div>
201
+
202
+
203
+ </div>
204
+ <!-- 批次属性 -->
205
+ <div class="lw-global-model-box" v-if="this.taskLine.length">
206
+ <lw-lot-look-module :columns="taskLine[task.index].lotAttributeData.items"/>
207
+ </div>
208
+
209
+ </van-tab>
210
+
211
+ <!-- 拣选明细 -->
212
+ <van-tab
213
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickLine','拣选明细')"
214
+ name="wait"
215
+ >
216
+ <div
217
+ v-for="(i,k) in pickLine"
218
+ :key="k"
219
+ style="margin-top: 10px"
220
+ >
221
+ <div class="lw-global-model-top-radius">
222
+ <!-- 商品编码、状态 -->
223
+ <div class="lw-global-flex-between lw-global-row-start">
224
+ <div class="lw-global-value-bold">{{ i.skuCode }}</div>
225
+ <div class="lw-global-value-bold-red">{{ i.statusLabel }}</div>
226
+ </div>
227
+
228
+ <!-- 商品名称 大小-->
229
+ <div class="lw-global-flex-between ">
230
+ <div class="lw-global-value-bold">{{ i.skuName }}</div>
231
+ <lw-tag v-if="i.sizeTypeLabel" round plain style="flex-shrink: 0">{{ i.sizeTypeLabel }}</lw-tag>
232
+ </div>
233
+
234
+
235
+ <div class="lw-global-flex-between ">
236
+ <!-- 库位-->
237
+ <lw-title-value-cell
238
+ style="flex:1"
239
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickLocation','拣选库位')"
240
+ :value="i.locationCode"
241
+ val-bold
242
+ :is-row="false"
243
+ />
244
+ <!-- 数量-->
245
+ <div style="flex-shrink: 0">
246
+ <span class="lw-global-title">
247
+ {{$lwLanguage.get('wms_project.pda.inner.borrow.pickAndPlan','已拣选/计划')}}
248
+ </span>
249
+ <span class="lw-global-value-bold">
250
+ <span class="lw-global-value-bold-red">
251
+ {{i.pickQty || 0}}
252
+ </span>
253
+ <span >
254
+ / {{i.planQty}}
255
+ </span>
256
+ </span>
257
+
258
+ </div>
259
+
260
+ </div>
261
+
262
+ <!-- 托盘号-->
263
+ <lw-title-value-cell
264
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.lpn','托盘号')"
265
+ :value="i.lpn"
266
+ val-bold
267
+ :is-row="false"
268
+ />
269
+
270
+ </div>
271
+ </div>
272
+ </van-tab>
273
+ </van-tabs>
274
+ </div>
275
+
276
+ </div>
277
+
278
+
279
+ <!-- 底部按钮-->
280
+ <lw-bottom-bar >
281
+
282
+ <!-- 拣选缺货-->
283
+ <lw-button
284
+ type="last"
285
+ plain
286
+ @click="lackPopupShow"
287
+ >
288
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.pickLack','拣选缺货') }}
289
+ </lw-button>
290
+
291
+ <!-- 确认拣选-->
292
+ <lw-button
293
+ @click="execPick"
294
+ >
295
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.confirmPick','确认拣选') }}
296
+ </lw-button>
297
+
298
+ <!-- 拣选异常-->
299
+ <lw-button
300
+ @click="abnPopShow"
301
+ >
302
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.abnormal','异常') }}
303
+ </lw-button>
304
+ </lw-bottom-bar>
305
+
306
+ <!-- 拣选缺货弹窗 -->
307
+ <lw-popup
308
+ v-if="taskLine.length"
309
+ v-model="lackPopup.show"
310
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.pickLack','拣选缺货')"
311
+ >
312
+ <!-- 拣选缺货商品信息 -->
313
+ <div >
314
+
315
+ <!-- 商品编码、状态 -->
316
+ <div class="lw-global-flex-between">
317
+ <div class="lw-global-value-bold">{{ taskLine[task.index].skuCode }}</div>
318
+ </div>
319
+
320
+ <!-- 商品名称 大小-->
321
+ <div class="lw-global-flex-between ">
322
+ <div class="lw-global-value-bold">{{ taskLine[task.index].skuName }}</div>
323
+ <lw-tag v-if="taskLine[task.index].sizeTypeLabel" round plain style="flex-shrink: 0">{{ taskLine[task.index].sizeTypeLabel }}</lw-tag>
324
+ </div>
325
+
326
+ <!-- 库位、内装数-->
327
+ <div class="lw-global-flex-between ">
328
+ <div class="lw-global-value-bold">{{ taskLine[task.index].locationCode }}</div>
329
+ <lw-title-value-cell
330
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.innerQty','内装数')"
331
+ :value="taskLine[task.index].innerQty"
332
+ val-bold
333
+ :is-row="false"
334
+ />
335
+ </div>
336
+
337
+ <lw-input
338
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.lackQty','缺货量')"
339
+ v-model="task.input.lackQty.value"
340
+ :get-focus.sync="task.input.lackQty.focus"
341
+ type="digit"
342
+ required
343
+ @confirm="lackQtyCheck"
344
+ />
345
+ </div>
346
+
347
+ <template #button>
348
+ <lw-button @click="pickLack">
349
+ {{ $lwLanguage.get('wms_project.pda.inner.borrow.confirmLack', '确认拣选缺货') }}
350
+ </lw-button>
351
+ </template>
352
+
353
+ </lw-popup>
354
+
355
+ <!-- 拣选异常弹窗 -->
356
+ <lw-popup
357
+ :title="$lwLanguage.get('wms_project.pda.inner.borrow.abnSubmit','异常上报')"
358
+ v-model="abnPopup.show"
359
+ @closed="abnPopup.comShow = false"
360
+ >
361
+
362
+ <lw-inner-abnormal-module
363
+ v-if="abnPopup.comShow"
364
+ ref="abnormal"
365
+ :type="$lwLanguage.get('wms_project.pda.inner.borrow.inner','在库')"
366
+ :ab-type="$lwLanguage.get('wms_project.pda.inner.borrow.borrowPick','借件拣选')"
367
+ :sku-code="this.taskLine[task.index].skuCode"
368
+ :sku-name="this.taskLine[task.index].skuName"
369
+ :qty="this.taskLine[task.index].unPickQty"
370
+ :location="this.taskLine[task.index].locationCode"
371
+ />
372
+
373
+ <template #button>
374
+ <lw-button @click="submitAbnormal"
375
+ >{{ $lwLanguage.get('wms_project.pda.inner.borrow.report','上报') }}</lw-button>
376
+ </template>
377
+
378
+ </lw-popup>
379
+
380
+ </div>
381
+ </template>
382
+
383
+ <script>
384
+
385
+ import {
386
+ wmsGetBorrowPickTask,
387
+ wmsExecBorrowPick,
388
+ wmsBorrowPickLack,
389
+ wmsBorrowSubmitAbnormal,
390
+ } from "../../../../../api/inner/borrow";
391
+
392
+ import {
393
+ innerTaskSnCheck,
394
+ borrowSnCheck
395
+ } from "../../../../../api/inner/snCheck/snCheck";
396
+
397
+ export default {
398
+ name: "lwInnerBorrowActionPage",
399
+ data() {
400
+ return {
401
+
402
+ // 借件单Id
403
+ borrowId: '',
404
+ // 借件单号
405
+ borrowNo: '',
406
+ // 任务Id
407
+ taskId: '',
408
+ // 借件类型
409
+ typeLabel:'',
410
+ // 借件单位
411
+ borrowOrganization:'',
412
+ // 借件人
413
+ borrowerName:'',
414
+ // 待捡量
415
+ unPickQty:'',
416
+ // 已捡量
417
+ pickedQty:'',
418
+
419
+ // 任务明细
420
+ taskLine: [],
421
+
422
+ // 拣选明细
423
+ pickLine: [],
424
+
425
+
426
+ // 缺货弹窗
427
+ lackPopup: {
428
+ show : false
429
+ },
430
+ // 异常弹窗
431
+ abnPopup: {
432
+ show : false,
433
+ comShow:false,
434
+ },
435
+
436
+ //tab
437
+ tabActive: "ing",
438
+
439
+ //当前任务数据
440
+ task: {
441
+ // 任务行索引
442
+ index:0,
443
+ // 输入框
444
+ input:{
445
+ // 库位
446
+ location:{
447
+ value:'',
448
+ focus: false
449
+ },
450
+ // LPN
451
+ lpn:{
452
+ value:'',
453
+ focus: false
454
+ },
455
+ // 商品
456
+ sku: {
457
+ value:'',
458
+ focus: false
459
+ },
460
+ // 数量
461
+ qty:{
462
+ value:'',
463
+ focus: false
464
+ },
465
+ // 缺货数量
466
+ lackQty:{
467
+ value:'',
468
+ focus: false
469
+ },
470
+ // sn
471
+ sn: {
472
+ value:'',
473
+ focus: false
474
+ },
475
+ // sn扫描列表
476
+ snList:[],
477
+
478
+ }
479
+ }
480
+ }
481
+ },
482
+ mounted() {
483
+ this.init()
484
+ },
485
+
486
+ methods: {
487
+
488
+ init() {
489
+ this.getPickTaskData()
490
+ },
491
+
492
+ //获取借件拣选任务数据
493
+ getPickTaskData() {
494
+
495
+ wmsGetBorrowPickTask({
496
+ borrowId: this.borrowId,
497
+ borrowNo: this.$route.query.borrowNo,
498
+ taskId: this.$route.query.lwTaskId
499
+ }).then(res => {
500
+ console.log(res)
501
+
502
+ this.borrowId = res.borrowId
503
+ this.borrowNo = res.borrowNo
504
+ this.taskId = res.taskId
505
+ this.typeLabel = res.typeLabel
506
+ this.borrowOrganization = res.borrowOrganization
507
+ this.borrowerName = res.borrowerName
508
+ this.unPickQty = res.unPickQty
509
+ this.pickedQty = res.pickedQty
510
+
511
+ this.task.index = this.$lwUtils.cutCardIndexCount(this.task.index,res.taskLine.length )
512
+ this.taskLine = res.taskLine
513
+
514
+ this.pickLine = res.pickLine
515
+ }).catch((e) => {
516
+ console.log(e)
517
+ setTimeout(()=>{
518
+ history.go(-1)
519
+ },2000)
520
+ })
521
+ },
522
+
523
+ //执行拣选
524
+ execPick() {
525
+
526
+ if (
527
+ !(this.taskLocationCheck() &&
528
+ this.taskLpnCheck() &&
529
+ this.taskSkuCodeCheck() &&
530
+ this.taskQtyCheck())
531
+ ) return
532
+
533
+ const pickingLine = this.taskLine[this.task.index]
534
+ wmsExecBorrowPick({
535
+ borrowId: this.borrowId,
536
+ taskId: this.taskId,
537
+ skuId: pickingLine.skuId,
538
+ ownerId: pickingLine.ownerId,
539
+ locationId: pickingLine.locationId,
540
+ lpn: this.task.input.lpn.value,
541
+ qty: this.task.input.qty.value,
542
+ snParamList:this.task.input.snList
543
+ }).then(res => {
544
+ console.log(res)
545
+ this.clearInput()
546
+ if (res.taskFinished) {
547
+ this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.taskFinish','借用拣选任务已完成'))
548
+ setTimeout(()=>{
549
+ history.go(-1)
550
+ },2000)
551
+ } else {
552
+ this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.pickSuccess','拣选成功'))
553
+ setTimeout(()=>{
554
+ this.getPickTaskData()
555
+ },2000)
556
+ }
557
+ }).catch((e) => {
558
+ console.log(e)
559
+ })
560
+ },
561
+
562
+ //拣选缺货
563
+ pickLack() {
564
+
565
+ if (!this.lackQtyCheck()) {
566
+ return
567
+ }
568
+ const pickingLine = this.taskLine[this.task.index]
569
+ wmsBorrowPickLack({
570
+ borrowId: this.borrowId,
571
+ taskId: this.taskId,
572
+ skuId: pickingLine.skuId,
573
+ ownerId: pickingLine.ownerId,
574
+ locationId: pickingLine.locationId,
575
+ lpn: this.task.input.lpn.value,
576
+ qty: this.task.input.lackQty.value
577
+ }).then(res => {
578
+ console.log(res)
579
+
580
+ this.clearInput()
581
+ if (res.taskFinished) {
582
+ this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.taskFinish','借用拣选任务已完成'))
583
+ setTimeout(()=>{
584
+ history.go(-1)
585
+ },2000)
586
+ } else {
587
+ this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.lackSuccess','拣选缺货成功'))
588
+ setTimeout(()=>{
589
+ this.getPickTaskData()
590
+ this.lackPopup.show = false
591
+ },2000)
592
+ }
593
+ }).catch((e) => {
594
+ console.log(e)
595
+ })
596
+ },
597
+
598
+ //上报异常
599
+ submitAbnormal() {
600
+ const {success, data} = this.$refs.abnormal.getAbnormalData()
601
+ if (!success) return
602
+ const pickingLine = this.taskLine[this.task.index]
603
+ wmsBorrowSubmitAbnormal({
604
+ ...data,
605
+ taskId: this.taskId,
606
+ borrowId: this.borrowId,
607
+ skuId: pickingLine.skuId,
608
+ ownerId: pickingLine.ownerId,
609
+ fromLpn: pickingLine.lpn,
610
+ fromLocationId: pickingLine.locationId
611
+ }).then(res => {
612
+ console.log(res)
613
+ this.clearInput()
614
+ if (res.taskFinished) {
615
+ this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.taskFinish','借用拣选任务已完成'))
616
+ setTimeout(()=>{
617
+ history.go(-1)
618
+ },2000)
619
+ } else {
620
+ this.$lwToast.success(this.$lwLanguage.get('wms_project.pda.inner.borrow.reportSuccess','上报成功'))
621
+ setTimeout(()=>{
622
+ this.abnPopDown()
623
+ this.getPickTaskData()
624
+ },2000)
625
+ }
626
+ }).catch((e) => {
627
+ console.log(e)
628
+ })
629
+ },
630
+
631
+ // 清空输入框
632
+ clearInput(){
633
+ const input = this.task.input
634
+ input.location.value = ''
635
+ input.location.focus = true
636
+ input.sku.value = ''
637
+ input.qty.value = ''
638
+ input.lpn.value = ''
639
+ input.lackQty.value = ''
640
+ input.snList=[]
641
+ },
642
+
643
+ // 是否有托盘
644
+ hasLpn(){
645
+ let item = this.taskLine[this.task.index]
646
+ console.log(item.lpn && item.lpn !== '')
647
+ return item.lpn && item.lpn !== ''
648
+ },
649
+
650
+ // 库位确认
651
+ taskLocationConfirm(){
652
+ if (this.taskLocationCheck()){
653
+ if (this.hasLpn()) {
654
+ this.task.input.lpn.focus = true
655
+ } else {
656
+ this.task.input.sku.focus = true
657
+ }
658
+ }
659
+ },
660
+
661
+
662
+ taskSnConfirm(value,{data}){
663
+ let snkey = data.key;
664
+ let snQty = data.qty;
665
+
666
+ const pickingLine = this.taskLine[this.task.index]
667
+ this.task.input.sn.value=''
668
+ let snCheckData = {
669
+ borrowId: this.borrowId,
670
+ skuId: pickingLine.skuId,
671
+ ownerId: pickingLine.ownerId,
672
+ sn:snkey,
673
+ qty:snQty};
674
+ borrowSnCheck(snCheckData).then(res=>{
675
+
676
+ if(!this.snScanCheck(snkey,res.snInvQty)){
677
+ return;
678
+ }
679
+
680
+ this.task.input.snList.unshift({
681
+ sn:snkey,
682
+ qty: res.snInvQty
683
+ })
684
+ })
685
+
686
+
687
+ },
688
+ snScanCheck(sn,qty){
689
+ let snCount=0
690
+ for (let i = 0; i < this.task.input.snList.length; i++) {
691
+ let snObj=this.task.input.snList[i]
692
+ if(snObj.sn===sn){
693
+ this.$lwShowErrorMsg(
694
+ this.$lwLanguage.get('','重复扫描的SN:')+sn
695
+ )
696
+ return false;
697
+ }
698
+ snCount+=snObj.qty
699
+ }
700
+ let availInvQty=(this.taskLine[this.task.index].unPickQty || 0)
701
+ console.log("总扫描数量:",(snCount+qty))
702
+ console.log("当前行可用数量:",availInvQty)
703
+ if((snCount+qty) > availInvQty){
704
+ this.$lwShowErrorMsg(
705
+ this.$lwLanguage.get('','扫描数量大于待拣选数量')
706
+ )
707
+ return false;
708
+ }
709
+ return true;
710
+ },
711
+
712
+ // 库位校验
713
+ taskLocationCheck(){
714
+ const location = this.task.input.location
715
+ if (!location.value) {
716
+ location.focus = true
717
+ this.$lwShowErrorMsg(
718
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.locationNull','库位不能为空')
719
+ )
720
+ return false
721
+ }
722
+
723
+ if (location.value !== this.taskLine[this.task.index].locationCode){
724
+ location.focus = true
725
+ this.$lwShowErrorMsg(
726
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.locationNotMatch','库位与任务库位不一致')
727
+ )
728
+ location.value = ''
729
+ return false
730
+ }
731
+ return true
732
+ },
733
+
734
+ // 托盘确认
735
+ taskLpnConfirm() {
736
+ if (this.taskLpnCheck()){
737
+ this.task.input.sku.focus = true
738
+ }
739
+ },
740
+ // 托盘校验
741
+ taskLpnCheck(){
742
+ if (!this.hasLpn()) {
743
+ return true
744
+ }
745
+ const lpn = this.task.input.lpn
746
+ if (!lpn.value) {
747
+ lpn.focus = true
748
+ this.$lwShowErrorMsg(
749
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.lpnNull','托盘号不能为空')
750
+ )
751
+ return false
752
+ }
753
+
754
+ if (lpn.value !== this.taskLine[this.task.index].lpn){
755
+ lpn.focus = true
756
+ this.$lwShowErrorMsg(
757
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.lpnNotMatch','托盘号与任务托盘号不一致')
758
+ )
759
+ lpn.value = ''
760
+ return false
761
+ }
762
+ return true
763
+ },
764
+
765
+ // 商品号确认
766
+ taskSkuCodeConfirm(){
767
+ if (this.taskSkuCodeCheck()){
768
+ this.task.input.qty.focus = true
769
+ }
770
+ },
771
+ // 商品号输入校验
772
+ taskSkuCodeCheck(){
773
+
774
+ // 需要处理sn,不用扫描商品条码
775
+ if(this.taskLine[this.task.index].needHandleSn){
776
+ return true
777
+ }
778
+
779
+ const sku = this.task.input.sku
780
+ // 非空校验
781
+ if (!sku.value){
782
+ sku.focus = true
783
+ this.$lwShowErrorMsg(
784
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.skuCodeNull','商品编码不能为空')
785
+ )
786
+ return false
787
+ }
788
+
789
+ // 是否输入正确
790
+ if (sku.value !== this.taskLine[this.task.index].skuCode){
791
+ sku.focus = true
792
+ this.$lwShowErrorMsg(
793
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.skuCodeNotMatch','当前商品编码与任务商品编码不一致')
794
+ )
795
+ sku.value = ''
796
+ return false
797
+ }
798
+ return true
799
+ },
800
+
801
+ // 数量确认
802
+ taskQtyCheck(){
803
+
804
+ if(this.taskLine[this.task.index].needHandleSn){
805
+ return true
806
+ }
807
+
808
+ const qty = Number(this.task.input.qty.value || 0)
809
+ if (!qty){
810
+ this.task.input.qty.focus = true
811
+ this.task.input.qty.value = ''
812
+ this.$lwShowErrorMsg(
813
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.qtyLessZero','数量不能为空,且应当是大于0的整数')
814
+ )
815
+ return false
816
+ }
817
+
818
+ if (qty > this.taskLine[this.task.index].unPickQty){
819
+ this.task.input.qty.focus = true
820
+ this.task.input.qty.value = ''
821
+ this.$lwShowErrorMsg(
822
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.qtyMore','数量不能大于待拣选量')
823
+ )
824
+ return false
825
+ }
826
+ return true
827
+ },
828
+
829
+ //缺货数量确认
830
+ lackQtyCheck(){
831
+ const qty = Number(this.task.input.lackQty.value || 0)
832
+ if (!qty){
833
+ this.task.input.lackQty.focus = true
834
+ this.task.input.lackQty.value = ''
835
+ this.$lwShowErrorMsg(
836
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.qtyLessZero','数量不能为空,且应当是大于0的整数')
837
+ )
838
+ return false
839
+ }
840
+
841
+ if (qty > this.taskLine[this.task.index].unPickQty){
842
+ this.task.input.lackQty.focus = true
843
+ this.task.input.lackQty.value = ''
844
+ this.$lwShowErrorMsg(
845
+ this.$lwLanguage.get('wms_project.pda.inner.borrow.qtyMore','数量不能大于待领取量')
846
+ )
847
+ return false
848
+ }
849
+ return true
850
+ },
851
+
852
+ abnPopShow() {
853
+ this.abnPopup.comShow = true
854
+ this.abnPopup.show = true
855
+ },
856
+
857
+ abnPopDown() {
858
+ this.abnPopup.show = false
859
+ this.abnPopup.comShow = false
860
+ },
861
+
862
+ lackPopupShow() {
863
+ this.lackPopup.show = true
864
+ this.task.input.lackQty.focus = true
865
+ }
866
+
867
+
868
+
869
+ }
870
+ }
871
+ </script>
872
+
873
+ <style scoped lang="less">
874
+
875
+ </style>