车辆对接

This commit is contained in:
wangshiming
2022-01-06 10:57:01 +08:00
parent a777f43a56
commit 78329f292c
12 changed files with 82 additions and 57 deletions

View File

@ -124,36 +124,15 @@
{{i?.goodsValue}}
</sv>
<sv label="保价费金额">
{{i?.insuranceAmount |currency}} 元
{{i?.insuranceAmount |currency: '¥'}} 元
</sv>
</sv-container>
</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+'天内支付运费'">
<st [data]="i?.expenseVOList" [columns]="expenseColumns" [page]="{show:false}">
<ng-template st-row="total" let-item>
<div>
{{(item.price * item.rate) | currency}}
{{(item.price * item.rate) | currency: '¥'}}
<span>(含附加费)</span>
</div>
</ng-template>

View File

@ -63,14 +63,19 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
ngOnInit(): void {
this.getGoodsSourceDetail()
console.log('4444')
}
getGoodsSourceDetail() {
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.attObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'ATT')[0];
this.totalObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'TOTAL')[0];
this.attObj = res?.expenseVOList?.filter((data: any) => data.expenseCode === 'ATT')[0];
this.totalObj = res?.expenseVOList?.filter((data: any) => data.expenseCode === 'TOTAL')[0];
console.log(this.attObj)
console.log(this.totalObj)
expenseList.forEach((e: any) => {
this.totalExpensePrice += e?.price * e?.rate;
});