edit
This commit is contained in:
@ -127,7 +127,7 @@
|
||||
</sv>
|
||||
<sv label="企业授权函" col="2">
|
||||
<ng-container
|
||||
*ngTemplateOutlet="uploadTemplate;context:{data:detailData?.adminUserInfo,status:isEdit,key:'certificatePhotoBackWatermark',key2:'certificatePhotoBack',hover:'adminPhoto'}">
|
||||
*ngTemplateOutlet="uploadTemplate;context:{data:detailData,status:isEdit,key:'creditPhotoWatermark',key2:'creditPhoto',hover:'adminPhoto'}">
|
||||
</ng-container>
|
||||
</sv>
|
||||
</sv-container>
|
||||
|
||||
@ -234,7 +234,6 @@ export class FreightComponentsListDetailComponent implements OnInit {
|
||||
oftenUsedServices: dateil.oftenUsedServices,
|
||||
operatingEndTime: this.datePipe.transform(dateil.operatingEndTime, 'yyyy-MM-dd'),
|
||||
operatingStartTime: this.datePipe.transform(dateil.operatingStartTime, 'yyyy-MM-dd'),
|
||||
passTime: this.datePipe.transform(dateil.passTime, 'yyyy-MM-dd'),
|
||||
promotersTelephone: dateil.promotersTelephone,
|
||||
registerAddress: dateil.registerAddress,
|
||||
registerPhone: dateil.registerPhone,
|
||||
|
||||
@ -1,11 +1,3 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-29 15:22:34
|
||||
* @LastEditTime: 2021-11-29 20:14:00
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\usercenter\components\freight\list\list.component.html
|
||||
-->
|
||||
<!-- 页头 -->
|
||||
<page-header-wrapper [title]="'企业列表'"></page-header-wrapper>
|
||||
<nz-card>
|
||||
@ -32,7 +24,7 @@
|
||||
<!-- 数据列表 -->
|
||||
<!-- [data]="service.$api_get_supplier_page" -->
|
||||
|
||||
<st #st [bordered]="true" [columns]="columns" [data]='service.$api_get_freight_list'
|
||||
<st #st [columns]="columns" [data]='service.$api_get_freight_list'
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' }, process: dataProcess }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [loadingDelay]="500"
|
||||
@ -59,7 +51,7 @@
|
||||
<div nz-row nzGutter="8">
|
||||
<div nz-col nzSpan="24" se-container [labelWidth]="80">
|
||||
<se [col]="1" label="手机号">
|
||||
<input nz-input [(ngModel)]="promotersTelephone" />
|
||||
<input nz-input [(ngModel)]="promotersTelephone" maxlength="11" required/>
|
||||
</se>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -16,7 +16,7 @@ export class FreightComponentsListComponent implements OnInit {
|
||||
columns!: STColumn[];
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
|
||||
|
||||
@ViewChild('promoterModal', { static: false })
|
||||
promoterModal!: any;
|
||||
promotersTelephone = '';
|
||||
@ -199,6 +199,7 @@ export class FreightComponentsListComponent implements OnInit {
|
||||
return false;
|
||||
}
|
||||
if (typeof this.promotersTelephone === 'string' && !/(^1\d{10}$)/.test(this.promotersTelephone)) {
|
||||
this.service.msgSrv.error('手机格式错误');
|
||||
return false;
|
||||
}
|
||||
this.service.request(this.service.$api_add_salesman, { ids: [item.id], salesmanMobile: this.promotersTelephone }).subscribe(res => {
|
||||
|
||||
Reference in New Issue
Block a user