@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
|
@@ -4,7 +4,7 @@ import { css, html } from 'lit-element'
|
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
6
6
|
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
7
|
-
import { getPathInfo
|
|
7
|
+
import { getPathInfo } from '@things-factory/utils'
|
|
8
8
|
|
|
9
9
|
class ReceivedNoteDetail extends localize(i18next)(PageView) {
|
|
10
10
|
static get properties() {
|
|
@@ -105,10 +105,8 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
|
|
|
105
105
|
if (!this._grnNo) return
|
|
106
106
|
const response = await client.query({
|
|
107
107
|
query: gql`
|
|
108
|
-
query {
|
|
109
|
-
goodsReceivalNote(${
|
|
110
|
-
name: this._grnNo
|
|
111
|
-
})}) {
|
|
108
|
+
query goodsReceivalNote($name: String!) {
|
|
109
|
+
goodsReceivalNote(name: $name) {
|
|
112
110
|
id
|
|
113
111
|
name
|
|
114
112
|
status
|
|
@@ -118,7 +116,10 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
|
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
118
|
}
|
|
121
|
-
|
|
119
|
+
`,
|
|
120
|
+
variables: {
|
|
121
|
+
name: this._grnNo
|
|
122
|
+
}
|
|
122
123
|
})
|
|
123
124
|
|
|
124
125
|
if (!response.errors) {
|
|
@@ -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
|
class ReceivedNoteList extends localize(i18next)(PageView) {
|
|
14
14
|
static get styles() {
|
|
@@ -317,12 +317,8 @@ class ReceivedNoteList extends localize(i18next)(PageView) {
|
|
|
317
317
|
async fetchHandler({ page, limit, sorters = [{ name: 'createdAt', desc: true }] }) {
|
|
318
318
|
const response = await client.query({
|
|
319
319
|
query: gql`
|
|
320
|
-
query {
|
|
321
|
-
goodsReceivalNotes(${
|
|
322
|
-
filters: this.searchForm.queryFilters,
|
|
323
|
-
pagination: { page, limit },
|
|
324
|
-
sortings: sorters
|
|
325
|
-
})}) {
|
|
320
|
+
query goodsReceivalNotes($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
321
|
+
goodsReceivalNotes(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
326
322
|
items {
|
|
327
323
|
id
|
|
328
324
|
name
|
|
@@ -359,7 +355,12 @@ class ReceivedNoteList extends localize(i18next)(PageView) {
|
|
|
359
355
|
total
|
|
360
356
|
}
|
|
361
357
|
}
|
|
362
|
-
|
|
358
|
+
`,
|
|
359
|
+
variables: {
|
|
360
|
+
filters: this.searchForm.queryFilters,
|
|
361
|
+
pagination: { page, limit },
|
|
362
|
+
sortings: sorters
|
|
363
|
+
}
|
|
363
364
|
})
|
|
364
365
|
|
|
365
366
|
if (!response.errors) {
|
|
@@ -217,7 +217,7 @@ class BatchGenerateSinglePickingWorksheetPopup extends localize(i18next)(LitElem
|
|
|
217
217
|
|
|
218
218
|
const response = await client.query({
|
|
219
219
|
query: gql`
|
|
220
|
-
query releaseGoodRequests($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
|
|
220
|
+
query releaseGoodRequests($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
221
221
|
releaseGoodRequests(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
222
222
|
items {
|
|
223
223
|
id
|
|
@@ -702,17 +702,13 @@ export class ReleaseExtraProductPopup extends localize(i18next)(LitElement) {
|
|
|
702
702
|
|
|
703
703
|
_onProductChangeHandler(event) {
|
|
704
704
|
const changeRecord = event.detail.after
|
|
705
|
+
const beforeRecord = event.detail.before
|
|
705
706
|
const changedColumn = event.detail.column.name
|
|
706
707
|
var totalAvailableQty = 0
|
|
707
708
|
var totalAvailableUomValue = 0
|
|
708
709
|
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
totalAvailableUomValue = changeRecord.inventory.remainUomValue
|
|
712
|
-
} else if (event.detail.before) {
|
|
713
|
-
totalAvailableQty = event.detail.before.inventory.releaseQty + event.detail.before.addableQty
|
|
714
|
-
totalAvailableUomValue = event.detail.before.inventory.releaseUomValue + event.detail.before.addableUomValue
|
|
715
|
-
}
|
|
710
|
+
totalAvailableQty = beforeRecord.addableQty + beforeRecord.releaseQty
|
|
711
|
+
totalAvailableUomValue = beforeRecord.addableUomValue + beforeRecord.releaseUomValue
|
|
716
712
|
|
|
717
713
|
try {
|
|
718
714
|
if (changedColumn === 'releaseQty') {
|
|
@@ -907,8 +907,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
907
907
|
status: inventoryInfo.status,
|
|
908
908
|
existing: true,
|
|
909
909
|
roundedUomValue: `${roundedUomValue} ${inventoryInfo.uom}`,
|
|
910
|
-
addableQty: inventoryInfo.qty - inventoryInfo.lockedQty,
|
|
911
|
-
addableUomValue: inventoryInfo.uomValue - inventoryInfo.lockedUomValue
|
|
910
|
+
addableQty: inventoryInfo.qty - inventoryInfo.lockedQty - inventoryInfo.releaseQty,
|
|
911
|
+
addableUomValue: inventoryInfo.uomValue - inventoryInfo.lockedUomValue - inventoryInfo.releaseUomValue
|
|
912
912
|
}
|
|
913
913
|
})
|
|
914
914
|
|
|
@@ -3,7 +3,7 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
|
|
5
5
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
6
|
-
import {
|
|
6
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
7
7
|
import gql from 'graphql-tag'
|
|
8
8
|
import { css, html } from 'lit-element'
|
|
9
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
@@ -315,10 +315,8 @@ class CheckReturnOrder extends connect(store)(localize(i18next)(PageView)) {
|
|
|
315
315
|
if (!this._returnOrderNo) return
|
|
316
316
|
const response = await client.query({
|
|
317
317
|
query: gql`
|
|
318
|
-
query {
|
|
319
|
-
returnOrderDetail(${
|
|
320
|
-
name: this._returnOrderNo
|
|
321
|
-
})}) {
|
|
318
|
+
query returnOrderDetail($name: String!) {
|
|
319
|
+
returnOrderDetail(name: $name) {
|
|
322
320
|
id
|
|
323
321
|
name
|
|
324
322
|
truckNo
|
|
@@ -361,7 +359,10 @@ class CheckReturnOrder extends connect(store)(localize(i18next)(PageView)) {
|
|
|
361
359
|
}
|
|
362
360
|
}
|
|
363
361
|
}
|
|
364
|
-
|
|
362
|
+
`,
|
|
363
|
+
variables: {
|
|
364
|
+
name: this._returnOrderNo
|
|
365
|
+
}
|
|
365
366
|
})
|
|
366
367
|
|
|
367
368
|
if (!response.errors) {
|
|
@@ -432,16 +433,17 @@ class CheckReturnOrder extends connect(store)(localize(i18next)(PageView)) {
|
|
|
432
433
|
|
|
433
434
|
if (!result.value) return
|
|
434
435
|
|
|
435
|
-
const response = await client.
|
|
436
|
-
|
|
437
|
-
mutation {
|
|
438
|
-
checkReturnOrder(${
|
|
439
|
-
name: this._returnOrderNo
|
|
440
|
-
})}) {
|
|
436
|
+
const response = await client.mutate({
|
|
437
|
+
mutation: gql`
|
|
438
|
+
mutation checkReturnOrder($name: String!) {
|
|
439
|
+
checkReturnOrder(name: $name) {
|
|
441
440
|
name
|
|
442
441
|
}
|
|
443
442
|
}
|
|
444
|
-
|
|
443
|
+
`,
|
|
444
|
+
variables: {
|
|
445
|
+
name: this._returnOrderNo
|
|
446
|
+
}
|
|
445
447
|
})
|
|
446
448
|
|
|
447
449
|
if (!response.errors) {
|
|
@@ -4,7 +4,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
4
4
|
import { openPopup } from '@things-factory/layout-base'
|
|
5
5
|
import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
|
|
6
6
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
7
|
-
import {
|
|
7
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
8
|
import gql from 'graphql-tag'
|
|
9
9
|
import { css, html } from 'lit-element'
|
|
10
10
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
@@ -321,10 +321,8 @@ class ReceiveReturnOrderRequests extends connect(store)(localize(i18next)(PageVi
|
|
|
321
321
|
if (!this._returnOrderNo) return
|
|
322
322
|
const response = await client.query({
|
|
323
323
|
query: gql`
|
|
324
|
-
query {
|
|
325
|
-
returnOrderDetail(${
|
|
326
|
-
name: this._returnOrderNo
|
|
327
|
-
})}) {
|
|
324
|
+
query returnOrderDetail($name: String!) {
|
|
325
|
+
returnOrderDetail(name: $name) {
|
|
328
326
|
id
|
|
329
327
|
name
|
|
330
328
|
truckNo
|
|
@@ -367,7 +365,10 @@ class ReceiveReturnOrderRequests extends connect(store)(localize(i18next)(PageVi
|
|
|
367
365
|
}
|
|
368
366
|
}
|
|
369
367
|
}
|
|
370
|
-
|
|
368
|
+
`,
|
|
369
|
+
variables: {
|
|
370
|
+
name: this._returnOrderNo
|
|
371
|
+
}
|
|
371
372
|
})
|
|
372
373
|
|
|
373
374
|
if (!response.errors) {
|
|
@@ -437,16 +438,17 @@ class ReceiveReturnOrderRequests extends connect(store)(localize(i18next)(PageVi
|
|
|
437
438
|
|
|
438
439
|
if (!result.value) return
|
|
439
440
|
|
|
440
|
-
const response = await client.
|
|
441
|
-
|
|
442
|
-
mutation {
|
|
443
|
-
receiveReturnOrder(${
|
|
444
|
-
name: this._returnOrderNo
|
|
445
|
-
})}) {
|
|
441
|
+
const response = await client.mutate({
|
|
442
|
+
mutation: gql`
|
|
443
|
+
mutation receiveReturnOrder($name: String!) {
|
|
444
|
+
receiveReturnOrder(name: $name) {
|
|
446
445
|
name
|
|
447
446
|
}
|
|
448
447
|
}
|
|
449
|
-
|
|
448
|
+
`,
|
|
449
|
+
variables: {
|
|
450
|
+
name: this._returnOrderNo
|
|
451
|
+
}
|
|
450
452
|
})
|
|
451
453
|
|
|
452
454
|
if (!response.errors) {
|
|
@@ -478,17 +480,18 @@ class ReceiveReturnOrderRequests extends connect(store)(localize(i18next)(PageVi
|
|
|
478
480
|
return
|
|
479
481
|
}
|
|
480
482
|
|
|
481
|
-
const response = await client.
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
})}) {
|
|
488
|
-
name
|
|
483
|
+
const response = await client.mutate({
|
|
484
|
+
mutation: gql`
|
|
485
|
+
mutation rejectReturnOrder($name: String!, $patch: ReturnOrderPatch!) {
|
|
486
|
+
rejectReturnOrder(name: $name, patch: $patch) {
|
|
487
|
+
name
|
|
488
|
+
}
|
|
489
489
|
}
|
|
490
|
+
`,
|
|
491
|
+
variables: {
|
|
492
|
+
name: this._returnOrderNo,
|
|
493
|
+
patch: { remark: e.detail.value }
|
|
490
494
|
}
|
|
491
|
-
`
|
|
492
495
|
})
|
|
493
496
|
|
|
494
497
|
if (!response.errors) {
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
2
2
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
3
3
|
import '@things-factory/grist-ui'
|
|
4
|
-
import { getRenderer } from '@things-factory/grist-ui'
|
|
5
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
6
5
|
import { client, PageView, store } from '@things-factory/shell'
|
|
7
|
-
import {
|
|
6
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
7
|
import gql from 'graphql-tag'
|
|
9
8
|
import { css, html } from 'lit-element'
|
|
10
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
11
10
|
import '../../components/attachment-viewer'
|
|
12
11
|
import '../../components/popup-note'
|
|
13
12
|
import '../../components/vas-templates'
|
|
14
|
-
import {
|
|
15
|
-
ORDER_STATUS,
|
|
16
|
-
VAS_BATCH_AND_PRODUCT_TYPE,
|
|
17
|
-
VAS_BATCH_NO_TYPE,
|
|
18
|
-
VAS_ETC_TYPE,
|
|
19
|
-
VAS_PRODUCT_TYPE
|
|
20
|
-
} from '../../constants'
|
|
13
|
+
import { ORDER_STATUS } from '../../constants'
|
|
21
14
|
|
|
22
15
|
class RejectedReturnOrder extends connect(store)(localize(i18next)(PageView)) {
|
|
23
16
|
static get properties() {
|
|
@@ -318,10 +311,8 @@ class RejectedReturnOrder extends connect(store)(localize(i18next)(PageView)) {
|
|
|
318
311
|
if (!this._returnOrderNo) return
|
|
319
312
|
const response = await client.query({
|
|
320
313
|
query: gql`
|
|
321
|
-
query {
|
|
322
|
-
returnOrderDetail(${
|
|
323
|
-
name: this._returnOrderNo
|
|
324
|
-
})}) {
|
|
314
|
+
query returnOrderDetail($name: String!) {
|
|
315
|
+
returnOrderDetail(name: $name) {
|
|
325
316
|
id
|
|
326
317
|
name
|
|
327
318
|
truckNo
|
|
@@ -364,7 +355,10 @@ class RejectedReturnOrder extends connect(store)(localize(i18next)(PageView)) {
|
|
|
364
355
|
}
|
|
365
356
|
}
|
|
366
357
|
}
|
|
367
|
-
|
|
358
|
+
`,
|
|
359
|
+
variables: {
|
|
360
|
+
name: this._returnOrderNo
|
|
361
|
+
}
|
|
368
362
|
})
|
|
369
363
|
|
|
370
364
|
if (!response.errors) {
|
|
@@ -4,7 +4,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
4
4
|
import { openPopup } from '@things-factory/layout-base'
|
|
5
5
|
import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
|
|
6
6
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
7
|
-
import {
|
|
7
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
8
|
import gql from 'graphql-tag'
|
|
9
9
|
import { css, html } from 'lit-element'
|
|
10
10
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
@@ -316,10 +316,8 @@ class ReturnOrderAssignBufferLocation extends connect(store)(localize(i18next)(P
|
|
|
316
316
|
if (!this._returnOrderNo) return
|
|
317
317
|
const response = await client.query({
|
|
318
318
|
query: gql`
|
|
319
|
-
query {
|
|
320
|
-
returnOrderDetail(${
|
|
321
|
-
name: this._returnOrderNo
|
|
322
|
-
})}) {
|
|
319
|
+
query returnOrderDetail($name: String!) {
|
|
320
|
+
returnOrderDetail(name: $name) {
|
|
323
321
|
id
|
|
324
322
|
name
|
|
325
323
|
truckNo
|
|
@@ -361,7 +359,10 @@ class ReturnOrderAssignBufferLocation extends connect(store)(localize(i18next)(P
|
|
|
361
359
|
}
|
|
362
360
|
}
|
|
363
361
|
}
|
|
364
|
-
|
|
362
|
+
`,
|
|
363
|
+
variables: {
|
|
364
|
+
name: this._returnOrderNo
|
|
365
|
+
}
|
|
365
366
|
})
|
|
366
367
|
|
|
367
368
|
if (!response.errors) {
|
|
@@ -433,19 +434,20 @@ class ReturnOrderAssignBufferLocation extends connect(store)(localize(i18next)(P
|
|
|
433
434
|
|
|
434
435
|
if (!result.value) return
|
|
435
436
|
|
|
436
|
-
const response = await client.
|
|
437
|
-
|
|
438
|
-
mutation {
|
|
439
|
-
generateReturnOrderWorksheet(${
|
|
440
|
-
returnOrderNo: this._returnOrderNo,
|
|
441
|
-
bufferLocation: { id: this.bufferLocationField.getAttribute('location-id') }
|
|
442
|
-
})}) {
|
|
437
|
+
const response = await client.mutate({
|
|
438
|
+
mutation: gql`
|
|
439
|
+
mutation generateReturnOrderWorksheet($returnOrderNo: String!, $bufferLocation: ObjectRef!) {
|
|
440
|
+
generateReturnOrderWorksheet(returnOrderNo: $returnOrderNo, bufferLocation: $bufferLocation) {
|
|
443
441
|
returnOrderWorksheet {
|
|
444
442
|
name
|
|
445
443
|
}
|
|
446
444
|
}
|
|
447
445
|
}
|
|
448
|
-
|
|
446
|
+
`,
|
|
447
|
+
variables: {
|
|
448
|
+
returnOrderNo: this._returnOrderNo,
|
|
449
|
+
bufferLocation: { id: this.bufferLocationField.getAttribute('location-id') }
|
|
450
|
+
}
|
|
449
451
|
})
|
|
450
452
|
|
|
451
453
|
if (!response.errors) {
|
|
@@ -3,7 +3,7 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
|
|
5
5
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
6
|
-
import {
|
|
6
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
7
7
|
import gql from 'graphql-tag'
|
|
8
8
|
import { css, html } from 'lit-element'
|
|
9
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
@@ -357,10 +357,8 @@ class ReturnOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
357
357
|
if (!this._returnOrderNo) return
|
|
358
358
|
const response = await client.query({
|
|
359
359
|
query: gql`
|
|
360
|
-
query {
|
|
361
|
-
returnOrderDetail(${
|
|
362
|
-
name: this._returnOrderNo
|
|
363
|
-
})}) {
|
|
360
|
+
query returnOrderDetail($name: String!) {
|
|
361
|
+
returnOrderDetail(name: $name) {
|
|
364
362
|
id
|
|
365
363
|
name
|
|
366
364
|
truckNo
|
|
@@ -403,7 +401,10 @@ class ReturnOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
403
401
|
}
|
|
404
402
|
}
|
|
405
403
|
}
|
|
406
|
-
|
|
404
|
+
`,
|
|
405
|
+
variables: {
|
|
406
|
+
name: this._returnOrderNo
|
|
407
|
+
}
|
|
407
408
|
})
|
|
408
409
|
|
|
409
410
|
if (!response.errors) {
|
|
@@ -475,14 +476,15 @@ class ReturnOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
475
476
|
if (!result.value) return
|
|
476
477
|
|
|
477
478
|
await this._executeRevertTransactions()
|
|
478
|
-
const response = await client.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
479
|
+
const response = await client.mutate({
|
|
480
|
+
mutation: gql`
|
|
481
|
+
mutation deleteReturnOrder($name: String!) {
|
|
482
|
+
deleteReturnOrder(name: $name)
|
|
483
|
+
}
|
|
484
|
+
`,
|
|
485
|
+
variables: {
|
|
486
|
+
name: this._returnOrderNo
|
|
487
|
+
}
|
|
486
488
|
})
|
|
487
489
|
|
|
488
490
|
if (!response.errors) {
|
|
@@ -505,14 +507,15 @@ class ReturnOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
505
507
|
|
|
506
508
|
if (!result.value) return
|
|
507
509
|
|
|
508
|
-
const response = await client.
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
510
|
+
const response = await client.mutate({
|
|
511
|
+
mutation: gql`
|
|
512
|
+
mutation pendingCancellationReturnOrder($name: String!) {
|
|
513
|
+
pendingCancellationReturnOrder(name: $name)
|
|
514
|
+
}
|
|
515
|
+
`,
|
|
516
|
+
variables: {
|
|
517
|
+
name: this._returnOrderNo
|
|
518
|
+
}
|
|
516
519
|
})
|
|
517
520
|
|
|
518
521
|
if (!response.errors) {
|
|
@@ -535,16 +538,17 @@ class ReturnOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
535
538
|
if (!result.value) return
|
|
536
539
|
|
|
537
540
|
try {
|
|
538
|
-
const response = await client.
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
})}) {
|
|
544
|
-
name
|
|
545
|
-
}
|
|
541
|
+
const response = await client.mutate({
|
|
542
|
+
mutation: gql`
|
|
543
|
+
mutation confirmReturnOrder($name: String!) {
|
|
544
|
+
confirmReturnOrder(name: $name) {
|
|
545
|
+
name
|
|
546
546
|
}
|
|
547
|
-
|
|
547
|
+
}
|
|
548
|
+
`,
|
|
549
|
+
variables: {
|
|
550
|
+
name: this._returnOrderNo
|
|
551
|
+
}
|
|
548
552
|
})
|
|
549
553
|
|
|
550
554
|
if (!response.errors) {
|
|
@@ -4,7 +4,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
4
4
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
5
5
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
6
6
|
import { getCodeByName } from '@things-factory/code-base'
|
|
7
|
-
import {
|
|
7
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
8
|
import gql from 'graphql-tag'
|
|
9
9
|
import { css, html } from 'lit-element'
|
|
10
10
|
import { ORDER_STATUS } from '../../constants'
|
|
@@ -200,12 +200,8 @@ class ReturnOrderList extends localize(i18next)(PageView) {
|
|
|
200
200
|
async fetchHandler({ page, limit, sorters = [{ name: 'createdAt', desc: true }] }) {
|
|
201
201
|
const response = await client.query({
|
|
202
202
|
query: gql`
|
|
203
|
-
query {
|
|
204
|
-
returnOrders(${
|
|
205
|
-
filters: this.searchForm.queryFilters,
|
|
206
|
-
pagination: { page, limit },
|
|
207
|
-
sortings: sorters
|
|
208
|
-
})}) {
|
|
203
|
+
query returnOrders($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
204
|
+
returnOrders(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
209
205
|
items {
|
|
210
206
|
id
|
|
211
207
|
name
|
|
@@ -229,7 +225,12 @@ class ReturnOrderList extends localize(i18next)(PageView) {
|
|
|
229
225
|
total
|
|
230
226
|
}
|
|
231
227
|
}
|
|
232
|
-
|
|
228
|
+
`,
|
|
229
|
+
variables: {
|
|
230
|
+
filters: this.searchForm.queryFilters,
|
|
231
|
+
pagination: { page, limit },
|
|
232
|
+
sortings: sorters
|
|
233
|
+
}
|
|
233
234
|
})
|
|
234
235
|
|
|
235
236
|
if (!response.errors) {
|
|
@@ -4,7 +4,7 @@ import '@things-factory/grist-ui'
|
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
6
6
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
7
|
-
import {
|
|
7
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
8
|
import gql from 'graphql-tag'
|
|
9
9
|
import { css, html } from 'lit-element'
|
|
10
10
|
import { ORDER_STATUS } from '../../constants'
|
|
@@ -229,12 +229,8 @@ class ReturnOrderRequests extends localize(i18next)(PageView) {
|
|
|
229
229
|
async fetchHandler({ page, limit, sorters = [{ name: 'updatedAt', desc: true }] }) {
|
|
230
230
|
const response = await client.query({
|
|
231
231
|
query: gql`
|
|
232
|
-
query {
|
|
233
|
-
returnOrderRequests(${
|
|
234
|
-
filters: await this.searchForm.getQueryFilters(),
|
|
235
|
-
pagination: { page, limit },
|
|
236
|
-
sortings: sorters
|
|
237
|
-
})}) {
|
|
232
|
+
query returnOrderRequests($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
233
|
+
returnOrderRequests(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
238
234
|
items {
|
|
239
235
|
id
|
|
240
236
|
bizplace {
|
|
@@ -258,7 +254,12 @@ class ReturnOrderRequests extends localize(i18next)(PageView) {
|
|
|
258
254
|
total
|
|
259
255
|
}
|
|
260
256
|
}
|
|
261
|
-
|
|
257
|
+
`,
|
|
258
|
+
variables: {
|
|
259
|
+
filters: await this.searchForm.getQueryFilters(),
|
|
260
|
+
pagination: { page, limit },
|
|
261
|
+
sortings: sorters
|
|
262
|
+
}
|
|
262
263
|
})
|
|
263
264
|
|
|
264
265
|
if (!response.errors) {
|
|
@@ -272,18 +273,19 @@ class ReturnOrderRequests extends localize(i18next)(PageView) {
|
|
|
272
273
|
async fetchBizplaces(bizplace = []) {
|
|
273
274
|
const response = await client.query({
|
|
274
275
|
query: gql`
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
name
|
|
282
|
-
description
|
|
283
|
-
}
|
|
276
|
+
query bizplaces($filters: [Filter!]) {
|
|
277
|
+
bizplaces(filters: $filters) {
|
|
278
|
+
items {
|
|
279
|
+
id
|
|
280
|
+
name
|
|
281
|
+
description
|
|
284
282
|
}
|
|
285
283
|
}
|
|
286
|
-
|
|
284
|
+
}
|
|
285
|
+
`,
|
|
286
|
+
variables: {
|
|
287
|
+
filters: [...bizplace]
|
|
288
|
+
}
|
|
287
289
|
})
|
|
288
290
|
return response.data.bizplaces.items
|
|
289
291
|
}
|
|
@@ -6,7 +6,7 @@ import { css, html } from 'lit-element'
|
|
|
6
6
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
7
7
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
8
8
|
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
9
|
-
import {
|
|
9
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
10
10
|
|
|
11
11
|
import { ORDER_STATUS } from '../../constants'
|
|
12
12
|
|
|
@@ -173,12 +173,8 @@ class ReverseKittingOrderList extends localize(i18next)(PageView) {
|
|
|
173
173
|
async fetchHandler({ page, limit, sorters = [{ name: 'createdAt', desc: true }] }) {
|
|
174
174
|
const response = await client.query({
|
|
175
175
|
query: gql`
|
|
176
|
-
query {
|
|
177
|
-
reverseKittingOrders(${
|
|
178
|
-
filters: this.searchForm.queryFilters,
|
|
179
|
-
pagination: { page, limit },
|
|
180
|
-
sortings: sorters
|
|
181
|
-
})}) {
|
|
176
|
+
query reverseKittingOrders($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
177
|
+
reverseKittingOrders(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
182
178
|
items {
|
|
183
179
|
id
|
|
184
180
|
name
|
|
@@ -197,7 +193,12 @@ class ReverseKittingOrderList extends localize(i18next)(PageView) {
|
|
|
197
193
|
total
|
|
198
194
|
}
|
|
199
195
|
}
|
|
200
|
-
|
|
196
|
+
`,
|
|
197
|
+
variables: {
|
|
198
|
+
filters: this.searchForm.queryFilters,
|
|
199
|
+
pagination: { page, limit },
|
|
200
|
+
sortings: sorters
|
|
201
|
+
}
|
|
201
202
|
})
|
|
202
203
|
|
|
203
204
|
if (!response.errors) {
|