fix bug
This commit is contained in:
@ -31,6 +31,6 @@
|
||||
<sf style="margin-top: 10px;" #sf mode="edit" [schema]="schema" [ui]="ui" button="none"></sf>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button nz-button type="button" (click)="close()">取消</button>
|
||||
<button nz-button type="button" (click)="close(false)">取消</button>
|
||||
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)">确认</button>
|
||||
</div>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-02-22 13:53:29
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-02-22 15:15:24
|
||||
* @LastEditTime : 2022-02-22 15:51:53
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\cancel-confirm\\cancel-confirm.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -29,10 +29,11 @@ import { OrderManagementService } from '../../../services/order-management.servi
|
||||
templateUrl: './cancel-confirm.component.html'
|
||||
})
|
||||
export class OneCarOrderCancelConfirmComponent implements OnInit {
|
||||
i: any;
|
||||
index: any;
|
||||
ATTPrice: any;
|
||||
List: any;
|
||||
i: any; // 单行数据
|
||||
sts: any; // 区分大宗、整车
|
||||
index: any; // 项目数
|
||||
ATTPrice: any; // 附加费
|
||||
List: any; // 运费
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
schema: SFSchema = {};
|
||||
ui: SFUISchema = {};
|
||||
@ -75,14 +76,23 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
|
||||
let indexId = 0
|
||||
let index = 0
|
||||
this.i?.mybidDetailInfo.forEach((ele: any) => {
|
||||
if (ele?.paymentStatusLabel == '已支付') {
|
||||
indexId += 1;
|
||||
index += ele?.price;
|
||||
if(this.sts == 1) {
|
||||
// 大宗
|
||||
if (ele?.paymentStatusLabel == '已支付' && ele.expenseCode == "TRA") {
|
||||
index += ele?.price;
|
||||
}
|
||||
if (ele?.paymentStatusLabel == '已支付') {
|
||||
indexId += 1;
|
||||
}
|
||||
} else {
|
||||
// 整车
|
||||
if (ele?.paymentStatusLabel == '已支付') {
|
||||
indexId += 1;
|
||||
index += ele?.price;
|
||||
}
|
||||
console.log(ele.expenseCode)
|
||||
}
|
||||
console.log(ele.expenseCode)
|
||||
if (ele.expenseCode == '"ATT"' || ele.expenseCode == 'ATT'){
|
||||
console.log('ele.expenseCode')
|
||||
console.log(ele)
|
||||
if(ele?.paymentStatusLabel == '已支付') {
|
||||
this.ATTPrice = ele.price;
|
||||
} else {
|
||||
@ -110,7 +120,7 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
close(): void {
|
||||
this.modalRef.close(true);
|
||||
close(value: boolean): void {
|
||||
this.modalRef.close(false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-15 13:17:42
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-02-21 14:27:51
|
||||
* @LastEditTime : 2022-02-22 15:40:02
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-15 13:17:42
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-02-21 14:27:50
|
||||
* @LastEditTime : 2022-02-22 15:40:01
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -130,7 +130,6 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
this.service.msgSrv.error('请填写必填项!');
|
||||
return;
|
||||
}
|
||||
console.log(this.getParams())
|
||||
this.service.request(this.service.$api_get_insertFreightChangeWhole, this.getParams()).subscribe(res => {
|
||||
if (res) {
|
||||
this.modal.destroy(true);
|
||||
@ -140,7 +139,7 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
}
|
||||
|
||||
close(): void {
|
||||
this.modal.destroy();
|
||||
this.modal.destroy(false);
|
||||
}
|
||||
/**
|
||||
* 更新数字框
|
||||
|
||||
Reference in New Issue
Block a user