@things-factory/operato-wms 4.3.450 → 4.3.453

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.
Files changed (27) hide show
  1. package/client/constants/order.js +2 -1
  2. package/client/pages/order/draft-release-good/draft-release-good-card.js +292 -0
  3. package/client/pages/order/draft-release-good/draft-release-good-detail.js +24 -5
  4. package/client/pages/order/draft-release-good/draft-release-good-list.js +82 -27
  5. package/client/pages/order/draft-release-good/draft-release-good-popup.js +366 -0
  6. package/client/pages/order/release-order/b2b/b2b-order-list.js +33 -5
  7. package/client/pages/order/release-order/b2c/b2c-order-requests.js +12 -0
  8. package/client/pages/order/release-order/create-release-order.js +63 -27
  9. package/client/pages/order/release-order/release-order-detail.js +90 -27
  10. package/client/pages/order/vas-order/popup/order-vas-popup.js +236 -0
  11. package/client/pages/report/order-vas-report.js +101 -39
  12. package/client/pages/report/vas-report.js +2 -25
  13. package/client/pages/vas/add-vas-order-level.js +383 -0
  14. package/client/pages/vas/vas-execution-page.js +41 -5
  15. package/client/pages/vas/worksheet-ref-vas.js +20 -18
  16. package/dist-server/graphql/resolvers/reports/shortage-report.js +3 -2
  17. package/dist-server/graphql/resolvers/reports/shortage-report.js.map +1 -1
  18. package/dist-server/graphql/resolvers/reports/vas-report.js +199 -88
  19. package/dist-server/graphql/resolvers/reports/vas-report.js.map +1 -1
  20. package/helps/release-note.md +9 -6
  21. package/package.json +21 -21
  22. package/server/graphql/resolvers/reports/shortage-report.ts +3 -2
  23. package/server/graphql/resolvers/reports/vas-report.ts +203 -95
  24. package/translations/en.json +13 -0
  25. package/translations/ko.json +13 -0
  26. package/translations/ms.json +13 -0
  27. package/translations/zh.json +13 -0
