|
@@ -1,120 +1,191 @@
|
|
|
-<form nz-form [formGroup]="validateForm" (ngSubmit)="proSubForm()">
|
|
|
- <nz-form-item>
|
|
|
-
|
|
|
- <nz-form-label nzRequired [nzSm]="3" [nzXs]="24">
|
|
|
- {{ 'product' | translate }}{{ 'table.thead.code' | translate }}
|
|
|
- </nz-form-label>
|
|
|
- <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
- <input
|
|
|
- [(ngModel)]="baseMaterialFileProduct.code"
|
|
|
- formControlName="code"
|
|
|
- nz-input
|
|
|
- placeholder="{{ 'placeholder' | translate }}"
|
|
|
- maxlength="10"
|
|
|
- />
|
|
|
- </nz-form-control>
|
|
|
+<nz-spin [nzSpinning]="isLoading">
|
|
|
+ <form nz-form [formGroup]="validateForm" (ngSubmit)="proSubForm()">
|
|
|
+
|
|
|
+ <nz-form-item>
|
|
|
+ <nz-form-label nzRequired [nzSm]="3" [nzXs]="24">
|
|
|
+ {{ 'product' | translate }}{{ 'table.thead.code' | translate }}
|
|
|
+ </nz-form-label>
|
|
|
+ <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
+ <input
|
|
|
+ [(ngModel)]="baseMaterialFileProduct.code"
|
|
|
+ formControlName="code"
|
|
|
+ nz-input
|
|
|
+ placeholder="{{ 'placeholder' | translate }}"
|
|
|
+ maxlength="10"
|
|
|
+ />
|
|
|
+ </nz-form-control>
|
|
|
+ <nz-form-label nzRequired [nzSm]="3" [nzXs]="24">{{ 'Name' | translate }}</nz-form-label>
|
|
|
+ <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
+ <input
|
|
|
+ [(ngModel)]="baseMaterialFileProduct.name"
|
|
|
+ formControlName="name"
|
|
|
+ nz-input
|
|
|
+ placeholder="{{ 'placeholder' | translate }}"
|
|
|
+ maxlength="10"
|
|
|
+ />
|
|
|
+ </nz-form-control>
|
|
|
+ </nz-form-item>
|
|
|
|
|
|
-
|
|
|
- <nz-form-label nzRequired [nzSm]="3" [nzXs]="24">{{ 'Name' | translate }}</nz-form-label>
|
|
|
- <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
- <input
|
|
|
- [(ngModel)]="baseMaterialFileProduct.name"
|
|
|
- formControlName="name"
|
|
|
- nz-input
|
|
|
- placeholder="{{ 'placeholder' | translate }}"
|
|
|
- maxlength="10"
|
|
|
- />
|
|
|
- </nz-form-control>
|
|
|
- </nz-form-item>
|
|
|
-
|
|
|
-
|
|
|
- <nz-form-item>
|
|
|
- <nz-form-label [nzSm]="3" [nzXs]="24" nzRequired>{{ 'depart.sort' | translate }}</nz-form-label>
|
|
|
- <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
- <input
|
|
|
- [(ngModel)]="baseMaterialFileProduct.sort"
|
|
|
- formControlName="sort"
|
|
|
- nz-input
|
|
|
- maxlength="100"
|
|
|
- placeholder="{{ 'placeholder' | translate }}"
|
|
|
- />
|
|
|
- </nz-form-control>
|
|
|
-
|
|
|
-
|
|
|
- <nz-form-label nzRequired [nzSm]="3" [nzXs]="24">{{ 'state' | translate }}</nz-form-label>
|
|
|
- <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
- <nz-select
|
|
|
- nzShowSearch
|
|
|
- nzPlaceHolder="{{ 'select.please.choose' | translate }}"
|
|
|
- [nzDisabled]="false"
|
|
|
- [(ngModel)]="baseMaterialFileProduct.status"
|
|
|
- formControlName="status"
|
|
|
- >
|
|
|
-
|
|
|
- <nz-option nzLabel="{{ 'select.please.choose' | translate }}" nzValue="" selected="selected"></nz-option>
|
|
|
-
|
|
|
+
|
|
|
+ <nz-form-item>
|
|
|
+ <nz-form-label [nzSm]="3" [nzXs]="24" nzRequired>{{ 'depart.sort' | translate }}</nz-form-label>
|
|
|
+ <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
+ <input
|
|
|
+ [(ngModel)]="baseMaterialFileProduct.sort"
|
|
|
+ formControlName="sort"
|
|
|
+ nz-input
|
|
|
+ maxlength="100"
|
|
|
+ placeholder="{{ 'placeholder' | translate }}"
|
|
|
+ />
|
|
|
+ </nz-form-control>
|
|
|
+ <nz-form-label nzRequired [nzSm]="3" [nzXs]="24">{{ 'state' | translate }}</nz-form-label>
|
|
|
+ <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
+ <nz-select
|
|
|
+ nzShowSearch
|
|
|
+ nzPlaceHolder="{{ 'select.please.choose' | translate }}"
|
|
|
+ [nzDisabled]="false"
|
|
|
+ [(ngModel)]="baseMaterialFileProduct.status"
|
|
|
+ formControlName="status"
|
|
|
+ >
|
|
|
+
|
|
|
+ <nz-option nzLabel="{{ 'select.please.choose' | translate }}" nzValue="" selected="selected"></nz-option>
|
|
|
+
|
|
|
*ngIf="baseMaterialFileProduct.status == '0"
|
|
|
*ngIf="baseMaterialFileProduct.status == '1'"
|
|
|
---------------------------------------------------->
|
|
|
- <nz-option nzLabel="{{ 'enabled.not' | translate }}" nzValue="0"></nz-option>
|
|
|
- <nz-option nzLabel="{{ 'enabled' | translate }}" nzValue="1"></nz-option>
|
|
|
- </nz-select>
|
|
|
- </nz-form-control>
|
|
|
- </nz-form-item>
|
|
|
+ <nz-option nzLabel="{{ 'enabled.not' | translate }}" nzValue="0"></nz-option>
|
|
|
+ <nz-option nzLabel="{{ 'enabled' | translate }}" nzValue="1"></nz-option>
|
|
|
+ </nz-select>
|
|
|
+ </nz-form-control>
|
|
|
+ </nz-form-item>
|
|
|
|
|
|
-
|
|
|
- <nz-form-item>
|
|
|
- <nz-form-label nzRequired [nzSm]="3" [nzXs]="24">{{ 'property' | translate }}</nz-form-label>
|
|
|
- <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
- <nz-select
|
|
|
- nzShowSearch
|
|
|
- nzPlaceHolder="{{ 'select.please.choose' | translate }}"
|
|
|
- [nzDisabled]="false"
|
|
|
- [(ngModel)]="baseMaterialFileProduct.attribute"
|
|
|
- formControlName="attribute"
|
|
|
- >
|
|
|
- <nz-option
|
|
|
- *ngIf="baseMaterialFileProduct.attribute == ''"
|
|
|
- nzLabel="{{ 'select.please.choose' | translate }}"
|
|
|
- nzValue=""
|
|
|
- selected="selected"
|
|
|
- ></nz-option>
|
|
|
-
|
|
|
+
|
|
|
+ <nz-form-item>
|
|
|
+ <nz-form-label nzRequired [nzSm]="3" [nzXs]="24">{{ 'property' | translate }}</nz-form-label>
|
|
|
+ <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
+ <nz-select
|
|
|
+ nzShowSearch
|
|
|
+ nzPlaceHolder="{{ 'select.please.choose' | translate }}"
|
|
|
+ [nzDisabled]="false"
|
|
|
+ [(ngModel)]="baseMaterialFileProduct.attribute"
|
|
|
+ formControlName="attribute"
|
|
|
+ >
|
|
|
+ <nz-option
|
|
|
+ *ngIf="baseMaterialFileProduct.attribute == ''"
|
|
|
+ nzLabel="{{ 'select.please.choose' | translate }}"
|
|
|
+ nzValue=""
|
|
|
+ selected="selected"
|
|
|
+ ></nz-option>
|
|
|
+
|
|
|
*ngIf="baseMaterialFileProduct.attribute == '1"
|
|
|
*ngIf="baseMaterialFileProduct.attribute == '2'"
|
|
|
---------------------------------------------------->
|
|
|
- <nz-option nzLabel="{{ 'procurement' | translate }}" nzValue="0"></nz-option>
|
|
|
- <nz-option nzLabel="{{ 'sales' | translate }}" nzValue="1"></nz-option>
|
|
|
- </nz-select>
|
|
|
- </nz-form-control>
|
|
|
+ <nz-option nzLabel="{{ 'procurement' | translate }}" nzValue="0"></nz-option>
|
|
|
+ <nz-option nzLabel="{{ 'sales' | translate }}" nzValue="1"></nz-option>
|
|
|
+ </nz-select>
|
|
|
+ </nz-form-control>
|
|
|
+
|
|
|
+ <nz-form-label [nzSm]="3" [nzXs]="24" nzNoColon="true" nzRequired>
|
|
|
+ {{ 'cost.item.category' | translate }}
|
|
|
+ </nz-form-label>
|
|
|
+
|
|
|
+ <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
+ <nz-tree-select
|
|
|
+ nzAllowClear="false"
|
|
|
+ [nzNodes]="materialTree"
|
|
|
+ nzShowSearch
|
|
|
+ nzPlaceHolder="{{ 'select.please.choose' | translate }}"
|
|
|
+ [(ngModel)]="baseMaterialFileProduct.baseMaterialFileClassificationId"
|
|
|
+ formControlName="baseMaterialFileClassificationId"
|
|
|
+ (ngModelChange)="materialChange($event)"
|
|
|
+ >
|
|
|
+ </nz-tree-select>
|
|
|
+
|
|
|
+ </nz-form-control>
|
|
|
+ </nz-form-item>
|
|
|
+ </form>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <span id="modTitAdd" hidden="true"> {{ 'button.add' | translate }}{{ 'customer.contacts.name' | translate }} </span>
|
|
|
+ <span id="modTitUpdate" hidden="true">
|
|
|
+ {{ 'table.update' | translate }}{{ 'customer.contacts.name' | translate }}
|
|
|
+ </span>
|
|
|
|
|
|
-
|
|
|
- <nz-form-label [nzSm]="3" [nzXs]="24" nzNoColon="true" nzRequired>
|
|
|
- {{ 'cost.item.category' | translate }}
|
|
|
- </nz-form-label>
|
|
|
- <nz-form-control [nzSm]="8" [nzXs]="12">
|
|
|
- <nz-tree-select
|
|
|
- nzAllowClear="false"
|
|
|
- [nzNodes]="materialTree"
|
|
|
- nzShowSearch
|
|
|
- nzPlaceHolder="{{ 'select.please.choose' | translate }}"
|
|
|
- [(ngModel)]="baseMaterialFileProduct.baseMaterialFileClassificationId"
|
|
|
- formControlName="baseMaterialFileClassificationId"
|
|
|
- (ngModelChange)="materialChange($event)"
|
|
|
- >
|
|
|
- </nz-tree-select>
|
|
|
- </nz-form-control>
|
|
|
- </nz-form-item>
|
|
|
+
|
|
|
+ <div nz-row nzGutter="24" style="margin-bottom:6px;">
|
|
|
+ <div nz-col nzMd="24" nzLg="24">
|
|
|
+ <button (click)="addRowMod()" nz-button nzType="primary">{{ 'button.add' | translate }}</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
-
|
|
|
- <div></div>
|
|
|
-
|
|
|
- <div class="footer">
|
|
|
- <button type="button" (click)="close()" class="ant-btn" style="margin-right: 8px;">
|
|
|
- <span>{{ 'button.close' | translate }}</span>
|
|
|
- </button>
|
|
|
- <button type="button" (click)="save('')" class="ant-btn ant-btn-primary">
|
|
|
- <span>{{ 'button.save' | translate }}</span>
|
|
|
- </button>
|
|
|
+
|
|
|
+ <div nz-row nzGutter="24">
|
|
|
+ <div nz-col nzMd="18" nzLg="24">
|
|
|
+ <nz-table nzSize="small" #basicTable [nzData]="modData" [nzFrontPagination]="false" [nzShowPagination]="false">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th style="width:150px;" nzAlign="center">{{ 'module.code' | translate }}</th>
|
|
|
+ <th style="width:150px;" nzAlign="center">{{ 'module.name' | translate }}</th>
|
|
|
+ <th style="width:150px;" nzAlign="center">{{ 'standard.quotation' | translate }}</th>
|
|
|
+ <th style="width:150px;" nzAlign="center">{{ 'table.operation' | translate }}</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+
|
|
|
+ <tbody>
|
|
|
+ <tr *ngFor="let data of basicTable.data">
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input type="text" [(ngModel)]="data.code" nz-input maxlength="20" />
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input type="text" [(ngModel)]="data.name" nz-input maxlength="20" />
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <input type="text" [(ngModel)]="data.standardQuotation" nz-input maxlength="20" />
|
|
|
+
|
|
|
+
|
|
|
+ [(ngModel)]="data.standardQuotation"
|
|
|
+ formControlName="standardQuotation"
|
|
|
+ [nzMin]="0"
|
|
|
+ [nzParser]="parserDollar"
|
|
|
+ [nzFormatter]="formatterDollar"
|
|
|
+ [nzMax]="100000000000000000"
|
|
|
+ [nzStep]="10"
|
|
|
+ ></nz-input-number> -->
|
|
|
+ </td>
|
|
|
+ <td nzAlign="center">
|
|
|
+ <a
|
|
|
+ nz-popconfirm
|
|
|
+ nzTitle="{{ 'confirm.to.delete' | translate }}?"
|
|
|
+ nzOkText="{{ 'yes' | translate }}"
|
|
|
+ nzCancelText="{{ 'no' | translate }}"
|
|
|
+ (nzOnConfirm)="deleteMod(data)"
|
|
|
+ >
|
|
|
+ {{ 'table.delete' | translate }}
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </nz-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-</form>
|
|
|
+</nz-spin>
|
|
|
+
|
|
|
+
|
|
|
+<div class="footer">
|
|
|
+ <a
|
|
|
+ nz-popconfirm
|
|
|
+ style="margin-right: 2%"
|
|
|
+ nzTitle="{{ 'pm.contract.contract.add.button.cancel' | translate }}"
|
|
|
+ (nzOnConfirm)="close()"
|
|
|
+ >
|
|
|
+ <button nz-button>{{ 'button.close' | translate }}</button>
|
|
|
+ </a>
|
|
|
+
|
|
|
+ <button type="button" (click)="save('')" class="ant-btn ant-btn-primary">
|
|
|
+ <span>{{ 'button.save' | translate }}</span>
|
|
|
+ </button>
|
|
|
+</div>
|