This commit is contained in:
wangshiming
2022-02-22 15:53:27 +08:00
parent b46ad16d1b
commit e599d1404e
7 changed files with 51 additions and 42 deletions

View File

@ -691,9 +691,11 @@ export class OrderManagementBulkComponent implements OnInit {
nzComponentParams: { data: { ...data, billId: item.id } }, nzComponentParams: { data: { ...data, billId: item.id } },
nzFooter: null nzFooter: null
}); });
modal.afterClose.subscribe(_ => { modal.afterClose.subscribe((res: any) => {
if(res) {
this.st.reload(1); this.st.reload(1);
this.getGoodsSourceStatistical(); this.getGoodsSourceStatistical();
}
}); });
} }
}); });
@ -778,13 +780,16 @@ export class OrderManagementBulkComponent implements OnInit {
nzTitle: '申请退款', nzTitle: '申请退款',
nzContent: OneCarOrderCancelConfirmComponent, nzContent: OneCarOrderCancelConfirmComponent,
nzComponentParams: { nzComponentParams: {
i: item i: item,
sts: 1
}, },
nzFooter: null nzFooter: null
}); });
modalRef.afterClose.subscribe(() => { modalRef.afterClose.subscribe((res: boolean) => {
this.resetSF; if(res) {
this.st.load(); this.resetSF;
this.st.load();
}
}); });
} }
} }

View File

@ -656,20 +656,12 @@ resourceStatus: any;
nzContent: VehicleUpdateFreightComponent, nzContent: VehicleUpdateFreightComponent,
nzComponentParams: { data: { ...data, id: item.id,isFreightChangeApplication: item?.isFreightChangeApplication } }, nzComponentParams: { data: { ...data, id: item.id,isFreightChangeApplication: item?.isFreightChangeApplication } },
nzFooter: null, nzFooter: null,
// nzOnOk: sin => {
// this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => {
// if (res) {
// this.service.msgSrv.success('变更运费成功');
// modal.destroy();
// this.st.reload();
// }
// });
// return false;
// }
}); });
modal.afterClose.subscribe(_ => { modal.afterClose.subscribe((res: Boolean) => {
this.st.load(); if(res) {
this.getGoodsSourceStatistical() this.st.load();
this.getGoodsSourceStatistical()
}
}); });
} }
}); });
@ -850,13 +842,16 @@ resourceStatus: any;
nzTitle: '申请退款', nzTitle: '申请退款',
nzContent: OneCarOrderCancelConfirmComponent, nzContent: OneCarOrderCancelConfirmComponent,
nzComponentParams: { nzComponentParams: {
i: item i: item,
sts: 2
}, },
nzFooter: null nzFooter: null
}); });
modalRef.afterClose.subscribe(() => { modalRef.afterClose.subscribe((res: boolean) => {
this.resetSF; if(res) {
this.st.load(); this.resetSF;
this.st.load();
}
}); });
} }
} }

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-14 14:03:07 * @Date : 2021-12-14 14:03:07
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-24 17:04:28 * @LastEditTime : 2022-02-22 15:44:05
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\bulk\\update-freight\\update-freight.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\bulk\\update-freight\\update-freight.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -213,6 +213,6 @@ export class UpdateFreightComponent implements OnInit {
} }
close(): void { close(): void {
this.modal.destroy(); this.modal.destroy(false);
} }
} }

View File

@ -31,6 +31,6 @@
<sf style="margin-top: 10px;" #sf mode="edit" [schema]="schema" [ui]="ui" button="none"></sf> <sf style="margin-top: 10px;" #sf mode="edit" [schema]="schema" [ui]="ui" button="none"></sf>
<div class="modal-footer"> <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> <button nz-button type="submit" nzType="primary" (click)="save(sf.value)">确认</button>
</div> </div>

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-02-22 13:53:29 * @Date : 2022-02-22 13:53:29
* @LastEditors : Shiming * @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 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\cancel-confirm\\cancel-confirm.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -29,10 +29,11 @@ import { OrderManagementService } from '../../../services/order-management.servi
templateUrl: './cancel-confirm.component.html' templateUrl: './cancel-confirm.component.html'
}) })
export class OneCarOrderCancelConfirmComponent implements OnInit { export class OneCarOrderCancelConfirmComponent implements OnInit {
i: any; i: any; // 单行数据
index: any; sts: any; // 区分大宗、整车
ATTPrice: any; index: any; // 项目数
List: any; ATTPrice: any; // 附加费
List: any; // 运费
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
schema: SFSchema = {}; schema: SFSchema = {};
ui: SFUISchema = {}; ui: SFUISchema = {};
@ -75,14 +76,23 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
let indexId = 0 let indexId = 0
let index = 0 let index = 0
this.i?.mybidDetailInfo.forEach((ele: any) => { this.i?.mybidDetailInfo.forEach((ele: any) => {
if (ele?.paymentStatusLabel == '已支付') { if(this.sts == 1) {
indexId += 1; // 大宗
index += ele?.price; 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'){ if (ele.expenseCode == '"ATT"' || ele.expenseCode == 'ATT'){
console.log('ele.expenseCode')
console.log(ele)
if(ele?.paymentStatusLabel == '已支付') { if(ele?.paymentStatusLabel == '已支付') {
this.ATTPrice = ele.price; this.ATTPrice = ele.price;
} else { } else {
@ -110,7 +120,7 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
}); });
} }
close(): void { close(value: boolean): void {
this.modalRef.close(true); this.modalRef.close(false);
} }
} }

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-15 13:17:42 * @Date : 2021-12-15 13:17:42
* @LastEditors : Shiming * @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 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-15 13:17:42 * @Date : 2021-12-15 13:17:42
* @LastEditors : Shiming * @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 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -130,7 +130,6 @@ export class VehicleUpdateFreightComponent implements OnInit {
this.service.msgSrv.error('请填写必填项!'); this.service.msgSrv.error('请填写必填项!');
return; return;
} }
console.log(this.getParams())
this.service.request(this.service.$api_get_insertFreightChangeWhole, this.getParams()).subscribe(res => { this.service.request(this.service.$api_get_insertFreightChangeWhole, this.getParams()).subscribe(res => {
if (res) { if (res) {
this.modal.destroy(true); this.modal.destroy(true);
@ -140,7 +139,7 @@ export class VehicleUpdateFreightComponent implements OnInit {
} }
close(): void { close(): void {
this.modal.destroy(); this.modal.destroy(false);
} }
/** /**
* 更新数字框 * 更新数字框