商品列表新增绑定耗材

This commit is contained in:
gyq
2024-09-24 13:47:09 +08:00
parent 673afeb5f3
commit 5c47408c96
7 changed files with 621 additions and 577 deletions

View File

@@ -5,11 +5,11 @@ import request from "@/utils/request";
* @returns
*/
export function gettbConsType(params) {
return request({
url: '/api/tbConsType',
method: "get",
params
});
return request({
url: "/api/tbConsType",
method: "get",
params
});
}
/**
@@ -17,73 +17,72 @@ export function gettbConsType(params) {
* @returns
*/
export function posttbConsType(data) {
return request({
url: '/api/tbConsType',
method: "post",
data
});
return request({
url: "/api/tbConsType",
method: "post",
data
});
}
/**
* 修改耗材类型
* @returns
*/
export function puttbConsType(data) {
return request({
url: '/api/tbConsType',
method: "put",
data
});
return request({
url: "/api/tbConsType",
method: "put",
data
});
}
/**
* 查询耗材信息
* @returns
*/
export function gettbConsInfo(params) {
// return request({
// url: '/api/tbConsInfo',
// method: "get",
// params
// });
return request({
url: "/api/viewConInfoFlow",
method: "get",
params
});
// return request({
// url: '/api/tbConsInfo',
// method: "get",
// params
// });
return request({
url: "/api/viewConInfoFlow",
method: "get",
params
});
}
/**
* 耗材入库
* @returns
*/
export function posttbConsInfostockIn(data) {
return request({
url: '/api/tbConsInfo/stockIn',
method: "post",
data
});
return request({
url: "/api/tbConsInfo/stockIn",
method: "post",
data
});
}
/**
* 修改单位耗材值耗材
* @returns
*/
export function postapitbConsInfo(data) {
return request({
url: '/api/tbConsInfo',
method: "put",
data
});
return request({
url: "/api/tbConsInfo",
method: "put",
data
});
}
/**
* 新增耗材信息
* @returns
*/
export function posttbConsInfo(data) {
return request({
url: '/api/tbConsInfo',
method: "post",
data
});
return request({
url: "/api/tbConsInfo",
method: "post",
data
});
}
/**
@@ -91,55 +90,55 @@ export function posttbConsInfo(data) {
* @returns
*/
export function getviewConSku(params) {
return request({
url: '/api/viewConSku',
method: "get",
params
});
return request({
url: "/api/viewConSku",
method: "get",
params
});
}
/**
* 查询查询商品规格
* @returns
*/
export function gettbProductSpec(params) {
return request({
url: '/api/viewProductSkuShop',
method: "get",
params
});
return request({
url: "/api/viewProductSkuShop",
method: "get",
params
});
}
/**
* 新增商品规格耗材信息
* @returns
*/
export function posttbProskuCon(data) {
return request({
url: '/api/tbProskuCon',
method: "post",
data
});
return request({
url: "/api/tbProskuCon",
method: "post",
data
});
}
/**
* 新增商品规格耗材信息-修改后
* @returns
*/
export function posttbProskuCons(data) {
return request({
url: '/api/tbProskuCon',
method: "post",
data
});
return request({
url: "/api/tbProskuCon",
method: "post",
data
});
}
/**
* 修改商品规格耗材信息状态
* @returns
*/
export function puttbProskuCon(data) {
return request({
url: '/api/tbProskuCon',
method: "put",
data
});
return request({
url: "/api/tbProskuCon",
method: "put",
data
});
}
// 编辑单位耗材值
// export function puttbProskuCon(data) {
@@ -154,74 +153,86 @@ export function puttbProskuCon(data) {
* @returns
*/
export function deletetbProskuCon(data) {
return request({
url: '/api/tbProskuCon',
method: "delete",
data
});
return request({
url: "/api/tbProskuCon",
method: "delete",
data
});
}
/**
* 查询耗材流水信息
* @returns
*/
export function gettbConsInfoFlow(params) {
return request({
url: '/api/tbConsInfoFlow',
method: "get",
params
});
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
}
});
}
return request({
url: "/api/viewConInfoFlow",
method: "get",
params: {
shopId: localStorage.getItem("shopId"),
...data
}
});
}
/**
/**
* 查询耗材单位列表
*/
export function queryTbConUnitInfo(data) {
return request({
url: "/api/tbConUnit/queryTbConUnitInfo",
method: "get",
params: {
shopId: localStorage.getItem("shopId"),
...data
}
});
}
return request({
url: "/api/tbConUnit/queryTbConUnitInfo",
method: "get",
params: {
shopId: localStorage.getItem("shopId"),
...data
}
});
}
/**
* 新增耗材单位
*/
export function addtbConUnit(data) {
return request({
url: '/api/tbConUnit',
method: "post",
data:{
shopId: localStorage.getItem("shopId"),
...data
}
});
return request({
url: "/api/tbConUnit",
method: "post",
data: {
shopId: localStorage.getItem("shopId"),
...data
}
});
}
/**
* 修改耗材单位
*/
export function edittbConUnit(data) {
return request({
url: '/api/tbConUnit',
method: "put",
data:{
shopId: localStorage.getItem("shopId"),
...data
}
});
}
return request({
url: "/api/tbConUnit",
method: "put",
data: {
shopId: localStorage.getItem("shopId"),
...data
}
});
}
/**
* 绑定关系
*/
export function tbProskuConV2(data) {
return request({
url: "/api/tbProskuCon/V2",
method: "post",
data
});
}

View File

@@ -612,11 +612,11 @@ export function callTabledelete(data) {
});
}
export function callTablepost(data) {
return request({
url: '/callTable',
method: 'post',
data
})
return request({
url: "/callTable",
method: "post",
data
});
}
// 桌型列表
export function callTable(params) {
@@ -636,44 +636,44 @@ export function callTabledataput(data) {
}
// 叫号列表
export function callTablequeue(params) {
return request({
url: '/callTable/queue',
method: 'get',
params
})
return request({
url: "/callTable/queue",
method: "get",
params
});
}
// 取消叫号
export function callTableput(data) {
return request({
url: `/callTable/updateState`,
method: "put",
data
});
return request({
url: `/callTable/updateState`,
method: "put",
data
});
}
export function callTabletakeNumber(data) {
return request({
url: '/callTable/takeNumber',
method: 'post',
data: {
...data
}
})
return request({
url: "/callTable/takeNumber",
method: "post",
data: {
...data
}
});
}
// 叫号配置获取
export function callTableconfig(params) {
return request({
url: '/callTable/config',
method: 'get',
params
})
return request({
url: "/callTable/config",
method: "get",
params
});
}
// 叫号配置修改
export function callTableconfigput(data) {
return request({
url: `/callTable/config`,
method: "put",
data
});
return request({
url: `/callTable/config`,
method: "put",
data
});
}
/**
* 员工删除
@@ -727,4 +727,13 @@ export function tbProductListV2(params) {
method: "get",
params
});
}
}
// 修改商品相关(快捷接口)
export function updateProductData(data) {
return request({
url: `/api/stock/updateProductData`,
method: "post",
data
});
}