diff --git a/src/api/consumable.js b/src/api/consumable.js
index 18c93ff..6e7eff7 100644
--- a/src/api/consumable.js
+++ b/src/api/consumable.js
@@ -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
- }
- });
-}
\ No newline at end of file
+ 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
+ });
+}
diff --git a/src/api/shop.js b/src/api/shop.js
index 2e7f33b..8d42f75 100644
--- a/src/api/shop.js
+++ b/src/api/shop.js
@@ -630,11 +630,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) {
@@ -654,44 +654,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
+ });
}
/**
* 员工删除
@@ -745,4 +745,13 @@ export function tbProductListV2(params) {
method: "get",
params
});
-}
\ No newline at end of file
+}
+
+// 修改商品相关(快捷接口)
+export function updateProductData(data) {
+ return request({
+ url: `/api/stock/updateProductData`,
+ method: "post",
+ data
+ });
+}
diff --git a/src/assets/styles/index.css b/src/assets/styles/index.css
index 09133f8..e2562f1 100644
--- a/src/assets/styles/index.css
+++ b/src/assets/styles/index.css
@@ -159,7 +159,7 @@
height: 100%;
}
#app .sidebar-container.has-logo .el-scrollbar {
- height: calc(100% - 50px);
+ height: calc(100% - 110px);
}
#app .sidebar-container .is-horizontal {
display: none;
diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index 33fed06..bfaf801 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -39,7 +39,7 @@
&.has-logo {
.el-scrollbar {
- height: calc(100% - 50px);
+ height: calc(100% - 110px);
}
}
diff --git a/src/views/login.vue b/src/views/login.vue
index 241d39e..d97d0e3 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -198,7 +198,7 @@ export default {
}
-
diff --git a/src/views/product/components/bindCons.vue b/src/views/product/components/bindCons.vue
new file mode 100644
index 0000000..8a27364
--- /dev/null
+++ b/src/views/product/components/bindCons.vue
@@ -0,0 +1,215 @@
+
+