@things-factory/operato-wms 4.3.113-alpha.0 → 4.3.114
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/pages/bulk-operation/bulk-operation.js +3 -23
- package/client/pages/components/select-inventory-popup.js +1 -7
- package/client/pages/components/select-product-popup.js +2 -31
- package/client/pages/inbound/undo-putaway-popup.js +9 -5
- package/client/pages/inbound/undo-unload-popup.js +24 -19
- package/client/pages/inbound/unload-product.js +67 -72
- package/client/pages/inventory/inventory-adjustment-approval.js +5 -4
- package/client/pages/inventory/inventory-adjustment.js +0 -7
- package/client/pages/inventory-check/check-inventory-popup.js +1 -4
- package/client/pages/inventory-check/create-cycle-count.js +3 -2
- package/client/pages/inventory-check/cycle-count-report.js +32 -19
- package/client/pages/inventory-check/inspecting-product.js +14 -30
- package/client/pages/inventory-check/inventory-check-list.js +0 -2
- package/client/pages/manifest/loading-manifest-detail.js +4 -7
- package/client/pages/master/generate-location-list.js +22 -30
- package/client/pages/master/location-list.js +71 -134
- package/client/pages/master/pallet-list.js +58 -137
- package/client/pages/master/product/product-details-popup.js +3 -3
- package/client/pages/master/tote-list.js +27 -40
- package/client/pages/master/transport-driver.js +41 -50
- package/client/pages/master/transport-vehicle.js +41 -45
- package/client/pages/master/warehouse-list.js +34 -56
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +25 -36
- package/client/pages/order/arrival-notice/create-arrival-notice.js +32 -53
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +0 -2
- package/client/pages/order/arrival-notice/edit-product-popup.js +7 -9
- package/client/pages/order/draft-release-good/draft-release-good-detail.js +2 -39
- package/client/pages/order/goods-received-note/received-note-list.js +32 -9
- package/client/pages/order/release-order/create-release-order.js +5 -22
- package/client/pages/order/release-order/release-extra-product-popup.js +1 -4
- package/client/pages/order/release-order/release-order-detail.js +0 -24
- package/client/pages/order/return-order/create-return-order.js +0 -5
- package/client/pages/order/return-order/return-order-inventory-popup.js +0 -1
- package/client/pages/order/transport-order/delivery-order-list.js +0 -26
- package/client/pages/outbound/inventory-reassign-popup.js +0 -6
- package/client/pages/outbound/packing-product.js +5 -5
- package/client/pages/outbound/packing-worksheet-list.js +1 -3
- package/client/pages/outbound/picking-product.js +7 -22
- package/client/pages/outbound/show-my-worksheet-list-popup.js +3 -12
- package/client/pages/outbound/show-ro-list-popup.js +0 -2
- package/client/pages/outbound/sorting-product.js +0 -6
- package/client/pages/report/custom-elccl/elccl-daily-collection-report.js +2 -5
- package/client/pages/report/custom-elccl/elccl-daily-order-inventory-report.js +2 -2
- package/client/pages/report/custom-elccl/elccl-delivery-order-summary.js +8 -48
- package/client/pages/vas/print-product-label.js +11 -13
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +5 -4
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
- package/dist-server/graphql/resolvers/other/add-release-good-products.js +11 -7
- package/dist-server/graphql/resolvers/other/add-release-good-products.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/costing-report.js +24 -18
- package/dist-server/graphql/resolvers/reports/costing-report.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +6 -6
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +6 -5
- package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/release-inventory-report.js +3 -3
- package/dist-server/graphql/resolvers/reports/release-inventory-report.js.map +1 -1
- package/package.json +50 -50
- package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +5 -4
- package/server/graphql/resolvers/other/add-release-good-products.ts +12 -8
- package/server/graphql/resolvers/reports/costing-report.ts +24 -18
- package/server/graphql/resolvers/reports/inbound-order-details-report.ts +6 -6
- package/server/graphql/resolvers/reports/outbound-order-details-report.ts +6 -5
- package/server/graphql/resolvers/reports/release-inventory-report.ts +4 -6
- package/translations/en.json +5 -18
- package/translations/ko.json +4 -17
- package/translations/ms.json +4 -17
- package/translations/zh.json +4 -17
- package/config.development.js +0 -110
|
@@ -56,7 +56,6 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
56
56
|
height: var(--button-container-button-height);
|
|
57
57
|
border: var(--button-container-button-border);
|
|
58
58
|
margin: var(--button-container-button-margin);
|
|
59
|
-
|
|
60
59
|
padding: var(--button-padding);
|
|
61
60
|
color: var(--theme-white-color);
|
|
62
61
|
font: var(--button-font);
|
|
@@ -109,12 +108,10 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
109
108
|
<legend>${i18next.t('title.scan_area')}</legend>
|
|
110
109
|
<label>${i18next.t('label.lot_id')}</label>
|
|
111
110
|
<barcode-scanable-input name="palletId" custom-input></barcode-scanable-input>
|
|
112
|
-
|
|
113
111
|
<label>${i18next.t('label.current_location')}</label>
|
|
114
112
|
<barcode-scanable-input name="location" custom-input></barcode-scanable-input>
|
|
115
113
|
</fieldset>
|
|
116
114
|
</form>
|
|
117
|
-
|
|
118
115
|
<div class="button-container">
|
|
119
116
|
<mwc-button raised @click="${this._checkPalletId}" label="${i18next.t('button.check')}"></mwc-button>
|
|
120
117
|
</div>
|
|
@@ -127,7 +124,7 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
127
124
|
|
|
128
125
|
async _checkPalletId() {
|
|
129
126
|
try {
|
|
130
|
-
|
|
127
|
+
this._validateInput()
|
|
131
128
|
|
|
132
129
|
const isInventoryOwner = await this._checkInventoryOwnership(this.palletIdInput.value, this.bizplaceName)
|
|
133
130
|
if (!isInventoryOwner)
|
|
@@ -166,7 +166,6 @@ class CreateCycleCount extends localize(i18next)(PageView) {
|
|
|
166
166
|
descriptionField: 'productName',
|
|
167
167
|
select: [
|
|
168
168
|
{ name: 'productId', hidden: true },
|
|
169
|
-
{ name: 'productDetailId', hidden: true },
|
|
170
169
|
{ name: 'remainUomValue', hidden: true },
|
|
171
170
|
{ name: 'uom', hidden: true },
|
|
172
171
|
{ name: 'batchId', header: i18next.t('field.batch_id') },
|
|
@@ -554,7 +553,9 @@ class CreateCycleCount extends localize(i18next)(PageView) {
|
|
|
554
553
|
return {
|
|
555
554
|
batchId: itm.batchId,
|
|
556
555
|
batchIdRef: itm.batchIdRef,
|
|
557
|
-
|
|
556
|
+
packingSize: itm.packingSize,
|
|
557
|
+
packingType: itm.packingType,
|
|
558
|
+
productId: itm.productId
|
|
558
559
|
}
|
|
559
560
|
}) || []
|
|
560
561
|
|
|
@@ -62,14 +62,12 @@ class CycleCountReport extends localize(i18next)(PageView) {
|
|
|
62
62
|
font: var(--grist-title-font);
|
|
63
63
|
color: var(--secondary-color);
|
|
64
64
|
}
|
|
65
|
-
|
|
66
65
|
.grist h2 mwc-icon {
|
|
67
66
|
vertical-align: middle;
|
|
68
67
|
margin: var(--grist-title-icon-margin);
|
|
69
68
|
font-size: var(--grist-title-icon-size);
|
|
70
69
|
color: var(--grist-title-icon-color);
|
|
71
70
|
}
|
|
72
|
-
|
|
73
71
|
h2 + data-grist {
|
|
74
72
|
padding-top: var(--grist-title-with-grid-padding);
|
|
75
73
|
}
|
|
@@ -87,18 +85,20 @@ class CycleCountReport extends localize(i18next)(PageView) {
|
|
|
87
85
|
]
|
|
88
86
|
|
|
89
87
|
if (this._reportStatus === ORDER_STATUS.PENDING_REVIEW.value) {
|
|
90
|
-
|
|
91
|
-
title: i18next.t('button.adjust_inventory'),
|
|
92
|
-
action: this._adjustInventory.bind(this),
|
|
93
|
-
...CommonButtonStyles.edit
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
if (this.cycleCountType === WORKSHEET_TYPE.CYCLE_COUNT.value) {
|
|
88
|
+
if (this.isUserBelongsDomain) {
|
|
97
89
|
actions.push({
|
|
98
|
-
title: i18next.t('button.
|
|
99
|
-
action: this.
|
|
100
|
-
...CommonButtonStyles.
|
|
90
|
+
title: i18next.t('button.adjust_inventory'),
|
|
91
|
+
action: this._adjustInventory.bind(this),
|
|
92
|
+
...CommonButtonStyles.edit
|
|
101
93
|
})
|
|
94
|
+
|
|
95
|
+
if (this.cycleCountType === WORKSHEET_TYPE.CYCLE_COUNT.value) {
|
|
96
|
+
actions.push({
|
|
97
|
+
title: i18next.t('button.reject'),
|
|
98
|
+
action: this.openCycleCountRecheckPopup.bind(this),
|
|
99
|
+
...CommonButtonStyles.reject
|
|
100
|
+
})
|
|
101
|
+
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -125,16 +125,12 @@ class CycleCountReport extends localize(i18next)(PageView) {
|
|
|
125
125
|
<legend>${i18next.t('title.cycle_count')}</legend>
|
|
126
126
|
<label>${i18next.t('label.company')}</label>
|
|
127
127
|
<input name="bizplace" readonly />
|
|
128
|
-
|
|
129
128
|
<label>${i18next.t('label.cycle_count_no')}</label>
|
|
130
129
|
<input name="cycleCountNo" readonly />
|
|
131
|
-
|
|
132
130
|
<label>${i18next.t('label.execute_date')}</label>
|
|
133
131
|
<input name="executionDate" readonly />
|
|
134
|
-
|
|
135
132
|
<label>${i18next.t('label.inventory_accuracy')}</label>
|
|
136
133
|
<input name="inventoryAccuracy" value="${this.inventoryAccuracy ? this.inventoryAccuracy : ''}" readonly />
|
|
137
|
-
|
|
138
134
|
<label>${i18next.t('label.status')}</label>
|
|
139
135
|
<select name="status" disabled>
|
|
140
136
|
${Object.keys(ORDER_STATUS).map(
|
|
@@ -146,10 +142,8 @@ class CycleCountReport extends localize(i18next)(PageView) {
|
|
|
146
142
|
</fieldset>
|
|
147
143
|
</form>
|
|
148
144
|
</div>
|
|
149
|
-
|
|
150
145
|
<div class="grist">
|
|
151
146
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.inventory')}</h2>
|
|
152
|
-
|
|
153
147
|
<data-grist
|
|
154
148
|
id="grist"
|
|
155
149
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
@@ -171,7 +165,8 @@ class CycleCountReport extends localize(i18next)(PageView) {
|
|
|
171
165
|
}
|
|
172
166
|
}
|
|
173
167
|
|
|
174
|
-
pageInitialized() {
|
|
168
|
+
async pageInitialized() {
|
|
169
|
+
this.isUserBelongsDomain = await this._checkUserBelongsDomain()
|
|
175
170
|
this.config = {
|
|
176
171
|
rows: {
|
|
177
172
|
appendable: false,
|
|
@@ -577,6 +572,24 @@ class CycleCountReport extends localize(i18next)(PageView) {
|
|
|
577
572
|
)
|
|
578
573
|
}
|
|
579
574
|
|
|
575
|
+
async _checkUserBelongsDomain() {
|
|
576
|
+
try {
|
|
577
|
+
const response = await client.query({
|
|
578
|
+
query: gql`
|
|
579
|
+
query {
|
|
580
|
+
checkUserBelongsDomain
|
|
581
|
+
}
|
|
582
|
+
`
|
|
583
|
+
})
|
|
584
|
+
|
|
585
|
+
if (!response.errors) {
|
|
586
|
+
return response.data.checkUserBelongsDomain
|
|
587
|
+
}
|
|
588
|
+
} catch (e) {
|
|
589
|
+
this._showToast(e)
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
580
593
|
async _exportableData() {
|
|
581
594
|
try {
|
|
582
595
|
let data = []
|
|
@@ -61,14 +61,12 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
61
61
|
flex: 1;
|
|
62
62
|
overflow: auto;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
64
|
.left-column {
|
|
66
65
|
flex: 1;
|
|
67
66
|
overflow: auto;
|
|
68
67
|
display: flex;
|
|
69
68
|
flex-direction: column;
|
|
70
69
|
}
|
|
71
|
-
|
|
72
70
|
.right-column {
|
|
73
71
|
flex: 1;
|
|
74
72
|
overflow: auto;
|
|
@@ -93,14 +91,12 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
93
91
|
font: var(--grist-title-font);
|
|
94
92
|
color: var(--secondary-color);
|
|
95
93
|
}
|
|
96
|
-
|
|
97
94
|
.grist h2 mwc-icon {
|
|
98
95
|
vertical-align: middle;
|
|
99
96
|
margin: var(--grist-title-icon-margin);
|
|
100
97
|
font-size: var(--grist-title-icon-size);
|
|
101
98
|
color: var(--grist-title-icon-color);
|
|
102
99
|
}
|
|
103
|
-
|
|
104
100
|
h2 + data-grist {
|
|
105
101
|
padding-top: var(--grist-title-with-grid-padding);
|
|
106
102
|
}
|
|
@@ -130,20 +126,16 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
130
126
|
}}"
|
|
131
127
|
></barcode-scanable-input>
|
|
132
128
|
</fieldset>
|
|
133
|
-
|
|
134
129
|
<fieldset>
|
|
135
130
|
<legend>
|
|
136
131
|
${`${i18next.t('title.inventory_inspection')} ${`: ${this.cycleCountNo ? this.cycleCountNo : ''}`}`}
|
|
137
132
|
</legend>
|
|
138
|
-
|
|
139
133
|
<label>${i18next.t('label.company')}</label>
|
|
140
134
|
<input name="bizplace" readonly />
|
|
141
|
-
|
|
142
135
|
<label>${i18next.t('label.started_at')}</label>
|
|
143
136
|
<input name="startedAt" type="datetime-local" readonly />
|
|
144
137
|
</fieldset>
|
|
145
138
|
</form>
|
|
146
|
-
|
|
147
139
|
<div class="grist">
|
|
148
140
|
<div class="left-column">
|
|
149
141
|
<form id="condition-form" class="multi-column-form" @change="${this.fillUpGrist.bind(this)}">
|
|
@@ -157,19 +149,16 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
157
149
|
<option></option>
|
|
158
150
|
${this.warehouses.map(warehouse => html` <option>${warehouse}</option> `)}
|
|
159
151
|
</select>
|
|
160
|
-
|
|
161
152
|
<label>${i18next.t('field.zone')}</label>
|
|
162
153
|
<select name="zone" .disabled="${!this.formattedLocations?.length}">
|
|
163
154
|
<option></option>
|
|
164
155
|
${this.zones.map(zone => html`<option>${zone}</option>`)}
|
|
165
156
|
</select>
|
|
166
|
-
|
|
167
157
|
<label>${i18next.t('field.row')}</label>
|
|
168
158
|
<select name="row" .disabled="${!this.formattedLocations?.length}">
|
|
169
159
|
<option selected></option>
|
|
170
160
|
${this.rows.map(row => html`<option ?selected="${row === this.selectedRow}">${row}</option>`)}
|
|
171
161
|
</select>
|
|
172
|
-
|
|
173
162
|
<label>${i18next.t('field.column')}</label>
|
|
174
163
|
<select name="column" .disabled="${!this.formattedLocations?.length}">
|
|
175
164
|
<option selected></option>
|
|
@@ -179,7 +168,6 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
179
168
|
</select>
|
|
180
169
|
</fieldset>
|
|
181
170
|
</form>
|
|
182
|
-
|
|
183
171
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.location')}</h2>
|
|
184
172
|
<data-grist
|
|
185
173
|
id="location-grist"
|
|
@@ -187,7 +175,6 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
187
175
|
.config="${this.locationConfig}"
|
|
188
176
|
.data="${this.locationData}"
|
|
189
177
|
></data-grist>
|
|
190
|
-
|
|
191
178
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.inventories')}</h2>
|
|
192
179
|
<data-grist
|
|
193
180
|
id="inventory-grist"
|
|
@@ -196,7 +183,6 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
196
183
|
.data="${this.inventoryData}"
|
|
197
184
|
></data-grist>
|
|
198
185
|
</div>
|
|
199
|
-
|
|
200
186
|
<div class="right-column">
|
|
201
187
|
<h2><mwc-icon>list_alt</mwc-icon>${i18next.t('title.missing_pallets')}</h2>
|
|
202
188
|
<data-grist
|
|
@@ -205,7 +191,6 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
205
191
|
.config="${this.missingInventoryConfig}"
|
|
206
192
|
.data="${this.missingInventoryData}"
|
|
207
193
|
></data-grist>
|
|
208
|
-
|
|
209
194
|
<div id="input-form-container">
|
|
210
195
|
<form
|
|
211
196
|
id="input-form"
|
|
@@ -226,15 +211,12 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
226
211
|
${this.selectedInventory?.productName ? this.selectedInventory.productName : ''}
|
|
227
212
|
(${this.selectedInventory?.productDescription ? this.selectedInventory.productDescription : ''})
|
|
228
213
|
</legend>
|
|
229
|
-
|
|
230
214
|
<label>${i18next.t('field.lot_id')}</label>
|
|
231
215
|
${this.viewType === VIEW_TYPE.INVENTORY_SELECTED || this.viewType === VIEW_TYPE.MISSING_PALLET_SELECTED
|
|
232
216
|
? html` <input name="palletId" readonly .value="${this.selectedInventory?.palletId || ''}" /> `
|
|
233
217
|
: html` <barcode-scanable-input name="palletId" custom-input></barcode-scanable-input>`}
|
|
234
|
-
|
|
235
218
|
<label>${i18next.t('label.inspected_batch_no')}</label>
|
|
236
219
|
<input name="inspectedBatchNo" .value="${this.selectedInventory?.batchId || ''}" />
|
|
237
|
-
|
|
238
220
|
<label>${i18next.t('label.inspected_qty')}</label>
|
|
239
221
|
<input
|
|
240
222
|
name="inspectedQty"
|
|
@@ -243,7 +225,6 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
243
225
|
? this.selectedInventory?.inspectedQty || ''
|
|
244
226
|
: this.selectedInventory?.inspectedQty || this.selectedInventory?.qty || ''}"
|
|
245
227
|
/>
|
|
246
|
-
|
|
247
228
|
<label>${i18next.t('label.inspected_uom_value')}</label>
|
|
248
229
|
<input
|
|
249
230
|
name="inspectedUomValue"
|
|
@@ -253,10 +234,8 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
253
234
|
? this.selectedInventory?.inspectedUomValue || ''
|
|
254
235
|
: this.selectedInventory?.inspectedUomValue || this.selectedInventory?.uomValue || ''}"
|
|
255
236
|
/>
|
|
256
|
-
|
|
257
237
|
<label>${i18next.t('label.uom')}</label>
|
|
258
238
|
<input name="uom" .value="${this.selectedInventory?.uom || ''}" readonly />
|
|
259
|
-
|
|
260
239
|
<label>${i18next.t('field.location')}</label>
|
|
261
240
|
${this.viewType === VIEW_TYPE.INVENTORY_SELECTED
|
|
262
241
|
? html` <input name="location" readonly .value="${this.selectedLocation?.name || ''}" /> `
|
|
@@ -280,6 +259,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
280
259
|
this.zones = []
|
|
281
260
|
this.rows = []
|
|
282
261
|
this.columns = []
|
|
262
|
+
this.selectedLocation = { records: [] }
|
|
283
263
|
}
|
|
284
264
|
|
|
285
265
|
get context() {
|
|
@@ -337,7 +317,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
337
317
|
// return this.renderRoot.querySelector('barcode-scanable-input[name=location]').renderRoot.querySelector('input')
|
|
338
318
|
// }
|
|
339
319
|
|
|
340
|
-
if (this.renderRoot
|
|
320
|
+
if (this.renderRoot?.querySelector('barcode-scanable-input[name=location]')) {
|
|
341
321
|
return this.renderRoot.querySelector('barcode-scanable-input[name=location]').renderRoot.querySelector('input')
|
|
342
322
|
} else {
|
|
343
323
|
return this.renderRoot.querySelector('input[name=location]')
|
|
@@ -407,6 +387,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
407
387
|
click: async (columns, data, column, record, rowIndex) => {
|
|
408
388
|
if (!this.selectedInventory?.id !== record.id) {
|
|
409
389
|
this.selectedInventory = record
|
|
390
|
+
this.locationInput.value = this.selectedLocation.name
|
|
410
391
|
this.viewType = VIEW_TYPE.INVENTORY_SELECTED
|
|
411
392
|
await this.checkOrderInventory()
|
|
412
393
|
this.updateContext(this.viewType)
|
|
@@ -839,7 +820,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
839
820
|
|
|
840
821
|
async addExtraPallet() {
|
|
841
822
|
try {
|
|
842
|
-
|
|
823
|
+
this.checkInputFormValidity()
|
|
843
824
|
|
|
844
825
|
const palletId = this.palletIdInput.value
|
|
845
826
|
|
|
@@ -1210,6 +1191,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1210
1191
|
if (!response.errors) {
|
|
1211
1192
|
await this.fetchCycleCountWorksheet()
|
|
1212
1193
|
this.renewInventoryGrist()
|
|
1194
|
+
this.resetInput()
|
|
1213
1195
|
}
|
|
1214
1196
|
} catch (e) {
|
|
1215
1197
|
this.showToast(e)
|
|
@@ -1366,14 +1348,16 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1366
1348
|
throw new Error(i18next.t('text.x_should_be_positive', { state: { x: i18next.t('field.inspected_uom_value') } }))
|
|
1367
1349
|
}
|
|
1368
1350
|
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
} else {
|
|
1374
|
-
const locationExist = await this.validateLocation(locationName)
|
|
1375
|
-
if (!locationExist) {
|
|
1351
|
+
if (this.locationInput) {
|
|
1352
|
+
const locationName = this.locationInput?.value
|
|
1353
|
+
if (!locationName) {
|
|
1354
|
+
this.selectOnInput(this.locationInput)
|
|
1376
1355
|
throw new Error(i18next.t('text.invalid_x', { state: { x: i18next.t('label.location') } }))
|
|
1356
|
+
} else {
|
|
1357
|
+
const locationExist = await this.validateLocation(locationName)
|
|
1358
|
+
if (!locationExist) {
|
|
1359
|
+
throw new Error(i18next.t('text.invalid_x', { state: { x: i18next.t('label.location') } }))
|
|
1360
|
+
}
|
|
1377
1361
|
}
|
|
1378
1362
|
}
|
|
1379
1363
|
}
|
|
@@ -25,7 +25,6 @@ class InventoryCheckList extends localize(i18next)(PageView) {
|
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
28
|
search-form {
|
|
30
29
|
overflow: visible;
|
|
31
30
|
}
|
|
@@ -48,7 +47,6 @@ class InventoryCheckList extends localize(i18next)(PageView) {
|
|
|
48
47
|
render() {
|
|
49
48
|
return html`
|
|
50
49
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
51
|
-
|
|
52
50
|
<data-grist
|
|
53
51
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
54
52
|
.config=${this.config}
|
|
@@ -503,10 +503,10 @@ class LoadingManifestDetail extends localize(i18next)(PageView) {
|
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
async _validateOrderStatus() {
|
|
506
|
-
let foundCancelOrder = this.shippingData.records.
|
|
507
|
-
itm => itm.orderStatus == ORDER_STATUS.PENDING_CANCEL
|
|
506
|
+
let foundCancelOrder = this.shippingData.records.filter(
|
|
507
|
+
itm => itm.orderStatus == ORDER_STATUS.PENDING_CANCEL || itm.orderStatus == ORDER_STATUS.CANCELLED
|
|
508
508
|
)
|
|
509
|
-
if (foundCancelOrder) {
|
|
509
|
+
if (foundCancelOrder?.length > 0) {
|
|
510
510
|
const answer = await CustomAlert({
|
|
511
511
|
title: i18next.t('title.do_you_wish_to_proceed'),
|
|
512
512
|
text: i18next.t('text.parcels_are_found_with_cancelled_or_pending_cancelled_status'),
|
|
@@ -543,10 +543,7 @@ class LoadingManifestDetail extends localize(i18next)(PageView) {
|
|
|
543
543
|
if (!response.error) {
|
|
544
544
|
let releaseGood = response.data.releaseGood
|
|
545
545
|
|
|
546
|
-
if (
|
|
547
|
-
releaseGood?.status === ORDER_STATUS.CANCELLED.value ||
|
|
548
|
-
releaseGood?.status === ORDER_STATUS.PENDING_CANCEL.value
|
|
549
|
-
) {
|
|
546
|
+
if (releaseGood?.status === ORDER_STATUS.CANCELLED || releaseGood?.status === ORDER_STATUS.PENDING_CANCEL) {
|
|
550
547
|
let answer = await CustomAlert({
|
|
551
548
|
type: 'warning',
|
|
552
549
|
title: i18next.t('title.order(s)_is_at_pending_cancelled_or_cancelled'),
|
|
@@ -6,7 +6,6 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
6
6
|
import { isMobileDevice } from '@things-factory/utils'
|
|
7
7
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
8
8
|
import { css, html, LitElement } from 'lit-element'
|
|
9
|
-
import { showToast } from '../../util'
|
|
10
9
|
|
|
11
10
|
export class GenerateLocationList extends localize(i18next)(LitElement) {
|
|
12
11
|
static get properties() {
|
|
@@ -338,46 +337,39 @@ export class GenerateLocationList extends localize(i18next)(LitElement) {
|
|
|
338
337
|
}
|
|
339
338
|
|
|
340
339
|
_validateGenerator() {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
let dataFromGrist = this.data.records
|
|
346
|
-
let validationError = false
|
|
347
|
-
for (let x = 1; x < dataFromGrist.length; x++) {
|
|
348
|
-
if (dataFromGrist[x].start <= dataFromGrist[x - 1].end) {
|
|
349
|
-
document.dispatchEvent(
|
|
350
|
-
new CustomEvent('notify', {
|
|
351
|
-
detail: {
|
|
352
|
-
level: 'error',
|
|
353
|
-
message: i18next.t('text.already_existed', {
|
|
354
|
-
state: {
|
|
355
|
-
text: dataFromGrist[x].start
|
|
356
|
-
}
|
|
357
|
-
})
|
|
358
|
-
}
|
|
359
|
-
})
|
|
360
|
-
)
|
|
361
|
-
validationError = true
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
if (this._zoneName === '') {
|
|
340
|
+
let dataFromGrist = this.data.records
|
|
341
|
+
let validationError = false
|
|
342
|
+
for (let x = 1; x < dataFromGrist.length; x++) {
|
|
343
|
+
if (dataFromGrist[x].start <= dataFromGrist[x - 1].end) {
|
|
366
344
|
document.dispatchEvent(
|
|
367
345
|
new CustomEvent('notify', {
|
|
368
346
|
detail: {
|
|
369
347
|
level: 'error',
|
|
370
|
-
message: i18next.t('text.
|
|
348
|
+
message: i18next.t('text.already_existed', {
|
|
349
|
+
state: {
|
|
350
|
+
text: dataFromGrist[x].start
|
|
351
|
+
}
|
|
352
|
+
})
|
|
371
353
|
}
|
|
372
354
|
})
|
|
373
355
|
)
|
|
374
356
|
validationError = true
|
|
375
357
|
}
|
|
358
|
+
}
|
|
376
359
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
360
|
+
if (this._zoneName === '') {
|
|
361
|
+
document.dispatchEvent(
|
|
362
|
+
new CustomEvent('notify', {
|
|
363
|
+
detail: {
|
|
364
|
+
level: 'error',
|
|
365
|
+
message: i18next.t('text.missing_zone_name')
|
|
366
|
+
}
|
|
367
|
+
})
|
|
368
|
+
)
|
|
369
|
+
validationError = true
|
|
380
370
|
}
|
|
371
|
+
|
|
372
|
+
if (!validationError) this._generateLocationList()
|
|
381
373
|
}
|
|
382
374
|
|
|
383
375
|
async _generateLocationList() {
|