@things-factory/operato-wms 4.0.22 → 4.0.26
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 +13 -6
- package/client/pages/adjustment/transfer-inventory.js +32 -6
- 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/bulk-operation.js +189 -64
- package/client/pages/bulk-operation/validate-gan-popup.js +391 -0
- package/client/pages/bulk-operation/validate-ro-popup.js +44 -54
- package/client/pages/components/popup-unloading.js +47 -34
- package/client/pages/components/select-product-popup.js +74 -27
- package/client/pages/components/worksheet-information-popup.js +100 -0
- 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 +196 -235
- package/client/pages/inbound/putaway-worksheet-generate-popup.js +4 -4
- package/client/pages/inbound/undo-unload-popup.js +295 -0
- package/client/pages/inbound/unload-product.js +236 -646
- package/client/pages/inbound/unloaded-inventories-popup.js +129 -0
- package/client/pages/inbound/vas-selector.js +9 -8
- package/client/pages/inbound/worksheet-unloading.js +15 -11
- package/client/pages/inventory/inventory-adjustment.js +9 -10
- 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 +60 -52
- package/client/pages/master/pallet-list.js +34 -30
- package/client/pages/master/print-location-label.js +37 -36
- package/client/pages/master/product/product-list.js +1 -1
- package/client/pages/master/warehouse-list.js +33 -29
- package/client/pages/master/worker-list.js +30 -30
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +409 -21
- package/client/pages/order/arrival-notice/assign-buffer-location.js +1 -1
- package/client/pages/order/arrival-notice/create-arrival-notice.js +89 -13
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +90 -10
- package/client/pages/order/arrival-notice/edit-product-popup.js +2 -2
- 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-list.js +9 -8
- package/client/pages/order/release-order/b2b/b2b-order-list.js +78 -2
- package/client/pages/order/release-order/b2b/b2b-order-requests.js +32 -16
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +49 -5
- package/client/pages/order/release-order/batch-generate-single-picking-worksheet-popup.js +314 -0
- package/client/pages/order/release-order/batch-picking-popup.js +19 -2
- package/client/pages/order/release-order/create-release-order.js +194 -89
- package/client/pages/order/release-order/release-extra-product-popup.js +3 -7
- package/client/pages/order/release-order/release-order-detail.js +390 -107
- package/client/pages/order/return-order/check-return-order.js +15 -13
- package/client/pages/order/return-order/create-return-order.js +3 -3
- 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/create-delivery-order.js +1 -1
- package/client/pages/order/transport-order/delivery-note-popup.js +52 -46
- package/client/pages/order/transport-order/delivery-order-list.js +1 -1
- 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 +111 -236
- package/client/pages/outbound/picking-product.js +287 -380
- package/client/pages/outbound/single-outbound-worksheet.js +9 -8
- package/client/pages/outbound/sorting-product.js +66 -63
- package/client/pages/outbound/worksheet-loading.js +7 -3
- package/client/pages/outbound/worksheet-packing.js +3 -3
- package/client/pages/outbound/worksheet-picking.js +22 -18
- package/client/pages/report/job-sheet-list.js +9 -8
- package/client/pages/vas/print-product-label.js +17 -9
- package/client/route.js +16 -32
- package/dist-server/graphql/resolvers/reports/product-label-report.js +1 -0
- package/dist-server/graphql/resolvers/reports/product-label-report.js.map +1 -1
- package/package.json +65 -65
- package/server/graphql/resolvers/reports/product-label-report.ts +1 -0
- package/things-factory.config.js +0 -16
- package/translations/en.json +34 -2
- package/translations/ko.json +34 -3
- package/translations/ms.json +34 -3
- package/translations/zh.json +34 -3
- 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
|
@@ -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()
|