提交代码

pull/1/head
胡锐 3 years ago
parent f351509a0b
commit 4079fe6da4
  1. 28
      src/app/admin/tuanyou-agent/order/ty-order-list/ty-order-list.component.html
  2. 10
      src/app/admin/tuanyou-agent/order/ty-order-list/ty-order-list.component.ts

@ -46,6 +46,26 @@
</nz-form-control>
</nz-form-item>
</div>
<div nz-col nzSpan="8" *ngIf="adminFlag == 1 && roleType == 5">
<nz-form-item>
<nz-form-label [nzSpan]="8">用户手机号</nz-form-label>
<nz-form-control [nzSpan]="14">
<input nz-input formControlName="memPhone" />
</nz-form-control>
</nz-form-item>
</div>
<div nz-col nzSpan="8">
<nz-form-item>
<nz-form-label [nzSpan]="8">支付时间</nz-form-label>
<nz-form-control [nzSpan]="14">
<nz-range-picker
[nzShowTime]="{ nzHideDisabledOptions: true }"
formControlName="payTimeArray"
nzFormat="yyyy-MM-dd HH:mm:ss"
></nz-range-picker>
</nz-form-control>
</nz-form-item>
</div>
</div>
<div nz-row>
@ -78,6 +98,7 @@
<th nzWidth="120px" *ngIf="roleType == 5">代理商</th>
<th nzWidth="120px" *ngIf="roleType == 8 || roleType == 5">业务员</th>
<th nzWidth="160px">加油站</th>
<th nzWidth="160px" *ngIf="adminFlag == 1 && roleType == 5">用户手机号</th>
<th nzWidth="200px">订单号</th>
<th nzWidth="100px">支付类型</th>
<th nzWidth="100px">加油金额</th>
@ -94,10 +115,11 @@
</thead>
<tbody>
<tr *ngFor="let data of basicTable.data;let i = index">
<td *ngIf="adminFlag == 1 && roleType == 5">{{data.orgName}}</td>
<td *ngIf="roleType == 5">{{data.agentName}}</td>
<td *ngIf="roleType == 8 || roleType == 5">{{data.salesmanName}}</td>
<td *ngIf="adminFlag == 1 && roleType == 5">{{data.orgName?data.orgName:'无'}}</td>
<td *ngIf="roleType == 5">{{data.agentName?data.agentName:'无'}}</td>
<td *ngIf="roleType == 8 || roleType == 5">{{data.salesmanName?data.salesmanName:'无'}}</td>
<td>{{data.goodsName}}</td>
<td *ngIf="adminFlag == 1 && roleType == 5">{{data.memPhone}}</td>
<td>{{data.orderNo}}</td>
<td>{{data.payType}}</td>
<td>{{data.totalPrice}}元</td>

@ -38,6 +38,8 @@ export class TyOrderListComponent implements OnInit {
orgName: [null],
agentName: [null],
salesmanName: [null],
memPhone: [null],
payTimeArray: [null],
});
this.requestData(1);
}
@ -64,7 +66,15 @@ export class TyOrderListComponent implements OnInit {
* @param whereObject
*/
search(whereObject: object) {
if (whereObject['payTimeArray'] != null) {
whereObject['payTimeS'] = new Date(whereObject['payTimeArray'][0]).getTime();
whereObject['payTimeE'] = new Date(whereObject['payTimeArray'][1]).getTime();
} else {
whereObject['payTimeS'] = null;
whereObject['payTimeE'] = null;
}
this.whereObject = whereObject;
console.log(this.whereObject);
this.requestData(1);
}

Loading…
Cancel
Save