@things-factory/operato-wms 4.3.634 → 4.3.636

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,37 +5,19 @@ import './generate-location-list'
5
5
  import './print-location-label'
6
6
 
7
7
  import gql from 'graphql-tag'
8
- import {
9
- css,
10
- html
11
- } from 'lit-element'
8
+ import { css, html } from 'lit-element'
12
9
  import isEmpty from 'lodash-es/isEmpty'
13
10
  import { connect } from 'pwa-helpers/connect-mixin'
14
11
 
15
12
  import { DirectPrinter } from '@things-factory/barcode-base'
16
- import {
17
- i18next,
18
- localize
19
- } from '@things-factory/i18n-base'
13
+ import { i18next, localize } from '@things-factory/i18n-base'
20
14
  import { openPopup } from '@things-factory/layout-base'
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'
15
+ import { client, CustomAlert, PageView, store } from '@things-factory/shell'
16
+ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
31
17
  import { isMobileDevice } from '@things-factory/utils'
32
18
 
33
19
  import { showToast } from '../../util'
34
- import {
35
- LOCATION_LABEL_SETTING_KEY,
36
- LOCATION_STATUS,
37
- LOCATION_TYPE
38
- } from '../constants'
20
+ import { LOCATION_LABEL_SETTING_KEY, LOCATION_STATUS, LOCATION_TYPE } from '../constants'
39
21
 
