赠送管理
This commit is contained in:
@@ -187,7 +187,6 @@ export default {
|
|||||||
isActive() {
|
isActive() {
|
||||||
const isSel =
|
const isSel =
|
||||||
this.selIndex === this.index && this.placeNum === this.selPlaceNum;
|
this.selIndex === this.index && this.placeNum === this.selPlaceNum;
|
||||||
console.log(isSel);
|
|
||||||
return isSel ? "active" : "";
|
return isSel ? "active" : "";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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 });
|
this.$set(this.listdata.proGroupVo, index, { ...this.listdata.proGroupVo[index], alertshow: this.listdata.proGroupVo[index].number != this.multipleSelection[index].length ? true : false });
|
||||||
},
|
},
|
||||||
confirm() {
|
confirm() {
|
||||||
console.log(listdata.proGroupVo)
|
|
||||||
this.$emit("dialogpackageconfirm", this.listdata, this.multipleSelection);
|
this.$emit("dialogpackageconfirm", this.listdata, this.multipleSelection);
|
||||||
this.show = false;
|
this.show = false;
|
||||||
|
|
||||||
@@ -84,7 +83,6 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.disabledshow = true
|
this.disabledshow = true
|
||||||
console.log(this.listdata, this.multipleSelection);
|
|
||||||
this.show = true;
|
this.show = true;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<el-checkbox v-model="isFull">并桌</el-checkbox>
|
<el-checkbox v-model="isFull">并桌</el-checkbox>
|
||||||
<el-select v-model="targetTableId" placeholder="请选择目标台桌">
|
<el-select v-model="targetTableId" placeholder="请选择目标台桌">
|
||||||
<el-option v-for="item in originTableList" :key="item.tableId" :label="item.name"
|
<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-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
@@ -78,7 +78,12 @@ export default {
|
|||||||
return {
|
return {
|
||||||
selectalllist: [],
|
selectalllist: [],
|
||||||
show: false,
|
show: false,
|
||||||
itemdata: {},
|
itemdata: {
|
||||||
|
list: [],
|
||||||
|
old: {
|
||||||
|
list: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
list: [],
|
list: [],
|
||||||
masterId: "",
|
masterId: "",
|
||||||
currentTableId: "",
|
currentTableId: "",
|
||||||
@@ -110,7 +115,6 @@ export default {
|
|||||||
this.refcartSelection = val;
|
this.refcartSelection = val;
|
||||||
},
|
},
|
||||||
async confirm() {
|
async confirm() {
|
||||||
console.log(this.itemdata, this.multipleSelection);
|
|
||||||
if (!this.targetTableId) {
|
if (!this.targetTableId) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "请选择目标台桌!",
|
message: "请选择目标台桌!",
|
||||||
@@ -134,11 +138,10 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
let cartIds = [...this.multipleSelection, [...this.refcartSelection]];
|
let cartIds = [...this.multipleSelection, [...this.refcartSelection]];
|
||||||
console.log(cartIds)
|
|
||||||
await placeswitch({
|
await placeswitch({
|
||||||
masterId: this.masterId,
|
masterId: this.masterId,
|
||||||
orderId: this.itemdata.orderId, //当前台桌订单id 可选
|
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 可选
|
isFull: this.isFull, //并台会将全部购物车商品转入,默认为false 可选
|
||||||
currentTableId: this.currentTableId,
|
currentTableId: this.currentTableId,
|
||||||
targetTableId: this.targetTableId,
|
targetTableId: this.targetTableId,
|
||||||
@@ -149,7 +152,7 @@ export default {
|
|||||||
},
|
},
|
||||||
open(item, masterId, currentTableId, originTableList) {
|
open(item, masterId, currentTableId, originTableList) {
|
||||||
// 订单信息,取餐码,用餐类型,桌台号id,台桌列表
|
// 订单信息,取餐码,用餐类型,桌台号id,台桌列表
|
||||||
console.log(item, masterId, currentTableId, originTableList);
|
// console.log(item, masterId, currentTableId, originTableList);
|
||||||
this.itemdata = item;
|
this.itemdata = item;
|
||||||
this.masterId = masterId; //取餐码
|
this.masterId = masterId; //取餐码
|
||||||
this.currentTableId = currentTableId; //当前桌台id
|
this.currentTableId = currentTableId; //当前桌台id
|
||||||
@@ -171,15 +174,6 @@ export default {
|
|||||||
const item = $status[key];
|
const item = $status[key];
|
||||||
return item ? item.type : "";
|
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>
|
</script>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user