AccountOrderCheckingRefundService.js
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"use strict";
var AccountOrderCheckingRefundService = angular.module('AccountOrderCheckingRefundService',[]);
AccountOrderCheckingRefundService.service("AccountOrderCheckingRefundService", [
'$rootScope',
'BaseService',
function ($rootScope,BaseService) {
var _service = {
refundOrders:[],
refundOrdersDetailBean:[],
refundRecode:[],
//获取退单列表
orderPagerList:function(queryParam){
BaseService.request({
url:BaseService.url.accountOrder_refund_url,
method:'post',
mark:true,
data:queryParam,
fn:function(response) {
if(response.code == 0) {
_service.refundOrders = response.data;
$rootScope.$broadcast('refundOrders.list');
}
}
});
},
//获取退单详情
refundOrderDetail:function(refundId){
BaseService.request({
url:BaseService.url.accountOrder_refund_detail_url+refundId,
method:'GET',
mark:true,
fn:function(response) {
if(response.code == 0) {
_service.refundOrdersDetailBean = response.data;
$rootScope.$broadcast('refundOrders.detail');
}
}
});
},
//获取订单基本信息
orderDetail:function(orderCode){
BaseService.request({
url:BaseService.url.accountOrder_detail_url+orderCode,
method:'POST',
mark:true,
fn:function(response) {
if(response.code == 0) {
_service.orderDetailBean = response.data;
$rootScope.$broadcast('orders.detail');
}
}
});
},
};
return _service;
}]);