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.
35 lines
1.1 KiB
35 lines
1.1 KiB
2 years ago
|
import axios from '@/axios/index'
|
||
|
import apiConfig from '@/api/apiConfig'
|
||
|
|
||
|
const api= apiConfig.router.apiRoute;
|
||
|
const module= apiConfig.modules.Manufacture;
|
||
|
const crmType=apiConfig.crmTypes.ProdLine;
|
||
|
const funcs=apiConfig.funcs;
|
||
|
|
||
|
//获取列表数据
|
||
|
export function crmProdLineIndex(data) {
|
||
|
return axios.posts(api+module+crmType+funcs.ListFunc,data)
|
||
|
//return axios.posts('/api/basedata/prodLine/list',data)
|
||
|
}
|
||
|
// 创建
|
||
|
export function crmProdLineSave(data) {
|
||
|
return axios.posts(api+module+crmType,data)
|
||
|
//return axios.posts('/api/basedata/prodLine',data)
|
||
|
}
|
||
|
//根据id获取单条数据
|
||
|
export function crmProdLineRead(id) {
|
||
|
return axios.gets(api+module+crmType+funcs.NullFunc+id)
|
||
|
//return axios.gets('/api/basedata/prodLine/'+id)
|
||
|
}
|
||
|
// 根据id修改
|
||
|
export function crmProdLineUpdate(id,data) {
|
||
|
return axios.puts(api+module+crmType+funcs.NullFunc+id,data)
|
||
|
//return axios.puts('/api/basedata/prodLine/'+id,data)
|
||
|
}
|
||
|
// 删除
|
||
|
export function crmProdLineDelete(data) {
|
||
|
return axios.posts(api+module+crmType+funcs.DeleteFunc,data)
|
||
|
//return axios.posts('/api/basedata/prodLine/delete',data)
|
||
|
}
|
||
|
|