This commit is contained in:
wangshiming
2022-02-22 14:53:48 +08:00
parent 088817d1e1
commit 78273efc25
2 changed files with 22 additions and 16 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2022-02-22 13:53:29
* @LastEditors : Shiming
* @LastEditTime : 2022-02-22 14:25:39
* @LastEditTime : 2022-02-22 14:46:06
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\cancel-confirm\\cancel-confirm.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@ -52,7 +52,7 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
initSF() {
this.schema = {
properties: {
remarks: {
reason: {
type: 'string',
title: '备注',
maxLength: 50,
@ -60,12 +60,13 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
widget: 'textarea',
autosize: { minRows: 6, maxRows: 6 }
} as SFTextareaWidgetSchema
}
}
},
},
require: ['reason']
};
this.ui = {
'*': {
spanLabelFixed: 100,
spanLabelFixed: 50,
grid: { span: 20 }
}
};
@ -92,19 +93,20 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
console.log(this.List)
}
save(value: any): void {
if (!this.sf.value.remarks) {
if (!this.sf.value.reason) {
this.service.msgSrv.error('请填写备注信息!');
return;
}
const params = { id: this.i?.id, ...this.sf.value, agree: '1' };
// this.service.request(this.service.$api_cancelOrderConfirmed, params).subscribe(res => {
// if (res) {
// this.service.msgSrv.success('操作成功!');
// this.modalRef.close(true);
// } else {
// this.service.msgSrv.error(res.msg);
// }
// });
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) {
this.service.msgSrv.success('操作成功!');
this.modalRef.close(true);
} else {
this.service.msgSrv.error(res.msg);
}
});
}
close(): void {

View File

@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2021-12-03 15:31:52
* @LastEditors : Shiming
* @LastEditTime : 2022-02-22 14:04:05
* @LastEditTime : 2022-02-22 14:48:17
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@ -153,6 +153,10 @@ export class OrderManagementService extends ShipperBaseService {
// 获取订单退款申请表
public $api_billRefundApplication_get = '/api/fcc/billRefundApplication/get';
// 同意退款
public $api_billRefundApplication_agreeRefund = '/api/fcc/billRefundApplication/agreeRefund';
// 保存订单退款申请表
public $api_billRefundApplication_save = '/api/fcc/billRefundApplication/save';