40
22
  class LocationList extends connect(store)(localize(i18next)(PageView)) {
41
23
  static get styles() {
@@ -686,12 +668,14 @@ class LocationList extends connect(store)(localize(i18next)(PageView)) {
686
668
  return this.config.columns
687
669
  }
688
670
 
689
- _exportableData() {
671
+ async _exportableData() {
690
672
  let records = []
691
673
  if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
692
674
  records = this.dataGrist.selected
693
675
  } else {
694
- records = this.dataGrist.data.records
676
+ // Fetch all records
677
+ const response = await this.fetchHandler({ page: 1, limit: 9999999 })
678
+ records = response.records
695
679
  }
696
680
 
697
681
  var headerSetting = this.dataGrist._config.columns
@@ -399,6 +399,7 @@ class CreateReturnOrder extends localize(i18next)(PageView) {
399
399
  { name: 'id', hidden: true },
400
400
  { name: 'name', hidden: true },
401
401
  { name: 'productId', hidden: true },
402
+ { name: 'releaseOrderId', hidden: true },
402
403
  {
403
404
  name: 'releaseGoodName',
404
405
  header: i18next.t('field.ro')
@@ -795,6 +796,7 @@ class CreateReturnOrder extends localize(i18next)(PageView) {
795
796
  type: ORDER_TYPES.RETURN_ORDER.value,
796
797
  status: ORDER_INVENTORY_STATUS.PENDING.value
797
798
  }
799
+ newRecord.releaseOrderId = record?.releaseOrderId
798
800
  newRecord.product = { id: record?.productId, name: record?.productName }
799
801
  newRecord.productDetail = { id: record?.productDetailId }
800
802
  newRecord.inventory = { id: record.id }
@@ -114,7 +114,7 @@ class ReturnOrderInventoryPopup extends localize(i18next)(LitElement) {
114
114
  this.searchFields = [
115
115
  {
116
116
  name: 'releaseGoodName',
117
- label: i18next.t('field.ro'),
117
+ label: i18next.t('field.order_info'),
118
118
  type: 'text',
119
119
  value: this.releaseOrderNo || this.releaseGoodNameInput || null,
120
120
  props: { searchOper: 'i_like' }
@@ -136,6 +136,24 @@ class ReturnOrderInventoryPopup extends localize(i18next)(LitElement) {
136
136
  header: i18next.t('field.ro'),
137
137
  width: 150
138
138
  },
139
+ {
140
+ type: 'string',
141
+ name: 'releaseGoodRefNo',
142
+ header: i18next.t('field.ref_no'),
143
+ width: 150
144
+ },
145
+ {
146
+ type: 'string',
147
+ name: 'releaseGoodRefNo2',
148
+ header: i18next.t('field.ref_no_2'),
149
+ width: 150
150
+ },
151
+ {
152
+ type: 'string',
153
+ name: 'releaseGoodRefNo3',
154
+ header: i18next.t('field.ref_no_3'),
155
+ width: 150
156
+ },
139
157
  {
140
158
  type: 'string',
141
159
  name: 'palletId',
@@ -248,7 +266,11 @@ class ReturnOrderInventoryPopup extends localize(i18next)(LitElement) {
248
266
  palletId
249
267
  productId
250
268
  productDetailId
269
+ releaseOrderId
251
270
  releaseGoodName
271
+ releaseGoodRefNo
272
+ releaseGoodRefNo2
273
+ releaseGoodRefNo3
252
274
  }
253
275
  total
254
276
  }
@@ -0,0 +1,197 @@
1
+ module.exports = {
2
+ domainType: 'warehouse',
3
+ domainExtType: 'warehouse',
4
+ useVirtualHostBasedDomain: false,
5
+ fallbackRoute: '/',
6
+ subdomainOffset: 2,
7
+ port: 4444,
8
+ inspect: '9330',
9
+ // ormconfig: {
10
+ // name: 'default',
11
+ // type: 'postgres',
12
+ // database: 'operato',
13
+ // username: 'postgres',
14
+ // password: 'hatio',
15
+ // host: '192.168.0.153',
16
+ // port: 15432,
17
+ // synchronize: false,
18
+ // logging: true
19
+ // },
20
+ // ormconfig: {
21
+ // name: 'default',
22
+ // type: 'postgres',
23
+ // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
24
+ // port: 55432,
25
+ // database: 'postgres',
26
+ // username: 'postgres',
27
+ // password: 'abcd1234',
28
+ // synchronize: false,
29
+ // logging: true,
30
+ // connectTimeoutMS: 30000,
31
+ // extra: { poolSize: 30 }
32
+ // },
33
+ //db izzah
34
+ // ormconfig: {
35
+ // name: 'default',
36
+ // type: 'postgres',
37
+ // database: '06072023',
38
+ // username: 'postgres',
39
+ // password: 'hatio',
40
+ // host: '192.168.0.153',
41
+ // port: 15432,f
42
+ // synchronize: true,
43
+ // logging: true
44
+ // },
45
+ ormconfig: {
46
+ name: 'default',
47
+ type: 'postgres',
48
+ database: 'postgres',
49
+ username: 'postgres',
50
+ password: 'hatio',
51
+ host: '192.168.0.151',
52
+ port: 15432,
53
+ synchronize: false,
54
+ logging: true
55
+ },
56
+
57
+ // //ERIC
58
+ // ormconfig: {
59
+ // name: 'default',
60
+ // type: 'postgres',
61
+ // database: 'eric',
62
+ // username: 'postgres',
63
+ // password: 'hatio',
64
+ // host: '192.168.0.153',
65
+ // port: 15432,
66
+ // synchronize: false,
67
+ // logging: true
68
+ // },
69
+
70
+ //eric 2
71
+ // ormconfig: {
72
+ // name: 'default',
73
+ // type: 'postgres',
74
+ // database: 'eric2',
75
+ // username: 'postgres',
76
+ // password: 'hatio',
77
+ // host: '192.168.0.153',
78
+ // port: 15432,
79
+ // synchronize: false,
80
+ // logging: true
81
+ // },
82
+
83
+ // ormconfig: {
84
+ // name: 'default',
85
+ // type: 'postgres',
86
+ // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
87
+ // port: 55432,
88
+ // database: 'postgres',
89
+ // username: 'postgres',
90
+ // password: 'abcd1234',
91
+ // synchronize: false,
92
+ // logging: true,
93
+ // connectTimeoutMS: 30000,
94
+ // extra: { poolSize: 30 }
95
+ // },
96
+ //ormconfig: {
97
+ // name: 'default',
98
+ // type: 'postgres',
99
+ // database: 'dev2',
100
+ // username: 'postgres',
101
+ // password: 'hatio',
102
+ // host: 'localhost',
103
+ // port: 15432,
104
+ // synchronize: false,
105
+ // logging: true,
106
+ // connectTimeoutMS: 30000,
107
+ // extra: { poolSize: 30 }
108
+ //},
109
+ SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
110
+ password: {
111
+ lowerCase: true,
112
+ upperCase: false,
113
+ digit: false,
114
+ specialCharacter: false,
115
+ allowRepeat: true,
116
+ useTightPattern: false,
117
+ useLoosePattern: true,
118
+ tightCharacterLength: 4,
119
+ looseCharacterLength: 4,
120
+ history: 2
121
+ },
122
+ uploads: 'uploads',
123
+ attachmentsPath: 'attachments',
124
+ logger: {
125
+ file: {
126
+ filename: 'logs/application-%DATE%.log',
127
+ datePattern: 'YYYY-MM-DD-HH',
128
+ zippedArchive: true,
129
+ maxSize: '200m',
130
+ maxFiles: '1m',
131
+ level: 'info'
132
+ }
133
+ },
134
+ email: {
135
+ host: 'smtp.office365.com',
136
+ port: 587,
137
+ secure: false, // true for 465, false for other ports
138
+ auth: {
139
+ user: 'no-reply@hatiolab.com', // generated ethereal user
140
+ pass: 'h@ti0LAB1008' // generated ethereal password
141
+ },
142
+ secureConnection: false,
143
+ tls: {
144
+ ciphers: 'SSLv3'
145
+ }
146
+ },
147
+ sender: 'no-reply@hatiolab.com',
148
+ notification: {
149
+ // fcm: {
150
+ // serviceAccount: {
151
+ // project_id: 'operato',
152
+ // private_key:
153
+ // '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1ynzB3KM1sDiTRmI\npcT7+uTtwrKgJq64sXtFE2pYrFxDdCiyqzkhv/2ed4YIowAjpKBbbcCDKeVxVkoz\nC1P4PAzs9EeUuKSWYrWaUjN17lqtRlYeT1ylR1PIJuWqd4cKfgoEgz+lHwRPDCEX\nAYbk3nofiJIPBhSfCHrXS755wK48mY8vMwFdfCPJeQKBgQDsz4tjYTHdat5A25n5\nekwMxZwFQ5OvMV4eulwZUDMypTAYSz1iB6sDlgwKDm5omZIfuneqCEIvrqxV/kx3\n5wV/DANHO3hYxdp/NV7rM23xmqlaKZhHQbDono1Fm/LP6DEmJiD7N2eFKsXYcPpR\nSAIdCv0X3zkDQ4zRi51yJlCXzQKBgQDpufJBxCoXngiQJ2j14lWVAeOOdQ6zh5Ip\nBcDwF0X67cNSN3Wl40bS4yLFdolhEAyj5m0WPuYYXpjzhHhZ0W3V3ItdBkrmwIvy\nWOWu26qN0ZbwxVS2qVpHuj6iHWJKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\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',
154
+ // client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
155
+ // },
156
+ // appConfig: {
157
+ // apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
158
+ // projectId: 'operato',
159
+ // messagingSenderId: 79537064975,
160
+ // appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
161
+ // },
162
+ // serverKey:
163
+ // 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
164
+ // },
165
+ // vapidKey: {
166
+ // subject: 'mailto:heartyoh@hatiolab.com',
167
+ // publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
168
+ // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
169
+ // }
170
+ },
171
+ // reportApiUrl:
172
+ // 'http://k8s-default-operator-8eeba2e246-3e3a5ee7979bcd57.elb.ap-southeast-1.amazonaws.com/rest/report/show_html',
173
+ // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html',
174
+ // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html',
175
+ // reportApiUrl: 'http://10.100.109.66:8090/rest/report/show_html',
176
+ awbFileStorage: {
177
+ type: 's3',
178
+ accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
179
+ secretAccessKey: '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',
180
+ bucketName: 'operato-awb',
181
+ region: 'ap-southeast-1'
182
+ },
183
+ invoiceFileStorage: {
184
+ type: 's3',
185
+ accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
186
+ secretAccessKey: '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',
187
+ invoiceBucket: 'operato-invoice',
188
+ region: 'ap-southeast-1'
189
+ },
190
+ lambda: {
191
+ region: 'ap-southeast-1',
192
+ accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
193
+ secretAccessKey: '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'
194
+ },
195
+ reportApiUrl:
196
+ 'http://k8s-default-operator-8eeba2e246-3e3a5ee7979bcd57.elb.ap-southeast-1.amazonaws.com/rest/report/show_html'
197
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.634",
3
+ "version": "4.3.636",
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.591",
92
92
  "@things-factory/product-base": "^4.3.595",
93
93
  "@things-factory/resource-ui": "^4.3.591",
94
- "@things-factory/sales-ui": "^4.3.634",
94
+ "@things-factory/sales-ui": "^4.3.636",
95
95
  "@things-factory/scene-data-transform": "^4.3.591",
96
96
  "@things-factory/scene-excel": "^4.3.591",
97
97
  "@things-factory/scene-firebase": "^4.3.591",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.591",
108
108
  "@things-factory/transport-base": "^4.3.631",
109
109
  "@things-factory/tutorial-ui": "^4.3.591",
110
- "@things-factory/warehouse-base": "^4.3.626",
111
- "@things-factory/worksheet-base": "^4.3.634"
110
+ "@things-factory/warehouse-base": "^4.3.636",
111
+ "@things-factory/worksheet-base": "^4.3.636"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.591",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "6d074a8146cfab0031b13ad291218f20495dda3f"
120
+ "gitHead": "876351704622885dd9c6f5980b37cd12d9702b00"
121
121
  }