接口对接
This commit is contained in:
parent
e337b10466
commit
79aba88041
|
|
@ -1,18 +1,5 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 系统区域权限树
|
||||
export function systemAreaTreeApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 注销过期用户数量
|
||||
export function accInfoOperateCountApi(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -1,38 +1,5 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 系统区域权限树
|
||||
export function systemAreaTreeApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过区域Id查询食堂
|
||||
export function getCanteenByAreaApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-all-auth-canteen',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过食堂Id查询档口
|
||||
export function getStallByCanteenApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-multiple-auth-stall',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 来源下拉数据
|
||||
export function getSourceTypeListApi(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -58,40 +58,6 @@ export function removeMenuDishesTypeApi(typeId) {
|
|||
// data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 系统区域权限树
|
||||
export function systemAreaTreeApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过区域Id查询食堂
|
||||
export function getCanteenByAreaApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-all-auth-canteen',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过食堂Id查询档口
|
||||
export function getStallByCanteenApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-multiple-auth-stall',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 菜品列表-分页
|
||||
|
|
|
|||
|
|
@ -45,18 +45,6 @@ export function removeMaterialTypeApi(data) {
|
|||
})
|
||||
}
|
||||
|
||||
// 系统区域权限树
|
||||
export function systemAreaTreeApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询原料列表
|
||||
export function getMaterialListApi(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -21,40 +21,8 @@ export function menuTypeListApi(data) {
|
|||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 系统区域权限树
|
||||
export function systemAreaTreeApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过区域Id查询食堂
|
||||
export function getCanteenByAreaApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-all-auth-canteen',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过食堂Id查询档口
|
||||
export function getStallByCanteenApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-multiple-auth-stall',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 用户范围
|
||||
export function getmkteffectiveApi(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -1,11 +1,20 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 获取营养信息类别
|
||||
export function typeListApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/menu_nutrition_type/nutritionTypeList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询获取所有营养信息
|
||||
export function listNutrition(query) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v1/menunutrition/getMenuNutritionPage',
|
||||
method: 'post',
|
||||
data: query
|
||||
url: '/smart-canteen/menu_nutrition/list',
|
||||
method: 'get',
|
||||
param: query
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -45,14 +54,7 @@ export function delNutrition(data) {
|
|||
})
|
||||
}
|
||||
|
||||
// 获取营养信息类别
|
||||
export function typeList(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v1/menunutrition/all/type/list',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取所有营养信息
|
||||
export function nutritionAllListApi(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -1,39 +1,5 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 系统区域权限树
|
||||
export function systemAreaTreeApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过区域Id查询食堂
|
||||
export function getCanteenByAreaApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-all-auth-canteen',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过食堂Id查询档口
|
||||
export function getStallByCanteenApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-multiple-auth-stall',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 订单状态
|
||||
export function orderStateListApi(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -1,39 +1,5 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 系统区域权限树
|
||||
export function systemAreaTreeApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过区域Id查询食堂
|
||||
export function getCanteenByAreaApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-all-auth-canteen',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 通过食堂Id查询档口
|
||||
export function getStallByCanteenApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/api/v2/alloc/canteen/list-multiple-auth-stall',
|
||||
method: 'post',
|
||||
headers: {
|
||||
"merchant-id":"378915229716713472",
|
||||
},
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 订单类型
|
||||
export function orderTypeListApi(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
<el-table v-loading="loading" :data="menuNutritionList" height="650">
|
||||
<el-table-column label="序号" align="center" width="80" type="index">
|
||||
<template slot-scope="scope">
|
||||
<span>{{(queryParams.current - 1) * queryParams.size + scope.$index + 1}}</span>
|
||||
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="食材编码" align="center" prop="nutritionCode" />
|
||||
|
|
@ -80,8 +80,8 @@
|
|||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.current"
|
||||
:limit.sync="queryParams.size"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
|
|
@ -465,7 +465,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { listNutrition, getNutrition, delNutrition, addMenuNutrition, updateNutrition, typeList } from "@/api/dish/nutritionInfo";
|
||||
import { listNutrition, getNutrition, delNutrition, addMenuNutrition, updateNutrition, typeListApi } from "@/api/dish/nutritionInfo";
|
||||
import { cascaderMixin } from './cascaderMixin';
|
||||
|
||||
export default {
|
||||
|
|
@ -489,8 +489,8 @@ export default {
|
|||
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
current: 1,
|
||||
size: 10,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
nutritionCode: undefined,
|
||||
nutritionName: undefined,
|
||||
type: undefined,
|
||||
|
|
@ -559,7 +559,7 @@ export default {
|
|||
* @returns {Promise<void>}
|
||||
*/
|
||||
getFoodType() {
|
||||
typeList().then(response => {
|
||||
typeListApi().then(response => {
|
||||
this.typeTreeData = response.data;
|
||||
this.cascaderOptions = this.cascaderOptionsMethod();
|
||||
console.log(this.cascaderOptions)
|
||||
|
|
@ -606,8 +606,8 @@ export default {
|
|||
getList() {
|
||||
this.loading = true;
|
||||
listNutrition(this.queryParams).then(response => {
|
||||
this.menuNutritionList = response.data.records;
|
||||
this.total = Number(response.data.total);
|
||||
this.menuNutritionList = response.rows;
|
||||
this.total = Number(response.total);
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
|
|
@ -658,7 +658,7 @@ export default {
|
|||
* @description 重置页码为1并获取列表数据
|
||||
*/
|
||||
handleQuery() {
|
||||
this.queryParams.current = 1;
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue