@colijnit/sharedcomponents 1.0.12 → 1.0.15
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/README.md +24 -24
- package/bundles/colijnit-sharedcomponents.umd.js +716 -146
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +1 -0
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +2 -1
- package/esm2015/lib/components/key-pad/key-pad.component.js +191 -0
- package/esm2015/lib/components/key-pad/key-pad.module.js +21 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +14 -7
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +6 -7
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +137 -56
- package/esm2015/lib/components/stock/stock-location/stock-location.component.js +7 -13
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +68 -0
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +52 -20
- package/esm2015/lib/components/stock/stock.component.js +29 -24
- package/esm2015/lib/components/stock/stock.module.js +9 -4
- package/esm2015/lib/enum/icon.enum.js +2 -11
- package/esm2015/lib/enum/keyboard-code.enum.js +32 -0
- package/esm2015/lib/model/icon-svg.js +3 -12
- package/esm2015/lib/service/ione-connector-adapter.service.js +115 -28
- package/esm2015/lib/service/stock.service.js +48 -10
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +713 -185
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/docsign/style/material.scss +0 -1
- package/lib/components/key-pad/key-pad.component.d.ts +36 -0
- package/lib/components/key-pad/key-pad.module.d.ts +2 -0
- package/lib/components/key-pad/style/_layout.scss +104 -0
- package/lib/components/key-pad/style/_material-definition.scss +17 -0
- package/lib/components/key-pad/style/_theme.scss +35 -0
- package/lib/components/key-pad/style/material.scss +4 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +8 -4
- package/lib/components/send-method-dialog/style/material.scss +0 -1
- package/lib/components/stock/stock-information/stock-information.component.d.ts +2 -3
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +23 -10
- package/lib/components/stock/stock-location/stock-location.component.d.ts +4 -5
- package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +18 -0
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +18 -3
- package/lib/components/stock/stock.component.d.ts +11 -9
- package/lib/components/stock/style/_layout.scss +4 -30
- package/lib/components/stock/style/material.scss +0 -1
- package/lib/enum/icon.enum.d.ts +1 -10
- package/lib/enum/keyboard-code.enum.d.ts +30 -0
- package/lib/service/ione-connector-adapter.service.d.ts +19 -6
- package/lib/service/stock.service.d.ts +18 -3
- package/lib/style/_variables.scss +3 -13
- package/lib/style/sharedcomponents-globals.scss +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { EventEmitter, Component, ViewEncapsulation, ViewChild, ElementRef, Input, Output, HostBinding, NgModule, Injectable } from '@angular/core';
|
|
3
|
+
import { EventEmitter, Component, ViewEncapsulation, ViewChild, ElementRef, Input, Output, HostBinding, NgModule, Injectable, HostListener } from '@angular/core';
|
|
4
4
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
5
5
|
import { PDFDocument } from 'pdf-lib';
|
|
6
6
|
import * as PDFJS from 'pdfjs-dist/legacy/build/pdf';
|
|
@@ -23,16 +23,21 @@ import { MapPropertyDecorator } from '@colijnit/articleapi/build/factory/decorat
|
|
|
23
23
|
import { BooleanTextDecorator as BooleanTextDecorator$1 } from '@colijnit/articleapi/build/factory/decorators/boolean.decorator';
|
|
24
24
|
import { JsonFieldFieldDecorator } from '@colijnit/articleapi/build/factory/decorators/json.decorator';
|
|
25
25
|
import { ComplexArrayDecorator as ComplexArrayDecorator$1 } from '@colijnit/articleapi/build/factory/decorators/complex-array.decorator';
|
|
26
|
-
import { PrintStockStickers } from '@colijnit/
|
|
27
|
-
import { ArticleFlat } from '@colijnit/articleapi/build/model/article-flat.bo';
|
|
28
|
-
import { ArticlesPublic } from '@colijnit/articleapi/build/articles-public';
|
|
29
|
-
import { PrintJob } from '@colijnit/sharedapi/build/model/report/print-job';
|
|
26
|
+
import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
|
|
30
27
|
import { ArticleStockBo } from '@colijnit/articleapi/build/model/article-stock.bo';
|
|
28
|
+
import { StockHistoryBo } from '@colijnit/articleapi/build/model/stock-history.bo';
|
|
29
|
+
import { StockStickersPrintLayoutsBo } from '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo';
|
|
30
|
+
import { ArticleDetailsBo } from '@colijnit/articleapi/build/model/article-details.bo';
|
|
31
|
+
import { StockStatus } from '@colijnit/articleapi/build/model/stock-status.bo';
|
|
32
|
+
import { StockManagementWarehouses } from '@colijnit/articleapi/build/model/stock-management-warehouses.bo';
|
|
33
|
+
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
34
|
+
import { PrintStockStickers as PrintStockStickers$1 } from '@colijnit/articleapi/build/model/print-stock-stickers';
|
|
35
|
+
import { GetStockHistoryRequest } from '@colijnit/articleapi/build/model/get-stock-history-request';
|
|
31
36
|
import { ArticleStock } from '@colijnit/articleapi/build/model/article-stock';
|
|
32
|
-
import { CoDialogPromptModule, InputCheckboxModule, InputComboBoxModule, IconModule, InputNumberPickerModule, CoDialogWizardModule, ButtonModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule } from '@colijnit/corecomponents_v12';
|
|
37
|
+
import { CoDialogPromptModule, InputCheckboxModule, InputComboBoxModule, IconModule, InputNumberPickerModule, CoDialogWizardModule, ButtonModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule, InputTextareaModule } from '@colijnit/corecomponents_v12';
|
|
33
38
|
import * as i1 from '@angular/platform-browser';
|
|
34
39
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
35
|
-
import {
|
|
40
|
+
import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
|
|
36
41
|
|
|
37
42
|
class DocsignComponent {
|
|
38
43
|
constructor() {
|
|
@@ -1094,26 +1099,13 @@ class IoneConnectorAdapterService {
|
|
|
1094
1099
|
});
|
|
1095
1100
|
});
|
|
1096
1101
|
}
|
|
1097
|
-
|
|
1098
|
-
// return new Promise((resolve: Function, reject: Function) => {
|
|
1099
|
-
// return this.sharedConnector.getPrintTemplates(defaultPrinterName).then((result: DataServiceResponse) => {
|
|
1100
|
-
// if (result.validationResult && result.validationResult.success) {
|
|
1101
|
-
// if (result.resultObject) {
|
|
1102
|
-
// resolve(this._boFactory.makeWithRawBackendData(PrintJob, result.resultObject));
|
|
1103
|
-
// }
|
|
1104
|
-
// } else {
|
|
1105
|
-
// reject(result.validationMessagesAsString);
|
|
1106
|
-
// }
|
|
1107
|
-
// })
|
|
1108
|
-
// })
|
|
1109
|
-
// }
|
|
1110
|
-
getStockHistory(request) {
|
|
1102
|
+
getStockStickerPrintLayouts(stockStickersPrintLayoutsBo) {
|
|
1111
1103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1112
1104
|
return new Promise((resolve, reject) => {
|
|
1113
|
-
return this.
|
|
1105
|
+
return this.sharedConnector.getStockStickerPrintLayouts(stockStickersPrintLayoutsBo).then((result) => {
|
|
1114
1106
|
if (result.validationResult && result.validationResult.success) {
|
|
1115
1107
|
if (result.resultObject) {
|
|
1116
|
-
resolve(this._boFactory.makeWithRawBackendData(
|
|
1108
|
+
resolve(this._boFactory.makeWithRawBackendData(stockStickersPrintLayoutsBo, result.resultObject));
|
|
1117
1109
|
}
|
|
1118
1110
|
}
|
|
1119
1111
|
else {
|
|
@@ -1138,13 +1130,13 @@ class IoneConnectorAdapterService {
|
|
|
1138
1130
|
});
|
|
1139
1131
|
});
|
|
1140
1132
|
}
|
|
1141
|
-
|
|
1133
|
+
getStockHistory(request) {
|
|
1142
1134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1143
1135
|
return new Promise((resolve, reject) => {
|
|
1144
|
-
return this.connector.
|
|
1136
|
+
return this.connector.getStockHistory(request).then((result) => {
|
|
1145
1137
|
if (result.validationResult && result.validationResult.success) {
|
|
1146
|
-
if (result.resultObject) {
|
|
1147
|
-
resolve(this._boFactory.
|
|
1138
|
+
if (result.resultObject && result.resultObject.hasOwnProperty("stockHistory")) {
|
|
1139
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockHistoryBo, result.resultObject.stockHistory));
|
|
1148
1140
|
}
|
|
1149
1141
|
}
|
|
1150
1142
|
else {
|
|
@@ -1170,13 +1162,107 @@ class IoneConnectorAdapterService {
|
|
|
1170
1162
|
});
|
|
1171
1163
|
});
|
|
1172
1164
|
}
|
|
1173
|
-
|
|
1165
|
+
getStockManagementWarehouses() {
|
|
1166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1167
|
+
return new Promise((resolve, reject) => {
|
|
1168
|
+
return this.connector.getStockManagementWarehouses().then((result) => {
|
|
1169
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1170
|
+
if (result.resultObjects) {
|
|
1171
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockManagementWarehouses, result.resultObjects));
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
else {
|
|
1175
|
+
reject(result.validationMessagesAsString);
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
});
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
getStockManagementLocations(warehouseNo) {
|
|
1182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
|
+
return new Promise((resolve, reject) => {
|
|
1184
|
+
return this.connector.getStockManagementLocations(warehouseNo).then((result) => {
|
|
1185
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1186
|
+
if (result.resultObjects) {
|
|
1187
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, result.resultObjects));
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
else {
|
|
1191
|
+
reject(result.validationMessagesAsString);
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1194
|
+
});
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
getArticleDetails(data) {
|
|
1198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1199
|
+
return new Promise((resolve, reject) => {
|
|
1200
|
+
return this.connector.getArticleDetails(data).then((result) => {
|
|
1201
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1202
|
+
if (result.resultObjects) {
|
|
1203
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleDetailsBo, result.resultObjects));
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
else {
|
|
1207
|
+
reject(result.validationMessagesAsString);
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
});
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
updateArticleDetails(data) {
|
|
1214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1215
|
+
return new Promise((resolve, reject) => {
|
|
1216
|
+
return this.connector.updateArticleDetails(data).then((result) => __awaiter(this, void 0, void 0, function* () {
|
|
1217
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1218
|
+
yield this.commit();
|
|
1219
|
+
resolve(true);
|
|
1220
|
+
}
|
|
1221
|
+
else {
|
|
1222
|
+
reject(result.validationMessagesAsString);
|
|
1223
|
+
}
|
|
1224
|
+
}));
|
|
1225
|
+
});
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
lockArticleDetails(data) {
|
|
1174
1229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1175
1230
|
return new Promise((resolve, reject) => {
|
|
1176
|
-
return this.connector.
|
|
1231
|
+
return this.connector.lockArticleDetails(data).then((result) => __awaiter(this, void 0, void 0, function* () {
|
|
1232
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1233
|
+
yield this.commit();
|
|
1234
|
+
resolve(true);
|
|
1235
|
+
}
|
|
1236
|
+
else {
|
|
1237
|
+
reject(result.validationMessagesAsString);
|
|
1238
|
+
}
|
|
1239
|
+
}));
|
|
1240
|
+
});
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
getStockStatus() {
|
|
1244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1245
|
+
return new Promise((resolve, reject) => {
|
|
1246
|
+
return this.connector.getStockState().then((result) => {
|
|
1247
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1248
|
+
if (result.resultObjects) {
|
|
1249
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockStatus, result.resultObjects));
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
else {
|
|
1253
|
+
reject(result.validationMessagesAsString);
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
});
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
getStockStickerTemplates(data) {
|
|
1260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1261
|
+
return new Promise((resolve, reject) => {
|
|
1262
|
+
return this.sharedConnector.getStockStickerPrintLayouts(data).then((result) => {
|
|
1177
1263
|
if (result.validationResult && result.validationResult.success) {
|
|
1178
1264
|
if (result.resultObject) {
|
|
1179
|
-
resolve(this._boFactory.
|
|
1265
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockStickersPrintLayoutsBo, result.resultObject));
|
|
1180
1266
|
}
|
|
1181
1267
|
}
|
|
1182
1268
|
else {
|
|
@@ -1186,6 +1272,9 @@ class IoneConnectorAdapterService {
|
|
|
1186
1272
|
});
|
|
1187
1273
|
});
|
|
1188
1274
|
}
|
|
1275
|
+
commit() {
|
|
1276
|
+
return this.connector.commit();
|
|
1277
|
+
}
|
|
1189
1278
|
}
|
|
1190
1279
|
IoneConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function IoneConnectorAdapterService_Factory() { return new IoneConnectorAdapterService(); }, token: IoneConnectorAdapterService, providedIn: "root" });
|
|
1191
1280
|
IoneConnectorAdapterService.decorators = [
|
|
@@ -1202,22 +1291,17 @@ class StockService {
|
|
|
1202
1291
|
connectConnector(options) {
|
|
1203
1292
|
this._connector.connect(options);
|
|
1204
1293
|
}
|
|
1205
|
-
getPrintStockStickers(data) {
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1294
|
+
// public async getPrintStockStickers(data: PrintStockStickers): Promise<void> {
|
|
1295
|
+
// await this._connector.getPrintStockStickers(data);
|
|
1296
|
+
// }
|
|
1210
1297
|
getAllPrinters(showAll = true) {
|
|
1211
1298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1212
1299
|
return yield this._connector.getAllPrinters(showAll);
|
|
1213
1300
|
});
|
|
1214
1301
|
}
|
|
1215
|
-
// public async getPrintTemplates(defaultPrinterName: PrintJob): Promise<PrintJob> {
|
|
1216
|
-
// return await this._connector.getPrintLayouts(defaultPrinterName);
|
|
1217
|
-
// }
|
|
1218
1302
|
getStockHistory(data) {
|
|
1219
1303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1220
|
-
yield this._connector.getStockHistory(data);
|
|
1304
|
+
return yield this._connector.getStockHistory(data);
|
|
1221
1305
|
});
|
|
1222
1306
|
}
|
|
1223
1307
|
getStockInformation(data) {
|
|
@@ -1225,6 +1309,49 @@ class StockService {
|
|
|
1225
1309
|
return yield this._connector.getStockInformation(data);
|
|
1226
1310
|
});
|
|
1227
1311
|
}
|
|
1312
|
+
getStockStickerPrintLayouts(data) {
|
|
1313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1314
|
+
return yield this._connector.getStockStickerPrintLayouts(data);
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
getArticleDetails(data) {
|
|
1318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1319
|
+
return yield this._connector.getArticleDetails(data);
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
updateArticleDetails(data) {
|
|
1323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1324
|
+
return yield this._connector.updateArticleDetails(data);
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
getStockState() {
|
|
1328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1329
|
+
return yield this._connector.getStockStatus();
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
getStockStickerTemplates(data) {
|
|
1333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1334
|
+
return yield this._connector.getStockStickerTemplates(data);
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
getStockManagementWarehouses() {
|
|
1338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1339
|
+
return yield this._connector.getStockManagementWarehouses();
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
getStockManagementLocations(warehouseNo) {
|
|
1343
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1344
|
+
return yield this._connector.getStockManagementLocations(warehouseNo);
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
lockArticleDetails(data) {
|
|
1348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1349
|
+
return yield this._connector.lockArticleDetails(data);
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
commit() {
|
|
1353
|
+
return this._connector.commit();
|
|
1354
|
+
}
|
|
1228
1355
|
}
|
|
1229
1356
|
StockService.decorators = [
|
|
1230
1357
|
{ type: Injectable }
|
|
@@ -1240,37 +1367,41 @@ class StockComponent {
|
|
|
1240
1367
|
this.showStockInformationGrid = true;
|
|
1241
1368
|
this.showStockLocation = false;
|
|
1242
1369
|
this.showStockTransfer = false;
|
|
1370
|
+
this.allAvailableStock = 0;
|
|
1371
|
+
this.allTechnicalStock = 0;
|
|
1243
1372
|
}
|
|
1244
1373
|
set options(value) {
|
|
1245
1374
|
this.stockService.connectConnector(value);
|
|
1246
1375
|
}
|
|
1376
|
+
set article(article) {
|
|
1377
|
+
this.articleExtended = article;
|
|
1378
|
+
this.getStockInformation(article);
|
|
1379
|
+
}
|
|
1380
|
+
;
|
|
1247
1381
|
showClass() {
|
|
1248
1382
|
return true;
|
|
1249
1383
|
}
|
|
1250
|
-
ngAfterViewInit() {
|
|
1251
|
-
if (this.article) {
|
|
1252
|
-
this.getStockInformation(this.article);
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
1384
|
backToStockLinesClicked() {
|
|
1256
1385
|
this.showStockLocation = false;
|
|
1257
1386
|
this.showStockInformationGrid = true;
|
|
1258
1387
|
}
|
|
1259
1388
|
handleStockTransferClick(event) {
|
|
1260
|
-
this.
|
|
1389
|
+
this.stockTransferArticleDetails = event;
|
|
1261
1390
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1262
1391
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1263
|
-
this.stockService.stockStickers = new PrintStockStickers();
|
|
1392
|
+
this.stockService.stockStickers = new PrintStockStickers$1();
|
|
1264
1393
|
}
|
|
1265
1394
|
backToStock() {
|
|
1266
1395
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1267
1396
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1268
1397
|
}
|
|
1269
|
-
|
|
1270
|
-
this
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1398
|
+
getStockHistory() {
|
|
1399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1400
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
1401
|
+
stockHistoryInformation.type = "B";
|
|
1402
|
+
stockHistoryInformation.goodId = this.articleExtended.goodId.toString();
|
|
1403
|
+
this.stockHistory = yield this.stockService.getStockHistory(stockHistoryInformation);
|
|
1404
|
+
});
|
|
1274
1405
|
}
|
|
1275
1406
|
getStockInformation(data) {
|
|
1276
1407
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1278,12 +1409,8 @@ class StockComponent {
|
|
|
1278
1409
|
articleData.goodId = data.goodId.toString();
|
|
1279
1410
|
articleData.viewKind = "M";
|
|
1280
1411
|
this.stockInformation = yield this.stockService.getStockInformation(articleData);
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
}
|
|
1284
|
-
getStockLocationInformation(data) {
|
|
1285
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1286
|
-
this.stockLocationInformation = yield this.stockService.getStockInformation(data);
|
|
1412
|
+
this.stockInformation.forEach((articleStock) => this.allAvailableStock += articleStock.availableStock);
|
|
1413
|
+
this.stockInformation.forEach((articleStock) => this.allTechnicalStock += articleStock.technicalStock);
|
|
1287
1414
|
});
|
|
1288
1415
|
}
|
|
1289
1416
|
}
|
|
@@ -1292,16 +1419,20 @@ StockComponent.decorators = [
|
|
|
1292
1419
|
selector: "co-stock",
|
|
1293
1420
|
template: `
|
|
1294
1421
|
<div class="stock-info-container">
|
|
1295
|
-
<co-stock-information [article]="
|
|
1296
|
-
[articleStock]=""
|
|
1297
|
-
|
|
1422
|
+
<co-stock-information [article]="articleExtended"
|
|
1423
|
+
[articleStock]=""
|
|
1424
|
+
[allAvailableStockInformation]="allAvailableStock"
|
|
1425
|
+
[allTechnicalStockInformation]="allTechnicalStock"
|
|
1426
|
+
>
|
|
1298
1427
|
</co-stock-information>
|
|
1299
1428
|
<hr>
|
|
1300
1429
|
<co-stock-information-grid *ngIf="showStockInformationGrid"
|
|
1301
1430
|
[stockLocationData]="stockLocationInformation"
|
|
1302
|
-
(locationLineClicked)="getStockLocationInformation($event)"
|
|
1303
1431
|
[articleStockInformation]="stockInformation"
|
|
1304
|
-
(transferIconClicked)="handleStockTransferClick($event)"
|
|
1432
|
+
(transferIconClicked)="handleStockTransferClick($event)"
|
|
1433
|
+
(historyClicked)="getStockHistory()"
|
|
1434
|
+
[stockHistoryInformation]="stockHistory"
|
|
1435
|
+
>
|
|
1305
1436
|
</co-stock-information-grid>
|
|
1306
1437
|
<co-stock-location *ngIf="showStockLocation"
|
|
1307
1438
|
(backToStockLines)="backToStockLinesClicked()">
|
|
@@ -1310,13 +1441,13 @@ StockComponent.decorators = [
|
|
|
1310
1441
|
<co-stock-transfer *ngIf="showStockTransfer"
|
|
1311
1442
|
(handleCancelClicked)="backToStock()"
|
|
1312
1443
|
[article]="stockTransferArticle"
|
|
1444
|
+
[articleToTransfer]="stockTransferArticleDetails"
|
|
1313
1445
|
[stockSticker]="stockService.stockStickers"
|
|
1314
1446
|
(handleStickerClicked)="handleStickerClicked.emit($event)"
|
|
1315
1447
|
[articleWarehouse]="articleWarehouse"
|
|
1316
1448
|
[allWarehouses]="allWarehouses"
|
|
1317
1449
|
>
|
|
1318
1450
|
</co-stock-transfer>
|
|
1319
|
-
<co-button (click)="buttonClick()"></co-button>
|
|
1320
1451
|
</div>
|
|
1321
1452
|
`,
|
|
1322
1453
|
encapsulation: ViewEncapsulation.None
|
|
@@ -1337,9 +1468,6 @@ StockComponent.propDecorators = {
|
|
|
1337
1468
|
|
|
1338
1469
|
class StockInformationComponent {
|
|
1339
1470
|
constructor() {
|
|
1340
|
-
this.stockStatus = "medium";
|
|
1341
|
-
this.show = false;
|
|
1342
|
-
this.hideOrShowLocationTab = false;
|
|
1343
1471
|
}
|
|
1344
1472
|
}
|
|
1345
1473
|
StockInformationComponent.decorators = [
|
|
@@ -1368,11 +1496,11 @@ StockInformationComponent.decorators = [
|
|
|
1368
1496
|
</div>
|
|
1369
1497
|
<div class="stock-status">
|
|
1370
1498
|
<label [textContent]="'AMOUNT_IN_STOCK'"></label>
|
|
1371
|
-
<span [textContent]="
|
|
1499
|
+
<span [textContent]="allTechnicalStockInformation"></span>
|
|
1372
1500
|
</div>
|
|
1373
1501
|
<div class="stock-status">
|
|
1374
1502
|
<label [textContent]="'AMOUNT_AVAILABLE'"></label>
|
|
1375
|
-
<span [textContent]=""></span>
|
|
1503
|
+
<span [textContent]="allAvailableStockInformation"></span>
|
|
1376
1504
|
</div>
|
|
1377
1505
|
<div class="stock-status">
|
|
1378
1506
|
<label [textContent]="'AMOUNT_LATER_AVAILABLE'"></label>
|
|
@@ -1386,28 +1514,21 @@ StockInformationComponent.decorators = [
|
|
|
1386
1514
|
StockInformationComponent.ctorParameters = () => [];
|
|
1387
1515
|
StockInformationComponent.propDecorators = {
|
|
1388
1516
|
article: [{ type: Input }],
|
|
1389
|
-
articleStock: [{ type: Input }]
|
|
1517
|
+
articleStock: [{ type: Input }],
|
|
1518
|
+
allAvailableStockInformation: [{ type: Input }],
|
|
1519
|
+
allTechnicalStockInformation: [{ type: Input }]
|
|
1390
1520
|
};
|
|
1391
1521
|
|
|
1392
1522
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1393
1523
|
const IconSvg = {
|
|
1394
1524
|
"arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
|
|
1395
|
-
"
|
|
1396
|
-
"
|
|
1397
|
-
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
1398
|
-
"calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
|
|
1399
|
-
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
|
|
1525
|
+
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
1526
|
+
"delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
|
|
1400
1527
|
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
1401
|
-
"edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
|
|
1402
1528
|
"email": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.79,38.45A17.82,17.82,0,0,1,23.86,40,13.09,13.09,0,0,1,10.41,26.42C10.41,17.63,16.83,10,26.53,10c7.63,0,13.06,5.21,13.06,12.46,0,6.33-3.53,10.3-8.19,10.3a3.42,3.42,0,0,1-3.71-3.32h-.08A6.5,6.5,0,0,1,22,32.76c-2.75,0-4.82-2.11-4.82-5.65a9.85,9.85,0,0,1,10.13-10,12.89,12.89,0,0,1,5.13,1l-1.3,8c-.43,2.54-.13,3.71,1.08,3.75,1.85.09,4.18-2.28,4.18-7.28,0-5.65-3.62-10-10.3-10S13.73,17.76,13.73,26c0,7.25,4.57,11.3,11,11.3A14.81,14.81,0,0,0,31,36ZM28,20.65a5.34,5.34,0,0,0-1.33-.18c-2.85,0-5.09,2.81-5.09,6.12,0,1.64.73,2.68,2.16,2.68,1.59,0,3.27-2,3.66-4.53Z\" fill=\"#484f60\"/></svg>",
|
|
1403
1529
|
"pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.88c-2.16,0-2.72-.56-2.72-2.72V12.88c0-2.15.56-2.71,2.72-2.71h11.6l8.66,8.88v3.43H32.8V19.6l-7.88-8.09h-11c-1.38,0-1.38,0-1.38,1.37V37.45c0,1.37,0,1.37,1.38,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M27.83,26.63v4.24h1a3.57,3.57,0,0,0,.78-.06,1.22,1.22,0,0,0,.52-.26,1.44,1.44,0,0,0,.34-.62,4.13,4.13,0,0,0,.13-1.18,3.79,3.79,0,0,0-.13-1.14,1.51,1.51,0,0,0-.37-.62,1.14,1.14,0,0,0-.6-.3,5.93,5.93,0,0,0-1.06-.06Z\" fill=\"#484f60\"/><path d=\"M21.86,26.63v1.82h.71a3.57,3.57,0,0,0,1-.1A.88.88,0,0,0,24,28a.84.84,0,0,0,.14-.5.8.8,0,0,0-.2-.57.88.88,0,0,0-.52-.29,6.36,6.36,0,0,0-.93,0Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.12,4.24a1.68,1.68,0,0,1-.54.63,1.9,1.9,0,0,1-.67.3,6.57,6.57,0,0,1-1.34.1h-.85V32H20.57V25.54h2.07a7.75,7.75,0,0,1,1.54.1,1.73,1.73,0,0,1,.93.63,2,2,0,0,1,.37,1.25A2,2,0,0,1,25.26,28.51Zm6.45,1.66A2.91,2.91,0,0,1,31,31.31a2.28,2.28,0,0,1-.91.51A4,4,0,0,1,29,32H26.54V25.54H28.9a4.21,4.21,0,0,1,1.22.13,2.08,2.08,0,0,1,1,.59,2.79,2.79,0,0,1,.61,1,4.76,4.76,0,0,1,.21,1.52A4.19,4.19,0,0,1,31.71,30.17Zm5.7-3.54h-3.1v1.52H37v1.08H34.31V32H33V25.54h4.39Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/></svg>",
|
|
1404
|
-
"plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
|
|
1405
1530
|
"print": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M38,16.5H12a2,2,0,0,0-2,2v9a2,2,0,0,0,2,2h2v-5H36v5h2a2,2,0,0,0,2-2v-9A2,2,0,0,0,38,16.5ZM37,21a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,37,21Z\" fill=\"#484f60\"/><path d=\"M35,11.5v5H15v-5H35m1-1H14v7H36v-7Z\" fill=\"#484f60\"/><path d=\"M35,25.5v13H15v-13H35m1-1H14v15H36v-15Z\" fill=\"#484f60\"/><rect x=\"17\" y=\"28.3\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"31.5\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"34.7\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/></svg>",
|
|
1406
1531
|
"signature_field": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M20.1,25.42a1.1,1.1,0,1,1,1.27,1.45l-3.3,9.07A63.13,63.13,0,0,1,28,28.3l1.26-12-8.26-3-6.77,10A62.4,62.4,0,0,1,17,35.54l3.3-9.07A1.12,1.12,0,0,1,20.1,25.42Z\" fill=\"#484f60\"/><rect x=\"21.62\" y=\"11.43\" width=\"8.79\" height=\"2.34\" transform=\"translate(5.88 -8.14) rotate(20)\" fill=\"#484f60\"/><path d=\"M18.11,37.48c1.44,2.65,4.58,2.94,7.23,2.1,1.41-.44,2.2-1.49,3.44-2.06,2.42-1.1,3.13,1.2,5.36,1.37.42,0,2-.65,1.54-.68-2.55-.19-2.93-3.13-5.51-2.65a4.9,4.9,0,0,0-1.64.71c-.77.49-1.31,1.62-2.07,2l-4.61.56A3.38,3.38,0,0,1,20,37c-.22-.41-2,.28-1.85.5Z\" fill=\"#484f60\"/></svg>",
|
|
1407
|
-
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
1408
|
-
"thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
|
|
1409
|
-
"thin_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"20.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"26.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"32.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/></svg>",
|
|
1410
|
-
"txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>",
|
|
1411
1532
|
"xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm5.36,7.41-1.3-2-1.3,2H20.48l2-3.06-1.81-2.8h1.38l1.18,1.88,1.15-1.88h1.37l-1.83,2.85,2,3Zm7.67,0h-1.1V27.07l-1.16,4.61H28.77l-1.16-4.61v4.61H26.52V25.82h1.76l1.07,4,1-4h1.77Zm5.33,0H33.38V25.87h1.18v4.82H37.5Z\" fill=\"#484f60\"/></svg>"
|
|
1412
1533
|
};
|
|
1413
1534
|
|
|
@@ -1461,22 +1582,13 @@ IconCacheService.ctorParameters = () => [
|
|
|
1461
1582
|
var Icon;
|
|
1462
1583
|
(function (Icon) {
|
|
1463
1584
|
Icon["ArrowFatRight"] = "arrow_fat_right";
|
|
1464
|
-
Icon["ArrowPointDown"] = "arrow_point_down";
|
|
1465
|
-
Icon["ArrowPointLeft"] = "arrow_point_left";
|
|
1466
1585
|
Icon["ArrowPointRight"] = "arrow_point_right";
|
|
1467
|
-
Icon["
|
|
1468
|
-
Icon["Cancel"] = "cancel";
|
|
1586
|
+
Icon["DeleteLeftRegular"] = "delete_left_regular";
|
|
1469
1587
|
Icon["DeliveryTruck"] = "delivery_truck";
|
|
1470
|
-
Icon["EditPencil"] = "edit_pencil";
|
|
1471
1588
|
Icon["Email"] = "email";
|
|
1472
1589
|
Icon["Pdf"] = "pdf";
|
|
1473
|
-
Icon["PlusRound"] = "plus_round";
|
|
1474
1590
|
Icon["Print"] = "print";
|
|
1475
1591
|
Icon["SignatureField"] = "signature_field";
|
|
1476
|
-
Icon["Tag"] = "tag";
|
|
1477
|
-
Icon["ThickLines"] = "thick_lines";
|
|
1478
|
-
Icon["ThinLines"] = "thin_lines";
|
|
1479
|
-
Icon["Txt"] = "txt";
|
|
1480
1592
|
Icon["Xml"] = "xml";
|
|
1481
1593
|
})(Icon || (Icon = {}));
|
|
1482
1594
|
|
|
@@ -1485,27 +1597,17 @@ class StockInformationGridComponent {
|
|
|
1485
1597
|
this.iconCacheService = iconCacheService;
|
|
1486
1598
|
this._stockService = _stockService;
|
|
1487
1599
|
this.icons = Icon;
|
|
1488
|
-
this.locationLineClicked = new EventEmitter();
|
|
1489
1600
|
this.transferIconClicked = new EventEmitter();
|
|
1601
|
+
this.historyClicked = new EventEmitter();
|
|
1490
1602
|
this.show = false;
|
|
1491
1603
|
this.hideOrShowLocationTab = false;
|
|
1492
1604
|
this.showStockHistory = false;
|
|
1493
1605
|
this.showSendMethodDialog = false;
|
|
1494
|
-
this.data = [
|
|
1495
|
-
{ test: "test" }
|
|
1496
|
-
];
|
|
1497
|
-
this.inOrderInformation = [
|
|
1498
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1499
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1500
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1501
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1502
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1503
|
-
];
|
|
1504
|
-
this.orderInformation = [];
|
|
1505
1606
|
this.hideOrShowTabs = true;
|
|
1506
|
-
this.
|
|
1507
|
-
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNumber" };
|
|
1607
|
+
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
1508
1608
|
this.articleStockSearchInfo = new ArticleStock();
|
|
1609
|
+
this.showChangeStockDetails = false;
|
|
1610
|
+
this.articleDetailsInformation = new ArticleStockManagement();
|
|
1509
1611
|
this.tabs = [
|
|
1510
1612
|
"STOCK",
|
|
1511
1613
|
"IN_ORDER2",
|
|
@@ -1526,25 +1628,38 @@ class StockInformationGridComponent {
|
|
|
1526
1628
|
}
|
|
1527
1629
|
}
|
|
1528
1630
|
handleTabClick(tabData) {
|
|
1631
|
+
console.log(tabData);
|
|
1529
1632
|
this.activeTab = tabData;
|
|
1633
|
+
if (this.activeTab === "IN_ORDER2") {
|
|
1634
|
+
this.getInOrderData();
|
|
1635
|
+
}
|
|
1636
|
+
if (this.activeTab === "ORDERS1") {
|
|
1637
|
+
this.getOrderData();
|
|
1638
|
+
}
|
|
1530
1639
|
}
|
|
1531
1640
|
onLocationClick(data) {
|
|
1532
1641
|
this.articleStockSearchInfo.goodId = data.goodId.toString();
|
|
1533
1642
|
this.articleStockSearchInfo.wareHouseNo = data.warehouseNo.toString();
|
|
1534
1643
|
this.articleStockSearchInfo.viewKind = "D";
|
|
1535
|
-
|
|
1644
|
+
if (!this.dataWareHouseCode) {
|
|
1645
|
+
this.getStockManagementWarehouses(data);
|
|
1646
|
+
}
|
|
1647
|
+
this.getArticleDetails(data);
|
|
1536
1648
|
this.hideOrShowTabs = false;
|
|
1537
1649
|
this.hideOrShowLocationTab = true;
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
this.show = false;
|
|
1650
|
+
console.log(this.articleDetailsInformation);
|
|
1651
|
+
this._stockService.lockArticleDetails(this.articleDetailsInformation);
|
|
1541
1652
|
}
|
|
1542
1653
|
handleHistoryClick() {
|
|
1543
|
-
|
|
1544
|
-
|
|
1654
|
+
this.historyClicked.emit();
|
|
1655
|
+
this.hideOrShowLocationTab = false;
|
|
1656
|
+
this.showChangeStockDetails = false;
|
|
1657
|
+
this.hideOrShowTabs = false;
|
|
1658
|
+
this.showStockHistory = true;
|
|
1545
1659
|
}
|
|
1546
|
-
|
|
1547
|
-
this.
|
|
1660
|
+
backToStockInformation() {
|
|
1661
|
+
this.showStockHistory = false;
|
|
1662
|
+
this.hideOrShowTabs = true;
|
|
1548
1663
|
}
|
|
1549
1664
|
handleStockTransferClick(event) {
|
|
1550
1665
|
this.transferIconClicked.emit(event);
|
|
@@ -1560,14 +1675,60 @@ class StockInformationGridComponent {
|
|
|
1560
1675
|
this.showSendMethodDialog = !this.showSendMethodDialog;
|
|
1561
1676
|
}
|
|
1562
1677
|
printStockStickers() {
|
|
1563
|
-
this.printSticker = new PrintStockStickers
|
|
1678
|
+
this.printSticker = new PrintStockStickers();
|
|
1564
1679
|
this.printSticker.goodId = 10;
|
|
1565
|
-
this._stockService.getPrintStockStickers(this.printSticker);
|
|
1680
|
+
// this._stockService.getPrintStockStickers(this.printSticker);
|
|
1566
1681
|
}
|
|
1567
1682
|
onOkClick() {
|
|
1568
1683
|
}
|
|
1569
1684
|
onCancelClick() {
|
|
1570
1685
|
}
|
|
1686
|
+
openDialogClick(data) {
|
|
1687
|
+
this.selectedArticleDetailsData = data;
|
|
1688
|
+
this.showChangeStockDetails = true;
|
|
1689
|
+
}
|
|
1690
|
+
getArticleDetails(data) {
|
|
1691
|
+
// const info = new ArticleStockManagement();
|
|
1692
|
+
this.articleDetailsInformation.goodId = data.goodId;
|
|
1693
|
+
this.articleDetailsInformation.lineId = data.lineId;
|
|
1694
|
+
this.articleDetailsInformation.warehouseNumber = data.warehouseNo;
|
|
1695
|
+
this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
|
|
1696
|
+
this.articleDetails = details;
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1699
|
+
getStockManagementWarehouses(data) {
|
|
1700
|
+
this._stockService.getStockManagementWarehouses().then((warehouses) => {
|
|
1701
|
+
this.dataWareHouseCode = warehouses;
|
|
1702
|
+
this.selectedWarehouse = data.warehouseNo;
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
onSelectWarehouse(event) {
|
|
1706
|
+
this.articleDetailsInformation.warehouseNumber = event;
|
|
1707
|
+
console.log(event);
|
|
1708
|
+
if (this.dataWareHouseCode != null) {
|
|
1709
|
+
this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
|
|
1710
|
+
this.articleDetails = details;
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
getInOrderData() {
|
|
1715
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1716
|
+
const inOrderData = new GetStockHistoryRequest();
|
|
1717
|
+
inOrderData.type = "O";
|
|
1718
|
+
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
1719
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
1720
|
+
this.inOrderInformation = yield this._stockService.getStockHistory(inOrderData);
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
getOrderData() {
|
|
1724
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1725
|
+
const inOrderData = new GetStockHistoryRequest();
|
|
1726
|
+
inOrderData.type = "B";
|
|
1727
|
+
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
1728
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
1729
|
+
this.orderInformation = yield this._stockService.getStockHistory(inOrderData);
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1571
1732
|
}
|
|
1572
1733
|
StockInformationGridComponent.decorators = [
|
|
1573
1734
|
{ type: Component, args: [{
|
|
@@ -1591,14 +1752,14 @@ StockInformationGridComponent.decorators = [
|
|
|
1591
1752
|
<co-simple-grid *ngIf="activeTab === tabs[0] && hideOrShowTabs"
|
|
1592
1753
|
[data]="articleStockInformation"
|
|
1593
1754
|
>
|
|
1594
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNo'"></co-simple-grid-column>
|
|
1595
|
-
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseName'"></co-simple-grid-column>
|
|
1596
|
-
<co-simple-grid-column [headerText]="'STOCK'" [field]="'technicalStock'"></co-simple-grid-column>
|
|
1597
|
-
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'availableStock'"></co-simple-grid-column>
|
|
1598
|
-
<co-simple-grid-column [headerText]="'ECONOMICAL_STOCK'" [field]="'economicalStock'"></co-simple-grid-column>
|
|
1599
|
-
<co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNo'">
|
|
1755
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNo'" [order]="10"></co-simple-grid-column>
|
|
1756
|
+
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseName'" [order]="11"></co-simple-grid-column>
|
|
1757
|
+
<co-simple-grid-column [headerText]="'STOCK'" [field]="'technicalStock'" [order]="12"></co-simple-grid-column>
|
|
1758
|
+
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'availableStock'" [order]="13"></co-simple-grid-column>
|
|
1759
|
+
<co-simple-grid-column [headerText]="'ECONOMICAL_STOCK'" [field]="'economicalStock'" [order]="14"></co-simple-grid-column>
|
|
1760
|
+
<co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNo'" [order]="15">
|
|
1600
1761
|
<ng-template #template let-row="row">
|
|
1601
|
-
<span [textContent]="'
|
|
1762
|
+
<span [textContent]="'Bekijken'" (click)="onLocationClick(row)"></span>
|
|
1602
1763
|
</ng-template>
|
|
1603
1764
|
</co-simple-grid-column>
|
|
1604
1765
|
</co-simple-grid>
|
|
@@ -1606,12 +1767,12 @@ StockInformationGridComponent.decorators = [
|
|
|
1606
1767
|
<co-simple-grid *ngIf="activeTab === tabs[1]"
|
|
1607
1768
|
[data]="inOrderInformation"
|
|
1608
1769
|
>
|
|
1609
|
-
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'
|
|
1610
|
-
<co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'
|
|
1611
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'
|
|
1612
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'
|
|
1613
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'
|
|
1614
|
-
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'
|
|
1770
|
+
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'amount'"></co-simple-grid-column>
|
|
1771
|
+
<co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'user'"></co-simple-grid-column>
|
|
1772
|
+
<co-simple-grid-column [headerText]="'DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1773
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
|
|
1774
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
|
|
1775
|
+
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'locationNr'"></co-simple-grid-column>
|
|
1615
1776
|
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
|
|
1616
1777
|
<co-simple-grid-column [headerText]="'COMMISSION2'" [field]="'commission'"></co-simple-grid-column>
|
|
1617
1778
|
<co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
|
|
@@ -1629,9 +1790,9 @@ StockInformationGridComponent.decorators = [
|
|
|
1629
1790
|
<co-simple-grid *ngIf="activeTab === tabs[2]"
|
|
1630
1791
|
[data]="orderInformation"
|
|
1631
1792
|
>
|
|
1632
|
-
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'
|
|
1633
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'
|
|
1634
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'
|
|
1793
|
+
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'seriesNr'"></co-simple-grid-column>
|
|
1794
|
+
<co-simple-grid-column [headerText]="'DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1795
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
|
|
1635
1796
|
<co-simple-grid-column [headerText]="'RESERVED'" [field]="'reserved'"></co-simple-grid-column>
|
|
1636
1797
|
<co-simple-grid-column [headerText]="'FREE_STOCK'" [field]="'freeStock'"></co-simple-grid-column>
|
|
1637
1798
|
<co-simple-grid-column [headerText]="'DELIVERY_DATE1'" [field]="'deliveryDate'"></co-simple-grid-column>
|
|
@@ -1645,28 +1806,40 @@ StockInformationGridComponent.decorators = [
|
|
|
1645
1806
|
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="handleBackToStockClick()"></span>
|
|
1646
1807
|
</div>
|
|
1647
1808
|
<div class="stock-location-right-group">
|
|
1648
|
-
<co-
|
|
1809
|
+
<co-drop-down-list [(model)]="selectedWarehouse"
|
|
1810
|
+
[collection]="dataWareHouseCode"
|
|
1649
1811
|
[fields]="dataWareHouseFields"
|
|
1650
1812
|
[placeholder]="'WAREHOUSE'"
|
|
1813
|
+
(modelChange)="onSelectWarehouse($event)"
|
|
1651
1814
|
[required]="true"
|
|
1652
|
-
></co-
|
|
1815
|
+
></co-drop-down-list>
|
|
1653
1816
|
</div>
|
|
1654
1817
|
</div>
|
|
1655
1818
|
|
|
1656
1819
|
<!-- TODO move to own component stock-location-->
|
|
1657
|
-
<co-simple-grid [data]="
|
|
1820
|
+
<co-simple-grid [data]="articleDetails"
|
|
1658
1821
|
>
|
|
1659
1822
|
<div class="stock-location-group">
|
|
1660
1823
|
<div class="stock-location-left-group">
|
|
1661
1824
|
<co-button class="stock-lines-button" [textContent]="'BACK_TO_STOCK_LINES'" (click)="handleBackToStockClick()"></co-button>
|
|
1662
1825
|
</div>
|
|
1663
1826
|
</div>
|
|
1664
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'
|
|
1827
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseDescription'"></co-simple-grid-column>
|
|
1665
1828
|
<co-simple-grid-column [headerText]="'BATCH'" [field]="'batchNo'"></co-simple-grid-column>
|
|
1666
1829
|
<co-simple-grid-column [headerText]="'SERIAL_NO'" [field]="'serialNo'"></co-simple-grid-column>
|
|
1667
|
-
<co-simple-grid-column [headerText]="'STOCK'" [field]="'
|
|
1668
|
-
|
|
1669
|
-
|
|
1830
|
+
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'">
|
|
1831
|
+
<ng-template #template let-row="row">
|
|
1832
|
+
<co-input-number-picker (keyup.enter)="openDialogClick(row)" [(model)]="row['amountInStock']">
|
|
1833
|
+
|
|
1834
|
+
</co-input-number-picker>
|
|
1835
|
+
</ng-template>
|
|
1836
|
+
</co-simple-grid-column>
|
|
1837
|
+
<co-simple-grid-column [headerText]="'ALLOCATED'" [field]="'amountInStockFree'"></co-simple-grid-column>
|
|
1838
|
+
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'perceptibleStorage'"></co-simple-grid-column>
|
|
1839
|
+
<co-simple-grid-column [headerText]="'PHYSICAL_STOCK'" [field]="'amountInStockOriginal'"></co-simple-grid-column>
|
|
1840
|
+
<co-simple-grid-column [headerText]="'VALUTA'" [field]="'currency'"></co-simple-grid-column>
|
|
1841
|
+
<co-simple-grid-column [headerText]="'PURCHASE_PRICE'" [field]="'purchasePrice'"></co-simple-grid-column>
|
|
1842
|
+
<co-simple-grid-column [headerText]="'SUPPLIER_NUMBER'" [field]="'supplierNo'"></co-simple-grid-column>
|
|
1670
1843
|
<co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
|
|
1671
1844
|
<ng-template #template let-row="row">
|
|
1672
1845
|
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)" (click)="handleStockTransferClick(row)"></co-icon>
|
|
@@ -1680,15 +1853,32 @@ StockInformationGridComponent.decorators = [
|
|
|
1680
1853
|
</co-simple-grid>
|
|
1681
1854
|
</div>
|
|
1682
1855
|
|
|
1856
|
+
<co-stock-change-amount *ngIf="showChangeStockDetails"
|
|
1857
|
+
(closeStockChangeAmount)="showChangeStockDetails = false"
|
|
1858
|
+
[selectedArticleDetailsData]="selectedArticleDetailsData"
|
|
1859
|
+
>
|
|
1860
|
+
</co-stock-change-amount>
|
|
1861
|
+
|
|
1683
1862
|
<div class="stock-grid" *ngIf="showStockHistory">
|
|
1863
|
+
<div class="stock-button-left-group">
|
|
1864
|
+
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="backToStockInformation()"></span>
|
|
1865
|
+
</div>
|
|
1684
1866
|
<co-simple-grid [data]="stockHistoryInformation"
|
|
1685
1867
|
>
|
|
1686
|
-
<co-simple-grid-column [headerText]="'
|
|
1687
|
-
<co-simple-grid-column [headerText]="'
|
|
1688
|
-
<co-simple-grid-column [headerText]="'
|
|
1689
|
-
<co-simple-grid-column [headerText]="'
|
|
1690
|
-
<co-simple-grid-column [headerText]="'
|
|
1691
|
-
<co-simple-grid-column [headerText]="'
|
|
1868
|
+
<co-simple-grid-column [headerText]="'MUTATION_DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1869
|
+
<co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
|
|
1870
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
|
|
1871
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
|
|
1872
|
+
<co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNr'"></co-simple-grid-column>
|
|
1873
|
+
<co-simple-grid-column [headerText]="'TRANSACTION_TYPE'" [field]="'transType'"></co-simple-grid-column>
|
|
1874
|
+
<co-simple-grid-column [headerText]="'DOCUMENT_NUMBER'" [field]="'docNr'"></co-simple-grid-column>
|
|
1875
|
+
<co-simple-grid-column [headerText]="'LINE'" [field]="'posLineNr'"></co-simple-grid-column>
|
|
1876
|
+
<co-simple-grid-column [headerText]="'STOCK_STATE'" [field]="'stockStateId'"></co-simple-grid-column>
|
|
1877
|
+
<co-simple-grid-column [headerText]="'STOCK_REMARK'" [field]="'stockStateRemarkId'"></co-simple-grid-column>
|
|
1878
|
+
<co-simple-grid-column [headerText]="'VALUTA'" [field]="'currencyCode'"></co-simple-grid-column>
|
|
1879
|
+
<co-simple-grid-column [headerText]="'RELATION_ID'" [field]="'relationId'"></co-simple-grid-column>
|
|
1880
|
+
<co-simple-grid-column [headerText]="'USER'" [field]="'user'"></co-simple-grid-column>
|
|
1881
|
+
<co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
|
|
1692
1882
|
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
1693
1883
|
<ng-template #template let-row="row">
|
|
1694
1884
|
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog()"></co-icon>
|
|
@@ -1711,6 +1901,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1711
1901
|
</div>
|
|
1712
1902
|
</div>
|
|
1713
1903
|
<ione-send-method-dialog
|
|
1904
|
+
*ngIf="showSendMethodDialog"
|
|
1714
1905
|
[showDialog]="showSendMethodDialog"
|
|
1715
1906
|
(printButtonClicked)="printStockStickers()"
|
|
1716
1907
|
></ione-send-method-dialog>
|
|
@@ -1725,31 +1916,22 @@ StockInformationGridComponent.ctorParameters = () => [
|
|
|
1725
1916
|
StockInformationGridComponent.propDecorators = {
|
|
1726
1917
|
stock: [{ type: ViewChild, args: [StockInformationGridComponent,] }],
|
|
1727
1918
|
articleStockInformation: [{ type: Input }],
|
|
1728
|
-
stockHistoryInformation: [{ type: Input }],
|
|
1729
1919
|
stockLocationData: [{ type: Input }],
|
|
1730
|
-
|
|
1731
|
-
transferIconClicked: [{ type: Output }]
|
|
1920
|
+
stockHistoryInformation: [{ type: Input }],
|
|
1921
|
+
transferIconClicked: [{ type: Output }],
|
|
1922
|
+
historyClicked: [{ type: Output }]
|
|
1732
1923
|
};
|
|
1733
1924
|
|
|
1734
1925
|
class StockLocationComponent {
|
|
1735
|
-
constructor() {
|
|
1926
|
+
constructor(_stockService) {
|
|
1927
|
+
this._stockService = _stockService;
|
|
1736
1928
|
this.backToStockLines = new EventEmitter();
|
|
1737
|
-
this.MAX_GRID_ROWS = 10;
|
|
1738
1929
|
this.stockLocationColumns = [];
|
|
1739
|
-
this.stockLocation = [
|
|
1740
|
-
{ location: "title 1", batch: "1", serieNo: "1", amountInStock: "1", allocated: "1", amountAvailable: "1" },
|
|
1741
|
-
{ location: "title 2", amountInStock: "2" },
|
|
1742
|
-
{ location: "title 3", amountInStock: "3" },
|
|
1743
|
-
{ location: "title 4", amountInStock: "4" },
|
|
1744
|
-
{ location: "title 5", amountInStock: "5" },
|
|
1745
|
-
];
|
|
1746
1930
|
this.stockLocationColumns.push({ field: "location", headerText: "WAREHOUSE", editType: "none" }, { field: "batch", headerText: "BATCH" }, { field: "serieNo", headerText: "SERIAL_NO" }, { field: "amountInStock", headerText: "STOCK", textAlign: "Right", editType: "numericEdit" }, { field: "allocated", headerText: "ALLOCATED", textAlign: "Right" }, { field: "amountAvailable", headerText: "AVAILABLE_STOCK", textAlign: "Right" }, { field: "PhysicalStock", headerText: "PHYSICAL_STOCK", textAlign: "Right" }, { field: "Valuta", headerText: "VALUTA", textAlign: "Right" }, { field: "PurchasePrice", headerText: "PURSCHASE_PRICE", textAlign: "Right" }, { field: "SupplierNo", headerText: "SUPPLIER_NO", textAlign: "Right" }, { field: "Transfer", headerText: "TRANSFER" }, { field: "sticker", headerText: "STICKER" });
|
|
1747
1931
|
}
|
|
1748
1932
|
backToStockInformation() {
|
|
1749
1933
|
this.backToStockLines.emit();
|
|
1750
1934
|
}
|
|
1751
|
-
onStickerClick(event) {
|
|
1752
|
-
}
|
|
1753
1935
|
onOkClick() {
|
|
1754
1936
|
}
|
|
1755
1937
|
onCancelClick() {
|
|
@@ -1792,7 +1974,9 @@ StockLocationComponent.decorators = [
|
|
|
1792
1974
|
encapsulation: ViewEncapsulation.None
|
|
1793
1975
|
},] }
|
|
1794
1976
|
];
|
|
1795
|
-
StockLocationComponent.ctorParameters = () => [
|
|
1977
|
+
StockLocationComponent.ctorParameters = () => [
|
|
1978
|
+
{ type: StockService }
|
|
1979
|
+
];
|
|
1796
1980
|
StockLocationComponent.propDecorators = {
|
|
1797
1981
|
stockLocationInformation: [{ type: Input }],
|
|
1798
1982
|
backToStockLines: [{ type: Output }]
|
|
@@ -1803,15 +1987,29 @@ class StockTransferComponent {
|
|
|
1803
1987
|
this._stockService = _stockService;
|
|
1804
1988
|
this.handleCancelClicked = new EventEmitter();
|
|
1805
1989
|
this.handleStickerClicked = new EventEmitter();
|
|
1806
|
-
this.allWarehousesDropdownFields = {
|
|
1990
|
+
this.allWarehousesDropdownFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
1991
|
+
this.allLocationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
1807
1992
|
this.showSendMethodDialog = false;
|
|
1993
|
+
this.stockState = [];
|
|
1994
|
+
this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
|
|
1808
1995
|
}
|
|
1809
|
-
|
|
1996
|
+
ngAfterViewInit() {
|
|
1997
|
+
this.getStockManagementWarehouses();
|
|
1998
|
+
this.getStockState();
|
|
1999
|
+
}
|
|
2000
|
+
handleOkClick(data) {
|
|
2001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2002
|
+
data.selected = true;
|
|
2003
|
+
data.entryDate = new Date;
|
|
2004
|
+
yield this._stockService.updateArticleDetails(data);
|
|
2005
|
+
});
|
|
1810
2006
|
}
|
|
1811
2007
|
handleCancelClick() {
|
|
1812
2008
|
this.handleCancelClicked.emit();
|
|
1813
2009
|
}
|
|
1814
2010
|
handleSelectedWarehouse(event) {
|
|
2011
|
+
this.selectedWarehouse = event;
|
|
2012
|
+
this.getStockManagementLocations(this.selectedWarehouse);
|
|
1815
2013
|
}
|
|
1816
2014
|
handleStickerClick() {
|
|
1817
2015
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1819,6 +2017,21 @@ class StockTransferComponent {
|
|
|
1819
2017
|
this.showSendMethodDialog = true;
|
|
1820
2018
|
});
|
|
1821
2019
|
}
|
|
2020
|
+
getStockManagementWarehouses() {
|
|
2021
|
+
this._stockService.getStockManagementWarehouses().then((warehouses) => {
|
|
2022
|
+
this.warehouses = warehouses;
|
|
2023
|
+
});
|
|
2024
|
+
}
|
|
2025
|
+
getStockManagementLocations(data) {
|
|
2026
|
+
this._stockService.getStockManagementLocations(data).then((locations) => {
|
|
2027
|
+
this.locations = locations;
|
|
2028
|
+
});
|
|
2029
|
+
}
|
|
2030
|
+
getStockState() {
|
|
2031
|
+
this._stockService.getStockState().then((state) => {
|
|
2032
|
+
this.stockState = state;
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
1822
2035
|
}
|
|
1823
2036
|
StockTransferComponent.decorators = [
|
|
1824
2037
|
{ type: Component, args: [{
|
|
@@ -1826,16 +2039,15 @@ StockTransferComponent.decorators = [
|
|
|
1826
2039
|
template: `
|
|
1827
2040
|
<div class="stock-transfer">
|
|
1828
2041
|
<div class="stock-transfer-columns">
|
|
1829
|
-
<
|
|
1830
|
-
<div *ngIf="article" class="stock-transfer-left-column">
|
|
2042
|
+
<div *ngIf="articleToTransfer" class="stock-transfer-left-column">
|
|
1831
2043
|
<co-input-text disabled
|
|
1832
|
-
[(model)]="
|
|
1833
|
-
[textContent]="
|
|
2044
|
+
[(model)]="articleToTransfer.warehouseDescription"
|
|
2045
|
+
[textContent]="articleToTransfer.warehouseDescription"
|
|
1834
2046
|
[placeholder]="'Standaard magazijn'">
|
|
1835
2047
|
</co-input-text>
|
|
1836
2048
|
<co-input-text disabled
|
|
1837
|
-
[(model)]="
|
|
1838
|
-
[textContent]="
|
|
2049
|
+
[(model)]="articleToTransfer.locationNo"
|
|
2050
|
+
[textContent]="articleToTransfer.locationNo"
|
|
1839
2051
|
[placeholder]="'Standaard locatie'">
|
|
1840
2052
|
</co-input-text>
|
|
1841
2053
|
<co-input-text disabled
|
|
@@ -1847,32 +2059,35 @@ StockTransferComponent.decorators = [
|
|
|
1847
2059
|
[placeholder]="'Serie'">
|
|
1848
2060
|
</co-input-text>
|
|
1849
2061
|
<co-input-text
|
|
1850
|
-
[(model)]="
|
|
2062
|
+
[(model)]="articleToTransfer.amountTransfer"
|
|
1851
2063
|
[placeholder]="'Aantal'">
|
|
1852
|
-
|
|
1853
2064
|
</co-input-text>
|
|
1854
2065
|
</div>
|
|
1855
2066
|
|
|
1856
2067
|
<div class="stock-transfer-right-column">
|
|
1857
|
-
<co-drop-down-list [collection]="
|
|
2068
|
+
<co-drop-down-list [collection]="warehouses"
|
|
1858
2069
|
[fields]="allWarehousesDropdownFields"
|
|
1859
2070
|
(modelChange)="handleSelectedWarehouse($event)"
|
|
2071
|
+
[(model)]="articleToTransfer.targetWarehouse">
|
|
2072
|
+
</co-drop-down-list>
|
|
2073
|
+
<co-drop-down-list [collection]="locations"
|
|
2074
|
+
[fields]="allLocationDropdownFields"
|
|
2075
|
+
[(model)]="articleToTransfer.targetLocation"
|
|
1860
2076
|
>
|
|
1861
2077
|
</co-drop-down-list>
|
|
1862
|
-
<co-drop-down-list
|
|
1863
|
-
|
|
2078
|
+
<co-drop-down-list [collection]="stockState"
|
|
2079
|
+
[fields]="stockStateDropdownField"
|
|
2080
|
+
[placeholder]="'Voorraadstatus'"
|
|
2081
|
+
[(model)]="articleToTransfer.stockStateId">
|
|
1864
2082
|
</co-drop-down-list>
|
|
1865
|
-
<co-input-text [placeholder]="'
|
|
1866
|
-
|
|
1867
|
-
</co-input-text>
|
|
1868
|
-
<co-input-text [placeholder]="'Omschrijving'">
|
|
1869
|
-
|
|
2083
|
+
<co-input-text [placeholder]="'Omschrijving'"
|
|
2084
|
+
[(model)]="articleToTransfer.stockStateRemark">
|
|
1870
2085
|
</co-input-text>
|
|
1871
2086
|
</div>
|
|
1872
2087
|
</div>
|
|
1873
2088
|
|
|
1874
2089
|
<div class="ok-cancel-buttons">
|
|
1875
|
-
<co-button [textContent]="'Ok'" (click)="handleOkClick()"></co-button>
|
|
2090
|
+
<co-button [textContent]="'Ok'" (click)="handleOkClick(articleToTransfer)"></co-button>
|
|
1876
2091
|
<co-button [textContent]="'Annuleren'" (click)="handleCancelClick()"></co-button>
|
|
1877
2092
|
<co-button [textContent]="'Sticker'" (click)="handleStickerClick()"></co-button>
|
|
1878
2093
|
</div>
|
|
@@ -1887,6 +2102,7 @@ StockTransferComponent.ctorParameters = () => [
|
|
|
1887
2102
|
StockTransferComponent.propDecorators = {
|
|
1888
2103
|
stockSticker: [{ type: Input }],
|
|
1889
2104
|
article: [{ type: Input }],
|
|
2105
|
+
articleToTransfer: [{ type: Input }],
|
|
1890
2106
|
articleWarehouse: [{ type: Input }],
|
|
1891
2107
|
allWarehouses: [{ type: Input }],
|
|
1892
2108
|
handleCancelClicked: [{ type: Output }],
|
|
@@ -1922,6 +2138,7 @@ class SendMethodDialogComponent {
|
|
|
1922
2138
|
this.showStandardPrinterOptions = false;
|
|
1923
2139
|
this.showPrinterSelections = false;
|
|
1924
2140
|
this.showExitButton = true;
|
|
2141
|
+
this.printTemplatesField = { text: "name", value: "name" };
|
|
1925
2142
|
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
1926
2143
|
this.models = [false, false, true];
|
|
1927
2144
|
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
@@ -1932,6 +2149,9 @@ class SendMethodDialogComponent {
|
|
|
1932
2149
|
showClass() {
|
|
1933
2150
|
return true;
|
|
1934
2151
|
}
|
|
2152
|
+
ngAfterViewInit() {
|
|
2153
|
+
this.getPrintTemplates();
|
|
2154
|
+
}
|
|
1935
2155
|
getPrinters() {
|
|
1936
2156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1937
2157
|
return this._stockService.getAllPrinters(true).then((list) => {
|
|
@@ -1959,14 +2179,16 @@ class SendMethodDialogComponent {
|
|
|
1959
2179
|
this.headerTitle = 'Verzendopties';
|
|
1960
2180
|
}
|
|
1961
2181
|
}
|
|
1962
|
-
loadLayouts() {
|
|
1963
|
-
const printJob = new PrintJob();
|
|
1964
|
-
// this.printLayouts = this._stockService.getPrintTemplates(printJob);
|
|
1965
|
-
}
|
|
1966
2182
|
onPrinterClicked(printer) {
|
|
1967
2183
|
this.defaultPrinter = printer.name;
|
|
1968
2184
|
this.showPrinterSelections = !this.showPrinterSelections;
|
|
1969
2185
|
}
|
|
2186
|
+
getPrintTemplates() {
|
|
2187
|
+
const data = new StockStickersPrintLayoutsBo();
|
|
2188
|
+
this._stockService.getStockStickerTemplates(data).then((templates) => {
|
|
2189
|
+
this.printTemplates = templates;
|
|
2190
|
+
});
|
|
2191
|
+
}
|
|
1970
2192
|
}
|
|
1971
2193
|
SendMethodDialogComponent.decorators = [
|
|
1972
2194
|
{ type: Component, args: [{
|
|
@@ -2018,7 +2240,8 @@ SendMethodDialogComponent.decorators = [
|
|
|
2018
2240
|
<div class="lov-wrapper">
|
|
2019
2241
|
<co-input-combo-box
|
|
2020
2242
|
[(model)]="selectedLayout"
|
|
2021
|
-
[collection]="
|
|
2243
|
+
[collection]="printTemplates"
|
|
2244
|
+
[fields]="printTemplatesField"
|
|
2022
2245
|
[forceReadonly]="true"
|
|
2023
2246
|
placeholder="Layout"
|
|
2024
2247
|
></co-input-combo-box>
|
|
@@ -2137,6 +2360,71 @@ SendMethodDialogModule.decorators = [
|
|
|
2137
2360
|
},] }
|
|
2138
2361
|
];
|
|
2139
2362
|
|
|
2363
|
+
class StockChangeAmountComponent {
|
|
2364
|
+
constructor(_stockService) {
|
|
2365
|
+
this._stockService = _stockService;
|
|
2366
|
+
this.closeStockChangeAmount = new EventEmitter();
|
|
2367
|
+
this.stockState = [];
|
|
2368
|
+
this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
|
|
2369
|
+
}
|
|
2370
|
+
ngAfterViewInit() {
|
|
2371
|
+
this.getStockState();
|
|
2372
|
+
}
|
|
2373
|
+
closeDialogClick() {
|
|
2374
|
+
this.closeStockChangeAmount.emit();
|
|
2375
|
+
}
|
|
2376
|
+
handleOkClick(data) {
|
|
2377
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2378
|
+
yield this._stockService.updateArticleDetails(data);
|
|
2379
|
+
});
|
|
2380
|
+
}
|
|
2381
|
+
handleCancelClick() {
|
|
2382
|
+
this.closeStockChangeAmount.emit();
|
|
2383
|
+
}
|
|
2384
|
+
getStockState() {
|
|
2385
|
+
this._stockService.getStockState().then((state) => {
|
|
2386
|
+
this.stockState = state;
|
|
2387
|
+
});
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
StockChangeAmountComponent.decorators = [
|
|
2391
|
+
{ type: Component, args: [{
|
|
2392
|
+
selector: "co-stock-change-amount",
|
|
2393
|
+
template: `
|
|
2394
|
+
<div class="stock-transfer">
|
|
2395
|
+
<co-dialog-wizard [showCloseIcon]="true" (closeClick)="closeDialogClick()">
|
|
2396
|
+
<ng-container header>
|
|
2397
|
+
<span [textContent]="'STOCK_CHANGE_REASON'"></span>
|
|
2398
|
+
</ng-container>
|
|
2399
|
+
<div class="popup-wrapper">
|
|
2400
|
+
<co-drop-down-list [collection]="stockState"
|
|
2401
|
+
[fields]="stockStateDropdownField"
|
|
2402
|
+
[placeholder]="'STOCK_STATE'"
|
|
2403
|
+
[(model)]="selectedArticleDetailsData.stockStateId"
|
|
2404
|
+
></co-drop-down-list>
|
|
2405
|
+
|
|
2406
|
+
<co-input-textarea [(model)]="selectedArticleDetailsData.stockStateRemark"
|
|
2407
|
+
|
|
2408
|
+
></co-input-textarea>
|
|
2409
|
+
<div class="ok-cancel-buttons">
|
|
2410
|
+
<co-button [textContent]="'Ok'" (click)="handleOkClick(selectedArticleDetailsData)"></co-button>
|
|
2411
|
+
<co-button [textContent]="'Annuleren'" (click)="handleCancelClick()"></co-button>
|
|
2412
|
+
</div>
|
|
2413
|
+
</div>
|
|
2414
|
+
</co-dialog-wizard>
|
|
2415
|
+
</div>
|
|
2416
|
+
`,
|
|
2417
|
+
encapsulation: ViewEncapsulation.None
|
|
2418
|
+
},] }
|
|
2419
|
+
];
|
|
2420
|
+
StockChangeAmountComponent.ctorParameters = () => [
|
|
2421
|
+
{ type: StockService }
|
|
2422
|
+
];
|
|
2423
|
+
StockChangeAmountComponent.propDecorators = {
|
|
2424
|
+
selectedArticleDetailsData: [{ type: Input }],
|
|
2425
|
+
closeStockChangeAmount: [{ type: Output }]
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2140
2428
|
class StockModule {
|
|
2141
2429
|
}
|
|
2142
2430
|
StockModule.decorators = [
|
|
@@ -2152,14 +2440,18 @@ StockModule.decorators = [
|
|
|
2152
2440
|
ImageModule,
|
|
2153
2441
|
InputTextModule,
|
|
2154
2442
|
SendMethodDialogModule,
|
|
2155
|
-
IconModule
|
|
2443
|
+
IconModule,
|
|
2444
|
+
InputNumberPickerModule,
|
|
2445
|
+
CoDialogWizardModule,
|
|
2446
|
+
InputTextareaModule
|
|
2156
2447
|
],
|
|
2157
2448
|
declarations: [
|
|
2158
2449
|
StockComponent,
|
|
2159
2450
|
StockInformationComponent,
|
|
2160
2451
|
StockInformationGridComponent,
|
|
2161
2452
|
StockLocationComponent,
|
|
2162
|
-
StockTransferComponent
|
|
2453
|
+
StockTransferComponent,
|
|
2454
|
+
StockChangeAmountComponent
|
|
2163
2455
|
],
|
|
2164
2456
|
exports: [
|
|
2165
2457
|
StockComponent
|
|
@@ -2171,6 +2463,242 @@ StockModule.decorators = [
|
|
|
2171
2463
|
},] }
|
|
2172
2464
|
];
|
|
2173
2465
|
|
|
2466
|
+
var KeyboardCode;
|
|
2467
|
+
(function (KeyboardCode) {
|
|
2468
|
+
KeyboardCode["Backspace"] = "Backspace";
|
|
2469
|
+
KeyboardCode["Digit0"] = "Digit0";
|
|
2470
|
+
KeyboardCode["Digit1"] = "Digit1";
|
|
2471
|
+
KeyboardCode["Digit2"] = "Digit2";
|
|
2472
|
+
KeyboardCode["Digit3"] = "Digit3";
|
|
2473
|
+
KeyboardCode["Digit4"] = "Digit4";
|
|
2474
|
+
KeyboardCode["Digit5"] = "Digit5";
|
|
2475
|
+
KeyboardCode["Digit6"] = "Digit6";
|
|
2476
|
+
KeyboardCode["Digit7"] = "Digit7";
|
|
2477
|
+
KeyboardCode["Digit8"] = "Digit8";
|
|
2478
|
+
KeyboardCode["Digit9"] = "Digit9";
|
|
2479
|
+
KeyboardCode["Enter"] = "Enter";
|
|
2480
|
+
KeyboardCode["Escape"] = "Escape";
|
|
2481
|
+
KeyboardCode["Minus"] = "Minus";
|
|
2482
|
+
KeyboardCode["Numpad0"] = "Numpad0";
|
|
2483
|
+
KeyboardCode["Numpad1"] = "Numpad1";
|
|
2484
|
+
KeyboardCode["Numpad2"] = "Numpad2";
|
|
2485
|
+
KeyboardCode["Numpad3"] = "Numpad3";
|
|
2486
|
+
KeyboardCode["Numpad4"] = "Numpad4";
|
|
2487
|
+
KeyboardCode["Numpad5"] = "Numpad5";
|
|
2488
|
+
KeyboardCode["Numpad6"] = "Numpad6";
|
|
2489
|
+
KeyboardCode["Numpad7"] = "Numpad7";
|
|
2490
|
+
KeyboardCode["Numpad8"] = "Numpad8";
|
|
2491
|
+
KeyboardCode["Numpad9"] = "Numpad9";
|
|
2492
|
+
KeyboardCode["NumpadDecimal"] = "NumpadDecimal";
|
|
2493
|
+
KeyboardCode["NumpadEnter"] = "NumpadEnter";
|
|
2494
|
+
KeyboardCode["NumpadSubtract"] = "NumpadSubtract";
|
|
2495
|
+
KeyboardCode["Period"] = "Period";
|
|
2496
|
+
})(KeyboardCode || (KeyboardCode = {}));
|
|
2497
|
+
|
|
2498
|
+
class KeyPadComponent {
|
|
2499
|
+
constructor(iconCacheService) {
|
|
2500
|
+
this.iconCacheService = iconCacheService;
|
|
2501
|
+
this.icons = Icon;
|
|
2502
|
+
this.showValue = true;
|
|
2503
|
+
this.emitModelChangeOnEnter = true;
|
|
2504
|
+
this.modelChange = new EventEmitter();
|
|
2505
|
+
this.internalModelChange = new EventEmitter();
|
|
2506
|
+
this.enterClick = new EventEmitter();
|
|
2507
|
+
this._validKeyMap = new Map([
|
|
2508
|
+
[KeyboardCode.Digit0, "0"],
|
|
2509
|
+
[KeyboardCode.Digit1, "1"],
|
|
2510
|
+
[KeyboardCode.Digit2, "2"],
|
|
2511
|
+
[KeyboardCode.Digit3, "3"],
|
|
2512
|
+
[KeyboardCode.Digit4, "4"],
|
|
2513
|
+
[KeyboardCode.Digit5, "5"],
|
|
2514
|
+
[KeyboardCode.Digit6, "6"],
|
|
2515
|
+
[KeyboardCode.Digit7, "7"],
|
|
2516
|
+
[KeyboardCode.Digit8, "8"],
|
|
2517
|
+
[KeyboardCode.Digit9, "9"],
|
|
2518
|
+
[KeyboardCode.Numpad0, "0"],
|
|
2519
|
+
[KeyboardCode.Numpad1, "1"],
|
|
2520
|
+
[KeyboardCode.Numpad2, "2"],
|
|
2521
|
+
[KeyboardCode.Numpad3, "3"],
|
|
2522
|
+
[KeyboardCode.Numpad4, "4"],
|
|
2523
|
+
[KeyboardCode.Numpad5, "5"],
|
|
2524
|
+
[KeyboardCode.Numpad6, "6"],
|
|
2525
|
+
[KeyboardCode.Numpad7, "7"],
|
|
2526
|
+
[KeyboardCode.Numpad8, "8"],
|
|
2527
|
+
[KeyboardCode.Numpad9, "9"],
|
|
2528
|
+
[KeyboardCode.NumpadDecimal, "."],
|
|
2529
|
+
[KeyboardCode.Period, "."]
|
|
2530
|
+
]);
|
|
2531
|
+
this.isNegative = false;
|
|
2532
|
+
this._model = 0;
|
|
2533
|
+
this._internalModel = "0";
|
|
2534
|
+
this._maxCharacters = 11;
|
|
2535
|
+
}
|
|
2536
|
+
set model(value) {
|
|
2537
|
+
this._model = value;
|
|
2538
|
+
this._internalModel = this._model + "";
|
|
2539
|
+
}
|
|
2540
|
+
get model() {
|
|
2541
|
+
return this._model;
|
|
2542
|
+
}
|
|
2543
|
+
showClass() {
|
|
2544
|
+
return true;
|
|
2545
|
+
}
|
|
2546
|
+
handleKeyDown(event) {
|
|
2547
|
+
this._keyDown(event);
|
|
2548
|
+
}
|
|
2549
|
+
set internalModel(value) {
|
|
2550
|
+
this._internalModel = value;
|
|
2551
|
+
this.isNegative = parseFloat(this._internalModel) < 0;
|
|
2552
|
+
this.internalModelChange.emit(this._internalModel);
|
|
2553
|
+
}
|
|
2554
|
+
get internalModel() {
|
|
2555
|
+
return this._internalModel;
|
|
2556
|
+
}
|
|
2557
|
+
handleMinusClick(event) {
|
|
2558
|
+
const model = parseFloat(this.internalModel);
|
|
2559
|
+
if (model !== 0) {
|
|
2560
|
+
if (model < 0) {
|
|
2561
|
+
this.internalModel = Math.abs(model) + "";
|
|
2562
|
+
}
|
|
2563
|
+
else {
|
|
2564
|
+
this.internalModel = -model + "";
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
this._emitModelChange();
|
|
2568
|
+
}
|
|
2569
|
+
handleClearClick(event) {
|
|
2570
|
+
this.internalModel = "0";
|
|
2571
|
+
this._emitModelChange();
|
|
2572
|
+
}
|
|
2573
|
+
handleBsClick(event) {
|
|
2574
|
+
let wish = this.internalModel;
|
|
2575
|
+
wish = wish.slice(0, wish.length - 1) || "0";
|
|
2576
|
+
if (!isNaN(parseFloat(wish))) {
|
|
2577
|
+
this.internalModel = parseFloat(wish) + "";
|
|
2578
|
+
}
|
|
2579
|
+
this._emitModelChange();
|
|
2580
|
+
}
|
|
2581
|
+
handleButtonClick(chr) {
|
|
2582
|
+
this._updateModel(chr);
|
|
2583
|
+
}
|
|
2584
|
+
handleEnterClick(event) {
|
|
2585
|
+
this._emitModelChange(true);
|
|
2586
|
+
this.enterClick.emit();
|
|
2587
|
+
}
|
|
2588
|
+
_updateModel(value) {
|
|
2589
|
+
if (value === undefined || value === null ||
|
|
2590
|
+
(value === '.' && this.internalModel.indexOf('.') > -1) ||
|
|
2591
|
+
this.internalModel.length >= this._maxCharacters) {
|
|
2592
|
+
return;
|
|
2593
|
+
}
|
|
2594
|
+
this.internalModel = this.internalModel !== "0" ? this.internalModel + value : value;
|
|
2595
|
+
this._emitModelChange();
|
|
2596
|
+
}
|
|
2597
|
+
_keyDown(event) {
|
|
2598
|
+
if (this._isEnter(event)) {
|
|
2599
|
+
this.handleEnterClick(event);
|
|
2600
|
+
}
|
|
2601
|
+
else if (this._isMinus(event)) {
|
|
2602
|
+
this.handleMinusClick(event);
|
|
2603
|
+
}
|
|
2604
|
+
else if (this._isEscape(event)) {
|
|
2605
|
+
this.handleClearClick(event);
|
|
2606
|
+
}
|
|
2607
|
+
else if (this._isBackspace(event)) {
|
|
2608
|
+
this.handleBsClick(event);
|
|
2609
|
+
}
|
|
2610
|
+
else {
|
|
2611
|
+
this._updateModel(this._validKeyMap.get(event.code));
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
_isEnter(event) {
|
|
2615
|
+
return event.code === KeyboardCode.Enter || event.code === KeyboardCode.NumpadEnter;
|
|
2616
|
+
}
|
|
2617
|
+
_isMinus(event) {
|
|
2618
|
+
return event.code === KeyboardCode.Minus || event.code === KeyboardCode.NumpadSubtract;
|
|
2619
|
+
}
|
|
2620
|
+
_isEscape(event) {
|
|
2621
|
+
return event.code === KeyboardCode.Escape;
|
|
2622
|
+
}
|
|
2623
|
+
_isBackspace(event) {
|
|
2624
|
+
return event.code === KeyboardCode.Backspace;
|
|
2625
|
+
}
|
|
2626
|
+
_emitModelChange(enter = false) {
|
|
2627
|
+
if ((enter && this.emitModelChangeOnEnter) || (!enter && !this.emitModelChangeOnEnter)) {
|
|
2628
|
+
const model = parseFloat(this.internalModel);
|
|
2629
|
+
if (!isNaN(model)) {
|
|
2630
|
+
if (enter && this.emitModelChangeOnEnter) {
|
|
2631
|
+
this.model = model;
|
|
2632
|
+
}
|
|
2633
|
+
this.modelChange.emit(model);
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
KeyPadComponent.decorators = [
|
|
2639
|
+
{ type: Component, args: [{
|
|
2640
|
+
selector: 'co-key-pad',
|
|
2641
|
+
template: `
|
|
2642
|
+
<div class="key-pad-wrapper">
|
|
2643
|
+
<div class="key-pad-model-wrapper" *ngIf="showValue">
|
|
2644
|
+
<div class="key-pad-model" [textContent]="internalModel" [class.negative]="isNegative"></div>
|
|
2645
|
+
</div>
|
|
2646
|
+
<div class="key-pad-button-wrapper">
|
|
2647
|
+
<div class="key-pad-button button-7" [textContent]="'7'" (click)="handleButtonClick('7')"></div>
|
|
2648
|
+
<div class="key-pad-button button-8" [textContent]="'8'" (click)="handleButtonClick('8')"></div>
|
|
2649
|
+
<div class="key-pad-button button-9" [textContent]="'9'" (click)="handleButtonClick('9')"></div>
|
|
2650
|
+
<div class="key-pad-button button-bs" (click)="handleBsClick($event)">
|
|
2651
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.DeleteLeftRegular)"></co-icon>
|
|
2652
|
+
</div>
|
|
2653
|
+
<div class="key-pad-button button-4" [textContent]="'4'" (click)="handleButtonClick('4')"></div>
|
|
2654
|
+
<div class="key-pad-button button-5" [textContent]="'5'" (click)="handleButtonClick('5')"></div>
|
|
2655
|
+
<div class="key-pad-button button-6" [textContent]="'6'" (click)="handleButtonClick('6')"></div>
|
|
2656
|
+
<div class="key-pad-button button-minus" [textContent]="'-'" (click)="handleMinusClick($event)"></div>
|
|
2657
|
+
<div class="key-pad-button button-1" [textContent]="'1'" (click)="handleButtonClick('1')"></div>
|
|
2658
|
+
<div class="key-pad-button button-2" [textContent]="'2'" (click)="handleButtonClick('2')"></div>
|
|
2659
|
+
<div class="key-pad-button button-3" [textContent]="'3'" (click)="handleButtonClick('3')"></div>
|
|
2660
|
+
<div class="key-pad-button button-enter" (click)="handleEnterClick($event)">
|
|
2661
|
+
<span [textContent]="'enter'"></span>
|
|
2662
|
+
</div>
|
|
2663
|
+
<div class="key-pad-button button-0" [textContent]="'0'" (click)="handleButtonClick('0')"></div>
|
|
2664
|
+
<div class="key-pad-button button-dot" [textContent]="'.'" (click)="handleButtonClick('.')"></div>
|
|
2665
|
+
</div>
|
|
2666
|
+
</div>
|
|
2667
|
+
`,
|
|
2668
|
+
encapsulation: ViewEncapsulation.None
|
|
2669
|
+
},] }
|
|
2670
|
+
];
|
|
2671
|
+
KeyPadComponent.ctorParameters = () => [
|
|
2672
|
+
{ type: IconCacheService }
|
|
2673
|
+
];
|
|
2674
|
+
KeyPadComponent.propDecorators = {
|
|
2675
|
+
model: [{ type: Input }],
|
|
2676
|
+
showValue: [{ type: Input }],
|
|
2677
|
+
emitModelChangeOnEnter: [{ type: Input }],
|
|
2678
|
+
modelChange: [{ type: Output }],
|
|
2679
|
+
internalModelChange: [{ type: Output }],
|
|
2680
|
+
enterClick: [{ type: Output }],
|
|
2681
|
+
showClass: [{ type: HostBinding, args: ['class.co-key-pad',] }],
|
|
2682
|
+
handleKeyDown: [{ type: HostListener, args: ['window:keydown', ['$event'],] }]
|
|
2683
|
+
};
|
|
2684
|
+
|
|
2685
|
+
class KeyPadModule {
|
|
2686
|
+
}
|
|
2687
|
+
KeyPadModule.decorators = [
|
|
2688
|
+
{ type: NgModule, args: [{
|
|
2689
|
+
imports: [
|
|
2690
|
+
CommonModule,
|
|
2691
|
+
IconModule
|
|
2692
|
+
],
|
|
2693
|
+
declarations: [
|
|
2694
|
+
KeyPadComponent
|
|
2695
|
+
],
|
|
2696
|
+
exports: [
|
|
2697
|
+
KeyPadComponent
|
|
2698
|
+
]
|
|
2699
|
+
},] }
|
|
2700
|
+
];
|
|
2701
|
+
|
|
2174
2702
|
/*
|
|
2175
2703
|
* Public API Surface of sharedcomponents
|
|
2176
2704
|
*/
|
|
@@ -2179,5 +2707,5 @@ StockModule.decorators = [
|
|
|
2179
2707
|
* Generated bundle index. Do not edit.
|
|
2180
2708
|
*/
|
|
2181
2709
|
|
|
2182
|
-
export { DocsignComponent, DocsignModule, SendMethodDialogComponent, SendMethodDialogModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, IoneConnectorAdapterService as ɵd, IconCacheService as ɵe, StockInformationComponent as ɵf, StockInformationGridComponent as ɵg, StockLocationComponent as ɵh, StockTransferComponent as ɵi };
|
|
2710
|
+
export { DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, SendMethodDialogComponent, SendMethodDialogModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, IoneConnectorAdapterService as ɵd, IconCacheService as ɵe, StockInformationComponent as ɵf, StockInformationGridComponent as ɵg, StockLocationComponent as ɵh, StockTransferComponent as ɵi, StockChangeAmountComponent as ɵj };
|
|
2183
2711
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|