@things-factory/operato-wms 4.0.8 → 4.0.12

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.
Files changed (162) hide show
  1. package/client/pages/adjustment/transfer-inventory.js +368 -165
  2. package/client/pages/billing/claim-chit/claim-chit-list.js +7 -6
  3. package/client/pages/bulk-operation/bulk-operation.js +316 -0
  4. package/client/pages/bulk-operation/validate-ro-popup.js +445 -0
  5. package/client/pages/components/select-product-popup.js +15 -2
  6. package/client/pages/constants/inventory.js +1 -0
  7. package/client/pages/constants/location.js +33 -6
  8. package/client/pages/constants/order.js +10 -0
  9. package/client/pages/constants/worksheet.js +2 -2
  10. package/client/pages/inbound/inbound-worksheet.js +78 -9
  11. package/client/pages/inbound/putaway-product.js +214 -139
  12. package/client/pages/inbound/putaway-worksheet-generate-popup.js +24 -2
  13. package/client/pages/inbound/unload-product.js +153 -61
  14. package/client/pages/inbound/worksheet-putaway-return.js +22 -5
  15. package/client/pages/inbound/worksheet-putaway.js +21 -8
  16. package/client/pages/inbound/worksheet-unloading-return.js +22 -5
  17. package/client/pages/inbound/worksheet-unloading.js +8 -0
  18. package/client/pages/inventory/inventory-adjustment-approval.js +11 -19
  19. package/client/pages/inventory/inventory-adjustment.js +88 -73
  20. package/client/pages/inventory/inventory-by-product-detail.js +3 -5
  21. package/client/pages/inventory/inventory-by-product.js +8 -0
  22. package/client/pages/inventory/inventory-history-by-pallet.js +12 -5
  23. package/client/pages/inventory/inventory-history.js +14 -5
  24. package/client/pages/inventory/onhand-inventory.js +11 -2
  25. package/client/pages/inventory-check/create-cycle-count.js +12 -6
  26. package/client/pages/inventory-check/cycle-count-report.js +8 -0
  27. package/client/pages/inventory-check/inspecting-product.js +146 -80
  28. package/client/pages/inventory-check/worksheet-cycle-count.js +14 -0
  29. package/client/pages/manifest/create-loading-manifest.js +314 -0
  30. package/client/pages/manifest/dispatcher-verification-popup.js +86 -0
  31. package/client/pages/manifest/loading-manifest-detail.js +345 -0
  32. package/client/pages/manifest/loading-manifest-list.js +305 -0
  33. package/client/pages/master/location-list.js +58 -17
  34. package/client/pages/master/product/product-detail-bizplace-setting-popup.js +2 -2
  35. package/client/pages/master/product/product-details-popup.js +2 -2
  36. package/client/pages/master/product/product-list.js +5 -5
  37. package/client/pages/order/arrival-notice/arrival-notice-detail.js +134 -115
  38. package/client/pages/order/arrival-notice/arrival-notice-list.js +87 -6
  39. package/client/pages/order/arrival-notice/arrival-notice-requests.js +83 -6
  40. package/client/pages/order/arrival-notice/assign-buffer-location.js +8 -1
  41. package/client/pages/order/arrival-notice/check-arrived-notice.js +9 -1
  42. package/client/pages/order/arrival-notice/create-arrival-notice.js +38 -3
  43. package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +290 -25
  44. package/client/pages/order/arrival-notice/edit-product-popup.js +36 -5
  45. package/client/pages/order/arrival-notice/receive-arrival-notice.js +8 -1
  46. package/client/pages/order/goods-received-note/received-note-list.js +138 -6
  47. package/client/pages/order/release-order/b2b/b2b-order-list.js +45 -5
  48. package/client/pages/order/release-order/b2b/b2b-order-requests.js +52 -12
  49. package/client/pages/order/release-order/b2c/b2c-order-requests.js +244 -24
  50. package/client/pages/order/release-order/bulk-print-packing-list.js +23 -0
  51. package/client/pages/order/release-order/create-release-order.js +55 -8
  52. package/client/pages/order/release-order/receive-release-order-request.js +35 -24
  53. package/client/pages/order/release-order/release-extra-product-popup.js +204 -63
  54. package/client/pages/order/release-order/release-order-detail.js +301 -74
  55. package/client/pages/order/return-order/check-return-order.js +9 -1
  56. package/client/pages/order/return-order/create-return-order.js +14 -2
  57. package/client/pages/order/return-order/receive-return-order-requests.js +9 -1
  58. package/client/pages/order/return-order/return-order-detail.js +15 -6
  59. package/client/pages/order/return-order/return-order-inventory-popup.js +7 -0
  60. package/client/pages/order/reverse-kitting-order/reverse-kitting-order-detail.js +115 -50
  61. package/client/pages/order/reverse-kitting-order/reverse-kitting-order-list.js +1 -6
  62. package/client/pages/order/reverse-kitting-order/reverse-kitting-pallet-label-popup.js +239 -0
  63. package/client/pages/order/transport-order/delivery-order-list.js +102 -59
  64. package/client/pages/outbound/inventory-assign-popup.js +23 -6
  65. package/client/pages/outbound/inventory-auto-assign-popup.js +22 -6
  66. package/client/pages/outbound/loading-product.js +4 -1
  67. package/client/pages/outbound/merged-outbound-worksheet.js +43 -1
  68. package/client/pages/outbound/packing-product.js +4 -1
  69. package/client/pages/outbound/packing-worksheet-list.js +39 -1
  70. package/client/pages/outbound/picking-product.js +803 -431
  71. package/client/pages/outbound/picking-replacement-popup.js +1 -1
  72. package/client/pages/outbound/serial-number-popup.js +280 -0
  73. package/client/pages/outbound/single-outbound-worksheet.js +47 -1
  74. package/client/pages/outbound/worksheet-batch-picking.js +22 -8
  75. package/client/pages/outbound/worksheet-loading.js +22 -5
  76. package/client/pages/outbound/worksheet-packing.js +8 -0
  77. package/client/pages/outbound/worksheet-picking.js +62 -8
  78. package/client/pages/outbound/worksheet-return.js +9 -1
  79. package/client/pages/outbound/worksheet-sorting.js +9 -1
  80. package/client/pages/report/custom-elccl/elccl-inventory-report.js +31 -30
  81. package/client/pages/report/custom-elccl/elccl-inventory-summary-report.js +23 -26
  82. package/client/pages/report/inventory-pallet-storage-report.js +11 -10
  83. package/client/pages/report/inventory-report.js +41 -43
  84. package/client/pages/report/inventory-summary-report.js +25 -28
  85. package/client/pages/report/product-label-report.js +401 -0
  86. package/client/pages/support/inventory-comparison.js +296 -0
  87. package/client/pages/vas/print-product-label.js +298 -132
  88. package/client/pages/vas/reverse-kitting/execute-reverse-kitting.js +32 -12
  89. package/client/pages/vas/reverse-kitting/popup-combination-sets.js +106 -10
  90. package/client/pages/vas/reverse-kitting/popup-reverse-kitting-template.js +130 -19
  91. package/client/pages/vas/vas-pallet-label-popup.js +5 -8
  92. package/client/route.js +28 -0
  93. package/config.development.js +73 -0
  94. package/config.production.js +113 -0
  95. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +1 -1
  96. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
  97. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.js +64 -54
  98. package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.js.map +1 -1
  99. package/dist-server/graphql/resolvers/extra/add-release-good-products.js +34 -9
  100. package/dist-server/graphql/resolvers/extra/add-release-good-products.js.map +1 -1
  101. package/dist-server/graphql/resolvers/index.js +5 -1
  102. package/dist-server/graphql/resolvers/index.js.map +1 -1
  103. package/dist-server/graphql/resolvers/inventory-comparison/index.js +6 -0
  104. package/dist-server/graphql/resolvers/inventory-comparison/index.js.map +1 -0
  105. package/dist-server/graphql/resolvers/inventory-comparison/inventory-comparison-list.js +78 -0
  106. package/dist-server/graphql/resolvers/inventory-comparison/inventory-comparison-list.js.map +1 -0
  107. package/dist-server/graphql/resolvers/reports/index.js +2 -1
  108. package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
  109. package/dist-server/graphql/resolvers/reports/product-label-report.js +56 -0
  110. package/dist-server/graphql/resolvers/reports/product-label-report.js.map +1 -0
  111. package/dist-server/graphql/resolvers/shipping-provider/index.js +6 -0
  112. package/dist-server/graphql/resolvers/shipping-provider/index.js.map +1 -0
  113. package/dist-server/graphql/resolvers/shipping-provider/shipping-providers.js +20 -0
  114. package/dist-server/graphql/resolvers/shipping-provider/shipping-providers.js.map +1 -0
  115. package/dist-server/graphql/types/custom/elccl/elccl-inventory-report.js +1 -1
  116. package/dist-server/graphql/types/index.js +8 -2
  117. package/dist-server/graphql/types/index.js.map +1 -1
  118. package/dist-server/graphql/types/inventory-comparison/index.js +13 -0
  119. package/dist-server/graphql/types/inventory-comparison/index.js.map +1 -0
  120. package/dist-server/graphql/types/inventory-comparison/inventory-comparison-list.js +14 -0
  121. package/dist-server/graphql/types/inventory-comparison/inventory-comparison-list.js.map +1 -0
  122. package/dist-server/graphql/types/inventory-comparison/inventory-comparison.js +18 -0
  123. package/dist-server/graphql/types/inventory-comparison/inventory-comparison.js.map +1 -0
  124. package/dist-server/graphql/types/reports/index.js +6 -1
  125. package/dist-server/graphql/types/reports/index.js.map +1 -1
  126. package/dist-server/graphql/types/reports/product-label-report-list.js +14 -0
  127. package/dist-server/graphql/types/reports/product-label-report-list.js.map +1 -0
  128. package/dist-server/graphql/types/reports/product-label-report.js +16 -0
  129. package/dist-server/graphql/types/reports/product-label-report.js.map +1 -0
  130. package/dist-server/graphql/types/shipping-provider/index.js +10 -0
  131. package/dist-server/graphql/types/shipping-provider/index.js.map +1 -0
  132. package/dist-server/graphql/types/shipping-provider/shipping-provider-list.js +13 -0
  133. package/dist-server/graphql/types/shipping-provider/shipping-provider-list.js.map +1 -0
  134. package/dist-server/graphql/types/shipping-provider/shipping-provider.js +13 -0
  135. package/dist-server/graphql/types/shipping-provider/shipping-provider.js.map +1 -0
  136. package/package.json +66 -66
  137. package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +4 -2
  138. package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.ts +75 -65
  139. package/server/graphql/resolvers/extra/add-release-good-products.ts +57 -15
  140. package/server/graphql/resolvers/index.ts +5 -1
  141. package/server/graphql/resolvers/inventory-comparison/index.ts +5 -0
  142. package/server/graphql/resolvers/inventory-comparison/inventory-comparison-list.ts +99 -0
  143. package/server/graphql/resolvers/reports/index.ts +3 -1
  144. package/server/graphql/resolvers/reports/product-label-report.ts +56 -0
  145. package/server/graphql/resolvers/shipping-provider/index.ts +5 -0
  146. package/server/graphql/resolvers/shipping-provider/shipping-providers.ts +20 -0
  147. package/server/graphql/types/custom/elccl/elccl-inventory-report.ts +1 -1
  148. package/server/graphql/types/index.ts +8 -2
  149. package/server/graphql/types/inventory-comparison/index.ts +11 -0
  150. package/server/graphql/types/inventory-comparison/inventory-comparison-list.ts +8 -0
  151. package/server/graphql/types/inventory-comparison/inventory-comparison.ts +12 -0
  152. package/server/graphql/types/reports/index.ts +6 -1
  153. package/server/graphql/types/reports/product-label-report-list.ts +8 -0
  154. package/server/graphql/types/reports/product-label-report.ts +10 -0
  155. package/server/graphql/types/shipping-provider/index.ts +8 -0
  156. package/server/graphql/types/shipping-provider/shipping-provider-list.ts +7 -0
  157. package/server/graphql/types/shipping-provider/shipping-provider.ts +7 -0
  158. package/things-factory.config.js +30 -0
  159. package/translations/en.json +91 -11
  160. package/translations/ko.json +109 -11
  161. package/translations/ms.json +111 -12
  162. package/translations/zh.json +123 -26
