diff --git a/src/api/canteen/canteenErpCategory.ts b/src/api/canteen/canteenErpCategory.ts index e24915d..71d8e6c 100644 --- a/src/api/canteen/canteenErpCategory.ts +++ b/src/api/canteen/canteenErpCategory.ts @@ -1,41 +1,49 @@ import request from "/@/utils/request" export function fetchList(query?: Object) { - return request({ - url: '/canteen/canteenErpCategory/page', - method: 'get', - params: query - }) + return request({ + url: "/canteen/canteenErpCategory/page", + method: "get", + params: query, + }) } export function addObj(obj?: Object) { - return request({ - url: '/canteen/canteenErpCategory', - method: 'post', - data: obj - }) + return request({ + url: "/canteen/canteenErpCategory", + method: "post", + data: obj, + }) } export function getObj(id?: string) { - return request({ - url: '/canteen/canteenErpCategory/' + id, - method: 'get' - }) + return request({ + url: "/canteen/canteenErpCategory/" + id, + method: "get", + }) } export function delObjs(ids?: Object) { - return request({ - url: '/canteen/canteenErpCategory', - method: 'delete', - data: ids - }) + return request({ + url: "/canteen/canteenErpCategory", + method: "delete", + data: ids, + }) } export function putObj(obj?: Object) { - return request({ - url: '/canteen/canteenErpCategory', - method: 'put', - data: obj - }) + return request({ + url: "/canteen/canteenErpCategory", + method: "put", + data: obj, + }) } +// 食材分类下拉列表 +export function getSimpleAll(obj?: Object) { + return request({ + url: "/canteen/canteenErpCategory/simpleAll", + method: "get", + data: obj, + }) +} diff --git a/src/views/canteen/canteenErpMaterial/form.vue b/src/views/canteen/canteenErpMaterial/form.vue index 98820e9..f2504f3 100644 --- a/src/views/canteen/canteenErpMaterial/form.vue +++ b/src/views/canteen/canteenErpMaterial/form.vue @@ -7,7 +7,13 @@ - + + + + + + + @@ -46,11 +52,11 @@