@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
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import '@things-factory/grist-ui'
|
|
2
|
+
|
|
3
|
+
import { css, html, LitElement } from 'lit-element'
|
|
4
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
|
5
|
+
|
|
6
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
7
|
+
import { store } from '@things-factory/shell'
|
|
8
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
9
|
+
|
|
10
|
+
class UnloadedInventoriesPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
11
|
+
static get properties() {
|
|
12
|
+
return {
|
|
13
|
+
config: Object,
|
|
14
|
+
data: Object,
|
|
15
|
+
unloadedInventories: Array
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static get styles() {
|
|
20
|
+
return [
|
|
21
|
+
css`
|
|
22
|
+
data-grist {
|
|
23
|
+
overflow-y: hidden;
|
|
24
|
+
flex: 1;
|
|
25
|
+
}
|
|
26
|
+
.grist {
|
|
27
|
+
background-color: var(--main-section-background-color);
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
flex: 1;
|
|
31
|
+
overflow-y: auto;
|
|
32
|
+
}
|
|
33
|
+
:host {
|
|
34
|
+
padding: 10px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
overflow-x: overlay;
|
|
38
|
+
background-color: var(--main-section-background-color);
|
|
39
|
+
}
|
|
40
|
+
`
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
get dataGrist() {
|
|
45
|
+
return this.shadowRoot.querySelector('data-grist')
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
render() {
|
|
49
|
+
return html`
|
|
50
|
+
<div class="grist">
|
|
51
|
+
<data-grist
|
|
52
|
+
id="grist"
|
|
53
|
+
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
54
|
+
.config=${this.config}
|
|
55
|
+
.data="${this.data}"
|
|
56
|
+
></data-grist>
|
|
57
|
+
</div>
|
|
58
|
+
`
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
updated(changedProps) {
|
|
62
|
+
if (changedProps.has('unloadedInventories')) {
|
|
63
|
+
this.data = {
|
|
64
|
+
records: this.unloadedInventories
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
firstUpdated() {
|
|
70
|
+
this.config = {
|
|
71
|
+
rows: { appendable: false },
|
|
72
|
+
list: {
|
|
73
|
+
fields: ['palletId', 'cartonId', 'qty', 'expirationDate', 'reusablePallet']
|
|
74
|
+
},
|
|
75
|
+
pagination: { infinite: true },
|
|
76
|
+
columns: [
|
|
77
|
+
{ type: 'gutter', gutterName: 'sequence' },
|
|
78
|
+
{
|
|
79
|
+
type: 'string',
|
|
80
|
+
name: 'palletId',
|
|
81
|
+
header: i18next.t('field.lot_id'),
|
|
82
|
+
label: true,
|
|
83
|
+
width: 120
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: 'string',
|
|
87
|
+
name: 'cartonId',
|
|
88
|
+
header: i18next.t('field.carton_id'),
|
|
89
|
+
label: true,
|
|
90
|
+
width: 120
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: 'integer',
|
|
94
|
+
name: 'qty',
|
|
95
|
+
header: i18next.t('field.actual_pack_qty'),
|
|
96
|
+
label: true,
|
|
97
|
+
width: 150
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: 'date',
|
|
101
|
+
name: 'expirationDate',
|
|
102
|
+
header: i18next.t('field.exp_date'),
|
|
103
|
+
label: true,
|
|
104
|
+
width: 120
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: 'object',
|
|
108
|
+
name: 'reusablePallet',
|
|
109
|
+
header: i18next.t('field.reusable_pallet'),
|
|
110
|
+
label: true,
|
|
111
|
+
width: 120
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
_showToast({ type, message }) {
|
|
118
|
+
document.dispatchEvent(
|
|
119
|
+
new CustomEvent('notify', {
|
|
120
|
+
detail: {
|
|
121
|
+
type,
|
|
122
|
+
message
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
)
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
window.customElements.define('unloaded-inventories-popup', UnloadedInventoriesPopup)
|
|
@@ -3,7 +3,7 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client } from '@things-factory/shell'
|
|
5
5
|
import { ScrollbarStyles } 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, LitElement } from 'lit-element'
|
|
9
9
|
|
|
@@ -139,12 +139,8 @@ export class VasSelector extends localize(i18next)(LitElement) {
|
|
|
139
139
|
const filters = await this.searchForm.getQueryFilters()
|
|
140
140
|
const response = await client.query({
|
|
141
141
|
query: gql`
|
|
142
|
-
query {
|
|
143
|
-
vass(${
|
|
144
|
-
filters,
|
|
145
|
-
pagination: { page, limit },
|
|
146
|
-
sortings: sorters
|
|
147
|
-
})}) {
|
|
142
|
+
query vass($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
143
|
+
vass(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
148
144
|
items {
|
|
149
145
|
id
|
|
150
146
|
name
|
|
@@ -153,7 +149,12 @@ export class VasSelector extends localize(i18next)(LitElement) {
|
|
|
153
149
|
total
|
|
154
150
|
}
|
|
155
151
|
}
|
|
156
|
-
|
|
152
|
+
`,
|
|
153
|
+
variables: {
|
|
154
|
+
filters,
|
|
155
|
+
pagination: { page, limit },
|
|
156
|
+
sortings: sorters
|
|
157
|
+
}
|
|
157
158
|
})
|
|
158
159
|
|
|
159
160
|
if (!response.errors) {
|
|
@@ -161,6 +161,16 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
161
161
|
<form class="multi-column-form">
|
|
162
162
|
<fieldset>
|
|
163
163
|
<legend>${i18next.t('title.unloading')}</legend>
|
|
164
|
+
|
|
165
|
+
<label>${i18next.t('label.options')}</label>
|
|
166
|
+
<div options-wrap>
|
|
167
|
+
<input name="crossDocking" type="checkbox" .checked="${this.crossDocking}" disabled />
|
|
168
|
+
<label>${i18next.t('label.cross_docking')}</label>
|
|
169
|
+
|
|
170
|
+
<input name="looseItem" type="checkbox" .checked="${this.looseItem}" disabled />
|
|
171
|
+
<label>${i18next.t('label.loose_item')}</label>
|
|
172
|
+
</div>
|
|
173
|
+
|
|
164
174
|
<label>${i18next.t('label.arrival_notice')}</label>
|
|
165
175
|
<input name="arrivalNotice" readonly />
|
|
166
176
|
|
|
@@ -192,12 +202,6 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
192
202
|
`
|
|
193
203
|
)}
|
|
194
204
|
</select>
|
|
195
|
-
|
|
196
|
-
<input name="crossDocking" type="checkbox" .checked="${this.crossDocking}" disabled />
|
|
197
|
-
<label>${i18next.t('label.cross_docking')}</label>
|
|
198
|
-
|
|
199
|
-
<input name="looseItem" type="checkbox" .checked="${this.looseItem}" disabled />
|
|
200
|
-
<label>${i18next.t('label.loose_item')}</label>
|
|
201
205
|
</fieldset>
|
|
202
206
|
</form>
|
|
203
207
|
|
|
@@ -827,7 +831,7 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
827
831
|
|
|
828
832
|
async _activateWorksheet() {
|
|
829
833
|
try {
|
|
830
|
-
this._checkPalletQty()
|
|
834
|
+
//this._checkPalletQty()
|
|
831
835
|
|
|
832
836
|
let result = await CustomAlert({
|
|
833
837
|
title: i18next.t('title.are_you_sure'),
|
|
@@ -909,10 +913,10 @@ class WorksheetUnloading extends localize(i18next)(PageView) {
|
|
|
909
913
|
}
|
|
910
914
|
}
|
|
911
915
|
|
|
912
|
-
_checkPalletQty() {
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
}
|
|
916
|
+
// _checkPalletQty() { //remove check pallet qty restriction
|
|
917
|
+
// if (!this.grist.dirtyData.records.every(record => record.palletQty && Number(record.palletQty) > 0))
|
|
918
|
+
// throw new Error(i18next.t('text.there_is_no_pallet_qty'))
|
|
919
|
+
// }
|
|
916
920
|
|
|
917
921
|
_getUnloadingWorksheetDetails() {
|
|
918
922
|
return (this.grist.dirtyData.records || []).map(worksheetDetail => {
|
|
@@ -571,7 +571,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
571
571
|
const filters = await this.searchForm.getQueryFilters()
|
|
572
572
|
const response = await client.query({
|
|
573
573
|
query: gql`
|
|
574
|
-
query inventories($filters: [Filter!]
|
|
574
|
+
query inventories($filters: [Filter!]!, $pagination: Pagination, $sortings: [Sorting!]!) {
|
|
575
575
|
inventories(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
576
576
|
items {
|
|
577
577
|
id
|
|
@@ -788,7 +788,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
788
788
|
|
|
789
789
|
const response = await client.mutate({
|
|
790
790
|
mutation: gql`
|
|
791
|
-
mutation submitInventoryChanges($patches: [InventoryPatch]!) {
|
|
791
|
+
mutation submitInventoryChanges($patches: [InventoryPatch!]!) {
|
|
792
792
|
submitInventoryChanges(patches: $patches)
|
|
793
793
|
}
|
|
794
794
|
`,
|
|
@@ -848,13 +848,12 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
848
848
|
data = await this.fetchInventoriesForExport()
|
|
849
849
|
}
|
|
850
850
|
|
|
851
|
-
let [product, bizplace] = await Promise.all([
|
|
851
|
+
let [product, bizplace, location] = await Promise.all([
|
|
852
852
|
this.fetchProduct(bizplaceFilters),
|
|
853
|
-
this.fetchBizplaces([{ ...bizplaceFilters[0], name: 'bizplace' }])
|
|
853
|
+
this.fetchBizplaces([{ ...bizplaceFilters[0], name: 'bizplace' }]),
|
|
854
|
+
this.fetchLocation()
|
|
854
855
|
])
|
|
855
856
|
|
|
856
|
-
let location = this.fetchLocation()
|
|
857
|
-
|
|
858
857
|
headerSetting = headerSetting.map(column => {
|
|
859
858
|
switch (column.key) {
|
|
860
859
|
case 'bizplace.name':
|
|
@@ -865,7 +864,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
865
864
|
return { ...itm, name: `(${itm.sku}) ${itm.name} - ${itm.description}` }
|
|
866
865
|
})
|
|
867
866
|
break
|
|
868
|
-
case 'location':
|
|
867
|
+
case 'location.name':
|
|
869
868
|
column.arrData = location
|
|
870
869
|
break
|
|
871
870
|
default:
|
|
@@ -911,7 +910,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
911
910
|
async fetchBizplaces(bizplace = []) {
|
|
912
911
|
const response = await client.query({
|
|
913
912
|
query: gql`
|
|
914
|
-
query bizplaces($filters: [Filter!]) {
|
|
913
|
+
query bizplaces($filters: [Filter!]!) {
|
|
915
914
|
bizplaces(filters: $filters) {
|
|
916
915
|
items {
|
|
917
916
|
id
|
|
@@ -931,7 +930,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
931
930
|
bizplace[0].name = 'bizplace'
|
|
932
931
|
const response = await client.query({
|
|
933
932
|
query: gql`
|
|
934
|
-
query productsByBizplace($filters: [Filter!]) {
|
|
933
|
+
query productsByBizplace($filters: [Filter!]!) {
|
|
935
934
|
productsByBizplace(filters: $filters) {
|
|
936
935
|
items {
|
|
937
936
|
id
|
|
@@ -953,7 +952,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
953
952
|
async fetchLocation() {
|
|
954
953
|
const response = await client.query({
|
|
955
954
|
query: gql`
|
|
956
|
-
query locations($filters: [Filter!]) {
|
|
955
|
+
query locations($filters: [Filter!]!) {
|
|
957
956
|
locations(filters: $filters) {
|
|
958
957
|
items {
|
|
959
958
|
id
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import '@things-factory/barcode-ui'
|
|
2
2
|
import { SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
3
3
|
import { client } from '@things-factory/shell'
|
|
4
|
-
import { gqlBuilder } from '@things-factory/utils'
|
|
5
4
|
import gql from 'graphql-tag'
|
|
6
5
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
7
6
|
import { css, html, LitElement } from 'lit-element'
|
|
@@ -180,13 +179,14 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
180
179
|
try {
|
|
181
180
|
const response = await client.query({
|
|
182
181
|
query: gql`
|
|
183
|
-
query {
|
|
184
|
-
checkInventoryOwner($
|
|
185
|
-
palletId,
|
|
186
|
-
bizplaceName
|
|
187
|
-
})})
|
|
182
|
+
query checkInventoryOwner($palletId: String!, $bizplaceName: String!) {
|
|
183
|
+
checkInventoryOwner(palletId: $palletId, bizplaceName: $bizplaceName)
|
|
188
184
|
}
|
|
189
|
-
|
|
185
|
+
`,
|
|
186
|
+
variables: {
|
|
187
|
+
palletId,
|
|
188
|
+
bizplaceName
|
|
189
|
+
}
|
|
190
190
|
})
|
|
191
191
|
|
|
192
192
|
if (!response.errors) {
|
|
@@ -201,11 +201,8 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
201
201
|
try {
|
|
202
202
|
const response = await client.query({
|
|
203
203
|
query: gql`
|
|
204
|
-
query {
|
|
205
|
-
checkStockTakeCurrentLocation(${
|
|
206
|
-
palletId,
|
|
207
|
-
cycleCountNo
|
|
208
|
-
})}) {
|
|
204
|
+
query checkStockTakeCurrentLocation($palletId: String!, $cycleCountNo: String!) {
|
|
205
|
+
checkStockTakeCurrentLocation(palletId: $palletId, cycleCountNo: $cycleCountNo) {
|
|
209
206
|
currentLocation
|
|
210
207
|
worksheetDetailName
|
|
211
208
|
batchId
|
|
@@ -217,7 +214,11 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
217
214
|
productDescription
|
|
218
215
|
}
|
|
219
216
|
}
|
|
220
|
-
|
|
217
|
+
`,
|
|
218
|
+
variables: {
|
|
219
|
+
palletId,
|
|
220
|
+
cycleCountNo
|
|
221
|
+
}
|
|
221
222
|
})
|
|
222
223
|
|
|
223
224
|
if (!response.errors) {
|
|
@@ -232,12 +233,13 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
232
233
|
try {
|
|
233
234
|
const response = await client.query({
|
|
234
235
|
query: gql`
|
|
235
|
-
query {
|
|
236
|
-
checkInventoryRelease($
|
|
237
|
-
palletId
|
|
238
|
-
})})
|
|
236
|
+
query checkInventoryRelease($palletId: String!) {
|
|
237
|
+
checkInventoryRelease(palletId: $palletId)
|
|
239
238
|
}
|
|
240
|
-
|
|
239
|
+
`,
|
|
240
|
+
variables: {
|
|
241
|
+
palletId
|
|
242
|
+
}
|
|
241
243
|
})
|
|
242
244
|
|
|
243
245
|
if (!response.errors) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
2
2
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
3
|
import { client, CustomAlert } from '@things-factory/shell'
|
|
4
|
-
import {
|
|
4
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
6
|
import { css, html, LitElement } from 'lit-element'
|
|
7
7
|
|
|
@@ -221,10 +221,8 @@ class CycleCountRecheckPopup extends localize(i18next)(LitElement) {
|
|
|
221
221
|
async fetchNotTallyInventories() {
|
|
222
222
|
const response = await client.query({
|
|
223
223
|
query: gql`
|
|
224
|
-
query {
|
|
225
|
-
notTallyTargetInventories(${
|
|
226
|
-
cycleCountNo: this.cycleCountNo
|
|
227
|
-
})}) {
|
|
224
|
+
query notTallyTargetInventories($cycleCountNo: String!) {
|
|
225
|
+
notTallyTargetInventories(cycleCountNo: $cycleCountNo) {
|
|
228
226
|
id
|
|
229
227
|
inventory {
|
|
230
228
|
palletId
|
|
@@ -252,7 +250,10 @@ class CycleCountRecheckPopup extends localize(i18next)(LitElement) {
|
|
|
252
250
|
status
|
|
253
251
|
}
|
|
254
252
|
}
|
|
255
|
-
|
|
253
|
+
`,
|
|
254
|
+
variables: {
|
|
255
|
+
cycleCountNo: this.cycleCountNo
|
|
256
|
+
}
|
|
256
257
|
})
|
|
257
258
|
|
|
258
259
|
if (!response.errors) {
|
|
@@ -295,18 +296,27 @@ class CycleCountRecheckPopup extends localize(i18next)(LitElement) {
|
|
|
295
296
|
}
|
|
296
297
|
|
|
297
298
|
const orderInventoryIds = this.grist.selected.map(record => record.id)
|
|
298
|
-
const response = await client.
|
|
299
|
-
|
|
300
|
-
mutation
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
299
|
+
const response = await client.mutate({
|
|
300
|
+
mutation: gql`
|
|
301
|
+
mutation generateCycleCountWorksheet(
|
|
302
|
+
$executionDate: String!
|
|
303
|
+
$customerId: String!
|
|
304
|
+
$orderInventoryIds: [String]
|
|
305
|
+
) {
|
|
306
|
+
generateCycleCountWorksheet(
|
|
307
|
+
executionDate: $executionDate
|
|
308
|
+
customerId: $customerId
|
|
309
|
+
orderInventoryIds: $orderInventoryIds
|
|
310
|
+
) {
|
|
306
311
|
name
|
|
307
312
|
}
|
|
308
313
|
}
|
|
309
|
-
|
|
314
|
+
`,
|
|
315
|
+
variables: {
|
|
316
|
+
executionDate: this.executionDateInput.value,
|
|
317
|
+
customerId: this.customerId,
|
|
318
|
+
orderInventoryIds
|
|
319
|
+
}
|
|
310
320
|
})
|
|
311
321
|
|
|
312
322
|
if (!response.errors) {
|
|
@@ -1014,7 +1014,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1014
1014
|
|
|
1015
1015
|
const response = await client.query({
|
|
1016
1016
|
query: gql`
|
|
1017
|
-
query orderInventories($filters: [Filter]) {
|
|
1017
|
+
query orderInventories($filters: [Filter!]) {
|
|
1018
1018
|
orderInventories(filters: $filters) {
|
|
1019
1019
|
items {
|
|
1020
1020
|
id
|
|
@@ -1278,7 +1278,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1278
1278
|
try {
|
|
1279
1279
|
const response = await client.query({
|
|
1280
1280
|
query: gql`
|
|
1281
|
-
query locations($filters: [Filter]) {
|
|
1281
|
+
query locations($filters: [Filter!]) {
|
|
1282
1282
|
locations(filters: $filters) {
|
|
1283
1283
|
items {
|
|
1284
1284
|
id
|
|
@@ -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, 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 {
|
|
@@ -127,7 +127,16 @@ class InventoryCheckList extends localize(i18next)(PageView) {
|
|
|
127
127
|
|
|
128
128
|
this.config = {
|
|
129
129
|
list: {
|
|
130
|
-
fields: [
|
|
130
|
+
fields: [
|
|
131
|
+
'inventoryCheck',
|
|
132
|
+
'type',
|
|
133
|
+
'Customer',
|
|
134
|
+
'executionDate',
|
|
135
|
+
'inventoryCheckStatus',
|
|
136
|
+
'status',
|
|
137
|
+
'startedAt',
|
|
138
|
+
'endedAt'
|
|
139
|
+
]
|
|
131
140
|
},
|
|
132
141
|
rows: { appendable: false },
|
|
133
142
|
columns: [
|
|
@@ -247,12 +256,8 @@ class InventoryCheckList extends localize(i18next)(PageView) {
|
|
|
247
256
|
|
|
248
257
|
const response = await client.query({
|
|
249
258
|
query: gql`
|
|
250
|
-
query {
|
|
251
|
-
worksheets(${
|
|
252
|
-
filters,
|
|
253
|
-
pagination: { page, limit },
|
|
254
|
-
sortings: sorters
|
|
255
|
-
})}) {
|
|
259
|
+
query worksheets($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
260
|
+
worksheets(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
256
261
|
items {
|
|
257
262
|
id
|
|
258
263
|
name
|
|
@@ -281,7 +286,12 @@ class InventoryCheckList extends localize(i18next)(PageView) {
|
|
|
281
286
|
total
|
|
282
287
|
}
|
|
283
288
|
}
|
|
284
|
-
|
|
289
|
+
`,
|
|
290
|
+
variables: {
|
|
291
|
+
filters,
|
|
292
|
+
pagination: { page, limit },
|
|
293
|
+
sortings: sorters
|
|
294
|
+
}
|
|
285
295
|
})
|
|
286
296
|
|
|
287
297
|
if (!response.errors) {
|
|
@@ -303,18 +313,19 @@ class InventoryCheckList extends localize(i18next)(PageView) {
|
|
|
303
313
|
async _fetchBizplaceList() {
|
|
304
314
|
const response = await client.query({
|
|
305
315
|
query: gql`
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
name
|
|
313
|
-
description
|
|
314
|
-
}
|
|
316
|
+
query bizplaces($filters: [Filter!]) {
|
|
317
|
+
bizplaces(filters: $filters) {
|
|
318
|
+
items {
|
|
319
|
+
id
|
|
320
|
+
name
|
|
321
|
+
description
|
|
315
322
|
}
|
|
316
323
|
}
|
|
317
|
-
|
|
324
|
+
}
|
|
325
|
+
`,
|
|
326
|
+
variables: {
|
|
327
|
+
filters: []
|
|
328
|
+
}
|
|
318
329
|
})
|
|
319
330
|
|
|
320
331
|
if (!response.errors) {
|
|
@@ -3,7 +3,7 @@ import '@material/mwc-button/mwc-button'
|
|
|
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 { css, html, LitElement } from 'lit-element'
|
|
8
8
|
import gql from 'graphql-tag'
|
|
9
9
|
|
|
@@ -144,21 +144,22 @@ class SearchPopup extends localize(i18next)(LitElement) {
|
|
|
144
144
|
const filters = await this.searchForm.getQueryFilters()
|
|
145
145
|
const response = await client.query({
|
|
146
146
|
query: gql`
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
items{
|
|
154
|
-
id
|
|
155
|
-
name
|
|
156
|
-
description
|
|
157
|
-
}
|
|
158
|
-
total
|
|
147
|
+
query bizplaces($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
148
|
+
bizplaces(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
149
|
+
items {
|
|
150
|
+
id
|
|
151
|
+
name
|
|
152
|
+
description
|
|
159
153
|
}
|
|
154
|
+
total
|
|
160
155
|
}
|
|
161
|
-
|
|
156
|
+
}
|
|
157
|
+
`,
|
|
158
|
+
variables: {
|
|
159
|
+
filters: [...filters],
|
|
160
|
+
pagination: { page, limit },
|
|
161
|
+
sortings: sorters
|
|
162
|
+
}
|
|
162
163
|
})
|
|
163
164
|
|
|
164
165
|
return {
|
|
@@ -4,7 +4,7 @@ import '@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
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 { WORKSHEET_STATUS } from '../constants'
|
|
@@ -304,17 +304,14 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
|
|
|
304
304
|
if (!this._worksheetNo) return
|
|
305
305
|
const response = await client.query({
|
|
306
306
|
query: gql`
|
|
307
|
-
query {
|
|
308
|
-
worksheetWithPagination(${
|
|
309
|
-
name: this._worksheetNo,
|
|
310
|
-
pagination: { page, limit }
|
|
311
|
-
})}) {
|
|
307
|
+
query worksheetWithPagination($name: String!, $pagination: Pagination) {
|
|
308
|
+
worksheetWithPagination(name: $name, pagination: $pagination) {
|
|
312
309
|
worksheet {
|
|
313
310
|
status
|
|
314
311
|
inventoryCheck {
|
|
315
312
|
name
|
|
316
313
|
executionDate
|
|
317
|
-
}
|
|
314
|
+
}
|
|
318
315
|
bizplace {
|
|
319
316
|
name
|
|
320
317
|
}
|
|
@@ -338,7 +335,7 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
|
|
|
338
335
|
brand
|
|
339
336
|
description
|
|
340
337
|
}
|
|
341
|
-
}
|
|
338
|
+
}
|
|
342
339
|
inspectedLocation {
|
|
343
340
|
name
|
|
344
341
|
description
|
|
@@ -351,7 +348,11 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
|
|
|
351
348
|
total
|
|
352
349
|
}
|
|
353
350
|
}
|
|
354
|
-
|
|
351
|
+
`,
|
|
352
|
+
variables: {
|
|
353
|
+
name: this._worksheetNo,
|
|
354
|
+
pagination: { page, limit }
|
|
355
|
+
}
|
|
355
356
|
})
|
|
356
357
|
|
|
357
358
|
if (!response.errors) {
|
|
@@ -456,15 +457,16 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
|
|
|
456
457
|
|
|
457
458
|
const response = await client.query({
|
|
458
459
|
query: gql`
|
|
459
|
-
mutation {
|
|
460
|
-
activateCycleCount(${
|
|
461
|
-
worksheetNo: this._worksheetNo,
|
|
462
|
-
cycleCountWorksheetDetails: this._getCycleCountWSD()
|
|
463
|
-
})}) {
|
|
460
|
+
mutation activateCycleCount($worksheetNo: String!, $cycleCountWorksheetDetails: [WorksheetDetailPatch]) {
|
|
461
|
+
activateCycleCount(worksheetNo: $worksheetNo, cycleCountWorksheetDetails: $cycleCountWorksheetDetails) {
|
|
464
462
|
name
|
|
465
463
|
}
|
|
466
464
|
}
|
|
467
|
-
|
|
465
|
+
`,
|
|
466
|
+
variables: {
|
|
467
|
+
worksheetNo: this._worksheetNo,
|
|
468
|
+
cycleCountWorksheetDetails: this._getCycleCountWSD()
|
|
469
|
+
}
|
|
468
470
|
})
|
|
469
471
|
|
|
470
472
|
if (!response.errors) {
|