@things-factory/operato-wms 4.0.24 → 4.0.28
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/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 +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/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-detail.js +7 -6
- 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 +392 -109
- 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 +115 -234
- package/client/pages/outbound/picking-product.js +288 -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 +23 -17
- package/client/pages/outbound/worksheet-packing.js +18 -16
- package/client/pages/outbound/worksheet-picking.js +22 -18
- 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/print-product-label.js +17 -9
- 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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@things-factory/grist-ui'
|
|
2
2
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
|
-
import {
|
|
3
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
4
4
|
import { html } from 'lit-element'
|
|
5
5
|
import { AbstractExecuteVas } from './abstract-execute-vas'
|
|
6
6
|
|
|
@@ -83,76 +83,80 @@ class ExecutePureVas extends localize(i18next)(AbstractExecuteVas) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
get fetchVasQuery() {
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
86
|
+
return `
|
|
87
|
+
query vasWorksheet($orderNo: String!, $orderType: String!) {
|
|
88
|
+
vasWorksheet(orderNo: $orderNo, orderType: $orderType) {
|
|
89
|
+
worksheetInfo {
|
|
90
|
+
bizplaceName
|
|
91
|
+
startedAt
|
|
92
|
+
}
|
|
93
|
+
worksheetDetailInfos {
|
|
94
|
+
batchId
|
|
95
|
+
name
|
|
96
|
+
targetName
|
|
97
|
+
status
|
|
98
|
+
issue
|
|
99
|
+
set
|
|
100
|
+
targetType
|
|
101
|
+
targetBatchId
|
|
102
|
+
targetProduct {
|
|
103
|
+
id
|
|
104
|
+
name
|
|
105
|
+
description
|
|
106
|
+
}
|
|
107
|
+
otherTarget
|
|
108
|
+
qty
|
|
109
|
+
actualQty
|
|
110
|
+
uomValue
|
|
111
|
+
actualUomValue
|
|
112
|
+
operationGuide
|
|
113
|
+
vas {
|
|
114
|
+
id
|
|
115
|
+
name
|
|
116
|
+
description
|
|
117
|
+
operationGuide
|
|
118
|
+
operationGuideType
|
|
119
|
+
}
|
|
120
|
+
inventory {
|
|
121
|
+
batchId
|
|
122
|
+
palletId
|
|
123
|
+
qty
|
|
124
|
+
uomValue
|
|
125
|
+
}
|
|
126
|
+
description
|
|
127
|
+
remark
|
|
128
|
+
}
|
|
121
129
|
}
|
|
122
|
-
|
|
130
|
+
}
|
|
131
|
+
`
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
async _fetchInventoriesQuery() {
|
|
135
|
+
return await client.query({
|
|
136
|
+
query: gql`
|
|
137
|
+
query vasInventories($worksheetDetailName: String!) {
|
|
138
|
+
vasInventories(worksheetDetailName: $worksheetDetailName) {
|
|
123
139
|
batchId
|
|
124
140
|
palletId
|
|
125
141
|
qty
|
|
126
142
|
uomValue
|
|
143
|
+
product {
|
|
144
|
+
id
|
|
145
|
+
name
|
|
146
|
+
description
|
|
147
|
+
}
|
|
148
|
+
location {
|
|
149
|
+
id
|
|
150
|
+
name
|
|
151
|
+
description
|
|
152
|
+
}
|
|
127
153
|
}
|
|
128
|
-
description
|
|
129
|
-
remark
|
|
130
154
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
get fetchInventoriesQuery() {
|
|
136
|
-
return /* GraphQL */ `query {
|
|
137
|
-
vasInventories(${gqlBuilder.buildArgs({
|
|
155
|
+
`,
|
|
156
|
+
variables: {
|
|
138
157
|
worksheetDetailName: this._selectedVas.name
|
|
139
|
-
})}) {
|
|
140
|
-
batchId
|
|
141
|
-
palletId
|
|
142
|
-
qty
|
|
143
|
-
uomValue
|
|
144
|
-
product {
|
|
145
|
-
id
|
|
146
|
-
name
|
|
147
|
-
description
|
|
148
|
-
}
|
|
149
|
-
location {
|
|
150
|
-
id
|
|
151
|
-
name
|
|
152
|
-
description
|
|
153
|
-
}
|
|
154
158
|
}
|
|
155
|
-
}
|
|
159
|
+
})
|
|
156
160
|
}
|
|
157
161
|
|
|
158
162
|
_fillUpInfoForm(data) {
|
|
@@ -76,51 +76,50 @@ class ExecuteRefVas extends localize(i18next)(AbstractExecuteVas) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
get fetchVasQuery() {
|
|
79
|
-
return /* GraphQL */ `
|
|
80
|
-
vasWorksheet(${
|
|
81
|
-
orderNo:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
startedAt
|
|
87
|
-
containerNo
|
|
88
|
-
}
|
|
89
|
-
worksheetDetailInfos {
|
|
90
|
-
batchId
|
|
91
|
-
name
|
|
92
|
-
targetName
|
|
93
|
-
status
|
|
94
|
-
issue
|
|
95
|
-
set
|
|
96
|
-
targetType
|
|
97
|
-
targetBatchId
|
|
98
|
-
targetProduct {
|
|
99
|
-
id
|
|
100
|
-
name
|
|
101
|
-
description
|
|
79
|
+
return /* GraphQL */ `
|
|
80
|
+
query vasWorksheet($orderNo: String!, $orderType: String!) {
|
|
81
|
+
vasWorksheet(orderNo: $orderNo, orderType: $orderType) {
|
|
82
|
+
worksheetInfo {
|
|
83
|
+
bizplaceName
|
|
84
|
+
startedAt
|
|
85
|
+
containerNo
|
|
102
86
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
uomValue
|
|
106
|
-
operationGuide
|
|
107
|
-
vas {
|
|
108
|
-
id
|
|
87
|
+
worksheetDetailInfos {
|
|
88
|
+
batchId
|
|
109
89
|
name
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
90
|
+
targetName
|
|
91
|
+
status
|
|
92
|
+
issue
|
|
93
|
+
set
|
|
94
|
+
targetType
|
|
95
|
+
targetBatchId
|
|
96
|
+
targetProduct {
|
|
97
|
+
id
|
|
98
|
+
name
|
|
99
|
+
description
|
|
100
|
+
}
|
|
101
|
+
otherTarget
|
|
116
102
|
qty
|
|
117
103
|
uomValue
|
|
104
|
+
operationGuide
|
|
105
|
+
vas {
|
|
106
|
+
id
|
|
107
|
+
name
|
|
108
|
+
description
|
|
109
|
+
operationGuide
|
|
110
|
+
operationGuideType
|
|
111
|
+
}
|
|
112
|
+
inventory {
|
|
113
|
+
palletId
|
|
114
|
+
qty
|
|
115
|
+
uomValue
|
|
116
|
+
}
|
|
117
|
+
description
|
|
118
|
+
remark
|
|
118
119
|
}
|
|
119
|
-
description
|
|
120
|
-
remark
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
|
-
|
|
122
|
+
`
|
|
124
123
|
}
|
|
125
124
|
|
|
126
125
|
_fillUpInfoForm(data) {
|
|
@@ -191,9 +190,8 @@ class ExecuteRefVas extends localize(i18next)(AbstractExecuteVas) {
|
|
|
191
190
|
const worksheetDetail = this.taskGrist.dirtyData.records.filter(record => record.name === this._selectedVas.name)[0]
|
|
192
191
|
let vasWorkseetDetail = { name: worksheetDetail.name }
|
|
193
192
|
if (worksheetDetail.issue) vasWorkseetDetail.issue = worksheetDetail.issue
|
|
194
|
-
const args =
|
|
195
|
-
|
|
196
|
-
}
|
|
193
|
+
const args = vasWorkseetDetail
|
|
194
|
+
|
|
197
195
|
const palletId = this.palletIdInput?.value
|
|
198
196
|
if (palletId) {
|
|
199
197
|
args.palletId = palletId
|
|
@@ -401,7 +401,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
401
401
|
return {
|
|
402
402
|
...record,
|
|
403
403
|
gtin: productDetail.gtin,
|
|
404
|
-
productName:
|
|
404
|
+
productName: product.name
|
|
405
405
|
}
|
|
406
406
|
})
|
|
407
407
|
} else {
|
|
@@ -433,7 +433,8 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
433
433
|
auxValue1: product.auxValue1 || '',
|
|
434
434
|
auxUnit2: product.auxUnit2 || '',
|
|
435
435
|
auxValue2: product.auxValue2 || '',
|
|
436
|
-
bizplaceId: arrivalNotice.bizplace.id
|
|
436
|
+
bizplaceId: arrivalNotice.bizplace.id,
|
|
437
|
+
bizplaceName: arrivalNotice.bizplace.name
|
|
437
438
|
}
|
|
438
439
|
|
|
439
440
|
if (product.productDetails && product.productDetails.length) {
|
|
@@ -441,7 +442,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
441
442
|
return {
|
|
442
443
|
...record,
|
|
443
444
|
gtin: productDetail.gtin,
|
|
444
|
-
productName:
|
|
445
|
+
productName: product.name
|
|
445
446
|
}
|
|
446
447
|
})
|
|
447
448
|
} else {
|
|
@@ -475,6 +476,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
475
476
|
id
|
|
476
477
|
batchId
|
|
477
478
|
packingType
|
|
479
|
+
releaseQty
|
|
478
480
|
product {
|
|
479
481
|
name
|
|
480
482
|
sku
|
|
@@ -549,7 +551,9 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
549
551
|
auxValue1: product.auxValue1 || '',
|
|
550
552
|
auxUnit2: product.auxUnit2 || '',
|
|
551
553
|
auxValue2: product.auxValue2 || '',
|
|
552
|
-
bizplaceId: releaseGood.bizplace.id
|
|
554
|
+
bizplaceId: releaseGood.bizplace.id,
|
|
555
|
+
bizplaceName: releaseGood.bizplace.name,
|
|
556
|
+
printQty: oi.releaseQty || 0
|
|
553
557
|
}
|
|
554
558
|
|
|
555
559
|
if (product.productDetails && product.productDetails.length) {
|
|
@@ -557,7 +561,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
557
561
|
return {
|
|
558
562
|
...record,
|
|
559
563
|
gtin: productDetail.gtin,
|
|
560
|
-
productName:
|
|
564
|
+
productName: product.name
|
|
561
565
|
}
|
|
562
566
|
})
|
|
563
567
|
} else {
|
|
@@ -588,7 +592,8 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
588
592
|
auxValue1: product.auxValue1 || '',
|
|
589
593
|
auxUnit2: product.auxUnit2 || '',
|
|
590
594
|
auxValue2: product.auxValue2 || '',
|
|
591
|
-
bizplaceId: releaseGood.bizplace.id
|
|
595
|
+
bizplaceId: releaseGood.bizplace.id,
|
|
596
|
+
bizplaceName: releaseGood.bizplace.name
|
|
592
597
|
}
|
|
593
598
|
|
|
594
599
|
if (product.productDetails && product.productDetails.length) {
|
|
@@ -596,7 +601,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
596
601
|
return {
|
|
597
602
|
...record,
|
|
598
603
|
gtin: productDetail.gtin,
|
|
599
|
-
productName:
|
|
604
|
+
productName: product.name
|
|
600
605
|
}
|
|
601
606
|
})
|
|
602
607
|
} else {
|
|
@@ -648,6 +653,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
648
653
|
}
|
|
649
654
|
bizplace {
|
|
650
655
|
id
|
|
656
|
+
name
|
|
651
657
|
}
|
|
652
658
|
expirationDate
|
|
653
659
|
}
|
|
@@ -683,7 +689,8 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
683
689
|
auxUnit2: product.auxUnit2 || '',
|
|
684
690
|
auxValue2: product.auxValue2 || '',
|
|
685
691
|
productInfo: product.description ? `${product.name} (${product.description})` : `${product.name}`,
|
|
686
|
-
bizplaceId: inventory.bizplace.id
|
|
692
|
+
bizplaceId: inventory.bizplace.id,
|
|
693
|
+
bizplaceName: inventory.bizplace.name
|
|
687
694
|
}
|
|
688
695
|
|
|
689
696
|
if (product.productDetails && product.productDetails.length) {
|
|
@@ -691,7 +698,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
691
698
|
return {
|
|
692
699
|
...record,
|
|
693
700
|
gtin: productDetail.gtin,
|
|
694
|
-
productName:
|
|
701
|
+
productName: product.name
|
|
695
702
|
}
|
|
696
703
|
})
|
|
697
704
|
} else {
|
|
@@ -755,6 +762,7 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
|
|
|
755
762
|
searchParams.append('aux_value_2', record.auxValue2)
|
|
756
763
|
searchParams.append('expiration_date', record.expirationDate)
|
|
757
764
|
searchParams.append('location', record.location)
|
|
765
|
+
searchParams.append('company_name', record.bizplaceName)
|
|
758
766
|
|
|
759
767
|
let printCounter = 0
|
|
760
768
|
try {
|
|
@@ -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 } 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'
|
|
@@ -206,10 +206,8 @@ class RelatedVasList extends localize(i18next)(LitElement) {
|
|
|
206
206
|
|
|
207
207
|
const response = await client.query({
|
|
208
208
|
query: gql`
|
|
209
|
-
query {
|
|
210
|
-
worksheet(${
|
|
211
|
-
name: this.worksheetNo
|
|
212
|
-
})}) {
|
|
209
|
+
query worksheet($name: String!) {
|
|
210
|
+
worksheet(name: $name) {
|
|
213
211
|
worksheetDetails {
|
|
214
212
|
description
|
|
215
213
|
issue
|
|
@@ -240,7 +238,10 @@ class RelatedVasList extends localize(i18next)(LitElement) {
|
|
|
240
238
|
}
|
|
241
239
|
}
|
|
242
240
|
}
|
|
243
|
-
|
|
241
|
+
`,
|
|
242
|
+
variables: {
|
|
243
|
+
name: this.worksheetNo
|
|
244
|
+
}
|
|
244
245
|
})
|
|
245
246
|
|
|
246
247
|
if (!response.errors) {
|
|
@@ -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, CustomAlert } 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 {
|
|
@@ -376,10 +376,8 @@ class TargetInventoryAssignmentPopup extends localize(i18next)(LitElement) {
|
|
|
376
376
|
async _fetchCandidates() {
|
|
377
377
|
const response = await client.query({
|
|
378
378
|
query: gql`
|
|
379
|
-
query {
|
|
380
|
-
vasCandidates(${
|
|
381
|
-
worksheetDetailId: this.tasks[0].id
|
|
382
|
-
})}) {
|
|
379
|
+
query vasCandidates($worksheetDetailId: String!) {
|
|
380
|
+
vasCandidates(worksheetDetailId: $worksheetDetailId) {
|
|
383
381
|
id
|
|
384
382
|
palletId
|
|
385
383
|
batchId
|
|
@@ -396,7 +394,10 @@ class TargetInventoryAssignmentPopup extends localize(i18next)(LitElement) {
|
|
|
396
394
|
createdAt
|
|
397
395
|
}
|
|
398
396
|
}
|
|
399
|
-
|
|
397
|
+
`,
|
|
398
|
+
variables: {
|
|
399
|
+
worksheetDetailId: this.tasks[0].id
|
|
400
|
+
}
|
|
400
401
|
})
|
|
401
402
|
|
|
402
403
|
if (!response.errors) {
|
|
@@ -512,15 +513,16 @@ class TargetInventoryAssignmentPopup extends localize(i18next)(LitElement) {
|
|
|
512
513
|
return
|
|
513
514
|
}
|
|
514
515
|
|
|
515
|
-
const response = await client.
|
|
516
|
-
|
|
517
|
-
mutation {
|
|
518
|
-
assignVasInventories($
|
|
519
|
-
worksheetDetailIds: this.tasks.map(task => task.id),
|
|
520
|
-
inventories: this.getInventories()
|
|
521
|
-
})})
|
|
516
|
+
const response = await client.mutate({
|
|
517
|
+
mutation: gql`
|
|
518
|
+
mutation assignVasInventories($worksheetDetailIds: [String]!, $inventories: [InventoryPatch]!) {
|
|
519
|
+
assignVasInventories(worksheetDetailIds: $worksheetDetailIds, inventories: $inventories)
|
|
522
520
|
}
|
|
523
|
-
|
|
521
|
+
`,
|
|
522
|
+
variables: {
|
|
523
|
+
worksheetDetailIds: this.tasks.map(task => task.id),
|
|
524
|
+
inventories: this.getInventories()
|
|
525
|
+
}
|
|
524
526
|
})
|
|
525
527
|
|
|
526
528
|
if (!response.errors) {
|
|
@@ -2,7 +2,7 @@ import { DirectPrinter } from '@things-factory/barcode-base'
|
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client, store } from '@things-factory/shell'
|
|
5
|
-
import {
|
|
5
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
7
|
import { css, html, LitElement } from 'lit-element'
|
|
8
8
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
@@ -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 { ORDER_TYPES, WORKSHEET_TYPE } from '../constants'
|
|
14
14
|
|
|
@@ -229,12 +229,8 @@ class VasWorksheetList extends localize(i18next)(PageView) {
|
|
|
229
229
|
})
|
|
230
230
|
const response = await client.query({
|
|
231
231
|
query: gql`
|
|
232
|
-
query {
|
|
233
|
-
worksheets(${
|
|
234
|
-
filters,
|
|
235
|
-
pagination: { page, limit },
|
|
236
|
-
sortings: sorters
|
|
237
|
-
})}) {
|
|
232
|
+
query worksheets($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
233
|
+
worksheets(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
238
234
|
items {
|
|
239
235
|
id
|
|
240
236
|
name
|
|
@@ -267,7 +263,12 @@ class VasWorksheetList extends localize(i18next)(PageView) {
|
|
|
267
263
|
total
|
|
268
264
|
}
|
|
269
265
|
}
|
|
270
|
-
|
|
266
|
+
`,
|
|
267
|
+
variables: {
|
|
268
|
+
filters,
|
|
269
|
+
pagination: { page, limit },
|
|
270
|
+
sortings: sorters
|
|
271
|
+
}
|
|
271
272
|
})
|
|
272
273
|
|
|
273
274
|
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 { openPopup } from '@things-factory/layout-base'
|
|
6
6
|
import { client, 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'
|
|
@@ -257,10 +257,8 @@ class WorksheetRefVas extends localize(i18next)(PageView) {
|
|
|
257
257
|
|
|
258
258
|
const response = await client.query({
|
|
259
259
|
query: gql`
|
|
260
|
-
query {
|
|
261
|
-
worksheet(${
|
|
262
|
-
name: this._worksheetNo
|
|
263
|
-
})}) {
|
|
260
|
+
query worksheet($name: String!) {
|
|
261
|
+
worksheet(name: $name) {
|
|
264
262
|
bizplace {
|
|
265
263
|
name
|
|
266
264
|
}
|
|
@@ -298,7 +296,10 @@ class WorksheetRefVas extends localize(i18next)(PageView) {
|
|
|
298
296
|
}
|
|
299
297
|
}
|
|
300
298
|
}
|
|
301
|
-
|
|
299
|
+
`,
|
|
300
|
+
variables: {
|
|
301
|
+
name: this._worksheetNo
|
|
302
|
+
}
|
|
302
303
|
})
|
|
303
304
|
|
|
304
305
|
if (!response.errors) {
|
|
@@ -6,7 +6,7 @@ import { getRenderer } from '@things-factory/grist-ui'
|
|
|
6
6
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
7
7
|
import { openPopup } from '@things-factory/layout-base'
|
|
8
8
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
9
|
-
import {
|
|
9
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
10
10
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
11
11
|
import gql from 'graphql-tag'
|
|
12
12
|
import { css, html } from 'lit-element'
|
|
@@ -414,10 +414,8 @@ class WorksheetVas extends localize(i18next)(PageView) {
|
|
|
414
414
|
if (!this._worksheetNo) return
|
|
415
415
|
const response = await client.query({
|
|
416
416
|
query: gql`
|
|
417
|
-
query {
|
|
418
|
-
worksheet(${
|
|
419
|
-
name: this._worksheetNo
|
|
420
|
-
})}) {
|
|
417
|
+
query worksheet($name: String!) {
|
|
418
|
+
worksheet(name: $name) {
|
|
421
419
|
id
|
|
422
420
|
name
|
|
423
421
|
status
|
|
@@ -473,7 +471,10 @@ class WorksheetVas extends localize(i18next)(PageView) {
|
|
|
473
471
|
}
|
|
474
472
|
}
|
|
475
473
|
}
|
|
476
|
-
|
|
474
|
+
`,
|
|
475
|
+
variables: {
|
|
476
|
+
name: this._worksheetNo
|
|
477
|
+
}
|
|
477
478
|
})
|
|
478
479
|
|
|
479
480
|
if (!response.errors) {
|
|
@@ -697,17 +698,18 @@ class WorksheetVas extends localize(i18next)(PageView) {
|
|
|
697
698
|
}
|
|
698
699
|
}
|
|
699
700
|
|
|
700
|
-
const response = await client.
|
|
701
|
-
|
|
702
|
-
mutation {
|
|
703
|
-
activateVas(${
|
|
704
|
-
worksheetNo: this._worksheetNo,
|
|
705
|
-
vasWorksheetDetails: this._getVasWorksheetDetails()
|
|
706
|
-
})}) {
|
|
701
|
+
const response = await client.mutate({
|
|
702
|
+
mutation: gql`
|
|
703
|
+
mutation activateVas($worksheetNo: String!, $vasWorksheetDetails: [WorksheetDetailPatch]) {
|
|
704
|
+
activateVas(worksheetNo: $worksheetNo, vasWorksheetDetails: $vasWorksheetDetails) {
|
|
707
705
|
name
|
|
708
706
|
}
|
|
709
707
|
}
|
|
710
|
-
|
|
708
|
+
`,
|
|
709
|
+
variables: {
|
|
710
|
+
worksheetNo: this._worksheetNo,
|
|
711
|
+
vasWorksheetDetails: this._getVasWorksheetDetails()
|
|
712
|
+
}
|
|
711
713
|
})
|
|
712
714
|
if (!response.errors) {
|
|
713
715
|
this._showToast({ message: i18next.t('text.worksheet_activated') })
|
package/client/route.js
CHANGED
|
@@ -37,10 +37,6 @@ export default function route(page) {
|
|
|
37
37
|
import('./pages/master/pallet-list')
|
|
38
38
|
return page
|
|
39
39
|
|
|
40
|
-
case 'picking_bins':
|
|
41
|
-
import('./pages/master/picking-bin-list')
|
|
42
|
-
return page
|
|
43
|
-
|
|
44
40
|
case 'products':
|
|
45
41
|
import('./pages/master/product/product-list')
|
|
46
42
|
return page
|
|
@@ -68,21 +64,21 @@ export default function route(page) {
|
|
|
68
64
|
import('./pages/order/arrival-notice/arrival-notice-requests')
|
|
69
65
|
return page
|
|
70
66
|
|
|
71
|
-
case 'receive_arrival_notice':
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
// case 'receive_arrival_notice':
|
|
68
|
+
// import('./pages/order/arrival-notice/receive-arrival-notice')
|
|
69
|
+
// return page
|
|
74
70
|
|
|
75
|
-
case 'rejected_arrival_notice':
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
// case 'rejected_arrival_notice':
|
|
72
|
+
// import('./pages/order/arrival-notice/rejected-arrival-notice')
|
|
73
|
+
// return page
|
|
78
74
|
|
|
79
|
-
case 'check_arrived_notice':
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
// case 'check_arrived_notice':
|
|
76
|
+
// import('./pages/order/arrival-notice/check-arrived-notice')
|
|
77
|
+
// return page
|
|
82
78
|
|
|
83
|
-
case 'assign_buffer_location':
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
// case 'assign_buffer_location':
|
|
80
|
+
// import('./pages/order/arrival-notice/assign-buffer-location')
|
|
81
|
+
// return page
|
|
86
82
|
|
|
87
83
|
case 'create_release_order':
|
|
88
84
|
import('./pages/order/release-order/create-release-order')
|
|
@@ -103,10 +99,10 @@ export default function route(page) {
|
|
|
103
99
|
case 'b2c_order_requests':
|
|
104
100
|
import('./pages/order/release-order/b2c/b2c-order-requests')
|
|
105
101
|
return page
|
|
106
|
-
|
|
107
|
-
case 'receive_release_order_request':
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
//to be removed
|
|
103
|
+
// case 'receive_release_order_request':
|
|
104
|
+
// import('./pages/order/release-order/receive-release-order-request')
|
|
105
|
+
// return page
|
|
110
106
|
|
|
111
107
|
case 'rejected_release_order':
|
|
112
108
|
import('./pages/order/release-order/rejected-release-order')
|
|
@@ -132,10 +128,6 @@ export default function route(page) {
|
|
|
132
128
|
import('./pages/order/vas-order/receive-vas-order')
|
|
133
129
|
return page
|
|
134
130
|
|
|
135
|
-
case 'rejected_vas_order':
|
|
136
|
-
import('./pages/order/vas-order/rejected-vas-order')
|
|
137
|
-
return page
|
|
138
|
-
|
|
139
131
|
case 'create_delivery_order':
|
|
140
132
|
import('./pages/order/transport-order/create-delivery-order')
|
|
141
133
|
return page
|
|
@@ -152,14 +144,6 @@ export default function route(page) {
|
|
|
152
144
|
import('./pages/order/transport-order/view-delivery-note')
|
|
153
145
|
return page
|
|
154
146
|
|
|
155
|
-
case 'retail_replenishment_order_requests':
|
|
156
|
-
import('./pages/order/retail-replenishment-order/retail-replenishment-order-requests')
|
|
157
|
-
return page
|
|
158
|
-
|
|
159
|
-
case 'retail_replenishment_order_detail':
|
|
160
|
-
import('./pages/order/retail-replenishment-order/retail-replenishment-order-detail')
|
|
161
|
-
return page
|
|
162
|
-
|
|
163
147
|
case 'transfer_order_requests':
|
|
164
148
|
import('./pages/order/transfer-order/transfer-order-requests')
|
|
165
149
|
return page
|