@things-factory/operato-wms 4.3.333 → 4.3.335

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.
@@ -5,20 +5,35 @@ import './serial-number-popup'
5
5
  import './order-remark-popup'
6
6
 
7
7
  import gql from 'graphql-tag'
8
- import { css, html } from 'lit-element'
8
+ import {
9
+ css,
10
+ html
11
+ } from 'lit-element'
9
12
  import { connect } from 'pwa-helpers/connect-mixin.js'
10
13
 
11
14
  import { GhostPrint } from '@operato/ghost-print'
12
15
  import { sleep } from '@operato/utils'
13
16
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
14
- import { i18next, localize } from '@things-factory/i18n-base'
17
+ import {
18
+ i18next,
19
+ localize
20
+ } from '@things-factory/i18n-base'
15
21
  import { openPopup } from '@things-factory/layout-base'
16
- import { client, CustomAlert, PageView, store } from '@things-factory/shell'
22
+ import {
23
+ client,
24
+ CustomAlert,
25
+ PageView,
26
+ store
27
+ } from '@things-factory/shell'
17
28
  import { CommonButtonStyles } from '@things-factory/styles'
18
29
  import { isMobileDevice } from '@things-factory/utils'
19
30
 
20
31
  import { fetchSettingRule } from '../../fetch-setting-value'
21
- import { ORDER_SOURCES, PLATFORM, WORKSHEET_STATUS } from '../constants'
32
+ import {
33
+ ORDER_SOURCES,
34
+ PLATFORM,
35
+ WORKSHEET_STATUS
36
+ } from '../constants'
22
37
 
23
38
  class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
24
39
  static get properties() {
@@ -39,6 +54,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
39
54
  binRo: String,
40
55
  ownTransport: Boolean,
41
56
  toggleComplete: Boolean,
57
+ lmdOption: Boolean,
42
58
  _bizplaceName: String,
43
59
  _enableProductScanning: Boolean,
44
60
  _productName: String,
@@ -48,7 +64,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
48
64
  _orderPackageInformation: Object,
49
65
  _scanning: Boolean,
50
66
  _isRequireSerialNumberScanningOutbound: Boolean,
51
- _isBatchPicking: Boolean
67
+ _isBatchPicking: Boolean,
68
+ _isLmdOption: Boolean
52
69
  }
53
70
  }
54
71
 
@@ -90,6 +107,15 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
90
107
 
91
108
  get context() {
92
109
  var actions = []
110
+
111
+ if (this.releaseGoodNo && !this._isLmdOption) {
112
+ actions.push({
113
+ title: i18next.t('button.packing_list'),
114
+ action: this.packingList.bind(this),
115
+ ...CommonButtonStyles.label
116
+ })
117
+ }
118
+
93
119
  if (
94
120
  this.releaseGoodNo &&
95
121
  (this.platform === PLATFORM.LAZADA.value || this.platform === PLATFORM.SHOPEE.value) &&
@@ -109,7 +135,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
109
135
  })
110
136
  }
111
137
 
