fix bug
This commit is contained in:
@ -103,11 +103,11 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
|
||||
console.log(this.List)
|
||||
}
|
||||
save(value: any): void {
|
||||
if (!this.sf.value.reason) {
|
||||
if (!this.sf?.value.reason) {
|
||||
this.service.msgSrv.error('请填写备注信息!');
|
||||
return;
|
||||
}
|
||||
const params = { billId: this.i?.id, ...this.sf.value };
|
||||
const params = { billId: this.i?.id, ...this.sf?.value };
|
||||
console.log(params)
|
||||
this.service.request(this.service.$api_billRefundApplication_save, params).subscribe(res => {
|
||||
if (res) {
|
||||
|
||||
@ -60,7 +60,7 @@ export class OneCarOrderCancelComponent implements OnInit {
|
||||
this.modal.confirm({
|
||||
nzTitle: '<i>是否确定立即取消运单!</i>',
|
||||
nzOnOk: () =>
|
||||
this.service.request(this.service.$api_get_cancelAnOrder, { id: this.i?.id, ...this.sf.value }).subscribe(res => {
|
||||
this.service.request(this.service.$api_get_cancelAnOrder, { id: this.i?.id, ...this.sf?.value }).subscribe(res => {
|
||||
if (res) {
|
||||
this.modalRef.close(true);
|
||||
}
|
||||
@ -68,7 +68,7 @@ export class OneCarOrderCancelComponent implements OnInit {
|
||||
nzOnCancel: () => this.modalRef.destroy()
|
||||
});
|
||||
} else {
|
||||
this.service.request(this.service.$api_get_cancelAnOrder, { id: this.i?.id, ...this.sf.value }).subscribe(res => {
|
||||
this.service.request(this.service.$api_get_cancelAnOrder, { id: this.i?.id, ...this.sf?.value }).subscribe(res => {
|
||||
if (res) {
|
||||
this.modalRef.close(true);
|
||||
}
|
||||
|
||||
@ -68,14 +68,14 @@ export class VehicleFreightPeopleComponent implements OnInit {
|
||||
}
|
||||
|
||||
save(value: any): void {
|
||||
console.log(this.sf.value);
|
||||
console.log(this.sf?.value);
|
||||
if(!this.sf.valid) {
|
||||
this.service.msgSrv.error("请选择网络货运人!")
|
||||
return;
|
||||
}
|
||||
const params = {
|
||||
billIds: this.data?.ids,
|
||||
enterpriseInfoId: this.sf.value?.enterpriseInfoId
|
||||
enterpriseInfoId: this.sf?.value?.enterpriseInfoId
|
||||
};
|
||||
console.log(params);
|
||||
this.service.request(this.service.$api_set_updateEnterpriseInfoBatch, params).subscribe((res: any) => {
|
||||
|
||||
@ -78,14 +78,14 @@ export class VehicleModifyRateComponent implements OnInit {
|
||||
}
|
||||
|
||||
save(value: any): void {
|
||||
if (!this.sf.value?.additionalRate) {
|
||||
if (!this.sf?.value?.additionalRate) {
|
||||
this.service.msgSrv.warning('请填写附加费!');
|
||||
return;
|
||||
}
|
||||
console.log(this.sf.value);
|
||||
console.log(this.sf?.value);
|
||||
const params = {
|
||||
ids: this.data?.ids,
|
||||
...this.sf.value
|
||||
...this.sf?.value
|
||||
};
|
||||
console.log(params);
|
||||
this.service.request(this.service.$api_set_updateAdditionalRateBatch, params).subscribe((res: any) => {
|
||||
|
||||
@ -165,8 +165,8 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
});
|
||||
// this.tranPrice = this.sf.value.prePay + this.sf.value.toPay + this.sf.value.oilCardPay + this.sf.value.receiptPay;
|
||||
// this.totalPrice = this.sf.value.prePay + this.sf.value.toPay + this.sf.value.oilCardPay + this.sf.value.receiptPay + this.otherPrice;
|
||||
// this.tranPrice = this.sf?.value.prePay + this.sf?.value.toPay + this.sf?.value.oilCardPay + this.sf?.value.receiptPay;
|
||||
// this.totalPrice = this.sf?.value.prePay + this.sf?.value.toPay + this.sf?.value.oilCardPay + this.sf?.value.receiptPay + this.otherPrice;
|
||||
}
|
||||
|
||||
getParams() {
|
||||
@ -174,13 +174,13 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
editItems.forEach((item: any) => {
|
||||
switch (item.costName) {
|
||||
case '预付':
|
||||
item.price = this.sf.value.prePay;
|
||||
item.price = this.sf?.value.prePay;
|
||||
break;
|
||||
case '到付':
|
||||
item.price = this.sf.value.toPay;
|
||||
item.price = this.sf?.value.toPay;
|
||||
break;
|
||||
case '回单付':
|
||||
item.price = this.sf.value.receiptPay;
|
||||
item.price = this.sf?.value.receiptPay;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@ -190,7 +190,7 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
const params = {
|
||||
billId: this.data.id,
|
||||
dtos: editItems,
|
||||
changeCause: this.sf.value.changeCause
|
||||
changeCause: this.sf?.value.changeCause
|
||||
};
|
||||
return params;
|
||||
}
|
||||
@ -198,9 +198,9 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
|
||||
const param = {
|
||||
billId: this.data.id,
|
||||
pre: this.sf.value.prePay,
|
||||
rece: this.sf.value.toPay,
|
||||
back: this.sf.value.receiptPay,
|
||||
pre: this.sf?.value.prePay,
|
||||
rece: this.sf?.value.toPay,
|
||||
back: this.sf?.value.receiptPay,
|
||||
total: this.data.totalFreight,
|
||||
freightAmount: this.data.totalAmount,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user