@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 '@things-factory/grist-ui'
|
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
5
|
import { getRenderer } from '@things-factory/grist-ui'
|
|
6
6
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
7
|
-
import {
|
|
7
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
8
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
9
9
|
import gql from 'graphql-tag'
|
|
10
10
|
import { css, html } from 'lit-element'
|
|
@@ -367,10 +367,8 @@ class WorksheetLoading extends localize(i18next)(PageView) {
|
|
|
367
367
|
if (!this._worksheetNo) return
|
|
368
368
|
const response = await client.query({
|
|
369
369
|
query: gql`
|
|
370
|
-
query {
|
|
371
|
-
worksheet(${
|
|
372
|
-
name: this._worksheetNo
|
|
373
|
-
})}) {
|
|
370
|
+
query worksheet($name: String!) {
|
|
371
|
+
worksheet(name: $name) {
|
|
374
372
|
status
|
|
375
373
|
releaseGood {
|
|
376
374
|
name
|
|
@@ -434,7 +432,10 @@ class WorksheetLoading extends localize(i18next)(PageView) {
|
|
|
434
432
|
}
|
|
435
433
|
}
|
|
436
434
|
}
|
|
437
|
-
|
|
435
|
+
`,
|
|
436
|
+
variables: {
|
|
437
|
+
name: this._worksheetNo
|
|
438
|
+
}
|
|
438
439
|
})
|
|
439
440
|
|
|
440
441
|
if (!response.errors) {
|
|
@@ -541,17 +542,18 @@ class WorksheetLoading extends localize(i18next)(PageView) {
|
|
|
541
542
|
return
|
|
542
543
|
}
|
|
543
544
|
|
|
544
|
-
const response = await client.
|
|
545
|
-
|
|
546
|
-
mutation {
|
|
547
|
-
activateLoading(${
|
|
548
|
-
worksheetNo: this._worksheetNo,
|
|
549
|
-
loadingWorksheetDetails: this._getLoadingWorksheetDetails()
|
|
550
|
-
})}) {
|
|
545
|
+
const response = await client.mutate({
|
|
546
|
+
mutation: gql`
|
|
547
|
+
mutation activateLoading($worksheetNo: String!, $loadingWorksheetDetails: [WorksheetDetailPatch]) {
|
|
548
|
+
activateLoading(worksheetNo: $worksheetNo, loadingWorksheetDetails: $loadingWorksheetDetails) {
|
|
551
549
|
name
|
|
552
550
|
}
|
|
553
551
|
}
|
|
554
|
-
|
|
552
|
+
`,
|
|
553
|
+
variables: {
|
|
554
|
+
worksheetNo: this._worksheetNo,
|
|
555
|
+
loadingWorksheetDetails: this._getLoadingWorksheetDetails()
|
|
556
|
+
}
|
|
555
557
|
})
|
|
556
558
|
if (!response.errors) {
|
|
557
559
|
this._showToast({ message: i18next.t('text.worksheet_activated') })
|
|
@@ -10,7 +10,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
10
10
|
import { openPopup } from '@things-factory/layout-base'
|
|
11
11
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
12
12
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
13
|
-
import {
|
|
13
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
14
14
|
|
|
15
15
|
import { MARKETPLACE_STATUS, WORKSHEET_STATUS } from '../constants'
|
|
16
16
|
|
|
@@ -298,10 +298,8 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
298
298
|
if (!this._worksheetNo) return
|
|
299
299
|
const response = await client.query({
|
|
300
300
|
query: gql`
|
|
301
|
-
query {
|
|
302
|
-
worksheet(${
|
|
303
|
-
name: this._worksheetNo
|
|
304
|
-
})}) {
|
|
301
|
+
query worksheet($name: String!) {
|
|
302
|
+
worksheet(name: $name) {
|
|
305
303
|
status
|
|
306
304
|
releaseGood {
|
|
307
305
|
name
|
|
@@ -384,7 +382,10 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
384
382
|
}
|
|
385
383
|
}
|
|
386
384
|
}
|
|
387
|
-
|
|
385
|
+
`,
|
|
386
|
+
variables: {
|
|
387
|
+
name: this._worksheetNo
|
|
388
|
+
}
|
|
388
389
|
})
|
|
389
390
|
|
|
390
391
|
if (!response.errors) {
|
|
@@ -486,16 +487,17 @@ class WorksheetPacking extends localize(i18next)(PageView) {
|
|
|
486
487
|
return
|
|
487
488
|
}
|
|
488
489
|
|
|
489
|
-
const response = await client.
|
|
490
|
-
|
|
491
|
-
mutation {
|
|
492
|
-
activatePacking(${
|
|
493
|
-
worksheetNo: this._worksheetNo
|
|
494
|
-
})}) {
|
|
490
|
+
const response = await client.mutate({
|
|
491
|
+
mutation: gql`
|
|
492
|
+
mutation activatePacking($worksheetNo: String!) {
|
|
493
|
+
activatePacking(worksheetNo: $worksheetNo) {
|
|
495
494
|
name
|
|
496
495
|
}
|
|
497
496
|
}
|
|
498
|
-
|
|
497
|
+
`,
|
|
498
|
+
variables: {
|
|
499
|
+
worksheetNo: this._worksheetNo
|
|
500
|
+
}
|
|
499
501
|
})
|
|
500
502
|
if (!response.errors) {
|
|
501
503
|
this._showToast({ message: i18next.t('text.worksheet_activated') })
|
|
@@ -7,8 +7,6 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { gqlBuilder } from '@things-factory/utils'
|
|
11
|
-
|
|
12
10
|
class ElcclDailyCollectionReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
11
|
static get styles() {
|
|
14
12
|
return css`
|
|
@@ -235,12 +233,8 @@ class ElcclDailyCollectionReport extends connect(store)(localize(i18next)(PageVi
|
|
|
235
233
|
var tzoffset = new Date().getTimezoneOffset() * 60
|
|
236
234
|
const response = await client.query({
|
|
237
235
|
query: gql`
|
|
238
|
-
query {
|
|
239
|
-
elcclDailyCollectionReport(${
|
|
240
|
-
filters: [...this.searchForm.queryFilters, { name: 'tzoffset', operator: 'custom', value: tzoffset }],
|
|
241
|
-
pagination: { page, limit },
|
|
242
|
-
sortings: sorters
|
|
243
|
-
})}) {
|
|
236
|
+
query elcclDailyCollectionReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
237
|
+
elcclDailyCollectionReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
244
238
|
arrival_notice_name
|
|
245
239
|
bizplace_name
|
|
246
240
|
ended_at
|
|
@@ -255,7 +249,12 @@ class ElcclDailyCollectionReport extends connect(store)(localize(i18next)(PageVi
|
|
|
255
249
|
delivery_summary
|
|
256
250
|
}
|
|
257
251
|
}
|
|
258
|
-
|
|
252
|
+
`,
|
|
253
|
+
variables: {
|
|
254
|
+
filters: [...this.searchForm.queryFilters, { name: 'tzoffset', operator: 'custom', value: tzoffset }],
|
|
255
|
+
pagination: { page, limit },
|
|
256
|
+
sortings: sorters
|
|
257
|
+
}
|
|
259
258
|
})
|
|
260
259
|
|
|
261
260
|
this.data = {
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject,
|
|
10
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class ElcclDailyOrderInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -261,33 +261,34 @@ class ElcclDailyOrderInventoryReport extends connect(store)(localize(i18next)(Pa
|
|
|
261
261
|
|
|
262
262
|
const response = await client.query({
|
|
263
263
|
query: gql`
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
})}) {
|
|
270
|
-
items{
|
|
271
|
-
bizplace {
|
|
272
|
-
name
|
|
273
|
-
}
|
|
274
|
-
bag
|
|
275
|
-
bagRunningTotal
|
|
276
|
-
basket
|
|
277
|
-
basketRunningTotal
|
|
278
|
-
carton
|
|
279
|
-
cartonRunningTotal
|
|
280
|
-
createdAt
|
|
281
|
-
doRefNo
|
|
282
|
-
orderNo
|
|
283
|
-
orderRefNo
|
|
284
|
-
pallet
|
|
285
|
-
palletRunningTotal
|
|
264
|
+
query elcclDailyOrderInventoryReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
265
|
+
elcclDailyOrderInventoryReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
266
|
+
items {
|
|
267
|
+
bizplace {
|
|
268
|
+
name
|
|
286
269
|
}
|
|
287
|
-
|
|
270
|
+
bag
|
|
271
|
+
bagRunningTotal
|
|
272
|
+
basket
|
|
273
|
+
basketRunningTotal
|
|
274
|
+
carton
|
|
275
|
+
cartonRunningTotal
|
|
276
|
+
createdAt
|
|
277
|
+
doRefNo
|
|
278
|
+
orderNo
|
|
279
|
+
orderRefNo
|
|
280
|
+
pallet
|
|
281
|
+
palletRunningTotal
|
|
288
282
|
}
|
|
283
|
+
total
|
|
289
284
|
}
|
|
290
|
-
|
|
285
|
+
}
|
|
286
|
+
`,
|
|
287
|
+
variables: {
|
|
288
|
+
filters: [...filter, { name: 'tzoffset', operator: 'custom', value: tzoffset }],
|
|
289
|
+
pagination: { page, limit },
|
|
290
|
+
sortings: sorters
|
|
291
|
+
}
|
|
291
292
|
})
|
|
292
293
|
return {
|
|
293
294
|
total: response.data.elcclDailyOrderInventoryReport.total,
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject,
|
|
10
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -229,12 +229,8 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
|
|
|
229
229
|
|
|
230
230
|
const response = await client.query({
|
|
231
231
|
query: gql`
|
|
232
|
-
query {
|
|
233
|
-
deliveryOrders(${
|
|
234
|
-
filters: [...filters],
|
|
235
|
-
pagination: { page, limit },
|
|
236
|
-
sortings: sorters
|
|
237
|
-
})}) {
|
|
232
|
+
query deliveryOrders($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
233
|
+
deliveryOrders(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
238
234
|
items {
|
|
239
235
|
id
|
|
240
236
|
name
|
|
@@ -246,7 +242,7 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
|
|
|
246
242
|
orderInventories {
|
|
247
243
|
inventory {
|
|
248
244
|
batchId
|
|
249
|
-
product{
|
|
245
|
+
product {
|
|
250
246
|
name
|
|
251
247
|
description
|
|
252
248
|
}
|
|
@@ -266,7 +262,12 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
|
|
|
266
262
|
total
|
|
267
263
|
}
|
|
268
264
|
}
|
|
269
|
-
|
|
265
|
+
`,
|
|
266
|
+
variables: {
|
|
267
|
+
filters: [...filters],
|
|
268
|
+
pagination: { page, limit },
|
|
269
|
+
sortings: sorters
|
|
270
|
+
}
|
|
270
271
|
})
|
|
271
272
|
|
|
272
273
|
if (!response.errors) {
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject
|
|
10
|
+
import { flattenObject } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class ElcclInventoryPalletDetailReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -242,12 +242,12 @@ class ElcclInventoryPalletDetailReport extends connect(store)(localize(i18next)(
|
|
|
242
242
|
|
|
243
243
|
const response = await client.query({
|
|
244
244
|
query: gql`
|
|
245
|
-
query
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
245
|
+
query elcclInventoryHistoryPalletDetailReport(
|
|
246
|
+
$filters: [Filter!]
|
|
247
|
+
$pagination: Pagination
|
|
248
|
+
$sortings: [Sorting!]
|
|
249
|
+
) {
|
|
250
|
+
elcclInventoryHistoryPalletDetailReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
251
251
|
bizplace {
|
|
252
252
|
name
|
|
253
253
|
description
|
|
@@ -266,7 +266,12 @@ class ElcclInventoryPalletDetailReport extends connect(store)(localize(i18next)(
|
|
|
266
266
|
containerSize
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
`,
|
|
270
|
+
variables: {
|
|
271
|
+
filters,
|
|
272
|
+
pagination: { page, limit },
|
|
273
|
+
sortings: sorters
|
|
274
|
+
}
|
|
270
275
|
})
|
|
271
276
|
|
|
272
277
|
this.data = {
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject
|
|
10
|
+
import { flattenObject } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -379,17 +379,18 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
379
379
|
} else {
|
|
380
380
|
const response = await client.query({
|
|
381
381
|
query: gql`
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
id
|
|
388
|
-
name
|
|
389
|
-
}
|
|
382
|
+
query productsByBizplace($filters: [Filter!]) {
|
|
383
|
+
productsByBizplace(filters: $filters) {
|
|
384
|
+
items {
|
|
385
|
+
id
|
|
386
|
+
name
|
|
390
387
|
}
|
|
391
388
|
}
|
|
392
|
-
|
|
389
|
+
}
|
|
390
|
+
`,
|
|
391
|
+
variables: {
|
|
392
|
+
filters: [...bizplace]
|
|
393
|
+
}
|
|
393
394
|
})
|
|
394
395
|
|
|
395
396
|
if (!response.errors) {
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject
|
|
10
|
+
import { flattenObject } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class InventoryPalletReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -196,16 +196,8 @@ class InventoryPalletReport extends connect(store)(localize(i18next)(PageView))
|
|
|
196
196
|
|
|
197
197
|
const response = await client.query({
|
|
198
198
|
query: gql`
|
|
199
|
-
query {
|
|
200
|
-
inventoryHistoryPalletReport(${
|
|
201
|
-
filters: [
|
|
202
|
-
...this.searchForm.queryFilters.map(filter => {
|
|
203
|
-
return filter
|
|
204
|
-
})
|
|
205
|
-
],
|
|
206
|
-
pagination: { page, limit },
|
|
207
|
-
sortings: sorters
|
|
208
|
-
})}) {
|
|
199
|
+
query inventoryHistoryPalletReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
200
|
+
inventoryHistoryPalletReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
209
201
|
bizplace {
|
|
210
202
|
name
|
|
211
203
|
description
|
|
@@ -220,7 +212,16 @@ class InventoryPalletReport extends connect(store)(localize(i18next)(PageView))
|
|
|
220
212
|
closingBalance
|
|
221
213
|
}
|
|
222
214
|
}
|
|
223
|
-
|
|
215
|
+
`,
|
|
216
|
+
variables: {
|
|
217
|
+
filters: [
|
|
218
|
+
...this.searchForm.queryFilters.map(filter => {
|
|
219
|
+
return filter
|
|
220
|
+
})
|
|
221
|
+
],
|
|
222
|
+
pagination: { page, limit },
|
|
223
|
+
sortings: sorters
|
|
224
|
+
}
|
|
224
225
|
})
|
|
225
226
|
return {
|
|
226
227
|
total: 0,
|
|
@@ -7,7 +7,7 @@ import { css, html } from 'lit-element'
|
|
|
7
7
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
8
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
9
9
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
10
|
-
import { flattenObject,
|
|
10
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class JobSheetList extends localize(i18next)(PageView) {
|
|
13
13
|
static get styles() {
|
|
@@ -244,12 +244,8 @@ class JobSheetList extends localize(i18next)(PageView) {
|
|
|
244
244
|
|
|
245
245
|
const response = await client.query({
|
|
246
246
|
query: gql`
|
|
247
|
-
query {
|
|
248
|
-
jobSheets(${
|
|
249
|
-
filters: await this.searchForm.getQueryFilters(),
|
|
250
|
-
pagination: { page, limit },
|
|
251
|
-
sortings: sorters
|
|
252
|
-
})}) {
|
|
247
|
+
query jobSheets($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
248
|
+
jobSheets(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
253
249
|
items {
|
|
254
250
|
name
|
|
255
251
|
description
|
|
@@ -270,7 +266,12 @@ class JobSheetList extends localize(i18next)(PageView) {
|
|
|
270
266
|
total
|
|
271
267
|
}
|
|
272
268
|
}
|
|
273
|
-
|
|
269
|
+
`,
|
|
270
|
+
variables: {
|
|
271
|
+
filters: await this.searchForm.getQueryFilters(),
|
|
272
|
+
pagination: { page, limit },
|
|
273
|
+
sortings: sorters
|
|
274
|
+
}
|
|
274
275
|
})
|
|
275
276
|
|
|
276
277
|
if (!response.errors) {
|
|
@@ -2,7 +2,6 @@ import { SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
|
2
2
|
import '@things-factory/grist-ui'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client } from '@things-factory/shell'
|
|
5
|
-
import { gqlBuilder } from '@things-factory/utils'
|
|
6
5
|
import gql from 'graphql-tag'
|
|
7
6
|
import { css, html, LitElement } from 'lit-element'
|
|
8
7
|
|
|
@@ -115,19 +114,20 @@ class JobSheetPopup extends localize(i18next)(LitElement) {
|
|
|
115
114
|
|
|
116
115
|
async _saveJobSheet() {
|
|
117
116
|
try {
|
|
118
|
-
const response = await client.
|
|
119
|
-
|
|
120
|
-
mutation {
|
|
121
|
-
updateJobSheet(${
|
|
122
|
-
name: this.jobSheetNo,
|
|
123
|
-
patch: { ...this._getJobSheetInfo() }
|
|
124
|
-
})}) {
|
|
117
|
+
const response = await client.mutate({
|
|
118
|
+
mutation: gql`
|
|
119
|
+
mutation updateJobSheet($name: String!, $patch: JobSheetPatch!) {
|
|
120
|
+
updateJobSheet(name: $name, patch: $patch) {
|
|
125
121
|
id
|
|
126
122
|
name
|
|
127
123
|
description
|
|
128
124
|
}
|
|
129
125
|
}
|
|
130
|
-
|
|
126
|
+
`,
|
|
127
|
+
variables: {
|
|
128
|
+
name: this.jobSheetNo,
|
|
129
|
+
patch: { ...this._getJobSheetInfo() }
|
|
130
|
+
}
|
|
131
131
|
})
|
|
132
132
|
|
|
133
133
|
if (!response.errors) {
|
|
@@ -2,7 +2,6 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
2
2
|
import { openPopup } from '@things-factory/layout-base'
|
|
3
3
|
import { client, navigate, PageView } from '@things-factory/shell'
|
|
4
4
|
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
5
|
-
import { gqlBuilder } from '@things-factory/utils'
|
|
6
5
|
import gql from 'graphql-tag'
|
|
7
6
|
import { css, html } from 'lit-element'
|
|
8
7
|
import './job-sheet-popup'
|
|
@@ -86,10 +85,8 @@ class JobSheetReport extends localize(i18next)(PageView) {
|
|
|
86
85
|
async _fetchJobSheet(arrivalNoticeRefNo) {
|
|
87
86
|
const response = await client.query({
|
|
88
87
|
query: gql`
|
|
89
|
-
query {
|
|
90
|
-
jobSheet(${
|
|
91
|
-
arrivalNoticeRefNo
|
|
92
|
-
})}) {
|
|
88
|
+
query jobSheet($arrivalNoticeRefNo: String!) {
|
|
89
|
+
jobSheet(arrivalNoticeRefNo: $arrivalNoticeRefNo) {
|
|
93
90
|
name
|
|
94
91
|
containerSize
|
|
95
92
|
containerMtDate
|
|
@@ -102,7 +99,10 @@ class JobSheetReport extends localize(i18next)(PageView) {
|
|
|
102
99
|
ata
|
|
103
100
|
}
|
|
104
101
|
}
|
|
105
|
-
|
|
102
|
+
`,
|
|
103
|
+
variables: {
|
|
104
|
+
arrivalNoticeRefNo
|
|
105
|
+
}
|
|
106
106
|
})
|
|
107
107
|
|
|
108
108
|
if (!response.errors) {
|
|
@@ -2,8 +2,9 @@ import '@things-factory/form-ui'
|
|
|
2
2
|
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
|
+
import { CommonButtonStyles } from '@things-factory/styles'
|
|
5
6
|
import { client, PageView } from '@things-factory/shell'
|
|
6
|
-
import {
|
|
7
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
7
8
|
import gql from 'graphql-tag'
|
|
8
9
|
import { css, html } from 'lit-element'
|
|
9
10
|
import { LOCATION_SORTING_RULE } from '../constants'
|
|
@@ -75,11 +76,13 @@ class LocationSortingRule extends localize(i18next)(PageView) {
|
|
|
75
76
|
actions: [
|
|
76
77
|
{
|
|
77
78
|
title: i18next.t('button.preview'),
|
|
78
|
-
action: this._getPreviewData.bind(this)
|
|
79
|
+
action: this._getPreviewData.bind(this),
|
|
80
|
+
...CommonButtonStyles.preview
|
|
79
81
|
},
|
|
80
82
|
{
|
|
81
83
|
title: i18next.t('button.reset'),
|
|
82
|
-
action: this._resetRule.bind(this)
|
|
84
|
+
action: this._resetRule.bind(this),
|
|
85
|
+
...CommonButtonStyles.refresh
|
|
83
86
|
},
|
|
84
87
|
{
|
|
85
88
|
title: i18next.t('button.save'),
|
|
@@ -109,7 +112,7 @@ class LocationSortingRule extends localize(i18next)(PageView) {
|
|
|
109
112
|
<option value=""></option>
|
|
110
113
|
${this._locationColumns
|
|
111
114
|
.filter(column => Object.keys(this.sortingRule).indexOf(column.value) < 0)
|
|
112
|
-
.map(column => html` <option value="${column.value}">${i18next.t(
|
|
115
|
+
.map(column => html` <option value="${column.value}">${i18next.t(`${column.name}`)}</option> `)}
|
|
113
116
|
</select>
|
|
114
117
|
</fieldset>
|
|
115
118
|
</form>
|
|
@@ -126,7 +129,7 @@ class LocationSortingRule extends localize(i18next)(PageView) {
|
|
|
126
129
|
${this._orderTypes.map(
|
|
127
130
|
orderType => html`
|
|
128
131
|
<option value="${orderType.value}" ?selected="${this.sortingRule[key] === orderType.value}">
|
|
129
|
-
${orderType.name}
|
|
132
|
+
${i18next.t(`${orderType.name}`)}
|
|
130
133
|
</option>
|
|
131
134
|
`
|
|
132
135
|
)}
|
|
@@ -164,15 +167,16 @@ class LocationSortingRule extends localize(i18next)(PageView) {
|
|
|
164
167
|
async _getCurrentSortingRule() {
|
|
165
168
|
const response = await client.query({
|
|
166
169
|
query: gql`
|
|
167
|
-
query {
|
|
168
|
-
setting(${
|
|
169
|
-
name: LOC_SORTING_RULE_SETTING_KEY
|
|
170
|
-
})}) {
|
|
170
|
+
query setting($name: String!) {
|
|
171
|
+
setting(name: $name) {
|
|
171
172
|
id
|
|
172
173
|
value
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
|
-
|
|
176
|
+
`,
|
|
177
|
+
variables: {
|
|
178
|
+
name: LOC_SORTING_RULE_SETTING_KEY
|
|
179
|
+
}
|
|
176
180
|
})
|
|
177
181
|
|
|
178
182
|
if (!response.errors) {
|
|
@@ -229,23 +233,24 @@ class LocationSortingRule extends localize(i18next)(PageView) {
|
|
|
229
233
|
|
|
230
234
|
const response = await client.query({
|
|
231
235
|
query: gql`
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
row
|
|
243
|
-
column
|
|
244
|
-
shelf
|
|
236
|
+
query locations($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
237
|
+
locations(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
238
|
+
items {
|
|
239
|
+
name
|
|
240
|
+
type
|
|
241
|
+
zone
|
|
242
|
+
row
|
|
243
|
+
column
|
|
244
|
+
shelf
|
|
245
|
+
}
|
|
245
246
|
}
|
|
246
247
|
}
|
|
248
|
+
`,
|
|
249
|
+
variables: {
|
|
250
|
+
filters: [],
|
|
251
|
+
pagination: { page: 1, limit: 100 },
|
|
252
|
+
sortings
|
|
247
253
|
}
|
|
248
|
-
`
|
|
249
254
|
})
|
|
250
255
|
|
|
251
256
|
if (!response.errors) {
|
|
@@ -262,36 +267,38 @@ class LocationSortingRule extends localize(i18next)(PageView) {
|
|
|
262
267
|
async _saveSetting() {
|
|
263
268
|
let response = null
|
|
264
269
|
if (!this.settingId) {
|
|
265
|
-
response = await client.
|
|
266
|
-
|
|
267
|
-
mutation {
|
|
268
|
-
createSetting(${
|
|
269
|
-
setting: {
|
|
270
|
-
name: LOC_SORTING_RULE_SETTING_KEY,
|
|
271
|
-
category: 'location',
|
|
272
|
-
description: 'location sorting rules',
|
|
273
|
-
value: JSON.stringify(this.sortingRule)
|
|
274
|
-
}
|
|
275
|
-
})}) {
|
|
270
|
+
response = await client.mutate({
|
|
271
|
+
mutation: gql`
|
|
272
|
+
mutation createSetting($setting: NewSetting!) {
|
|
273
|
+
createSetting(setting: $setting) {
|
|
276
274
|
value
|
|
277
275
|
}
|
|
278
276
|
}
|
|
279
|
-
|
|
277
|
+
`,
|
|
278
|
+
variables: {
|
|
279
|
+
setting: {
|
|
280
|
+
name: LOC_SORTING_RULE_SETTING_KEY,
|
|
281
|
+
category: 'location',
|
|
282
|
+
description: 'location sorting rules',
|
|
283
|
+
value: JSON.stringify(this.sortingRule)
|
|
284
|
+
}
|
|
285
|
+
}
|
|
280
286
|
})
|
|
281
287
|
} else {
|
|
282
|
-
response = await client.
|
|
283
|
-
|
|
284
|
-
mutation {
|
|
285
|
-
updateSetting(${
|
|
286
|
-
name: LOC_SORTING_RULE_SETTING_KEY,
|
|
287
|
-
patch: {
|
|
288
|
-
value: JSON.stringify(this.sortingRule)
|
|
289
|
-
}
|
|
290
|
-
})}) {
|
|
288
|
+
response = await client.mutate({
|
|
289
|
+
mutation: gql`
|
|
290
|
+
mutation updateSetting($name: String!, $patch: SettingPatch!) {
|
|
291
|
+
updateSetting(name: $name, patch: $patch) {
|
|
291
292
|
value
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
|
-
|
|
295
|
+
`,
|
|
296
|
+
variables: {
|
|
297
|
+
name: LOC_SORTING_RULE_SETTING_KEY,
|
|
298
|
+
patch: {
|
|
299
|
+
value: JSON.stringify(this.sortingRule)
|
|
300
|
+
}
|
|
301
|
+
}
|
|
295
302
|
})
|
|
296
303
|
}
|
|
297
304
|
|