diff --git a/src/api/supermarketerp/smErpTasteStock.ts b/src/api/supermarketerp/smErpTasteStock.ts new file mode 100644 index 0000000..bc697f4 --- /dev/null +++ b/src/api/supermarketerp/smErpTasteStock.ts @@ -0,0 +1,41 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: '/supermarket/smErpTasteStock/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/supermarket/smErpTasteStock', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/supermarket/smErpTasteStock/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/supermarket/smErpTasteStock', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/supermarket/smErpTasteStock', + method: 'put', + data: obj + }) +} + diff --git a/src/utils/other.ts b/src/utils/other.ts index ca381da..6d95f83 100644 --- a/src/utils/other.ts +++ b/src/utils/other.ts @@ -352,8 +352,9 @@ export function handleBlobFile(response: any, fileName: string) { "text/plain", "image/jpeg", "image/png", + // "application/zip" // 添加 ZIP 文件类型支持 + "application/octet-stream" ] - if (!allowedTypes.includes(blob.type) && blob.type !== "") { useMessage().error("不支持的文件类型") return diff --git a/src/views/supermarketerp/smErpTasteStock/form.vue b/src/views/supermarketerp/smErpTasteStock/form.vue new file mode 100644 index 0000000..1e39acf --- /dev/null +++ b/src/views/supermarketerp/smErpTasteStock/form.vue @@ -0,0 +1,111 @@ + + + diff --git a/src/views/supermarketerp/smErpTasteStock/index.vue b/src/views/supermarketerp/smErpTasteStock/index.vue new file mode 100644 index 0000000..a09fd06 --- /dev/null +++ b/src/views/supermarketerp/smErpTasteStock/index.vue @@ -0,0 +1,115 @@ + + +