Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -4,19 +4,26 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-12 10:52:50
|
* @Date : 2022-01-12 10:52:50
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-02-14 13:29:21
|
* @LastEditTime : 2022-02-17 10:12:21
|
||||||
* @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.
|
||||||
-->
|
-->
|
||||||
<!-- 搜索表单 -->
|
<!-- 搜索表单 -->
|
||||||
<page-header-wrapper [title]="''">
|
<page-header-wrapper [title]="''"> </page-header-wrapper>
|
||||||
</page-header-wrapper>
|
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
||||||
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
|
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
|
||||||
<sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [disabled]="!sf?.valid" [loading]="service.http.loading"
|
<sf
|
||||||
(formSubmit)="st?.load(1)" (formReset)="resetSF()"></sf>
|
#sf
|
||||||
|
[schema]="schema"
|
||||||
|
[ui]="ui"
|
||||||
|
[mode]="'search'"
|
||||||
|
[disabled]="!sf?.valid"
|
||||||
|
[loading]="service.http.loading"
|
||||||
|
(formSubmit)="st?.load(1)"
|
||||||
|
(formReset)="resetSF()"
|
||||||
|
></sf>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
||||||
@ -25,10 +32,8 @@
|
|||||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||||
</div>
|
</div>
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
||||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading"
|
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="search()">查询</button>
|
||||||
(click)="search()">查询</button>
|
<button nz-button nzType="primary" [disabled]="service.http.loading">导出</button>
|
||||||
<button nz-button nzType="primary" [disabled]="service.http.loading"
|
|
||||||
>导出</button>
|
|
||||||
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
{{ !_$expand ? '展开' : '收起' }}
|
{{ !_$expand ? '展开' : '收起' }}
|
||||||
@ -40,70 +45,81 @@
|
|||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<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?.cancelQuantity + ')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'已取消('+tabs?.cancelQuantity+')'"></nz-tab>
|
</nz-tabset>
|
||||||
</nz-tabset>
|
<div style="margin-top: 15px">
|
||||||
<div style="margin-top: 15px;">
|
|
||||||
<st
|
<st
|
||||||
#st
|
#st
|
||||||
[bordered]="true"
|
[bordered]="true"
|
||||||
[scroll]="{ x: '2000px' }"
|
[scroll]="{ x: '2000px' }"
|
||||||
[data]="service.$api_premiumInfo_list"
|
[data]="service.$api_premiumInfo_list"
|
||||||
[columns]="columns"
|
[columns]="columns"
|
||||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||||
[loading]="service.http.loading"
|
[loading]="service.http.loading"
|
||||||
>
|
>
|
||||||
<ng-template st-row="resourceCode" let-item let-index="index">
|
<ng-template st-row="resourceCode" let-item let-index="index">
|
||||||
{{ item.resourceCode | currency}}
|
{{ item.resourceCode | currency }}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="practicalPremium" let-item let-index="index">
|
<ng-template st-row="practicalPremium" let-item let-index="index">
|
||||||
{{ item.practicalPremium | currency}}
|
{{ item.practicalPremium | currency }}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="premium" let-item let-index="index">
|
<ng-template st-row="insureAmount" let-item let-index="index">
|
||||||
{{ item.premium | currency}}
|
{{ item.insureAmount | currency }}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="driverName" let-item let-index="index">
|
<ng-template st-row="premium" let-item let-index="index">
|
||||||
<div>
|
{{ item.premium | currency }}
|
||||||
{{item?.driverName}}/{{item?.driverTelephone}}/{{item?.carNo}}
|
</ng-template>
|
||||||
</div>
|
<ng-template st-row="driverName" let-item let-index="index">
|
||||||
|
<div> {{ item?.driverName }}/{{ item?.driverTelephone }}/{{ item?.carNo }} </div>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template st-row="distance" let-item let-index="index">
|
||||||
|
<div>
|
||||||
|
{{ item?.distance ? item?.distance + '公里' : '' }}
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template st-row="goodsNumber" let-item let-index="index">
|
||||||
|
<div>
|
||||||
|
{{ item?.billCode }}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{{ item?.resourceStatusLabel }}
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template st-row="insureCode" let-item let-index="index">
|
||||||
|
<div>{{ item.insureCode }}</div>
|
||||||
|
<div>
|
||||||
|
<span>{{ item?.insureStatusLabel }}</span>
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template st-row="goodsName" let-item let-index="index">
|
||||||
|
<div>{{ item?.goodsInfoName }}</div>
|
||||||
|
<div>
|
||||||
|
<span>{{ item?.weight ? item?.weight + '吨/' : '' }}</span>
|
||||||
|
<span>{{ item?.volume ? item?.volume + '方' : '' }}</span>
|
||||||
|
<span>{{ item?.number ? item?.number + '件' : '' }}</span>
|
||||||
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template st-row="mybidDetailInfo" let-item let-index="index">
|
||||||
|
<div *ngIf="item.mybidDetailInfo?.length > 0">
|
||||||
|
<p *ngFor="let data of item.mybidDetailInfo">
|
||||||
|
{{ data.expenseName }}:{{ data.price | currency }}
|
||||||
|
<span *ngIf="data.paymentStatusLabel" style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="insureCode" let-item let-index="index">
|
|
||||||
<div>{{item.insureCode}}</div>
|
|
||||||
<div>
|
|
||||||
<span>{{item?.insureStatusLabel}}</span>
|
|
||||||
</div>
|
|
||||||
</ng-template>
|
|
||||||
<ng-template st-row="goodsName" let-item let-index="index">
|
|
||||||
<div>{{item?.goodsName}}</div>
|
|
||||||
<div>
|
|
||||||
<span>{{item?.weight ? item?.weight + '吨/' : '' }}</span>
|
|
||||||
<span>{{item?.volume ? item?.volume + '方/' : '' }}</span>
|
|
||||||
<span>{{item?.goodsNumber ? item?.goodsNumber + '吨' : '' }}</span>
|
|
||||||
</div>
|
|
||||||
</ng-template>
|
|
||||||
<ng-template st-row="mybidDetailInfo" let-item let-index="index">
|
|
||||||
<div *ngIf="item.mybidDetailInfo?.length > 0">
|
|
||||||
<p *ngFor="let data of item.mybidDetailInfo">
|
|
||||||
{{ data.expenseName }}:{{ data.price | currency }}
|
|
||||||
<span *ngIf="data.paymentStatusLabel" style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</ng-template>
|
|
||||||
</st>
|
</st>
|
||||||
</div>
|
</div>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<ng-template #extraTemplate>
|
<ng-template #extraTemplate>
|
||||||
<div>
|
<div>
|
||||||
<button nz-button nzType="primary" (click)="changeOrder()">
|
<button nz-button nzType="primary" (click)="changeOrder()"> 保险配置 </button>
|
||||||
保险配置
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|||||||
@ -50,11 +50,11 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
tabs = {
|
tabs = {
|
||||||
cancelQuantity: 0,
|
totalCount: 0,
|
||||||
receivedQuantity: 0,
|
receivedQuantity: 0,
|
||||||
stayQuantity: 0,
|
stayQuantity: 0,
|
||||||
GoingQuantity: 0,
|
GoingQuantity: 0,
|
||||||
totalCount: 0
|
cancelQuantity: 0
|
||||||
};
|
};
|
||||||
constructor(
|
constructor(
|
||||||
public service: InsuranceManagementService,
|
public service: InsuranceManagementService,
|
||||||
@ -69,7 +69,7 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
get reqParams() {
|
get reqParams() {
|
||||||
const a: any = {};
|
const a: any = {};
|
||||||
if (this.resourceStatus) {
|
if (this.resourceStatus) {
|
||||||
a.billStatus = this.resourceStatus;
|
a.insureStatus = this.resourceStatus;
|
||||||
}
|
}
|
||||||
const params: any = Object.assign({}, this.sf?.value || {});
|
const params: any = Object.assign({}, this.sf?.value || {});
|
||||||
delete params._$expand;
|
delete params._$expand;
|
||||||
@ -79,7 +79,15 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
createTime: {
|
createTime: {
|
||||||
start: this.sf?.value?.createTime?.[0] || '',
|
start: this.sf?.value?.createTime?.[0] || '',
|
||||||
end: this.sf?.value?.createTime?.[1] || ''
|
end: this.sf?.value?.createTime?.[1] || ''
|
||||||
}
|
},
|
||||||
|
recordTime: {
|
||||||
|
start: this.sf?.value?.recordTime?.[0] || '',
|
||||||
|
end: this.sf?.value?.recordTime?.[1] || ''
|
||||||
|
},
|
||||||
|
insureTime: {
|
||||||
|
start: this.sf?.value?.insureTime?.[0] || '',
|
||||||
|
end: this.sf?.value?.insureTime?.[1] || ''
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
get selectedRows() {
|
get selectedRows() {
|
||||||
@ -91,36 +99,32 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
getGoodsSourceStatistical() {
|
getGoodsSourceStatistical() {
|
||||||
this.tabs = {
|
this.tabs = {
|
||||||
cancelQuantity: 0,
|
totalCount: 0,
|
||||||
receivedQuantity: 0,
|
receivedQuantity: 0,
|
||||||
stayQuantity: 0,
|
stayQuantity: 0,
|
||||||
GoingQuantity: 0,
|
GoingQuantity: 0,
|
||||||
totalCount: 0
|
cancelQuantity: 0
|
||||||
};
|
};
|
||||||
const params: any = Object.assign({}, this.reqParams || {});
|
const params: any = Object.assign({}, this.reqParams || {});
|
||||||
delete params.billStatus
|
delete params.insureStatus;
|
||||||
// this.service.request(this.service.$api_getBulkStatistical, params).subscribe((res: any) => {
|
this.service.request(this.service.$api_listStatisticalStatus, params).subscribe((res: any) => {
|
||||||
// if (res) {
|
if (res) {
|
||||||
// let totalCount = 0;
|
let totalCount = 0;
|
||||||
// res.forEach((element: any) => {
|
res.forEach((element: any) => {
|
||||||
// if (element.billStatusLabel === '待发车') {
|
if (element.insureStatusLabel === '待投保') {
|
||||||
// this.tabs.stayQuantity = element.quantity;
|
this.tabs.receivedQuantity = element.quantity;
|
||||||
// } else if (element.billStatusLabel === '待接单') {
|
} else if (element.insureStatusLabel === '已投保') {
|
||||||
// this.tabs.receivedQuantity = element.quantity;
|
this.tabs.stayQuantity = element.quantity;
|
||||||
// } else if (element.billStatusLabel === '待签收') {
|
} else if (element.insureStatusLabel === '投保失败') {
|
||||||
// this.tabs.signQuantity = element.quantity;
|
this.tabs.GoingQuantity = element.quantity;
|
||||||
// } else if (element.billStatusLabel === '已完成') {
|
} else if (element.insureStatusLabel === '已取消') {
|
||||||
// this.tabs.compolatelQuantity = element.quantity;
|
this.tabs.cancelQuantity = element.quantity;
|
||||||
// } else if (element.billStatusLabel === '已取消') {
|
}
|
||||||
// this.tabs.cancelQuantity = element.quantity;
|
totalCount += element.quantity;
|
||||||
// } else if (element.billStatusLabel === '运输中') {
|
});
|
||||||
// this.tabs.GoingQuantity = element.quantity;
|
this.tabs.totalCount = totalCount;
|
||||||
// }
|
}
|
||||||
// totalCount += element.quantity;
|
});
|
||||||
// });
|
|
||||||
// this.tabs.totalCount = totalCount;
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
selectChange(e: number) {
|
selectChange(e: number) {
|
||||||
this.resourceStatus = e;
|
this.resourceStatus = e;
|
||||||
@ -142,6 +146,10 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
this.schema = {
|
this.schema = {
|
||||||
properties: {
|
properties: {
|
||||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||||
|
insureCode: {
|
||||||
|
type: 'string',
|
||||||
|
title: '投保编号'
|
||||||
|
},
|
||||||
billCode: {
|
billCode: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '订单号'
|
title: '订单号'
|
||||||
@ -150,6 +158,45 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货源编号'
|
title: '货源编号'
|
||||||
},
|
},
|
||||||
|
policyNo: {
|
||||||
|
type: 'string',
|
||||||
|
title: '保单号',
|
||||||
|
ui: {
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
insureType: {
|
||||||
|
title: '类型',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
widget: 'dict-select',
|
||||||
|
params: { dictKey: 'insure:type' },
|
||||||
|
containsAllLable: true,
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
} as SFSelectWidgetSchema
|
||||||
|
},
|
||||||
|
startAddress: {
|
||||||
|
type: 'string',
|
||||||
|
title: '始发地',
|
||||||
|
ui: {
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
endAddress: {
|
||||||
|
type: 'string',
|
||||||
|
title: '目的地',
|
||||||
|
ui: {
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
shipperAppUserId: {
|
shipperAppUserId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货主',
|
title: '货主',
|
||||||
@ -159,6 +206,9 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
searchDebounceTime: 300,
|
searchDebounceTime: 300,
|
||||||
searchLoadingText: '搜索中...',
|
searchLoadingText: '搜索中...',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
},
|
||||||
onSearch: (q: any) => {
|
onSearch: (q: any) => {
|
||||||
if (!!q) {
|
if (!!q) {
|
||||||
return this.service
|
return this.service
|
||||||
@ -185,24 +235,7 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
loadingPlace: {
|
|
||||||
type: 'string',
|
|
||||||
title: '装货地',
|
|
||||||
ui: {
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
dischargePlace: {
|
|
||||||
type: 'string',
|
|
||||||
title: '卸货地',
|
|
||||||
ui: {
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
driverName: {
|
driverName: {
|
||||||
title: '承运司机',
|
title: '承运司机',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -221,56 +254,18 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
carCaptainName: {
|
insureStatus: {
|
||||||
title: '车队长',
|
title: '投保状态',
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
paymentStatus: {
|
|
||||||
title: '支付状态',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'overall:payment:status' },
|
params: { dictKey: 'insure:status' },
|
||||||
containsAllLable: true,
|
containsAllLable: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
createTime: {
|
|
||||||
title: '创建时间',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
widget: 'date',
|
|
||||||
mode: 'range',
|
|
||||||
format: 'yyyy-MM-dd',
|
|
||||||
allowClear: true,
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
} as SFDateWidgetSchema
|
|
||||||
},
|
|
||||||
riskStatus: {
|
|
||||||
type: 'string',
|
|
||||||
title: '是否风险单',
|
|
||||||
enum: [
|
|
||||||
{ label: '全部', value: '' },
|
|
||||||
{ label: '是', value: '3' },
|
|
||||||
{ label: '否', value: '1' }
|
|
||||||
],
|
|
||||||
ui: {
|
|
||||||
widget: 'select',
|
|
||||||
placeholder: '请选择',
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
enterpriseInfoId: {
|
enterpriseInfoId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
@ -284,39 +279,52 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
serviceType: {
|
insureTime: {
|
||||||
title: '服务类型',
|
title: '投保时间',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'date',
|
||||||
params: { dictKey: 'service:type' },
|
mode: 'range',
|
||||||
containsAllLable: true,
|
format: 'yyyy-MM-dd',
|
||||||
|
allowClear: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
},
|
},
|
||||||
settlementBasis: {
|
createTime: {
|
||||||
title: '结算依据',
|
title: '创建时间',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'date',
|
||||||
containsAllLable: true,
|
mode: 'range',
|
||||||
params: { dictKey: 'goodresource:settlement:type' },
|
format: 'yyyy-MM-dd',
|
||||||
containAllLable: true,
|
allowClear: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
}
|
},
|
||||||
|
recordTime: {
|
||||||
|
title: '录单时间',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
widget: 'date',
|
||||||
|
mode: 'range',
|
||||||
|
format: 'yyyy-MM-dd',
|
||||||
|
allowClear: true,
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
} as SFDateWidgetSchema
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
type: 'object'
|
type: 'object'
|
||||||
};
|
};
|
||||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始化数据列表
|
* 初始化数据列表
|
||||||
*/
|
*/
|
||||||
@ -334,17 +342,17 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
title: '保单号',
|
title: '保单号',
|
||||||
width: '250px',
|
width: '250px',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
render: 'policyNo'
|
index: 'policyNo'
|
||||||
},
|
},
|
||||||
{ title: '类型', index: 'insureTypeLabel', width: '220px', className: 'text-left' },
|
{ title: '类型', index: 'insureTypeLabel', width: '220px', className: 'text-left' },
|
||||||
{ title: '始发地', index: 'startAddress', width: '220px', className: 'text-left' },
|
{ title: '始发地', index: 'startAddress', width: '220px', className: 'text-left' },
|
||||||
{ title: '目的地', index: 'endAddress', width: '220px', className: 'text-left' },
|
{ title: '目的地', index: 'endAddress', width: '220px', className: 'text-left' },
|
||||||
{ title: '距离', index: 'distance', width: '180px', className: 'text-left' },
|
{ title: '距离', render: 'distance', width: '180px', className: 'text-left' },
|
||||||
{ title: '保额(元)', index: 'resourceCode', width: '180px', className: 'text-left' },
|
{ title: '保额(元)', render: 'insureAmount', width: '180px', className: 'text-right' },
|
||||||
{ title: '保费(元)', render: 'premium', width: '180px', className: 'text-left' },
|
{ title: '保费(元)', render: 'premium', width: '180px', className: 'text-right' },
|
||||||
{
|
{
|
||||||
title: '实际保费(元)',
|
title: '实际保费(元)',
|
||||||
className: 'text-left',
|
className: 'text-right',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
render: 'practicalPremium'
|
render: 'practicalPremium'
|
||||||
},
|
},
|
||||||
@ -355,15 +363,15 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
render: 'goodsName'
|
render: 'goodsName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '车牌号',
|
title: '承运司机',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
width: '180px',
|
width: '250px',
|
||||||
render: 'driverName'
|
render: 'driverName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '关联订单号',
|
title: '关联订单号',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
index: 'goodsNumber',
|
render: 'goodsNumber',
|
||||||
width: '180px'
|
width: '180px'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -376,19 +384,19 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
width: '250px',
|
width: '250px',
|
||||||
index: 'enterpriseInfoName',
|
index: 'enterpriseInfoName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '货主',
|
title: '货主',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
index: 'shipperAppUserName',
|
index: 'shipperAppUserName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
render: 'enterpriseProjectName'
|
index: 'enterpriseProjectName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '投保时间',
|
title: '投保时间',
|
||||||
@ -419,6 +427,7 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
index: 'processMessage'
|
index: 'processMessage'
|
||||||
|
// processResult=2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
@ -428,19 +437,19 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: '再次投保',
|
text: '再次投保',
|
||||||
click: _record => console.log(''),
|
click: _record => this.retreatNext(_record)
|
||||||
// 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(''),
|
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 => this.changeOrder(),
|
click: _record => this.retreatPrice(_record)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -469,8 +478,39 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
this._$expand = false;
|
this._$expand = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改订单
|
// 退保费
|
||||||
changeOrder() {
|
retreatPrice(value: any) {
|
||||||
this.router.navigate(['/insurance-management/list-set', 1]);
|
this.modal.warning({
|
||||||
|
nzTitle: '确认退还保费吗?',
|
||||||
|
nzClosable: true,
|
||||||
|
nzContent: '退还后不可撤销,请谨慎操作!',
|
||||||
|
nzCancelText: '取消',
|
||||||
|
nzOnOk: () => {
|
||||||
|
this.service.request(this.service.$api_del_many, [value.id]).subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.service.msgSrv.success('删除菜单成功');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
// 再次投保
|
||||||
|
retreatNext(value: any) {
|
||||||
|
this.modal.warning({
|
||||||
|
nzTitle: '确认再次投保吗?',
|
||||||
|
nzClosable: true,
|
||||||
|
nzCancelText: '取消',
|
||||||
|
nzOnOk: () => {
|
||||||
|
this.service.request(this.service.$api_del_many, [value.id]).subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.service.msgSrv.success('删除菜单成功');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 保险配置
|
||||||
|
changeOrder() {
|
||||||
|
this.router.navigate(['/insurance-management/list-set', 1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,6 +21,8 @@ export class InsuranceManagementService extends ShipperBaseService {
|
|||||||
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||||
// 查询保险费信息表
|
// 查询保险费信息表
|
||||||
public $api_premiumInfo_list = '/api/sdc/premiumInfo/list/page';
|
public $api_premiumInfo_list = '/api/sdc/premiumInfo/list/page';
|
||||||
|
// 统计保险单状态数量
|
||||||
|
public $api_listStatisticalStatus = '/api/sdc/premiumInfo/listStatisticalStatus';
|
||||||
|
|
||||||
|
|
||||||
// 保险费公司认证
|
// 保险费公司认证
|
||||||
|
|||||||
Reference in New Issue
Block a user