|
|
|
@ -12,9 +12,9 @@ |
|
|
|
|
<nz-form-label [nzSpan]="6">金额类型</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16"> |
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="type" nzPlaceHolder="请选择金额类型"> |
|
|
|
|
<nz-option nzLabel="话费充值" nzValue="1"></nz-option> |
|
|
|
|
<nz-option nzLabel="中石化" nzValue="2"></nz-option> |
|
|
|
|
<nz-option nzLabel="中石油" nzValue="3"></nz-option> |
|
|
|
|
<nz-option nzLabel="电信充值" nzValue="1"></nz-option> |
|
|
|
|
<nz-option nzLabel="移动充值" nzValue="2"></nz-option> |
|
|
|
|
<nz-option nzLabel="联通充值" nzValue="3"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
@ -37,7 +37,7 @@ |
|
|
|
|
<div class="inner-content"> |
|
|
|
|
<span>共计 {{total}} 条数据</span> |
|
|
|
|
<div class="operating-button"> |
|
|
|
|
<button nz-button nzType="primary" class="right-btn" (click)="getMemberGoods()">获取关联商品</button> |
|
|
|
|
<!-- <button nz-button nzType="primary" class="right-btn" (click)="getMemberGoods()">获取关联商品</button>--> |
|
|
|
|
<button nz-button nzType="primary" class="right-btn" (click)="getEdit()"><i nz-icon nzType="plus" nzTheme="outline"></i>添加</button> |
|
|
|
|
</div> |
|
|
|
|
<nz-table |
|
|
|
@ -56,8 +56,8 @@ |
|
|
|
|
<tr> |
|
|
|
|
<th>编号</th> |
|
|
|
|
<th>金额类型</th> |
|
|
|
|
<th>供货商编号</th> |
|
|
|
|
<th>商品ID</th> |
|
|
|
|
<!-- <th>供货商编号</th>--> |
|
|
|
|
<!-- <th>商品ID</th>--> |
|
|
|
|
<th>充值金额</th> |
|
|
|
|
<th>支付金额</th> |
|
|
|
|
<th>创建时间</th> |
|
|
|
@ -68,14 +68,15 @@ |
|
|
|
|
<tr *ngFor="let data of ajaxTable.data; let i = index"> |
|
|
|
|
<td>{{i + 1}}</td> |
|
|
|
|
<td>{{data.type | rechargePrice}}</td> |
|
|
|
|
<td>{{data.channel}}</td> |
|
|
|
|
<td>{{data.goodsId}}</td> |
|
|
|
|
<!-- <td>{{data.channel}}</td>--> |
|
|
|
|
<!-- <td>{{data.goodsId}}</td>--> |
|
|
|
|
<td>{{data.price}}</td> |
|
|
|
|
<td>{{data.realPrice}}</td> |
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td class="table-td-operation"> |
|
|
|
|
<a (click)="getEdit(data.id)">编辑</a> |
|
|
|
|
<a style="margin-left: 20px;" (click)="getForbiddenUser(data.id)">删除</a> |
|
|
|
|
<a style="margin-left: 20px;" (click)='getForbiddenUser(data.id , data.status)'>{{data.status === 1 ? '禁用': '启用'}}</a> |
|
|
|
|
<a style="margin-left: 20px;" (click)="getForbiddenUserD(data.id)">删除</a> |
|
|
|
|
</td> |
|
|
|
|
</tbody> |
|
|
|
|
</nz-table> |
|
|
|
@ -87,24 +88,30 @@ |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>金额类型</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请选择类型!"> |
|
|
|
|
<nz-select nzShowSearch nzAllowClear formControlName="type" nzPlaceHolder="请选择类型"> |
|
|
|
|
<nz-option nzLabel="话费充值" nzValue="1"></nz-option> |
|
|
|
|
<nz-option nzLabel="中石化" nzValue="2"></nz-option> |
|
|
|
|
<nz-option nzLabel="中石油" nzValue="3"></nz-option> |
|
|
|
|
<nz-option nzLabel="电信充值" nzValue="1"></nz-option> |
|
|
|
|
<nz-option nzLabel="移动充值" nzValue="2"></nz-option> |
|
|
|
|
<nz-option nzLabel="联通充值" nzValue="3"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>供货商编号</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入供货商编号!"> |
|
|
|
|
<input [type]="'number'" nz-input formControlName="channel" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>商品ID</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入商品ID!"> |
|
|
|
|
<input [type]="'number'" nz-input formControlName="goodsId" /> |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>商品排序</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入商品排序!"> |
|
|
|
|
<input [type]="'number'" nz-input formControlName="sort" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
<!-- <nz-form-item>--> |
|
|
|
|
<!-- <nz-form-label [nzSpan]="6" nzRequired>供货商编号</nz-form-label>--> |
|
|
|
|
<!-- <nz-form-control [nzSpan]="16" nzErrorTip="请输入供货商编号!">--> |
|
|
|
|
<!-- <input [type]="'number'" nz-input formControlName="channel" />--> |
|
|
|
|
<!-- </nz-form-control>--> |
|
|
|
|
<!-- </nz-form-item>--> |
|
|
|
|
<!-- <nz-form-item>--> |
|
|
|
|
<!-- <nz-form-label [nzSpan]="6" nzRequired>商品ID</nz-form-label>--> |
|
|
|
|
<!-- <nz-form-control [nzSpan]="16" nzErrorTip="请输入商品ID!">--> |
|
|
|
|
<!-- <input [type]="'number'" nz-input formControlName="goodsId" />--> |
|
|
|
|
<!-- </nz-form-control>--> |
|
|
|
|
<!-- </nz-form-item>--> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label [nzSpan]="6" nzRequired>充值金额</nz-form-label> |
|
|
|
|
<nz-form-control [nzSpan]="16" nzErrorTip="请输入充值金额!"> |
|
|
|
|