@things-factory/operato-wms 4.3.351 → 4.3.353
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/pages/manifest/create-loading-manifest.js +46 -15
- package/client/pages/master/location-list.js +0 -1
- package/client/pages/order/draft-release-good/draft-release-good-list.js +42 -4
- package/client/pages/outbound/packing-product.js +0 -4
- package/config.development.js +1 -1
- package/package.json +4 -4
|
@@ -2,22 +2,11 @@ import '@things-factory/grist-ui'
|
|
|
2
2
|
import '@things-factory/barcode-ui'
|
|
3
3
|
|
|
4
4
|
import gql from 'graphql-tag'
|
|
5
|
-
import {
|
|
6
|
-
css,
|
|
7
|
-
html
|
|
8
|
-
} from 'lit-element'
|
|
5
|
+
import { css, html } from 'lit-element'
|
|
9
6
|
|
|
10
7
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
localize
|
|
14
|
-
} from '@things-factory/i18n-base'
|
|
15
|
-
import {
|
|
16
|
-
client,
|
|
17
|
-
CustomAlert,
|
|
18
|
-
navigate,
|
|
19
|
-
PageView
|
|
20
|
-
} from '@things-factory/shell'
|
|
8
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
|
+
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
|
21
10
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
22
11
|
import { isMobileDevice } from '@things-factory/utils'
|
|
23
12
|
|
|
@@ -80,7 +69,8 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
|
|
|
80
69
|
static get properties() {
|
|
81
70
|
return {
|
|
82
71
|
shippingData: Object,
|
|
83
|
-
shippingGristConfig: Object
|
|
72
|
+
shippingGristConfig: Object,
|
|
73
|
+
audioCtx: Object
|
|
84
74
|
}
|
|
85
75
|
}
|
|
86
76
|
|
|
@@ -135,6 +125,7 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
|
|
|
135
125
|
constructor() {
|
|
136
126
|
super()
|
|
137
127
|
this.shippingData = { records: [] }
|
|
128
|
+
this.audioCtx = new (window.AudioContext || window.webkitAudioContext)()
|
|
138
129
|
}
|
|
139
130
|
|
|
140
131
|
get shippingGrist() {
|
|
@@ -248,6 +239,7 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
|
|
|
248
239
|
let manifestItems = this.shippingData.records || []
|
|
249
240
|
|
|
250
241
|
if (manifestItems.some(itm => itm.trackingNo == orderPackage.trackingNo)) {
|
|
242
|
+
this._playSound('error')
|
|
251
243
|
this._showToast({ message: i18next.t('text.tracking_no_already_exist_in_manifest_list') })
|
|
252
244
|
return
|
|
253
245
|
}
|
|
@@ -256,6 +248,8 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
|
|
|
256
248
|
orderPackage?.releaseGood?.status === ORDER_STATUS.CANCELLED.value ||
|
|
257
249
|
orderPackage?.releaseGood?.status === ORDER_STATUS.PENDING_CANCEL.value
|
|
258
250
|
) {
|
|
251
|
+
this._playSound('error')
|
|
252
|
+
|
|
259
253
|
let answer = await CustomAlert({
|
|
260
254
|
type: 'warning',
|
|
261
255
|
title: i18next.t('title.order(s)_is_at_pending_cancelled_or_cancelled'),
|
|
@@ -271,6 +265,7 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
|
|
|
271
265
|
}
|
|
272
266
|
|
|
273
267
|
if (orderPackage.manifestedAt != null) {
|
|
268
|
+
this._playSound('error')
|
|
274
269
|
this._showToast({ message: i18next.t('text.tracking_no_already_exist_in_other_manifest_list') })
|
|
275
270
|
return
|
|
276
271
|
}
|
|
@@ -282,13 +277,19 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
|
|
|
282
277
|
orderNo: orderPackage.releaseGood.refNo
|
|
283
278
|
})
|
|
284
279
|
this.shippingData = { records: manifestItems }
|
|
280
|
+
|
|
281
|
+
this._playSound()
|
|
285
282
|
} else {
|
|
283
|
+
this._playSound('error')
|
|
286
284
|
this._showToast({ message: i18next.t('text.tracking_no_already_exist_in_manifest_list') })
|
|
287
285
|
}
|
|
288
286
|
|
|
289
287
|
this._clearTrackingNoInput()
|
|
288
|
+
} else {
|
|
289
|
+
this._playSound('error')
|
|
290
290
|
}
|
|
291
291
|
} catch (e) {
|
|
292
|
+
this._playSound('error')
|
|
292
293
|
this._showToast(e)
|
|
293
294
|
}
|
|
294
295
|
}
|
|
@@ -368,6 +369,36 @@ class CreateLoadingManifest extends localize(i18next)(PageView) {
|
|
|
368
369
|
})
|
|
369
370
|
)
|
|
370
371
|
}
|
|
372
|
+
|
|
373
|
+
_playSound(type) {
|
|
374
|
+
let oscillator = this.audioCtx.createOscillator()
|
|
375
|
+
let gainNode = this.audioCtx.createGain()
|
|
376
|
+
let timing = 100
|
|
377
|
+
|
|
378
|
+
oscillator.connect(gainNode)
|
|
379
|
+
gainNode.connect(this.audioCtx.destination)
|
|
380
|
+
|
|
381
|
+
switch (type) {
|
|
382
|
+
case 'error':
|
|
383
|
+
gainNode.gain.value = 0.5
|
|
384
|
+
oscillator.frequency.value = 150
|
|
385
|
+
oscillator.type = 'square'
|
|
386
|
+
timing = 250
|
|
387
|
+
break
|
|
388
|
+
|
|
389
|
+
default:
|
|
390
|
+
gainNode.gain.value = 0.8
|
|
391
|
+
oscillator.frequency.value = 850
|
|
392
|
+
oscillator.type = 'triangle'
|
|
393
|
+
break
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
oscillator.start()
|
|
397
|
+
|
|
398
|
+
setTimeout(function () {
|
|
399
|
+
oscillator.stop()
|
|
400
|
+
}, timing)
|
|
401
|
+
}
|
|
371
402
|
}
|
|
372
403
|
|
|
373
404
|
customElements.define('create-loading-manifest', CreateLoadingManifest)
|
|
@@ -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 {
|
|
5
|
+
import {
|
|
6
|
+
css,
|
|
7
|
+
html
|
|
8
|
+
} from 'lit-element'
|
|
6
9
|
|
|
7
10
|
import { GhostPrint } from '@operato/ghost-print'
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
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 {
|
package/config.development.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.353",
|
|
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.
|
|
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",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.344",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.281",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.351",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
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": "
|
|
120
|
+
"gitHead": "27c80f41ec3804e584e210768ab449604c950ab8"
|
|
121
121
|
}
|