@things-factory/operato-wms 4.0.44 → 4.1.2

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.
@@ -0,0 +1,191 @@
1
+ import '@things-factory/grist-ui'
2
+
3
+ import { css, html, LitElement } from 'lit-element'
4
+ import { connect } from 'pwa-helpers/connect-mixin'
5
+
6
+ import { SingleColumnFormStyles } from '@things-factory/form-ui'
7
+ import { i18next, localize } from '@things-factory/i18n-base'
8
+ import { store, CustomAlert } from '@things-factory/shell'
9
+ import { isMobileDevice } from '@things-factory/utils'
10
+
11
+ class PutawaySameCartonPopup extends connect(store)(localize(i18next)(LitElement)) {
12
+ static get properties() {
13
+ return {
14
+ config: Object,
15
+ data: Object,
16
+ putawayInventories: Array
17
+ }
18
+ }
19
+
20
+ constructor() {
21
+ super()
22
+ this._selectedInventoryIds = []
23
+ }
24
+
25
+ static get styles() {
26
+ return [
27
+ SingleColumnFormStyles,
28
+ css`
29
+ .button-container {
30
+ padding: var(--button-container-padding);
31
+ margin: var(--button-container-margin);
32
+ text-align: var(--button-container-align);
33
+ background-color: var(--button-container-background);
34
+ height: var(--button-container-height);
35
+ }
36
+ .button-container button {
37
+ background-color: var(--button-container-button-background-color);
38
+ border-radius: var(--button-container-button-border-radius);
39
+ height: var(--button-container-button-height);
40
+ border: var(--button-container-button-border);
41
+ margin: var(--button-container-button-margin);
42
+
43
+ padding: var(--button-padding);
44
+ color: var(--theme-white-color);
45
+ font: var(--button-font);
46
+ text-transform: var(--button-text-transform);
47
+ }
48
+ .button-container button:hover,
49
+ .button-container button:active {
50
+ background-color: var(--button-background-focus-color);
51
+ }
52
+ data-grist {
53
+ overflow-y: hidden;
54
+ flex: 1;
55
+ }
56
+ .grist {
57
+ display: flex;
58
+ flex-direction: column;
59
+ flex: 1;
60
+ overflow-y: auto;
61
+ }
62
+ :host {
63
+ padding: 10px;
64
+ display: flex;
65
+ flex-direction: column;
66
+ overflow: hidden;
67
+ background-color: white;
68
+ }
69
+ `
70
+ ]
71
+ }
72
+
73
+ get dataGrist() {
74
+ return this.shadowRoot.querySelector('data-grist')
75
+ }
76
+
77
+ updated(changeProps) {
78
+ if (changeProps.has('putawayInventories')) {
79
+ if (this.putawayInventories && this.putawayInventories.length) {
80
+ this.data = { records: this.putawayInventories }
81
+ }
82
+ }
83
+ }
84
+
85
+ render() {
86
+ return html`
87
+ <div class="grist">
88
+ <data-grist
89
+ id="grist"
90
+ .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
91
+ .config=${this.config}
92
+ .data="${this.data}"
93
+ ></data-grist>
94
+ </div>
95
+
96
+ <div class="button-container">
97
+ <mwc-button
98
+ raised
99
+ @click="${this._selectPutawayInventories.bind(this)}"
100
+ label="${i18next.t('button.select')}"
101
+ ></mwc-button>
102
+ </div>
103
+ `
104
+ }
105
+
106
+ firstUpdated() {
107
+ this.config = {
108
+ pagination: { infinite: true },
109
+ rows: { selectable: { multiple: true }, appendable: false },
110
+ list: { fields: ['palletId', 'cartonId', 'batchId', 'product', 'packingType', 'packingSize', 'qty', 'status'] },
111
+ columns: [
112
+ { type: 'gutter', gutterName: 'sequence' },
113
+ { type: 'gutter', gutterName: 'row-selector', multiple: true },
114
+ { name: 'id', hidden: true },
115
+ {
116
+ type: 'string',
117
+ name: 'cartonId',
118
+ label: true,
119
+ header: i18next.t('field.carton_id'),
120
+ width: 150
121
+ },
122
+ {
123
+ type: 'object',
124
+ name: 'product',
125
+ label: true,
126
+ header: i18next.t('field.product'),
127
+ width: 250
128
+ },
129
+ {
130
+ type: 'string',
131
+ name: 'batchId',
132
+ label: true,
133
+ header: i18next.t('field.batch_id'),
134
+ width: 150
135
+ },
136
+ {
137
+ type: 'string',
138
+ name: 'packingType',
139
+ label: true,
140
+ header: i18next.t('field.packing_type'),
141
+ width: 120
142
+ },
143
+ {
144
+ type: 'integer',
145
+ name: 'packingSize',
146
+ label: true,
147
+ header: i18next.t('field.packing_size'),
148
+ width: 100
149
+ },
150
+ {
151
+ type: 'integer',
152
+ name: 'qty',
153
+ label: true,
154
+ header: i18next.t('field.qty'),
155
+ width: 100
156
+ }
157
+ ]
158
+ }
159
+ }
160
+
161
+ async _selectPutawayInventories() {
162
+ try {
163
+ let selectedInventories = []
164
+ selectedInventories = this.dataGrist.selected.map(({ name, expirationDate, expirationPeriod, palletId }) => ({
165
+ name,
166
+ expirationDate,
167
+ expirationPeriod,
168
+ palletId
169
+ }))
170
+ if (!selectedInventories?.length) throw new Error(i18next.t('text.select_at_least_one_inventory_to_putaway'))
171
+
172
+ this.dispatchEvent(new CustomEvent('selections', { detail: selectedInventories }))
173
+ history.back()
174
+ } catch (e) {
175
+ this._showToast(e)
176
+ }
177
+ }
178
+
179
+ _showToast({ type, message }) {
180
+ document.dispatchEvent(
181
+ new CustomEvent('notify', {
182
+ detail: {
183
+ type,
184
+ message
185
+ }
186
+ })
187
+ )
188
+ }
189
+ }
190
+
191
+ window.customElements.define('putaway-same-carton-popup', PutawaySameCartonPopup)
@@ -0,0 +1,369 @@
1
+ import '@things-factory/grist-ui'
2
+
3
+ import gql from 'graphql-tag'
4
+ import { css, html, LitElement } from 'lit-element'
5
+ import { connect } from 'pwa-helpers/connect-mixin'
6
+
7
+ import { SingleColumnFormStyles } from '@things-factory/form-ui'
8
+ import { i18next, localize } from '@things-factory/i18n-base'
9
+ import { client, store, CustomAlert } from '@things-factory/shell'
10
+ import { isMobileDevice } from '@things-factory/utils'
11
+
12
+ import { ARRIVAL_NOTICE, CUSTOMER_RETURN, WAREHOUSE_RETURN } from '../constants'
13
+
14
+ const AVAIL_ORDER_TYPES = { ARRIVAL_NOTICE, CUSTOMER_RETURN, WAREHOUSE_RETURN }
15
+
16
+ class UndoPutawayPopup extends connect(store)(localize(i18next)(LitElement)) {
17
+ static get properties() {
18
+ return {
19
+ _autoSelectInventory: Array,
20
+ _selectedInventories: Array,
21
+ config: Object,
22
+ data: Object,
23
+ enableCartonLabel: Boolean,
24
+ orderType: String,
25
+ orderNo: String,
26
+ putawayInventories: Array
27
+ }
28
+ }
29
+
30
+ constructor() {
31
+ super()
32
+ this._selectedInventories = []
33
+ this._autoSelectInventory = []
34
+ }
35
+
36
+ static get styles() {
37
+ return [
38
+ SingleColumnFormStyles,
39
+ css`
40
+ .button-container {
41
+ padding: var(--button-container-padding);
42
+ margin: var(--button-container-margin);
43
+ text-align: var(--button-container-align);
44
+ background-color: var(--button-container-background);
45
+ height: var(--button-container-height);
46
+ }
47
+ .button-container button {
48
+ background-color: var(--button-container-button-background-color);
49
+ border-radius: var(--button-container-button-border-radius);
50
+ height: var(--button-container-button-height);
51
+ border: var(--button-container-button-border);
52
+ margin: var(--button-container-button-margin);
53
+
54
+ padding: var(--button-padding);
55
+ color: var(--theme-white-color);
56
+ font: var(--button-font);
57
+ text-transform: var(--button-text-transform);
58
+ }
59
+ .button-container button:hover,
60
+ .button-container button:active {
61
+ background-color: var(--button-background-focus-color);
62
+ }
63
+ data-grist {
64
+ overflow-y: hidden;
65
+ flex: 1;
66
+ }
67
+ .grist {
68
+ display: flex;
69
+ flex-direction: column;
70
+ flex: 1;
71
+ overflow-y: auto;
72
+ }
73
+ :host {
74
+ padding: 10px;
75
+ display: flex;
76
+ flex-direction: column;
77
+ overflow: hidden;
78
+ background-color: white;
79
+ }
80
+ `
81
+ ]
82
+ }
83
+
84
+ get cartonInput() {
85
+ return this.shadowRoot.querySelector('barcode-scanable-input[name=cartonId]').shadowRoot.querySelector('input')
86
+ }
87
+
88
+ get dataGrist() {
89
+ return this.shadowRoot.querySelector('data-grist')
90
+ }
91
+
92
+ get inputForm() {
93
+ return this.shadowRoot.querySelector('form#input-form')
94
+ }
95
+
96
+ get lotInput() {
97
+ return this.shadowRoot.querySelector('barcode-scanable-input[name=lotId]').shadowRoot.querySelector('input')
98
+ }
99
+
100
+ render() {
101
+ return html`
102
+ <form id="input-form" class="single-column-form" @keypress="${this._populateTargetedInventory.bind(this)}">
103
+ <fieldset>
104
+ ${this.enableCartonLabel
105
+ ? html`<label>${i18next.t('label.carton_id')}</label>
106
+ <barcode-scanable-input name="cartonId" without-enter custom-input></barcode-scanable-input>`
107
+ : html`<label>${i18next.t('label.lot_id')}</label>
108
+ <barcode-scanable-input name="lotId" without-enter custom-input></barcode-scanable-input>`}
109
+ </fieldset>
110
+ </form>
111
+
112
+ <div class="grist">
113
+ <data-grist
114
+ id="grist"
115
+ .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
116
+ .config=${this.config}
117
+ .data="${this.data}"
118
+ ></data-grist>
119
+ </div>
120
+
121
+ <div class="button-container">
122
+ <mwc-button raised @click="${this._undoPutaway.bind(this)}" label="${i18next.t('button.undo')}"></mwc-button>
123
+ </div>
124
+ `
125
+ }
126
+
127
+ firstUpdated() {
128
+ this.config = {
129
+ pagination: { infinite: true },
130
+ rows: { selectable: { multiple: true }, appendable: false },
131
+ list: { fields: ['palletId', 'cartonId', 'batchId', 'product', 'packingType', 'packingSize', 'qty', 'status'] },
132
+ columns: [
133
+ { type: 'gutter', gutterName: 'sequence' },
134
+ { type: 'gutter', gutterName: 'row-selector', multiple: true },
135
+ { name: 'id', hidden: true },
136
+ {
137
+ type: 'string',
138
+ name: 'palletId',
139
+ label: true,
140
+ header: i18next.t('field.lot_id'),
141
+ width: 150
142
+ },
143
+ {
144
+ type: 'string',
145
+ name: 'cartonId',
146
+ label: true,
147
+ header: i18next.t('field.carton_id'),
148
+ width: 150
149
+ },
150
+ {
151
+ type: 'string',
152
+ name: 'batchId',
153
+ label: true,
154
+ header: i18next.t('field.batch_id'),
155
+ width: 150
156
+ },
157
+ {
158
+ type: 'object',
159
+ name: 'product',
160
+ label: true,
161
+ header: i18next.t('field.product'),
162
+ width: 250
163
+ },
164
+ {
165
+ type: 'string',
166
+ name: 'packingType',
167
+ label: true,
168
+ header: i18next.t('field.packing_type'),
169
+ width: 120
170
+ },
171
+ {
172
+ type: 'integer',
173
+ name: 'packingSize',
174
+ label: true,
175
+ header: i18next.t('field.packing_size'),
176
+ width: 100
177
+ },
178
+ {
179
+ type: 'integer',
180
+ name: 'qty',
181
+ label: true,
182
+ header: i18next.t('field.qty'),
183
+ width: 100
184
+ },
185
+ {
186
+ type: 'string',
187
+ name: 'status',
188
+ label: true,
189
+ header: i18next.t('field.status'),
190
+ width: 120
191
+ }
192
+ ]
193
+ }
194
+
195
+ if (this.enableCartonLabel) {
196
+ this._focusOnCartonInput()
197
+ } else {
198
+ this._focusOnLotInput()
199
+ }
200
+ }
201
+
202
+ async _undoPutaway() {
203
+ try {
204
+ let selectedInventories = []
205
+ if (this._autoSelectInventory?.length) {
206
+ selectedInventories = this._autoSelectInventory
207
+ } else {
208
+ selectedInventories = this.dataGrist.selected
209
+ }
210
+ if (!selectedInventories?.length) throw new Error(i18next.t('text.select_at_least_one_inventory_to_undo'))
211
+
212
+ this._validateScanInventory()
213
+
214
+ let response = {}
215
+
216
+ if (this.orderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
217
+ response = await this._undoArrivalNoticePutaway(selectedInventories)
218
+ } else if (this.orderType === AVAIL_ORDER_TYPES.CUSTOMER_RETURN.value) {
219
+ response = await this._undoCustomerReturnPutaway(selectedInventories)
220
+ }
221
+
222
+ if (response && !response?.errors) {
223
+ this.dispatchEvent(new CustomEvent('undo-inventory'))
224
+ }
225
+ } catch (e) {
226
+ this._showToast(e)
227
+ }
228
+ }
229
+
230
+ _populateTargetedInventory(e) {
231
+ if (e.keyCode === 13) {
232
+ e.preventDefault()
233
+
234
+ let targetedUndoInventories = []
235
+
236
+ if (this.enableCartonLabel) {
237
+ targetedUndoInventories = this.putawayInventories.filter(
238
+ inventory => inventory.cartonId === this.cartonInput?.value
239
+ )
240
+ } else {
241
+ targetedUndoInventories = this.putawayInventories.filter(
242
+ inventory => inventory.palletId === this.lotInput?.value
243
+ )
244
+ }
245
+
246
+ if (!targetedUndoInventories?.length) {
247
+ if (this.enableCartonLabel) {
248
+ this.cartonInput.value = ''
249
+ } else {
250
+ this.lotInput.value = ''
251
+ }
252
+ this._showToast({ message: i18next.t('text.no_matching_putaway_inventory_found') })
253
+ } else if (targetedUndoInventories?.length == 1) {
254
+ this.data = { records: targetedUndoInventories }
255
+ this._autoSelectInventory = targetedUndoInventories
256
+ this._undoPutaway()
257
+ } else {
258
+ this.data = { records: targetedUndoInventories }
259
+ }
260
+ }
261
+ }
262
+
263
+ async _undoArrivalNoticePutaway(selectedInventories) {
264
+ try {
265
+ if (selectedInventories.length > 1) {
266
+ const result = await CustomAlert({
267
+ title: i18next.t('title.are_you_sure'),
268
+ text: i18next.t('text.undo_putaway'),
269
+ confirmButton: { text: i18next.t('button.confirm') },
270
+ cancelButton: { text: i18next.t('button.cancel') }
271
+ })
272
+
273
+ if (!result?.value) {
274
+ return
275
+ }
276
+ }
277
+
278
+ const response = await client.mutate({
279
+ mutation: gql`
280
+ mutation undoPutaway($worksheetDetailName: [String]!, $palletId: String, $cartonId: String) {
281
+ undoPutaway(worksheetDetailName: $worksheetDetailName, palletId: $palletId, cartonId: $cartonId)
282
+ }
283
+ `,
284
+ variables: {
285
+ worksheetDetailName: selectedInventories.map(inventory => inventory.name),
286
+ palletId: this.enableCartonLabel ? null : selectedInventories[0].palletId,
287
+ cartonId: this.enableCartonLabel ? selectedInventories[0].cartonId : null
288
+ }
289
+ })
290
+
291
+ if (!response.errors) {
292
+ return response
293
+ }
294
+ } catch (e) {
295
+ this._showToast(e)
296
+ }
297
+ }
298
+
299
+ async _undoCustomerReturnPutaway(selectedInventories) {
300
+ try {
301
+ if (selectedInventories.length > 1) {
302
+ const result = await CustomAlert({
303
+ title: i18next.t('title.are_you_sure'),
304
+ text: i18next.t('text.undo_putaway'),
305
+ confirmButton: { text: i18next.t('button.confirm') },
306
+ cancelButton: { text: i18next.t('button.cancel') }
307
+ })
308
+
309
+ if (!result?.value) {
310
+ return
311
+ }
312
+ }
313
+
314
+ const response = await client.mutate({
315
+ mutation: gql`
316
+ mutation undoPutawayReturn($worksheetDetailName: [String]!, $palletId: String, $cartonId: String) {
317
+ undoPutawayReturn(worksheetDetailName: $worksheetDetailName, palletId: $palletId, cartonId: $cartonId)
318
+ }
319
+ `,
320
+ variables: {
321
+ worksheetDetailName: selectedInventories.map(inventory => inventory.name),
322
+ palletId: this.enableCartonLabel ? null : selectedInventories[0].palletId,
323
+ cartonId: this.enableCartonLabel ? selectedInventories[0].cartonId : null
324
+ }
325
+ })
326
+
327
+ if (!response.errors) {
328
+ return response
329
+ }
330
+ } catch (e) {
331
+ this._showToast(e)
332
+ }
333
+ }
334
+
335
+ _focusOnLotInput() {
336
+ setTimeout(() => this.lotInput.focus(), 100)
337
+ }
338
+
339
+ _focusOnCartonInput() {
340
+ setTimeout(() => this.cartonInput.focus(), 100)
341
+ }
342
+
343
+ _validateScanInventory() {
344
+ if (this.enableCartonLabel) {
345
+ if (!this.cartonInput?.value) {
346
+ this._focusOnCartonInput()
347
+ throw new Error(i18next.t('text.carton_id_is_empty'))
348
+ }
349
+ } else {
350
+ if (!this.lotInput?.value) {
351
+ this._focusOnLotInput()
352
+ throw new Error(i18next.t('text.lot_id_is_empty'))
353
+ }
354
+ }
355
+ }
356
+
357
+ _showToast({ type, message }) {
358
+ document.dispatchEvent(
359
+ new CustomEvent('notify', {
360
+ detail: {
361
+ type,
362
+ message
363
+ }
364
+ })
365
+ )
366
+ }
367
+ }
368
+
369
+ window.customElements.define('undo-putaway-popup', UndoPutawayPopup)
@@ -634,6 +634,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
634
634
  sku
