mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Merge branch 'hotfix/4947-Kundenbestellungen-Namen-Vertauscht'
This commit is contained in:
@@ -1,20 +1,38 @@
|
|||||||
<form *ngIf="control" [formGroup]="control" (submit)="submit()">
|
<form *ngIf="control" [formGroup]="control" (submit)="submit()">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
{{ items[0]?.organisation }}
|
{{ items[0]?.organisation }}
|
||||||
<ng-container *ngIf="!!items[0]?.organisation && (!!items[0]?.firstName || !!items[0]?.lastName)"> - </ng-container>
|
<ng-container
|
||||||
|
*ngIf="
|
||||||
|
!!items[0]?.organisation &&
|
||||||
|
(!!items[0]?.firstName || !!items[0]?.lastName)
|
||||||
|
"
|
||||||
|
>-</ng-container
|
||||||
|
>
|
||||||
{{ items[0]?.lastName }}
|
{{ items[0]?.lastName }}
|
||||||
{{ items[0]?.firstName }}
|
{{ items[0]?.firstName }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ui-form-control label="Vorgang-ID" variant="inline" statusLabel="Nicht Änderbar">
|
<ui-form-control
|
||||||
|
label="Vorgang-ID"
|
||||||
|
variant="inline"
|
||||||
|
statusLabel="Nicht Änderbar"
|
||||||
|
>
|
||||||
<input uiInput formControlName="orderNumber" />
|
<input uiInput formControlName="orderNumber" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ui-form-control label="Bestelldatum" variant="inline" statusLabel="Nicht Änderbar">
|
<ui-form-control
|
||||||
|
label="Bestelldatum"
|
||||||
|
variant="inline"
|
||||||
|
statusLabel="Nicht Änderbar"
|
||||||
|
>
|
||||||
<input uiInput formControlName="orderDate" />
|
<input uiInput formControlName="orderDate" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ui-form-control label="Bestellkanal" variant="inline" statusLabel="Nicht Änderbar">
|
<ui-form-control
|
||||||
|
label="Bestellkanal"
|
||||||
|
variant="inline"
|
||||||
|
statusLabel="Nicht Änderbar"
|
||||||
|
>
|
||||||
<input uiInput formControlName="clientChannel" />
|
<input uiInput formControlName="clientChannel" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
@@ -25,40 +43,81 @@
|
|||||||
formGroupName="notificationChannel"
|
formGroupName="notificationChannel"
|
||||||
></shared-notification-channel-control>
|
></shared-notification-channel-control>
|
||||||
|
|
||||||
<ui-form-control label="Kundennummer" variant="inline" statusLabel="Nicht Änderbar">
|
<ui-form-control
|
||||||
|
label="Kundennummer"
|
||||||
|
variant="inline"
|
||||||
|
statusLabel="Nicht Änderbar"
|
||||||
|
>
|
||||||
<input uiInput formControlName="buyerNumber" />
|
<input uiInput formControlName="buyerNumber" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ng-container *ngIf="showNameFields">
|
<ng-container *ngIf="showNameFields">
|
||||||
<ui-form-control label="Name" variant="inline" [statusLabel]="canEditNameFields ? '' : 'Nicht Änderbar'">
|
<ui-form-control
|
||||||
<input uiInput formControlName="firstName" />
|
label="Name"
|
||||||
</ui-form-control>
|
variant="inline"
|
||||||
|
[statusLabel]="canEditNameFields ? '' : 'Nicht Änderbar'"
|
||||||
<ui-form-control label="Vorname" variant="inline" [statusLabel]="canEditNameFields ? '' : 'Nicht Änderbar'">
|
>
|
||||||
<input uiInput formControlName="lastName" />
|
<input uiInput formControlName="lastName" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ui-form-control *ngIf="isB2B" label="Firmenname" variant="inline" [statusLabel]="canEditNameFields ? '' : 'Nicht Änderbar'">
|
<ui-form-control
|
||||||
|
label="Vorname"
|
||||||
|
variant="inline"
|
||||||
|
[statusLabel]="canEditNameFields ? '' : 'Nicht Änderbar'"
|
||||||
|
>
|
||||||
|
<input uiInput formControlName="firstName" />
|
||||||
|
</ui-form-control>
|
||||||
|
|
||||||
|
<ui-form-control
|
||||||
|
*ngIf="isB2B"
|
||||||
|
label="Firmenname"
|
||||||
|
variant="inline"
|
||||||
|
[statusLabel]="canEditNameFields ? '' : 'Nicht Änderbar'"
|
||||||
|
>
|
||||||
<input uiInput formControlName="organisation" />
|
<input uiInput formControlName="organisation" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<div formArrayName="items">
|
<div formArrayName="items">
|
||||||
<div *ngFor="let item of itemsControl.controls; index as i" [formGroupName]="i">
|
<div
|
||||||
|
*ngFor="let item of itemsControl.controls; index as i"
|
||||||
|
[formGroupName]="i"
|
||||||
|
>
|
||||||
<div class="item-header-wrapper">
|
<div class="item-header-wrapper">
|
||||||
<div class="item-header">
|
<div class="item-header">
|
||||||
<img class="cover" *ngIf="item.value?.ean | productImage; let productImage" [src]="productImage" [alt]="item.value?.name" />
|
<img
|
||||||
|
class="cover"
|
||||||
|
*ngIf="item.value?.ean | productImage; let productImage"
|
||||||
|
[src]="productImage"
|
||||||
|
[alt]="item.value?.name"
|
||||||
|
/>
|
||||||
<span class="title">{{ item.value?.name }}</span>
|
<span class="title">{{ item.value?.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="cta-expand" type="button" (click)="expanded[i] = !expanded[i]">
|
<button
|
||||||
<ui-icon icon="arrow_head" size="16px" [rotate]="expanded[i] ? '90deg' : '270deg'"> </ui-icon>
|
class="cta-expand"
|
||||||
|
type="button"
|
||||||
|
(click)="expanded[i] = !expanded[i]"
|
||||||
|
>
|
||||||
|
<ui-icon
|
||||||
|
icon="arrow_head"
|
||||||
|
size="16px"
|
||||||
|
[rotate]="expanded[i] ? '90deg' : '270deg'"
|
||||||
|
></ui-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-container *ngIf="expanded[i]">
|
<ng-container *ngIf="expanded[i]">
|
||||||
<ui-form-control label="Abholfachnummer" [clearable]="true" variant="inline">
|
<ui-form-control
|
||||||
<input pattern="^\d{3,4}_\d{4}_\d{1,5}$" uiInput formControlName="compartmentCode" />
|
label="Abholfachnummer"
|
||||||
|
[clearable]="true"
|
||||||
|
variant="inline"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
pattern="^\d{3,4}_\d{4}_\d{1,5}$"
|
||||||
|
uiInput
|
||||||
|
formControlName="compartmentCode"
|
||||||
|
/>
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<shared-goods-in-out-order-details-tags
|
<shared-goods-in-out-order-details-tags
|
||||||
@@ -66,7 +125,11 @@
|
|||||||
formControlName="compartmentInfo"
|
formControlName="compartmentInfo"
|
||||||
></shared-goods-in-out-order-details-tags>
|
></shared-goods-in-out-order-details-tags>
|
||||||
|
|
||||||
<ui-form-control label="Status" variant="inline" statusLabel="Nicht Änderbar">
|
<ui-form-control
|
||||||
|
label="Status"
|
||||||
|
variant="inline"
|
||||||
|
statusLabel="Nicht Änderbar"
|
||||||
|
>
|
||||||
<input uiInput formControlName="processingStatus" />
|
<input uiInput formControlName="processingStatus" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
@@ -82,19 +145,37 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngSwitchCase="16777216"> </ng-container>
|
<ng-container *ngSwitchCase="16777216"> </ng-container>
|
||||||
<ng-container *ngSwitchDefault>
|
<ng-container *ngSwitchDefault>
|
||||||
<ui-form-control class="datepicker" label="Geändert" variant="inline">
|
<ui-form-control
|
||||||
|
class="datepicker"
|
||||||
|
label="Geändert"
|
||||||
|
variant="inline"
|
||||||
|
>
|
||||||
<input uiInput formControlName="processingStatusDate" />
|
<input uiInput formControlName="processingStatusDate" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-template #vslLieferdatum>
|
<ng-template #vslLieferdatum>
|
||||||
<ui-form-control class="datepicker" label="vsl. Lieferdatum" variant="inline">
|
<ui-form-control
|
||||||
<button class="date-btn" type="button" [uiOverlayTrigger]="uiDatepicker" #datepicker="uiOverlayTrigger">
|
class="datepicker"
|
||||||
|
label="vsl. Lieferdatum"
|
||||||
|
variant="inline"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
class="date-btn"
|
||||||
|
type="button"
|
||||||
|
[uiOverlayTrigger]="uiDatepicker"
|
||||||
|
#datepicker="uiOverlayTrigger"
|
||||||
|
>
|
||||||
<strong>
|
<strong>
|
||||||
{{ items[i]?.estimatedShippingDate | date: 'dd.MM.yy' }}
|
{{ items[i]?.estimatedShippingDate | date: 'dd.MM.yy' }}
|
||||||
</strong>
|
</strong>
|
||||||
<ui-icon icon="arrow_head" class="dp-button-icon" size="12px" [rotate]="datepicker.opened ? '270deg' : '90deg'"> </ui-icon>
|
<ui-icon
|
||||||
|
icon="arrow_head"
|
||||||
|
class="dp-button-icon"
|
||||||
|
size="12px"
|
||||||
|
[rotate]="datepicker.opened ? '270deg' : '90deg'"
|
||||||
|
></ui-icon>
|
||||||
</button>
|
</button>
|
||||||
<ui-datepicker
|
<ui-datepicker
|
||||||
formControlName="estimatedShippingDate"
|
formControlName="estimatedShippingDate"
|
||||||
@@ -105,14 +186,20 @@
|
|||||||
[disabledDaysOfWeek]="[0]"
|
[disabledDaysOfWeek]="[0]"
|
||||||
[selected]="items[i]?.estimatedShippingDate"
|
[selected]="items[i]?.estimatedShippingDate"
|
||||||
saveLabel="Übernehmen"
|
saveLabel="Übernehmen"
|
||||||
(save)="changeEstimatedDeliveryDate($event, items[i]); uiDatepicker.close()"
|
(save)="
|
||||||
>
|
changeEstimatedDeliveryDate($event, items[i]);
|
||||||
</ui-datepicker>
|
uiDatepicker.close()
|
||||||
|
"
|
||||||
|
></ui-datepicker>
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
<ng-template #abholfrist>
|
<ng-template #abholfrist>
|
||||||
<ui-form-control class="datepicker" label="Abholfrist" variant="inline">
|
<ui-form-control
|
||||||
|
class="datepicker"
|
||||||
|
label="Abholfrist"
|
||||||
|
variant="inline"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
[uiOverlayTrigger]="deadlineDatepicker"
|
[uiOverlayTrigger]="deadlineDatepicker"
|
||||||
#deadlineDatepickerTrigger="uiOverlayTrigger"
|
#deadlineDatepickerTrigger="uiOverlayTrigger"
|
||||||
@@ -123,7 +210,11 @@
|
|||||||
<strong>
|
<strong>
|
||||||
{{ items[i]?.pickUpDeadline | date: 'dd.MM.yy' }}
|
{{ items[i]?.pickUpDeadline | date: 'dd.MM.yy' }}
|
||||||
</strong>
|
</strong>
|
||||||
<ui-icon [rotate]="deadlineDatepickerTrigger.opened ? '270deg' : '90deg'" class="dp-button-icon" icon="arrow_head"></ui-icon>
|
<ui-icon
|
||||||
|
[rotate]="deadlineDatepickerTrigger.opened ? '270deg' : '90deg'"
|
||||||
|
class="dp-button-icon"
|
||||||
|
icon="arrow_head"
|
||||||
|
></ui-icon>
|
||||||
</button>
|
</button>
|
||||||
<ui-datepicker
|
<ui-datepicker
|
||||||
formControlName="pickUpDeadline"
|
formControlName="pickUpDeadline"
|
||||||
@@ -134,34 +225,66 @@
|
|||||||
[disabledDaysOfWeek]="[0]"
|
[disabledDaysOfWeek]="[0]"
|
||||||
[selected]="items[i]?.pickUpDeadline"
|
[selected]="items[i]?.pickUpDeadline"
|
||||||
saveLabel="Übernehmen"
|
saveLabel="Übernehmen"
|
||||||
(save)="changePickupDeadline($event, items[i]); deadlineDatepicker.close()"
|
(save)="
|
||||||
>
|
changePickupDeadline($event, items[i]);
|
||||||
</ui-datepicker>
|
deadlineDatepicker.close()
|
||||||
|
"
|
||||||
|
></ui-datepicker>
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
<ui-form-control label="Menge" variant="inline" statusLabel="Nicht Änderbar">
|
<ui-form-control
|
||||||
|
label="Menge"
|
||||||
|
variant="inline"
|
||||||
|
statusLabel="Nicht Änderbar"
|
||||||
|
>
|
||||||
<input uiInput formControlName="quantity" />
|
<input uiInput formControlName="quantity" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ui-form-control class="price" label="Preis" [clearable]="true" [suffix]="item.value?.currency" variant="inline" requiredMark=" *">
|
<ui-form-control
|
||||||
|
class="price"
|
||||||
|
label="Preis"
|
||||||
|
[clearable]="true"
|
||||||
|
[suffix]="item.value?.currency"
|
||||||
|
variant="inline"
|
||||||
|
requiredMark=" *"
|
||||||
|
>
|
||||||
<input uiInput formControlName="price" />
|
<input uiInput formControlName="price" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ui-form-control label="ISBN/EAN" [clearable]="true" variant="inline" requiredMark=" *">
|
<ui-form-control
|
||||||
|
label="ISBN/EAN"
|
||||||
|
[clearable]="true"
|
||||||
|
variant="inline"
|
||||||
|
requiredMark=" *"
|
||||||
|
>
|
||||||
<input uiInput formControlName="ean" />
|
<input uiInput formControlName="ean" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ui-form-control label="Zielfiliale" variant="inline" statusLabel="Nicht Änderbar">
|
<ui-form-control
|
||||||
|
label="Zielfiliale"
|
||||||
|
variant="inline"
|
||||||
|
statusLabel="Nicht Änderbar"
|
||||||
|
>
|
||||||
<input uiInput formControlName="targetBranch" />
|
<input uiInput formControlName="targetBranch" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ui-form-control label="Lieferant" variant="inline" statusLabel="Nicht Änderbar">
|
<ui-form-control
|
||||||
|
label="Lieferant"
|
||||||
|
variant="inline"
|
||||||
|
statusLabel="Nicht Änderbar"
|
||||||
|
>
|
||||||
<input uiInput formControlName="supplier" />
|
<input uiInput formControlName="supplier" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<div class="ssc-wrapper">
|
<div class="ssc-wrapper">
|
||||||
<ui-form-control class="ssc" label="Meldenummer" [clearable]="true" variant="inline" requiredMark=" *">
|
<ui-form-control
|
||||||
|
class="ssc"
|
||||||
|
label="Meldenummer"
|
||||||
|
[clearable]="true"
|
||||||
|
variant="inline"
|
||||||
|
requiredMark=" *"
|
||||||
|
>
|
||||||
<input class="ssc-input" uiInput formControlName="ssc" />
|
<input class="ssc-input" uiInput formControlName="ssc" />
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
<input class="ssc-text" uiInput formControlName="sscText" />
|
<input class="ssc-text" uiInput formControlName="sscText" />
|
||||||
@@ -176,11 +299,21 @@
|
|||||||
|
|
||||||
<ui-form-control label="MwSt" variant="inline">
|
<ui-form-control label="MwSt" variant="inline">
|
||||||
<ui-select formControlName="vat">
|
<ui-select formControlName="vat">
|
||||||
<ui-select-option *ngFor="let vat of vats$ | async" [label]="vat.name + '%'" [value]="vat.vatType"></ui-select-option>
|
<ui-select-option
|
||||||
|
*ngFor="let vat of vats$ | async"
|
||||||
|
[label]="vat.name + '%'"
|
||||||
|
[value]="vat.vatType"
|
||||||
|
></ui-select-option>
|
||||||
</ui-select>
|
</ui-select>
|
||||||
</ui-form-control>
|
</ui-form-control>
|
||||||
|
|
||||||
<ui-form-control class="special-comment" label="Anmerkung" [clearable]="true" (cleared)="clearSpecialComment(i)" variant="inline">
|
<ui-form-control
|
||||||
|
class="special-comment"
|
||||||
|
label="Anmerkung"
|
||||||
|
[clearable]="true"
|
||||||
|
(cleared)="clearSpecialComment(i)"
|
||||||
|
variant="inline"
|
||||||
|
>
|
||||||
<textarea
|
<textarea
|
||||||
matInput
|
matInput
|
||||||
cdkTextareaAutosize
|
cdkTextareaAutosize
|
||||||
@@ -197,7 +330,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button class="cta-close" (click)="navigation.emit({})" type="button">Abbrechen</button>
|
<button class="cta-close" (click)="navigation.emit({})" type="button">
|
||||||
<button class="cta-save" [disabled]="control.invalid || control.disabled" type="submit">Speichern</button>
|
Abbrechen
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="cta-save"
|
||||||
|
[disabled]="control.invalid || control.disabled"
|
||||||
|
type="submit"
|
||||||
|
>
|
||||||
|
Speichern
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user