@things-factory/operato-wms 4.3.126 → 4.3.127

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.
@@ -146,6 +146,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
146
146
 
147
147
  if (
148
148
  (this.releaseGoodId || this.taskNo) &&
149
+ this._releaseGoodType === 'b2b' &&
149
150
  this._selectedOrderInventory?.status !== 'MISSING' &&
150
151
  this._selectedOrderInventory?.hasMissingInventoryChanges !== true &&
151
152
  this._selectedOrderInventory?.status !== 'DONE'
@@ -2,7 +2,7 @@ import '@things-factory/barcode-ui'
2
2
  import { MultiColumnFormStyles } from '@things-factory/form-ui'
3
3
  import '@things-factory/grist-ui'
4
4
  import { i18next, localize } from '@things-factory/i18n-base'
5
- import { client, PageView } from '@things-factory/shell'
5
+ import { client, PageView, CustomAlert, navigate } from '@things-factory/shell'
6
6
  import { CommonButtonStyles } from '@things-factory/styles'
7
7
  import { isMobileDevice } from '@things-factory/utils'
8
8
  import gql from 'graphql-tag'
@@ -15,6 +15,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
15
15
  _taskNo: String,
16
16
  _worksheetNo: String,
17
17
  _worksheetStatus: String,
18
+ _worksheetDetails: Array,
18
19
  config: Object,
19
20
  data: Object
20
21
  }
@@ -245,6 +246,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
245
246
  name
246
247
  }