@@ -0,0 +1,366 @@
1
+ import '@things-factory/grist-ui'
2
+ import '@things-factory/biz-ui'
3
+ import '@things-factory/warehouse-ui'
4
+ import '@things-factory/import-ui'
5
+ import './draft-release-good-card'
6
+
7
+ import gql from 'graphql-tag'
8
+ import { css, html, LitElement } from 'lit-element'
9
+
10
+ import { i18next, localize } from '@things-factory/i18n-base'
11
+ import { client, CustomAlert } from '@things-factory/shell'
12
+
13
+ class DraftReleaseGoodPopup extends localize(i18next)(LitElement) {
14
+ connectedCallback() {
15
+ super.connectedCallback()
16
+ this.addEventListener('value-change', this.handleInputChangeFromChild, true)
17
+ this.addEventListener('remove-card', this.handleCloseCardPopup.bind(this), true)
18
+ this.addEventListener('checkbox-change', this.handleInputChangeFromChild, true)
19
+ }
20
+ selectedOrders = []
21
+
22
+ handleCloseCardPopup() {
23
+ if (--this.draftOrderCount <= 0) {
24
+ history.go(-1)
25
+ }
26
+ }
27
+
28
+ handleInputChangeFromChild(event) {
29
+ const values = event.detail
30
+
31
+ const index = this.selectedOrders.findIndex(itm => itm.valueInfo === values.valueInfo)
32
+
33
+ if (index !== -1) {
34
+ // Update the existing item with the matching valueInfo
35
+ this.selectedOrders[index] = values
36
+
37
+ this.selectedOrders = this.selectedOrders.filter(item => item.valueCheckBox === true)
38
+ } else if (values.valueCheckBox) {
39
+ // If no matching valueInfo is found and valueCheckBox is true, add the new item
40
+ this.selectedOrders.push(values)
41
+ }
42
+ }
43
+
44
+ handleSelectAllChange() {
45
+ this.selectedAll = !this.selectedAll
46
+
47
+ // Update the selected property of each card based on selectedAll
48
+ this.draftOrder = this.draftOrder.map(orderItem => ({
49
+ ...orderItem,
50
+ selected: this.selectedAll
51
+ }))
52
+
53
+ if (!this.selectedAll) {
54
+ this.selectedOrders = [] // when SelectAll checkbox is unchecked, clear the selectedOrders array
55
+ }
56
+
57
+ // Manually request an update to trigger a re-render
58
+ this.requestUpdate()
59
+ }
60
+
61
+ static get properties() {
62
+ return {
63
+ draftOrder: Object,
64
+ draftOrderCount: Number,
65
+ draftInfo: Object,
66
+ config: Object,
67
+ data: Object,
68
+ selectedAll: Boolean,
69
+ draftOrderStatus: Object
70
+ }
71
+ }
72
+
73
+ constructor() {
74
+ super()
75
+
76
+ this.draftOrder = {}
77
+ this.draftInfo = {}
78
+ this.config = {}
79
+ this.data = {}
80
+ this.selectedAll = false
81
+ }
82
+
83
+ static get styles() {
84
+ return [
85
+ css`
86
+ .container {
87
+ background-color: white;
88
+ height: 438px;
89
+ overflow-y: scroll;
90
+ }
91
+
92
+ draft-release-good-card {
93
+ margin: 10px 0;
94
+ }
95
+
96
+ .button-container {
97
+ position: absolute;
98
+ left: 50%;
99
+ transform: translateX(-50%);
100
+ display: flex;
101
+ justify-content: center;
102
+ align-items: center;
103
+ }
104
+
105
+ footer {
106
+ position: sticky;
107
+ bottom: 0;
108
+ background-color: white;
109
+ text-align: center;
110
+ padding: 10px 0;
111
+ display: flex;
112
+ justify-content: space-between;
113
+ align-items: center;
114
+ }
115
+
116
+ .button-container input[class='cancel'] {
117
+ background-color: white;
118
+ color: red;
119
+ padding: 10px 20px;
120
+ border: 2px solid red;
121
+ border-radius: 5px;
122
+ cursor: pointer;
123
+ font-weight: bold;
124
+ padding: 8px 15px;
125
+ margin-right: 10px;
126
+ }
127
+
128
+ .button-container input[class='confirm'] {
129
+ background-color: #117e7f;
130
+ color: white;
131
+ padding: 10px 20px;
132
+ border: 1px solid white;
133
+ border-radius: 5px;
134
+ cursor: pointer;
135
+ font-weight: bold;
136
+ display: flex;
137
+ justify-content: center;
138
+ align-items: center;
139
+ }
140
+
141
+ .selectAll {
142
+ margin-top: 10px;
143
+ }
144
+
145
+ .selectAll > label {
146
+ color: gray;
147
+ }
148
+
149
+ .addNew input[class='addNew'] {
150
+ background-color: white;
151
+ color: #117e7f;
152
+ border: 1px solid #117e7f;
153
+ border-radius: 5px;
154
+ cursor: pointer;
155
+ font-weight: bold;
156
+ padding: 8px 15px;
157
+ margin-left: 15px;
158
+ }
159
+
160
+ [danger] {
161
+ margin-left: -40px;
162
+ float: left;
163
+ margin: 0 var(--margin-narrow) 0 0;
164
+ --mdc-theme-primary: var(--status-danger-color);
165
+ }
166
+
167
+ [outlined] {
168
+ border-color: red;
169
+ }
170
+ `
171
+ ]
172
+ }
173
+
174
+ render() {
175
+ return html`
176
+ <div class="container">
177
+ <div class="selectAll">
178
+ <input type="checkbox" .checked=${this.selectedAll} @change=${this.handleSelectAllChange} />
179
+ <label> Select All </label>
180
+ </div>
181
+ ${this.draftOrder.map(orderItem => {
182
+ const draftInfoWithLength = { ...orderItem, orderCount: orderItem.length }
183
+ return html`
184
+ <draft-release-good-card
185
+ .draftInfo=${draftInfoWithLength}
186
+ .draftOrder=${orderItem}
187
+ .config=${this.config}
188
+ .checkDisable=${this.checkDisable}
189
+ .selected=${orderItem.selected || false}
190
+ .checkReleaseType=${this.draftOrderStatus}
191
+ @checkbox-change=${this.handleInputChangeFromChild}
192
+ ></draft-release-good-card>
193
+ `
194
+ })}
195
+ </div>
196
+ <footer>
197
+ <div class="addNew">
198
+ <input type="button" class="addNew" value="+ ADD NEW" @click=${this.addNew} />
199
+ </div>
200
+ <div class="button-container">
201
+ <input type="button" class="cancel" value="Cancel" @click=${this.closePopup} />
202
+ <input type="button" class="confirm" value="Confirm" @click=${this._generateReleaseGood} />
203
+ </div>
204
+ </footer>
205
+ `
206
+ }
207
+
208
+ async closePopup() {
209
+ history.back()
210
+ }
211
+
212
+ async addNew() {
213
+ this._showToast({ message: i18next.t('text.please_select_additional_checkboxes_to_add_new_draft_orders') })
214
+ this.closePopup()
215
+ }
216
+
217
+ async firstUpdated() {
218
+ this.draftOrderCount = this.draftOrder.length
219
+ this.config = {
220
+ list: { fields: ['name', 'status'] },
221
+ pagination: { infinite: true },
222
+ rows: { appendable: false },
223
+ columns: [
224
+ {
225
+ type: 'string',
226
+ name: 'bizplace',
227
+ header: i18next.t('field.company'),
228
+ imex: { header: i18next.t('field.company'), key: 'bizplace.name', width: 30, type: 'string' },
229
+ sortable: false,
230
+ width: 250
231
+ },
232
+ {
233
+ type: 'string',
234
+ name: 'sku',
235
+ header: i18next.t('field.sku'),
236
+ width: 250
237
+ },
238
+ {
239
+ type: 'string',
240
+ name: 'groupType',
241
+ header: i18next.t('field.group_type'),
242
+ width: 250
243
+ },
244
+ {
245
+ type: 'number',
246
+ name: 'availableQty',
247
+ header: i18next.t('field.available_qty'),
248
+ width: 130
249
+ },
250
+ {
251
+ type: 'number',
252
+ name: 'releaseQty',
253
+ header: i18next.t('field.release_qty'),
254
+ width: 130
255
+ },
256
+ {
257
+ type: 'string',
258
+ name: 'status',
259
+ header: i18next.t('field.status'),
260
+ imex: { header: i18next.t('field.status'), key: 'status', width: 30, type: 'string' },
261
+ sortable: false,
262
+ width: 150
263
+ }
264
+ ]
265
+ }
266
+ }
267
+
268
+ get dataGrist() {
269
+ return this.shadowRoot.querySelector('data-grist')
270
+ }
271
+
272
+ async _generateReleaseGood() {
273
+ try {
274
+ let releaseResponse
275
+ let selectedGristData = this.selectedOrders
276
+
277
+ if (selectedGristData.length < 1) {
278
+ this._showToast({ message: i18next.t('text.please_select_a_draft_order_to_proceed') })
279
+ return
280
+ }
281
+
282
+ const filterSelectedData = selectedGristData.map(item => {
283
+ return {
284
+ id: item.valueInfo ? item.valueInfo : '',
285
+ releaseType: item.valueRadio ? item.valueRadio : null
286
+ }
287
+ })
288
+
289
+ const checkReleaseType = filterSelectedData.every(item => item.releaseType === null)
290
+
291
+ if (checkReleaseType) {
292
+ throw new Error(i18next.t('text.please_select_a_valid_draft_order_to_generate_release_order'))
293
+ }
294
+
295
+ let result = await CustomAlert({
296
+ title: i18next.t('title.are_you_sure'),
297
+ text: i18next.t('text.generate_release_order(s)'),
298
+ confirmButton: { text: i18next.t('button.submit') },
299
+ cancelButton: { text: i18next.t('button.cancel') }
300
+ })
301
+
302
+ if (!result.value) return
303
+
304
+ if (filterSelectedData.length > 0) {
305
+ releaseResponse = await client.mutate({
306
+ mutation: gql`
307
+ mutation generateReleaseGoodsfromDraft($releaseInfo: [DraftReleaseGoodInfos!]!) {
308
+ generateReleaseGoodsfromDraft(releaseInfo: $releaseInfo) {
309
+ draftName
310
+ isProductBundle
311
+ }
312
+ }
313
+ `,
314
+ variables: {
315
+ releaseInfo: filterSelectedData
316
+ }
317
+ })
318
+ } else {
319
+ releaseResponse = null
320
+ }
321
+
322
+ let releasedDraftOrders
323
+ const releaseDraft = releaseResponse?.data?.generateReleaseGoodsfromDraft || []
324
+
325
+ let filterSuccessOrders = releaseDraft?.filter(itm => !itm.isProductBundle)
326
+ let filterPbOrders = releaseDraft?.filter(itm => itm.isProductBundle)
327
+
328
+ if (releaseDraft.length > 0) {
329
+ const draftNames = filterSuccessOrders.map(order => order.draftName)
330
+ releasedDraftOrders = draftNames.join(', ')
331
+ }
332
+
333
+ if (releasedDraftOrders) {
334
+ throw new Error(`Due to insufficient available quantity, only ${releasedDraftOrders} is able to release`)
335
+ }
336
+
337
+ if (filterPbOrders.length > 0) {
338
+ throw new Error('Partial release is not permitted for bundle SKU. Only single SKUs have been released.')
339
+ }
340
+
341
+ if (!releaseResponse?.errors) {
342
+ this._showToast({ message: i18next.t('text.release_order(s)_has_been_generated') })
343
+ this.dispatchEvent(new CustomEvent('reload-page', { detail: null, bubbles: true, composed: true }))
344
+ history.back()
345
+ }
346
+ } catch (e) {
347
+ this.dispatchEvent(new CustomEvent('reload-page', { detail: null, bubbles: true, composed: true }))
348
+ this._showToast(e)
349
+ history.back()
350
+ }
351
+ }
352
+
353
+ _showToast({ type, message, delay = 1000 }) {
354
+ setTimeout(() => {
355
+ document.dispatchEvent(
356
+ new CustomEvent('notify', {
357
+ detail: {
358
+ type,
359
+ message
360
+ }
361
+ })
362
+ )
363
+ }, delay)
364
+ }
365
+ }
366
+ window.customElements.define('draft-release-good-popup', DraftReleaseGoodPopup)
@@ -4,14 +4,30 @@ import '../batch-picking-popup'
4
4
  import '../../../outbound/generate-worksheet-popup'
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
 
