车辆对接

This commit is contained in:
wangshiming
2021-12-22 09:50:17 +08:00
parent c79ea5261f
commit d40830c870
11 changed files with 334 additions and 190 deletions

View File

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-12-03 15:31:52
* @LastEditTime: 2021-12-20 09:36:26
* @LastEditTime: 2021-12-22 09:49:57
* @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\order-management\components\vehicle-detail\vehicle-detail.component.ts
@ -20,11 +20,29 @@ import { OrderManagementService } from '../../services/order-management.service'
})
export class OrderManagementBulkeDetailComponent implements OnInit {
id = this.route.snapshot.params.id;
i: any;
logColumns: STColumn[] = [
{ title: '时间', index: 'operationUserPhone' },
{ title: '地点', index: ' createTime' },
{ title: '款项', index: 'costName' },
{ title: '总费用(元)', index: 'price' },
{ title: '协议金额(元)', index: 'price' },
{ title: '附加费(元)', index: 'surcharge' },
{ title: '附加费率(%', index: 'paymentMethodRate' },
{ title: '支付时间', index: ' paymentTime' },
{
title: '支付状态',
className: 'text-center',
index: 'paymentStatus',
type: 'badge',
width: '120px',
badge: {
'1': { text: '待申请', color: 'warning' },
'2': { text: '已支付', color: 'success' },
'3': { text: '已拒绝', color: 'warning' },
'4': { text: '申请中', color: 'warning' },
},
},
];
constructor(
@ -37,13 +55,18 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
}
ngOnInit(): void {
this.service.http.get(`/user/${this.id}?_allow_anonymous=true&_allow_badcode=true`).subscribe(res => {
console.log(res);
this.i = res
});
console.log(this.id)
this.initData()
}
initData() {
this.service.request(this.service.$api_getBulkBillDetail, {id: this.id}).subscribe(res => {
console.log(res)
if (res) {
this.i =res;
}
})
}
hand() {
this.modalService.create({
@ -56,5 +79,4 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
goBack() {
window.history.go(-1);
}
}