@@ -1,18 +1,21 @@
1
- import { DirectPrinter } from '@things-factory/barcode-base'
2
1
  import '@things-factory/form-ui'
3
2
  import '@things-factory/grist-ui'
4
- import { i18next, localize } from '@things-factory/i18n-base'
5
3
  import '@things-factory/import-ui'
6
- import { openPopup } from '@things-factory/layout-base'
7
- import { client, CustomAlert, PageView, store } from '@things-factory/shell'
8
- import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
9
- import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
4
+ import './generate-location-list'
5
+ import './print-location-label'
6
+
10
7
  import gql from 'graphql-tag'
11
8
  import { css, html } from 'lit-element'
12
9
  import { connect } from 'pwa-helpers/connect-mixin'
13
- import { LOCATION_LABEL_SETTING_KEY } from '../constants'
14
- import './generate-location-list'
15
- import './print-location-label'
10
+
11
+ import { DirectPrinter } from '@things-factory/barcode-base'
12
+ import { i18next, localize } from '@things-factory/i18n-base'
13
+ import { openPopup } from '@things-factory/layout-base'
14
+ import { client, CustomAlert, PageView, store } from '@things-factory/shell'
15
+ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
16
+ import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
17
+
18
+ import { LOCATION_LABEL_SETTING_KEY, LOCATION_STATUS, LOCATION_TYPE } from '../constants'
16
19
 
