diff --git a/src/api/consumable.js b/src/api/consumable.js index 6e7eff7..10fc6d0 100644 --- a/src/api/consumable.js +++ b/src/api/consumable.js @@ -38,16 +38,16 @@ export function puttbConsType(data) { * 查询耗材信息 * @returns */ -export function gettbConsInfo(params) { +export function gettbConsInfo(data) { // return request({ // url: '/api/tbConsInfo', // method: "get", // params // }); return request({ - url: "/api/viewConInfoFlow", - method: "get", - params + url: "/api/viewConInfoFlow/get", + method: "post", + data }); } @@ -163,27 +163,15 @@ export function deletetbProskuCon(data) { * 查询耗材流水信息 * @returns */ -export function gettbConsInfoFlow(params) { +export function gettbConsInfoFlow(data) { return request({ - url: "/api/tbConsInfoFlow", - method: "get", - params - }); -} -/** - * 分组查询获取耗材流水信息 - */ -export function viewConInfoFlow(data) { - return request({ - url: "/api/viewConInfoFlow", - method: "get", - params: { - shopId: localStorage.getItem("shopId"), - ...data - } + url: "/api/viewConInfoFlow/get", + method: "post", + data }); } + /** * 查询耗材单位列表 */ @@ -236,3 +224,23 @@ export function tbProskuConV2(data) { data }); } +/** + * 耗材库存统计 + */ +export function tbConsInfoFlowcount(data) { + return request({ + url: "/api/tbConsInfoFlow/count", + method: "post", + data + }); +} +/** + * 耗材库存记录列表 + */ +export function tbConsInfoFlowstock(data) { + return request({ + url: "/api/tbConsInfoFlow/stock", + method: "post", + data + }); +} \ No newline at end of file diff --git a/src/views/invoicing/consumable/cons_record copy.vue b/src/views/invoicing/consumable/cons_record copy.vue index f84313c..d603bc1 100644 --- a/src/views/invoicing/consumable/cons_record copy.vue +++ b/src/views/invoicing/consumable/cons_record copy.vue @@ -96,7 +96,7 @@