处理开台

This commit is contained in:
2026-01-11 01:49:45 +08:00
parent 9e957d5dea
commit a14a51d575
26 changed files with 2495 additions and 297 deletions

View File

@@ -24,6 +24,12 @@ if (!Math) {
const _sfc_main = {
__name: "orderAdd",
setup(__props) {
common_vendor.onLoad((options) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:233", "onLoad");
form.room_id = options.roomId;
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:236", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:237", options);
});
const visibleFeeTypePopup = common_vendor.ref(false);
const feeTypes = [
{
@@ -40,33 +46,32 @@ const _sfc_main = {
}
];
const onConfirmFeeType = (selectedValue) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:276", selectedValue);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:292", selectedValue);
form.fee_type_name = selectedValue.selectedOptions[0].label;
form.fee_type = selectedValue.selectedOptions[0].value;
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:279", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:295", form);
if (form.fee_type !== 3) {
getCombos();
}
visibleFeeTypePopup.value = false;
};
const getCombos = () => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:304", "获取套餐");
api_index.fetchCombos({
type: form.fee_type
}).then((res) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:308", res);
combos.value = res;
});
};
const visibleCombosPopup = common_vendor.ref(false);
const popupCombosVal = common_vendor.ref([]);
const combos = [
{
value: 1,
label: "美团中包套餐"
},
{
value: 2,
label: "美团小包套餐"
},
{
value: 3,
label: "美团小包套餐"
}
];
const combos = common_vendor.ref([]);
const onConfirmCombos = (selectedValue) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:305", selectedValue);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:323", selectedValue);
form.fee_combo_name = selectedValue.selectedOptions[0].label;
form.fee_combo_id = selectedValue.selectedOptions[0].value;
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:308", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:326", form);
visibleCombosPopup.value = false;
};
const visiblePaymentStatusPopup = common_vendor.ref(false);
@@ -90,23 +95,23 @@ const _sfc_main = {
popupPaymentTypeVal.value = type;
goodsPayIndex.value = index;
visiblePaymentStatusPopup.value = true;
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:338", type);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:354", type);
};
const onConfirmPaymentStatus = (selectedValue) => {
if (popupPaymentTypeVal.value == "fee") {
form.fee_pay_status_txt = selectedValue.selectedOptions[0].label;
form.payment_status = selectedValue.selectedOptions[0].value;
form.fee_pay_status = selectedValue.selectedOptions[0].value;
}
if (popupPaymentTypeVal.value == "over") {
form.over_pay_status_txt = selectedValue.selectedOptions[0].label;
form.over_pay_status = selectedValue.selectedOptions[0].value;
}
if (popupPaymentTypeVal.value == "goods" && goodsPayIndex.value >= 0) {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:352", "处理商品支付状态", goodsPayIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:368", "处理商品支付状态", goodsPayIndex.value);
orderGoods.value[goodsPayIndex.value].goods_pay_status_txt = selectedValue.selectedOptions[0].label;
orderGoods.value[goodsPayIndex.value].goods_pay_status = selectedValue.selectedOptions[0].value;
}
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:357", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:372", form);
visiblePaymentStatusPopup.value = false;
popupPaymentTypeVal.value = "";
goodsPayIndex.value = -1;
@@ -126,7 +131,7 @@ const _sfc_main = {
const goodsPayIndex = common_vendor.ref(0);
const goodsIndex = common_vendor.ref(0);
const addGoods = () => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:384", orderGoods.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:399", orderGoods.value);
orderGoods.value.push({
goods_type_name: null,
goods_type_id: null,
@@ -152,12 +157,12 @@ const _sfc_main = {
}
});
const onGoodsChange = (...args) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:412", "onGoodsChange", args);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:427", "onGoodsChange", args);
};
const onGoodsPathChange = (args) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:416", "onGoodsPathChange", args);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:417", "goodsIndex", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:418", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:431", "onGoodsPathChange", args);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:432", "goodsIndex", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:433", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
orderGoods.value[goodsIndex.value].goods_type_name = null;
orderGoods.value[goodsIndex.value].goods_type_id = null;
orderGoods.value[goodsIndex.value].goods_name = null;
@@ -172,11 +177,11 @@ const _sfc_main = {
orderGoods.value[goodsIndex.value].goods_id = args[1].value;
orderGoods.value[goodsIndex.value].goods_price = args[1].goods_price;
}
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:434", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:449", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
};
const onCloseGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:437", "onCloseGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:438", "goodsIndex.value", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:452", "onCloseGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:453", "goodsIndex.value", goodsIndex.value);
if (orderGoods.value[goodsIndex.value].goods_type_id && orderGoods.value[goodsIndex.value].goods_id) {
orderGoods.value[goodsIndex.value].cascader_val = [
orderGoods.value[goodsIndex.value].goods_type_id,
@@ -184,17 +189,18 @@ const _sfc_main = {
];
}
goodsIndex.value = 0;
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:446", "goodsIndex.value", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:461", "goodsIndex.value", goodsIndex.value);
};
const onOpenGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:449", "onOpenGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:450", "goodsIndex.value", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:464", "onOpenGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:465", "goodsIndex.value", goodsIndex.value);
};
const form = common_vendor.reactive({
// room_id: 0,
// room_name: '选择房间',
order_type: 1,
// 开台订单
room_id: 0,
fee_type: 0,
fee_type_name: "选择方式",
fee_type_name: "选择",
fee_combo_id: 0,
// 套餐费用ID
fee_combo_name: "请选择",
@@ -223,7 +229,14 @@ const _sfc_main = {
});
});
const submitForm = () => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:497", "提交的订单数据:", orderGoods.value);
let data = {
order_goods: orderGoods.value,
order: form
};
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:516", "提交的订单数据:", data);
api_index.fetchAddOrder(data).then((res) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:519", res);
});
};
return (_ctx, _cache) => {
return common_vendor.e({
@@ -370,7 +383,7 @@ const _sfc_main = {
W: common_vendor.o(($event) => visibleCombosPopup.value = false),
X: common_vendor.o(($event) => popupCombosVal.value = $event),
Y: common_vendor.p({
columns: combos,
columns: combos.value,
["field-names"]: {
text: "label",
value: "value"