|
|
|
@ -10,40 +10,71 @@ |
|
|
|
|
<!-- end 面包屑 --> |
|
|
|
|
|
|
|
|
|
<nz-content class="inner-content"> |
|
|
|
|
<form nz-form [formGroup]="validateForm" class="ant-advanced-search-form"> |
|
|
|
|
<div nz-row> |
|
|
|
|
<div nz-col nzSpan="2"></div> |
|
|
|
|
<div nz-col nzSpan="20"> |
|
|
|
|
<form nz-form [formGroup]="validateForm"> |
|
|
|
|
<div nz-row [nzGutter]="24"> |
|
|
|
|
<nz-divider nzText="门店信息"></nz-divider> |
|
|
|
|
|
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'telephone'" nzRequired>登录手机号</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入登录手机号!"> |
|
|
|
|
<input nz-input placeholder="请输入登录手机号..." [formControlName]="'telephone'" id="'telephone'" /> |
|
|
|
|
<nz-form-label [nzFor]="'storeName'" nzRequired>门店名称</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入门店名称!"> |
|
|
|
|
<input nz-input placeholder="请输入门店名称..." [formControlName]="'storeName'" id="'storeName'" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'password'" nzRequired>登录密码</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入登录密码!"> |
|
|
|
|
<nz-input-group [nzSuffix]="suffixTemplate"> |
|
|
|
|
<input [type]="passwordVisible ? 'text' : 'password'" nz-input placeholder="请输入登录密码..." [formControlName]="'password'" id="'password'" /> |
|
|
|
|
</nz-input-group> |
|
|
|
|
<ng-template #suffixTemplate> |
|
|
|
|
<i nz-icon [nzType]="passwordVisible ? 'eye-invisible' : 'eye'" (click)="passwordVisible = !passwordVisible"></i> |
|
|
|
|
</ng-template> |
|
|
|
|
<nz-form-label [nzFor]="'usingScope'" nzRequired>门店品牌</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请选择品牌!"> |
|
|
|
|
<nz-select formControlName="brandId" nzAllowClear nzPlaceHolder="请选择品牌"> |
|
|
|
|
<nz-option *ngFor="let item of brandData" [nzValue]="item.codeValue" [nzLabel]="item.codeName"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="8" *ngIf="!editFlag"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'prestoreType'" nzRequired>预存类型</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请选择预存类型!"> |
|
|
|
|
<nz-select formControlName="prestoreType" nzAllowClear nzPlaceHolder="请选择预存类型"> |
|
|
|
|
<nz-option nzValue="0" nzLabel="非预存"></nz-option> |
|
|
|
|
<nz-option nzValue="1" nzLabel="预存"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'type'" nzRequired>门店类型</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请选择门店类型!"> |
|
|
|
|
<nz-select formControlName="type" nzAllowClear nzPlaceHolder="请选择门店类型"> |
|
|
|
|
<nz-option nzValue="1" nzLabel="加油站"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'storeKey'" nzRequired>门店编号</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入门店编号!"> |
|
|
|
|
<input nz-input placeholder="请输入门店编号..." [formControlName]="'storeKey'" id="'storeKey'" /> |
|
|
|
|
<nz-form-label [nzFor]="'contactName'" nzRequired>联系人</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入联系人!"> |
|
|
|
|
<input nz-input placeholder="请输入联系人..." [formControlName]="'contactName'" id="'contactName'" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>门店LOGO</nz-form-label> |
|
|
|
|
<nz-form-label [nzFor]="'telephone'" nzRequired>联系电话</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入联系电话!"> |
|
|
|
|
<input nz-input placeholder="请输入联系电话..." [formControlName]="'telephone'" id="'telephone'" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="24"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>门店照片</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<nz-upload |
|
|
|
|
nzAction="{{WEB_SERVE_URL}}/fileUpload/uploadfile" |
|
|
|
@ -63,30 +94,49 @@ |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<nz-divider nzText="设备信息"></nz-divider> |
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'storeName'" nzRequired>门店名称</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入门店名称!"> |
|
|
|
|
<input nz-input placeholder="请输入门店名称..." [formControlName]="'storeName'" id="'storeName'" /> |
|
|
|
|
<nz-form-label [nzFor]="'deviceSn'" >打印机编号</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入打印机编号!"> |
|
|
|
|
<input nz-input placeholder="请输入打印机编号..." [formControlName]="'deviceSn'" id="'deviceSn'" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'latitude'" nzRequired>地址维度</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入门店地址维度!"> |
|
|
|
|
<input nz-input placeholder="请输入门店地址维度..." readonly [formControlName]="'latitude'" id="'latitude'" /> |
|
|
|
|
<nz-form-label [nzFor]="'deviceKey'" >打印机KEY</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入打印机KEY!"> |
|
|
|
|
<input nz-input placeholder="请输入打印机KEY..." [formControlName]="'deviceKey'" id="'deviceKey'" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="8"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'longitude'" nzRequired>地址经度</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入门店地址维度!"> |
|
|
|
|
<input nz-input placeholder="请输入门店地址维度..." readonly [formControlName]="'longitude'" id="'longitude'" /> |
|
|
|
|
<nz-form-label [nzFor]="'deviceName'" >打印机名称</nz-form-label> |
|
|
|
|
<nz-form-control nzErrorTip="请输入打印机名称!"> |
|
|
|
|
<input nz-input placeholder="请输入打印机名称..." [formControlName]="'deviceName'" id="'deviceName'" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<nz-divider nzText="定位信息"></nz-divider> |
|
|
|
|
|
|
|
|
|
<!-- <div nz-col [nzSpan]="8">--> |
|
|
|
|
<!-- <nz-form-item>--> |
|
|
|
|
<!-- <nz-form-label [nzFor]="'latitude'" nzRequired>地址维度</nz-form-label>--> |
|
|
|
|
<!-- <nz-form-control nzErrorTip="请输入门店地址维度!">--> |
|
|
|
|
<!-- <input nz-input placeholder="请输入门店地址维度..." readonly [formControlName]="'latitude'" id="'latitude'" />--> |
|
|
|
|
<!-- </nz-form-control>--> |
|
|
|
|
<!-- </nz-form-item>--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<!-- <div nz-col [nzSpan]="8">--> |
|
|
|
|
<!-- <nz-form-item>--> |
|
|
|
|
<!-- <nz-form-label [nzFor]="'longitude'" nzRequired>地址经度</nz-form-label>--> |
|
|
|
|
<!-- <nz-form-control nzErrorTip="请输入门店地址维度!">--> |
|
|
|
|
<!-- <input nz-input placeholder="请输入门店地址维度..." readonly [formControlName]="'longitude'" id="'longitude'" />--> |
|
|
|
|
<!-- </nz-form-control>--> |
|
|
|
|
<!-- </nz-form-item>--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<div nz-col [nzSpan]="14"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzFor]="'address'" nzRequired>门店地址</nz-form-label> |
|
|
|
@ -125,5 +175,8 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col nzSpan="2"></div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</nz-content> |
|
|
|
|