Merge branch 'master' of https://gitee.com/darlk/ShengTangManage into xzj
This commit is contained in:
@ -1,68 +1,74 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 查询合同列表
|
||||
export function listContract(query) {
|
||||
return request({
|
||||
url: '/custom/contract/list',
|
||||
method: 'get',
|
||||
url: "/custom/contract/list",
|
||||
method: "get",
|
||||
params: query
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// 查询合同详细
|
||||
export function getContract(id) {
|
||||
return request({
|
||||
url: '/custom/contract/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
url: "/custom/contract/" + id,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
// 新增合同
|
||||
export function addContract(data) {
|
||||
return request({
|
||||
url: '/custom/contract',
|
||||
method: 'post',
|
||||
url: "/custom/contract",
|
||||
method: "post",
|
||||
data: data
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// 修改合同
|
||||
export function updateContract(data) {
|
||||
return request({
|
||||
url: '/custom/contract',
|
||||
method: 'put',
|
||||
url: "/custom/contract",
|
||||
method: "put",
|
||||
data: data
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// 删除合同
|
||||
export function delContract(id) {
|
||||
return request({
|
||||
url: '/custom/contract/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
url: "/custom/contract/" + id,
|
||||
method: "delete"
|
||||
});
|
||||
}
|
||||
|
||||
// 导出合同
|
||||
export function exportContract(query) {
|
||||
return request({
|
||||
url: '/custom/contract/export',
|
||||
method: 'get',
|
||||
url: "/custom/contract/export",
|
||||
method: "get",
|
||||
params: query
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
export function getFile(id) {
|
||||
return request({
|
||||
url: '/custom/contract/file/' + id,
|
||||
method: 'get',
|
||||
})
|
||||
url: "/custom/contract/file/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function signContract(data) {
|
||||
return request({
|
||||
url: '/custom/contract/sign',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
url: "/custom/contract/sign",
|
||||
method: "post",
|
||||
data: data,
|
||||
headers: {
|
||||
isToken: false
|
||||
}
|
||||
});
|
||||
}
|
||||
|
41
stdiet-ui/src/api/custom/recipesShow.js
Normal file
41
stdiet-ui/src/api/custom/recipesShow.js
Normal file
@ -0,0 +1,41 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
export function getRecipesPlans(id) {
|
||||
return request({
|
||||
url: "/wap/recipes/plans/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function getHealthyInfo(id) {
|
||||
return request({
|
||||
url: "/wap/healthyInfo/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function getRecipesMenuInfoApi(id) {
|
||||
return request({
|
||||
url: "/wap/recipes/menu/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function getDicts(id) {
|
||||
return request({
|
||||
url: "/wap/dict/" + id,
|
||||
method: "get",
|
||||
headers: {
|
||||
isToken: false
|
||||
}
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user