接口对接
This commit is contained in:
parent
e337b10466
commit
79aba88041
|
|
@ -1,18 +1,5 @@
|
||||||
import request from '@/utils/request'
|
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) {
|
export function accInfoOperateCountApi(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -1,38 +1,5 @@
|
||||||
import request from '@/utils/request'
|
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) {
|
export function getSourceTypeListApi(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -58,40 +58,6 @@ export function removeMenuDishesTypeApi(typeId) {
|
||||||
// data: 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
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 菜品列表-分页
|
// 菜品列表-分页
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
export function getMaterialListApi(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -21,40 +21,8 @@ export function menuTypeListApi(data) {
|
||||||
},
|
},
|
||||||
data: 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) {
|
export function getmkteffectiveApi(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,20 @@
|
||||||
import request from '@/utils/request'
|
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) {
|
export function listNutrition(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/smart-canteen/api/v1/menunutrition/getMenuNutritionPage',
|
url: '/smart-canteen/menu_nutrition/list',
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data: query
|
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) {
|
export function nutritionAllListApi(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -1,39 +1,5 @@
|
||||||
import request from '@/utils/request'
|
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) {
|
export function orderStateListApi(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -1,39 +1,5 @@
|
||||||
import request from '@/utils/request'
|
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) {
|
export function orderTypeListApi(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
<el-table v-loading="loading" :data="menuNutritionList" height="650">
|
<el-table v-loading="loading" :data="menuNutritionList" height="650">
|
||||||
<el-table-column label="序号" align="center" width="80" type="index">
|
<el-table-column label="序号" align="center" width="80" type="index">
|
||||||
<template slot-scope="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="食材编码" align="center" prop="nutritionCode" />
|
<el-table-column label="食材编码" align="center" prop="nutritionCode" />
|
||||||
|
|
@ -80,8 +80,8 @@
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total>0"
|
v-show="total>0"
|
||||||
:total="total"
|
:total="total"
|
||||||
:page.sync="queryParams.current"
|
:page.sync="queryParams.pageNum"
|
||||||
:limit.sync="queryParams.size"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
@ -465,7 +465,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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';
|
import { cascaderMixin } from './cascaderMixin';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -489,8 +489,8 @@ export default {
|
||||||
|
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
current: 1,
|
pageNum: 1,
|
||||||
size: 10,
|
pageSize: 10,
|
||||||
nutritionCode: undefined,
|
nutritionCode: undefined,
|
||||||
nutritionName: undefined,
|
nutritionName: undefined,
|
||||||
type: undefined,
|
type: undefined,
|
||||||
|
|
@ -559,7 +559,7 @@ export default {
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
getFoodType() {
|
getFoodType() {
|
||||||
typeList().then(response => {
|
typeListApi().then(response => {
|
||||||
this.typeTreeData = response.data;
|
this.typeTreeData = response.data;
|
||||||
this.cascaderOptions = this.cascaderOptionsMethod();
|
this.cascaderOptions = this.cascaderOptionsMethod();
|
||||||
console.log(this.cascaderOptions)
|
console.log(this.cascaderOptions)
|
||||||
|
|
@ -606,8 +606,8 @@ export default {
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listNutrition(this.queryParams).then(response => {
|
listNutrition(this.queryParams).then(response => {
|
||||||
this.menuNutritionList = response.data.records;
|
this.menuNutritionList = response.rows;
|
||||||
this.total = Number(response.data.total);
|
this.total = Number(response.total);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -658,7 +658,7 @@ export default {
|
||||||
* @description 重置页码为1并获取列表数据
|
* @description 重置页码为1并获取列表数据
|
||||||
*/
|
*/
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.current = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue