You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
64 lines
1.5 KiB
import { Injectable } from '@angular/core';
|
|
import {HttpClient} from "@angular/common/http";
|
|
import {environment} from "../../../environments/environment";
|
|
import {ObjectData} from "../../utils/objectData.service";
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class OrderAfterSalesService {
|
|
|
|
constructor(private http: HttpClient) { }
|
|
|
|
/**
|
|
* 查询订单列表
|
|
* @param param
|
|
* @param callBack
|
|
*/
|
|
public queryApplyList(param: any, callBack:any) {
|
|
param.time = new Date().getTime();
|
|
this.http.get(environment.orderUrl + 'afterSales/queryApplyList?'+ObjectData.objectByString(param)).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 查询订单详情
|
|
* @param applyNo
|
|
* @param callBack
|
|
*/
|
|
public queryApply(applyNo: string, callBack:any) {
|
|
let params = {
|
|
applyNo: applyNo,
|
|
time: new Date().getTime()
|
|
};
|
|
this.http.get(environment.orderUrl + 'afterSales/queryApply?'+ObjectData.objectByString(params)).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 审核
|
|
* @param param
|
|
* @param callBack
|
|
*/
|
|
public audit(param: any, callBack:any) {
|
|
param.time = new Date().getTime();
|
|
this.http.post(environment.orderUrl + 'afterSales/audit', param).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 完成申请
|
|
* @param param
|
|
* @param callBack
|
|
*/
|
|
public finish(param: any, callBack:any) {
|
|
param.time = new Date().getTime();
|
|
this.http.post(environment.orderUrl + 'afterSales/finish', param).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
|
|
}
|
|
|