Skip to content
spare-parts.component.html 17.2 KiB
Newer Older
wangqinghua's avatar
wangqinghua committed
<!--添加资源-->
wangqinghua's avatar
wangqinghua committed
<nz-modal [nzWidth]="880" [(nzVisible)]="modal.isVisible" [nzTitle]="modal.title" (nzOnCancel)="handleCancel()"
wangqinghua's avatar
wangqinghua committed
          (nzOnOk)="handleOk()" [nzOkLoading]="modal.isOkLoading">
wangqinghua's avatar
wangqinghua committed
    <nz-tabset [(nzSelectedIndex)]="modal.tabNum" [nzType]="'card'" (nzSelectedIndexChange)="tabsChange($event)"
               style="padding-bottom: 25px;min-height: 500px">
        <nz-tab nzTitle="基本信息">
            <form nz-form [formGroup]="validateForm" class="ant-advanced-search-form form-select">
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="inventoryNo">资产编号</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="inventoryNo" placeholder="资产编号" name="inventoryNo" type="text" nz-input
                                       formControlName="inventoryNo">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="inventoryName">资产名称</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="inventoryName" placeholder="资产名称" name="inventoryName" type="text" nz-input
                                       formControlName="inventoryName">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="secondLevelType">父分类</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <nz-select name="secondLevelType" nzPlaceHolder="选择父分类" [(ngModel)]="inventoryParentId"
                                           [ngModelOptions]="{standalone: true}" (ngModelChange)="getTypeByParent($event)">
                                    <ng-container *ngFor="let item of parentTypeList">
                                        <nz-option [nzLabel]="item.name" [nzValue]="item.id"></nz-option>
                                    </ng-container>
                                </nz-select>
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="secondlevelTypeId">子分类</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <nz-select name="secondlevelTypeId" nzPlaceHolder="选择子分类" formControlName="secondlevelTypeId">
                                    <ng-container *ngFor="let item of typeList">
                                        <nz-option [nzLabel]="item.name" [nzValue]="item.id"></nz-option>
                                    </ng-container>
                                </nz-select>
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="belongObject">归属项目</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="belongObject" placeholder="归属项目" name="belongObject" type="text" nz-input
                                       formControlName="belongObject">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="inventoryTypeId">资产类型</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <nz-select name="inventoryTypeId" nzPlaceHolder="选择资产类型" formControlName="inventoryTypeId">
                                    <ng-container *ngFor="let item of hostTypeList">
                                        <nz-option [nzLabel]="item.name" [nzValue]="item.id"></nz-option>
                                    </ng-container>
                                </nz-select>
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="amount">金额</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="amount" placeholder="金额" name="amount" type="text" nz-input
                                       formControlName="amount">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="contact">联系人</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="contact" name="contact" placeholder="联系人" type="text" nz-input formControlName="contact">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed
            </form>
        </nz-tab>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
        <nz-tab nzTitle="详细信息">
            <form nz-form [formGroup]="validateForm" class="ant-advanced-search-form form-select">
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
wangqinghua's avatar
wangqinghua committed
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="versionNo">版本型号</nz-form-label>
wangqinghua's avatar
wangqinghua committed
                            <nz-form-control [nzSpan]="14">
wangqinghua's avatar
wangqinghua committed
                                <input id="versionNo" placeholder="版本型号" name="versionNo" type="text" nz-input
                                       formControlName="versionNo">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="serialNo">序列号</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="serialNo" placeholder="版本型号" name="serialNo" type="text" nz-input
                                       formControlName="serialNo">
wangqinghua's avatar
wangqinghua committed
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="buyDate">购买合同日期</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <nz-date-picker nzFormat="yyyy-MM-dd"
                                                [nzFormat]="'yyyy-MM-dd'"
                                                formControlName="buyDate"
                                                nzPlaceHolder="购买合同日期"></nz-date-picker>
                            </nz-form-control>
                        </nz-form-item>
wangqinghua's avatar
wangqinghua committed
                    </div>
