@things-factory/operato-wms 4.3.70 → 4.3.74

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.
@@ -423,25 +423,6 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
423
423
  }
424
424
 
425
425
  async fetchHandler({ page, limit, sorters = [] }) {
426
- let filters = this.searchForm.queryFilters.map(filter => {
427
- switch (filter.name) {
428
- case 'fromDate':
429
- let fromDt = new Date(filter.value)
430
- fromDt.setHours(0)
431
- filter.value = fromDt.toISOString()
432
- filter.name = 'createdAt'
433
- break
434
- case 'toDate':
435
- let toDt = new Date(filter.value)
436
- toDt.setHours(23, 59, 59)
437
- filter.value = toDt.toISOString()
438
- filter.name = 'createdAt'
439
- break
440
- default:
441
- break
442
- }
443
- return filter
444
- })
445
426
  const response = await client.query({
446
427
  query: gql`
447
428
  query releaseGoodRequests($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
@@ -500,7 +481,7 @@ class B2cOrderRequests extends connect(store)(localize(i18next)(PageView)) {
500
481
  }
501
482
  `,
502
483
  variables: {
503
- filters: [...filters, { name: 'type', operator: 'eq', value: 'b2c' }],
484
+ filters: [...(await this.searchForm.getQueryFilters()), { name: 'type', operator: 'eq', value: 'b2c' }],
504
485
  pagination: { page, limit },
505
486
  sortings: sorters
506
487
  }
@@ -1684,6 +1684,10 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1684
1684
  }
1685
1685
 
1686
1686
  _clearPage() {
1687
+ this._showReleasedOrderInfo = false
1688
+ this._showShippingInfo = true
1689
+ this._showExportInfo = true
1690
+
1687
1691
  this._releaseOrder = {}
1688
1692
  this._status = null
1689
1693
  this.roType = 'b2b'
@@ -176,6 +176,7 @@ class PrintDeliveryOrder extends localize(i18next)(PageView) {
176
176
 
177
177
  let orderInfo = deliveryOrderData.deliveryOrderInfo
178
178
  let contactPoints = deliveryOrderData.contactPointInfo
179
+ this._roNo = orderInfo.releaseGood.name
179
180
  this._status = orderInfo.doStatus
180
181
  this._ownCollection = orderInfo.ownCollection
181
182
  // this._customerContactPoints = deliveryOrderData.contactPointInfo
@@ -6,6 +6,7 @@ import gql from 'graphql-tag'
6
6
  import { isMobileDevice } from '@things-factory/utils'
7
7
  import { fetchSettingRule } from '../../fetch-setting-value'
8
8
  import { ORDER_STATUS } from '../constants'
9
+ import { sleep } from '@things-factory/utils'
9
10
 
10
11
  class GenerateWorksheetPopup extends localize(i18next)(LitElement) {
11
12
  static get properties() {
@@ -127,8 +128,18 @@ class GenerateWorksheetPopup extends localize(i18next)(LitElement) {
127
128
  <div class="button-container">
128
129
  <mwc-button
129
130
  raised
130
- @click="${async () =>
131
- this._generateStd == 'single' ? this._generatePickingWorksheet() : this._generateBatchPickingWorksheet()}"
131
+ @click="${async e => {
132
+ const button = e.currentTarget
133
+ this.disableButton(button)
134
+ try {
135
+ this._generateStd == 'single'
136
+ ? await this._generatePickingWorksheet()
137
+ : await this._generateBatchPickingWorksheet()
138
+ } finally {
139
+ await sleep(200)
140
+ this.enableButton(button)
141
+ }
142
+ }}"
132
143
  label="${i18next.t('button.confirm')}"
133
144
  ></mwc-button>
134
145
  </div>
@@ -322,6 +333,18 @@ class GenerateWorksheetPopup extends localize(i18next)(LitElement) {
322
333
  }
323
334
  }
324
335
 
336
+ disableButton(button) {
337
+ button.icon = 'rotate_right'
338
+ button.setAttribute('working', true)
339
+ button.disabled = true
340
+ }
341
+
342
+ enableButton(button) {
343
+ button.disabled = false
344
+ button.icon = ''
345
+ button.removeAttribute('working')
346
+ }
347
+
325
348
  _showToast({ type, message }) {
326
349
  document.dispatchEvent(
327
350
  new CustomEvent('notify', {
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/graphql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAmC;AACnC,uDAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,QAAQ;IACR,SAAS;CACV,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/graphql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAmC;AACnC,uDAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,QAAQ;IACR,SAAS;CACV,CAAA"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/resolvers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,8DAA+C;AAC/C,4DAA6C;AAC7C,8DAA+C;AAC/C,uDAAwC;AACxC,+CAAgC;AAChC,oDAAqC;AACrC,mDAAoC;AACpC,4EAA6D;AAC7D,uEAAwD;AACxD,+FAAgF;AAEnE,QAAA,OAAO,GAAG;IACrB,YAAY,CAAC,KAAK;IAClB,WAAW,CAAC,KAAK;IACjB,YAAY,CAAC,KAAK;IAClB,SAAS,CAAC,KAAK;IACf,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,KAAK;IACb,mBAAmB,CAAC,KAAK;IACzB,iBAAiB,CAAC,KAAK;CACxB,CAAA;AAEY,QAAA,SAAS,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAC,4BAA4B,CAAC,QAAQ,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/resolvers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAA+C;AAC/C,4DAA6C;AAC7C,8DAA+C;AAC/C,uDAAwC;AACxC,+CAAgC;AAChC,oDAAqC;AACrC,mDAAoC;AACpC,4EAA6D;AAC7D,uEAAwD;AACxD,+FAAgF;AAEnE,QAAA,OAAO,GAAG;IACrB,YAAY,CAAC,KAAK;IAClB,WAAW,CAAC,KAAK;IACjB,YAAY,CAAC,KAAK;IAClB,SAAS,CAAC,KAAK;IACf,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,KAAK;IACb,mBAAmB,CAAC,KAAK;IACzB,iBAAiB,CAAC,KAAK;CACxB,CAAA;AAEY,QAAA,SAAS,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAC,4BAA4B,CAAC,QAAQ,CAAC,CAAA"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,8DAA+C;AAC/C,4DAA6C;AAC7C,8DAA+C;AAC/C,uDAAwC;AACxC,+CAAgC;AAChC,oDAAqC;AACrC,mDAAoC;AACpC,4EAA6D;AAC7D,sEAAuD;AACvD,qFAAsE;AACzD,QAAA,OAAO,GAAG;IACrB,YAAY,CAAC,KAAK;IAClB,WAAW,CAAC,KAAK;IACjB,YAAY,CAAC,KAAK;IAClB,SAAS,CAAC,KAAK;IACf,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,KAAK;IACb,mBAAmB,CAAC,KAAK;IACzB,gBAAgB,CAAC,KAAK;CACvB,CAAA;AAEY,QAAA,SAAS,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AAExD,QAAA,KAAK,GAAG;IACnB,GAAG,YAAY,CAAC,KAAK;IACrB,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,SAAS,CAAC,KAAK;IAClB,GAAG,OAAO,CAAC,KAAK;IAChB,GAAG,OAAO,CAAC,KAAK;IAChB,GAAG,mBAAmB,CAAC,KAAK;IAC5B,GAAG,gBAAgB,CAAC,KAAK;CAC1B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAA+C;AAC/C,4DAA6C;AAC7C,8DAA+C;AAC/C,uDAAwC;AACxC,+CAAgC;AAChC,oDAAqC;AACrC,mDAAoC;AACpC,4EAA6D;AAC7D,sEAAuD;AACvD,qFAAsE;AACzD,QAAA,OAAO,GAAG;IACrB,YAAY,CAAC,KAAK;IAClB,WAAW,CAAC,KAAK;IACjB,YAAY,CAAC,KAAK;IAClB,SAAS,CAAC,KAAK;IACf,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,KAAK;IACb,mBAAmB,CAAC,KAAK;IACzB,gBAAgB,CAAC,KAAK;CACvB,CAAA;AAEY,QAAA,SAAS,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AAExD,QAAA,KAAK,GAAG;IACnB,GAAG,YAAY,CAAC,KAAK;IACrB,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,SAAS,CAAC,KAAK;IAClB,GAAG,OAAO,CAAC,KAAK;IAChB,GAAG,OAAO,CAAC,KAAK;IAChB,GAAG,mBAAmB,CAAC,KAAK;IAC5B,GAAG,gBAAgB,CAAC,KAAK;CAC1B,CAAA"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAE5B,oBAAiB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAE5B,oBAAiB"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.70",
3
+ "version": "4.3.74",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -63,60 +63,60 @@
63
63
  "@operato/scene-tab": "^0.1.8",
64
64
  "@operato/scene-table": "^0.1.8",
65
65
  "@operato/scene-wheel-sorter": "^0.1.8",
66
- "@things-factory/apptool-ui": "^4.3.69",
67
- "@things-factory/attachment-ui": "^4.3.69",
68
- "@things-factory/auth-ui": "^4.3.69",
69
- "@things-factory/barcode-ui": "^4.3.69",
70
- "@things-factory/biz-ui": "^4.3.69",
71
- "@things-factory/board-service": "^4.3.69",
72
- "@things-factory/board-ui": "^4.3.69",
73
- "@things-factory/code-ui": "^4.3.69",
74
- "@things-factory/context-ui": "^4.3.69",
75
- "@things-factory/export-ui": "^4.3.69",
76
- "@things-factory/export-ui-csv": "^4.3.69",
77
- "@things-factory/export-ui-excel": "^4.3.69",
78
- "@things-factory/fav-base": "^4.3.69",
79
- "@things-factory/form-ui": "^4.3.69",
80
- "@things-factory/geography": "^4.3.69",
81
- "@things-factory/grist-ui": "^4.3.69",
82
- "@things-factory/help": "^4.3.69",
83
- "@things-factory/i18n-base": "^4.3.69",
84
- "@things-factory/id-rule-base": "^4.3.69",
85
- "@things-factory/import-ui": "^4.3.69",
86
- "@things-factory/import-ui-excel": "^4.3.69",
87
- "@things-factory/menu-ui": "^4.3.69",
88
- "@things-factory/more-ui": "^4.3.69",
89
- "@things-factory/notification": "^4.3.69",
90
- "@things-factory/pdf": "^4.3.66",
91
- "@things-factory/print-proxy-service": "^4.3.69",
92
- "@things-factory/print-ui": "^4.3.69",
93
- "@things-factory/product-base": "^4.3.69",
94
- "@things-factory/resource-ui": "^4.3.69",
95
- "@things-factory/sales-ui": "^4.3.70",
96
- "@things-factory/scene-data-transform": "^4.3.69",
97
- "@things-factory/scene-excel": "^4.3.69",
98
- "@things-factory/scene-firebase": "^4.3.69",
99
- "@things-factory/scene-form": "^4.3.69",
100
- "@things-factory/scene-google-map": "^4.3.69",
101
- "@things-factory/scene-graphql": "^4.3.69",
102
- "@things-factory/scene-label": "^4.3.69",
103
- "@things-factory/scene-marker": "^4.3.69",
104
- "@things-factory/scene-mqtt": "^4.3.69",
105
- "@things-factory/scene-restful": "^4.3.69",
106
- "@things-factory/scene-visualizer": "^4.3.69",
107
- "@things-factory/setting-ui": "^4.3.69",
108
- "@things-factory/system-ui": "^4.3.69",
109
- "@things-factory/transport-base": "^4.3.69",
110
- "@things-factory/tutorial-ui": "^4.3.69",
111
- "@things-factory/warehouse-base": "^4.3.69",
112
- "@things-factory/worksheet-base": "^4.3.70"
66
+ "@things-factory/apptool-ui": "^4.3.74",
67
+ "@things-factory/attachment-ui": "^4.3.74",
68
+ "@things-factory/auth-ui": "^4.3.74",
69
+ "@things-factory/barcode-ui": "^4.3.74",
70
+ "@things-factory/biz-ui": "^4.3.74",
71
+ "@things-factory/board-service": "^4.3.74",
72
+ "@things-factory/board-ui": "^4.3.74",
73
+ "@things-factory/code-ui": "^4.3.74",
74
+ "@things-factory/context-ui": "^4.3.74",
75
+ "@things-factory/export-ui": "^4.3.74",
76
+ "@things-factory/export-ui-csv": "^4.3.74",
77
+ "@things-factory/export-ui-excel": "^4.3.74",
78
+ "@things-factory/fav-base": "^4.3.74",
79
+ "@things-factory/form-ui": "^4.3.74",
80
+ "@things-factory/geography": "^4.3.74",
81
+ "@things-factory/grist-ui": "^4.3.74",
82
+ "@things-factory/help": "^4.3.74",
83
+ "@things-factory/i18n-base": "^4.3.74",
84
+ "@things-factory/id-rule-base": "^4.3.74",
85
+ "@things-factory/import-ui": "^4.3.74",
86
+ "@things-factory/import-ui-excel": "^4.3.74",
87
+ "@things-factory/menu-ui": "^4.3.74",
88
+ "@things-factory/more-ui": "^4.3.74",
89
+ "@things-factory/notification": "^4.3.74",
90
+ "@things-factory/pdf": "^4.3.74",
91
+ "@things-factory/print-proxy-service": "^4.3.74",
92
+ "@things-factory/print-ui": "^4.3.74",
93
+ "@things-factory/product-base": "^4.3.74",
94
+ "@things-factory/resource-ui": "^4.3.74",
95
+ "@things-factory/sales-ui": "^4.3.74",
96
+ "@things-factory/scene-data-transform": "^4.3.74",
97
+ "@things-factory/scene-excel": "^4.3.74",
98
+ "@things-factory/scene-firebase": "^4.3.74",
99
+ "@things-factory/scene-form": "^4.3.74",
100
+ "@things-factory/scene-google-map": "^4.3.74",
101
+ "@things-factory/scene-graphql": "^4.3.74",
102
+ "@things-factory/scene-label": "^4.3.74",
103
+ "@things-factory/scene-marker": "^4.3.74",
104
+ "@things-factory/scene-mqtt": "^4.3.74",
105
+ "@things-factory/scene-restful": "^4.3.74",
106
+ "@things-factory/scene-visualizer": "^4.3.74",
107
+ "@things-factory/setting-ui": "^4.3.74",
108
+ "@things-factory/system-ui": "^4.3.74",
109
+ "@things-factory/transport-base": "^4.3.74",
110
+ "@things-factory/tutorial-ui": "^4.3.74",
111
+ "@things-factory/warehouse-base": "^4.3.74",
112
+ "@things-factory/worksheet-base": "^4.3.74"
113
113
  },
114
114
  "devDependencies": {
115
- "@things-factory/builder": "^4.3.66",
115
+ "@things-factory/builder": "^4.3.74",
116
116
  "cypress": "^9.4.1",
117
117
  "cypress-file-upload": "^5.0.8",
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "635bb41ac43a80787b3d21812a1f44156037a6c5"
121
+ "gitHead": "f9aee457ecca352c1b3ef6be1656ed73b98af038"
122
122
  }