|
|
|
@ -37,6 +37,7 @@ import {environment} from "../../../../environments/environment"; |
|
|
|
|
import {NzSpinComponent} from "ng-zorro-antd/spin"; |
|
|
|
|
import {NzAlertComponent} from "ng-zorro-antd/alert"; |
|
|
|
|
import {CommunicationService} from "../../../services/common/communication.service"; |
|
|
|
|
import {OrderGoodsService} from "../../../services/trade/order-goods.service"; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-order-after-sales', |
|
|
|
@ -131,9 +132,11 @@ export class OrderAfterSalesComponent { |
|
|
|
|
applyAuditVisible = false; |
|
|
|
|
// 更多查询条件
|
|
|
|
|
isCollapse = false; |
|
|
|
|
goodsOrderData: any; |
|
|
|
|
constructor(private fb: NonNullableFormBuilder, |
|
|
|
|
private orderAfterSalesService : OrderAfterSalesService, |
|
|
|
|
private communicationService: CommunicationService, |
|
|
|
|
private goodsOrderService: OrderGoodsService, |
|
|
|
|
private message: NzMessageService, |
|
|
|
|
private modal: NzModalService) { |
|
|
|
|
// 初始化搜索框
|
|
|
|
@ -156,6 +159,7 @@ export class OrderAfterSalesComponent { |
|
|
|
|
applyNo: [''], |
|
|
|
|
type: [''], |
|
|
|
|
auditStatus: ['', [Validators.required]], |
|
|
|
|
jdAuditStatus: [''], |
|
|
|
|
remarks: [''], |
|
|
|
|
}); |
|
|
|
|
this.createTimeInit(); |
|
|
|
@ -240,6 +244,7 @@ export class OrderAfterSalesComponent { |
|
|
|
|
* @param data |
|
|
|
|
*/ |
|
|
|
|
showAudit(data: any) { |
|
|
|
|
this.getOrderGoods(data.childOrderNo); |
|
|
|
|
data.type = String(data.type); |
|
|
|
|
data.remarks = ''; |
|
|
|
|
this.applyAuditForm.patchValue(data); |
|
|
|
@ -315,6 +320,17 @@ export class OrderAfterSalesComponent { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 查询实物订单
|
|
|
|
|
getOrderGoods(childOrderNo: string) { |
|
|
|
|
this.goodsOrderService.getOrderGoods(childOrderNo, (data: any) => { |
|
|
|
|
if (data['return_code'] == '000000') { |
|
|
|
|
this.goodsOrderData = data['return_data']; |
|
|
|
|
} else { |
|
|
|
|
this.message.create('error', data['return_msg']); |
|
|
|
|
} |
|
|
|
|
this.isSpinning = false; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 导出订单 |
|
|
|
|