车辆接口更新

This commit is contained in:
wangshiming
2022-01-25 20:04:35 +08:00
parent 35717ca650
commit 5b6737f76a
5 changed files with 73 additions and 126 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-12 10:52:50 * @Date : 2022-01-12 10:52:50
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-25 17:22:38 * @LastEditTime : 2022-01-25 20:01:20
* @FilePath : \\tms-obc-web\\src\\app\\routes\\insurance-management\\components\\list\\list.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\insurance-management\\components\\list\\list.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -43,11 +43,9 @@
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" <nz-tabset (nzSelectedIndexChange)="selectChange($event)"
[nzTabBarExtraContent]="extraTemplate"> [nzTabBarExtraContent]="extraTemplate">
<nz-tab [nzTitle]="'全部('+tabs?.totalCount+')'"></nz-tab> <nz-tab [nzTitle]="'全部('+tabs?.totalCount+')'"></nz-tab>
<nz-tab [nzTitle]="'接单('+tabs?.receivedQuantity+')'"></nz-tab> <nz-tab [nzTitle]="'投保('+tabs?.receivedQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'待发车('+tabs?.stayQuantity+')'"></nz-tab> <nz-tab [nzTitle]="'已投保('+tabs?.stayQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'运输中('+tabs?.GoingQuantity+')'"></nz-tab> <nz-tab [nzTitle]="'投保失败('+tabs?.GoingQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'待签收('+tabs?.signQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'已完成('+tabs?.compolatelQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'已取消('+tabs?.cancelQuantity+')'"></nz-tab> <nz-tab [nzTitle]="'已取消('+tabs?.cancelQuantity+')'"></nz-tab>
</nz-tabset> </nz-tabset>
<div style="margin-top: 15px;"> <div style="margin-top: 15px;">
@ -108,7 +106,7 @@
<ng-template #extraTemplate> <ng-template #extraTemplate>
<div> <div>
<button nz-button nzType="primary" > <button nz-button nzType="primary" >
批量签收 保险配置
</button> </button>
</div> </div>
</ng-template> </ng-template>

View File

