@things-factory/operato-wms 4.3.143 → 4.3.146

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.
@@ -6,9 +6,10 @@ import { css, html } from 'lit-element'
6
6
 
7
7
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
8
8
  import { i18next, localize } from '@things-factory/i18n-base'
9
- import { client, navigate, PageView, CustomAlert } from '@things-factory/shell'
9
+ import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
10
10
  import { CommonButtonStyles } from '@things-factory/styles'
11
11
  import { isMobileDevice } from '@things-factory/utils'
12
+
12
13
  import { ORDER_STATUS } from '../constants'
13
14
 
14
15
  class CreateLoadingManifest extends localize(i18next)(PageView) {
@@ -206,13 +207,18 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
206
207
 
207
208
  const response = await client.query({
208
209
  query: gql`
209
- query releaseGood($trackingNo: String) {
210
- releaseGood(trackingNo: $trackingNo) {
210
+ query orderPackage($trackingNo: String) {
211
+ orderPackage(trackingNo: $trackingNo) {
211
212
  id
212
213
  name
213
214
  trackingNo
214
- refNo
215
215
  transporter
216
+ releaseGood {
217
+ id
218
+ name
219
+ refNo
220
+ status
221
+ }
216
222
  bizplace {
217
223
  id
218
224
  name
@@ -225,14 +231,14 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
225
231
  variables: { trackingNo: this.trackingNoInput.value.trim() }
226
232
  })
227
233
  if (!response.errors) {
228
- const releaseGood = response.data.releaseGood
234
+ const orderPackage = response.data.orderPackage
229
235
 
230
- if (releaseGood && !this.shippingData.records.map(record => record.refNo).includes(releaseGood.refNo)) {
236
+ if (orderPackage) {
231
237
  let manifestItems = this.shippingData.records || []
232
238
 
233
239
  if (
234
- releaseGood?.status === ORDER_STATUS.CANCELLED.value ||
235
- releaseGood?.status === ORDER_STATUS.PENDING_CANCEL.value
240
+ orderPackage?.releaseGood?.status === ORDER_STATUS.CANCELLED.value ||
241
+ orderPackage?.releaseGood?.status === ORDER_STATUS.PENDING_CANCEL.value
236
242
  ) {
237
243
  let answer = await CustomAlert({
238
244
  type: 'warning',
@@ -248,15 +254,19 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
248
254
  }
249
255
  }
250
256
 
251
- if (releaseGood.manifestedAt != null){
257
+ if (orderPackage.manifestedAt != null) {
252
258
  this._showToast({ message: i18next.t('text.tracking_no_already_exist_in_other_manifest_list') })
253
259
  return
254
260
  }
255
261
 
256
- manifestItems.push({ ...releaseGood, bizplaceName: releaseGood.bizplace.name, orderNo: releaseGood.refNo })
262
+ manifestItems.push({
263
+ ...orderPackage,
264
+ bizplaceName: orderPackage.bizplace.name,
265
+ refNo: orderPackage.releaseGood.refNo,
266
+ orderNo: orderPackage.releaseGood.refNo
267
+ })
257
268
  this.shippingData = { records: manifestItems }
258
- }
259
- else {
269
+ } else {
260
270
  this._showToast({ message: i18next.t('text.tracking_no_already_exist_in_manifest_list') })
261
271
  }
262
272
 
@@ -1,6 +1,7 @@
1
1
  import '@things-factory/form-ui'
2
2
  import '@things-factory/grist-ui'
3
3
  import '../batch-picking-popup'
4
+ import '../print-airway-bill-popup'
4
5
  import '../../../outbound/generate-worksheet-popup'
5
6
 
6
7
  import gql from 'graphql-tag'
@@ -12,7 +13,7 @@ import { DirectPrinter } from '@things-factory/barcode-base'
12
13
  import { getCodeByName } from '@things-factory/code-base'
13
14
  import { i18next, localize } from '@things-factory/i18n-base'
14
15
  import { openPopup } from '@things-factory/layout-base'
15
- import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
16
+ import { client, navigate, PageView, store } from '@things-factory/shell'
16
17
  import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
17
18
  import { isMobileDevice, sleep } from '@things-factory/utils'
18
19
 
@@ -270,18 +271,8 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
270
271
  hidden: !_enablePrintSCAwb,
271
272
  handlers: {
272
273
  click: async (columns, data, column, record, rowIndex) => {
273
- if (record.airwayBill) {
274
- let convertedPdfUrl = ''
275
- if (record.airwayBill.includes('partner.shopeemobile.com')) {
276
- convertedPdfUrl = `/pdf/merge?urls=${record.airwayBill}`
277
- } else {
278
- let url = new URL(window.location)
279
- convertedPdfUrl = `${url.origin}/proxy?url=${record.airwayBill}`
280
- }
281
-
282
- this._callPrintDialog(convertedPdfUrl, true)
283
- } else {
284
- this._showToast({ message: i18next.t('text.there_is_no_airway_bill_for_this_ro') })
274
+ if (record.status == 'DONE') {
275
+ this._openAwbPopup({ releaseGoodId: record.id, bizplaceId: record.bizplace.id })
285
276
  }
286
277
  }
287
278
  }
@@ -809,6 +800,22 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
809
800
  }
810
801
  }
811
802
 
803
+ _openAwbPopup({ releaseGoodId, bizplaceId }) {
804
+ openPopup(
805
+ html`
806
+ <print-airway-bill-popup
807
+ .releaseGoodId="${releaseGoodId}"
808
+ .bizplaceId="${bizplaceId}"
809
+ ></print-airway-bill-popup>
810
+ `,
811
+ {
812
+ backdrop: true,
813
+ size: 'small',
814
+ title: i18next.t('title.awb')
815
+ }
816
+ )
817
+ }
818
+
812
819
  _compareValues(key, order = 'asc') {
813
820
  return function innerSort(a, b) {
814
821
  if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
@@ -0,0 +1,159 @@
1
+ import '@things-factory/grist-ui'
2
+ import '@things-factory/biz-ui'
3
+
4
+ import gql from 'graphql-tag'
5
+ import { css, html, LitElement } from 'lit-element'
6
+
7
+ import { GhostPrint } from '@operato/ghost-print'
8
+ import { SingleColumnFormStyles } from '@things-factory/form-ui'
9
+ import { i18next, localize } from '@things-factory/i18n-base'
10
+ import { client } from '@things-factory/shell'
11
+ import { ScrollbarStyles } from '@things-factory/styles'
12
+
13
+ class PrintAirwayBillPopup extends localize(i18next)(LitElement) {
14
+ static get properties() {
15
+ return {
16
+ releaseGoodId: String,
17
+ bizplaceId: String,
18
+ _orderPackages: Array
19
+ }
20
+ }
21
+
22
+ static get styles() {
23
+ return [
24
+ SingleColumnFormStyles,
25
+ ScrollbarStyles,
26
+ css`
27
+ :host {
28
+ display: flex;
29
+ flex-direction: column;
30
+ overflow: hidden;
31
+ background-color: white;
32
+ max-width: var(--content-container-max-width);
33
+ padding: var(--padding-default) var(--padding-wide);
34
+ }
35
+ .label-container {
36
+ padding: var(--search-form-box-padding);
37
+ }
38
+ .grid-container {
39
+ position: relative;
40
+ display: grid;
41
+ grid-template-columns: repeat(3, 1fr);
42
+ grid-auto-rows: minmax(24px, auto);
43
+ grid-gap: var(--form-grid-gap);
44
+ grid-auto-rows: minmax(24px, auto);
45
+ padding: var(--search-form-box-padding);
46
+ overflow: scroll;
47
+ }
48
+ .grid-container label {
49
+ grid-column: span 2 / auto;
50
+ text-align: left;
51
+ align-self: center;
52
+ }
53
+ .grid-container mwc-button {
54
+ grid-column: span 1 / auto;
55
+ text-align: right;
56
+ align-self: center;
57
+ }
58
+ `
59
+ ]
60
+ }
61
+
62
+ render() {
63
+ return html`
64
+ <div class="grid-container">
65
+ <label>${i18next.t('title.tracking_number')}</label>
66
+ ${this._orderPackages?.length
67
+ ? this._orderPackages.map((op, idx) => {
68
+ return html`
69
+ <label>${op.trackingNo}</label>
70
+ <mwc-button
71
+ label="${`${i18next.t('button.preview')}`}"
72
+ @click="${e => this.printDocument(op)}"
73
+ raised
74
+ ></mwc-button>
75
+ `
76
+ })
77
+ : ''}
78
+ </div>
79
+ `
80
+ }
81
+
82
+ async firstUpdated() {
83
+ await this.fetchOrderPackages()
84
+ }
85
+
86
+ async printDocument(record) {
87
+ if (record.airwayBill) {
88
+ let convertedPdfUrl = ''
89
+ if (record.airwayBill.includes('partner.shopeemobile.com')) {
90
+ convertedPdfUrl = `/pdf/merge?urls=${record.airwayBill}`
91
+ } else {
92
+ let url = new URL(window.location)
93
+ convertedPdfUrl = `${url.origin}/proxy?url=${record.airwayBill}`
94
+ }
95
+ this._callPrintDialog(convertedPdfUrl, true)
96
+ } else {
97
+ this._showToast({ message: i18next.t('text.there_is_no_airway_bill_for_this_ro') })
98
+ }
99
+ }
100
+
101
+ async fetchOrderPackages() {
102
+ const filters = [
103
+ { name: 'releaseGoodId', operator: 'eq', value: this.releaseGoodId },
104
+ { name: 'bizplaceId', operator: 'eq', value: this.bizplaceId }
105
+ ]
106
+
107
+ const response = await client.query({
108
+ query: gql`
109
+ query orderPackages($filters: [Filter!]!) {
110
+ orderPackages(filters: $filters) {
111
+ items {
112
+ id
113
+ name
114
+ packageId
115
+ trackingNo
116
+ airwayBill
117
+ invoice
118
+ }
119
+ total
120
+ }
121
+ }
122
+ `,
123
+ variables: { filters }
124
+ })
125
+ if (!response.errors) {
126
+ this._orderPackages = response.data.orderPackages.items || []
127
+ }
128
+ }
129
+
130
+ async _callPrintDialog(contentSource, isSellerCraft = false) {
131
+ if (isSellerCraft) {
132
+ GhostPrint.print({
133
+ src: contentSource,
134
+ onfinish: () => {
135
+ this._showToast({ message: i18next.t('text.document_has_been_generated') })
136
+ }
137
+ })
138
+ } else {
139
+ GhostPrint.print({
140
+ srcdoc: contentSource,
141
+ onfinish: () => {
142
+ this._showToast({ message: i18next.t('text.document_has_been_generated') })
143
+ }
144
+ })
145
+ }
146
+ }
147
+
148
+ _showToast({ type, message }) {
149
+ document.dispatchEvent(
150
+ new CustomEvent('notify', {
151
+ detail: {
152
+ type,
153
+ message
154
+ }
155
+ })
156
+ )
157
+ }
158
+ }
159
+ window.customElements.define('print-airway-bill-popup', PrintAirwayBillPopup)
@@ -4,14 +4,15 @@ import '../../components/attachment-viewer'
4
4
  import '../../components/vas-templates'
5
5
  import './release-extra-product-popup'
6
6
  import '../../components/popup-note'
7
+ import '../release-order/tracking-information-popup'
7
8
  import '@things-factory/component-ui'
8
9
  import '@things-factory/import-ui'
9
10
 
10
- import { getCodeByName } from '@things-factory/code-base'
11
11
  import gql from 'graphql-tag'
12
12
  import { css, html } from 'lit-element'
13
13
  import { connect } from 'pwa-helpers/connect-mixin'
14
14
 
15
+ import { getCodeByName } from '@things-factory/code-base'
15
16
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
16
17
  import { getRenderer } from '@things-factory/grist-ui'
17
18
  import { i18next, localize } from '@things-factory/i18n-base'
@@ -36,6 +37,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
36
37
  _userType: String,
37
38
  _userRoles: Array,
38
39
  _releaseOrderNo: String,
40
+ _roInfo: Object,
39
41
  _template: Object,
40
42
  _ownTransport: Boolean,
41
43
  _crossDocking: Boolean,
@@ -432,6 +434,10 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
432
434
  <textarea name="remark" ?hidden="${this.roType === 'b2b'}" rows="5" ?readonly="${!this
433
435
  ?._editable}"></textarea>
434
436
 
437
+ <label ?hidden="${this.roType === 'b2b'}">${i18next.t('label.tracking_no')}</label>
438
+ <textarea name="trackingNos" ?hidden="${this.roType === 'b2b'}" rows="5" ?readonly="${!this
439
+ ?._editable}"></textarea>
440
+
435
441
  ${
436
442
  this._crossDocking
437
443
  ? html`
@@ -766,6 +772,22 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
766
772
  this._showExportInfo = true
767
773
  }
768
774
 
775
+ _openTrackingInformation() {
776
+ openPopup(
777
+ html`
778
+ <tracking-information-popup
779
+ .releaseGoodId="${this._roInfo.id}"
780
+ .bizplaceId="${this.partnerBizplaceId}"
781
+ ></tracking-information-popup>
782
+ `,
783
+ {
784
+ backdrop: true,
785
+ size: 'medium',
786
+ title: i18next.t('title.tracking_information')
787
+ }
788
+ )
789
+ }
790
+
769
791
  get context() {
770
792
  this._vasExpanded = false ? this._userRoles.find(x => x.name?.toLowerCase() === 'office admin') : false
771
793
 
@@ -776,6 +798,15 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
776
798
  ...CommonButtonStyles.back
777
799
  }
778
800
  ]
801
+
802
+ if (this._roInfo?.orderPackages?.length) {
803
+ actions.push({
804
+ title: i18next.t('button.tracking_no'),
805
+ action: this._openTrackingInformation.bind(this),
806
+ ...CommonButtonStyles.arrived
807
+ })
808
+ }
809
+
779
810
  if (this.isUserBelongsDomain) {
780
811
  if (this._status === ORDER_STATUS.PENDING_RECEIVE.value && !this._crossDocking) {
781
812
  actions.push(
@@ -1243,6 +1274,11 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1243
1274
  name
1244
1275
  description
1245
1276
  }
1277
+ orderPackages {
1278
+ id
1279
+ name
1280
+ trackingNo
1281
+ }
1246
1282
  orderProducts {
1247
1283
  id
1248
1284
  name
@@ -1338,6 +1374,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1338
1374
  if (!response.errors) {
1339
1375
  const releaseOrder = response.data.releaseGoodDetail
1340
1376
  const shippingOrder = releaseOrder.shippingOrderInfo
1377
+ const orderPackages = releaseOrder.orderPackages
1341
1378
  const orderProducts = releaseOrder.orderProducts.map(op => {
1342
1379
  let roundedUomValue = parseFloat(op.releaseUomValue.toFixed(2))
1343
1380
  return {
@@ -1350,6 +1387,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1350
1387
  }
1351
1388
  })
1352
1389
 
1390
+ this._roInfo = releaseOrder
1353
1391
  this.roType = releaseOrder.type
1354
1392
  this._orderMethod = releaseOrder.orderMethod
1355
1393
  this._isInBatchPicking = releaseOrder.inventoryInfos.some(inventoryInfo => inventoryInfo.refWorksheetId)
@@ -1424,7 +1462,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1424
1462
 
1425
1463
  this._fillupRGForm({
1426
1464
  ...releaseOrder,
1427
- bizplaceName: releaseOrder.bizplace?.name
1465
+ bizplaceName: releaseOrder.bizplace?.name,
1466
+ trackingNos: orderPackages.length > 0 ? orderPackages.map(op => op.trackingNo).join(', ') : ''
1428
1467
  })
1429
1468
 
1430
1469
  if (shippingOrder) {
@@ -0,0 +1,108 @@
1
+ import '@things-factory/grist-ui'
2
+ import '@things-factory/biz-ui'
3
+
4
+ import gql from 'graphql-tag'
5
+ import { css, html, LitElement } from 'lit-element'
6
+
7
+ import { i18next, localize } from '@things-factory/i18n-base'
8
+ import { client } from '@things-factory/shell'
9
+
10
+ class TrackingInformationPopup extends localize(i18next)(LitElement) {
11
+ static get properties() {
12
+ return {
13
+ releaseGoodId: String,
14
+ bizplaceId: String,
15
+ config: Object
16
+ }
17
+ }
18
+
19
+ static get styles() {
20
+ return [
21
+ css`
22
+ :host {
23
+ display: flex;
24
+ flex-direction: column;
25
+ width: 100%;
26
+ }
27
+
28
+ data-report {
29
+ flex: 1;
30
+ }
31
+ `
32
+ ]
33
+ }
34
+
35
+ render() {
36
+ return html`<data-report .config=${this.config} .fetchHandler=${this.fetchOrderPackages.bind(this)}></data-report>`
37
+ }
38
+
39
+ async firstUpdated() {
40
+ this.config = {
41
+ rows: {
42
+ selectable: false,
43
+ groups: [{ column: 'trackingNo' }, { column: 'sku' }]
44
+ },
45
+ columns: [
46
+ {
47
+ type: 'string',
48
+ name: 'trackingNo',
49
+ header: i18next.t('field.tracking_no'),
50
+ sortable: false,
51
+ width: 300
52
+ },
53
+ {
54
+ type: 'string',
55
+ name: 'sku',
56
+ header: i18next.t('field.sku'),
57
+ sortable: false,
58
+ width: 300
59
+ },
60
+ {
61
+ type: 'number',
62
+ name: 'releaseQty',
63
+ header: i18next.t('field.release_qty'),
64
+ sortable: false,
65
+ width: 250
66
+ }
67
+ ]
68
+ }
69
+ }
70
+
71
+ async fetchOrderPackages() {
72
+ const filters = [
73
+ { name: 'releaseGoodId', operator: 'eq', value: this.releaseGoodId },
74
+ { name: 'bizplaceId', operator: 'eq', value: this.bizplaceId }
75
+ ]
76
+
77
+ const response = await client.query({
78
+ query: gql`
79
+ query orderPackageItemsGroup($filters: [Filter!]!) {
80
+ orderPackageItemsGroup(filters: $filters) {
81
+ trackingNo
82
+ sku
83
+ releaseQty
84
+ }
85
+ }
86
+ `,
87
+ variables: { filters }
88
+ })
89
+ if (!response.errors) {
90
+ return {
91
+ total: 0,
92
+ records: response.data.orderPackageItemsGroup || []
93
+ }
94
+ }
95
+ }
96
+
97
+ _showToast({ type, message }) {
98
+ document.dispatchEvent(
99
+ new CustomEvent('notify', {
100
+ detail: {
101
+ type,
102
+ message
103
+ }
104
+ })
105
+ )
106
+ }
107
+ }
108
+ window.customElements.define('tracking-information-popup', TrackingInformationPopup)
@@ -45,6 +45,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
45
45
  _logisticsInitiated: Boolean,
46
46
  _selectedTaskStatus: String,
47
47
  _worksheetInfo: Object,
48
+ _orderPackageInformation: Object,
48
49
  _scanning: Boolean,
49
50
  _isRequireSerialNumberScanningOutbound: Boolean,
50
51
  _isBatchPicking: Boolean
@@ -89,7 +90,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
89
90
 
90
91
  get context() {
91
92
  var actions = []
92
- if (this.releaseGoodNo && (this.platform === PLATFORM.LAZADA.value || this.platform === PLATFORM.SHOPEE.value) && this.completed && this.trackingNo) {
93
+ if (
94
+ this.releaseGoodNo &&
95
+ (this.platform === PLATFORM.LAZADA.value || this.platform === PLATFORM.SHOPEE.value) &&
96
+ this.completed &&
97
+ this.trackingNo
98
+ ) {
93
99
  actions.push({
94
100
  title: i18next.t('button.print_airway_bill'),
95
101
  action: this.printAirwayBill.bind(this),
@@ -276,6 +282,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
276
282
  ? html`(${this._bizplaceName})
277
283
  <mwc-icon @click="${this.openWorksheetInformation.bind(this)}">info</mwc-icon>`
278
284
  : ''}
285
+ ${html`[${this._orderPackageInformation.processing}/${this._orderPackageInformation.total}]`}
279
286
  </legend>
280
287
  </fieldset>
281
288
  </form>
@@ -287,6 +294,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
287
294
  constructor() {
288
295
  super()
289
296
  this.data = { records: [] }
297
+ this._orderPackageInformation = { processing: 0, total: 0 }
290
298
  this.releaseGoodNo = ''
291
299
  this.releaseGoodId = ''
292
300
  this.totalBinRO = 0
@@ -404,6 +412,18 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
404
412
  totalInventoriesByBin
405
413
  isOrderInventoryBin
406
414
  }
415
+ orderPackage {
416
+ id
417
+ name
418
+ packageId
419
+ status
420
+ }
421
+ orderPackages {
422
+ id
423
+ name
424
+ packageId
425
+ status
426
+ }
407
427
  bizplaceName
408
428
  partnerDomainId
409
429
  checkedRemarkBy
@@ -499,6 +519,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
499
519
 
500
520
  this.data = { records: this.formatWorksheetDetailInfos(worksheetDetailInfos) }
501
521
 
522
+ this._orderPackageInformation = {
523
+ processing: worksheetInfo.orderPackages.filter(op => op.status == 'DONE').length + 1 || 0,
524
+ total: worksheetInfo.orderPackages?.length || 0,
525
+ orderPackage: worksheetInfo.orderPackage
526
+ }
527
+
502
528
  this.trackingNo = worksheetInfo.trackingNo
503
529
  this.airwayBill = worksheetInfo.airwayBill
504
530
  this.invoice = worksheetInfo.invoice
@@ -514,7 +540,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
514
540
  worksheetInfo.releaseGood?.checkedRemarkAt !== null
515
541
  : worksheetDetailInfos.every(res => res.status === 'DONE')
516
542
 
517
- this._isBatchPicking = worksheetDetailInfos[0].relatedOrderInv?.refWorksheetId ? true : false
543
+ this._isBatchPicking = worksheetInfo.isBatchPicking
518
544
 
519
545
  this._bizplaceName = worksheetInfo.bizplaceName
520
546
  this._worksheetInfo = worksheetInfo
@@ -802,9 +828,9 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
802
828
  this._scanning = true
803
829
  let response = await client.mutate({
804
830
  mutation: gql`
805
- mutation scanProductPacking($worksheetDetailName: String!, $productBarcode: String!, $serialNumber: String) {
831
+ mutation scanProductPacking($orderPackageItemId: String!, $productBarcode: String!, $serialNumber: String) {
806
832
  scanProductPacking(
807
- worksheetDetailName: $worksheetDetailName
833
+ orderPackageItemId: $orderPackageItemId
808
834
  productBarcode: $productBarcode
809
835
  serialNumber: $serialNumber
810
836
  ) {
@@ -857,7 +883,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
857
883
  }
858
884
  `,
859
885
  variables: {
860
- worksheetDetailName: this._selectedOrderInventory.id,
886
+ orderPackageItemId: this._selectedOrderInventory.id,
861
887
  productBarcode: this.productBarcodeInput.value.trim(),
862
888
  serialNumber:
863
889
  this._isRequireSerialNumberScanningOutbound && this._isBatchPicking ? this.serialInput.value.trim() : null
@@ -923,12 +949,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
923
949
  this._scanning = true
924
950
  return await client.mutate({
925
951
  mutation: gql`
926
- mutation packing($worksheetDetailName: String!, $releaseQty: Int!, $serialNumber: String) {
927
- packing(worksheetDetailName: $worksheetDetailName, releaseQty: $releaseQty, serialNumber: $serialNumber)
952
+ mutation packing($orderPackageItemId: String!, $releaseQty: Int!, $serialNumber: String) {
953
+ packing(orderPackageItemId: $orderPackageItemId, releaseQty: $releaseQty, serialNumber: $serialNumber)
928
954
  }
929
955
  `,
930
956
  variables: {
931
- worksheetDetailName: this._selectedOrderInventory.name,
957
+ orderPackageItemId: this._selectedOrderInventory.id,
932
958
  releaseQty:
933
959
  this._isRequireSerialNumberScanningOutbound && this._isBatchPicking
934
960
  ? 1
@@ -994,11 +1020,11 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
994
1020
  async complete() {
995
1021
  const response = await client.mutate({
996
1022
  mutation: gql`
997
- mutation completePacking($releaseGoodNo: String!) {
998
- completePacking(releaseGoodNo: $releaseGoodNo)
1023
+ mutation completePacking($releaseGoodNo: String!, $orderPackageId: String!) {
1024
+ completePacking(releaseGoodNo: $releaseGoodNo, orderPackageId: $orderPackageId)
999
1025
  }
1000
1026
  `,
1001
- variables: { releaseGoodNo: this.releaseGoodNo }
1027
+ variables: { releaseGoodNo: this.releaseGoodNo, orderPackageId: this._orderPackageInformation?.orderPackage?.id }
1002
1028
  })
1003
1029
 
1004
1030
  if (!response.errors) {
@@ -9,7 +9,7 @@ module.exports = {
9
9
  // ormconfig: {
10
10
  // name: 'default',
11
11
  // type: 'postgres',
12
- // database: 'dev3',
12
+ // database: 'dev',
13
13
  // username: 'postgres',
14
14
  // password: 'hatio',
15
15
  // host: '192.168.0.153',
@@ -14,7 +14,7 @@
14
14
 
15
15
  <br>
16
16
  For additional information about the aspects of the release, see the following link
17
- <a href="https://bit.ly/20220821_Hatio_Release">V4.8.0 Release Note</a>
17
+ <a href="https://drive.google.com/file/d/1Q8Z6ZqODapVCTMKQwKG7USzFDLwksOAQ/view?usp=share_link">V4.3.143 Release Note</a>
18
18
  <br>
19
19
 
20
20
  Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
@@ -14,7 +14,7 @@
14
14
 
15
15
  <br>
16
16
  For additional information about the aspects of the release, see the following link
17
- <a href="https://bit.ly/20220821_Hatio_Release">V4.8.0 Release Note</a>
17
+ <a href="https://drive.google.com/file/d/1Q8Z6ZqODapVCTMKQwKG7USzFDLwksOAQ/view?usp=share_link">V4.3.143 Release Note</a>
18
18
  <br>
19
19
 
20
20
  Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
@@ -14,7 +14,7 @@
14
14
 
15
15
  <br>
16
16
  For additional information about the aspects of the release, see the following link
17
- <a href="https://bit.ly/20220821_Hatio_Release">V4.8.0 Release Note</a>
17
+ <a href="https://drive.google.com/file/d/1Q8Z6ZqODapVCTMKQwKG7USzFDLwksOAQ/view?usp=share_link">V4.3.143 Release Note</a>
18
18
  <br>
19
19
 
20
20
  Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
@@ -14,7 +14,7 @@
14
14
 
15
15
  <br>
16
16
  For additional information about the aspects of the release, see the following link
17
- <a href="https://bit.ly/20220821_Hatio_Release">V4.8.0 Release Note</a>
17
+ <a href="https://drive.google.com/file/d/1Q8Z6ZqODapVCTMKQwKG7USzFDLwksOAQ/view?usp=share_link">V4.3.143 Release Note</a>
18
18
  <br>
19
19
 
20
20
  Should you have any inquiries, feel free to contact support@hatio.asia! Stay safe and positively negative!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.143",
3
+ "version": "4.3.146",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -62,60 +62,60 @@
62
62
  "@operato/scene-tab": "^0.1.8",
63
63
  "@operato/scene-table": "^0.1.8",
64
64
  "@operato/scene-wheel-sorter": "^0.1.8",
65
- "@things-factory/apptool-ui": "^4.3.142",
66
- "@things-factory/attachment-ui": "^4.3.142",
67
- "@things-factory/auth-ui": "^4.3.142",
68
- "@things-factory/barcode-ui": "^4.3.142",
69
- "@things-factory/biz-ui": "^4.3.142",
70
- "@things-factory/board-service": "^4.3.142",
71
- "@things-factory/board-ui": "^4.3.142",
72
- "@things-factory/code-ui": "^4.3.142",
73
- "@things-factory/context-ui": "^4.3.142",
74
- "@things-factory/export-ui": "^4.3.142",
75
- "@things-factory/export-ui-csv": "^4.3.142",
76
- "@things-factory/export-ui-excel": "^4.3.142",
77
- "@things-factory/fav-base": "^4.3.142",
78
- "@things-factory/form-ui": "^4.3.142",
79
- "@things-factory/geography": "^4.3.142",
80
- "@things-factory/grist-ui": "^4.3.142",
81
- "@things-factory/help": "^4.3.142",
82
- "@things-factory/i18n-base": "^4.3.142",
83
- "@things-factory/id-rule-base": "^4.3.142",
84
- "@things-factory/import-ui": "^4.3.142",
85
- "@things-factory/import-ui-excel": "^4.3.142",
86
- "@things-factory/menu-ui": "^4.3.142",
87
- "@things-factory/more-ui": "^4.3.142",
88
- "@things-factory/notification": "^4.3.142",
89
- "@things-factory/pdf": "^4.3.142",
90
- "@things-factory/print-proxy-service": "^4.3.142",
91
- "@things-factory/print-ui": "^4.3.142",
92
- "@things-factory/product-base": "^4.3.143",
93
- "@things-factory/resource-ui": "^4.3.142",
94
- "@things-factory/sales-ui": "^4.3.143",
95
- "@things-factory/scene-data-transform": "^4.3.142",
96
- "@things-factory/scene-excel": "^4.3.142",
97
- "@things-factory/scene-firebase": "^4.3.142",
98
- "@things-factory/scene-form": "^4.3.142",
99
- "@things-factory/scene-google-map": "^4.3.142",
100
- "@things-factory/scene-graphql": "^4.3.142",
101
- "@things-factory/scene-label": "^4.3.142",
102
- "@things-factory/scene-marker": "^4.3.142",
103
- "@things-factory/scene-mqtt": "^4.3.142",
104
- "@things-factory/scene-restful": "^4.3.142",
105
- "@things-factory/scene-visualizer": "^4.3.142",
106
- "@things-factory/setting-ui": "^4.3.142",
107
- "@things-factory/system-ui": "^4.3.142",
108
- "@things-factory/transport-base": "^4.3.142",
109
- "@things-factory/tutorial-ui": "^4.3.142",
110
- "@things-factory/warehouse-base": "^4.3.143",
111
- "@things-factory/worksheet-base": "^4.3.143"
65
+ "@things-factory/apptool-ui": "^4.3.146",
66
+ "@things-factory/attachment-ui": "^4.3.146",
67
+ "@things-factory/auth-ui": "^4.3.146",
68
+ "@things-factory/barcode-ui": "^4.3.146",
69
+ "@things-factory/biz-ui": "^4.3.146",
70
+ "@things-factory/board-service": "^4.3.146",
71
+ "@things-factory/board-ui": "^4.3.146",
72
+ "@things-factory/code-ui": "^4.3.146",
73
+ "@things-factory/context-ui": "^4.3.146",
74
+ "@things-factory/export-ui": "^4.3.146",
75
+ "@things-factory/export-ui-csv": "^4.3.146",
76
+ "@things-factory/export-ui-excel": "^4.3.146",
77
+ "@things-factory/fav-base": "^4.3.146",
78
+ "@things-factory/form-ui": "^4.3.146",
79
+ "@things-factory/geography": "^4.3.146",
80
+ "@things-factory/grist-ui": "^4.3.146",
81
+ "@things-factory/help": "^4.3.146",
82
+ "@things-factory/i18n-base": "^4.3.146",
83
+ "@things-factory/id-rule-base": "^4.3.146",
84
+ "@things-factory/import-ui": "^4.3.146",
85
+ "@things-factory/import-ui-excel": "^4.3.146",
86
+ "@things-factory/menu-ui": "^4.3.146",
87
+ "@things-factory/more-ui": "^4.3.146",
88
+ "@things-factory/notification": "^4.3.146",
89
+ "@things-factory/pdf": "^4.3.146",
90
+ "@things-factory/print-proxy-service": "^4.3.146",
91
+ "@things-factory/print-ui": "^4.3.146",
92
+ "@things-factory/product-base": "^4.3.146",
93
+ "@things-factory/resource-ui": "^4.3.146",
94
+ "@things-factory/sales-ui": "^4.3.146",
95
+ "@things-factory/scene-data-transform": "^4.3.146",
96
+ "@things-factory/scene-excel": "^4.3.146",
97
+ "@things-factory/scene-firebase": "^4.3.146",
98
+ "@things-factory/scene-form": "^4.3.146",
99
+ "@things-factory/scene-google-map": "^4.3.146",
100
+ "@things-factory/scene-graphql": "^4.3.146",
101
+ "@things-factory/scene-label": "^4.3.146",
102
+ "@things-factory/scene-marker": "^4.3.146",
103
+ "@things-factory/scene-mqtt": "^4.3.146",
104
+ "@things-factory/scene-restful": "^4.3.146",
105
+ "@things-factory/scene-visualizer": "^4.3.146",
106
+ "@things-factory/setting-ui": "^4.3.146",
107
+ "@things-factory/system-ui": "^4.3.146",
108
+ "@things-factory/transport-base": "^4.3.146",
109
+ "@things-factory/tutorial-ui": "^4.3.146",
110
+ "@things-factory/warehouse-base": "^4.3.146",
111
+ "@things-factory/worksheet-base": "^4.3.146"
112
112
  },
113
113
  "devDependencies": {
114
- "@things-factory/builder": "^4.3.142",
114
+ "@things-factory/builder": "^4.3.146",
115
115
  "cypress": "^9.4.1",
116
116
  "cypress-file-upload": "^5.0.8",
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "39bda16b5928006921a99bbfcbf820f0fcd9e2c1"
120
+ "gitHead": "919fc314fca9647235fb02b8837e5c42813455bb"
121
121
  }
@@ -102,6 +102,7 @@
102
102
  "button.submit": "submit",
103
103
  "button.sync_data": "sync data",
104
104
  "button.tote": "tote",
105
+ "button.tracking_no": "tracking no",
105
106
  "button.transfer": "transfer",
106
107
  "button.turn_to_PDF": "turn to PDF",
107
108
  "button.update_order_details": "update order details",
@@ -1628,6 +1629,7 @@
1628
1629
  "title.arrival_notices": "arrival notices",
1629
1630
  "title.assign_warehouse": "assign warehouse",
1630
1631
  "title.attachment": "attachment",
1632
+ "title.awb": "AWB",
1631
1633
  "title.batch_picking": "batch picking",
1632
1634
  "title.bizplace": "bizplace",
1633
1635
  "title.bulk_arrival_notices": "bulk arrival notices",
@@ -1895,6 +1897,8 @@
1895
1897
  "title.tasks": "tasks",
1896
1898
  "title.tote_scanning": "tote scanning",
1897
1899
  "title.tote": "tote",
1900
+ "title.tracking_information": "tracking information",
1901
+ "title.tracking_number": "tracking number",
1898
1902
  "title.transfer_inventory": "transfer inventory",
1899
1903
  "title.transfer_order_requests": "transfer order requests",
1900
1904
  "title.transport_driver": "transport driver",
@@ -128,6 +128,7 @@
128
128
  "button.sync_data": "[ko]sync data",
129
129
  "button.toPdf": "PDF file",
130
130
  "button.tote": "[ko] tote",
131
+ "button.tracking_no": "[ko] tracking no",
131
132
  "button.transfer": "이동",
132
133
  "button.turn_to_PDF": "PDF 변환",
133
134
  "button.update_order_details": "[ko]update order details",
@@ -1637,6 +1638,7 @@
1637
1638
  "title.assign_warehouse": "창고 할당",
1638
1639
  "title.assigned_truck_and_driver": "assigned truck and driver",
1639
1640
  "title.attachment": "첨부파일",
1641
+ "title.awb": "[ko]AWB",
1640
1642
  "title.batch_picking": "일괄 피킹",
1641
1643
  "title.bizplace": "사업장",
1642
1644
  "title.bulk_arrival_notices": "[ko]bulk arrival notices",
@@ -1963,6 +1965,8 @@
1963
1965
  "title.template_info": "template info",
1964
1966
  "title.tote_scanning": "[ko] tote scanning",
1965
1967
  "title.tote": "[ko] tote",
1968
+ "title.tracking_information": "[ko] tracking information",
1969
+ "title.tracking_number": "[ko] tracking number",
1966
1970
  "title.transfer_inventory": "재고 이동",
1967
1971
  "title.transport_driver": "운송기사",
1968
1972
  "title.transport_order": "배송 지시",
@@ -126,6 +126,7 @@
126
126
  "button.submit": "submit",
127
127
  "button.sync_data": "[ms]sync data",
128
128
  "button.tote": "[ms] tote",
129
+ "button.tracking_no": "[ms]tracking no",
129
130
  "button.transfer": "transfer",
130
131
  "button.turn_to_PDF": "tukar kepada PDF",
131
132
  "button.update_order_details": "[ms]update order details",
@@ -1549,6 +1550,7 @@
1549
1550
  "title.arrival_notices": "notis ketibaan",
1550
1551
  "title.assign_warehouse": "pilih gudang",
1551
1552
  "title.attachment": "lampiran",
1553
+ "title.awb": "[ms]AWB",
1552
1554
  "title.batch_picking": "pengambilan berkumpulan",
1553
1555
  "title.bizplace": "tempat bisnes",
1554
1556
  "title.bulk_arrival_notices": "[ms]bulk arrival notices",
@@ -1838,6 +1840,8 @@
1838
1840
  "title.tasks": "tugasan",
1839
1841
  "title.tote_scanning": "[ms] tote scanning",
1840
1842
  "title.tote": "[ms] tote",
1843
+ "title.tracking_information": "[ms]tracking information",
1844
+ "title.tracking_number": "[ms]tracking number",
1841
1845
  "title.transfer_inventory": "pemindahan inventori",
1842
1846
  "title.transport_driver": "pemandu pengangkutan",
1843
1847
  "title.transport_vehicle": "kenderaan pengangkutan",
@@ -122,6 +122,7 @@
122
122
  "button.submit": "submit",
123
123
  "button.sync_data": "[zh]sync data",
124
124
  "button.tote": "[zh] tote",
125
+ "button.tracking_no": "[zh]tracking no",
125
126
  "button.transfer": "transfer",
126
127
  "button.turn_to_PDF": "turn to PDF",
127
128
  "button.update_order_details": "[zh]update order details",
@@ -1515,6 +1516,7 @@
1515
1516
  "title.arrival_notices": "arrival notices",
1516
1517
  "title.assign_warehouse": "assign warehouse",
1517
1518
  "title.attachment": "attachment",
1519
+ "title.awb": "[zh]AWB",
1518
1520
  "title.batch_picking": "batch picking",
1519
1521
  "title.bizplace": "bizplace",
1520
1522
  "title.bulk_arrival_notices": "[zh]bulk arrival notices",
@@ -1793,6 +1795,8 @@
1793
1795
  "title.tasks": "tasks",
1794
1796
  "title.tote_scanning": "[zh] tote scanning",
1795
1797
  "title.tote": "[zh] tote",
1798
+ "title.tracking_information": "[zh]tracking information",
1799
+ "title.tracking_number": "[zh]tracking number",
1796
1800
  "title.transfer_inventory": "transfer inventory",
1797
1801
  "title.transport_driver": "transport driver",
1798
1802
  "title.transport_order": "运输单",