635
635
  description
636
636
  sku
637
+ isRequiredCheckExpiry
637
638
  }
638
639
  inventory {
639
640
  id
@@ -959,7 +960,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
959
960
  if (foundOrderProducts?.length > 1 && !this._selectedOrderProduct) {
960
961
  this.selectOrderProduct(foundOrderProducts)
961
962
  } else {
962
- this._selectedOrderProduct = foundOrderProducts[0]
963
+ this._selectedOrderProduct = foundParentProducts[0]
963
964
  }
964
965
  }
965
966
  } catch (e) {
@@ -222,6 +222,12 @@ class WorksheetPutaway extends localize(i18next)(PageView) {
222
222
  header: i18next.t('field.lot_id'),
223
223
  width: 150
224
224
  },
225
+ {
226
+ type: 'string',
227
+ name: 'cartonId',
228
+ header: i18next.t('field.carton_id'),
229
+ width: 150
230
+ },
225
231
  {
226
232
  type: 'string',
227
233
  name: 'productSku',
@@ -494,12 +500,6 @@ class WorksheetPutaway extends localize(i18next)(PageView) {
494
500
  header: i18next.t('field.batch_no_ref'),
495
501
  width: 100
496
502
  }
497
- const cartonIdColumnConfig = {
498
- type: 'string',
499
- name: 'cartonId',
500
- header: i18next.t('field.carton_id'),
501
- width: 120
502
- }
503
503
 
504
504
  this.preConfig.columns.map(column => {
505
505
  if (column.name === 'description') {
@@ -507,11 +507,6 @@ class WorksheetPutaway extends localize(i18next)(PageView) {
507
507
  }
508
508
  })
509
509
 
510
- if (this.data.records.some(e => e.cartonId)) {
511
- const palletIdColumnIdx = this.preConfig.columns.map(c => c.name).indexOf('palletId')
512
- this.preConfig.columns.splice(palletIdColumnIdx, 1, cartonIdColumnConfig)
513
- }
514
-
515
510
  if (
516
511
  !this.preConfig.columns.some(e => e.name === 'status') &&
517
512
  this._worksheetStatus !== WORKSHEET_STATUS.DEACTIVATED.value
@@ -149,6 +149,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
149
149
  this.config = {
150
150
  rows: { appendable: false, selectable: { multiple: true } },
151
151
  list: { fields: ['bizplace', 'sku', 'name', 'description', 'type', 'qty'] },
152
+ pagination: { limit: 100, pages: [100, 200, 500, 1000] },
152
153
  columns: [
153
154
  { type: 'gutter', gutterName: 'sequence' },
154
155
  { type: 'gutter', gutterName: 'row-selector', multiple: true },
@@ -164,13 +165,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
164
165
  type: 'object',
165
166
  name: 'bizplace',
166
167
  header: i18next.t('field.company'),
167
- imex: {
168
- header: i18next.t('field.company'),
169
- key: 'bizplace.name',
170
- width: 50,
171
- type: 'array',
172
- arrData: []
173
- },
168
+ imex: { header: i18next.t('field.company'), key: 'bizplace', width: 50, type: 'string' },
174
169
  sortable: true,
175
170
  width: 300
176
171
  },
@@ -384,6 +379,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
384
379
  sku: item.sku,
385
380
  description: item.description,
386
381
  type: item.type,
382
+ bizplace: item.bizplace.name,
387
383
  product_ref: refName + refDesc,
388
384
  qty: item.qty,
389
385
  minQty: item.minQty,
@@ -187,14 +187,14 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
187
187
  type: 'float',
188
188
  name: 'uomValue',
189
189
  header: i18next.t('field.uom_value'),
190
- record: { editable: true, options: { min: 0 } },
190
+ record: { options: { min: 0 } },
191
191
  width: 80
192
192
  },
193
193
  {
194
194
  type: 'code',
195
195
  name: 'uom',
196
196
  header: i18next.t('field.uom'),
197
- record: { editable: true, codeName: 'WEIGHT_UNITS' },
197
+ record: { codeName: 'WEIGHT_UNITS' },
198
198
  width: 80
199
199
  },
200
200
  {
@@ -315,7 +315,7 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
315
315
  type: 'code',
316
316
  name: 'packingType',
317
317
  header: i18next.t('field.packing_type'),
318
- record: { editable: true, codeName: 'PACKING_TYPES' },
318
+ record: { codeName: 'PACKING_TYPES' },
319
319
  width: 150
320
320
  },
321
321
  {
@@ -236,16 +236,7 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
236
236
  icon: 'reorder',
237
237
  handlers: {
238
238
  click: (columns, data, column, record, rowIndex) => {
239
- const status = record.status
240
- if (
241
- status === ORDER_STATUS.PENDING_RECEIVE.value ||
242
- status === ORDER_STATUS.PENDING_CANCEL.value ||
243
- status === ORDER_STATUS.PENDING_WORKSHEET.value
244
- ) {
245
- navigate(`receive_release_order_request/${record.name}`) // 1. move to order receiving page
246
- } else {
247
- navigate(`release_order_detail/${record.name}`)
248
- }
239
+ navigate(`release_order_detail/${record.name}`)
249
240
  }
250
241
  }
251
242
  },
@@ -964,7 +964,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
964
964
  this._attachments = releaseOrder && releaseOrder.attachment
965
965
  }
966
966
 
967
- if (releaseOrder.status !== 'DONE') {
967
+ if (releaseOrder.status !== 'DONE' && this.isUserBelongsDomain) {
968
968
  this._editable = true
969
969
  } else {
970
970
  this._editable = false