approvalConfig.js
954 Bytes
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
/*
* @Author: your name
* @Date: 2022-03-12 11:08:25
* @LastEditTime: 2022-03-12 11:11:32
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\api\modules\approvalConfig.js
*/
import { http_config } from '@/main'
/**
* 根据 门店ID获取门店审批模板
*/
const getApproveDetail = params => {
params.method = 'scrm.api.coupon.directional.gift.approve.template.detail'
return http_config({
url: '/rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
/**
* 保存门店审批模板
*/
const saveApprove = params => {
params.method = 'scrm.api.coupon.directional.gift.approve.template.save'
return http_config({
url: '/rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getApproveDetail,
saveApprove
}