diff --git a/src/api/product/libraryrecords.ts b/src/api/product/libraryrecords.ts new file mode 100644 index 0000000..fda0371 --- /dev/null +++ b/src/api/product/libraryrecords.ts @@ -0,0 +1,51 @@ +import request from "@/utils/request"; +import { Product_BaseUrl } from "@/api/config"; +const baseURL = Product_BaseUrl + "/admin/product"; +// 供应商 +const Api = { + /** 耗材库存变动记录*/ + getList(params: any) { + return request({ + url: `${baseURL}/stock/flow`, + method: "get", + params, + }); + }, + /** 全部*/ + getAllList(params: any) { + return request({ + url: `${baseURL}/list`, + method: "get", + params, + }); + }, + get(id: string | number) { + return request({ + url: `${baseURL}/` + id, + method: "get", + }); + }, + add(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data, + }); + }, + edit(data: any) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + + delete(id: string | number) { + return request({ + url: `${baseURL}/` + id, + method: "delete", + }); + }, +}; + +export default Api; diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 741f9a3..2572232 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -8,37 +8,58 @@ @@ -67,36 +88,68 @@ - + @@ -191,56 +263,82 @@