112
- if (this.releaseGoodNo && this.source != 'POWRUP' && this.platform == 'operato' && this.completed) {
138
+ if (this.releaseGoodNo && this.source == 'SELLERCRAFT' && this.platform == 'operato' && this.completed) {
113
139
  if (this.airwayBill) {
114
140
  actions.push({
115
141
  title: i18next.t('button.print_airway_bill'),
@@ -125,6 +151,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
125
151
  })
126
152
  }
127
153
 
154
+ if (this.releaseGoodNo && this.source == 'POWRUP' && this.platform == 'operato' && this.completed) {
155
+ }
156
+
128
157
  if (this.releaseGoodNo && this.source == 'POWRUP' && this.platform == 'operato' && this.completed) {
129
158
  if (this.airwayBill) {
130
159
  actions.push({
@@ -168,6 +197,29 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
168
197
  })
169
198
  }
170
199
 
200
+ if (
201
+ this.releaseGoodNo &&
202
+ (this.source == 'OTHERS' || this.source == null) &&
203
+ this.platform == 'operato' &&
204
+ this.completed
205
+ ) {
206
+ if (this.airwayBill) {
207
+ actions.push({
208
+ title: i18next.t('button.print_airway_bill'),
209
+ action: this.printB2cDocument.bind(this, 'awb'),
210
+ ...CommonButtonStyles.label
211
+ })
212
+ }
213
+
214
+ if (this.invoice) {
215
+ actions.push({
216
+ title: i18next.t('button.print_invoice'),
217
+ action: this.printB2cDocument.bind(this, 'invoice'),
218
+ ...CommonButtonStyles.label
219
+ })
220
+ }
221
+ }
222
+
171
223
  if (this.orderRemark) {
172
224
  actions.push({
173
225
  title: i18next.t('button.order_remark'),
@@ -323,6 +375,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
323
375
  this.toggleComplete = false
324
376
  this._isRequireSerialNumberScanningOutbound = false
325
377
  this._isBatchPicking = false
378
+ this._isLmdOption = false
326
379
  }
327
380
 
328
381
  updated(changedProps) {
@@ -427,6 +480,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
427
480
  checkedRemarkAt
428
481
  totalInventoriesByBin
429
482
  isOrderInventoryBin
483
+ lmdOption
430
484
  }
431
485
  orderPackage {
432
486
  id
@@ -534,6 +588,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
534
588
 
535
589
  this.releaseGoodNo = releaseGood?.name
536
590
  this.releaseGoodId = releaseGood?.id
591
+ this.lmdOption = releaseGood?.lmdOption
592
+
537
593
  if (!response.data?.packingWorksheet) return
538
594
 
539
595
  const { worksheetInfo, worksheetDetailInfos } = response.data.packingWorksheet
@@ -555,6 +611,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
555
611
  this.shippingProvider = worksheetInfo.shippingProvider
556
612
  this.orderInformation = worksheetInfo.marketplaceOrder
557
613
  this.orderRemark = worksheetInfo.releaseGood?.remark
614
+ this._isLmdOption = releaseGood.lmdOption
558
615
  this.ownTransport = worksheetInfo.releaseGood?.ownTransport
559
616
  this.checkedRemarkAt = worksheetInfo.releaseGood?.checkedRemarkAt
560
617
  this.toggleComplete = Boolean(worksheetInfo.releaseGood?.remark)
@@ -704,6 +761,34 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
704
761
  }
705
762
  }
706
763
 
764
+ async printB2cDocument(type) {
765
+ let convertedPdfUrl = ''
766
+
767
+ if (type == 'invoice') {
768
+ let invoice = this.invoice
769
+
770
+ if (this.isValidHttpUrl(invoice)) {
771
+ let url = new URL(window.location)
772
+ convertedPdfUrl = `${url.origin}/proxy?url=${invoice}`
773
+ } else {
774
+ convertedPdfUrl = `${location.origin}/attachment/${invoice}`
775
+ }
776
+ } else if (type == 'awb') {
777
+ let airwayBill = this.airwayBill
778
+
779
+ if (airwayBill.includes('partner.shopeemobile.com')) {
780
+ convertedPdfUrl = `/pdf/merge?urls=${airwayBill}`
781
+ } else if (this.isValidHttpUrl(airwayBill)) {
782
+ let url = new URL(window.location)
783
+ convertedPdfUrl = `${url.origin}/proxy?url=${airwayBill}`
784
+ } else {
785
+ convertedPdfUrl = `${location.origin}/attachment/${airwayBill}`
786
+ }
787
+ }
788
+
789
+ this.callPrintDialog(convertedPdfUrl)
790
+ }
791
+
707
792
  async printPowrupDocument(type) {
708
793
  try {
709
794
  if (this.releaseGoodId == undefined) {
@@ -781,6 +866,30 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
781
866
  }
782
867
  }
783
868
 
869
+ async packingList() {
870
+ const timezoneOffset = new Date().getTimezoneOffset().toString()
871
+ const response = await client.query({
872
+ query: gql`
873
+ query packingList($orderPackageId: String!, $numberOfOrderProcessing: Int, $timezoneOffset: String) {
874
+ packingList(
875
+ orderPackageId: $orderPackageId
876
+ numberOfOrderProcessing: $numberOfOrderProcessing
877
+ timezoneOffset: $timezoneOffset
878
+ ) {
879
+ packingList
880
+ }
881
+ }
882
+ `,
883
+ variables: {
884
+ orderPackageId: this._orderPackageInformation.orderPackage.id,
885
+ numberOfOrderProcessing: this._orderPackageInformation.processing,
886
+ timezoneOffset: timezoneOffset
887
+ }
888
+ })
889
+ let htmlContent = Buffer.from(response.data.packingList.packingList, 'base64').toString()
890
+ this.callPrintPackingDialog(htmlContent)
891
+ }
892
+
784
893
  async printAirwayBill() {
785
894
  var orderDocInfo = await this.getOrderDocument(this.refNo, 'shippingLabel')
786
895
 
@@ -833,11 +942,24 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
833
942
  }
834
943
  }
835
944
 
945
+ async callPrintPackingDialog(contentSource) {
946
+ GhostPrint.print({
947
+ srcdoc: contentSource, //srcdoc is used to convert html to pdf
948
+ pending: 1000,
949
+ onfinish: () => {
950
+ this.showToast({ message: i18next.t('text.document_has_been_generated') })
951
+ }
952
+ })
953
+ }
954
+
836
955
  async callPrintDialog(contentSource) {
837
956
  switch (this.platform) {
957
+ //this condition is to select based on the content type
958
+ //for html content will be using srcdoc
959
+ //for url content will be using src
838
960
  case 'lazada':
839
961
  GhostPrint.print({
840
- srcdoc: contentSource,
962
+ srcdoc: contentSource, //srcdoc is used to convert html to pdf
841
963
  pending: 1000,
842
964
  onfinish: () => {
843
965
  this.showToast({ message: i18next.t('text.document_has_been_generated') })
@@ -848,7 +970,8 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
848
970
  case 'shopee':
849
971
  default:
850
972
  GhostPrint.print({
851
- src: contentSource,
973
+ src: contentSource, //src is use to convert url to pdf
974
+ pending: 1000,
852
975
  onfinish: () => {
853
976
  this.showToast({ message: i18next.t('text.document_has_been_generated') })
854
977
  }
@@ -1222,7 +1345,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
1222
1345
  if (
1223
1346
  this.releaseGoodNo &&
1224
1347
  this.platform == 'operato' &&
1225
- this.source != 'POWRUP' &&
1348
+ this.source == 'SELLERCRAFT' &&
1226
1349
  this.airwayBill &&
1227
1350
  this.completed
1228
1351
  ) {
@@ -1232,6 +1355,15 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
1232
1355
  if (this.releaseGoodNo && this.source == 'POWRUP' && this.airwayBill && this.completed) {
1233
1356
  await this.printPowrupDocument('awb')
1234
1357
  }
1358
+
1359
+ if (
1360
+ this.releaseGoodNo &&
1361
+ (this.source == 'OTHERS' || this.source == null) &&
1362
+ this.platform == 'operato' &&
1363
+ this.completed
1364
+ ) {
1365
+ await this.printB2cDocument('awb')
1366
+ }
1235
1367
  }
1236
1368
 
1237
1369
  async openSerialNumberPopup() {
@@ -1339,6 +1471,18 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
1339
1471
  })
1340
1472
  )
1341
1473
  }
1474
+
1475
+ isValidHttpUrl(string) {
1476
+ let url
1477
+
1478
+ try {
1479
+ url = new URL(string)
1480
+ } catch (_) {
1481
+ return false
1482
+ }
1483
+
1484
+ return url.protocol === 'http:' || url.protocol === 'https:'
1485
+ }
1342
1486
  }
1343
1487
 
1344
1488
  window.customElements.define('packing-product', PackingProduct)
@@ -6,15 +6,27 @@ import './select-operator-popup'
6
6
  import './inventory-reassign-popup'
7
7
 
8
8
  import gql from 'graphql-tag'
9
- import { css, html } from 'lit-element'
9
+ import {
10
+ css,
11
+ html
12
+ } from 'lit-element'
10
13
 
11
14
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
12
15
  import { getRenderer } from '@things-factory/grist-ui'
13
- import { i18next, localize } from '@things-factory/i18n-base'
16
+ import {
17
+ i18next,
18
+ localize
19
+ } from '@things-factory/i18n-base'
14
20
  import { openPopup } from '@things-factory/layout-base'
15
- import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
21
+ import {
22
+ client,
23
+ CustomAlert,
24
+ navigate,
25
+ PageView
26
+ } from '@things-factory/shell'
16
27
  import { CommonButtonStyles } from '@things-factory/styles'
17
28
  import { isMobileDevice } from '@things-factory/utils'
29
+
18
30
  import { fetchSettingRule } from '../../fetch-setting-value'
19
31
  import {
20
32
  ORDER_INVENTORY_STATUS,
@@ -30,6 +42,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
30
42
  static get properties() {
31
43
  return {
32
44
  isPalletPickingOrder: Boolean,
45
+ _isLmd: Boolean,
33
46
  _worksheetNo: String,
34
47
  _worksheetStatus: String,
35
48
  _roNo: String,
@@ -41,6 +54,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
41
54
  wsdGristConfig: Object,
42
55
  productGristData: Object,
43
56
  worksheetDetailData: Object,
57
+ roType: String,
44
58
  vasData: Object,
45
59
  vasGristConfig: Object,
46
60
  worksheetType: String,
@@ -214,23 +228,68 @@ class WorksheetPicking extends localize(i18next)(PageView) {
214
228
 
215
229
  <label>${i18next.t('label.options')}</label>
216
230
  <div options-wrap>
217
- <input id="ownCollection" type="checkbox" name="ownCollection" disabled />
218
- <label for="ownCollection">${i18next.t('label.own_collection')}</label>
219
-
220
- <input name="crossDocking" type="checkbox" .checked="${this.crossDocking}" disabled />
221
- <label>${i18next.t('field.cross_docking')}</label>
222
-
223
- <input name="courierOption" type="checkbox" .checked="${this.courierOption}" disabled />
224
- <label>${i18next.t('field.transporter')}</label>
225
-
226
- <input name="packingOption" type="checkbox" .checked="${this.packingOption}" disabled />
227
- <label>${i18next.t('field.packing')}</label>
228
-
229
- <input name="exportOption" type="checkbox" .checked="${this.exportOption}" disabled />
230
- <label>${i18next.t('field.export')}</label>
231
-
232
- <input name="vas" type="checkbox" .checked="${this.vasData?.records}" disabled />
233
- <label>${i18next.t('field.vas')}</label>
231
+ <input
232
+ id="ownCollection"
233
+ type="checkbox"
234
+ name="ownCollection"
235
+ ?hidden="${this.roType == 'b2c'}"
236
+ disabled
237
+ />
238
+ <label for="ownCollection" ?hidden="${this.roType == 'b2c'}">${i18next.t('label.own_collection')}</label>
239
+
240
+ <input
241
+ name="crossDocking"
242
+ type="checkbox"
243
+ .checked="${this.crossDocking}"
244
+ ?hidden="${this.roType == 'b2c'}"
245
+ disabled
246
+ />
247
+ <label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.cross_docking')}</label>
248
+
249
+ <input
250
+ name="courierOption"
251
+ type="checkbox"
252
+ .checked="${this.courierOption}"
253
+ ?hidden="${this.roType == 'b2c'}"
254
+ disabled
255
+ />
256
+ <label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.transporter')}</label>
257
+
258
+ <input
259
+ name="packingOption"
260
+ type="checkbox"
261
+ .checked="${this.packingOption}"
262
+ ?hidden="${this.roType == 'b2c'}"
263
+ disabled
264
+ />
265
+ <label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.packing')}</label>
266
+
267
+ <input
268
+ name="exportOption"
269
+ type="checkbox"
270
+ .checked="${this.exportOption}"
271
+ ?hidden="${this.roType == 'b2c'}"
272
+ disabled
273
+ />
274
+ <label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.export')}</label>
275
+
276
+ <input
277
+ name="vas"
278
+ type="checkbox"
279
+ .checked="${this.vasData?.records}"
280
+ ?hidden="${this.roType == 'b2c'}"
281
+ disabled
282
+ />
283
+ <label ?hidden="${this.roType == 'b2c'}">${i18next.t('field.vas')}</label>
284
+
285
+ <input
286
+ name="lmdOption"
287
+ type="checkbox"
288
+ .checked="${this._isLmd}"
289
+ ?hidden="${!this.roType == 'b2c'}"
290
+ disabled
291
+ />
292
+ <label ?hidden="${!this.roType == 'b2c'}">${i18next.t('field.lmd')}</label>
234
293
  </div>
235
294
 
236
295
  <label>${i18next.t('label.release_good_no')}</label>
@@ -708,6 +767,8 @@ class WorksheetPicking extends localize(i18next)(PageView) {
708
767
  releaseDate
709
768
  recall
710
769
  assignedInventory
770
+ lmdOption
771
+ type
711
772
  arrivalNotice {
712
773
  name
713
774
  }
@@ -860,6 +921,8 @@ class WorksheetPicking extends localize(i18next)(PageView) {
860
921
 
861
922
  this._roId = releaseGood?.id || ''
862
923
  this._roNo = releaseGood?.name || ''
924
+ this.roType = releaseGood?.type
925
+ this._isLmd = releaseGood?.lmdOption
863
926
  this.isRecall = releaseGood?.recall
864
927
  this.crossDocking = releaseGood?.crossDocking
865
928
  this.courierOption = releaseGood?.courierOption
@@ -952,12 +1015,15 @@ class WorksheetPicking extends localize(i18next)(PageView) {
952
1015
  status: wsd.status,
953
1016
  productSku: wsd.targetInventory.inventory.product.sku,
954
1017
  productBrand: wsd.targetInventory.inventory.product.brand,
955
- releaseQty: orderVass.length == 0 || (orderVass.length > 0 && worksheet.status !== 'DONE') ? wsd.targetInventory.releaseQty : wsd.targetInventory.pickedQty ,
1018
+ releaseQty:
1019
+ orderVass.length == 0 || (orderVass.length > 0 && worksheet.status !== 'DONE')
1020
+ ? wsd.targetInventory.releaseQty
1021
+ : wsd.targetInventory.pickedQty,
956
1022
  releaseUomValue: wsd.targetInventory.releaseUomValue,
957
1023
  releaseUomValueWithUom:
958
1024
  wsd.targetInventory.releaseUomValue.toFixed(2) + ' ' + wsd.targetInventory.inventory.uom,
959
1025
  availableQty:
960
- orderVass.length == 0 || (orderVass.length > 0 && worksheet.status !== 'DONE')
1026
+ orderVass.length == 0 || (orderVass.length > 0 && worksheet.status !== 'DONE')
961
1027
  ? wsd.targetInventory.inventory.qty -
962
1028
  wsd.targetInventory.inventory.lockedQty +
963
1029
  wsd.targetInventory.releaseQty
@@ -1,12 +1,26 @@
1
1
  import '@things-factory/barcode-ui'
2
- import { MultiColumnFormStyles } from '@things-factory/form-ui'
3
2
  import '@things-factory/grist-ui'
4
- import { i18next, localize } from '@things-factory/i18n-base'
5
- import { client, PageView, CustomAlert, navigate } from '@things-factory/shell'
3
+
4
+ import gql from 'graphql-tag'
5
+ import {
6
+ css,
7
+ html
8
+ } from 'lit-element'
9
+
10
+ import { MultiColumnFormStyles } from '@things-factory/form-ui'
11
+ import {
12
+ i18next,
13
+ localize
14
+ } from '@things-factory/i18n-base'
15
+ import {
16
+ client,
17
+ CustomAlert,
18
+ navigate,
19
+ PageView
20
+ } from '@things-factory/shell'
6
21
  import { CommonButtonStyles } from '@things-factory/styles'
7
22
  import { isMobileDevice } from '@things-factory/utils'
8
- import gql from 'graphql-tag'
9
- import { css, html } from 'lit-element'
23
+
10
24
  import { WORKSHEET_STATUS } from '../constants'
11
25
 
12
26
  class WorksheetSorting extends localize(i18next)(PageView) {
@@ -123,6 +137,9 @@ class WorksheetSorting extends localize(i18next)(PageView) {
123
137
  key => html` <option value="${WORKSHEET_STATUS[key].value}">${WORKSHEET_STATUS[key].name}</option> `
124
138
  )}
125
139
  </select>
140
+
141
+ <label>${i18next.t('label.release_good_no')}</label>
142
+ <textarea name="releaseGoodNo" rows="5" readonly></textarea>
126
143
  </fieldset>
127
144
  </form>
128
145
 
@@ -245,6 +262,14 @@ class WorksheetSorting extends localize(i18next)(PageView) {
245
262
  bizplace {
246
263
  name
247
264
  }
265
+ orderInventories {
266
+ id
267
+ releaseGood {
268
+ id
269
+ name
270
+ recall
271
+ }
272
+ }
248
273
  worksheetDetails {
249
274
  name
250
275
  status
@@ -289,6 +314,22 @@ class WorksheetSorting extends localize(i18next)(PageView) {
289
314
  this._worksheetStatus = worksheet.status
290
315
  this._taskNo = worksheet.taskNo
291
316
 
317
+ if (worksheet.orderInventories.length > 0) {
318
+ const { uniqueReleaseGoods } = worksheet.orderInventories.reduce(
319
+ (result, ordInv) => {
320
+ if (!result.uniqueReleaseGoods.find(name => name == ordInv.releaseGood.name))
321
+ result.uniqueReleaseGoods.push(ordInv.releaseGood.name)
322
+
323
+ return result
324
+ },
325
+ {
326
+ uniqueReleaseGoods: []
327
+ }
328
+ )
329
+
330
+ worksheet.releaseGoodNo = uniqueReleaseGoods.join(',\n')
331
+ }
332
+
292
333
  this._fillupForm({
293
334
  ...worksheet,
294
335
  bizplace: worksheet.bizplace.name
@@ -371,7 +412,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
371
412
 
372
413
  _fillupForm(data) {
373
414
  for (let key in data) {
374
- Array.from(this.form.querySelectorAll('input, select')).forEach(field => {
415
+ Array.from(this.form.querySelectorAll('input, select, textarea')).forEach(field => {
375
416
  if (field.name === key && field.type === 'checkbox') {
376
417
  field.checked = data[key]
377
418
  } else if (field.name === key) {
package/client/route.js CHANGED
@@ -88,6 +88,9 @@ export default function route(page) {
88
88
  import('./pages/order/release-order/create-release-order')
89
89
  return page
90
90
 
91
+ case 'create_b2c_release_order':
92
+ import('./pages/order/release-order/b2c/create-b2c-release-order')
93
+
91
94
  case 'b2b_orders':
92
95
  import('./pages/order/release-order/b2b/b2b-order-list')
93
96
  return page
@@ -96,6 +99,10 @@ export default function route(page) {
96
99
  import('./pages/order/release-order/release-order-detail')
97
100
  return page
98
101
 
102
+ case 'b2c_release_order_detail':
103
+ import('./pages/order/release-order/b2c/b2c-release-order-detail')
104
+ return page
105
+
99
106
  case 'b2b_order_requests':
100
107
  import('./pages/order/release-order/b2b/b2b-order-requests')
101
108
  return page
@@ -500,7 +507,7 @@ export default function route(page) {
500
507
  case 'shortage_report':
501
508
  import('./pages/report/shortage-report')
502
509
  return page
503
-
510
+
504
511
  case 'analysis_picking_packing_report':
505
512
  import('./pages/report/analysis-picking-packing-report')
506
513
  return page
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.333",
3
+ "version": "4.3.335",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -91,7 +91,7 @@
91
91
  "@things-factory/print-ui": "^4.3.281",
92
92
  "@things-factory/product-base": "^4.3.318",
93
93
  "@things-factory/resource-ui": "^4.3.281",
94
- "@things-factory/sales-ui": "^4.3.333",
94
+ "@things-factory/sales-ui": "^4.3.335",
95
95
  "@things-factory/scene-data-transform": "^4.3.281",
96
96
  "@things-factory/scene-excel": "^4.3.281",
97
97
  "@things-factory/scene-firebase": "^4.3.281",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.281",
108
108
  "@things-factory/transport-base": "^4.3.301",
109
109
  "@things-factory/tutorial-ui": "^4.3.281",
110
- "@things-factory/warehouse-base": "^4.3.333",
111
- "@things-factory/worksheet-base": "^4.3.333"
110
+ "@things-factory/warehouse-base": "^4.3.335",
111
+ "@things-factory/worksheet-base": "^4.3.335"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.281",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "a9ed01d6e292f5b5557b2757da41233e37fcad26"
120
+ "gitHead": "b475ac676bc9286c19f679300a012c1d0528761b"
121
121
  }
@@ -43,8 +43,6 @@ export default {
43
43
  tagname: 'tote-list',
44
44
  page: 'totes'
45
45
  },
46
-
47
-
48
46
 
49
47
  /**
50
48
  * Order Menus Section
@@ -89,6 +87,10 @@ export default {
89
87
  tagname: 'create-release-order',
90
88
  page: 'create_release_order'
91
89
  },
90
+ {
91
+ tagname: 'create-b2c-release-order',
92
+ page: 'create_b2c_release_order'
93
+ },
92
94
  {
93
95
  tagname: 'b2b-order-list',
94
96
  page: 'b2b_orders'
@@ -97,6 +99,10 @@ export default {
97
99
  tagname: 'release-order-detail',
98
100
  page: 'release_order_detail'
99
101
  },
102
+ {
103
+ tagname: 'b2c-release-order-detail',
104
+ page: 'b2c_release_order_detail'
105
+ },
100
106
  {
101
107
  tagname: 'b2b-order-requests',
102
108
  page: 'b2b_order_requests'
@@ -510,13 +516,13 @@ export default {
510
516
  tagname: 'order-vas-report',
511
517
  page: 'order_vas_report'
512
518
  },
513
- {
519
+ {
514
520
  tagname: 'vas-report',
515
521
  page: 'vas_report'
516
522
  },
517
523
  {
518
- tagname:'shortage-report',
519
- page:'shortage_report'
524
+ tagname: 'shortage-report',
525
+ page: 'shortage_report'
520
526
  },
521
527
  {
522
528
  tagname: 'analysis-picking-packing-report',