@things-factory/operato-wms 4.3.592 → 4.3.595
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.
- package/client/pages/components/list-view/product-list-view.js +378 -0
- package/client/pages/constants/picking-standard.js +1 -0
- package/client/pages/constants/worksheet.js +12 -0
- package/client/pages/inventory-check/cycle-count-inventory-details-popup.js +12 -12
- package/client/pages/inventory-check/cycle-count-report.js +181 -91
- package/client/pages/inventory-check/inspecting-product.js +56 -12
- package/client/pages/order/release-order/b2b/b2b-order-list.js +91 -39
- package/client/pages/outbound/generate-worksheet-popup.js +188 -25
- package/client/pages/outbound/loading-v2/delivery-order-info.js +205 -0
- package/client/pages/outbound/loading-v2/load-by-qty.js +151 -0
- package/client/pages/outbound/loading-v2/loading-execution-base.js +514 -0
- package/client/pages/outbound/loading-v2/loading-execution.js +392 -0
- package/client/pages/outbound/loading-v2/loading.js +419 -0
- package/client/pages/outbound/loading-v2/release-good-info.js +93 -0
- package/client/pages/outbound/loading-v2/show-my-loading-worksheet-list-popup.js +93 -0
- package/client/pages/outbound/loading-v2/warehouse-return-popup.js +194 -0
- package/client/pages/outbound/picking-v2/issue-details-popup.js +163 -0
- package/client/pages/outbound/picking-v2/picking-execution-base.js +482 -0
- package/client/pages/outbound/picking-v2/picking-execution.js +379 -0
- package/client/pages/outbound/picking-v2/picking.js +387 -0
- package/client/pages/outbound/picking-v2/report-issue-popup.js +139 -0
- package/client/pages/outbound/picking-v2/scan-bin-no-popup.js +126 -0
- package/client/pages/outbound/picking-v2/worksheet-info.js +200 -0
- package/client/pages/outbound/select-operator-popup.js +6 -3
- package/client/pages/outbound/show-my-worksheet-list-popup.js +6 -2
- package/client/pages/outbound/worksheet-zone-picking.js +507 -0
- package/client/pages/outbound/zone-worksheet.js +574 -0
- package/client/route.js +15 -0
- package/dist-server/graphql/resolvers/index.js +11 -2
- package/dist-server/graphql/resolvers/index.js.map +1 -1
- package/dist-server/graphql/resolvers/outbound/complete-load.js +96 -0
- package/dist-server/graphql/resolvers/outbound/complete-load.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/find-loadable-release-good.js +58 -0
- package/dist-server/graphql/resolvers/outbound/find-loadable-release-good.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/get-delivery-orders.js +29 -0
- package/dist-server/graphql/resolvers/outbound/get-delivery-orders.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/get-loading-task.js +86 -0
- package/dist-server/graphql/resolvers/outbound/get-loading-task.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/index.js +16 -0
- package/dist-server/graphql/resolvers/outbound/index.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/load-by-qty.js +112 -0
- package/dist-server/graphql/resolvers/outbound/load-by-qty.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/loading-worksheet-v2.js +122 -0
- package/dist-server/graphql/resolvers/outbound/loading-worksheet-v2.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/my-loading-assignment-status.js +32 -0
- package/dist-server/graphql/resolvers/outbound/my-loading-assignment-status.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/sort-item.js +65 -0
- package/dist-server/graphql/resolvers/outbound/sort-item.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/undo-load.js +72 -0
- package/dist-server/graphql/resolvers/outbound/undo-load.js.map +1 -0
- package/dist-server/graphql/resolvers/outbound/warehouse-return.js +101 -0
- package/dist-server/graphql/resolvers/outbound/warehouse-return.js.map +1 -0
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js +119 -86
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js.map +1 -1
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.js +53 -25
- package/dist-server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.js.map +1 -1
- package/dist-server/graphql/resolvers/zone-worksheet/activate-zone-worksheet.js +91 -0
- package/dist-server/graphql/resolvers/zone-worksheet/activate-zone-worksheet.js.map +1 -0
- package/dist-server/graphql/resolvers/zone-worksheet/assign-sorter.js +36 -0
- package/dist-server/graphql/resolvers/zone-worksheet/assign-sorter.js.map +1 -0
- package/dist-server/graphql/resolvers/zone-worksheet/generate-zone-worksheet.js +103 -0
- package/dist-server/graphql/resolvers/zone-worksheet/generate-zone-worksheet.js.map +1 -0
- package/dist-server/graphql/resolvers/zone-worksheet/get-zone-picking-task.js +98 -0
- package/dist-server/graphql/resolvers/zone-worksheet/get-zone-picking-task.js.map +1 -0
- package/dist-server/graphql/resolvers/zone-worksheet/index.js +12 -0
- package/dist-server/graphql/resolvers/zone-worksheet/index.js.map +1 -0
- package/dist-server/graphql/resolvers/zone-worksheet/zone-picking.js +327 -0
- package/dist-server/graphql/resolvers/zone-worksheet/zone-picking.js.map +1 -0
- package/dist-server/graphql/resolvers/zone-worksheet/zone-worksheet.js +146 -0
- package/dist-server/graphql/resolvers/zone-worksheet/zone-worksheet.js.map +1 -0
- package/dist-server/graphql/types/index.js +11 -3
- package/dist-server/graphql/types/index.js.map +1 -1
- package/dist-server/graphql/types/outbound/delivery-order-info-list.js +14 -0
- package/dist-server/graphql/types/outbound/delivery-order-info-list.js.map +1 -0
- package/dist-server/graphql/types/outbound/index.js +23 -0
- package/dist-server/graphql/types/outbound/index.js.map +1 -0
- package/dist-server/graphql/types/outbound/loading-assignment.js +15 -0
- package/dist-server/graphql/types/outbound/loading-assignment.js.map +1 -0
- package/dist-server/graphql/types/outbound/loading-worksheet-type.js +25 -0
- package/dist-server/graphql/types/outbound/loading-worksheet-type.js.map +1 -0
- package/dist-server/graphql/types/reports/cycle-count-report.js +2 -0
- package/dist-server/graphql/types/reports/cycle-count-report.js.map +1 -1
- package/dist-server/graphql/types/reports/index.js +1 -1
- package/dist-server/graphql/types/reports/index.js.map +1 -1
- package/dist-server/graphql/types/zone-worksheet/index.js +22 -0
- package/dist-server/graphql/types/zone-worksheet/index.js.map +1 -0
- package/dist-server/graphql/types/zone-worksheet/zone-picking-worksheet.js +18 -0
- package/dist-server/graphql/types/zone-worksheet/zone-picking-worksheet.js.map +1 -0
- package/dist-server/graphql/types/zone-worksheet/zone-worksheet-overview-list.js +13 -0
- package/dist-server/graphql/types/zone-worksheet/zone-worksheet-overview-list.js.map +1 -0
- package/dist-server/graphql/types/zone-worksheet/zone-worksheet-overview.js +16 -0
- package/dist-server/graphql/types/zone-worksheet/zone-worksheet-overview.js.map +1 -0
- package/helps/release-note.md +20 -12
- package/package.json +8 -8
- package/server/graphql/resolvers/index.ts +11 -2
- package/server/graphql/resolvers/outbound/complete-load.ts +126 -0
- package/server/graphql/resolvers/outbound/find-loadable-release-good.ts +61 -0
- package/server/graphql/resolvers/outbound/get-delivery-orders.ts +32 -0
- package/server/graphql/resolvers/outbound/get-loading-task.ts +105 -0
- package/server/graphql/resolvers/outbound/index.ts +26 -0
- package/server/graphql/resolvers/outbound/load-by-qty.ts +176 -0
- package/server/graphql/resolvers/outbound/loading-worksheet-v2.ts +131 -0
- package/server/graphql/resolvers/outbound/my-loading-assignment-status.ts +35 -0
- package/server/graphql/resolvers/outbound/sort-item.ts +81 -0
- package/server/graphql/resolvers/outbound/undo-load.ts +83 -0
- package/server/graphql/resolvers/outbound/warehouse-return.ts +129 -0
- package/server/graphql/resolvers/reports/cycle-count-report.ts +125 -87
- package/server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts +77 -35
- package/server/graphql/resolvers/zone-worksheet/activate-zone-worksheet.ts +124 -0
- package/server/graphql/resolvers/zone-worksheet/assign-sorter.ts +49 -0
- package/server/graphql/resolvers/zone-worksheet/generate-zone-worksheet.ts +133 -0
- package/server/graphql/resolvers/zone-worksheet/get-zone-picking-task.ts +118 -0
- package/server/graphql/resolvers/zone-worksheet/index.ts +20 -0
- package/server/graphql/resolvers/zone-worksheet/zone-picking.ts +458 -0
- package/server/graphql/resolvers/zone-worksheet/zone-worksheet.ts +183 -0
- package/server/graphql/types/index.ts +11 -3
- package/server/graphql/types/outbound/delivery-order-info-list.ts +8 -0
- package/server/graphql/types/outbound/index.ts +22 -0
- package/server/graphql/types/outbound/loading-assignment.ts +9 -0
- package/server/graphql/types/outbound/loading-worksheet-type.ts +20 -0
- package/server/graphql/types/reports/cycle-count-report.ts +2 -0
- package/server/graphql/types/reports/index.ts +3 -9
- package/server/graphql/types/zone-worksheet/index.ts +21 -0
- package/server/graphql/types/zone-worksheet/zone-picking-worksheet.ts +12 -0
- package/server/graphql/types/zone-worksheet/zone-worksheet-overview-list.ts +7 -0
- package/server/graphql/types/zone-worksheet/zone-worksheet-overview.ts +10 -0
- package/things-factory.config.js +16 -0
- package/translations/en.json +31 -1
- package/translations/ko.json +28 -0
- package/translations/ms.json +30 -2
- package/translations/zh.json +28 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
2
|
+
import { navigate, client } from '@things-factory/shell'
|
|
3
|
+
import { css, html, LitElement } from 'lit-element'
|
|
4
|
+
import { WORKSHEET_STATUS } from '../../constants'
|
|
5
|
+
import { openPopup } from '@things-factory/layout-base'
|
|
6
|
+
import './issue-details-popup'
|
|
7
|
+
import '@material/mwc-button'
|
|
8
|
+
import gql from 'graphql-tag'
|
|
9
|
+
|
|
10
|
+
class WorksheetInfo extends localize(i18next)(LitElement) {
|
|
11
|
+
static get properties() {
|
|
12
|
+
return {
|
|
13
|
+
worksheetId: String,
|
|
14
|
+
worksheet: Object,
|
|
15
|
+
data: Object
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static get styles() {
|
|
20
|
+
return [
|
|
21
|
+
css`
|
|
22
|
+
:host {
|
|
23
|
+
padding: 12px;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
background-color: var(--main-section-background-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
legend {
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: var(--padding-narrow) 0 var(--padding-default) 0;
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
color: var(--legend-color);
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
}
|
|
37
|
+
.color-teal {
|
|
38
|
+
color: #007e7f !important;
|
|
39
|
+
}
|
|
40
|
+
.font-bold {
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
}
|
|
43
|
+
.worksheet-info {
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-columns: repeat(12, 1fr);
|
|
46
|
+
grid-gap: 8px;
|
|
47
|
+
color: #3a5877;
|
|
48
|
+
padding: 0 0 12px 0;
|
|
49
|
+
margin: 0 0 12px 0;
|
|
50
|
+
border-bottom: solid 0.5px #3a5877;
|
|
51
|
+
}
|
|
52
|
+
.worksheet-info-title {
|
|
53
|
+
grid-column: span 3;
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
color: #3a5877;
|
|
57
|
+
}
|
|
58
|
+
.worksheet-info-description {
|
|
59
|
+
grid-column: span 9;
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
}
|
|
62
|
+
.worksheet-issue-container {
|
|
63
|
+
flex-grow: 1;
|
|
64
|
+
overflow-y: scroll;
|
|
65
|
+
}
|
|
66
|
+
.worksheet-issue {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: row;
|
|
69
|
+
padding: 0 0 12px 0;
|
|
70
|
+
margin: 0 0 12px 0;
|
|
71
|
+
border-bottom: solid 0.5px #3a5877;
|
|
72
|
+
}
|
|
73
|
+
.worksheet-issue > div {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
}
|
|
77
|
+
.worksheet-issue-info {
|
|
78
|
+
flex: 0 0 90%;
|
|
79
|
+
}
|
|
80
|
+
.worksheet-issue-info > div {
|
|
81
|
+
display: grid;
|
|
82
|
+
grid-template-columns: repeat(12, 1fr);
|
|
83
|
+
grid-gap: 4px;
|
|
84
|
+
margin-bottom: 4px;
|
|
85
|
+
align-items: center;
|
|
86
|
+
}
|
|
87
|
+
.worksheet-issue-title {
|
|
88
|
+
grid-column: span 3;
|
|
89
|
+
font-size: 12px;
|
|
90
|
+
color: #3a5877;
|
|
91
|
+
align-self: start;
|
|
92
|
+
}
|
|
93
|
+
.worksheet-issue-description {
|
|
94
|
+
grid-column: span 9;
|
|
95
|
+
display: -webkit-box;
|
|
96
|
+
-webkit-line-clamp: 2;
|
|
97
|
+
-webkit-box-orient: vertical;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
font-size: 12px;
|
|
100
|
+
color: #3a5877;
|
|
101
|
+
align-self: start;
|
|
102
|
+
}
|
|
103
|
+
.worksheet-issue-action {
|
|
104
|
+
justify-content: center;
|
|
105
|
+
align-items: flex-end;
|
|
106
|
+
flex: 0 0 10%;
|
|
107
|
+
}
|
|
108
|
+
`
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
constructor() {
|
|
113
|
+
super()
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
render() {
|
|
117
|
+
return html`
|
|
118
|
+
${worksheetInfo(this.worksheet)}
|
|
119
|
+
<legend>Total Issue : ${this.data.length}</legend>
|
|
120
|
+
<div class="worksheet-issue-container">
|
|
121
|
+
${this.data.map(issue => {
|
|
122
|
+
return html`
|
|
123
|
+
<div class="worksheet-issue">
|
|
124
|
+
<div class="worksheet-issue-info">
|
|
125
|
+
<div>
|
|
126
|
+
<label class="worksheet-issue-title color-teal font-bold">SKU</label>
|
|
127
|
+
<label class="worksheet-issue-description color-teal font-bold"
|
|
128
|
+
>${issue?.inventory.product.sku}</label
|
|
129
|
+
>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<div>
|
|
133
|
+
<label class="worksheet-issue-title font-bold">Product</label>
|
|
134
|
+
<label class="worksheet-issue-description">${issue?.inventory.product.name}</label>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<div>
|
|
138
|
+
<label class="worksheet-issue-title font-bold">Type</label>
|
|
139
|
+
<label class="worksheet-issue-description">${issue.transactionType}</label>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<div>
|
|
143
|
+
<label class="worksheet-issue-title font-bold">Details</label>
|
|
144
|
+
<label class="worksheet-issue-description">${issue.details}</label>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<div>
|
|
148
|
+
<label class="worksheet-issue-title font-bold">Status</label>
|
|
149
|
+
<label class="worksheet-issue-description">${issue.status}</label>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="worksheet-issue-action">
|
|
153
|
+
<mwc-icon
|
|
154
|
+
class="color-teal"
|
|
155
|
+
@click=${e => {
|
|
156
|
+
this.openIssueDetailPopup(issue)
|
|
157
|
+
}}
|
|
158
|
+
>menu</mwc-icon
|
|
159
|
+
>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
`
|
|
163
|
+
})}
|
|
164
|
+
</div>
|
|
165
|
+
`
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
async openIssueDetailPopup(data) {
|
|
169
|
+
let popup = await openPopup(
|
|
170
|
+
html`
|
|
171
|
+
<issue-details-popup .data=${data} @submit="${e => this.data.filter(data => data.id == e.detail)}"></issue-details-popup>
|
|
172
|
+
`,
|
|
173
|
+
{
|
|
174
|
+
backdrop: true,
|
|
175
|
+
size: 'medium',
|
|
176
|
+
title: i18next.t('title.issue_details')
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
window.customElements.define('worksheet-info', WorksheetInfo)
|
|
183
|
+
|
|
184
|
+
function worksheetInfo(worksheet) {
|
|
185
|
+
return html`
|
|
186
|
+
<div class="worksheet-info">
|
|
187
|
+
<label class="worksheet-info-title">Name</label>
|
|
188
|
+
<label class="worksheet-info-description">: ${worksheet.name}</label>
|
|
189
|
+
|
|
190
|
+
<label class="worksheet-info-title">Company</label>
|
|
191
|
+
<label class="worksheet-info-description">: ${worksheet.bizplaceName}</label>
|
|
192
|
+
|
|
193
|
+
<label class="worksheet-info-title">Start Time</label>
|
|
194
|
+
<label class="worksheet-info-description">: ${worksheet.startedAt}</label>
|
|
195
|
+
|
|
196
|
+
<label class="worksheet-info-title">Status</label>
|
|
197
|
+
<label class="worksheet-info-description">: ${worksheet.status}</label>
|
|
198
|
+
</div>
|
|
199
|
+
`
|
|
200
|
+
}
|
|
@@ -10,7 +10,8 @@ class SelectOperatorPopup extends localize(i18next)(LitElement) {
|
|
|
10
10
|
return {
|
|
11
11
|
searchField: Array,
|
|
12
12
|
config: Object,
|
|
13
|
-
bizplace: Object
|
|
13
|
+
bizplace: Object,
|
|
14
|
+
selectSorter: Boolean
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -132,14 +133,16 @@ class SelectOperatorPopup extends localize(i18next)(LitElement) {
|
|
|
132
133
|
name: 'pending',
|
|
133
134
|
header: i18next.t('label.pending'),
|
|
134
135
|
sortable: true,
|
|
135
|
-
width: 100
|
|
136
|
+
width: 100,
|
|
137
|
+
hidden: this.selectSorter
|
|
136
138
|
},
|
|
137
139
|
{
|
|
138
140
|
type: 'string',
|
|
139
141
|
name: 'picking',
|
|
140
142
|
header: i18next.t('label.picking'),
|
|
141
143
|
sortable: true,
|
|
142
|
-
width: 100
|
|
144
|
+
width: 100,
|
|
145
|
+
hidden: this.selectSorter
|
|
143
146
|
}
|
|
144
147
|
]
|
|
145
148
|
}
|
|
@@ -58,16 +58,20 @@ class ShowMyWorksheetListPopup extends localize(i18next)(LitElement) {
|
|
|
58
58
|
goToPendingList() {
|
|
59
59
|
if (this.type == 'PICKING') {
|
|
60
60
|
navigate(`single_outbound_worksheets?status=${WORKSHEET_STATUS.DEACTIVATED.value}&assigneeId=${this.userId}`)
|
|
61
|
-
} else {
|
|
61
|
+
} else if (this.type == 'BATCH_PICKING') {
|
|
62
62
|
navigate(`merged_outbound_worksheets?status=${WORKSHEET_STATUS.DEACTIVATED.value}&assigneeId=${this.userId}`)
|
|
63
|
+
} else {
|
|
64
|
+
navigate(`zone_worksheets?status=${WORKSHEET_STATUS.DEACTIVATED.value}&assigneeId=${this.userId}`)
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
goToPickingList() {
|
|
67
69
|
if (this.type == 'PICKING') {
|
|
68
70
|
navigate(`single_outbound_worksheets?status=${WORKSHEET_STATUS.EXECUTING.value}&assigneeId=${this.userId}`)
|
|
69
|
-
} else {
|
|
71
|
+
} else if (this.type == 'BATCH_PICKING') {
|
|
70
72
|
navigate(`merged_outbound_worksheets?status=${WORKSHEET_STATUS.EXECUTING.value}&assigneeId=${this.userId}`)
|
|
73
|
+
} else {
|
|
74
|
+
navigate(`zone_worksheets?status=${WORKSHEET_STATUS.EXECUTING.value}&assigneeId=${this.userId}`)
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
|