9
12
  import { getCodeByName } from '@things-factory/code-base'
10
- import { i18next, localize } from '@things-factory/i18n-base'
11
- import { client, navigate, PageView, CustomAlert } from '@things-factory/shell'
13
+ import {
14
+ i18next,
15
+ localize
16
+ } from '@things-factory/i18n-base'
12
17
  import { openPopup } from '@things-factory/layout-base'
13
- import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
14
- import { isMobileDevice, sleep } from '@things-factory/utils'
18
+ import {
19
+ client,
20
+ navigate,
21
+ PageView
22
+ } from '@things-factory/shell'
23
+ import {
24
+ CommonButtonStyles,
25
+ ScrollbarStyles
26
+ } from '@things-factory/styles'
27
+ import {
28
+ isMobileDevice,
29
+ sleep
30
+ } from '@things-factory/utils'
15
31
 
16
32
  import { ORDER_STATUS } from '../../../constants'
17
33
 
@@ -263,6 +279,14 @@ class B2bOrderList extends localize(i18next)(PageView) {
263
279
  sortable: true,
264
280
  width: 250
265
281
  },
282
+ {
283
+ type: 'object',
284
+ name: 'draftReleaseGood',
285
+ header: i18next.t('field.draft_order_no'),
286
+ imex: { header: i18next.t('field.draft_order_no'), key: 'draftReleaseGood.name', width: 30, type: 'string' },
287
+ sortable: true,
288
+ width: 250
289
+ },
266
290
  {
267
291
  type: 'string',
268
292
  name: 'refNo',
@@ -443,6 +467,10 @@ class B2bOrderList extends localize(i18next)(PageView) {
443
467
  name
444
468
  description
445
469
  }
470
+ draftReleaseGood {
471
+ id
472
+ name
473
+ }
446
474
  ownTransport
447
475
  crossDocking
448
476
  arrivalNotice {
@@ -356,6 +356,14 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
356
356
  sortable: true,
357
357
  width: 200
358
358
  },
359
+ {
360
+ type: 'object',
361
+ name: 'draftReleaseGood',
362
+ header: i18next.t('field.draft_order_no'),
363
+ imex: { header: i18next.t('field.draft_order_no'), key: 'draftReleaseGood.name', width: 30, type: 'string' },
364
+ sortable: true,
365
+ width: 250
366
+ },
359
367
  {
360
368
  type: 'string',
361
369
  name: 'refNo',
@@ -587,6 +595,10 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
587
595
  name
588
596
  description
589
597
  }
598
+ draftReleaseGood {
599
+ id
600
+ name
601
+ }
590
602
  name
591
603
  releaseDate
592
604
  status
@@ -10,27 +10,13 @@ import '../../order/vas-order/popup/vas-target-product-popup'
10
10
  import '../../order/vas-order/popup/select-vas-popup'
11
11
 
12
12
  import gql from 'graphql-tag'
13
- import {
14
- css,
15
- html
16
- } from 'lit-element'
13
+ import { css, html } from 'lit-element'
17
14
 
18
15
  import { getCodeByName } from '@things-factory/code-base'
19
- import {
20
- MultiColumnFormStyles,
21
- SingleColumnFormStyles
22
- } from '@things-factory/form-ui'
23
- import {
24
- i18next,
25
- localize
26
- } from '@things-factory/i18n-base'
16
+ import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/form-ui'
17
+ import { i18next, localize } from '@things-factory/i18n-base'
27
18
  import { openPopup } from '@things-factory/layout-base'
28
- import {
29
- client,
30
- CustomAlert,
31
- navigate,
32
- PageView
33
- } from '@things-factory/shell'
19
+ import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
34
20
  import { CommonButtonStyles } from '@things-factory/styles'
35
21
  import { isMobileDevice } from '@things-factory/utils'
36
22
 
@@ -1101,13 +1087,14 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1101
1087
  'uomValue',
1102
1088
  'vas',
1103
1089
  'vasQty',
1090
+ 'newBatchId',
1104
1091
  'newSKU',
1105
1092
  'newPackingType',
1106
1093
  'newUom',
1107
1094
  'newUomValue',
1108
1095
  'newUnitUomValue',
1109
1096
  'outputQty',
1110
- 'remark'
1097
+ 'vasRemark'
1111
1098
  ]
