pull/1/head
袁野 4 years ago
parent e0cfb4a913
commit f6dbd630b5
  1. 2
      src/app/admin/coupon/coupon-list/coupon-list.component.html
  2. 6
      src/app/admin/system/sinopec-config/sinopec-config.component.html
  3. 18
      src/app/admin/system/sinopec-config/sinopec-config.component.ts
  4. 8
      src/app/admin/system/sinopec-edit/sinopec-edit.component.html
  5. 1
      src/app/admin/system/sinopec-edit/sinopec-edit.component.ts

@ -101,7 +101,6 @@
<th nzWidth="50px">编号</th>
<th nzWidth="150px">卡券编号</th>
<th nzWidth="160px">卡券名称</th>
<th nzWidth="100px">卡券面值</th>
<th nzWidth="100px">销售价格</th>
<th nzWidth="100px">有效库存</th>
<th nzWidth="100px">卡券类型</th>
@ -116,7 +115,6 @@
<td>{{i+1}}</td>
<td>{{data.couponKey}}</td>
<td>{{data.couponName}}</td>
<td>¥{{data.couponPrice}}</td>
<td>¥{{data.salesPrice}}</td>
<td>{{data.stockCount}}</td>
<td>{{data.couponType === 1 ? '内部卷' : '外部卷'}}</td>

@ -26,7 +26,8 @@
<th nzWidth="80px">客户AppId</th>
<th nzWidth="80px">客户密码</th>
<th nzWidth="100px">客户编码</th>
<!-- <th nzWidth="100px">创建时间</th>-->
<th nzWidth="100px">客户KEY</th>
<th nzWidth="100px">创建时间</th>
<th nzWidth="80px" nzRight="0px">操作</th>
</tr>
</thead>
@ -36,7 +37,8 @@
<td>{{data.appId}}</td>
<td>{{data.appSecret}}</td>
<td>{{data.code}}</td>
<!-- <td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td>-->
<td>{{data.signkey}}</td>
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td>
<td nzRight="0px" class="table-td-operation">
<a (click)="getEdit(data.id)"><i nz-icon nzType="form" nzTheme="outline" nz-tooltip="编辑"></i></a>
</td>

@ -73,18 +73,18 @@ export class SinopecConfigComponent implements OnInit {
public getEdit(id: number): void {
this.router.navigate(['/admin/system/sinopec-edit'], {
queryParams: {
merchantId: id
sinopecId: id
}
}).then(r => console.log(r));
}
// 查看详情
public getDetail(id: number): void {
this.router.navigate(['/admin/system/sinopec-detail'], {
queryParams: {
merchantId: id
}
}).then(r => console.log(r));
}
// // 查看详情
// public getDetail(id: number): void {
// this.router.navigate(['/admin/system/sinopec-detail'], {
// queryParams: {
// merchantId: id
// }
// }).then(r => console.log(r));
// }
}

@ -36,6 +36,14 @@
</nz-form-control>
</nz-form-item>
</div>
<div nz-col [nzSpan]="8">
<nz-form-item>
<nz-form-label [nzFor]="'signkey'" nzRequired>客户KEY</nz-form-label>
<nz-form-control nzErrorTip="请输入客户KEY!">
<input nz-input placeholder="请输入客户KEY..." [formControlName]="'signkey'" id="'signkey'" />
</nz-form-control>
</nz-form-item>
</div>
</div>
<div nz-row>
<div nz-col [nzSpan]="24" class="search-area">

@ -39,6 +39,7 @@ export class SinopecEditComponent implements OnInit {
appId: [null, [Validators.required]],
appSecret: [null, [Validators.required]],
code: [null, [Validators.required]],
signkey: [null, [Validators.required]],
});
}

Loading…
Cancel
Save