Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -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-02-10 10:40:17
|
* @LastEditTime : 2022-02-14 13:29: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.
|
||||||
-->
|
-->
|
||||||
@ -60,27 +60,24 @@
|
|||||||
[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="freightPrice" let-item let-index="index">
|
<ng-template st-row="resourceCode" let-item let-index="index">
|
||||||
{{ item.freightPrice | currency}}
|
{{ item.resourceCode | currency}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="loadingTime" let-item let-index="index">
|
<ng-template st-row="practicalPremium" let-item let-index="index">
|
||||||
<div *ngIf="item?.loadPlanTime">装 | {{item?.loadPlanTime}}</div>
|
{{ item.practicalPremium | currency}}
|
||||||
<div *ngIf="item?.unloadPlanTime">卸 | {{item?.unloadPlanTime}}</div>
|
</ng-template>
|
||||||
|
<ng-template st-row="premium" let-item let-index="index">
|
||||||
|
{{ item.premium | currency}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="driverName" let-item let-index="index">
|
<ng-template st-row="driverName" let-item let-index="index">
|
||||||
<div>
|
<div>
|
||||||
{{item?.driverName}}/{{item?.driverPhone}}/{{item?.carNo}}
|
{{item?.driverName}}/{{item?.driverTelephone}}/{{item?.carNo}}
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="payeeName" let-item let-index="index">
|
<ng-template st-row="insureCode" let-item let-index="index">
|
||||||
|
<div>{{item.insureCode}}</div>
|
||||||
<div>
|
<div>
|
||||||
{{item?.payeeName}}/{{item?.payeePhone}}
|
<span>{{item?.insureStatusLabel}}</span>
|
||||||
</div>
|
|
||||||
</ng-template>
|
|
||||||
<ng-template st-row="billCode" let-item let-index="index">
|
|
||||||
<a [routerLink]="'/order-management/bulk-detail/'+item.id">{{item.billCode}}</a>
|
|
||||||
<div>
|
|
||||||
<span>{{item?.billStatusLabel}}</span>
|
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="goodsName" let-item let-index="index">
|
<ng-template st-row="goodsName" let-item let-index="index">
|
||||||
@ -92,7 +89,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="mybidDetailInfo" let-item let-index="index">
|
<ng-template st-row="mybidDetailInfo" let-item let-index="index">
|
||||||
<div *ngIf="item.mybidDetailInfo.length > 0">
|
<div *ngIf="item.mybidDetailInfo?.length > 0">
|
||||||
<p *ngFor="let data of item.mybidDetailInfo">
|
<p *ngFor="let data of item.mybidDetailInfo">
|
||||||
{{ data.expenseName }}:{{ data.price | currency }}
|
{{ data.expenseName }}:{{ data.price | currency }}
|
||||||
<span *ngIf="data.paymentStatusLabel" style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
|
<span *ngIf="data.paymentStatusLabel" style="color: #f59a63">{{ data.paymentStatusLabel }}</span>
|
||||||
|
|||||||
@ -328,25 +328,25 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
width: '180px',
|
width: '180px',
|
||||||
fixed: 'left',
|
fixed: 'left',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
render: 'billCode'
|
render: 'insureCode'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '保单号',
|
title: '保单号',
|
||||||
width: '250px',
|
width: '250px',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
render: 'mybidDetailInfo'
|
render: 'policyNo'
|
||||||
},
|
},
|
||||||
{ title: '类型', index: 'enterpriseInfoName', width: '220px', className: 'text-left' },
|
{ title: '类型', index: 'insureTypeLabel', width: '220px', className: 'text-left' },
|
||||||
{ title: '始发地', index: 'shipperAppUserName', width: '220px', className: 'text-left' },
|
{ title: '始发地', index: 'startAddress', width: '220px', className: 'text-left' },
|
||||||
{ title: '目的地', index: 'enterpriseProjectName', width: '220px', className: 'text-left' },
|
{ title: '目的地', index: 'endAddress', width: '220px', className: 'text-left' },
|
||||||
{ title: '距离', index: 'wayBillCode', width: '180px', className: 'text-left' },
|
{ title: '距离', index: 'distance', 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: '保费(元)', render: 'premium', width: '180px', className: 'text-left' },
|
||||||
{
|
{
|
||||||
title: '实际保费(元)',
|
title: '实际保费(元)',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
index: 'unloadingAddressArr'
|
render: 'practicalPremium'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '货物信息',
|
title: '货物信息',
|
||||||
@ -358,7 +358,7 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
title: '车牌号',
|
title: '车牌号',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
render: 'freightPrice'
|
render: 'driverName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '关联订单号',
|
title: '关联订单号',
|
||||||
@ -369,46 +369,44 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
title: '货源编号',
|
title: '货源编号',
|
||||||
className: 'text-right',
|
className: 'text-right',
|
||||||
index: 'settlementWeight',
|
index: 'resourceCode',
|
||||||
width: '150px'
|
width: '150px'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
width: '250px',
|
width: '250px',
|
||||||
index: 'driverName',
|
index: 'enterpriseInfoName',
|
||||||
render: 'driverName'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '货主',
|
title: '货主',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
index: 'payeeName',
|
index: 'shipperAppUserName',
|
||||||
render: 'payeeName'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
render: 'loadingTime'
|
render: 'enterpriseProjectName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '投保时间',
|
title: '投保时间',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
index: 'createTime'
|
index: 'insureTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '生效时间',
|
title: '生效时间',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
index: 'createTime'
|
index: 'effectTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '录单时间',
|
title: '录单时间',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
index: 'createTime'
|
index: 'recordTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@ -420,7 +418,7 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
title: '失败原因',
|
title: '失败原因',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
index: 'createTime'
|
index: 'processMessage'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2021-12-23 13:39:58
|
* @Date : 2021-12-23 13:39:58
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-01-20 20:28:15
|
* @LastEditTime : 2022-02-14 10:33:38
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
|
|||||||
@ -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-02-11 15:36:29
|
* @LastEditTime : 2022-02-14 14:39:47
|
||||||
* @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.
|
||||||
-->
|
-->
|
||||||
@ -55,15 +55,6 @@
|
|||||||
[loading]="service.http.loading"
|
[loading]="service.http.loading"
|
||||||
(change)="stChange($event)"
|
(change)="stChange($event)"
|
||||||
>
|
>
|
||||||
<ng-template st-row="electronicInvoiceAccount" let-item let-index="index">
|
|
||||||
<a href="javascript:;" (click)="setMakeInvoice()">设置</a>
|
|
||||||
</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">
|
<ng-template st-row="bankName" let-item let-index="index">
|
||||||
<a href="javascript:;" (click)="setMakeInvoice()">开通子账户</a>
|
<a href="javascript:;" (click)="setMakeInvoice()">开通子账户</a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|||||||
@ -45,24 +45,30 @@ export class NetworkFreightComponent implements OnInit {
|
|||||||
|
|
||||||
index: 'taxCode' },
|
index: 'taxCode' },
|
||||||
{
|
{
|
||||||
title: '发票税率',
|
title: '成立日期',
|
||||||
width: '150px',
|
width: '150px',
|
||||||
|
index: 'createTime'
|
||||||
index: 'invoiceTaxRate' },
|
},
|
||||||
{
|
{
|
||||||
title: '云开票',
|
title: '成本费率',
|
||||||
width: '150px',
|
width: '150px',
|
||||||
render: 'electronicInvoiceAccount'
|
render: 'electronicInvoiceAccount'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'e签宝',
|
title: '附加费率',
|
||||||
width: '150px',
|
width: '150px',
|
||||||
render: 'etcAccount'
|
render: 'etcAccount'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '云开票',
|
||||||
|
width: '150px',
|
||||||
|
render: 'electronicContractAccount'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '保险',
|
title: '保险',
|
||||||
width: '150px',
|
width: '150px',
|
||||||
render: 'electronicContractAccount' },
|
render: 'electronicContractAccount'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '平安银行',
|
title: '平安银行',
|
||||||
width: '150px',
|
width: '150px',
|
||||||
@ -72,36 +78,52 @@ export class NetworkFreightComponent implements OnInit {
|
|||||||
width: '150px',
|
width: '150px',
|
||||||
render: 'virtualAccount'
|
render: 'virtualAccount'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '平安电子账户',
|
||||||
|
width: '150px',
|
||||||
|
render: 'virtualAccount'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '浦发电子账户',
|
||||||
|
width: '150px',
|
||||||
|
render: 'virtualAccount'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '开票开关',
|
||||||
|
width: '150px',
|
||||||
|
render: 'virtualAccount'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
width: '',
|
width: '110px',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: '银行设置 ',
|
text: '基础设置',
|
||||||
|
click: item => this.settingAction(item)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: '财务设置',
|
||||||
click: item => this.roleAction(item, 2)
|
click: item => this.roleAction(item, 2)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '系统配置 ',
|
text: '充值账户',
|
||||||
click: item => this.roleAction(item, 2)
|
click: item => this.settingPay(item)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '银行卡管理',
|
text: '应用设置',
|
||||||
click: item => this.roleAction(item, 2)
|
click: item => this.settingApp(item)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: '系统配置',
|
||||||
|
click: item => this.ticket(item)
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// text: '票务设置',
|
|
||||||
// click: item => this.ticket(item)
|
|
||||||
// },
|
|
||||||
// {
|
// {
|
||||||
// text: '合同设置',
|
// text: '合同设置',
|
||||||
// click: item => this.roleAction(item, 2)
|
// click: item => this.roleAction(item, 2)
|
||||||
// },
|
// },
|
||||||
{
|
|
||||||
text: '基础设置 ',
|
|
||||||
click: item => this.settingAction(item)
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -329,7 +351,7 @@ export class NetworkFreightComponent implements OnInit {
|
|||||||
nzOnOk: () => {}
|
nzOnOk: () => {}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// 基础设置
|
||||||
settingAction(item?: any) {
|
settingAction(item?: any) {
|
||||||
this.nzModalService.create({
|
this.nzModalService.create({
|
||||||
nzTitle: '基础设置',
|
nzTitle: '基础设置',
|
||||||
@ -337,7 +359,35 @@ export class NetworkFreightComponent implements OnInit {
|
|||||||
nzWidth: 900,
|
nzWidth: 900,
|
||||||
nzComponentParams: {
|
nzComponentParams: {
|
||||||
extendType: '1',
|
extendType: '1',
|
||||||
businessId: item.id
|
businessId: item.id,
|
||||||
|
},
|
||||||
|
nzFooter: null
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 应用设置
|
||||||
|
settingApp(item?: any) {
|
||||||
|
this.nzModalService.create({
|
||||||
|
nzTitle: '基础设置',
|
||||||
|
nzContent: DynamicSettingModalComponent,
|
||||||
|
nzWidth: 900,
|
||||||
|
nzComponentParams: {
|
||||||
|
extendType: '1',
|
||||||
|
businessId: item.id,
|
||||||
|
configvalue: 'app'
|
||||||
|
},
|
||||||
|
nzFooter: null
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 重置账户
|
||||||
|
settingPay(item?: any) {
|
||||||
|
this.nzModalService.create({
|
||||||
|
nzTitle: '基础设置',
|
||||||
|
nzContent: DynamicSettingModalComponent,
|
||||||
|
nzWidth: 900,
|
||||||
|
nzComponentParams: {
|
||||||
|
extendType: '1',
|
||||||
|
businessId: item.id,
|
||||||
|
configvalue: 'bankcard'
|
||||||
},
|
},
|
||||||
nzFooter: null
|
nzFooter: null
|
||||||
});
|
});
|
||||||
@ -411,16 +461,16 @@ export class NetworkFreightComponent implements OnInit {
|
|||||||
getRegionDetailByCode(regionCode: any) {
|
getRegionDetailByCode(regionCode: any) {
|
||||||
return this.service.request(this.service.$api_get_region_by_code, { regionCode });
|
return this.service.request(this.service.$api_get_region_by_code, { regionCode });
|
||||||
}
|
}
|
||||||
setMakeInvoice2(item:any) {
|
// setMakeInvoice2(item:any) {
|
||||||
this.nzModalService.create({
|
// this.nzModalService.create({
|
||||||
nzTitle: '基础设置',
|
// nzTitle: '基础设置',
|
||||||
nzContent: SinglepageSettingModalComponent,
|
// nzContent: SinglepageSettingModalComponent,
|
||||||
nzWidth: 900,
|
// nzWidth: 900,
|
||||||
nzComponentParams: {
|
// nzComponentParams: {
|
||||||
extendType: '1',
|
// extendType: '1',
|
||||||
businessId: item.id
|
// businessId: item.id
|
||||||
},
|
// },
|
||||||
nzFooter: null
|
// nzFooter: null
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -209,12 +209,12 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
|||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
buttons: [
|
buttons: [{
|
||||||
{ text: '审核',
|
text: '审核',
|
||||||
click: _record => this.ViewAdimin(_record), iif: (item: any) => item.approvalStatus === 10,
|
click: _record => this.ViewAdimin(_record),
|
||||||
acl: { ability: ['USERCENTER-FREIGHT-ENTERPRISE-adminAudit'] },
|
iif: (item: any) => item.approvalStatus === 10,
|
||||||
}
|
// acl: { ability: ['USERCENTER-FREIGHT-ENTERPRISE-view'] },
|
||||||
]
|
}]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
<!--
|
||||||
|
* @Description :
|
||||||
|
* @Version : 1.0
|
||||||
|
* @Author : Shiming
|
||||||
|
* @Date : 2022-01-25 16:03:45
|
||||||
|
* @LastEditors : Shiming
|
||||||
|
* @LastEditTime : 2022-02-14 16:18:02
|
||||||
|
* @FilePath : \\tms-obc-web\\src\\app\\shared\\components\\dynamic-setting\\dynamic-setting-h5\\dynamic-setting-h5.component.html
|
||||||
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
|
-->
|
||||||
<nz-card [nzLoading]="service.http.loading">
|
<nz-card [nzLoading]="service.http.loading">
|
||||||
<div nz-row [nzGutter]="8">
|
<div nz-row [nzGutter]="8">
|
||||||
<div nz-col [nzSpan]="tabSpan">
|
<div nz-col [nzSpan]="tabSpan">
|
||||||
@ -62,8 +72,13 @@
|
|||||||
<ng-container *ngSwitchCase="7">
|
<ng-container *ngSwitchCase="7">
|
||||||
<app-freight-table></app-freight-table>
|
<app-freight-table></app-freight-table>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<ng-container *ngSwitchCase="8">
|
||||||
|
<nz-input-group style="width: 155px;"
|
||||||
|
class="ml-md mr-xl">
|
||||||
|
<input nz-input placeholder="请输入" [(ngModel)]="item.itemValue" />
|
||||||
|
</nz-input-group>
|
||||||
|
</ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
</se>
|
</se>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* @Description :
|
||||||
|
* @Version : 1.0
|
||||||
|
* @Author : Shiming
|
||||||
|
* @Date : 2022-01-25 16:03:45
|
||||||
|
* @LastEditors : Shiming
|
||||||
|
* @LastEditTime : 2022-02-14 14:54:08
|
||||||
|
* @FilePath : \\tms-obc-web\\src\\app\\shared\\components\\dynamic-setting\\dynamic-setting-h5\\dynamic-setting-h5.component.ts
|
||||||
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
|
*/
|
||||||
import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core';
|
import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core';
|
||||||
import { BaseService } from '@shared';
|
import { BaseService } from '@shared';
|
||||||
|
|
||||||
@ -29,7 +39,9 @@ export class DynamicSettingH5Component implements OnInit {
|
|||||||
|
|
||||||
constructor(public service: BaseService) {}
|
constructor(public service: BaseService) {}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {
|
||||||
|
console.log(this.tabs)
|
||||||
|
}
|
||||||
|
|
||||||
changeType(type: any): void {
|
changeType(type: any): void {
|
||||||
this.selectedTab = type;
|
this.selectedTab = type;
|
||||||
@ -42,7 +54,7 @@ export class DynamicSettingH5Component implements OnInit {
|
|||||||
if (this.configList?.length < 0) {
|
if (this.configList?.length < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(this.configList)
|
||||||
let params = [...this.configList];
|
let params = [...this.configList];
|
||||||
params = params.map((item: any) => {
|
params = params.map((item: any) => {
|
||||||
if (JSONTYPE.has(item.itemType)) {
|
if (JSONTYPE.has(item.itemType)) {
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* @Description :
|
||||||
|
* @Version : 1.0
|
||||||
|
* @Author : Shiming
|
||||||
|
* @Date : 2022-01-10 16:06:17
|
||||||
|
* @LastEditors : Shiming
|
||||||
|
* @LastEditTime : 2022-02-14 16:19:54
|
||||||
|
* @FilePath : \\tms-obc-web\\src\\app\\shared\\components\\dynamic-setting\\dynamic-setting-modal\\dynamic-setting-modal.component.ts
|
||||||
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
|
*/
|
||||||
import { Component, Input, OnInit } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
import { ModalHelper } from '@delon/theme';
|
import { ModalHelper } from '@delon/theme';
|
||||||
import { NzModalRef } from 'ng-zorro-antd/modal';
|
import { NzModalRef } from 'ng-zorro-antd/modal';
|
||||||
@ -11,30 +21,37 @@ import { BaseService } from 'src/app/shared/services';
|
|||||||
export class DynamicSettingModalComponent implements OnInit {
|
export class DynamicSettingModalComponent implements OnInit {
|
||||||
tabs: any[] = [];
|
tabs: any[] = [];
|
||||||
selectedTab: any = null;
|
selectedTab: any = null;
|
||||||
|
configFullKey = 'sys.config'
|
||||||
configList: any = [];
|
configList: any = [];
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
extendType!: string;
|
extendType!: string;
|
||||||
@Input()
|
@Input()
|
||||||
businessId!: string;
|
businessId!: string;
|
||||||
|
@Input()
|
||||||
|
configvalue!: string;
|
||||||
|
|
||||||
constructor(public service: BaseService, private modalHelp: NzModalRef) {}
|
constructor(public service: BaseService, private modalHelp: NzModalRef) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
if(this.configvalue) {
|
||||||
|
console.log(this.configvalue)
|
||||||
|
this.configFullKey = this.configvalue
|
||||||
|
}
|
||||||
this.getTypeList();
|
this.getTypeList();
|
||||||
}
|
}
|
||||||
|
|
||||||
getTypeList() {
|
getTypeList() {
|
||||||
|
|
||||||
this.service
|
this.service
|
||||||
.request('/api/mdc/pbc/sysConfigItemExtend/getSysConfigExtend', {
|
.request('/api/mdc/pbc/sysConfigItemExtend/getSysConfigExtend', {
|
||||||
configFullKey: 'sys.config',
|
configFullKey: this.configFullKey,
|
||||||
extendType: this.extendType,
|
extendType: this.extendType,
|
||||||
businessId: this.businessId
|
businessId: this.businessId
|
||||||
})
|
})
|
||||||
.subscribe((res: Array<any>) => {
|
.subscribe((res: Array<any>) => {
|
||||||
if (res?.length > 0) {
|
if (res?.length > 0) {
|
||||||
const typeData = res.find(config => config.configFullKey === 'sys.config');
|
const typeData = res.find(config => config.configFullKey === this.configFullKey);
|
||||||
if (typeData) {
|
if (typeData) {
|
||||||
this.tabs = typeData.children;
|
this.tabs = typeData.children;
|
||||||
this.selectedTab = typeData.children[0];
|
this.selectedTab = typeData.children[0];
|
||||||
@ -78,12 +95,13 @@ export class DynamicSettingModalComponent implements OnInit {
|
|||||||
itemData: item.extendItemData || item.itemData,
|
itemData: item.extendItemData || item.itemData,
|
||||||
itemValue: item.extendItemValue || item.itemValue
|
itemValue: item.extendItemValue || item.itemValue
|
||||||
}))
|
}))
|
||||||
.map(item => ({
|
.map(item => (
|
||||||
|
{
|
||||||
...item,
|
...item,
|
||||||
remark: item.remark ? JSON.parse(item.remark) : null,
|
remark: item?.remark ? JSON.parse(item?.remark) : null,
|
||||||
extend: item.extend ? JSON.parse(item.extend) : [],
|
extend: item?.extend ? JSON.parse(item?.extend) : [],
|
||||||
// itemData: item.itemData ? JSON.parse(item.itemData) : item.itemData,
|
// itemData: item.itemData ? JSON.parse(item.itemData) : item.itemData,
|
||||||
itemValue: item.itemValue ? JSON.parse(item.itemValue) : item.itemValue
|
itemValue: item?.itemValue ? item?.itemType === 1? JSON.parse(item?.itemValue) : item?.itemValue : item?.itemValue
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
@ -153,6 +153,10 @@ export class InsuranceTableComponent implements OnInit {
|
|||||||
console.log(this.data);
|
console.log(this.data);
|
||||||
console.log(this.minInsurancePrice);
|
console.log(this.minInsurancePrice);
|
||||||
console.log(this.sf.value);
|
console.log(this.sf.value);
|
||||||
|
if(!this.minInsurancePrice) {
|
||||||
|
this.service.msgSrv.error('必填项为空!')
|
||||||
|
return
|
||||||
|
}
|
||||||
let params= {
|
let params= {
|
||||||
minInsurancePrice: this.minInsurancePrice,
|
minInsurancePrice: this.minInsurancePrice,
|
||||||
insuranceConfigDTOS: this.data
|
insuranceConfigDTOS: this.data
|
||||||
|
|||||||
Reference in New Issue
Block a user