Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
Taric Xin
2022-02-22 16:43:17 +08:00
9 changed files with 55 additions and 44 deletions

View File

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

View File

@ -656,20 +656,12 @@ resourceStatus: any;
nzContent: VehicleUpdateFreightComponent,
nzComponentParams: { data: { ...data, id: item.id,isFreightChangeApplication: item?.isFreightChangeApplication } },
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(_ => {
this.st.load();
this.getGoodsSourceStatistical()
modal.afterClose.subscribe((res: Boolean) => {
if(res) {
this.st.load();
this.getGoodsSourceStatistical()
}
});
}
});
@ -850,13 +842,16 @@ resourceStatus: any;
nzTitle: '申请退款',
nzContent: OneCarOrderCancelConfirmComponent,
nzComponentParams: {
i: item
i: item,
sts: 2
},
nzFooter: null
});
modalRef.afterClose.subscribe(() => {
this.resetSF;
this.st.load();
modalRef.afterClose.subscribe((res: boolean) => {
if(res) {
this.resetSF;
this.st.load();
}
});
}
}

View File

@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2021-12-14 14:03:07
* @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
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@ -213,6 +213,6 @@ export class UpdateFreightComponent implements OnInit {
}
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>
<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>

View File

@ -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);
}
}

View File

@ -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.
-->

View File

@ -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);
}
/**
* 更新数字框

View File

@ -57,7 +57,7 @@ export class CartConfigActionModalComponent implements OnInit {
placeholder: '请输入'
}
};
this.dictKey = 'car:model';
this.dictKey = 'ban.goods.name';
break;
default:

View File

@ -119,7 +119,7 @@ export class CartConfigComponent implements OnInit {
Object.assign(params, { dictKey: 'car:length', itemValue: this.sf?.value.params2 });
break;
case 3:
Object.assign(params, { dictKey: 'car:model', itemValue: this.sf?.value.params3 });
Object.assign(params, { dictKey: 'ban.goods.name', itemValue: this.sf?.value.params3 });
break;
default:
@ -146,6 +146,8 @@ export class CartConfigComponent implements OnInit {
}
configAction(item?: any) {
console.log(item)
console.log(this.tabType)
const modal = this.nzModalService.create({
nzContent: CartConfigActionModalComponent,
nzComponentParams: item