You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
3.5 KiB
62 lines
3.5 KiB
<h2 mat-dialog-title>{{ 'routes.wcs.handcommand.save' | translate }}</h2>
|
|
<form autocomplete="off" [formGroup]="form">
|
|
<div mat-dialog-content>
|
|
<mat-form-field>
|
|
<mat-label>{{ 'routes.wcs.handcommand.deviceName' | translate }}</mat-label>
|
|
<mat-select formControlName="devicelist" required (selectionChange)="deviceSelected(form.controls.devicelist)">
|
|
<mat-option *ngFor="let i of devicelist" [value]="i.id">{{i.name}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field *ngIf="phide">
|
|
<mat-label>{{ 'routes.wcs.autocommand.pallettype' | translate }}</mat-label>
|
|
<input matInput #barcode formControlName="pallettype">
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<mat-label>{{ 'routes.wcs.handcommand.deviceOrder' | translate }}</mat-label>
|
|
<mat-select formControlName="orderlist" required (selectionChange)="orderSelected(form.controls.devicelist,form.controls.orderlist)">
|
|
<mat-option *ngFor="let i of orderlist" [value]="i.id">{{i.name}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field >
|
|
<mat-form-field *ngIf="beginhide">
|
|
<mat-label>{{ 'routes.wcs.handcommand.beginDevice' | translate }}</mat-label>
|
|
<mat-select formControlName="beginDevice" required (selectionChange)="arrowlocationSelected(form.controls.arrowlocation,form.controls.devicelist)">
|
|
<mat-option *ngFor="let i of beginDevice" [value]="i.id">{{i.name}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<mat-label>{{ 'routes.wcs.handcommand.arrowLocation' | translate }}</mat-label>
|
|
<mat-select formControlName="arrowlocation" required (selectionChange)="arrowlocationSelected(form.controls.arrowlocation,form.controls.devicelist)">
|
|
<mat-option *ngFor="let i of arrowlocation" [value]="i.id">{{i.name}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field *ngIf="xhide">
|
|
<mat-label>{{ 'routes.wcs.handcommand.arrowZ' | translate }}</mat-label>
|
|
<mat-select formControlName="z" required (selectionChange)="zSelected(form.controls.devicelist,form.controls.z)">
|
|
<mat-option *ngFor="let i of z" [value]="i.id">{{i.id}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field *ngIf="xhide">
|
|
<mat-label>{{ 'routes.wcs.handcommand.arrowX' | translate }}</mat-label>
|
|
<mat-select formControlName="x" required (selectionChange)="xSelected(form.controls.devicelist,form.controls.z,form.controls.x)">
|
|
<mat-option *ngFor="let i of x" [value]="i.id">{{i.id}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field *ngIf="xhide">
|
|
<mat-label>{{ 'routes.wcs.handcommand.arrowY' | translate }}</mat-label>
|
|
<mat-select formControlName="y" required >
|
|
<mat-option *ngFor="let i of y" [value]="i.id">{{i.id}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field *ngIf="fhide">
|
|
<mat-label>{{ 'routes.wcs.handcommand.useAwayFork' | translate }}</mat-label>
|
|
<mat-select formControlName="f" required (selectionChange)="fSelected(form.controls.devicelist)">
|
|
<mat-option *ngFor="let i of f" [value]="i.id">{{i.id}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
<div mat-dialog-actions align="end">
|
|
<button mat-button color="primary" (click)="save()">{{ 'shared.dialog.ok' | translate | uppercase }}</button>
|
|
<button mat-button mat-dialog-close>{{ 'shared.dialog.cancel' | translate | uppercase }}</button>
|
|
</div>
|
|
</form>
|