2025-07-01 11:25:10 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 原料类别树
|
|
|
|
|
export function systemMaterialTreeApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/cook_material_type/getTree',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询原料列表
|
|
|
|
|
export function getMaterialListApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/cook_material/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-07-01 18:14:48 +08:00
|
|
|
//查询供应商列表 isPaging 0不分页 2分页
|
|
|
|
|
export function supplierPageApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_supplier/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
params:data
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-07-01 11:25:10 +08:00
|
|
|
|
2025-07-01 18:14:48 +08:00
|
|
|
//获取采购合同分页列表
|
|
|
|
|
export function purchaseContractPageApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_contract/list',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data:data,
|
|
|
|
|
params:{
|
|
|
|
|
pageNum:data.pageNum,
|
|
|
|
|
pageSize:data.pageSize
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//获取采购合同分页详情
|
|
|
|
|
export function getPurchaseContractInfoApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_contract/'+data.contractId,
|
|
|
|
|
method: 'get',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 新增
|
|
|
|
|
export function addPurchaseContractApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_contract',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 编辑
|
|
|
|
|
export function editPurchaseContractApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_contract/edit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 删除
|
|
|
|
|
export function delPurchaseContractApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_contract/del/'+data.contractIds,
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
}
|
|
|
|
|
})
|
2025-07-03 09:36:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取采购计划分页列表
|
|
|
|
|
export function purchasePlanPageApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_plan/list',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data:data,
|
|
|
|
|
params:{
|
|
|
|
|
pageNum:data.pageNum,
|
|
|
|
|
pageSize:data.pageSize
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//获取采购计划分页详情
|
|
|
|
|
export function getPurchasePlanInfoApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_plan/'+data.planId,
|
|
|
|
|
method: 'get',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 新增采购计划
|
|
|
|
|
export function addPurchasePlanApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_plan',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 修改采购计划
|
|
|
|
|
export function editPurchasePlanApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_plan/edit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
},
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 删除采购计划
|
|
|
|
|
export function delPurchasePlanApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/ims_purchase_plan/del/'+data.planIds,
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
//"merchant-id":"378915229716713472",
|
|
|
|
|
}
|
|
|
|
|
})
|
2025-07-01 18:14:48 +08:00
|
|
|
}
|