@ -24,10 +24,6 @@ export class insuranceManagementListComponent implements OnInit {
isVisibleEvaluate = false; isVisibleEvaluate = false;
isVisible = false; isVisible = false;
_$expand = false; _$expand = false;
changeId: any; // 主页面查看运费变更记录id - 用于运费变更记录
changeViewId: any; // 查看运费变更记录id - 用于查看
ViewCause: any; // 变更运费查看数据
sfViewFormData: any; // 变更运费查看的sf 数据
@ViewChild('st') private readonly st!: STComponent; @ViewChild('st') private readonly st!: STComponent;
@ViewChild('stFloat') private readonly stFloat!: STComponent; @ViewChild('stFloat') private readonly stFloat!: STComponent;
@ViewChild('stFloatView') private readonly stFloatView!: STComponent; @ViewChild('stFloatView') private readonly stFloatView!: STComponent;
@ -57,8 +53,6 @@ export class insuranceManagementListComponent implements OnInit {
cancelQuantity: 0, cancelQuantity: 0,
receivedQuantity: 0, receivedQuantity: 0,
stayQuantity: 0, stayQuantity: 0,
signQuantity: 0,
compolatelQuantity: 0,
GoingQuantity: 0, GoingQuantity: 0,
totalCount: 0 totalCount: 0
}; };
@ -91,11 +85,6 @@ export class insuranceManagementListComponent implements OnInit {
get selectedRows() { get selectedRows() {
return this.st?.list.filter(item => item.checked) || []; return this.st?.list.filter(item => item.checked) || [];
} }
get changeParams() {
return {
id: this.changeId
};
}
search() { search() {
this.st?.load(1); this.st?.load(1);
this.getGoodsSourceStatistical(); this.getGoodsSourceStatistical();
@ -105,8 +94,6 @@ export class insuranceManagementListComponent implements OnInit {
cancelQuantity: 0, cancelQuantity: 0,
receivedQuantity: 0, receivedQuantity: 0,
stayQuantity: 0, stayQuantity: 0,
signQuantity: 0,
compolatelQuantity: 0,
GoingQuantity: 0, GoingQuantity: 0,
totalCount: 0 totalCount: 0
}; };
@ -328,42 +315,7 @@ export class insuranceManagementListComponent implements OnInit {
}; };
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } }; this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
} }
/**
* 初始化查询表单
*/
initSFView() {
this.schemaView = {
properties: {
freightPrice: {
type: 'string',
title: '运费单价'
},
rule: {
title: '',
type: 'string',
ui: {
widget: 'dict-select',
params: { dictKey: 'goodresource:rounding:rules' },
visibleIf: {
_$expand: (value: boolean) => value
}
} as SFSelectWidgetSchema
},
settlementBasis: {
type: 'string',
title: '结算重量',
ui: {
widget: 'dict-select',
params: { dictKey: 'goodresource:settlement:type' },
visibleIf: {
_$expand: (value: boolean) => value
}
} as SFSelectWidgetSchema
}
}
};
this.uiView = { '*': { spanLabelFixed: 80, grid: { span: 12, gutter: 4 } } };
}
/** /**
* 初始化数据列表 * 初始化数据列表
@ -372,26 +324,26 @@ export class insuranceManagementListComponent implements OnInit {
this.columns = [ this.columns = [
{ title: '', type: 'checkbox', fixed: 'left', width: '50px', className: 'text-center' }, { title: '', type: 'checkbox', fixed: 'left', width: '50px', className: 'text-center' },
{ {
title: '订单号', title: '投保编号',
width: '180px', width: '180px',
fixed: 'left', fixed: 'left',
className: 'text-left', className: 'text-left',
render: 'billCode' render: 'billCode'
}, },
{ {
title: '运费明细', title: '保单号',
width: '250px', width: '250px',
className: 'text-right', className: 'text-right',
render: 'mybidDetailInfo' render: 'mybidDetailInfo'
}, },
{ title: '网络货运人', index: 'enterpriseInfoName', width: '220px', className: 'text-left' }, { title: '类型', index: 'enterpriseInfoName', width: '220px', className: 'text-left' },
{ title: '货主', index: 'shipperAppUserName', width: '220px', className: 'text-left' }, { title: '始发地', index: 'shipperAppUserName', width: '220px', className: 'text-left' },
{ title: '所属项目', index: 'enterpriseProjectName', width: '220px', className: 'text-left' }, { title: '目的地', index: 'enterpriseProjectName', width: '220px', className: 'text-left' },
{ title: '关联运单号', index: 'wayBillCode', width: '180px', className: 'text-left' }, { title: '距离', index: 'wayBillCode', width: '180px', className: 'text-left' },
{ title: '货源编号', index: 'resourceCode', width: '180px', className: 'text-left' }, { title: '保额(元)', index: 'resourceCode', width: '180px', className: 'text-left' },
{ title: '装货地', index: 'loadingAddressArr', width: '180px', className: 'text-left' }, { title: '保费(元)', index: 'loadingAddressArr', width: '180px', className: 'text-left' },
{ {
title: '卸货地', title: '实际保费(元)',
className: 'text-left', className: 'text-left',
width: '180px', width: '180px',
index: 'unloadingAddressArr' index: 'unloadingAddressArr'
@ -403,49 +355,73 @@ export class insuranceManagementListComponent implements OnInit {
render: 'goodsName' render: 'goodsName'
}, },
{ {
title: '运费单价', title: '车牌号',
className: 'text-right', className: 'text-right',
width: '180px', width: '180px',
render: 'freightPrice' render: 'freightPrice'
}, },
{ {
title: '接单数量', title: '关联订单号',
className: 'text-right', className: 'text-right',
index: 'goodsNumber', index: 'goodsNumber',
width: '180px' width: '180px'
}, },
{ {
title: '结算重量', title: '货源编号',
className: 'text-right', className: 'text-right',
index: 'settlementWeight', index: 'settlementWeight',
width: '150px' width: '150px'
}, },
{ {
title: '承运司机', title: '网络货运人',
className: 'text-left', className: 'text-left',
width: '250px', width: '250px',
index: 'driverName', index: 'driverName',
render: 'driverName' render: 'driverName'
}, },
{ {
title: '收款人', title: '货主',
className: 'text-left', className: 'text-left',
width: '180px', width: '180px',
index: 'payeeName', index: 'payeeName',
render: 'payeeName' render: 'payeeName'
}, },
{ {
title: '装卸货时间', title: '所属项目',
width: '200px', width: '200px',
className: 'text-left', className: 'text-left',
render: 'loadingTime' render: 'loadingTime'
}, },
{
title: '投保时间',
width: '180px',
className: 'text-left',
index: 'createTime'
},
{
title: '生效时间',
width: '180px',
className: 'text-left',
index: 'createTime'
},
{
title: '录单时间',
width: '180px',
className: 'text-left',
index: 'createTime'
},
{ {
title: '创建时间', title: '创建时间',
width: '180px', width: '180px',
className: 'text-left', className: 'text-left',
index: 'createTime' index: 'createTime'
}, },
{
title: '失败原因',
width: '180px',
className: 'text-left',
index: 'createTime'
},
{ {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
@ -453,71 +429,32 @@ export class insuranceManagementListComponent implements OnInit {
className: 'text-left', className: 'text-left',
buttons: [ buttons: [
{ {
text: '取消订单 ', text: '再次投保',
click: _record => console.log(''), click: _record => console.log(''),
iif: item => // iif: item =>
item.billStatus == '4' || item.billStatus == '5' || item.billStatus == '2' || item.billStatus == '3' || item.billStatus == '1' // item.billStatus == '4' || item.billStatus == '5' || item.billStatus == '2' || item.billStatus == '3' || item.billStatus == '1'
}, },
{ {
text: '修改订单 ', text: '查看保单',
click: _record => console.log(''),
// iif: item =>
// item.billStatus == '4' || item.billStatus == '5' || item.billStatus == '2' || item.billStatus == '3' || item.billStatus == '1'
},
{
text: '退保费',
click: _record => this.changeOrder(_record), click: _record => this.changeOrder(_record),
iif: item => item.billStatus == '4' || item.billStatus == '5' || item.billStatus == '2' || item.billStatus == '3'
}
]
}
];
}
initSTFloat() {
this.columnsFloat = [
{
title: '序号',
className: 'text-center',
render: 'order'
},
{
title: '操作时间',
className: 'text-center',
index: 'applyTime'
},
{
title: '操作人',
className: 'text-center',
index: 'applyUserName'
},
{ title: '状态', index: 'handleStatusLabel', className: 'text-center' },
{
title: '操作',
fixed: 'right',
className: 'text-left',
buttons: [
{
text: '查看',
click: _record => console.log('')
},
// {
// text: '查看协议',
// click: (_record, _modal, _instance) => this.view(_record)
// },
{
text: '撤销',
click: _record => console.log(''),
iif: item => item.handleStatus === '1' || item.handleStatus === 1
} }
] ]
} }
]; ];
} }
/** /**
* 查询字段个数 * 查询字段个数
*/ */
get queryFieldCount(): number { get queryFieldCount(): number {
return Object.keys(this.schema?.properties || {}).length; return Object.keys(this.schema?.properties || {}).length;
} }
get changeViewParams() {
return {
id: this.changeViewId
};
}
/** /**
* 伸缩查询条件 * 伸缩查询条件
*/ */

