diff --git a/public/tag_print.html b/public/tag_print.html
index c9431b9..027eb7f 100644
--- a/public/tag_print.html
+++ b/public/tag_print.html
@@ -18,7 +18,7 @@
-
{{data.outNumber}}
+
座位号:{{data.masterId}}
diff --git a/src/store/goods.js b/src/store/goods.js
index 25dc157..b091eb9 100644
--- a/src/store/goods.js
+++ b/src/store/goods.js
@@ -580,8 +580,16 @@ export const useGoods = defineStore("goods", {
);
},
// 删除购物车回执操作
- successDeleteCartItem() {
- this.cartList.splice(this.cartActiveIndex, 1);
+ successDeleteCartItem(data = null) {
+ if (data && data.id) {
+ let index = this.cartList.findIndex(
+ (val) => val.product_id == data.product_id
+ );
+ this.cartList.splice(index, 1);
+ } else {
+ this.cartList.splice(this.cartActiveIndex, 1);
+ }
+
this.selectCartItemHandle(
this.cartActiveIndex == 0 ? 0 : this.cartActiveIndex - 1
);
diff --git a/src/store/socket.js b/src/store/socket.js
index 69709d8..0fb8d3e 100644
--- a/src/store/socket.js
+++ b/src/store/socket.js
@@ -113,7 +113,11 @@ export const useSocket = defineStore("socket", {
break;
case "del":
// 删除购物车商品
- goodsStore.successDeleteCartItem();
+ if (data.type && data.type == "bc") {
+ goodsStore.successDeleteCartItem(data.data);
+ } else {
+ goodsStore.successDeleteCartItem();
+ }
break;
case "cleanup":
// 清空购物车
diff --git a/src/views/device/add_label.vue b/src/views/device/add_label.vue
index d36c711..79ce262 100644
--- a/src/views/device/add_label.vue
+++ b/src/views/device/add_label.vue
@@ -71,7 +71,7 @@
-
{{ printData.outNumber }}
+
座位号:{{ printData.masterId }}