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 * @Author : Shiming
* @Date : 2022-02-22 13:53:29 * @Date : 2022-02-22 13:53:29
* @LastEditors : Shiming * @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 * @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.
*/ */
@ -52,7 +52,7 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
initSF() { initSF() {
this.schema = { this.schema = {
properties: { properties: {
remarks: { reason: {
type: 'string', type: 'string',
title: '备注', title: '备注',
maxLength: 50, maxLength: 50,
@ -60,12 +60,13 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
widget: 'textarea', widget: 'textarea',
autosize: { minRows: 6, maxRows: 6 } autosize: { minRows: 6, maxRows: 6 }
} as SFTextareaWidgetSchema } as SFTextareaWidgetSchema
} },
} },
require: ['reason']
}; };
this.ui = { this.ui = {
'*': { '*': {
spanLabelFixed: 100, spanLabelFixed: 50,
grid: { span: 20 } grid: { span: 20 }
} }
}; };
@ -92,19 +93,20 @@ export class OneCarOrderCancelConfirmComponent implements OnInit {
console.log(this.List) console.log(this.List)
} }
save(value: any): void { save(value: any): void {
if (!this.sf.value.remarks) { if (!this.sf.value.reason) {
this.service.msgSrv.error('请填写备注信息!'); this.service.msgSrv.error('请填写备注信息!');
return; return;
} }
const params = { id: this.i?.id, ...this.sf.value, agree: '1' }; const params = { billId: this.i?.id, ...this.sf.value };
// this.service.request(this.service.$api_cancelOrderConfirmed, params).subscribe(res => { console.log(params)
// if (res) { this.service.request(this.service.$api_billRefundApplication_save, params).subscribe(res => {
// this.service.msgSrv.success('操作成功!'); if (res) {
// this.modalRef.close(true); this.service.msgSrv.success('操作成功!');
// } else { this.modalRef.close(true);
// this.service.msgSrv.error(res.msg); } else {
// } this.service.msgSrv.error(res.msg);
// }); }
});
} }
close(): void { close(): void {

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-03 15:31:52 * @Date : 2021-12-03 15:31:52
* @LastEditors : Shiming * @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 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * 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_get = '/api/fcc/billRefundApplication/get';
// 同意退款
public $api_billRefundApplication_agreeRefund = '/api/fcc/billRefundApplication/agreeRefund';
// 保存订单退款申请表
public $api_billRefundApplication_save = '/api/fcc/billRefundApplication/save';