@things-factory/operato-wms 4.3.204 → 4.3.206

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.
@@ -4,20 +4,38 @@ import '@things-factory/warehouse-ui'
4
4
  import '@things-factory/import-ui'
5
5
 
6
6
  import gql from 'graphql-tag'
7
- import { css, html } from 'lit-element'
7
+ import {
8
+ css,
9
+ html
10
+ } from 'lit-element'
8
11
  import isEmpty from 'lodash-es/isEmpty'
9
12
  import { connect } from 'pwa-helpers/connect-mixin'
10
13
 
11
14
  import { getCodeByName } from '@things-factory/code-base'
12
15
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
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
21
  import { fetchSettingRule } from '@things-factory/setting-ui'
16
- import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
22
+ import {
23
+ client,
24
+ CustomAlert,
25
+ navigate,
26
+ PageView,
27
+ store
28
+ } from '@things-factory/shell'
17
29
  import { CommonButtonStyles } from '@things-factory/styles'
18
- import { flattenObject, isMobileDevice } from '@things-factory/utils'
30
+ import {
31
+ flattenObject,
32
+ isMobileDevice
33
+ } from '@things-factory/utils'
19
34
 
20
- import { DRAFT_RELEASE_ORDER_STATUS, PRODUCT_GROUP_TYPES } from '../../../constants'
35
+ import {
36
+ DRAFT_RELEASE_ORDER_STATUS,
37
+ PRODUCT_GROUP_TYPES
38
+ } from '../../../constants'
21
39
 
22
40
  class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView)) {
23
41
  static get properties() {
@@ -1155,7 +1173,7 @@ class DraftReleaseGoodDetail extends connect(store)(localize(i18next)(PageView))
1155
1173
  // check changes in product
1156
1174
  let checkProductDataChange = this._compareArray(
1157
1175
  this._productGrist.dirtyData.records,
1158
- this.___draftOrderData.orderProducts
1176
+ this._productData.records
1159
1177
  )
1160
1178
  if (checkFormInfoChange == true && checkProductDataChange != true && checkShippingFormInfo == true)
1161
1179
  throw new Error(i18next.t('text.nothing_changed'))
@@ -5,20 +5,40 @@ import '../print-airway-bill-popup'
5
5
  import '../../../outbound/generate-worksheet-popup'
6
6
 
7
7
  import gql from 'graphql-tag'
8
- import { css, html } from 'lit-element'
8
+ import {
9
+ css,
10
+ html
11
+ } from 'lit-element'
9
12
  import { connect } from 'pwa-helpers/connect-mixin'
10
13
 
11
14
  import { GhostPrint } from '@operato/ghost-print'
12
15
  import { DirectPrinter } from '@things-factory/barcode-base'
13
16
  import { getCodeByName } from '@things-factory/code-base'
14
- import { i18next, localize } from '@things-factory/i18n-base'
17
+ import {
18
+ i18next,
19
+ localize
20
+ } from '@things-factory/i18n-base'
15
21
  import { openPopup } from '@things-factory/layout-base'
16
- import { client, navigate, PageView, store } from '@things-factory/shell'
17
- import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
18
- import { isMobileDevice, sleep } from '@things-factory/utils'
22
+ import {
23
+ client,
24
+ navigate,
25
+ PageView,
26
+ store
27
+ } from '@things-factory/shell'
28
+ import {
29
+ CommonButtonStyles,
30
+ ScrollbarStyles
31
+ } from '@things-factory/styles'
32
+ import {
33
+ isMobileDevice,
34
+ sleep
35
+ } from '@things-factory/utils'
19
36
 
20
37
  import { fetchSettingRule } from '../../../../fetch-setting-value'
21
- import { INTENALIZED_AWB_SETTING_KEY, ORDER_STATUS } from '../../../constants'
38
+ import {
39
+ INTENALIZED_AWB_SETTING_KEY,
40
+ ORDER_STATUS
41
+ } from '../../../constants'
22
42
 
23
43
  const HEADER_JSON = {
24
44
  'Content-Type': 'application/json',
@@ -204,7 +224,7 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
204
224
  name: 'transporter',
205
225
  type: 'select',
206
226
  props: {
207
- searchOper: 'eq'
227
+ searchOper: 'i_like'
208
228
  },
209
229
  options: [
210
230
  { value: '' },
@@ -605,7 +605,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
605
605
  'packingSize',
606
606
  'expirationDate',
607
607
  'batchId',
608
- 'releaseProgress'
608
+ 'releaseProgress',
609
+ 'stockStatus'
609
610
  ]
610
611
  },
611
612
  columns: [
@@ -685,6 +686,13 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
685
686
  header: i18next.t('field.release_qty'),
686
687
  label: true,
687
688
  width: 100
689
+ },
690
+ {
691
+ type: 'string',
692
+ name: 'stockStatus',
693
+ header: i18next.t('field.missing_stock'),
694
+ label: true,
695
+ width: 160
688
696
  }
689
697
  ]
690
698
  }
