@colijnit/sharedcomponents 1.0.51 → 1.0.53
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/bundles/colijnit-sharedcomponents.umd.js +6495 -6394
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +25 -3
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.js +4 -2
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +13 -2
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +12 -10
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +18 -7
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +11 -13
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +50 -44
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +62 -62
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +6 -10
- package/esm2015/lib/components/stock/stock.component.js +53 -23
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/service/shared-connector.service.js +33 -1
- package/esm2015/lib/service/stock.service.js +11 -1
- package/fesm2015/colijnit-sharedcomponents.js +283 -162
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +6 -0
- package/lib/components/send-method-dialog/components/layout-selection/style/_layout.scss +10 -0
- package/lib/components/send-method-dialog/components/layout-selection/style/_material-definition.scss +6 -6
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +1 -0
- package/lib/components/send-method-dialog/components/printer-selection/style/_layout.scss +10 -0
- package/lib/components/send-method-dialog/components/printer-selection/style/_material-definition.scss +6 -8
- package/lib/components/send-method-dialog/components/send-method-printer/style/_layout.scss +5 -0
- package/lib/components/send-method-dialog/components/send-method-printer/style/_material-definition.scss +1 -1
- package/lib/components/send-method-dialog/components/signature-button/style/_material-definition.scss +5 -5
- package/lib/components/send-method-dialog/style/_layout.scss +104 -1
- package/lib/components/send-method-dialog/style/_material-definition.scss +25 -7
- package/lib/components/simple-tags/style/_layout.scss +79 -39
- package/lib/components/simple-tags/style/_material-definition.scss +24 -4
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +9 -7
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +12 -9
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +2 -2
- package/lib/components/stock/stock.component.d.ts +12 -7
- package/lib/enum/icon.enum.d.ts +1 -0
- package/lib/service/shared-connector.service.d.ts +5 -0
- package/lib/service/stock.service.d.ts +5 -0
- package/lib/style/_variables.scss +1 -1
- package/package.json +3 -3
|
@@ -24,7 +24,9 @@ import { SendMethod as SendMethod$1 } from '@colijnit/mainapi/build/model/send-m
|
|
|
24
24
|
import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/service/business-object-factory';
|
|
25
25
|
import { TagTreeItem } from '@colijnit/mainapi/build/model/tag-tree-item.bo';
|
|
26
26
|
import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
|
|
27
|
+
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
27
28
|
import { ArticleStock as ArticleStock$1 } from '@colijnit/articleapi/build/model/article-stock';
|
|
29
|
+
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
28
30
|
import { IconModule, InputCheckboxModule, CoDialogModule, ButtonModule, ListOfValuesModule, OverlayService, ClickoutsideModule, OverlayModule, InputRadioButtonModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, PopupModule, ResponsiveTextModule, InputDatePickerModule, InputSearchModule } from '@colijnit/corecomponents_v12';
|
|
29
31
|
import * as i1 from '@angular/platform-browser';
|
|
30
32
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
@@ -788,6 +790,38 @@ class SharedConnectorService {
|
|
|
788
790
|
});
|
|
789
791
|
});
|
|
790
792
|
}
|
|
793
|
+
getArticleFlat(sku) {
|
|
794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
795
|
+
return new Promise((resolve, reject) => {
|
|
796
|
+
return this.articleConnector.getArticleFlat(sku).then((result) => {
|
|
797
|
+
if (result.validationResult && result.validationResult.success) {
|
|
798
|
+
if (result.resultObject) {
|
|
799
|
+
resolve(result.resultObject);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
reject(result.validationMessagesAsString);
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
searchArticles(request) {
|
|
810
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
811
|
+
return new Promise((resolve, reject) => {
|
|
812
|
+
return this.articleConnector.searchArticles(request, false).then((result) => {
|
|
813
|
+
if (result.validationResult && result.validationResult.success) {
|
|
814
|
+
if (result.resultObjects) {
|
|
815
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockManagementWarehouses, result.resultObjects));
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
else {
|
|
819
|
+
reject(result.validationMessagesAsString);
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
});
|
|
823
|
+
});
|
|
824
|
+
}
|
|
791
825
|
getStockManagementWarehouses() {
|
|
792
826
|
return __awaiter(this, void 0, void 0, function* () {
|
|
793
827
|
return new Promise((resolve, reject) => {
|
|
@@ -1064,6 +1098,16 @@ class StockService {
|
|
|
1064
1098
|
commit() {
|
|
1065
1099
|
return this._sharedService.commit();
|
|
1066
1100
|
}
|
|
1101
|
+
getArticleFlat(sku) {
|
|
1102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1103
|
+
return yield this._sharedService.getArticleFlat(sku);
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
searchArticles(request) {
|
|
1107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1108
|
+
return yield this._sharedService.searchArticles(request);
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1067
1111
|
}
|
|
1068
1112
|
StockService.ɵprov = i0.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0.ɵɵinject(SharedConnectorService)); }, token: StockService, providedIn: "root" });
|
|
1069
1113
|
StockService.decorators = [
|
|
@@ -1107,15 +1151,17 @@ LocalizeService.decorators = [
|
|
|
1107
1151
|
];
|
|
1108
1152
|
|
|
1109
1153
|
class StockComponent {
|
|
1110
|
-
constructor(
|
|
1111
|
-
this.
|
|
1154
|
+
constructor(_stockService, _optionsService, _dictionary, _changeDetector, _localizeService, _connector) {
|
|
1155
|
+
this._stockService = _stockService;
|
|
1112
1156
|
this._optionsService = _optionsService;
|
|
1113
1157
|
this._dictionary = _dictionary;
|
|
1114
1158
|
this._changeDetector = _changeDetector;
|
|
1115
1159
|
this._localizeService = _localizeService;
|
|
1160
|
+
this._connector = _connector;
|
|
1116
1161
|
this.handleStickerClicked = new EventEmitter();
|
|
1117
1162
|
this.okButtonClicked = new EventEmitter();
|
|
1118
1163
|
this.cancelButtonClicked = new EventEmitter();
|
|
1164
|
+
this.loaded = false;
|
|
1119
1165
|
this.showStockInformationGrid = true;
|
|
1120
1166
|
this.showStockTransfer = false;
|
|
1121
1167
|
this.allAvailableStock = 0;
|
|
@@ -1128,26 +1174,31 @@ class StockComponent {
|
|
|
1128
1174
|
this._localizeService.translation = value;
|
|
1129
1175
|
this._changeDetector.markForCheck();
|
|
1130
1176
|
}
|
|
1131
|
-
set article(
|
|
1132
|
-
|
|
1133
|
-
|
|
1177
|
+
set article(articleOrGoodId) {
|
|
1178
|
+
if (articleOrGoodId instanceof ArticleExtended) {
|
|
1179
|
+
this.articleExtended = articleOrGoodId;
|
|
1180
|
+
this._goodId = articleOrGoodId.goodId;
|
|
1181
|
+
}
|
|
1182
|
+
else if (typeof articleOrGoodId === "number") {
|
|
1183
|
+
this._goodId = articleOrGoodId;
|
|
1184
|
+
}
|
|
1134
1185
|
}
|
|
1135
1186
|
;
|
|
1136
1187
|
showClass() {
|
|
1137
1188
|
return true;
|
|
1138
1189
|
}
|
|
1139
1190
|
ngOnDestroy() {
|
|
1191
|
+
this.articleExtended = undefined;
|
|
1192
|
+
this.articleFlat = undefined;
|
|
1140
1193
|
this._subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
1141
1194
|
}
|
|
1142
1195
|
ngOnInit() {
|
|
1143
|
-
this.getArtStockStatus();
|
|
1144
|
-
this.getStockManagementWarehouses();
|
|
1145
1196
|
}
|
|
1146
1197
|
handleStockTransferClick(event) {
|
|
1147
1198
|
this.stockTransferArticleDetails = event;
|
|
1148
1199
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1149
1200
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1150
|
-
this.
|
|
1201
|
+
this._stockService.stockStickers = new PrintStockStickers();
|
|
1151
1202
|
}
|
|
1152
1203
|
handleSendMethodClick(event) {
|
|
1153
1204
|
this.showSendMethodDialog = true;
|
|
@@ -1156,23 +1207,23 @@ class StockComponent {
|
|
|
1156
1207
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1157
1208
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1158
1209
|
}
|
|
1159
|
-
getStockInformation(
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
this.stockInformation =
|
|
1210
|
+
getStockInformation(goodId) {
|
|
1211
|
+
const articleData = new ArticleStock$1();
|
|
1212
|
+
articleData.goodId = goodId.toString();
|
|
1213
|
+
articleData.viewKind = "M";
|
|
1214
|
+
this._stockService.getStockInformation(articleData).then(result => {
|
|
1215
|
+
this.stockInformation = result;
|
|
1165
1216
|
this.stockInformation.forEach((articleStock) => this.allAvailableStock += articleStock.availableStock);
|
|
1166
1217
|
this.stockInformation.forEach((articleStock) => this.allTechnicalStock += articleStock.technicalStock);
|
|
1167
1218
|
});
|
|
1168
1219
|
}
|
|
1169
1220
|
getArtStockStatus() {
|
|
1170
|
-
|
|
1171
|
-
this.articleStockState =
|
|
1221
|
+
this._stockService.getArtStockStatus(this.articleExtended ? this.articleExtended.goodId : this._goodId).then(result => {
|
|
1222
|
+
this.articleStockState = result;
|
|
1172
1223
|
});
|
|
1173
1224
|
}
|
|
1174
1225
|
getStockManagementWarehouses() {
|
|
1175
|
-
this.
|
|
1226
|
+
this._stockService.getStockManagementWarehouses().then((warehouses) => {
|
|
1176
1227
|
this.warehouses = warehouses;
|
|
1177
1228
|
});
|
|
1178
1229
|
}
|
|
@@ -1185,7 +1236,7 @@ class StockComponent {
|
|
|
1185
1236
|
}
|
|
1186
1237
|
_initConnection() {
|
|
1187
1238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1188
|
-
|
|
1239
|
+
yield this._connector.connect();
|
|
1189
1240
|
if (this._optionsService.options.url) {
|
|
1190
1241
|
this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
|
|
1191
1242
|
}
|
|
@@ -1193,14 +1244,33 @@ class StockComponent {
|
|
|
1193
1244
|
setTimeout(() => {
|
|
1194
1245
|
this._changeDetector.detectChanges();
|
|
1195
1246
|
});
|
|
1247
|
+
this.loaded = true;
|
|
1248
|
+
this.loadData();
|
|
1196
1249
|
});
|
|
1197
1250
|
}
|
|
1251
|
+
loadData() {
|
|
1252
|
+
if (this.loaded) {
|
|
1253
|
+
if (this._goodId && !this.articleExtended) {
|
|
1254
|
+
let request = new ArticleExtendedRequest();
|
|
1255
|
+
request.goodId = this._goodId;
|
|
1256
|
+
this._stockService.searchArticles(request).then((articleExtended) => {
|
|
1257
|
+
this.articleExtended = articleExtended[0];
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
this._stockService.getArticleFlat(this.articleExtended.articleNumber).then(result => {
|
|
1261
|
+
this.articleFlat = result;
|
|
1262
|
+
});
|
|
1263
|
+
this.getArtStockStatus();
|
|
1264
|
+
this.getStockManagementWarehouses();
|
|
1265
|
+
this.getStockInformation(this.articleExtended ? this.articleExtended.goodId : this._goodId);
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1198
1268
|
}
|
|
1199
1269
|
StockComponent.decorators = [
|
|
1200
1270
|
{ type: Component, args: [{
|
|
1201
1271
|
selector: "co-stock",
|
|
1202
1272
|
template: `
|
|
1203
|
-
<div class="stock-info-container">
|
|
1273
|
+
<div class="stock-info-container" *ngIf="loaded && articleExtended">
|
|
1204
1274
|
<co-stock-information [article]="articleExtended"
|
|
1205
1275
|
[articleStockState]="articleStockState"
|
|
1206
1276
|
[allAvailableStockInformation]="allAvailableStock"
|
|
@@ -1210,6 +1280,7 @@ StockComponent.decorators = [
|
|
|
1210
1280
|
<hr>
|
|
1211
1281
|
<co-stock-tabs [stockInformation]="stockInformation"
|
|
1212
1282
|
[article]="articleExtended"
|
|
1283
|
+
[articleFlat]="articleFlat"
|
|
1213
1284
|
(transferIconClicked)="handleStockTransferClick($event)"
|
|
1214
1285
|
(sendMethodDialogClicked)="handleSendMethodClick($event)"
|
|
1215
1286
|
[warehouses]="warehouses"
|
|
@@ -1240,10 +1311,10 @@ StockComponent.ctorParameters = () => [
|
|
|
1240
1311
|
{ type: OptionsService },
|
|
1241
1312
|
{ type: DictionaryService },
|
|
1242
1313
|
{ type: ChangeDetectorRef },
|
|
1243
|
-
{ type: LocalizeService }
|
|
1314
|
+
{ type: LocalizeService },
|
|
1315
|
+
{ type: SharedConnectorService }
|
|
1244
1316
|
];
|
|
1245
1317
|
StockComponent.propDecorators = {
|
|
1246
|
-
stock: [{ type: ViewChild, args: [StockComponent,] }],
|
|
1247
1318
|
translation: [{ type: Input }],
|
|
1248
1319
|
handleStickerClicked: [{ type: Output }],
|
|
1249
1320
|
article: [{ type: Input }],
|
|
@@ -1313,6 +1384,7 @@ const IconSvg = {
|
|
|
1313
1384
|
"bring_forward_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#183153\" d=\"M224 464H448C456.8 464 464 456.8 464 448V224C464 215.2 456.8 208 448 208H384V160H448C483.3 160 512 188.7 512 224V448C512 483.3 483.3 512 448 512H224C188.7 512 160 483.3 160 448V384H208V448C208 456.8 215.2 464 224 464zM64 352C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H288C323.3 0 352 28.65 352 64V288C352 323.3 323.3 352 288 352H64z\"/></svg>",
|
|
1314
1385
|
"check_duotone": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><defs><style>.fa-secondary{opacity:.4}</style></defs><path class=\"fa-primary\" d=\"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z\"/></svg>",
|
|
1315
1386
|
"check_round": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M25,10A15,15,0,1,0,40,25,15,15,0,0,0,25,10ZM23,34l-6.24-9.09,2.81-3.59L23,26.45,27.66,16h5.58Z\" fill=\"#484f60\"/></svg>",
|
|
1387
|
+
"cross_skinny": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><polygon points=\"25.35 5.52 24.65 4.81 15 14.46 5.35 4.81 4.65 5.52 14.29 15.17 4.65 24.81 5.35 25.52 15 15.87 24.65 25.52 25.35 24.81 15.71 15.17 25.35 5.52\" fill=\"#484f60\"/></g></svg>",
|
|
1316
1388
|
"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>",
|
|
1317
1389
|
"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>",
|
|
1318
1390
|
"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>",
|
|
@@ -1396,6 +1468,7 @@ var Icon;
|
|
|
1396
1468
|
Icon["BringForwardRegular"] = "bring_forward_regular";
|
|
1397
1469
|
Icon["CheckDuotone"] = "check_duotone";
|
|
1398
1470
|
Icon["CheckRound"] = "check_round";
|
|
1471
|
+
Icon["CrossSkinny"] = "cross_skinny";
|
|
1399
1472
|
Icon["DeleteLeftRegular"] = "delete_left_regular";
|
|
1400
1473
|
Icon["DeliveryTruck"] = "delivery_truck";
|
|
1401
1474
|
Icon["Email"] = "email";
|
|
@@ -1885,10 +1958,9 @@ class StockTransferComponent {
|
|
|
1885
1958
|
this.getStockState();
|
|
1886
1959
|
}
|
|
1887
1960
|
handleOkClick(data) {
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
yield this._stockService.updateArticleDetails(data);
|
|
1961
|
+
data.selected = true;
|
|
1962
|
+
data.entryDate = new Date;
|
|
1963
|
+
this._stockService.updateArticleDetails(data).then(result => {
|
|
1892
1964
|
this.handleClick.emit();
|
|
1893
1965
|
});
|
|
1894
1966
|
}
|
|
@@ -1907,10 +1979,8 @@ class StockTransferComponent {
|
|
|
1907
1979
|
this.articleToTransfer.stockStateId = event.stockStateId;
|
|
1908
1980
|
}
|
|
1909
1981
|
handleStickerClick() {
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
this.showSendMethodDialog = true;
|
|
1913
|
-
});
|
|
1982
|
+
this.handleStickerClicked.emit();
|
|
1983
|
+
this.showSendMethodDialog = true;
|
|
1914
1984
|
}
|
|
1915
1985
|
getStockManagementWarehouses() {
|
|
1916
1986
|
this._stockService.getStockManagementWarehouses().then((warehouses) => {
|
|
@@ -2258,17 +2328,23 @@ SendMethodDialogComponent.decorators = [
|
|
|
2258
2328
|
<co-dialog id="sendOptionsDialog" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate"
|
|
2259
2329
|
(closeClick)="closeClick.emit($event)">
|
|
2260
2330
|
<ng-template #headerTemplate>
|
|
2261
|
-
<div class="co-dialog-header-title"
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2331
|
+
<div class="co-dialog-header-title-wrapper">
|
|
2332
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.EnvelopeRegular)"></co-icon>
|
|
2333
|
+
<div class="co-dialog-header-title" [textContent]="headerTitle"></div>
|
|
2334
|
+
</div>
|
|
2335
|
+
<div class="dialog-navigation-wrapper">
|
|
2265
2336
|
<div class="send-button-wrapper" *ngFor="let sendMethod of sendMethods; let index = index"
|
|
2266
2337
|
[class.selected]="activeSendMethod ? sendMethod.code === activeSendMethod.code : index === 0"
|
|
2267
2338
|
(click)="handleSendMethodClick(sendMethod)">
|
|
2268
|
-
<co-icon class="custom-button-icon" [iconData]="iconCacheService.getIcon(sendMethod.icon)"></co-icon>
|
|
2269
2339
|
<div class="custom-button-title" [textContent]="sendMethod.description"></div>
|
|
2270
2340
|
</div>
|
|
2271
2341
|
</div>
|
|
2342
|
+
</ng-template>
|
|
2343
|
+
|
|
2344
|
+
<div class="dialog-content-wrapper">
|
|
2345
|
+
<div class="send-methods-wrapper">
|
|
2346
|
+
|
|
2347
|
+
</div>
|
|
2272
2348
|
<div #navigationItems class="send-method-navigation-wrapper" [class.smooth-scrolling]="!startUp">
|
|
2273
2349
|
<div #faxItems class="send-method-navigation-content co-small-scrollbar">
|
|
2274
2350
|
|
|
@@ -2301,7 +2377,12 @@ SendMethodDialogComponent.decorators = [
|
|
|
2301
2377
|
</div>
|
|
2302
2378
|
<ng-template #footerTemplate>
|
|
2303
2379
|
<div class="co-dialog-footer-button-wrapper">
|
|
2304
|
-
<co-button
|
|
2380
|
+
<co-button class="save-button"
|
|
2381
|
+
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
2382
|
+
(click)="okClick.emit(activeSendMethod ? activeSendMethod.code : '0')"></co-button>
|
|
2383
|
+
<co-button class="close-button"
|
|
2384
|
+
[iconData]="iconCacheService.getIcon(icons.CrossSkinny)"
|
|
2385
|
+
(click)="closeClick.emit($event)"></co-button>
|
|
2305
2386
|
</div>
|
|
2306
2387
|
</ng-template>
|
|
2307
2388
|
</co-dialog>
|
|
@@ -2421,7 +2502,9 @@ SendMethodEmailComponent.propDecorators = {
|
|
|
2421
2502
|
};
|
|
2422
2503
|
|
|
2423
2504
|
class LayoutSelectionComponent {
|
|
2424
|
-
constructor() {
|
|
2505
|
+
constructor(iconCacheService) {
|
|
2506
|
+
this.iconCacheService = iconCacheService;
|
|
2507
|
+
this.icons = Icon;
|
|
2425
2508
|
this.layouts = [];
|
|
2426
2509
|
this.requestChange = new EventEmitter();
|
|
2427
2510
|
this.showLayoutList = false;
|
|
@@ -2432,6 +2515,9 @@ class LayoutSelectionComponent {
|
|
|
2432
2515
|
ngOnInit() {
|
|
2433
2516
|
if (this.layouts && this.layouts.length > 0) {
|
|
2434
2517
|
this.currentLayout = this.layouts.find(l => l.reportId === this.request.reportId);
|
|
2518
|
+
if (!this.currentLayout) {
|
|
2519
|
+
this.currentLayout = this.layouts[0];
|
|
2520
|
+
}
|
|
2435
2521
|
}
|
|
2436
2522
|
}
|
|
2437
2523
|
handleSelectLayout(reportLayout) {
|
|
@@ -2440,6 +2526,9 @@ class LayoutSelectionComponent {
|
|
|
2440
2526
|
this.requestChange.emit(this.request);
|
|
2441
2527
|
this.showLayoutList = false;
|
|
2442
2528
|
}
|
|
2529
|
+
closeSelectLayout() {
|
|
2530
|
+
this.showLayoutList = false;
|
|
2531
|
+
}
|
|
2443
2532
|
}
|
|
2444
2533
|
LayoutSelectionComponent.decorators = [
|
|
2445
2534
|
{ type: Component, args: [{
|
|
@@ -2450,6 +2539,15 @@ LayoutSelectionComponent.decorators = [
|
|
|
2450
2539
|
<div class="layout-description" [textContent]="currentLayout?.description || 'Layout kiezen'"></div>
|
|
2451
2540
|
</div>
|
|
2452
2541
|
<div class="layouts-wrapper co-small-scrollbar" *ngIf="showLayoutList" @showHideLayouts>
|
|
2542
|
+
<div class="layouts-wrapper-header">
|
|
2543
|
+
<div class="title" [textContent]="'Lay-out'"></div>
|
|
2544
|
+
<div class="close-layouts">
|
|
2545
|
+
<div class="dialog-close-button" (click)="closeSelectLayout()">
|
|
2546
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.XSolid)"></co-icon>
|
|
2547
|
+
</div>
|
|
2548
|
+
</div>
|
|
2549
|
+
</div>
|
|
2550
|
+
|
|
2453
2551
|
<div class="layout-selection-wrapper" *ngFor="let reportLayout of layouts"
|
|
2454
2552
|
[class.selected]="reportLayout.reportId === currentLayout?.reportId"
|
|
2455
2553
|
(click)="handleSelectLayout(reportLayout)">
|
|
@@ -2460,7 +2558,7 @@ LayoutSelectionComponent.decorators = [
|
|
|
2460
2558
|
animations: [
|
|
2461
2559
|
trigger("showHideLayouts", [
|
|
2462
2560
|
state("void", style({ height: 0 })),
|
|
2463
|
-
state("*", style({ height: "
|
|
2561
|
+
state("*", style({ height: "100%" })),
|
|
2464
2562
|
transition("void => *", animate("200ms ease-in-out")),
|
|
2465
2563
|
transition("* => void", animate("200ms ease-out"))
|
|
2466
2564
|
])
|
|
@@ -2468,6 +2566,9 @@ LayoutSelectionComponent.decorators = [
|
|
|
2468
2566
|
encapsulation: ViewEncapsulation.None
|
|
2469
2567
|
},] }
|
|
2470
2568
|
];
|
|
2569
|
+
LayoutSelectionComponent.ctorParameters = () => [
|
|
2570
|
+
{ type: IconCacheService }
|
|
2571
|
+
];
|
|
2471
2572
|
LayoutSelectionComponent.propDecorators = {
|
|
2472
2573
|
request: [{ type: Input }],
|
|
2473
2574
|
layouts: [{ type: Input }],
|
|
@@ -2480,7 +2581,8 @@ class LayoutSelectionModule {
|
|
|
2480
2581
|
LayoutSelectionModule.decorators = [
|
|
2481
2582
|
{ type: NgModule, args: [{
|
|
2482
2583
|
imports: [
|
|
2483
|
-
CommonModule
|
|
2584
|
+
CommonModule,
|
|
2585
|
+
IconModule
|
|
2484
2586
|
],
|
|
2485
2587
|
declarations: [
|
|
2486
2588
|
LayoutSelectionComponent
|
|
@@ -2585,15 +2687,17 @@ SendMethodPrinterComponent.decorators = [
|
|
|
2585
2687
|
{ type: Component, args: [{
|
|
2586
2688
|
selector: 'co-send-method-printer',
|
|
2587
2689
|
template: `
|
|
2588
|
-
<
|
|
2589
|
-
|
|
2590
|
-
<
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2690
|
+
<div class="printer-layout-selections-wrapper">
|
|
2691
|
+
<co-printer-selection [printers]="printerList"></co-printer-selection>
|
|
2692
|
+
<div class="layout-signature-wrapper">
|
|
2693
|
+
<co-layout-selection
|
|
2694
|
+
[(request)]="sendMethodService.reportingDocumentPrintSignDocBaseRequest"
|
|
2695
|
+
[layouts]="layouts"
|
|
2696
|
+
></co-layout-selection>
|
|
2697
|
+
<co-signature-button
|
|
2698
|
+
[request]="sendMethodService.reportingDocumentPrintSignDocBaseRequest"
|
|
2699
|
+
></co-signature-button>
|
|
2700
|
+
</div>
|
|
2597
2701
|
</div>
|
|
2598
2702
|
<co-input-checkbox
|
|
2599
2703
|
[model]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForUser"
|
|
@@ -2644,6 +2748,9 @@ class PrinterSelectionComponent {
|
|
|
2644
2748
|
this.sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintSignDocBaseRequest);
|
|
2645
2749
|
this.showPrinterList = false;
|
|
2646
2750
|
}
|
|
2751
|
+
closePrinterClicked() {
|
|
2752
|
+
this.showPrinterList = false;
|
|
2753
|
+
}
|
|
2647
2754
|
}
|
|
2648
2755
|
PrinterSelectionComponent.decorators = [
|
|
2649
2756
|
{ type: Component, args: [{
|
|
@@ -2654,6 +2761,14 @@ PrinterSelectionComponent.decorators = [
|
|
|
2654
2761
|
<div class="printer-name" [textContent]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName || 'Printer kiezen'"></div>
|
|
2655
2762
|
</div>
|
|
2656
2763
|
<div class="layouts-wrapper co-small-scrollbar" *ngIf="showPrinterList" @showHideLayouts>
|
|
2764
|
+
<div class="layouts-wrapper-header">
|
|
2765
|
+
<div class="title" [textContent]="'Printer'"></div>
|
|
2766
|
+
<div class="close-layouts">
|
|
2767
|
+
<div class="dialog-close-button" (click)="closePrinterClicked()">
|
|
2768
|
+
<co-icon [iconData]="iconService.getIcon(icons.XSolid)"></co-icon>
|
|
2769
|
+
</div>
|
|
2770
|
+
</div>
|
|
2771
|
+
</div>
|
|
2657
2772
|
<div class="printer-list-item" *ngFor="let printer of printers"
|
|
2658
2773
|
[class.selected]="sendMethodService.reportingDocumentPrintSignDocBaseRequest.printerName === printer.name"
|
|
2659
2774
|
(click)="handlePrinterClicked(printer)">
|
|
@@ -2668,7 +2783,7 @@ PrinterSelectionComponent.decorators = [
|
|
|
2668
2783
|
animations: [
|
|
2669
2784
|
trigger('showHideLayouts', [
|
|
2670
2785
|
state('void', style({ height: 0 })),
|
|
2671
|
-
state('*', style({ height: '
|
|
2786
|
+
state('*', style({ height: '100%' })),
|
|
2672
2787
|
transition('void => *', animate('200ms ease-in-out')),
|
|
2673
2788
|
transition('* => void', animate('200ms ease-out'))
|
|
2674
2789
|
])
|
|
@@ -2954,78 +3069,78 @@ class StockTabsComponent {
|
|
|
2954
3069
|
this.handleWarehouseSelected(this.selectedWarehouse);
|
|
2955
3070
|
}
|
|
2956
3071
|
getStockHistory() {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
this.stockHistory =
|
|
2963
|
-
}
|
|
2964
|
-
}
|
|
3072
|
+
if (!this.stockHistory) {
|
|
3073
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3074
|
+
stockHistoryInformation.type = "V";
|
|
3075
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3076
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3077
|
+
this.stockHistory = result;
|
|
3078
|
+
});
|
|
3079
|
+
}
|
|
2965
3080
|
}
|
|
2966
3081
|
getOrderSupplyStockHistory() {
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
this.orderSupplyStockHistory =
|
|
2973
|
-
}
|
|
2974
|
-
}
|
|
3082
|
+
if (!this.orderSupplyStockHistory) {
|
|
3083
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3084
|
+
stockHistoryInformation.type = "O";
|
|
3085
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3086
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3087
|
+
this.orderSupplyStockHistory = result;
|
|
3088
|
+
});
|
|
3089
|
+
}
|
|
2975
3090
|
}
|
|
2976
3091
|
getOrderCommissionStockHistory() {
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
this.orderCommissionStockHistory =
|
|
2983
|
-
}
|
|
2984
|
-
}
|
|
3092
|
+
if (!this.orderCommissionStockHistory) {
|
|
3093
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3094
|
+
stockHistoryInformation.type = "C";
|
|
3095
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3096
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3097
|
+
this.orderCommissionStockHistory = result;
|
|
3098
|
+
});
|
|
3099
|
+
}
|
|
2985
3100
|
}
|
|
2986
3101
|
getOrderStockHistory() {
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
this.orderStockHistory =
|
|
2993
|
-
}
|
|
2994
|
-
}
|
|
3102
|
+
if (!this.orderStockHistory) {
|
|
3103
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3104
|
+
stockHistoryInformation.type = "B";
|
|
3105
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3106
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3107
|
+
this.orderStockHistory = result;
|
|
3108
|
+
});
|
|
3109
|
+
}
|
|
2995
3110
|
}
|
|
2996
3111
|
getAllocationStockHistory() {
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
this.orderAllocationStockHistory =
|
|
3003
|
-
}
|
|
3004
|
-
}
|
|
3112
|
+
if (!this.orderAllocationStockHistory) {
|
|
3113
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3114
|
+
stockHistoryInformation.type = "T";
|
|
3115
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3116
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3117
|
+
this.orderAllocationStockHistory = result;
|
|
3118
|
+
});
|
|
3119
|
+
}
|
|
3005
3120
|
}
|
|
3006
3121
|
getInOrderData() {
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
this.inOrderInformation =
|
|
3013
|
-
}
|
|
3014
|
-
}
|
|
3122
|
+
if (!this.inOrderInformation) {
|
|
3123
|
+
const inOrderData = new ArticleTransaction$1();
|
|
3124
|
+
inOrderData.type = "V";
|
|
3125
|
+
inOrderData.goodId = this.stockInformation[0].goodId.toString();
|
|
3126
|
+
this._stockService.getArticleTransaction(inOrderData).then(result => {
|
|
3127
|
+
this.inOrderInformation = result;
|
|
3128
|
+
});
|
|
3129
|
+
}
|
|
3015
3130
|
}
|
|
3016
3131
|
getOrderData() {
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
this.orderInformation =
|
|
3023
|
-
}
|
|
3024
|
-
}
|
|
3132
|
+
if (!this.orderInformation) {
|
|
3133
|
+
const orderData = new ArticleTransaction$1();
|
|
3134
|
+
orderData.type = "I";
|
|
3135
|
+
orderData.goodId = this.stockInformation[0].goodId.toString();
|
|
3136
|
+
this._stockService.getArticleTransaction(orderData).then(result => {
|
|
3137
|
+
this.orderInformation = result;
|
|
3138
|
+
});
|
|
3139
|
+
}
|
|
3025
3140
|
}
|
|
3026
3141
|
getStockPrognose(warehouseNo) {
|
|
3027
|
-
|
|
3028
|
-
this.stockPrognose =
|
|
3142
|
+
this._stockService.stockPrognose(this.article.goodId, warehouseNo).then(result => {
|
|
3143
|
+
this.stockPrognose = result;
|
|
3029
3144
|
});
|
|
3030
3145
|
}
|
|
3031
3146
|
handleWarehouseSelected(event) {
|
|
@@ -3036,7 +3151,7 @@ class StockTabsComponent {
|
|
|
3036
3151
|
}
|
|
3037
3152
|
if (this.tabs[2].active) {
|
|
3038
3153
|
this.articleDetailsInformation.warehouseNumber = event.warehouseNo;
|
|
3039
|
-
this.articleDetailsInformation.goodId = this.article.goodId;
|
|
3154
|
+
this.articleDetailsInformation.goodId = this.article.goodId.toString();
|
|
3040
3155
|
this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
|
|
3041
3156
|
this.articleDetails = details;
|
|
3042
3157
|
});
|
|
@@ -3074,11 +3189,11 @@ StockTabsComponent.decorators = [
|
|
|
3074
3189
|
[articleStockInfo]="articleDetails"
|
|
3075
3190
|
[articleStockInformation]="stockInformation"
|
|
3076
3191
|
[article]="article"
|
|
3192
|
+
[articleFlat]="articleFlat"
|
|
3077
3193
|
[selectedWarehouse]="selectedWarehouse"
|
|
3078
3194
|
[dataWareHouseCode]="warehouses"
|
|
3079
3195
|
(transferIconClicked)="transferIconClicked.emit($event)"
|
|
3080
3196
|
(sendMethodDialogClicked)="sendMethodDialogClicked.emit($event)"
|
|
3081
|
-
(locationAddedOrUpdated)="articleDetails = $event"
|
|
3082
3197
|
|
|
3083
3198
|
></co-stock-location>
|
|
3084
3199
|
|
|
@@ -3124,6 +3239,7 @@ StockTabsComponent.ctorParameters = () => [
|
|
|
3124
3239
|
StockTabsComponent.propDecorators = {
|
|
3125
3240
|
stockInformation: [{ type: Input }],
|
|
3126
3241
|
article: [{ type: Input }],
|
|
3242
|
+
articleFlat: [{ type: Input }],
|
|
3127
3243
|
warehouses: [{ type: Input }],
|
|
3128
3244
|
transferIconClicked: [{ type: Output }],
|
|
3129
3245
|
sendMethodDialogClicked: [{ type: Output }]
|
|
@@ -3210,24 +3326,28 @@ class StockLocationComponent {
|
|
|
3210
3326
|
this.icons = Icon;
|
|
3211
3327
|
this.transferIconClicked = new EventEmitter();
|
|
3212
3328
|
this.sendMethodDialogClicked = new EventEmitter();
|
|
3213
|
-
this.locationAddedOrUpdated = new EventEmitter();
|
|
3214
3329
|
this.showConfirmationDialog = false;
|
|
3215
3330
|
this.articleDetailsInformation = new ArticleStockManagement();
|
|
3216
3331
|
this.stockStatus = [];
|
|
3217
3332
|
this.selectedArticleDetailsData = new ArticleDetailsBo();
|
|
3218
3333
|
this._subs = [];
|
|
3219
3334
|
}
|
|
3335
|
+
set article(article) {
|
|
3336
|
+
}
|
|
3337
|
+
;
|
|
3220
3338
|
ngOnInit() {
|
|
3221
|
-
|
|
3222
|
-
this.stockStatus =
|
|
3223
|
-
this._subs.push(this._stockService.warehouseSelected.subscribe((selectedWarehouse) => __awaiter(this, void 0, void 0, function* () {
|
|
3224
|
-
this.stockLocations = yield this._stockService.getStockManagementLocations(selectedWarehouse.warehouseNo);
|
|
3225
|
-
})));
|
|
3339
|
+
this._stockService.getStockState().then(result => {
|
|
3340
|
+
this.stockStatus = result;
|
|
3226
3341
|
});
|
|
3342
|
+
this._subs.push(this._stockService.warehouseSelected.subscribe(selectedWarehouse => {
|
|
3343
|
+
this._stockService.getStockManagementLocations(selectedWarehouse.warehouseNo).then(result => {
|
|
3344
|
+
this.stockLocations = result;
|
|
3345
|
+
});
|
|
3346
|
+
}));
|
|
3227
3347
|
}
|
|
3228
3348
|
lockSelectedRow(row) {
|
|
3229
|
-
|
|
3230
|
-
this.stockLocations =
|
|
3349
|
+
this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then(result => {
|
|
3350
|
+
this.stockLocations = result;
|
|
3231
3351
|
this.selectedLocationNo = row.locationNo;
|
|
3232
3352
|
this._stockService.lockArticleDetails(row);
|
|
3233
3353
|
this.selectedArticleDetailsData = row;
|
|
@@ -3252,25 +3372,23 @@ class StockLocationComponent {
|
|
|
3252
3372
|
this.transferIconClicked.emit(event);
|
|
3253
3373
|
}
|
|
3254
3374
|
onOkClickSendLocations() {
|
|
3255
|
-
|
|
3256
|
-
this.showConfirmationDialog = true;
|
|
3257
|
-
});
|
|
3375
|
+
this.showConfirmationDialog = true;
|
|
3258
3376
|
}
|
|
3259
3377
|
handleOkClick() {
|
|
3260
|
-
var _a
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
this.articleDetailsInformation.goodId = (
|
|
3378
|
+
var _a;
|
|
3379
|
+
this.selectedArticleDetailsData.selected = true;
|
|
3380
|
+
this.selectedArticleDetailsData.goodId = this.articleFlat.goodId;
|
|
3381
|
+
this.selectedArticleDetailsData.entryDate = new Date();
|
|
3382
|
+
this.selectedArticleDetailsData.warehouseNo = this.selectedWarehouse.warehouseNo;
|
|
3383
|
+
this.selectedArticleDetailsData.locationNo = (_a = this.selectedLocationNo) === null || _a === void 0 ? void 0 : _a.toString();
|
|
3384
|
+
this._stockService.updateArticleDetails(this.selectedArticleDetailsData).then(result => {
|
|
3385
|
+
var _a;
|
|
3386
|
+
this.articleDetailsInformation.goodId = (_a = this.selectedArticleDetailsData.goodId) === null || _a === void 0 ? void 0 : _a.toString();
|
|
3269
3387
|
this.articleDetailsInformation.warehouseNumber = this.selectedArticleDetailsData.warehouseNo;
|
|
3270
|
-
|
|
3388
|
+
this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
|
|
3271
3389
|
this.showConfirmationDialog = false;
|
|
3272
3390
|
this._changeDetector.detectChanges();
|
|
3273
|
-
this.
|
|
3391
|
+
this.articleStockInfo = details;
|
|
3274
3392
|
});
|
|
3275
3393
|
});
|
|
3276
3394
|
}
|
|
@@ -3332,9 +3450,18 @@ StockLocationComponent.decorators = [
|
|
|
3332
3450
|
(keydown.enter)="onOkClickSendLocations()"
|
|
3333
3451
|
|
|
3334
3452
|
>
|
|
3335
|
-
<co-simple-grid-column [headerText]="'
|
|
3453
|
+
<co-simple-grid-column [headerText]="'STOCK' | localize" [field]="'amountInStock'">
|
|
3336
3454
|
<ng-template #editTemplate let-row="row">
|
|
3337
|
-
<co-
|
|
3455
|
+
<co-input-text [(model)]="row['amountInStock']"
|
|
3456
|
+
[label]="'STOCK' | localize"
|
|
3457
|
+
(modelChange)="amountInStockChanged($event)"
|
|
3458
|
+
></co-input-text>
|
|
3459
|
+
</ng-template>
|
|
3460
|
+
</co-simple-grid-column>
|
|
3461
|
+
<co-simple-grid-column *ngIf="articleFlat?.locationRegistered" [headerText]="'LOCATION' | localize" [field]="'locationNo'">
|
|
3462
|
+
<ng-template #editTemplate let-row="row">
|
|
3463
|
+
<co-list-of-values
|
|
3464
|
+
[model]="locationForNumber(row['locationNo'])"
|
|
3338
3465
|
[collection]="stockLocations"
|
|
3339
3466
|
[displayField]="'description'"
|
|
3340
3467
|
[label]="'LOCATION' | localize"
|
|
@@ -3344,51 +3471,45 @@ StockLocationComponent.decorators = [
|
|
|
3344
3471
|
></co-list-of-values>
|
|
3345
3472
|
</ng-template>
|
|
3346
3473
|
</co-simple-grid-column>
|
|
3347
|
-
<co-simple-grid-column
|
|
3474
|
+
<co-simple-grid-column [headerText]="'BATCH' | localize" [field]="'batchNo'">
|
|
3348
3475
|
<ng-template #editTemplate let-row="row">
|
|
3349
|
-
<co-input-text [
|
|
3476
|
+
<co-input-text *ngIf="articleFlat?.batch" [model]="selectedArticleDetailsData.batchNo"
|
|
3350
3477
|
[placeholder]="'BATCH' | localize"
|
|
3478
|
+
(modelChange)="row['batchNo'] = $event"
|
|
3351
3479
|
></co-input-text>
|
|
3352
3480
|
</ng-template>
|
|
3353
3481
|
</co-simple-grid-column>
|
|
3354
|
-
<co-simple-grid-column
|
|
3482
|
+
<co-simple-grid-column [headerText]="'SERIAL_NO' | localize" [field]="'serialNo'">
|
|
3355
3483
|
<ng-template #editTemplate let-row="row">
|
|
3356
|
-
<co-input-text [
|
|
3484
|
+
<co-input-text *ngIf="articleFlat?.serial" [model]="selectedArticleDetailsData.serialNo"
|
|
3357
3485
|
[placeholder]="'SERIAL_NO' | localize"
|
|
3358
|
-
|
|
3359
|
-
</ng-template>
|
|
3360
|
-
</co-simple-grid-column>
|
|
3361
|
-
<co-simple-grid-column [headerText]="'STOCK' | localize" [field]="'amountInStock'">
|
|
3362
|
-
<ng-template #editTemplate let-row="row">
|
|
3363
|
-
<co-input-text [(model)]="row.amountInStock"
|
|
3364
|
-
[label]="'STOCK' | localize"
|
|
3365
|
-
(modelChange)="amountInStockChanged($event)"
|
|
3486
|
+
(modelChange)="row['serialNo'] = $event"
|
|
3366
3487
|
></co-input-text>
|
|
3367
3488
|
</ng-template>
|
|
3368
3489
|
</co-simple-grid-column>
|
|
3369
3490
|
<co-simple-grid-column [headerText]="'ALLOCATED' | localize" [field]="'stockAssigned'">
|
|
3370
3491
|
<ng-template #editTemplate let-row="row">
|
|
3371
|
-
<span [textContent]="row
|
|
3492
|
+
<span [textContent]="row['stockAssigned']"></span>
|
|
3372
3493
|
</ng-template>
|
|
3373
3494
|
</co-simple-grid-column>
|
|
3374
3495
|
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK' | localize" [field]="'amountInStockFree'">
|
|
3375
3496
|
<ng-template #editTemplate let-row="row">
|
|
3376
|
-
<span [textContent]="row
|
|
3497
|
+
<span [textContent]="row['amountInStockFree']"></span>
|
|
3377
3498
|
</ng-template>
|
|
3378
3499
|
</co-simple-grid-column>
|
|
3379
3500
|
<co-simple-grid-column [headerText]="'VALUTA' | localize" [field]="'currency'">
|
|
3380
3501
|
<ng-template #editTemplate let-row="row">
|
|
3381
|
-
<span [textContent]="row
|
|
3502
|
+
<span [textContent]="row['currency']"></span>
|
|
3382
3503
|
</ng-template>
|
|
3383
3504
|
</co-simple-grid-column>
|
|
3384
3505
|
<co-simple-grid-column [headerText]="'PURCHASE_PRICE' | localize" [field]="'purchasePrice'">
|
|
3385
3506
|
<ng-template #editTemplate let-row="row">
|
|
3386
|
-
<span [textContent]="row
|
|
3507
|
+
<span [textContent]="row['purchasePrice']"></span>
|
|
3387
3508
|
</ng-template>
|
|
3388
3509
|
</co-simple-grid-column>
|
|
3389
3510
|
<co-simple-grid-column [headerText]="'SUPPLIERNR' | localize" [field]="'supplierNo'">
|
|
3390
3511
|
<ng-template #editTemplate let-row="row">
|
|
3391
|
-
<span [textContent]="row
|
|
3512
|
+
<span [textContent]="row['supplierNo']"></span>
|
|
3392
3513
|
</ng-template>
|
|
3393
3514
|
</co-simple-grid-column>
|
|
3394
3515
|
<co-simple-grid-column [headerText]="'TRANSFER' | localize" [field]="'transfer'">
|
|
@@ -3396,12 +3517,14 @@ StockLocationComponent.decorators = [
|
|
|
3396
3517
|
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)"
|
|
3397
3518
|
(click)="handleStockTransferClick(row)"></co-icon>
|
|
3398
3519
|
</ng-template>
|
|
3520
|
+
<ng-template #editTemplate></ng-template>
|
|
3399
3521
|
</co-simple-grid-column>
|
|
3400
3522
|
<co-simple-grid-column [headerText]="'STICKER' | localize" [field]="'sticker'">
|
|
3401
3523
|
<ng-template #template let-row="row">
|
|
3402
3524
|
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)"
|
|
3403
3525
|
(click)="openSendMethodDialog(row)"></co-icon>
|
|
3404
3526
|
</ng-template>
|
|
3527
|
+
<ng-template #editTemplate></ng-template>
|
|
3405
3528
|
</co-simple-grid-column>
|
|
3406
3529
|
</co-simple-grid>
|
|
3407
3530
|
</div>
|
|
@@ -3418,10 +3541,10 @@ StockLocationComponent.propDecorators = {
|
|
|
3418
3541
|
articleStockInfo: [{ type: Input }],
|
|
3419
3542
|
articleStockInformation: [{ type: Input }],
|
|
3420
3543
|
article: [{ type: Input }],
|
|
3544
|
+
articleFlat: [{ type: Input }],
|
|
3421
3545
|
dataWareHouseCode: [{ type: Input }],
|
|
3422
3546
|
transferIconClicked: [{ type: Output }],
|
|
3423
3547
|
sendMethodDialogClicked: [{ type: Output }],
|
|
3424
|
-
locationAddedOrUpdated: [{ type: Output }],
|
|
3425
3548
|
selectedWarehouse: [{ type: Input }]
|
|
3426
3549
|
};
|
|
3427
3550
|
|
|
@@ -6613,7 +6736,7 @@ SimpleTagsComponent.decorators = [
|
|
|
6613
6736
|
</ng-template>
|
|
6614
6737
|
|
|
6615
6738
|
<div class="dialog-content-wrapper">
|
|
6616
|
-
<div class="collection-navigation">
|
|
6739
|
+
<div class="collection-navigation co-small-scrollbar">
|
|
6617
6740
|
<span class="title" [textContent]="'Beschikbare tags'"></span>
|
|
6618
6741
|
<co-input-search
|
|
6619
6742
|
[(model)]="searchString"
|
|
@@ -6693,17 +6816,15 @@ SimpleTagsComponent.decorators = [
|
|
|
6693
6816
|
|
|
6694
6817
|
<ng-template #footerTemplate>
|
|
6695
6818
|
<div class="co-dialog-footer-button-wrapper">
|
|
6696
|
-
<
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
></co-button>
|
|
6706
|
-
</div>
|
|
6819
|
+
<co-button class="save-button"
|
|
6820
|
+
[iconData]="iconCacheService.getIcon(icon.CheckDuotone)"
|
|
6821
|
+
(click)="handleSaveTags()"
|
|
6822
|
+
></co-button>
|
|
6823
|
+
<co-button
|
|
6824
|
+
class="close-button"
|
|
6825
|
+
[iconData]="iconCacheService.getIcon(icon.CrossSkinny)"
|
|
6826
|
+
(click)="closeClick.next()"
|
|
6827
|
+
></co-button>
|
|
6707
6828
|
</div>
|
|
6708
6829
|
</ng-template>
|
|
6709
6830
|
</co-dialog>
|