delivery.js
1.17 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
import { http } from '@/main'
const path = 'dj.api.smarcarlife.'
// 获取所属分类
const getTypeList = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = 'dj.api.goods.type.list'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 发货单分页查询
const getDeliveryList = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
// params.routerMethod = `${path}purchaseOrder.delivery.page`
params.routerMethod = 'dj.api.smarcarlife.purchaseOrder.deliveryDetail.page'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 发货单导出
export function exportExcel(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
// params.routerMethod = `${path}purchaseOrder.delivery.export`
params.routerMethod = 'dj.api.smarcarlife.purchaseOrder.deliveryDetail.export'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getTypeList, getDeliveryList, exportExcel }