处理订单

This commit is contained in:
2026-01-16 03:47:05 +08:00
parent ff07af055f
commit 3fb9b37708
14 changed files with 376 additions and 907 deletions

View File

@@ -286,11 +286,11 @@ const _sfc_main = {
}, form.fee_type == 1 || form.fee_type == 2 ? {} : {}, {
o: form.fee_type == 1 || form.fee_type == 2
}, form.fee_type == 1 || form.fee_type == 2 ? {
p: common_vendor.o(($event) => form.often = $event),
p: common_vendor.o(($event) => form.over_often = $event),
q: common_vendor.p({
placeholder: "请输入小时",
type: "number",
modelValue: form.often
modelValue: form.over_often
}),
r: common_vendor.p({
["label-position"]: "top"

View File

@@ -42,6 +42,7 @@ const _sfc_main = {
form.fee_type_name = res.fee_type.text;
form.fee_combo_id = res.fee_combo_id;
form.fee_combo_name = res.fee_combo_name;
form.fee_combo_price = res.fee_combo_price;
form.fee_amount = res.fee_amount;
form.fee_pay_status = res.fee_pay_status.value;
form.fee_pay_status_txt = res.fee_pay_status.text;
@@ -73,21 +74,21 @@ const _sfc_main = {
}
];
const onConfirmFeeType = (selectedValue) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:281", selectedValue);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:282", selectedValue);
form.fee_type_name = selectedValue.selectedOptions[0].label;
form.fee_type = selectedValue.selectedOptions[0].value;
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:284", form);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:285", form);
if (form.fee_type !== 3) {
getCombos();
}
visibleFeeTypePopup.value = false;
};
const getCombos = () => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:293", "获取套餐");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:294", "获取套餐");
api_index.fetchCombos({
type: form.fee_type
}).then((res) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:297", res);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:298", res);
combos.value = res;
});
};
@@ -95,11 +96,11 @@ const _sfc_main = {
const popupCombosVal = common_vendor.ref([]);
const combos = common_vendor.ref([]);
const onConfirmCombos = (selectedValue) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:312", selectedValue);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:313", selectedValue);
form.fee_combo_name = selectedValue.selectedOptions[0].label;
form.fee_combo_id = selectedValue.selectedOptions[0].value;
form.fee_combo_price = selectedValue.selectedOptions[0].combo_price;
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:316", form);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:317", form);
visibleCombosPopup.value = false;
};
const visiblePaymentStatusPopup = common_vendor.ref(false);
@@ -123,7 +124,7 @@ const _sfc_main = {
popupPaymentTypeVal.value = type;
goodsPayIndex.value = index;
visiblePaymentStatusPopup.value = true;
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:344", type);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:345", type);
};
const onConfirmPaymentStatus = (selectedValue) => {
if (popupPaymentTypeVal.value == "fee") {
@@ -135,11 +136,11 @@ const _sfc_main = {
form.over_pay_status = selectedValue.selectedOptions[0].value;
}
if (popupPaymentTypeVal.value == "goods" && goodsPayIndex.value >= 0) {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:359", "处理商品支付状态", goodsPayIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:360", "处理商品支付状态", 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/orderEdit.vue:363", form);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:364", form);
visiblePaymentStatusPopup.value = false;
popupPaymentTypeVal.value = "";
goodsPayIndex.value = -1;
@@ -159,7 +160,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/orderEdit.vue:390", orderGoods.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:391", orderGoods.value);
orderGoods.value.push({
goods_type_name: null,
goods_type_id: null,
@@ -185,12 +186,12 @@ const _sfc_main = {
}
});
const onGoodsChange = (...args) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:418", "onGoodsChange", args);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:419", "onGoodsChange", args);
};
const onGoodsPathChange = (args) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:422", "onGoodsPathChange", args);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:423", "goodsIndex", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:424", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:423", "onGoodsPathChange", args);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:424", "goodsIndex", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:425", "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;
@@ -205,11 +206,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/orderEdit.vue:440", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:441", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
};
const onCloseGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:443", "onCloseGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:444", "goodsIndex.value", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:444", "onCloseGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:445", "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,
@@ -217,11 +218,11 @@ const _sfc_main = {
];
}
goodsIndex.value = 0;
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:452", "goodsIndex.value", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:453", "goodsIndex.value", goodsIndex.value);
};
const onOpenGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:455", "onOpenGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:456", "goodsIndex.value", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:456", "onOpenGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:457", "goodsIndex.value", goodsIndex.value);
};
const form = common_vendor.reactive({
order_type: 1,
@@ -263,9 +264,9 @@ const _sfc_main = {
order: form,
flag
};
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:502", "提交的订单数据:", data);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:503", "提交的订单数据:", data);
api_index.fetchEditOrder(data).then((res) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:504", res);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:505", res);
common_vendor.index.showToast({
icon: "none",
title: "更新账单成功"