@things-factory/operato-wms 4.3.350 → 4.3.352

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.
@@ -5,19 +5,37 @@ import './generate-location-list'
5
5
  import './print-location-label'
6
6
 
7
7
  import gql from 'graphql-tag'
8
- import { css, html } from 'lit-element'
9
- import { connect } from 'pwa-helpers/connect-mixin'
8
+ import {
9
+ css,
10
+ html
11
+ } from 'lit-element'
10
12
  import isEmpty from 'lodash-es/isEmpty'
13
+ import { connect } from 'pwa-helpers/connect-mixin'
11
14
 
12
15
  import { DirectPrinter } from '@things-factory/barcode-base'
13
- import { i18next, localize } from '@things-factory/i18n-base'
16
+ import {
17
+ i18next,
18
+ localize
19
+ } from '@things-factory/i18n-base'
14
20
  import { openPopup } from '@things-factory/layout-base'
15
- import { client, CustomAlert, PageView, store } from '@things-factory/shell'
16
- import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
21
+ import {
22
+ client,
23
+ CustomAlert,
24
+ PageView,
25
+ store
26
+ } from '@things-factory/shell'
27
+ import {
28
+ CommonButtonStyles,
29
+ ScrollbarStyles
30
+ } from '@things-factory/styles'
17
31
  import { isMobileDevice } from '@things-factory/utils'
18
32
 
19
- import { LOCATION_LABEL_SETTING_KEY, LOCATION_STATUS, LOCATION_TYPE } from '../constants'
20
33
  import { showToast } from '../../util'
34
+ import {
35
+ LOCATION_LABEL_SETTING_KEY,
36
+ LOCATION_STATUS,
37
+ LOCATION_TYPE
38
+ } from '../constants'
21
39
 
22
40
  class LocationList extends connect(store)(localize(i18next)(PageView)) {
23
41
  static get styles() {
@@ -458,8 +476,8 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
458
476
  })
459
477
  const response = await client.mutate({
460
478
  mutation: gql`
461
- mutation updateMultipleLocation($patches: [LocationPatch!]!) {
462
- updateMultipleLocation(patches: $patches) {
479
+ mutation createMultipleLocation($patches: [LocationPatch!]!) {
480
+ createMultipleLocation(patches: $patches) {
463
481
  name
464
482
  }
465
483
  }
@@ -502,6 +520,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
502
520
  if (this._warehouseId && !patch.warehouse) {
503
521
  patch.warehouse = { id: this._warehouseId }
504
522
  }
523
+ delete patch.id
505
524
  return patch
506
525
  })
507
526
 
@@ -684,7 +703,7 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
684
703
 
685
704
  var data = records.map(item => {
686
705
  return {
687
- id: item.id,
706
+ // id: item.id,
688
707
  ...this._columns
689
708
  .filter(column => column.type !== 'gutter' && column.record !== undefined && column.imex !== undefined)
690
709
  .reduce((record, column) => {
@@ -2,12 +2,26 @@ import '@things-factory/form-ui'
2
2
  import '@things-factory/grist-ui'
3
3
 
4
4
  import gql from 'graphql-tag'
5
- import { css, html } from 'lit-element'
5
+ import {
6
+ css,
7
+ html
8
+ } from 'lit-element'
6
9
 
7
10
  import { GhostPrint } from '@operato/ghost-print'
8
- import { i18next, localize } from '@things-factory/i18n-base'
9
- import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
10
- import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
11
+ import {
12
+ i18next,
13
+ localize
14
+ } from '@things-factory/i18n-base'
15
+ import {
16
+ client,
17
+ CustomAlert,
18
+ navigate,
19
+ PageView
20
+ } from '@things-factory/shell'
21
+ import {
22
+ CommonButtonStyles,
23
+ ScrollbarStyles
24
+ } from '@things-factory/styles'
11
25
  import { isMobileDevice } from '@things-factory/utils'
12
26
 
13
27
  import { DRAFT_RELEASE_ORDER_STATUS } from '../../../constants'
@@ -180,6 +194,21 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
180
194
  type: 'checkbox',
181
195
  props: { searchOper: 'eq' },
182
196
  attrs: ['indeterminate']
197
+ },
198
+ {
199
+ label: i18next.t('field.platform'),
200
+ name: 'platformCode',
201
+ type: 'select',
202
+ props: {
203
+ searchOper: 'eq'
204
+ },
205
+ options: [
206
+ { value: '' },
207
+ { name: 'Lazada', value: 'LZD' },
208
+ { name: 'Shopee', value: 'SHP' },
209
+ { name: 'Shopify', value: 'SPF' },
210
+ { name: 'Tiktok', value: 'TTK' }
211
+ ]
183
212
  }
184
213
  ]
185
214
 
@@ -288,6 +317,14 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
288
317
  sortable: false,
289
318
  width: 120
290
319
  },
320
+ {
321
+ type: 'string',
322
+ name: 'platformCode',
323
+ header: i18next.t('field.platform'),
324
+ imex: { header: i18next.t('field.platform'), key: 'platformCode', width: 25, type: 'string' },
325
+ sortable: true,
326
+ width: 120
327
+ },
291
328
  {
292
329
  type: 'datetime',
293
330
  name: 'createdAt',
@@ -351,6 +388,7 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
351
388
  exportOption
352
389
  releaseDate
353
390
  status
391
+ platformCode
354
392
  createdAt
355
393
  updatedAt
356
394
  creator {
@@ -1145,10 +1145,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
1145
1145
  this.data.records[0].product?.isRequireSerialNumberScanningOutbound
1146
1146
  }
1147
1147
 
1148
- if (this.toggleComplete && this.airwayBill) {
1149
- this.printBill()
1150
- }
1151
-
1152
1148
  if (this._enableProductScanning) {
1153
1149
  this.focusOnProductBarcodeInput()
1154
1150
  } else {
@@ -22,11 +22,10 @@ module.exports = {
22
22
  // type: 'postgres',
23
23
  // database: 'postgres',
24
24
  // username: 'postgres',
25
-
26
25
  // password: 'abcd1234',
27
26
  // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
28
27
  // port: 55432,
29
- // synchronize: false,
28
+ // synchronize: true,
30
29
  // logging: true
31
30
  // },
32
31
  sellercraftIntegrationConfig: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.350",
3
+ "version": "4.3.352",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -91,7 +91,7 @@
91
91
  "@things-factory/print-ui": "^4.3.281",
92
92
  "@things-factory/product-base": "^4.3.344",
93
93
  "@things-factory/resource-ui": "^4.3.281",
94
- "@things-factory/sales-ui": "^4.3.346",
94
+ "@things-factory/sales-ui": "^4.3.352",
95
95
  "@things-factory/scene-data-transform": "^4.3.281",
96
96
  "@things-factory/scene-excel": "^4.3.281",
97
97
  "@things-factory/scene-firebase": "^4.3.281",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.281",
108
108
  "@things-factory/transport-base": "^4.3.344",
109
109
  "@things-factory/tutorial-ui": "^4.3.281",
110
- "@things-factory/warehouse-base": "^4.3.346",
111
- "@things-factory/worksheet-base": "^4.3.350"
110
+ "@things-factory/warehouse-base": "^4.3.351",
111
+ "@things-factory/worksheet-base": "^4.3.352"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.281",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "9cd1c87246e666126bee19cbe70d5fa508df5980"
120
+ "gitHead": "b9597619f99c8fc29629d440a5f143e4c657ba68"
121
121
  }