@@ -725,11 +733,12 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
725
733
 
726
734
  record.releaseProgress = `${record.pickedQty} / ${record.releaseQty}`
727
735
  record.sku = record?.relatedOrderInv.product?.sku
736
+ record.stockStatus = record.hasMissingInventoryChanges === true ? 'PENDING_APPROVAL' : null
728
737
 
729
738
  return record
730
739
  })
731
- .sort((a, b) => a.hasMissingInventoryChanges - b.hasMissingInventoryChanges)
732
740
  .sort((a, b) => a.completed - b.completed)
741
+ .sort((a, b) => a.hasMissingInventoryChanges - b.hasMissingInventoryChanges)
733
742
  }
734
743
 
735
744
  clearView() {
@@ -6,28 +6,28 @@ module.exports = {
6
6
  subdomainOffset: 2,
7
7
  port: 1100,
8
8
  inspect: '9430',
9
- // ormconfig: {
10
- // name: 'default',
11
- // type: 'postgres',
12
- // database: 'postgres',
13
- // username: 'postgres',
14
- // password: 'hatio',
15
- // host: '192.168.0.161',
16
- // port: 15432,
17
- // synchronize: false,
18
- // logging: false
19
- // },
20
9
  ormconfig: {
21
10
  name: 'default',
22
11
  type: 'postgres',
23
- database: 'postgres',
12
+ database: 'dev2',
24
13
  username: 'postgres',
25
- password: 'abcd1234',
26
- host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
- port: 55432,
14
+ password: 'hatio',
15
+ host: '192.168.0.161',
16
+ port: 15432,
28
17
  synchronize: false,
29
18
  logging: true
30
19
  },
20
+ // ormconfig: {
21
+ // name: 'default',
22
+ // type: 'postgres',
23
+ // database: 'postgres',
24
+ // username: 'postgres',
25
+ // password: 'abcd1234',
26
+ // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
+ // port: 55432,
28
+ // synchronize: false,
29
+ // logging: true
30
+ // },
31
31
  sellercraftIntegrationConfig: {
32
32
  apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
33
33
  },
@@ -100,5 +100,6 @@ module.exports = {
100
100
  // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
101
101
  // }
102
102
  },
103
+ // reportApiUrl: 'localhost:8888/rest/report/show_html'
103
104
  reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
104
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.204",
3
+ "version": "4.3.206",
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.179",
92
92
  "@things-factory/product-base": "^4.3.204",
93
93
  "@things-factory/resource-ui": "^4.3.179",
94
- "@things-factory/sales-ui": "^4.3.204",
94
+ "@things-factory/sales-ui": "^4.3.206",
95
95
  "@things-factory/scene-data-transform": "^4.3.159",
96
96
  "@things-factory/scene-excel": "^4.3.159",
97
97
  "@things-factory/scene-firebase": "^4.3.159",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.179",
108
108
  "@things-factory/transport-base": "^4.3.179",
109
109
  "@things-factory/tutorial-ui": "^4.3.179",
110
- "@things-factory/warehouse-base": "^4.3.204",
111
- "@things-factory/worksheet-base": "^4.3.204"
110
+ "@things-factory/warehouse-base": "^4.3.206",
111
+ "@things-factory/worksheet-base": "^4.3.206"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.179",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "d7400c05d76662c2df54c0278078ade54e57f271"
120
+ "gitHead": "0b6f849c4aa629b2f2e498cab8b6ed3e0948d48c"
121
121
  }
@@ -363,6 +363,7 @@
363
363
  "field.missing_qty": "missing qty",
364
364
  "field.missing_volume": "missing volume",
365
365
  "field.missing": "missing",
366
+ "field.missing_stock": "missing stock",
366
367
  "field.month": "month",
367
368
  "field.movement": "movement",
368
369
  "field.name": "name",
@@ -379,6 +379,7 @@
379
379
  "field.min_qty": "[ko]min qty",
380
380
  "field.missing_volume": "[ko] missing volume",
381
381
  "field.missing": "[ko] missing",
382
+ "field.missing_stock": "[ko] missing stock",
382
383
  "field.month": "월",
383
384
  "field.movement": "[ko]movement",
384
385
  "field.name": "이름",
@@ -362,6 +362,7 @@
362
362
  "field.min_qty": "[ms]min qty",
363
363
  "field.missing_volume": "[ms] missing volume",
364
364
  "field.missing": "[ms] missing",
365
+ "field.missing_stock": "[ms] missing stock",
365
366
  "field.month": "month",
366
367
  "field.movement": "[ms]movement",
367
368
  "field.name": "nama",
@@ -346,6 +346,7 @@
346
346
  "field.min_qty": "[zh]min qty",
347
347
  "field.missing_volume": "[zh] missing volume",
348
348
  "field.missing": "[zh] missing",
349
+ "field.missing_stock": "[zh] missing stock",
349
350
  "field.month": "month",
350
351
  "field.movement": "[zh]movement",
351
352
  "field.name": "名称",
@@ -1,104 +0,0 @@
1
- module.exports = {
2
- domainType: 'warehouse',
3
- domainExtType: 'warehouse',
4
- useVirtualHostBasedDomain: false,
5
- fallbackRoute: '/',
6
- subdomainOffset: 2,
7
- port: 1100,
8
- inspect: '9430',
9
- ormconfig: {
10
- name: 'default',
11
- type: 'postgres',
12
- database: 'dev',
13
- username: 'postgres',
14
- password: 'hatio',
15
- host: '192.168.0.161',
16
- port: 15432,
17
- synchronize: true,
18
- logging: false
19
- },
20
- // ormconfig: {
21
- // name: 'default',
22
- // type: 'postgres',
23
- // database: 'dev',
24
- // username: 'postgres',
25
- // password: 'abcd1234',
26
- // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
- // port: 55432,
28
- // synchronize: true,
29
- // logging: true
30
- // },
31
- sellercraftIntegrationConfig: {
32
- apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
33
- },
34
- SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
35
- password: {
36
- lowerCase: true,
37
- upperCase: false,
38
- digit: false,
39
- specialCharacter: false,
40
- allowRepeat: true,
41
- useTightPattern: false,
42
- useLoosePattern: true,
43
- tightCharacterLength: 4,
44
- looseCharacterLength: 4,
45
- history: 2
46
- },
47
- // storage: {
48
- // type: 's3',
49
- // accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
50
- // secretAccessKey: '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',
51
- // bucketName: 'opa-one',
52
- // region: 'ap-southeast-1'
53
- // },
54
- uploads: 'uploads',
55
- attachmentsPath: 'attachments',
56
- logger: {
57
- file: {
58
- filename: 'logs/application-%DATE%.log',
59
- datePattern: 'YYYY-MM-DD-HH',
60
- zippedArchive: true,
61
- maxSize: '200m',
62
- maxFiles: '1m',
63
- level: 'info'
64
- }
65
- },
66
- email: {
67
- host: 'smtp.office365.com',
68
- port: 587,
69
- secure: false, // true for 465, false for other ports
70
- auth: {
71
- user: 'no-reply@hatiolab.com', // generated ethereal user
72
- pass: 'h@ti0LAB1008' // generated ethereal password
73
- },
74
- secureConnection: false,
75
- tls: {
76
- ciphers: 'SSLv3'
77
- }
78
- },
79
- sender: 'no-reply@hatiolab.com',
80
- notification: {
81
- // fcm: {
82
- // serviceAccount: {
83
- // project_id: 'operato',
84
- // private_key:
85
- // '-----BEGIN PRIVATE KEY-----\nMIIEvQI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JKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
86
- // client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
87
- // },
88
- // appConfig: {
89
- // apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
90
- // projectId: 'operato',
91
- // messagingSenderId: 79537064975,
92
- // appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
93
- // },
94
- // serverKey:
95
- // 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
96
- // },
97
- // vapidKey: {
98
- // subject: 'mailto:heartyoh@hatiolab.com',
99
- // publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
100
- // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
101
- // }
102
- },
103
- reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
104
- }