代课下单
This commit is contained in:
@@ -379,7 +379,7 @@
|
||||
删除
|
||||
</div>
|
||||
|
||||
<div class="btn" :class="{ disabled: !order.list.length || order.old.list.length }" @click="saveOrder">
|
||||
<!-- <div class="btn" :class="{ disabled: !order.list.length || order.old.list.length }" @click="saveOrder">
|
||||
存单
|
||||
</div>
|
||||
<div class="btn relative" :class="{
|
||||
@@ -389,7 +389,7 @@
|
||||
<span class="prve-car-len" v-if="prveOrder.list.length">{{
|
||||
prveOrder.list.length
|
||||
}}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- <div
|
||||
class="btn"
|
||||
@@ -434,7 +434,11 @@
|
||||
:class="{ disabled: isCreateOrder }">
|
||||
{{ returnWaingAllText }}
|
||||
</div>
|
||||
|
||||
<div class="btn no-wrap u-font-12" @click="clicktransfertoPinpin()"
|
||||
v-if="table.name && useTypes.sel == 'dine-in'">
|
||||
转桌/并桌
|
||||
</div>
|
||||
<!-- -->
|
||||
<!-- <div
|
||||
class="btn"
|
||||
:class="{ disabled: order.old.list.length <= 0 }"
|
||||
@@ -1022,6 +1026,8 @@
|
||||
</popup-weight-goods>
|
||||
<!-- 可选套餐 -->
|
||||
<dialogpackage ref="refdialogpackage" @dialogpackageconfirm="dialogpackageconfirm"></dialogpackage>
|
||||
<!-- 并桌/转桌 -->
|
||||
<transfertoPinpin ref="refransfertoPinpin" @transfertoPinpin="xiadanClick"></transfertoPinpin>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1046,6 +1052,8 @@ import tuanQuanTable from "./components/tuan-quan-table.vue";
|
||||
import popupChooseGuazhang from "./components/popup-choose-guazhang.vue";
|
||||
import popupWeightGoods from "./components/popup-weight-goods.vue";
|
||||
import dialogpackage from "./components/dialogpackage.vue";
|
||||
import transfertoPinpin from "./components/transfertoPinpin.vue";
|
||||
|
||||
|
||||
|
||||
import dayjs from "dayjs";
|
||||
@@ -1122,7 +1130,8 @@ export default {
|
||||
cartItem,
|
||||
chooseDinersNumber,
|
||||
PopupChooseGuazhang,
|
||||
dialogpackage
|
||||
dialogpackage,
|
||||
transfertoPinpin
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -1902,7 +1911,7 @@ export default {
|
||||
},
|
||||
//套餐下单
|
||||
async dialogpackageconfirm(item, multipleSelection) {
|
||||
this.goodsClick(item, 1, true, multipleSelection.flatMap(subArray => subArray.map(item => item.proId)))
|
||||
this.goodsClick(item, 1, true, multipleSelection.flatMap(subArray => subArray.map(item => item.proId)))
|
||||
},
|
||||
//挂账人支付确认
|
||||
guazhangPayConfirm(guazhangren, price) {
|
||||
@@ -2039,7 +2048,7 @@ export default {
|
||||
},
|
||||
quansConfirm(e, goodsPayPriceMap) {
|
||||
console.log(e);
|
||||
// this.createOrder.discount = 1;
|
||||
// this.createOrder.discount = 1;
|
||||
this.points.selected = "";
|
||||
e.map((v, index) => {
|
||||
return {
|
||||
@@ -2881,7 +2890,18 @@ export default {
|
||||
// return { ...v, cart: JSON.parse(v.cart) };
|
||||
// });
|
||||
// },
|
||||
|
||||
clicktransfertoPinpin() {
|
||||
if (this.order.list.length < 0) {
|
||||
this.$message({
|
||||
message: '请先选择商品!',
|
||||
type: 'warning'
|
||||
})
|
||||
return false;
|
||||
}
|
||||
console.log(this.order, this.masterId, this.table.tableId, this.tableList)
|
||||
// 订单信息,取餐码,用餐类型,台桌列表,桌台号id
|
||||
this.$refs.refransfertoPinpin.open(this.order, this.masterId, this.table.tableId, this.tableList);
|
||||
},
|
||||
//右侧控制按钮点击事件
|
||||
async orderBtnsClick(key) {
|
||||
const orderGoods = this.order.list[this.order.selIndex];
|
||||
@@ -3438,8 +3458,8 @@ export default {
|
||||
},
|
||||
reset() {
|
||||
// this.goods.list = [];
|
||||
this.isAllWaitCall=false;
|
||||
this.selQuan=[];
|
||||
this.isAllWaitCall = false;
|
||||
this.selQuan = [];
|
||||
this.guazhangRen = "";
|
||||
this.order.status = "";
|
||||
this.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user