@things-factory/operato-wms 4.1.24 → 4.1.25

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.
@@ -45,19 +45,20 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
45
45
  _importCargo: Boolean,
46
46
  _hasContainer: Boolean,
47
47
  _looseItem: Boolean,
48
- isUserBelongsDomain: Boolean,
49
48
  _status: String,
50
49
  _bizplaceName: String,
51
50
  _attachments: Array,
51
+ _template: Object,
52
+ _showAssignWarehouse: Boolean,
53
+ _vasExpanded: Boolean,
54
+ _enableCartonLabel: Boolean,
55
+ _strictProductSelection: Boolean,
56
+ isUserBelongsDomain: Boolean,
52
57
  data: Object,
53
58
  productGristConfig: Object,
54
59
  vasGristConfig: Object,
55
60
  productData: Object,
56
61
  vasData: Object,
57
- _template: Object,
58
- _showAssignWarehouse: Boolean,
59
- _vasExpanded: Boolean,
60
- _enableCartonLabel: Boolean,
61
62
  arrivalNoticeId: String
62
63
  }
63
64
  }
@@ -462,6 +463,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
462
463
  this.vasData = { records: [] }
463
464
  this._showAssignWarehouse = false
464
465
  this._vasExpanded = false
466
+ this._strictProductSelection = false
465
467
  }
466
468
 
467
469
  get arrivalNoticeForm() {
@@ -894,6 +896,8 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
894
896
  })
895
897
  }
896
898
  this._enableCartonLabel = await fetchSettingRule('enable-carton-label', partnerDomainId)
899
+ this._strictProductSelection = await fetchSettingRule('strict-product-selection', partnerDomainId)
900
+ let a = this._strictProductSelection
897
901
  this.updateContext()
898
902
  }
899
903
  }
@@ -1336,6 +1340,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1336
1340
  .ganNo="${this._ganNo}"
1337
1341
  .productData="${this.productData}"
1338
1342
  .bizplace="${this.orderBizplace}"
1343
+ .strictEditable="${this._strictProductSelection}"
1339
1344
  @completed="${this._fetchGAN.bind(this)}"
1340
1345
  ></edit-product-popup>
1341
1346
  `,
@@ -74,7 +74,8 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
74
74
  editProductConfig: Object,
75
75
  addProductConfig: Object,
76
76
  productData: Object,
77
- newProductData: Object
77
+ newProductData: Object,
78
+ strictEditable: Boolean
78
79
  }
79
80
  }
80
81
 
@@ -180,21 +181,21 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
180
181
  type: 'code',
181
182
  name: 'packingType',
182
183
  header: i18next.t('field.packing_type'),
183
- record: { editable: true, codeName: 'PACKING_TYPES' },
184
+ record: { editable: !this.strictEditable, codeName: 'PACKING_TYPES' },
184
185
  width: 150
185
186
  },
186
187
  {
187
188
  type: 'float',
188
189
  name: 'uomValue',
189
190
  header: i18next.t('field.uom_value'),
190
- record: { options: { min: 0 } },
191
+ record: { editable: !this.strictEditable, options: { min: 0 } },
191
192
  width: 80
192
193
  },
193
194
  {
194
195
  type: 'code',
195
196
  name: 'uom',
196
197
  header: i18next.t('field.uom'),
197
- record: { codeName: 'WEIGHT_UNITS' },
198
+ record: { editable: !this.strictEditable, codeName: 'WEIGHT_UNITS' },
198
199
  width: 80
199
200
  },
200
201
  {
@@ -315,21 +316,21 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
315
316
  type: 'code',
316
317
  name: 'packingType',
317
318
  header: i18next.t('field.packing_type'),
318
- record: { codeName: 'PACKING_TYPES' },
319
+ record: { editable: !this.strictEditable, codeName: 'PACKING_TYPES' },
319
320
  width: 150
320
321
  },
321
322
  {
322
323
  type: 'float',
323
324
  name: 'uomValue',
324
325
  header: i18next.t('field.uom_value'),
325
- record: { editable: true, options: { min: 0 } },
326
+ record: { editable: !this.strictEditable, options: { min: 0 } },
326
327
  width: 80
327
328
  },
328
329
  {
329
330
  type: 'code',
330
331
  name: 'uom',
331
332
  header: i18next.t('field.uom'),
332
- record: { editable: true, codeName: 'WEIGHT_UNITS' },
333
+ record: { editable: !this.strictEditable, codeName: 'WEIGHT_UNITS' },
333
334
  width: 80
334
335
  },
335
336
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.1.24",
3
+ "version": "4.1.25",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -108,5 +108,5 @@
108
108
  "devDependencies": {
109
109
  "@things-factory/builder": "^4.1.19"
110
110
  },
111
- "gitHead": "4b53e53d4daa1258317b2e9f5260fc3038586a18"
111
+ "gitHead": "c336bb131f76a65f55b114a6b5c1296ee08f08b8"
112
112
  }