车辆对接
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2022-01-05 11:01:55
|
* @Date: 2022-01-05 11:01:55
|
||||||
* @LastEditTime: 2022-01-05 13:47:31
|
* @LastEditTime: 2022-01-06 10:23:19
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.html
|
||||||
@ -30,14 +30,14 @@
|
|||||||
|
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<div nz-col nzSpan="20" style="overflow: scroll">
|
<div nz-col nzSpan="20" style="overflow: scroll">
|
||||||
<nz-card class="card-height" *ngIf="isUpdate">
|
<nz-card class="card-height" *ngIf="!isUpdate">
|
||||||
<div class="mb-md">
|
<div class="mb-md">
|
||||||
<div></div>
|
<div></div>
|
||||||
</div>
|
</div>
|
||||||
<div [innerHTML]="templateHTML | safehtml"></div>
|
<div [innerHTML]="templateHTML | safehtml"></div>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<nz-card class="card-height" *ngIf="!isUpdate">
|
<nz-card class="card-height" *ngIf="isUpdate">
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<div nz-col nzSpan="24">
|
<div nz-col nzSpan="24">
|
||||||
<input nz-input placeholder="请输入合同标题" [(ngModel)]="title" />
|
<input nz-input placeholder="请输入合同标题" [(ngModel)]="title" />
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2022-01-05 11:01:55
|
* @Date: 2022-01-05 11:01:55
|
||||||
* @LastEditTime: 2022-01-05 13:51:44
|
* @LastEditTime: 2022-01-06 10:29:11
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.ts
|
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.ts
|
||||||
@ -47,14 +47,18 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.initSF()
|
this.initSF()
|
||||||
this.initSF2()
|
this.initSF2()
|
||||||
if(this.route.snapshot.queryParams.status == 3) {
|
if(this.route.snapshot.queryParams.status == 1) {
|
||||||
console.log('进来了吗')
|
console.log('进来了吗')
|
||||||
// 新建
|
// 新建
|
||||||
this.isUpdate = false;
|
this.isUpdate = true;
|
||||||
} else {
|
} else if(this.route.snapshot.queryParams.status == 2) {
|
||||||
// 编辑
|
// 编辑
|
||||||
this.textStatus = '编辑模板';
|
this.textStatus = '编辑模板';
|
||||||
this.isUpdate =true;
|
this.isUpdate =false;
|
||||||
|
}else if(this.route.snapshot.queryParams.status == 3) {
|
||||||
|
// 编辑
|
||||||
|
this.textStatus = '查看模板';
|
||||||
|
this.isUpdate =false;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(this.route.snapshot.params.id)
|
console.log(this.route.snapshot.params.id)
|
||||||
@ -66,13 +70,13 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
initSF() {
|
initSF() {
|
||||||
this.schema = {
|
this.schema = {
|
||||||
properties: {
|
properties: {
|
||||||
phon: {
|
templateName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '模版名称',
|
title: '模版名称',
|
||||||
},
|
},
|
||||||
stateReceipt: {
|
templateType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '是否回单',
|
title: '模版类型',
|
||||||
enum: [
|
enum: [
|
||||||
{ label: '需要', value: true },
|
{ label: '需要', value: true },
|
||||||
{ label: '不需要', value: false }
|
{ label: '不需要', value: false }
|
||||||
@ -83,14 +87,14 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
placeholder: '请选择'
|
placeholder: '请选择'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
enterpriseProjectId: {
|
contractType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '项目',
|
title: '单据类型',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
stateReceipt: value => value === true
|
templateType: value => value === true
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
@ -106,7 +110,7 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
initSF2(data?: any) {
|
initSF2(data?: any) {
|
||||||
this.schema2 = {
|
this.schema2 = {
|
||||||
properties: {
|
properties: {
|
||||||
content: {
|
templateContent: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '',
|
title: '',
|
||||||
ui: {
|
ui: {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2022-01-05 13:38:56
|
* @LastEditTime: 2022-01-06 10:19:10
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||||
@ -47,7 +47,7 @@
|
|||||||
<st
|
<st
|
||||||
#st
|
#st
|
||||||
[bordered]="true"
|
[bordered]="true"
|
||||||
[data]="service.$api_get_operate_listPage"
|
[data]="service.$api_get_contractTemplate_page"
|
||||||
[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' } }"
|
||||||
@ -55,7 +55,7 @@
|
|||||||
[loadingDelay]="500"
|
[loadingDelay]="500"
|
||||||
[loading]="service.http.loading"
|
[loading]="service.http.loading"
|
||||||
>
|
>
|
||||||
<ng-template st-row="complaintCode" let-item let-index="index">
|
<ng-template st-row="templateName" let-item let-index="index">
|
||||||
<a (click)="view(item)">{{item.complaintCode}}</a>
|
<a (click)="view(item)">{{item.complaintCode}}</a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</st>
|
</st>
|
||||||
|
|||||||
@ -69,11 +69,11 @@ export class OrderManagementTemplateComponent implements OnInit {
|
|||||||
initSF() {
|
initSF() {
|
||||||
this.schema = {
|
this.schema = {
|
||||||
properties: {
|
properties: {
|
||||||
complaintCode: {
|
templateName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '模板名称',
|
title: '模板名称',
|
||||||
},
|
},
|
||||||
serviceType: {
|
templateType: {
|
||||||
title: '模板类型',
|
title: '模板类型',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
@ -99,23 +99,23 @@ export class OrderManagementTemplateComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
title: '合同模板名称',
|
title: '合同模板名称',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
render: 'complaintCode'
|
render: 'templateName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '模板类型',
|
title: '模板类型',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'wayBillCode'
|
index: 'templateType'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '单据类型',
|
title: '单据类型',
|
||||||
index: 'complainantTime',
|
index: 'contractType',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
},
|
},
|
||||||
{ title: '创建人', index: 'driverId', width: '120px', className: 'text-center' },
|
{ title: '创建人', index: 'createUserId', width: '120px', className: 'text-center' },
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
render: 'complainant'
|
index: 'createTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2022-01-04 21:05:49
|
* @Date: 2022-01-04 21:05:49
|
||||||
* @LastEditTime: 2022-01-05 09:51:54
|
* @LastEditTime: 2022-01-06 10:15:44
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\services\contract-management.service.ts
|
* @FilePath: \tms-obc-web\src\app\routes\contract-management\services\contract-management.service.ts
|
||||||
@ -17,6 +17,14 @@ export class ContractManagementService extends BaseService {
|
|||||||
$api_get_getPremiumInformationPage = `/api/sdc/billOperate/listPremiumInformationPage`;
|
$api_get_getPremiumInformationPage = `/api/sdc/billOperate/listPremiumInformationPage`;
|
||||||
// 查询投诉列表
|
// 查询投诉列表
|
||||||
$api_get_operate_listPage = `/api/sdc/complaint/operate/listPage`;
|
$api_get_operate_listPage = `/api/sdc/complaint/operate/listPage`;
|
||||||
|
// 新增/更新信息
|
||||||
|
$api_save_contractTemplate = `/api/sdc/contractTemplate/save`;
|
||||||
|
// 查询合同模板表
|
||||||
|
$api_get_contractTemplate_page = `/api/sdc/contractTemplate/list/page`;
|
||||||
|
// 查询合同模板表详情
|
||||||
|
$api_get_contractTemplate = `/api/sdc/contractTemplate/get`;
|
||||||
|
// 删除合同模板
|
||||||
|
$api_deletebatch_contractTemplate = `/api/sdc/contractTemplate/deletebatch`;
|
||||||
constructor(public injector: Injector) {
|
constructor(public injector: Injector) {
|
||||||
super(injector);
|
super(injector);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -138,7 +138,24 @@ resourceStatus: any;
|
|||||||
},
|
},
|
||||||
shipperAppUserId: {
|
shipperAppUserId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货主'
|
title: '货主',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
serverSearch: true,
|
||||||
|
searchDebounceTime: 300,
|
||||||
|
searchLoadingText: '搜索中...',
|
||||||
|
onSearch: (q: any) => {
|
||||||
|
console.log(q)
|
||||||
|
if (!!q) {
|
||||||
|
return this.service
|
||||||
|
.request(this.service.$api_enterpriceList, { enterpriseName: q})
|
||||||
|
.pipe(map((res: any) => (res as any[]).map((i) => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
|
||||||
|
.toPromise();
|
||||||
|
} else {
|
||||||
|
return of([]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
} as SFSelectWidgetSchema,
|
||||||
},
|
},
|
||||||
loadingPlace: {
|
loadingPlace: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -272,7 +289,7 @@ resourceStatus: any;
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
enterpriseInfoName: {
|
enterpriseInfoId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
ui: {
|
ui: {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 15:31:52
|
* @Date: 2021-12-03 15:31:52
|
||||||
* @LastEditTime: 2022-01-05 15:46:04
|
* @LastEditTime: 2022-01-06 09:27:56
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\order-management\services\order-management.service.ts
|
* @FilePath: \tms-obc-web\src\app\routes\order-management\services\order-management.service.ts
|
||||||
@ -125,7 +125,8 @@ export class OrderManagementService extends ShipperBaseService {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 获取货主企业列表
|
||||||
|
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||||
/**
|
/**
|
||||||
* 根据企业ID,获取企业历史网络货运人
|
* 根据企业ID,获取企业历史网络货运人
|
||||||
* @returns
|
* @returns
|
||||||
|
|||||||
@ -521,6 +521,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
prePay: {
|
prePay: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '预付',
|
title: '预付',
|
||||||
|
minimum: 0,
|
||||||
default: 0,
|
default: 0,
|
||||||
ui: {
|
ui: {
|
||||||
prefix: '¥',
|
prefix: '¥',
|
||||||
@ -530,18 +531,21 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
toPay: {
|
toPay: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '到付',
|
title: '到付',
|
||||||
|
minimum: 0,
|
||||||
default: 0,
|
default: 0,
|
||||||
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
||||||
},
|
},
|
||||||
oilCardPay: {
|
oilCardPay: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '油卡',
|
title: '油卡',
|
||||||
|
minimum: 0,
|
||||||
default: 0,
|
default: 0,
|
||||||
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
||||||
},
|
},
|
||||||
receiptPay: {
|
receiptPay: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '回单付',
|
title: '回单付',
|
||||||
|
minimum: 0,
|
||||||
default: 0,
|
default: 0,
|
||||||
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@ -491,6 +491,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
type: 'number',
|
type: 'number',
|
||||||
title: '预付',
|
title: '预付',
|
||||||
default: 0,
|
default: 0,
|
||||||
|
minimum: 0,
|
||||||
ui: {
|
ui: {
|
||||||
prefix: '¥',
|
prefix: '¥',
|
||||||
change: args => this.payChange()
|
change: args => this.payChange()
|
||||||
@ -499,18 +500,21 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
toPay: {
|
toPay: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '到付',
|
title: '到付',
|
||||||
|
minimum: 0,
|
||||||
default: 0,
|
default: 0,
|
||||||
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
||||||
},
|
},
|
||||||
oilCardPay: {
|
oilCardPay: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '油卡',
|
title: '油卡',
|
||||||
|
minimum: 0,
|
||||||
default: 0,
|
default: 0,
|
||||||
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
||||||
},
|
},
|
||||||
receiptPay: {
|
receiptPay: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '回单付',
|
title: '回单付',
|
||||||
|
minimum: 0,
|
||||||
default: 0,
|
default: 0,
|
||||||
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
ui: { prefix: '¥', change: args => this.payChange() } as SFNumberWidgetSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@ -43,6 +43,7 @@ export class SupplyManagementUpdateFreightComponent implements OnInit {
|
|||||||
owner1: {
|
owner1: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '预付',
|
title: '预付',
|
||||||
|
minimum: 0,
|
||||||
max: 99999999,
|
max: 99999999,
|
||||||
ui: {
|
ui: {
|
||||||
prefix: '¥',
|
prefix: '¥',
|
||||||
@ -54,6 +55,7 @@ export class SupplyManagementUpdateFreightComponent implements OnInit {
|
|||||||
callNo1: {
|
callNo1: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '到付',
|
title: '到付',
|
||||||
|
minimum: 0,
|
||||||
ui: {
|
ui: {
|
||||||
prefix: '¥',
|
prefix: '¥',
|
||||||
widgetWidth: 200,
|
widgetWidth: 200,
|
||||||
@ -64,6 +66,7 @@ export class SupplyManagementUpdateFreightComponent implements OnInit {
|
|||||||
href1: {
|
href1: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
title: '油卡',
|
title: '油卡',
|
||||||
|
minimum: 0,
|
||||||
ui: {
|
ui: {
|
||||||
prefix: '¥',
|
prefix: '¥',
|
||||||
widgetWidth: 200,
|
widgetWidth: 200,
|
||||||
@ -72,7 +75,7 @@ export class SupplyManagementUpdateFreightComponent implements OnInit {
|
|||||||
} as SFNumberWidgetSchema
|
} as SFNumberWidgetSchema
|
||||||
},
|
},
|
||||||
description5: {
|
description5: {
|
||||||
type: 'number', title: '回单付', maxLength: 140, ui: {
|
type: 'number', title: '回单付', minimum: 0, maxLength: 140, ui: {
|
||||||
prefix: '¥',
|
prefix: '¥',
|
||||||
widgetWidth: 200,
|
widgetWidth: 200,
|
||||||
precision: 2,
|
precision: 2,
|
||||||
|
|||||||
@ -124,36 +124,15 @@
|
|||||||
{{i?.goodsValue}}
|
{{i?.goodsValue}}
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="保价费金额">
|
<sv label="保价费金额">
|
||||||
{{i?.insuranceAmount |currency}} 元
|
{{i?.insuranceAmount |currency: '¥'}} 元
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
<!-- <nz-card nzTitle="运费信息(到货后15天内支付运费)">
|
|
||||||
<st [data]="i?.expenseList" [columns]="expenseColumns" [page]="{show:false}">
|
|
||||||
<ng-template st-row="total" let-item>
|
|
||||||
<div>
|
|
||||||
{{(item.price * item.rate) | currency}}
|
|
||||||
<span>(含附加费)</span>
|
|
||||||
</div>
|
|
||||||
</ng-template>
|
|
||||||
</st>
|
|
||||||
<div class="freight-info-box mt-md" nz-row>
|
|
||||||
<div nz-col nzSpan="24">
|
|
||||||
<h3>
|
|
||||||
<label>总计 :</label>
|
|
||||||
<span class="text-error-dark text-xl">
|
|
||||||
{{totalExpensePrice | currency}}
|
|
||||||
</span>
|
|
||||||
<span>(运费¥3500.00含附加运费¥191.98)</span>
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nz-card> -->
|
|
||||||
<nz-card [nzTitle]="'运费信息(到货后'+i?.paymentDays+'天内支付运费)'">
|
<nz-card [nzTitle]="'运费信息(到货后'+i?.paymentDays+'天内支付运费)'">
|
||||||
<st [data]="i?.expenseVOList" [columns]="expenseColumns" [page]="{show:false}">
|
<st [data]="i?.expenseVOList" [columns]="expenseColumns" [page]="{show:false}">
|
||||||
<ng-template st-row="total" let-item>
|
<ng-template st-row="total" let-item>
|
||||||
<div>
|
<div>
|
||||||
{{(item.price * item.rate) | currency}}
|
{{(item.price * item.rate) | currency: '¥'}}
|
||||||
<span>(含附加费)</span>
|
<span>(含附加费)</span>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|||||||
@ -63,14 +63,19 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.getGoodsSourceDetail()
|
this.getGoodsSourceDetail()
|
||||||
|
console.log('4444')
|
||||||
}
|
}
|
||||||
|
|
||||||
getGoodsSourceDetail() {
|
getGoodsSourceDetail() {
|
||||||
this.service.request(this.service.$api_get_getCompleteVehicleDetail, { id: this.id }).subscribe(res => {
|
this.service.request(this.service.$api_get_getCompleteVehicleDetail, { id: this.id }).subscribe(res => {
|
||||||
const expenseList = res?.expenseList || [];
|
console.log('888')
|
||||||
|
console.log(this.i)
|
||||||
|
const expenseList = res?.expenseVOList || [];
|
||||||
this.totalExpensePrice = 0;
|
this.totalExpensePrice = 0;
|
||||||
this.attObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'ATT')[0];
|
this.attObj = res?.expenseVOList?.filter((data: any) => data.expenseCode === 'ATT')[0];
|
||||||
this.totalObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'TOTAL')[0];
|
this.totalObj = res?.expenseVOList?.filter((data: any) => data.expenseCode === 'TOTAL')[0];
|
||||||
|
console.log(this.attObj)
|
||||||
|
console.log(this.totalObj)
|
||||||
expenseList.forEach((e: any) => {
|
expenseList.forEach((e: any) => {
|
||||||
this.totalExpensePrice += e?.price * e?.rate;
|
this.totalExpensePrice += e?.price * e?.rate;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user