11-mes-new/src/api/basicData/CodeRules.js
2022-11-07 08:45:49 +08:00

56 lines
1.1 KiB
JavaScript

/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-01-29 10:38:02
* @Description:
*/
import request from '@/utils/request'
export function CodeRulesList(data) { // 获取编码规则列表
return request({
url: '/basic/code-rule/page',
method: 'post',
data
})
}
export function CodeRulesDetail(id) { // 获取编码规则单条数据
return request({
url: '/basic/code-rule/get',
method: 'post',
data: { id }
})
}
export function CodeRulesUpdate(data) { // 更新编码规则单条数据
return request({
url: '/basic/code-rule/update',
method: 'post',
data
})
}
export function CodeRulesAdd(data) { // 新增编码规则单条数据
return request({
url: '/basic/code-rule/add',
method: 'post',
data
})
}
export function CodeRulesCode() { // 获取编码规则code
return request({
url: '/basic/code-rule/get-code',
method: 'post'
})
}
export function CodeRulesDelete(id) { // 删除编码规则单条数据
return request({
url: '/basic/code-rule/delete',
method: 'post',
data: { id }
})
}