1112
1099
  },
1113
1100
  pagination: { infinite: true },
@@ -1135,6 +1122,18 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1135
1122
  this._showToast(e)
1136
1123
  }
1137
1124
  }
1125
+ if (column.name === 'newBatchId') {
1126
+ try {
1127
+ if (!record.newProductId) {
1128
+ column.record.editable = false
1129
+ throw new Error(i18next.t('text.new_sku_empty'))
1130
+ } else {
1131
+ column.record.editable = true
1132
+ }
1133
+ } catch (e) {
1134
+ this._showToast(e)
1135
+ }
1136
+ }
1138
1137
  }
1139
1138
  }
1140
1139
  },
@@ -1205,6 +1204,13 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1205
1204
  record: { editable: true, options: { min: 0 } },
1206
1205
  width: 100
1207
1206
  },
1207
+ {
1208
+ type: 'string',
1209
+ name: 'newBatchId',
1210
+ header: i18next.t('field.batch_no_(new_sku)'),
1211
+ record: { editable: true },
1212
+ width: 150
1213
+ },
1208
1214
  {
1209
1215
  type: 'string',
1210
1216
  name: 'newSKU',
@@ -1252,7 +1258,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1252
1258
  },
1253
1259
  {
1254
1260
  type: 'string',
1255
- name: 'remark',
1261
+ name: 'vasRemark',
1256
1262
  header: i18next.t('field.remark'),
1257
1263
  record: { editable: true },
1258
1264
  width: 400
@@ -2040,6 +2046,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2040
2046
  )