17
20
  class LocationList extends connect(store)(localize(i18next)(PageView)) {
18
21
  static get styles() {
@@ -130,8 +133,19 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
130
133
  {
131
134
  label: i18next.t('field.type'),
132
135
  name: 'type',
133
- type: 'text',
134
- props: { searchOper: 'i_like' }
136
+ type: 'select',
137
+ options: [
138
+ { value: '' },
139
+ ...Object.values(LOCATION_TYPE)
140
+ .map(type => {
141
+ return {
142
+ name: type.name,
143
+ value: type.value
144
+ }
145
+ })
146
+ .sort((a, b) => (a.name > b.name ? 1 : -1))
147
+ ],
148
+ props: { searchOper: 'eq' }
135
149
  },
136
150
  {
137
151
  label: i18next.t('field.zone'),
@@ -160,8 +174,19 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
160
174
  {
161
175
  label: i18next.t('field.status'),
162
176
  name: 'status',
163
- type: 'text',
164
- props: { searchOper: 'i_like' }
177
+ type: 'select',
178
+ options: [
179
+ { value: '' },
180
+ ...Object.values(LOCATION_STATUS)
181
+ .map(status => {
182
+ return {
183
+ name: status.name,
184
+ value: status.value
185
+ }
186
+ })
187
+ .sort((a, b) => (a.name > b.name ? 1 : -1))
188
+ ],
189
+ props: { searchOper: 'eq' }
165
190
  }
166
191
  ]
167
192
 
@@ -185,10 +210,18 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
185
210
  width: 150
186
211
  },
187
212
  {
188
- type: 'string',
213
+ type: 'select',
189
214
  name: 'type',
190
215
  header: i18next.t('field.type'),
191
- record: { editable: true },
216
+ record: {
217
+ editable: true,
218
+ options: [
219
+ '',
220
+ ...Object.values(LOCATION_TYPE)
221
+ .map(type => type.value)
222
+ .sort()
223
+ ]
224
+ },
192
225
  imex: { header: i18next.t('field.type'), key: 'type', width: 50, type: 'string' },
193
226
  sortable: true,
194
227
  width: 150
@@ -231,10 +264,18 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
231
264
  width: 80
232
265
  },
233
266
  {
234
- type: 'string',
267
+ type: 'select',
235
268
  name: 'status',
236
269
  header: i18next.t('field.status'),
237
- record: { editable: true },
270
+ record: {
271
+ editable: true,
272
+ options: [
273
+ '',
274
+ ...Object.values(LOCATION_STATUS)
275
+ .map(status => status.value)
276
+ .sort()
277
+ ]
278
+ },
238
279
  imex: { header: i18next.t('field.status'), key: 'status', width: 50, type: 'string' },
239
280
  sortable: true,
240
281
  width: 80
@@ -198,7 +198,7 @@ export class ProductDetailBizplaceSettingPopup extends localize(i18next)(LitElem
198
198
 
199
199
  const response = await client.query({
200
200
  query: gql`
201
- query productDetailBizplaceSettings($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
201
+ query productDetailBizplaceSettings($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
202
202
  productDetailBizplaceSettings(filters: $filters, pagination: $pagination, sortings: $sortings) {
203
203
  items {
204
204
  id
@@ -290,7 +290,7 @@ export class ProductDetailBizplaceSettingPopup extends localize(i18next)(LitElem
290
290
  mutation: gql`
291
291
  mutation updateMultipleProductDetailBizplaceSetting(
292
292
  $productId: String!
293
- $patches: [ProductDetailBizplaceSettingPatch!]!
293
+ $patches: [ProductDetailBizplaceSettingPatch]!
294
294
  ) {
295
295
  updateMultipleProductDetailBizplaceSetting(productId: $productId, patches: $patches) {
296
296
  name
@@ -376,7 +376,7 @@ export class ProductDetailsPopup extends localize(i18next)(LitElement) {
376
376
 
377
377
  const response = await client.query({
378
378
  query: gql`
379
- query productDetails($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
379
+ query productDetails($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
380
380
  productDetails(filters: $filters, pagination: $pagination, sortings: $sortings) {
381
381
  items {
382
382
  id
@@ -515,7 +515,7 @@ export class ProductDetailsPopup extends localize(i18next)(LitElement) {
515
515
  if (productId && patches) {
516
516
  const response = await client.mutate({
517
517
  mutation: gql`
518
- mutation updateMultipleProductDetail($productId: String!, $patches: [ProductDetailPatch!]!) {
518
+ mutation updateMultipleProductDetail($productId: String!, $patches: [ProductDetailPatch]!) {
519
519
  updateMultipleProductDetail(productId: $productId, patches: $patches) {
520
520
  name
521
521
  }
@@ -652,7 +652,7 @@ class ProductList extends localize(i18next)(PageView) {
652
652
 
653
653
  const response = await client.query({
654
654
  query: gql`
655
- query productsByBizplace($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
655
+ query productsByBizplace($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
656
656
  productsByBizplace(filters: $filters, pagination: $pagination, sortings: $sortings) {
657
657
  items {
658
658
  sku
@@ -843,7 +843,7 @@ class ProductList extends localize(i18next)(PageView) {
843
843
 
844
844
  const response = await client.mutate({
845
845
  mutation: gql`
846
- mutation updateMultipleProduct($patches: [ProductPatch!]!) {
846
+ mutation updateMultipleProduct($patches: [ProductPatch]!) {
847
847
  updateMultipleProduct(patches: $patches) {
848
848
  name
849
849
  }
@@ -881,7 +881,7 @@ class ProductList extends localize(i18next)(PageView) {
881
881
 
882
882
  const response = await client.mutate({
883
883
  mutation: gql`
884
- mutation importMultipleProduct($patches: [ProductPatch!]!) {
884
+ mutation importMultipleProduct($patches: [ProductPatch]!) {
885
885
  importMultipleProduct(patches: $patches) {
886
886
  name
887
887
  }
@@ -991,7 +991,7 @@ class ProductList extends localize(i18next)(PageView) {
991
991
 
992
992
  const response = await client.mutate({
993
993
  mutation: gql`
994
- mutation deleteProducts($ids: [String!]!) {
994
+ mutation deleteProducts($ids: [String]!) {
995
995
  deleteProducts(ids: $ids)
996
996
  }
997
997
  `,
@@ -1029,7 +1029,7 @@ class ProductList extends localize(i18next)(PageView) {
1029
1029
 
1030
1030
  const response = await client.mutate({
1031
1031
  mutation: gql`
1032
- mutation undeleteProducts($ids: [String!]!) {
1032
+ mutation undeleteProducts($ids: [String]!) {
1033
1033
  undeleteProducts(ids: $ids)
1034
1034
  }
1035
1035
  `,
@@ -1,15 +1,21 @@
1
- import { MultiColumnFormStyles } from '@things-factory/form-ui'
2
1
  import '@things-factory/grist-ui'
2
+ import '../../components/attachment-viewer'
3
+ import '../../components/vas-templates'
4
+ import './edit-product-popup'
5
+ import './proceed-edit-product-popup'
6
+ import './view-product-changes-popup'
7
+
8
+ import gql from 'graphql-tag'
9
+ import { css, html } from 'lit-element'
10
+
11
+ import { MultiColumnFormStyles } from '@things-factory/form-ui'
3
12
  import { getRenderer } from '@things-factory/grist-ui'
4
13
  import { i18next, localize } from '@things-factory/i18n-base'
5
14
  import { openPopup } from '@things-factory/layout-base'
6
15
  import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
7
16
  import { CommonButtonStyles } from '@things-factory/styles'
8
17
  import { isMobileDevice } from '@things-factory/utils'
9
- import gql from 'graphql-tag'
10
- import { css, html } from 'lit-element'
11
- import '../../components/attachment-viewer'
12
- import '../../components/vas-templates'
18
+
13
19
  import {
14
20
  ORDER_PRODUCT_STATUS,
15
21
  ORDER_STATUS,
@@ -18,9 +24,6 @@ import {
18
24
  VAS_ETC_TYPE,
19
25
  VAS_PRODUCT_TYPE
20
26
  } from '../../constants'
21
- import './edit-product-popup'
22
- import './proceed-edit-product-popup'
23
- import './view-product-changes-popup'
24
27
 
25
28
  class ArrivalNoticeDetail extends localize(i18next)(PageView) {
26
29
  static get properties() {
@@ -136,11 +139,11 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
136
139
  height: 100px;
137
140
  margin: 10px;
138
141
  }
139
- .form-container {
140
- display: flex
142
+ .form-container {
143
+ display: flex;
141
144
  }
142
- .form-container > form {
143
- flex: 1
145
+ .form-container > form {
146
+ flex: 1;
144
147
  }
145
148
  `
146
149
  ]
@@ -238,111 +241,111 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
238
241
 
239
242
  render() {
240
243
  return html`
241
- <div class="form-container">
242
- <form name="arrivalNotice" class="multi-column-form">
243
- <fieldset>
244
- <legend>${i18next.t('title.gan_no')}: ${this._ganNo}</legend>
245
-
246
- <label>${i18next.t('label.options')}</label>
247
- <div options-wrap>
248
- <input
249
- id="ownTransport"
250
- type="checkbox"
251
- name="ownTransport"
252
- ?checked="${this._ownTransport}"
253
- @change="${e => (this._ownTransport = e.currentTarget.checked)}"
254
- disabled
255
- />
256
- <label>${i18next.t('label.own_transport')}</label>
257
-
258
- <input
259
- id="warehouseTransport"
260
- type="checkbox"
261
- name="warehouseTransport"
262
- ?checked="${!this._ownTransport}"
263
- disabled
264
- />
265
- <label>${i18next.t('label.warehouse_transport')}</label>
266
-
267
- <input id="container" type="checkbox" name="container" ?checked="${this._hasContainer}" disabled />
268
- <label for="container">${i18next.t('label.container')}</label>
269
-
270
- <input id="looseItem" type="checkbox" name="looseItem" ?checked="${this._looseItem}" disabled />
271
- <label for="looseItem">${i18next.t('label.loose_item')}</label>
272
-
273
- <input id="importedOrder" type="checkbox" name="importCargo" ?checked="${this._importedOrder}" disabled />
274
- <label for="importedOrder">${i18next.t('label.import_cargo')}</label>
275
-
276
- ${this._crossDocking
244
+ <div class="form-container">
245
+ <form name="arrivalNotice" class="multi-column-form">
246
+ <fieldset>
247
+ <legend>${i18next.t('title.gan_no')}: ${this._ganNo}</legend>
248
+
249
+ <label>${i18next.t('label.options')}</label>
250
+ <div options-wrap>
251
+ <input
252
+ id="ownTransport"
253
+ type="checkbox"
254
+ name="ownTransport"
255
+ ?checked="${this._ownTransport}"
256
+ @change="${e => (this._ownTransport = e.currentTarget.checked)}"
257
+ disabled
258
+ />
259
+ <label>${i18next.t('label.own_transport')}</label>
260
+
261
+ <input
262
+ id="warehouseTransport"
263
+ type="checkbox"
264
+ name="warehouseTransport"
265
+ ?checked="${!this._ownTransport}"
266
+ disabled
267
+ />
268
+ <label>${i18next.t('label.warehouse_transport')}</label>
269
+
270
+ <input id="container" type="checkbox" name="container" ?checked="${this._hasContainer}" disabled />
271
+ <label for="container">${i18next.t('label.container')}</label>
272
+
273
+ <input id="looseItem" type="checkbox" name="looseItem" ?checked="${this._looseItem}" disabled />
274
+ <label for="looseItem">${i18next.t('label.loose_item')}</label>
275
+
276
+ <input id="importedOrder" type="checkbox" name="importCargo" ?checked="${this._importedOrder}" disabled />
277
+ <label for="importedOrder">${i18next.t('label.import_cargo')}</label>
278
+
279
+ ${this._crossDocking
280
+ ? html`
281
+ <input
282
+ id="crossDocking"
283
+ type="checkbox"
284
+ name="crossDocking"
285
+ ?checked="${this._crossDocking}"
286
+ disabled
287
+ />
288
+ <label for="crossDocking">${i18next.t('label.cross_docking')}</label>
289
+ `
290
+ : ''}
291
+ </div>
292
+
293
+ <label>${i18next.t('label.company')}</label>
294
+ <input name="bizplaceName" value="${this._bizplaceName}" readonly />
295
+
296
+ <label>${i18next.t('label.ref_no')}${`1`}</label>
297
+ <input name="refNo" readonly />
298
+
299
+ <label>${i18next.t('label.ref_no')}${`2`}</label>
300
+ <input name="refNo2" readonly />
301
+
302
+ <label>${i18next.t('label.ref_no')}${`3`}</label>
303
+ <input name="refNo3" readonly />
304
+
305
+ <label>${i18next.t('label.eta_date')}</label>
306
+ <input name="etaDate" type="date" readonly />
307
+
308
+ <label ?hidden="${!this._ownTransport}">${i18next.t('label.do_no')}</label>
309
+ <input name="deliveryOrderNo" ?hidden="${!this._ownTransport}" readonly />
310
+
311
+ <label ?hidden="${this._importedOrder || !this._ownTransport}">${i18next.t('label.truck_no')}</label>
312
+ <input ?hidden="${this._importedOrder || !this._ownTransport}" name="truckNo" readonly />
313
+
314
+ <label ?hidden="${!this._hasContainer}">${i18next.t('label.container_no')}</label>
315
+ <input ?hidden="${!this._hasContainer}" type="text" name="containerNo" readonly />
316
+
317
+ <label>${i18next.t('label.container_size')}</label>
318
+ <input type="text" name="containerSize" readonly />
319
+
320
+ <label>${i18next.t('label.status')}</label>
321
+ <select name="status" disabled>
322
+ ${Object.keys(ORDER_STATUS).map(key => {
323
+ const status = ORDER_STATUS[key]
324
+ return html` <option value="${status.value}">${i18next.t(`label.${status.name}`)}</option> `
325
+ })}
326
+ </select>
327
+
328
+ ${this._attachments?.length > 0
277
329
  ? html`
278
- <input
279
- id="crossDocking"
280
- type="checkbox"
281
- name="crossDocking"
282
- ?checked="${this._crossDocking}"
283
- disabled
284
- />
285
- <label for="crossDocking">${i18next.t('label.cross_docking')}</label>
330
+ <label>${i18next.t('label.attachment')}</label>
331
+ <ul attachment-wrap>
332
+ ${(this._attachments || []).map(
333
+ attachment =>
334
+ html`
335
+ <li>
336
+ <a href="${location.origin}/attachment/${attachment.path}" download
337
+ ><mwc-icon>attach_file</mwc-icon> ${attachment.name}</a
338
+ >
339
+ </li>
340
+ `
341
+ )}
342
+ </ul>
286
343
  `
287
344
  : ''}
288
- </div>
289
-
290
- <label>${i18next.t('label.company')}</label>
291
- <input name="bizplaceName" value="${this._bizplaceName}" readonly />
292
-
293
- <label>${i18next.t('label.ref_no')}${`1`}</label>
294
- <input name="refNo" readonly />
295
-
296
- <label>${i18next.t('label.ref_no')}${`2`}</label>
297
- <input name="refNo2" readonly />
298
-
299
- <label>${i18next.t('label.ref_no')}${`3`}</label>
300
- <input name="refNo3" readonly />
301
-
302
- <label>${i18next.t('label.eta_date')}</label>
303
- <input name="etaDate" type="date" readonly />
304
-
305
- <label ?hidden="${!this._ownTransport}">${i18next.t('label.do_no')}</label>
306
- <input name="deliveryOrderNo" ?hidden="${!this._ownTransport}" readonly />
307
-
308
- <label ?hidden="${this._importedOrder || !this._ownTransport}">${i18next.t('label.truck_no')}</label>
309
- <input ?hidden="${this._importedOrder || !this._ownTransport}" name="truckNo" readonly />
310
-
311
- <label ?hidden="${!this._hasContainer}">${i18next.t('label.container_no')}</label>
312
- <input ?hidden="${!this._hasContainer}" type="text" name="containerNo" readonly />
313
-
314
- <label>${i18next.t('label.container_size')}</label>
315
- <input type="text" name="containerSize" readonly />
316
-
317
- <label>${i18next.t('label.status')}</label>
318
- <select name="status" disabled>
319
- ${Object.keys(ORDER_STATUS).map(key => {
320
- const status = ORDER_STATUS[key]
321
- return html` <option value="${status.value}">${i18next.t(`label.${status.name}`)}</option> `
322
- })}
323
- </select>
324
-
325
- ${this._attachments?.length > 0
326
- ? html`
327
- <label>${i18next.t('label.attachment')}</label>
328
- <ul attachment-wrap>
329
- ${(this._attachments || []).map(
330
- attachment =>
331
- html`
332
- <li>
333
- <a href="${location.origin}/attachment/${attachment.path}" download
334
- ><mwc-icon>attach_file</mwc-icon> ${attachment.name}</a
335
- >
336
- </li>
337
- `
338
- )}
339
- </ul>
340
- `
341
- : ''}
342
- </fieldset>
343
- </form>
344
- <barcode-tag bcid="qrcode" .value=${this._ganNo}></barcode-tag>
345
- </div>
345
+ </fieldset>
346
+ </form>
347
+ <barcode-tag bcid="qrcode" .value=${this._ganNo}></barcode-tag>
348
+ </div>
346
349
 
347
350
  <div class="container">
348
351
  <div class="grist">
@@ -541,6 +544,12 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
541
544
  record: { options: { queryName: 'products' } },
542
545
  width: 350
543
546
  },
547
+ {
548
+ type: 'string',
549
+ name: 'productBrand',
550
+ header: i18next.t('field.brand'),
551
+ width: 150
552
+ },
544
553
  {
545
554
  type: 'string',
546
555
  name: 'packingType',
@@ -618,6 +627,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
618
627
  'packingType',
619
628
  'uomValue',
620
629
  'uom',
630
+ 'brand',
621
631
  'packQty',
622
632
  'totalUomValue',
623
633
  'palletQty',
@@ -687,6 +697,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
687
697
  name
688
698
  description
689
699
  sku
700
+ brand
690
701
  }
691
702
  remark
692
703
  unitPrice
@@ -761,7 +772,11 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
761
772
  this.setProductGristConfig()
762
773
  this.productData = {
763
774
  records: orderProducts.map(record => {
764
- return { ...record, productSku: record.product.sku }
775
+ return {
776
+ ...record,
777
+ productSku: record.product.sku,
778
+ productBrand: record.product.brand
779
+ }
765
780
  })
766
781
  }
767
782
  this.vasData = {
@@ -915,6 +930,10 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
915
930
  }
916
931
 
917
932
  openEditProductPopup() {
933
+ this.productData.records = this.productData.records.filter(
934
+ orderProduct => orderProduct.status !== ORDER_PRODUCT_STATUS.UNLOADED.value
935
+ )
936
+
918
937
  openPopup(
919
938
  html`
920
939
  <edit-product-popup