fix bug
This commit is contained in:
		| @ -4,7 +4,7 @@ | |||||||
|  * @Author       : Shiming |  * @Author       : Shiming | ||||||
|  * @Date         : 2021-12-24 16:58:02 |  * @Date         : 2021-12-24 16:58:02 | ||||||
|  * @LastEditors  : Shiming |  * @LastEditors  : Shiming | ||||||
|  * @LastEditTime : 2022-03-04 13:33:51 |  * @LastEditTime : 2022-03-04 13:53:06 | ||||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.html |  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.html | ||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||||
| --> | --> | ||||||
| @ -262,8 +262,9 @@ | |||||||
| </nz-card> | </nz-card> | ||||||
|  |  | ||||||
| <nz-card nzTitle="运费信息" #distannce3> | <nz-card nzTitle="运费信息" #distannce3> | ||||||
|   <h2>{{i?.goodsInfoList?.[0]?.freightPrice}}{{i?.goodsInfoList?.[0]?.freightTypeLabel}}(以发货为准,保留小数)</h2> |   <h2>{{i?.goodsInfoList?.[0]?.freightPrice}}{{i?.goodsInfoList?.[0]?.freightTypeLabel}}({{ i?.goodsInfoList?.[0]?.settlementBasisLabel ? i?.goodsInfoList?.[0]?.settlementBasisLabel + ',' :' ' }}{{i?.goodsInfoList?.[0]?.ruleLabel}})</h2> | ||||||
|   <st #st [data]="i?.billExpenseDetails" [columns]="logColumns" [ps]="0" [page]="{ show: false, showSize: false }"> |   <st #st [data]="billExpenses" [columns]="logColumns" [ps]="0" [page]="{ show: false, showSize: false }"> | ||||||
|  |     <ng-template st-row="PriceType" let-item let-index="index"> 到付 </ng-template> | ||||||
|     <ng-template st-row="price" let-item let-index="index"> |     <ng-template st-row="price" let-item let-index="index"> | ||||||
|       {{ item.price | currency }} |       {{ item.price | currency }} | ||||||
|     </ng-template> |     </ng-template> | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ | |||||||
|  * @Author       : Shiming |  * @Author       : Shiming | ||||||
|  * @Date         : 2021-12-24 16:58:02 |  * @Date         : 2021-12-24 16:58:02 | ||||||
|  * @LastEditors  : Shiming |  * @LastEditors  : Shiming | ||||||
|  * @LastEditTime : 2022-03-04 13:26:50 |  * @LastEditTime : 2022-03-04 13:53:04 | ||||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.ts |  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.ts | ||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||||
|  */ |  */ | ||||||
| @ -66,6 +66,7 @@ loadTime: any; // 货源单设置回显 | |||||||
|   @ViewChild('sf4', { static: false }) sf4!: SFComponent; |   @ViewChild('sf4', { static: false }) sf4!: SFComponent; | ||||||
|   schema4: SFSchema = {}; |   schema4: SFSchema = {}; | ||||||
|   isVisible = false; |   isVisible = false; | ||||||
|  |   billExpenses: any[] = []; //运费信息表格信息 | ||||||
|   ui4!: SFUISchema; |   ui4!: SFUISchema; | ||||||
|   formData: any; |   formData: any; | ||||||
|   @ViewChild('sf', { static: false }) sf!: SFComponent; |   @ViewChild('sf', { static: false }) sf!: SFComponent; | ||||||
| @ -319,8 +320,7 @@ loadTime: any; // 货源单设置回显 | |||||||
|     this.service.request(this.service.$api_getBulkBillDetail, {id: this.id}).subscribe(res => { |     this.service.request(this.service.$api_getBulkBillDetail, {id: this.id}).subscribe(res => { | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.i = res; |         this.i = res; | ||||||
|         this.attObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'ATT')[0]; |         this.billExpenses = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'TRA'); | ||||||
|         this.totalObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'TOTAL')[0]; |  | ||||||
|         // 对装货凭证进行初始化 |         // 对装货凭证进行初始化 | ||||||
|         let arr : any= [] |         let arr : any= [] | ||||||
|         res?.receiptFilePath.forEach((element: any, index: any) => { |         res?.receiptFilePath.forEach((element: any, index: any) => { | ||||||
|  | |||||||
| @ -71,9 +71,7 @@ export class OrderManagementBulkeDetailComponent implements OnInit { | |||||||
|     this.service.request(this.service.$api_getBulkBillDetail, { id: this.id }).subscribe(res => { |     this.service.request(this.service.$api_getBulkBillDetail, { id: this.id }).subscribe(res => { | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.i = res; |         this.i = res; | ||||||
|         console.log(this.i.billExpenseDetails ) |  | ||||||
|         this.billExpenses = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'TRA'); |         this.billExpenses = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'TRA'); | ||||||
|         console.log(this.billExpenses ) |  | ||||||
|         this.i.scheduleVOList = this.i?.scheduleVOList?.filter((data:any)=>data.displayStatus !=="HIDE"); |         this.i.scheduleVOList = this.i?.scheduleVOList?.filter((data:any)=>data.displayStatus !=="HIDE"); | ||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user