2041
2047
  }
2042
2048
  }
2049
+
2043
2050
  if (changedColumn === 'qty') {
2044
2051
  if (changeRecord.qty === undefined) throw new Error(i18next.t('text.there_is_no_selected_items'))
2045
2052
  // compare qty
@@ -2071,7 +2078,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2071
2078
  } else {
2072
2079
  const totalUomValue = changeRecord.outputQty * initialRecord.newUnitUomValue
2073
2080
  changeRecord.newUomValue = totalUomValue.toFixed(2)
2074
-
2075
2081
  }
2076
2082
  if (isNaN(changeRecord.newUomValue)) {
2077
2083
  changeRecord.newUomValue = null
@@ -2085,7 +2091,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2085
2091
  if (decimalPlaces > 2) {
2086
2092
  throw new Error(i18next.t('text.cannot_add_more_than_2_decimal_places'))
2087
2093
  }
2088
- const unitUomValue = changeRecord.newUomValue/initialRecord.outputQty
2094
+ const unitUomValue = changeRecord.newUomValue / initialRecord.outputQty
2089
2095
  changeRecord.newUnitUomValue = unitUomValue.toFixed(2)
2090
2096
  } else if (changedColumn === 'vasQty') {
2091
2097
  if (changeRecord.vasQty <= 0 || isNaN(changeRecord.vasQty)) {
@@ -2095,8 +2101,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2095
2101
  if (changeRecord.outputQty <= 0 || isNaN(changeRecord.outputQty)) {
2096
2102
  throw new Error(i18next.t('text.invalid_quantity_input'))
2097
2103
  }
2098
- }
2099
- else if (changedColumn === 'newUnitUomValue' && !this._strictProductSelection) {
2104
+ } else if (changedColumn === 'newUnitUomValue' && !this._strictProductSelection) {
2100
2105
  if (changeRecord.newUnitUomValue <= 0 || isNaN(changeRecord.newUnitUomValue)) {
2101
2106
  throw new Error(i18next.t('text.invalid_quantity_input'))
2102
2107
  }
@@ -2429,6 +2434,11 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2429
2434
  orderVasPatch = this.vasGrist.dirtyData.records
2430
2435
  .filter(p => p.product)
2431
2436
  .map(ov => {
2437
+ // will be finalise after receive requirements
2438
+ if (!ov?.newBatchId && ov?.newProductId) {
2439
+ throw new Error(i18next.t('text.please_insert_batch_no'))
2440
+ }
2441
+
2432
2442
  return {
2433
2443
  bizplace: { id: this._bizplaceId },
2434
2444
  batchId: ov.batchId,
@@ -2445,14 +2455,23 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2445
2455
  uomValue: ov.uomValue,
2446
2456
  newProduct: ov.newProductId,
2447
2457
  newProductDetail: ov.newProductDetailId,
2458
+ newBatchId: ov.newBatchId,
2448
2459
  newPackingType: ov.newPackingType,
2449
2460
  newUom: ov.newUom,
2450
2461
  newUomValue: parseFloat(ov.newUomValue),
2451
2462
  outputQty: ov.outputQty ? ov.outputQty : ov.qty,
2452
- remark: ov.remark,
2463
+ //remark: ov.remark,
2453
2464
  orderVasItemsPatch: this.vasGrist.dirtyData.records.reduce((acc, cur) => {
2454
2465
  if (cur.vasGristId === ov.vasGristId) {
2455
- return [...acc, { vas: { id: cur.vas.id, name: cur.vas.name }, vasQty: cur.vasQty, cuFlag: '+' }]
2466
+ return [
2467
+ ...acc,
2468
+ {
2469
+ vas: { id: cur.vas.id, name: cur.vas.name },
2470
+ vasQty: cur.vasQty,
2471
+ vasRemark: cur.vasRemark,
2472
+ cuFlag: '+'
2473
+ }
2474
+ ]
2456
2475
  } else {
2457
2476
  return acc
2458
2477
  }
@@ -2749,7 +2768,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2749
2768
  this.vasGrist.dirtyData.records.map((record, index) => {
2750
2769
  if (index === rowIndex && record.newSKU) {
2751
2770
  if (record.qty) {
2752
- record.outputQty = record.qty
2771
+ record.outputQty = record.qty
2753
2772
  record.newUnitUomValue = record.newUomValue
2754
2773
  record.newUomValue = record.qty * record.newUomValue
2755
2774
  } else {
@@ -3895,6 +3914,14 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
3895
3914
  imex: { header: i18next.t('field.vas_qty'), key: 'vasQty', width: 25, type: 'integer' },
3896
3915
  width: 150
3897
3916
  },
3917
+ {
3918
+ type: 'string',
3919
+ name: 'newBatchId',
3920
+ header: i18next.t('field.batch_no_(new_sku)'),
3921
+ sortable: false,
3922
+ imex: { header: i18next.t('field.batch_no_(new_sku)'), key: 'newBatchId', width: 25, type: 'string' },
3923
+ width: 150
3924
+ },
3898
3925
  {
3899
3926
  type: 'string',
3900
3927
  name: 'newSKU',
@@ -3944,6 +3971,15 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
3944
3971
  type: 'string'
3945
3972
  },
3946
3973
  width: 150
3974
+ },
3975
+ {
3976
+ type: 'string',
3977
+ name: 'vasRemark',
3978
+ header: i18next.t('field.remark'),
3979
+ record: { align: 'center' },
3980
+ sortable: false,
3981
+ imex: { header: i18next.t('field.remark'), key: 'vasRemark', width: 75, type: 'string' },
3982
+ width: 200
3947
3983
  }
3948
3984
  ]
3949
3985
  }