@things-factory/operato-wms 4.0.25 → 4.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/bootstrap.js +1 -1
- package/client/pages/billing/claim-chit/claim-chit-detail.js +32 -35
- package/client/pages/billing/claim-chit/claim-chit-list.js +17 -17
- package/client/pages/billing/claim-chit/create-claim-chit.js +39 -30
- package/client/pages/billing/transport-summary-report.js +21 -23
- package/client/pages/bulk-operation/validate-ro-popup.js +14 -54
- package/client/pages/inbound/expiry-date-popup.js +2 -2
- package/client/pages/inbound/inbound-reusable-pallet.js +21 -19
- package/client/pages/inbound/palletizing-pallets-popup.js +10 -9
- package/client/pages/inbound/putaway-product.js +16 -8
- package/client/pages/inbound/putaway-worksheet-generate-popup.js +4 -4
- package/client/pages/inbound/unload-product.js +16 -88
- package/client/pages/inbound/vas-selector.js +9 -8
- package/client/pages/inventory-check/check-inventory-popup.js +20 -18
- package/client/pages/inventory-check/cycle-count-recheck-popup.js +25 -15
- package/client/pages/inventory-check/inspecting-product.js +2 -2
- package/client/pages/inventory-check/inventory-check-list.js +30 -19
- package/client/pages/inventory-check/search-popup.js +15 -14
- package/client/pages/inventory-check/worksheet-cycle-count.js +17 -15
- package/client/pages/master/location-list.js +61 -52
- package/client/pages/master/pallet-list.js +34 -30
- package/client/pages/master/print-location-label.js +142 -156
- package/client/pages/master/warehouse-list.js +33 -29
- package/client/pages/master/worker-list.js +30 -30
- package/client/pages/order/arrival-notice/assign-buffer-location.js +1 -1
- package/client/pages/order/goods-received-note/customer-grn-list.js +9 -8
- package/client/pages/order/goods-received-note/customer-received-note.js +8 -7
- package/client/pages/order/goods-received-note/received-note-detail.js +7 -6
- package/client/pages/order/goods-received-note/received-note-list.js +9 -8
- package/client/pages/order/release-order/batch-generate-single-picking-worksheet-popup.js +1 -1
- package/client/pages/order/release-order/release-extra-product-popup.js +3 -7
- package/client/pages/order/release-order/release-order-detail.js +2 -2
- package/client/pages/order/return-order/check-return-order.js +15 -13
- package/client/pages/order/return-order/receive-return-order-requests.js +25 -22
- package/client/pages/order/return-order/rejected-return-order.js +8 -14
- package/client/pages/order/return-order/return-order-assign-buffer-location.js +16 -14
- package/client/pages/order/return-order/return-order-detail.js +35 -31
- package/client/pages/order/return-order/return-order-list.js +9 -8
- package/client/pages/order/return-order/return-order-requests.js +20 -18
- package/client/pages/order/reverse-kitting-order/reverse-kitting-order-list.js +9 -8
- package/client/pages/order/transfer-order/receive-transfer-order-request.js +67 -66
- package/client/pages/order/transfer-order/rejected-transfer-order.js +7 -6
- package/client/pages/order/transfer-order/transfer-order-detail.js +7 -6
- package/client/pages/order/transfer-order/transfer-order-requests.js +20 -18
- package/client/pages/order/transport-order/contact-point-selector-popup.js +20 -20
- package/client/pages/order/transport-order/delivery-note-popup.js +52 -46
- package/client/pages/order/transport-order/print-delivery-note.js +17 -16
- package/client/pages/order/transport-order/upload-delivery-note.js +21 -18
- package/client/pages/order/transport-order/view-delivery-note.js +19 -22
- package/client/pages/order/vas-order/create-vas-order.js +12 -11
- package/client/pages/order/vas-order/receive-vas-order.js +25 -22
- package/client/pages/order/vas-order/vas-order-detail.js +26 -23
- package/client/pages/order/vas-order/vas-order-list.js +9 -8
- package/client/pages/order/vas-order/vas-order-requests.js +11 -12
- package/client/pages/outbound/outbound-reusable-pallet.js +25 -33
- package/client/pages/outbound/packing-product.js +6 -0
- package/client/pages/outbound/picking-product.js +1 -0
- package/client/pages/outbound/single-outbound-worksheet.js +9 -8
- package/client/pages/outbound/worksheet-loading.js +16 -14
- package/client/pages/outbound/worksheet-packing.js +15 -13
- package/client/pages/report/custom-elccl/elccl-daily-collection-report.js +8 -9
- package/client/pages/report/custom-elccl/elccl-daily-order-inventory-report.js +26 -25
- package/client/pages/report/custom-elccl/elccl-delivery-order-summary.js +10 -9
- package/client/pages/report/custom-elccl/elccl-inventory-pallet-detail-report.js +13 -8
- package/client/pages/report/custom-elccl/elccl-inventory-report.js +11 -10
- package/client/pages/report/inventory-pallet-report.js +13 -12
- package/client/pages/report/job-sheet-list.js +9 -8
- package/client/pages/report/job-sheet-popup.js +9 -9
- package/client/pages/report/job-sheet-report.js +6 -6
- package/client/pages/system/location-sorting-rule.js +53 -46
- package/client/pages/vas/abstract-execute-vas.js +47 -34
- package/client/pages/vas/execute-pure-vas.js +66 -62
- package/client/pages/vas/execute-ref-vas.js +39 -41
- package/client/pages/vas/related-vas-list.js +7 -6
- package/client/pages/vas/target-inventory-assignment-popup.js +16 -14
- package/client/pages/vas/vas-pallet-label-popup.js +1 -1
- package/client/pages/vas/vas-worksheet-list.js +9 -8
- package/client/pages/vas/worksheet-ref-vas.js +7 -6
- package/client/pages/vas/worksheet-vas.js +16 -14
- package/client/route.js +16 -32
- package/package.json +65 -65
- package/things-factory.config.js +0 -16
- package/translations/en.json +3 -0
- package/translations/ko.json +3 -1
- package/translations/ms.json +3 -1
- package/translations/zh.json +3 -1
- package/client/pages/inbound/location-selector.js +0 -224
- package/client/pages/master/picking-bin-list.js +0 -354
- package/client/pages/order/retail-replenishment-order/retail-replenishment-order-detail.js +0 -315
- package/client/pages/order/retail-replenishment-order/retail-replenishment-order-requests.js +0 -307
- package/client/pages/order/vas-order/rejected-vas-order.js +0 -300
|
@@ -3,7 +3,7 @@ import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
|
3
3
|
import '@things-factory/grist-ui'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { client } from '@things-factory/shell'
|
|
6
|
-
import { isMobileDevice
|
|
6
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
7
7
|
import gql from 'graphql-tag'
|
|
8
8
|
import { css, html, LitElement } from 'lit-element'
|
|
9
9
|
|
|
@@ -177,19 +177,20 @@ class UploadDeliveryNote extends localize(i18next)(LitElement) {
|
|
|
177
177
|
async _fetchDeliveryOrder(name) {
|
|
178
178
|
const response = await client.query({
|
|
179
179
|
query: gql`
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
name
|
|
183
|
-
})}) {
|
|
184
|
-
id
|
|
185
|
-
name
|
|
186
|
-
releaseGood {
|
|
180
|
+
query deliveryOrder($name: String!) {
|
|
181
|
+
deliveryOrder(name: $name) {
|
|
187
182
|
id
|
|
188
183
|
name
|
|
184
|
+
releaseGood {
|
|
185
|
+
id
|
|
186
|
+
name
|
|
187
|
+
}
|
|
189
188
|
}
|
|
190
189
|
}
|
|
190
|
+
`,
|
|
191
|
+
variables: {
|
|
192
|
+
name
|
|
191
193
|
}
|
|
192
|
-
`
|
|
193
194
|
})
|
|
194
195
|
|
|
195
196
|
if (!response.errors) {
|
|
@@ -209,10 +210,8 @@ class UploadDeliveryNote extends localize(i18next)(LitElement) {
|
|
|
209
210
|
|
|
210
211
|
const response = await client.query({
|
|
211
212
|
query: gql`
|
|
212
|
-
query {
|
|
213
|
-
orderInventories(${
|
|
214
|
-
filters
|
|
215
|
-
})}) {
|
|
213
|
+
query orderInventories($filters: [Filter!]) {
|
|
214
|
+
orderInventories(filters: $filters) {
|
|
216
215
|
items {
|
|
217
216
|
id
|
|
218
217
|
name
|
|
@@ -233,7 +232,10 @@ class UploadDeliveryNote extends localize(i18next)(LitElement) {
|
|
|
233
232
|
total
|
|
234
233
|
}
|
|
235
234
|
}
|
|
236
|
-
|
|
235
|
+
`,
|
|
236
|
+
variables: {
|
|
237
|
+
filters
|
|
238
|
+
}
|
|
237
239
|
})
|
|
238
240
|
|
|
239
241
|
if (!response.errors) {
|
|
@@ -268,16 +270,17 @@ class UploadDeliveryNote extends localize(i18next)(LitElement) {
|
|
|
268
270
|
this.dataGrist.showSpinner()
|
|
269
271
|
|
|
270
272
|
if (this.dnName) {
|
|
271
|
-
const response = await client.
|
|
272
|
-
|
|
273
|
-
mutation($file: Upload!) {
|
|
274
|
-
submitGoodsDeliveryNote($
|
|
273
|
+
const response = await client.mutate({
|
|
274
|
+
mutation: gql`
|
|
275
|
+
mutation submitGoodsDeliveryNote($name: String!, $file: Upload!) {
|
|
276
|
+
submitGoodsDeliveryNote(name: $name, file: $file) {
|
|
275
277
|
id
|
|
276
278
|
status
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
281
|
`,
|
|
280
282
|
variables: {
|
|
283
|
+
name,
|
|
281
284
|
file
|
|
282
285
|
},
|
|
283
286
|
context: {
|
|
@@ -2,7 +2,6 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
2
2
|
import { openPopup } from '@things-factory/layout-base'
|
|
3
3
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
4
4
|
import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
|
|
5
|
-
import { getPathInfo, gqlBuilder } from '@things-factory/utils'
|
|
6
5
|
import gql from 'graphql-tag'
|
|
7
6
|
import { css, html } from 'lit-element'
|
|
8
7
|
import '../../components/popup-note'
|
|
@@ -68,17 +67,14 @@ class ViewDeliveryOrder extends localize(i18next)(PageView) {
|
|
|
68
67
|
...CommonButtonStyles.print
|
|
69
68
|
}
|
|
70
69
|
]
|
|
71
|
-
if (
|
|
72
|
-
this._status === ORDER_STATUS.READY_TO_DISPATCH.value ||
|
|
73
|
-
this._status === ORDER_STATUS.DELIVERING.value
|
|
74
|
-
) {
|
|
70
|
+
if (this._status === ORDER_STATUS.READY_TO_DISPATCH.value || this._status === ORDER_STATUS.DELIVERING.value) {
|
|
75
71
|
actions.push({
|
|
76
72
|
title: i18next.t('button.edit'),
|
|
77
73
|
action: this._editDeliveryNote.bind(this),
|
|
78
74
|
...CommonButtonStyles.edit
|
|
79
75
|
})
|
|
80
|
-
}
|
|
81
|
-
|
|
76
|
+
}
|
|
77
|
+
|
|
82
78
|
if (this._status === ORDER_STATUS.DELIVERING.value) {
|
|
83
79
|
actions.push({
|
|
84
80
|
title: i18next.t('button.complete'),
|
|
@@ -118,10 +114,8 @@ class ViewDeliveryOrder extends localize(i18next)(PageView) {
|
|
|
118
114
|
async _fetchDeliveryOrder(name) {
|
|
119
115
|
const response = await client.query({
|
|
120
116
|
query: gql`
|
|
121
|
-
query {
|
|
122
|
-
deliveryOrderByWorksheet(${
|
|
123
|
-
name
|
|
124
|
-
})}) {
|
|
117
|
+
query deliveryOrderByWorksheet($name: String!) {
|
|
118
|
+
deliveryOrderByWorksheet(name: $name) {
|
|
125
119
|
deliveryOrderInfo {
|
|
126
120
|
contactName
|
|
127
121
|
createdDate
|
|
@@ -140,7 +134,6 @@ class ViewDeliveryOrder extends localize(i18next)(PageView) {
|
|
|
140
134
|
id
|
|
141
135
|
name
|
|
142
136
|
}
|
|
143
|
-
|
|
144
137
|
}
|
|
145
138
|
contactPointInfo {
|
|
146
139
|
id
|
|
@@ -152,7 +145,10 @@ class ViewDeliveryOrder extends localize(i18next)(PageView) {
|
|
|
152
145
|
}
|
|
153
146
|
}
|
|
154
147
|
}
|
|
155
|
-
|
|
148
|
+
`,
|
|
149
|
+
variables: {
|
|
150
|
+
name
|
|
151
|
+
}
|
|
156
152
|
})
|
|
157
153
|
|
|
158
154
|
if (!response.errors) {
|
|
@@ -200,17 +196,18 @@ class ViewDeliveryOrder extends localize(i18next)(PageView) {
|
|
|
200
196
|
return
|
|
201
197
|
}
|
|
202
198
|
|
|
203
|
-
const response = await client.
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
})}) {
|
|
210
|
-
name
|
|
199
|
+
const response = await client.mutate({
|
|
200
|
+
mutation: gql`
|
|
201
|
+
mutation checkDeliveredOrder($name: String!, $patch: DeliveryOrderPatch) {
|
|
202
|
+
checkDeliveredOrder(name: $name, patch: $patch) {
|
|
203
|
+
name
|
|
204
|
+
}
|
|
211
205
|
}
|
|
206
|
+
`,
|
|
207
|
+
variables: {
|
|
208
|
+
name: this._doNo,
|
|
209
|
+
patch: { remark: e.detail.value }
|
|
212
210
|
}
|
|
213
|
-
`
|
|
214
211
|
})
|
|
215
212
|
|
|
216
213
|
if (!response.errors) {
|
|
@@ -11,7 +11,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
11
11
|
import { openPopup } from '@things-factory/layout-base'
|
|
12
12
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
13
13
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
14
|
-
import {
|
|
14
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
15
15
|
|
|
16
16
|
import { VAS_BATCH_AND_PRODUCT_TYPE, VAS_BATCH_NO_TYPE, VAS_PRODUCT_TYPE } from '../../constants'
|
|
17
17
|
|
|
@@ -481,17 +481,18 @@ class CreateVasOrder extends localize(i18next)(PageView) {
|
|
|
481
481
|
|
|
482
482
|
await this._executeRelatedTrxs()
|
|
483
483
|
|
|
484
|
-
const response = await client.
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
id
|
|
491
|
-
name
|
|
492
|
-
}
|
|
484
|
+
const response = await client.mutate({
|
|
485
|
+
mutation: gql`
|
|
486
|
+
mutation generateVasOrder($vasOrder: NewVasOrder!) {
|
|
487
|
+
generateVasOrder(vasOrder: $vasOrder) {
|
|
488
|
+
id
|
|
489
|
+
name
|
|
493
490
|
}
|
|
494
|
-
|
|
491
|
+
}
|
|
492
|
+
`,
|
|
493
|
+
variables: {
|
|
494
|
+
vasOrder: this._getVasOrder()
|
|
495
|
+
}
|
|
495
496
|
})
|
|
496
497
|
|
|
497
498
|
if (!response.errors) {
|
|
@@ -4,7 +4,7 @@ import { getRenderer } from '@things-factory/grist-ui'
|
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { openPopup } from '@things-factory/layout-base'
|
|
6
6
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
7
|
-
import {
|
|
7
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
8
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
9
9
|
import gql from 'graphql-tag'
|
|
10
10
|
import { css, html } from 'lit-element'
|
|
@@ -220,10 +220,8 @@ class ReceiveVasOrder extends localize(i18next)(PageView) {
|
|
|
220
220
|
if (!this._vasNo) return
|
|
221
221
|
const response = await client.query({
|
|
222
222
|
query: gql`
|
|
223
|
-
query {
|
|
224
|
-
vasOrder(${
|
|
225
|
-
name: this._vasNo
|
|
226
|
-
})}) {
|
|
223
|
+
query vasOrder($name: String!) {
|
|
224
|
+
vasOrder(name: $name) {
|
|
227
225
|
id
|
|
228
226
|
name
|
|
229
227
|
status
|
|
@@ -250,7 +248,10 @@ class ReceiveVasOrder extends localize(i18next)(PageView) {
|
|
|
250
248
|
}
|
|
251
249
|
}
|
|
252
250
|
}
|
|
253
|
-
|
|
251
|
+
`,
|
|
252
|
+
variables: {
|
|
253
|
+
name: this._vasNo
|
|
254
|
+
}
|
|
254
255
|
})
|
|
255
256
|
|
|
256
257
|
if (!response.errors) {
|
|
@@ -281,18 +282,19 @@ class ReceiveVasOrder extends localize(i18next)(PageView) {
|
|
|
281
282
|
return
|
|
282
283
|
}
|
|
283
284
|
|
|
284
|
-
const response = await client.
|
|
285
|
-
|
|
286
|
-
mutation {
|
|
287
|
-
generateVasOrderWorksheet(${
|
|
288
|
-
vasNo: this._vasNo
|
|
289
|
-
})}) {
|
|
285
|
+
const response = await client.mutate({
|
|
286
|
+
mutation: gql`
|
|
287
|
+
mutation generateVasOrderWorksheet($vasNo: String!) {
|
|
288
|
+
generateVasOrderWorksheet(vasNo: $vasNo) {
|
|
290
289
|
vasWorksheet {
|
|
291
290
|
name
|
|
292
291
|
}
|
|
293
292
|
}
|
|
294
293
|
}
|
|
295
|
-
|
|
294
|
+
`,
|
|
295
|
+
variables: {
|
|
296
|
+
vasNo: this._vasNo
|
|
297
|
+
}
|
|
296
298
|
})
|
|
297
299
|
|
|
298
300
|
if (!response.errors) {
|
|
@@ -323,17 +325,18 @@ class ReceiveVasOrder extends localize(i18next)(PageView) {
|
|
|
323
325
|
return
|
|
324
326
|
}
|
|
325
327
|
|
|
326
|
-
const response = await client.
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
})}) {
|
|
333
|
-
name
|
|
328
|
+
const response = await client.mutate({
|
|
329
|
+
mutation: gql`
|
|
330
|
+
mutation rejectVasOrder($name: String!, $patch: VasOrderPatch!) {
|
|
331
|
+
rejectVasOrder(name: $name, patch: $patch) {
|
|
332
|
+
name
|
|
333
|
+
}
|
|
334
334
|
}
|
|
335
|
+
`,
|
|
336
|
+
variables: {
|
|
337
|
+
name: this._vasNo,
|
|
338
|
+
patch: { remark: e.detail.value }
|
|
335
339
|
}
|
|
336
|
-
`
|
|
337
340
|
})
|
|
338
341
|
|
|
339
342
|
if (!response.errors) {
|
|
@@ -3,7 +3,7 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import { getRenderer } from '@things-factory/grist-ui'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
6
|
-
import {
|
|
6
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
7
7
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
8
8
|
import gql from 'graphql-tag'
|
|
9
9
|
import { css, html } from 'lit-element'
|
|
@@ -248,10 +248,8 @@ class VasOrderDetail extends localize(i18next)(PageView) {
|
|
|
248
248
|
if (!this._vasNo) return
|
|
249
249
|
const response = await client.query({
|
|
250
250
|
query: gql`
|
|
251
|
-
query {
|
|
252
|
-
vasOrder(${
|
|
253
|
-
name: this._vasNo
|
|
254
|
-
})}) {
|
|
251
|
+
query vasOrder($name: String!) {
|
|
252
|
+
vasOrder(name: $name) {
|
|
255
253
|
id
|
|
256
254
|
name
|
|
257
255
|
status
|
|
@@ -278,7 +276,10 @@ class VasOrderDetail extends localize(i18next)(PageView) {
|
|
|
278
276
|
}
|
|
279
277
|
}
|
|
280
278
|
}
|
|
281
|
-
|
|
279
|
+
`,
|
|
280
|
+
variables: {
|
|
281
|
+
name: this._vasNo
|
|
282
|
+
}
|
|
282
283
|
})
|
|
283
284
|
|
|
284
285
|
if (!response.errors) {
|
|
@@ -307,14 +308,15 @@ class VasOrderDetail extends localize(i18next)(PageView) {
|
|
|
307
308
|
if (!result.value) return
|
|
308
309
|
|
|
309
310
|
await this._executeRevertTransactions()
|
|
310
|
-
const response = await client.
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
311
|
+
const response = await client.mutate({
|
|
312
|
+
mutation: gql`
|
|
313
|
+
mutation deleteVasOrder($name: String!) {
|
|
314
|
+
deleteVasOrder(name: $name)
|
|
315
|
+
}
|
|
316
|
+
`,
|
|
317
|
+
variables: {
|
|
318
|
+
name: this._vasNo
|
|
319
|
+
}
|
|
318
320
|
})
|
|
319
321
|
|
|
320
322
|
if (!response.errors) {
|
|
@@ -357,16 +359,17 @@ class VasOrderDetail extends localize(i18next)(PageView) {
|
|
|
357
359
|
}
|
|
358
360
|
|
|
359
361
|
try {
|
|
360
|
-
const response = await client.
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
})}) {
|
|
366
|
-
name
|
|
367
|
-
}
|
|
362
|
+
const response = await client.mutate({
|
|
363
|
+
mutation: gql`
|
|
364
|
+
mutation confirmVasOrder($name: String!) {
|
|
365
|
+
confirmVasOrder(name: $name) {
|
|
366
|
+
name
|
|
368
367
|
}
|
|
369
|
-
|
|
368
|
+
}
|
|
369
|
+
`,
|
|
370
|
+
variables: {
|
|
371
|
+
name: this._vasNo
|
|
372
|
+
}
|
|
370
373
|
})
|
|
371
374
|
|
|
372
375
|
if (!response.errors) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@things-factory/grist-ui'
|
|
2
2
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
3
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
4
|
-
import {
|
|
4
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
5
5
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
7
|
import { css, html } from 'lit-element'
|
|
@@ -172,12 +172,8 @@ class VasOrderList extends localize(i18next)(PageView) {
|
|
|
172
172
|
async fetchHandler({ page, limit, sorters = [{ name: 'createdAt', desc: true }] }) {
|
|
173
173
|
const response = await client.query({
|
|
174
174
|
query: gql`
|
|
175
|
-
query {
|
|
176
|
-
vasOrders(${
|
|
177
|
-
filters: this.searchForm.queryFilters,
|
|
178
|
-
pagination: { page, limit },
|
|
179
|
-
sortings: sorters
|
|
180
|
-
})}) {
|
|
175
|
+
query vasOrders($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
176
|
+
vasOrders(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
181
177
|
items {
|
|
182
178
|
id
|
|
183
179
|
name
|
|
@@ -196,7 +192,12 @@ class VasOrderList extends localize(i18next)(PageView) {
|
|
|
196
192
|
total
|
|
197
193
|
}
|
|
198
194
|
}
|
|
199
|
-
|
|
195
|
+
`,
|
|
196
|
+
variables: {
|
|
197
|
+
filters: this.searchForm.queryFilters,
|
|
198
|
+
pagination: { page, limit },
|
|
199
|
+
sortings: sorters
|
|
200
|
+
}
|
|
200
201
|
})
|
|
201
202
|
|
|
202
203
|
if (!response.errors) {
|
|
@@ -2,7 +2,7 @@ import '@things-factory/form-ui'
|
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
5
|
-
import {
|
|
5
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
6
6
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
7
7
|
import gql from 'graphql-tag'
|
|
8
8
|
import { css, html } from 'lit-element'
|
|
@@ -109,8 +109,6 @@ class VasOrderRequests extends localize(i18next)(PageView) {
|
|
|
109
109
|
const status = record.status
|
|
110
110
|
if (status === ORDER_STATUS.PENDING_RECEIVE.value) {
|
|
111
111
|
navigate(`receive_vas_order/${record.name}`) // 1. move to order receiving page
|
|
112
|
-
} else if (status === ORDER_STATUS.DONE.value) {
|
|
113
|
-
navigate(`completed_vas_order/${record.name}`) // 4. move to completed page
|
|
114
112
|
} else if (status === ORDER_STATUS.READY_TO_EXECUTE.value) {
|
|
115
113
|
navigate(`vas_order_detail/${record.name}`)
|
|
116
114
|
}
|
|
@@ -176,13 +174,9 @@ class VasOrderRequests extends localize(i18next)(PageView) {
|
|
|
176
174
|
async fetchHandler({ page, limit, sorters = [{ name: 'updatedAt', desc: true }] }) {
|
|
177
175
|
const response = await client.query({
|
|
178
176
|
query: gql`
|
|
179
|
-
query {
|
|
180
|
-
vasOrderRequests(${
|
|
181
|
-
|
|
182
|
-
pagination: { page, limit },
|
|
183
|
-
sortings: sorters
|
|
184
|
-
})}) {
|
|
185
|
-
items{
|
|
177
|
+
query vasOrderRequests($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
178
|
+
vasOrderRequests(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
179
|
+
items {
|
|
186
180
|
id
|
|
187
181
|
name
|
|
188
182
|
bizplace {
|
|
@@ -198,11 +192,16 @@ class VasOrderRequests extends localize(i18next)(PageView) {
|
|
|
198
192
|
name
|
|
199
193
|
description
|
|
200
194
|
}
|
|
201
|
-
}
|
|
195
|
+
}
|
|
202
196
|
total
|
|
203
197
|
}
|
|
204
198
|
}
|
|
205
|
-
|
|
199
|
+
`,
|
|
200
|
+
variables: {
|
|
201
|
+
filters: this.searchForm.queryFilters,
|
|
202
|
+
pagination: { page, limit },
|
|
203
|
+
sortings: sorters
|
|
204
|
+
}
|
|
206
205
|
})
|
|
207
206
|
if (!response.errors) {
|
|
208
207
|
return {
|
|
@@ -3,7 +3,7 @@ import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/f
|
|
|
3
3
|
import '@things-factory/grist-ui'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { client } from '@things-factory/shell'
|
|
6
|
-
import {
|
|
6
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
7
7
|
import gql from 'graphql-tag'
|
|
8
8
|
import { css, html, LitElement } from 'lit-element'
|
|
9
9
|
import '../components/popup-note'
|
|
@@ -139,26 +139,27 @@ export class OutboundReusablePallet extends localize(i18next)(LitElement) {
|
|
|
139
139
|
try {
|
|
140
140
|
const response = await client.query({
|
|
141
141
|
query: gql`
|
|
142
|
-
query {
|
|
143
|
-
palletOutboundValidate(${
|
|
144
|
-
|
|
145
|
-
})}) {
|
|
146
|
-
item{
|
|
142
|
+
query palletOutboundValidate($name: String!) {
|
|
143
|
+
palletOutboundValidate(name: $name) {
|
|
144
|
+
item {
|
|
147
145
|
id
|
|
148
146
|
name
|
|
149
|
-
owner{
|
|
147
|
+
owner {
|
|
150
148
|
id
|
|
151
149
|
name
|
|
152
150
|
}
|
|
153
|
-
holder{
|
|
151
|
+
holder {
|
|
154
152
|
id
|
|
155
153
|
name
|
|
156
154
|
}
|
|
157
|
-
}
|
|
158
|
-
error
|
|
155
|
+
}
|
|
156
|
+
error
|
|
159
157
|
}
|
|
160
158
|
}
|
|
161
|
-
|
|
159
|
+
`,
|
|
160
|
+
variables: {
|
|
161
|
+
name: this.palletRefNoInput.value
|
|
162
|
+
}
|
|
162
163
|
})
|
|
163
164
|
|
|
164
165
|
if (!response.errors) {
|
|
@@ -176,30 +177,21 @@ export class OutboundReusablePallet extends localize(i18next)(LitElement) {
|
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
async _outboundPallets() {
|
|
179
|
-
var x = this.releaseGoodNo
|
|
180
|
-
var y = this.palletData.records.map(pallet => {
|
|
181
|
-
delete pallet['__seq__']
|
|
182
|
-
delete pallet['__origin__']
|
|
183
|
-
return pallet
|
|
184
|
-
})
|
|
185
|
-
var v = gqlBuilder.buildArgs({
|
|
186
|
-
refOrderNo: this.releaseGoodNo,
|
|
187
|
-
patches: this.palletData.records
|
|
188
|
-
})
|
|
189
180
|
this.dispatchEvent(new CustomEvent('reusable-pallet-info', { detail: this.palletData }))
|
|
190
|
-
const response = await client.
|
|
191
|
-
|
|
192
|
-
mutation {
|
|
193
|
-
palletOutbound($
|
|
194
|
-
refOrderNo: this.releaseGoodNo,
|
|
195
|
-
patches: this.palletData.records.map(pallet => {
|
|
196
|
-
delete pallet['__seq__']
|
|
197
|
-
delete pallet['__origin__']
|
|
198
|
-
return pallet
|
|
199
|
-
})
|
|
200
|
-
})})
|
|
181
|
+
const response = await client.mutate({
|
|
182
|
+
mutation: gql`
|
|
183
|
+
mutation palletOutbound($refOrderNo: String!, $patches: [PalletPatch!]!) {
|
|
184
|
+
palletOutbound(refOrderNo: $refOrderNo, patches: $patches)
|
|
201
185
|
}
|
|
202
|
-
|
|
186
|
+
`,
|
|
187
|
+
variables: {
|
|
188
|
+
refOrderNo: this.releaseGoodNo,
|
|
189
|
+
patches: this.palletData.records.map(pallet => {
|
|
190
|
+
delete pallet['__seq__']
|
|
191
|
+
delete pallet['__origin__']
|
|
192
|
+
return pallet
|
|
193
|
+
})
|
|
194
|
+
}
|
|
203
195
|
})
|
|
204
196
|
|
|
205
197
|
history.back()
|
|
@@ -537,6 +537,12 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
537
537
|
var decodedHTML = atob(orderDocInfo[0].file)
|
|
538
538
|
this._callPrintDialog(decodedHTML)
|
|
539
539
|
break
|
|
540
|
+
|
|
541
|
+
default:
|
|
542
|
+
let url = new URL(window.location)
|
|
543
|
+
|
|
544
|
+
convertedPdfUrl = `${url.origin}/proxy?url=${encodeURIComponent(orderDocInfo[0].airwayBill)}`
|
|
545
|
+
this._callPrintDialog(convertedPdfUrl)
|
|
540
546
|
}
|
|
541
547
|
}
|
|
542
548
|
}
|
|
@@ -8,7 +8,7 @@ import { getCodeByName } from '@things-factory/code-base'
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
10
10
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
11
|
-
import {
|
|
11
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
12
12
|
|
|
13
13
|
import { WORKSHEET_STATUS, WORKSHEET_TYPE } from '../constants'
|
|
14
14
|
|
|
@@ -346,12 +346,8 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
346
346
|
|
|
347
347
|
const response = await client.query({
|
|
348
348
|
query: gql`
|
|
349
|
-
query {
|
|
350
|
-
worksheets(${
|
|
351
|
-
filters,
|
|
352
|
-
pagination: { page, limit },
|
|
353
|
-
sortings: sorters
|
|
354
|
-
})}) {
|
|
349
|
+
query worksheets($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
350
|
+
worksheets(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
355
351
|
items {
|
|
356
352
|
id
|
|
357
353
|
name
|
|
@@ -383,7 +379,12 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
|
|
|
383
379
|
total
|
|
384
380
|
}
|
|
385
381
|
}
|
|
386
|
-
|
|
382
|
+
`,
|
|
383
|
+
variables: {
|
|
384
|
+
filters,
|
|
385
|
+
pagination: { page, limit },
|
|
386
|
+
sortings: sorters
|
|
387
|
+
}
|
|
387
388
|
})
|
|
388
389
|
|
|
389
390
|
if (!response.errors) {
|