wangqinghua's avatar
wangqinghua committed
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="serialNo">保修到修日期</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <nz-date-picker nzFormat="yyyy-MM-dd"
                                                [nzFormat]="'yyyy-MM-dd'"
                                                formControlName="warrantyDate"
                                                id="warrantyDate"
                                                nzPlaceHolder="保修到修日期"></nz-date-picker>
                            </nz-form-control>
                        </nz-form-item>
wangqinghua's avatar
wangqinghua committed
                    </div>
wangqinghua's avatar
wangqinghua committed
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="price">价格</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="price" placeholder="价格" name="price" type="text" nz-input formControlName="price">
                            </nz-form-control>
                        </nz-form-item>
wangqinghua's avatar
wangqinghua committed
                    </div>
wangqinghua's avatar
wangqinghua committed
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="serialNo">资金来源</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="fundsSource" placeholder="资金来源" name="fundsSource" type="text" nz-input
                                       formControlName="fundsSource">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="storeroom">存放库房</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="storeroom" name="storeroom" placeholder="存放库房" type="text" nz-input
                                       formControlName="storeroom">
                            </nz-form-control>
                        </nz-form-item>
wangqinghua's avatar
wangqinghua committed
                    </div>
wangqinghua's avatar
wangqinghua committed
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="storageLocation">存放位置</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="storageLocation" placeholder="存放位置" name="storageLocation" type="text"
                                       nz-input formControlName="storageLocation">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed


wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="installLocation">安装地点</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="installLocation" name="installLocation" placeholder="安装地点" type="text"
                                       nz-input formControlName="installLocation">
                            </nz-form-control>
                        </nz-form-item>
wangqinghua's avatar
wangqinghua committed
                    </div>
wangqinghua's avatar
wangqinghua committed
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="purchaseUser">采购人</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="purchaseUser" placeholder="采购人" name="purchaseUser" type="text" nz-input
                                       formControlName="purchaseUser">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="receiveUser">领用人</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="receiveUser" name="receiveUser" placeholder="领用人" type="text" nz-input
                                       formControlName="receiveUser">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="receiveNum">领用数量</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="receiveNum" placeholder="领用数量" name="receiveNum" type="text" nz-input
                                       formControlName="receiveNum">
                            </nz-form-control>
                        </nz-form-item>
wangqinghua's avatar
wangqinghua committed
                    </div>
wangqinghua's avatar
wangqinghua committed
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="operatUser">调试操作人</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="operatUser" name="operatUser" placeholder="调试操作人" type="text" nz-input
                                       formControlName="operatUser">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="relateFacility">相关设施</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="relateFacility" placeholder="相关设施" name="relateFacility" type="text" nz-input
                                       formControlName="relateFacility">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="model">型号</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="model" name="model" placeholder="型号" type="text" nz-input
                                       formControlName="model">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="brand">品牌</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="brand" placeholder="品牌" name="brand" type="text" nz-input
                                       formControlName="brand">
                            </nz-form-control>
                        </nz-form-item>
wangqinghua's avatar
wangqinghua committed
                    </div>
wangqinghua's avatar
wangqinghua committed
                </div>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
                <div nz-row [nzGutter]="24">
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label [nzOffset]="4" [nzSpan]="6" nzFor="price1">单价</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="price1" name="price1" placeholder="单价" type="text" nz-input
                                       formControlName="price1">
                            </nz-form-control>
                        </nz-form-item>
wangqinghua's avatar
wangqinghua committed
                    </div>
wangqinghua's avatar
wangqinghua committed
                    <div nz-col [nzSpan]="12">
                        <nz-form-item nzFlex>
                            <nz-form-label  [nzSpan]="6" nzFor="storageNum">入库数量</nz-form-label>
                            <nz-form-control [nzSpan]="14">
                                <input id="storageNum" placeholder="入库数量" name="storageNum" type="text" nz-input
                                       formControlName="storageNum">
                            </nz-form-control>
                        </nz-form-item>
                    </div>
                </div>
            </form>
        </nz-tab>
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
        <nz-tab nzTitle="配件盘点">
wangqinghua's avatar
wangqinghua committed
            <smart-track-info [title]="'配件盘点'" #smartTrackInfo></smart-track-info>
wangqinghua's avatar
wangqinghua committed
        </nz-tab>
    </nz-tabset>
</nz-modal>