赠送管理

This commit is contained in:
wwz
2024-12-19 14:45:37 +08:00
parent 9f72777317
commit b69a95c92c
4 changed files with 263 additions and 854 deletions

View File

@@ -187,7 +187,6 @@ export default {
isActive() {
const isSel =
this.selIndex === this.index && this.placeNum === this.selPlaceNum;
console.log(isSel);
return isSel ? "active" : "";
},
},

View File

@@ -65,7 +65,6 @@ export default {
this.$set(this.listdata.proGroupVo, index, { ...this.listdata.proGroupVo[index], alertshow: this.listdata.proGroupVo[index].number != this.multipleSelection[index].length ? true : false });
},
confirm() {
console.log(listdata.proGroupVo)
this.$emit("dialogpackageconfirm", this.listdata, this.multipleSelection);
this.show = false;
@@ -84,7 +83,6 @@ export default {
return false;
}
this.disabledshow = true
console.log(this.listdata, this.multipleSelection);
this.show = true;
},
},

View File

@@ -10,7 +10,7 @@
<el-checkbox v-model="isFull">并桌</el-checkbox>
<el-select v-model="targetTableId" placeholder="请选择目标台桌">
<el-option v-for="item in originTableList" :key="item.tableId" :label="item.name"
:value="item.tableId" @click="changeTable(item, index)">
:value="item.tableId">
</el-option>
</el-select>
</div>
@@ -78,7 +78,12 @@ export default {
return {
selectalllist: [],
show: false,
itemdata: {},
itemdata: {
list: [],
old: {
list: [],
}
},
list: [],
masterId: "",
currentTableId: "",
@@ -110,7 +115,6 @@ export default {
this.refcartSelection = val;
},
async confirm() {
console.log(this.itemdata, this.multipleSelection);
if (!this.targetTableId) {
this.$message({
message: "请选择目标台桌!",
@@ -134,11 +138,10 @@ export default {
});
}
let cartIds = [...this.multipleSelection, [...this.refcartSelection]];
console.log(cartIds)
await placeswitch({
masterId: this.masterId,
orderId: this.itemdata.orderId, //当前台桌订单id 可选
cartIds: this.isFull ? "" : [...cartIds.flatMap((subArray) => subArray.map((item) => item.cartId)),...tzf] , //转单的购物车商品 并桌时可不传 可选
cartIds: this.isFull ? "" : [...cartIds.flatMap((subArray) => subArray.map((item) => item.cartId)), ...tzf], //转单的购物车商品 并桌时可不传 可选
isFull: this.isFull, //并台会将全部购物车商品转入默认为false 可选
currentTableId: this.currentTableId,
targetTableId: this.targetTableId,
@@ -149,7 +152,7 @@ export default {
},
open(item, masterId, currentTableId, originTableList) {
// 订单信息,取餐码,用餐类型,桌台号id台桌列表
console.log(item, masterId, currentTableId, originTableList);
// console.log(item, masterId, currentTableId, originTableList);
this.itemdata = item;
this.masterId = masterId; //取餐码
this.currentTableId = currentTableId; //当前桌台id
@@ -171,15 +174,6 @@ export default {
const item = $status[key];
return item ? item.type : "";
},
changeTable(item, index) {
console.log(item, index);
},
searchInput(e) {
console.log(e);
// this.tableList = $originTableList.filter((v) =>
// $strMatch(v.name, e.trim())
// );
},
},
};
</script>

File diff suppressed because it is too large Load Diff