247
248
  worksheetDetails {
249
+ name
248
250
  status
249
251
  targetInventory {
250
252
  batchId
@@ -283,7 +285,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
283
285
 
284
286
  if (!response.errors) {
285
287
  const worksheet = response.data.worksheet
286
- const worksheetDetails = worksheet.worksheetDetails
288
+ this._worksheetDetails = worksheet.worksheetDetails
287
289
  this._worksheetStatus = worksheet.status
288
290
  this._taskNo = worksheet.taskNo
289
291
 
@@ -293,7 +295,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
293
295
  })
294
296
 
295
297
  this.data = {
296
- records: worksheetDetails.map(worksheetDetail => {
298
+ records: this._worksheetDetails.map(worksheetDetail => {
297
299
  return {
298
300
  ...worksheetDetail,
299
301
  ...worksheetDetail.targetInventory,
@@ -331,6 +333,42 @@ class WorksheetSorting extends localize(i18next)(PageView) {
331
333
  this.data = { ...this.data }
332
334
  }
333
335
 
336
+ async _activateWorksheet() {
337
+ try {
338
+ const result = await CustomAlert({
339
+ title: i18next.t('title.are_you_sure'),
340
+ text: i18next.t('text.activate_sorting_worksheet'),
341
+ confirmButton: { text: i18next.t('button.confirm') },
342
+ cancelButton: { text: i18next.t('button.cancel') }
343
+ })
344
+
345
+ if (!result.value) return
346
+
347
+ const response = await client.mutate({
348
+ mutation: gql`
349
+ mutation activateSorting($worksheetNo: String!, $sortingWorksheetDetails: [WorksheetDetailPatch]) {
350
+ activateSorting(worksheetNo: $worksheetNo, sortingWorksheetDetails: $sortingWorksheetDetails) {
351
+ name
352
+ }
353
+ }
354
+ `,
355
+ variables: {
356
+ worksheetNo: this._worksheetNo,
357
+ sortingWorksheetDetails: this._worksheetDetails.map(wsd => {
358
+ return { name: wsd.name }
359
+ })
360
+ }
361
+ })
362
+ if (!response.errors) {
363
+ this._showToast({ message: i18next.t('text.worksheet_activated') })
364
+ this.updateContext()
365
+ navigate(`merged_outbound_worksheets`)
366
+ }
367
+ } catch (e) {
368
+ this._showToast(e)
369
+ }
370
+ }
371
+
334
372
  _fillupForm(data) {
335
373
  for (let key in data) {
336
374
  Array.from(this.form.querySelectorAll('input, select')).forEach(field => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.126",
3
+ "version": "4.3.127",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -92,7 +92,7 @@
92
92
  "@things-factory/print-ui": "^4.3.122",
93
93
  "@things-factory/product-base": "^4.3.122",
94
94
  "@things-factory/resource-ui": "^4.3.123",
95
- "@things-factory/sales-ui": "^4.3.126",
95
+ "@things-factory/sales-ui": "^4.3.127",
96
96
  "@things-factory/scene-data-transform": "^4.3.122",
97
97
  "@things-factory/scene-excel": "^4.3.122",
98
98
  "@things-factory/scene-firebase": "^4.3.122",
@@ -108,8 +108,8 @@
108
108
  "@things-factory/system-ui": "^4.3.122",
109
109
  "@things-factory/transport-base": "^4.3.122",
110
110
  "@things-factory/tutorial-ui": "^4.3.122",
111
- "@things-factory/warehouse-base": "^4.3.126",
112
- "@things-factory/worksheet-base": "^4.3.126"
111
+ "@things-factory/warehouse-base": "^4.3.127",
112
+ "@things-factory/worksheet-base": "^4.3.127"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@things-factory/builder": "^4.3.122",
@@ -118,5 +118,5 @@
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "4b44126b745e4d325a2105afab39957d1a9b8998"
121
+ "gitHead": "ed6406fce1541dd5ca6a7508047934e8fa5698b1"
122
122
  }
@@ -1091,6 +1091,7 @@
1091
1091
  "text.activate_picking_worksheet": "activate picking worksheet",
1092
1092
  "text.activate_putaway_worksheet": "activate putaway worksheet",
1093
1093
  "text.activate_return_worksheet": "activate return worksheet",
1094
+ "text.activate_sorting_worksheet": "activate sorting worksheet",
1094
1095
  "text.activate_unloading_worksheet": "activate unloading worksheet",
1095
1096
  "text.activate_vas_worksheet": "activate value added service worksheet",
1096
1097
  "text.activate": "activate",
@@ -1098,6 +1098,7 @@
1098
1098
  "text.activate_picking_worksheet": "피킹 작업지시서 활성화",
1099
1099
  "text.activate_putaway_worksheet": "적치 작업지시서 활성화",
1100
1100
  "text.activate_return_worksheet": "반품 작업지시서 활성화",
1101
+ "text.activate_sorting_worksheet": "[ko]activate sorting worksheet",
1101
1102
  "text.activate_unloading_worksheet": "하차 작업지시서 활성화",
1102
1103
  "text.activate_vas_worksheet": "부가서비스 작업지시서 활성화",
1103
1104
  "text.activate": "활성화",
@@ -1073,6 +1073,7 @@
1073
1073
  "text.activate_picking_worksheet": "activate picking worksheet",
1074
1074
  "text.activate_putaway_worksheet": "aktifkan putaway worksheet",
1075
1075
  "text.activate_return_worksheet": "mengaktifkan lembaran kerja",
1076
+ "text.activate_sorting_worksheet": "[ms]activate sorting worksheet",
1076
1077
  "text.activate_unloading_worksheet": "aktifkan ",
1077
1078
  "text.activate_vas_worksheet": "aktifkan value added service lembaran kerja",
1078
1079
  "text.activate": "activate",
@@ -1039,6 +1039,7 @@
1039
1039
  "text.activate_picking_worksheet": "activate picking worksheet",
1040
1040
  "text.activate_putaway_worksheet": "activate putaway worksheet",
1041
1041
  "text.activate_return_worksheet": "activate return worksheet",
1042
+ "text.activate_sorting_worksheet": "[zh]activate sorting worksheet",
1042
1043
  "text.activate_unloading_worksheet": "activate unloading worksheet",
1043
1044
  "text.activate_vas_worksheet": "activate value added service worksheet",
1044
1045
  "text.activate": "activate",