View File

@ -117,8 +117,8 @@
<nz-card nzTitle="服务信息"> <nz-card nzTitle="服务信息">
<sv-container> <sv-container>
<sv label="服务类型"> <sv label="增值服务套餐">
{{i?.carrierInformationVO?.serviceTypeLabel}} {{i?.insuranceType}}
</sv> </sv>
<sv label="货物价值"> <sv label="货物价值">
{{i?.goodsValue}} {{i?.goodsValue}}

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-24 15:54:08 * @Date : 2021-12-24 15:54:08
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-25 17:43:07 * @LastEditTime : 2022-01-25 19:44:15
* @FilePath : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\network-freight\\network-freight.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\network-freight\\network-freight.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -60,6 +60,18 @@
<ng-template st-row="electronicInvoiceAccount" let-item let-index="index"> <ng-template st-row="electronicInvoiceAccount" let-item let-index="index">
<a href="javascript:;" (click)="setMakeInvoice()">设置</a> <a href="javascript:;" (click)="setMakeInvoice()">设置</a>
</ng-template> </ng-template>
<ng-template st-row="etcAccount" let-item let-index="index">
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
</ng-template>
<ng-template st-row="electronicContractAccount" let-item let-index="index">
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
</ng-template>
<ng-template st-row="bankName" let-item let-index="index">
<a href="javascript:;" (click)="setMakeInvoice()">开通子账户</a>
</ng-template>
<ng-template st-row="virtualAccount" let-item let-index="index">
<a href="javascript:;" (click)="setMakeInvoice()">开通子账户</a>
</ng-template>
</st> </st>
</nz-card> </nz-card>

View File

@ -244,7 +244,7 @@
"children": [ "children": [
{ {
"text": "保险列表", "text": "保险列表",
"link": "/waybill-management/vehicle" "link": "/insurance-management/list"
} }
] ]
}, },