post改成get请求

This commit is contained in:
jjLv 2025-09-01 09:33:55 +08:00
parent 7794157c7a
commit f24a312af6
9 changed files with 156 additions and 186 deletions

View File

@ -52,15 +52,11 @@ export function getDishesByTypePageApi(data) {
export function getCurrentRecipeListApi(data) { export function getCurrentRecipeListApi(data) {
return request({ return request({
url: '/smart-canteen/cook_recipe/currentList', url: '/smart-canteen/cook_recipe/currentList',
method: 'post', method: 'get',
headers: { headers: {
//"merchant-id":"378915229716713472", //"merchant-id":"378915229716713472",
}, },
data: data, data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
}) })
} }
// 获取所有菜谱-分页 // 获取所有菜谱-分页

View File

@ -24,15 +24,12 @@ export function getMaterialListApi(data) {
export function getStockMaterialListApi(data) { export function getStockMaterialListApi(data) {
return request({ return request({
url: '/smart-canteen/api/v1/drpinventory/list', url: '/smart-canteen/api/v1/drpinventory/list',
method: 'post', method: 'get',
headers: { headers: {
//"merchant-id":"378915229716713472", //"merchant-id":"378915229716713472",
}, },
data: data, data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
}) })
} }

View File

@ -130,15 +130,11 @@ export function delPurchaseContractApi(data) {
export function goodsInquiryPageApi(data) { export function goodsInquiryPageApi(data) {
return request({ return request({
url: '/smart-canteen/ims_inquiry/list', url: '/smart-canteen/ims_inquiry/list',
method: 'post', method: 'get',
headers: { headers: {
//"merchant-id":"378915229716713472", //"merchant-id":"378915229716713472",
}, },
data:data, data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
}) })
} }
//获取采购询价分页详情 //获取采购询价分页详情
@ -319,15 +315,11 @@ export function delProductionPlanApi(data) {
export function purchasePlanPageApi(data) { export function purchasePlanPageApi(data) {
return request({ return request({
url: '/smart-canteen/ims_purchase_plan/list', url: '/smart-canteen/ims_purchase_plan/list',
method: 'post', method: 'get',
headers: { headers: {
//"merchant-id":"378915229716713472", //"merchant-id":"378915229716713472",
}, },
data:data, data
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
}) })
} }
//获取采购计划分页详情 //获取采购计划分页详情

View File

@ -24,15 +24,11 @@ export function getMaterialListApi(data) {
export function getStockMaterialListApi(data) { export function getStockMaterialListApi(data) {
return request({ return request({
url: '/smart-canteen/api/v1/drpinventory/list', url: '/smart-canteen/api/v1/drpinventory/list',
method: 'post', method: 'get',
headers: { headers: {
//"merchant-id":"378915229716713472", //"merchant-id":"378915229716713472",
}, },
data: data, data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
}) })
} }

View File

@ -89,15 +89,12 @@ export function supplierPageApi(data) {
export function getStockMaterialListApi(data) { export function getStockMaterialListApi(data) {
return request({ return request({
url: '/smart-canteen/api/v1/drpinventory/list', url: '/smart-canteen/api/v1/drpinventory/list',
method: 'post', method: 'get',
headers: { headers: {
//"merchant-id":"378915229716713472", //"merchant-id":"378915229716713472",
}, },
data: data, data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
}) })
} }

View File

@ -5,11 +5,7 @@ import request from '@/utils/request'
export function getKitchenDeviceSensorRecordListApi(data) { export function getKitchenDeviceSensorRecordListApi(data) {
return request({ return request({
url: '/smart-canteen/kitchen_device_sensor_record/list', url: '/smart-canteen/kitchen_device_sensor_record/list',
method: 'post', method: 'get',
data: data, data
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
}) })
} }

View File

@ -157,15 +157,11 @@ export function reportDeptIncomeListApi(data) {
export function reportUserIncomeListApi(data) { export function reportUserIncomeListApi(data) {
return request({ return request({
url: '/smart-canteen/report/acc/user/income-outcome', url: '/smart-canteen/report/acc/user/income-outcome',
method: 'post', method: 'get',
headers: { headers: {
//"merchant-id":"378915229716713472", //"merchant-id":"378915229716713472",
}, },
data: data, data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
}) })
} }

View File

@ -515,6 +515,7 @@
getCanteenByAreaApi({ getCanteenByAreaApi({
"areaId":this.queryParams.areaId,"canteenType": 1 "areaId":this.queryParams.areaId,"canteenType": 1
}).then((response) => { }).then((response) => {
const aa = 3;
this.canteenOptions=response.rows||[] this.canteenOptions=response.rows||[]
this.queryParams.canteenId=this.$route.query.canteenId this.queryParams.canteenId=this.$route.query.canteenId
getStallByCanteenApi({ getStallByCanteenApi({
@ -803,4 +804,3 @@
</style> </style>