@things-factory/operato-wms 4.3.462 → 4.3.464
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.
|
@@ -230,7 +230,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
if (this.isUserBelongsDomain) {
|
|
233
|
-
if (this._status === ORDER_STATUS.PROCESSING.value
|
|
233
|
+
if (this._status === ORDER_STATUS.PROCESSING.value) {
|
|
234
234
|
actions.push(
|
|
235
235
|
{
|
|
236
236
|
title: i18next.t('button.update_order_details'),
|
|
@@ -284,6 +284,11 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
|
|
|
284
284
|
action: this._updateArrivalNotice.bind(this),
|
|
285
285
|
...CommonButtonStyles.add
|
|
286
286
|
},
|
|
287
|
+
{
|
|
288
|
+
title: i18next.t('button.cancel'),
|
|
289
|
+
action: this._cancelArrivalNotice.bind(this),
|
|
290
|
+
...CommonButtonStyles.cancel
|
|
291
|
+
},
|
|
287
292
|
{
|
|
288
293
|
title: i18next.t('button.arrived'),
|
|
289
294
|
action: this._checkArrivedNotice.bind(this),
|
|
@@ -299,12 +304,34 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
|
|
|
299
304
|
...CommonButtonStyles.add
|
|
300
305
|
},
|
|
301
306
|
{
|
|
307
|
+
title: i18next.t('button.cancel'),
|
|
308
|
+
action: this._cancelArrivalNotice.bind(this),
|
|
309
|
+
...CommonButtonStyles.cancel
|
|
310
|
+
},{
|
|
302
311
|
title: i18next.t('button.assign_warehouse'),
|
|
303
312
|
action: this._assignBufferLocation.bind(this),
|
|
304
313
|
...CommonButtonStyles.warehouse
|
|
305
314
|
}
|
|
306
315
|
)
|
|
307
316
|
this._showAssignWarehouse = true
|
|
317
|
+
} else if (this._status === ORDER_STATUS.READY_TO_UNLOAD.value) {
|
|
318
|
+
actions.push(
|
|
319
|
+
{
|
|
320
|
+
title: i18next.t('button.update_order_details'),
|
|
321
|
+
action: this._updateArrivalNotice.bind(this),
|
|
322
|
+
...CommonButtonStyles.add
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
title: i18next.t('button.cancel'),
|
|
326
|
+
action: this._cancelArrivalNotice.bind(this),
|
|
327
|
+
...CommonButtonStyles.cancel
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
title: i18next.t('button.edit_product'),
|
|
331
|
+
action: this.openEditProductPopup.bind(this),
|
|
332
|
+
...CommonButtonStyles.add
|
|
333
|
+
}
|
|
334
|
+
)
|
|
308
335
|
} else if (
|
|
309
336
|
this._status === ORDER_STATUS.PENDING_APPROVAL.value &&
|
|
310
337
|
this.productData.records.some(
|
|
@@ -360,6 +387,14 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
|
|
|
360
387
|
...CommonButtonStyles.copy
|
|
361
388
|
})
|
|
362
389
|
}
|
|
390
|
+
|
|
391
|
+
if (this._status === ORDER_STATUS.INTRANSIT.value || this._status === ORDER_STATUS.ARRIVED.value || this._status === ORDER_STATUS.READY_TO_UNLOAD.value) {
|
|
392
|
+
actions.push({
|
|
393
|
+
title: i18next.t('button.cancel'),
|
|
394
|
+
action: this._cancelArrivalNotice.bind(this),
|
|
395
|
+
...CommonButtonStyles.cancel
|
|
396
|
+
})
|
|
397
|
+
}
|
|
363
398
|
}
|
|
364
399
|
if (this._status === ORDER_STATUS.REJECTED.value) {
|
|
365
400
|
titleName = i18next.t('title.rejected_arrival_notice_detail')
|
|
@@ -1473,6 +1508,35 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
|
|
|
1473
1508
|
}
|
|
1474
1509
|
}
|
|
1475
1510
|
|
|
1511
|
+
async _cancelArrivalNotice() {
|
|
1512
|
+
try {
|
|
1513
|
+
let result = await CustomAlert({
|
|
1514
|
+
title: i18next.t('title.are_you_sure'),
|
|
1515
|
+
text: i18next.t('text.you_wont_be_able_to_revert_this'),
|
|
1516
|
+
confirmButton: { text: i18next.t('button.confirm') },
|
|
1517
|
+
cancelButton: { text: i18next.t('button.cancel') }
|
|
1518
|
+
})
|
|
1519
|
+
|
|
1520
|
+
if (!result.value) return
|
|
1521
|
+
|
|
1522
|
+
const response = await client.mutate({
|
|
1523
|
+
mutation: gql`
|
|
1524
|
+
mutation cancelArrivalNotice($name: String!) {
|
|
1525
|
+
cancelArrivalNotice(name: $name)
|
|
1526
|
+
}
|
|
1527
|
+
`,
|
|
1528
|
+
variables: { name: this._ganNo }
|
|
1529
|
+
})
|
|
1530
|
+
|
|
1531
|
+
if (!response.errors) {
|
|
1532
|
+
navigate('arrival_notices')
|
|
1533
|
+
this._showToast({ message: i18next.t('text.arrival_notice_cancelled') })
|
|
1534
|
+
}
|
|
1535
|
+
} catch (e) {
|
|
1536
|
+
this._showToast(e)
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1476
1540
|
_openBufferSelector() {
|
|
1477
1541
|
openPopup(
|
|
1478
1542
|
html`
|
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.464",
|
|
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.434",
|
|
92
92
|
"@things-factory/product-base": "^4.3.452",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.452",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.464",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.381",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.381",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.381",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.434",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.452",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.452",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.464",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.464"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.381",
|
|
@@ -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": "dc2feb22015b76dc2ccb311676a5fdf2ef2c6372"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1229,6 +1229,7 @@
|
|
|
1229
1229
|
"text.already_existed": "row {state.text} is already existed",
|
|
1230
1230
|
"text.are_empty": "are empty",
|
|
1231
1231
|
"text.are_you_sure_to_change_the_order_status_to_Done": "are you sure to change the to Done?",
|
|
1232
|
+
"text.arrival_notice_cancelled": "arrival notice cancelled",
|
|
1232
1233
|
"text.arrival_notice_details_updated": "arrival notice details updated",
|
|
1233
1234
|
"text.arrival_notice_form_invalid": "arrival notice form invalid",
|
|
1234
1235
|
"text.arrival_notice_is_arrived": "arrival notice is arrived",
|
package/translations/ko.json
CHANGED
|
@@ -1219,6 +1219,7 @@
|
|
|
1219
1219
|
"text.already_existed": "행 {state.text}이(가) 이미 존재 합니다",
|
|
1220
1220
|
"text.are_empty": "의 값이 없습니다",
|
|
1221
1221
|
"text.are_you_sure_to_change_the_order_status_to_Done": "완료 처리하시겠습니까?",
|
|
1222
|
+
"text.arrival_notice_cancelled": "[ko]arrival notice cancelled",
|
|
1222
1223
|
"text.arrival_notice_details_updated": "[ko]arrival notice details updated",
|
|
1223
1224
|
"text.arrival_notice_form_invalid": "입고주문 폼이 유효하지 않습니다",
|
|
1224
1225
|
"text.arrival_notice_is_arrived": "입고요청이 도착했습니다",
|
package/translations/ms.json
CHANGED
|
@@ -1195,6 +1195,7 @@
|
|
|
1195
1195
|
"text.already_existed": "baris {state.text} telah tersedia",
|
|
1196
1196
|
"text.are_empty": "adalah mssong",
|
|
1197
1197
|
"text.are_you_sure_to_change_the_order_status_to_Done": "adakah anda pasti menukar pesanan status kepada Selesai",
|
|
1198
|
+
"text.arrival_notice_cancelled": "notis ketibaan dibatalkan",
|
|
1198
1199
|
"text.arrival_notice_details_updated": "[ms]arrival notice details updated",
|
|
1199
1200
|
"text.arrival_notice_form_invalid": "notis ketibaan tidak sah",
|
|
1200
1201
|
"text.arrival_notice_is_arrived": "notis ketibaan telah tiba",
|
package/translations/zh.json
CHANGED
|
@@ -1161,6 +1161,7 @@
|
|
|
1161
1161
|
"text.already_existed": "row {state.text} is already existed",
|
|
1162
1162
|
"text.are_empty": "are empty",
|
|
1163
1163
|
"text.are_you_sure_to_change_the_order_status_to_Done": "are you sure to change the to Done?",
|
|
1164
|
+
"text.arrival_notice_cancelled": "[zh]arrival notice cancelled",
|
|
1164
1165
|
"text.arrival_notice_details_updated": "[zh]arrival notice details updated",
|
|
1165
1166
|
"text.arrival_notice_form_invalid": "arrival notice form invalid",
|
|
1166
1167
|
"text.arrival_notice_is_arrived": "arrival notice is arrived",
|