更新订单
This commit is contained in:
@@ -58,6 +58,15 @@ export function fetchAddOrder(data : {}) {
|
||||
});
|
||||
}
|
||||
|
||||
// 开台/商品订单
|
||||
export function fetchEditOrder(data : {}) {
|
||||
return request({
|
||||
url: '/index/editOrder',
|
||||
data: data,
|
||||
method: 'POST'
|
||||
});
|
||||
}
|
||||
|
||||
// 房间订单详情
|
||||
export function fetchRoomOrder(roomId : Number) {
|
||||
return request({
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
</template>
|
||||
</nut-form-item>
|
||||
<nut-form-item label="备注">
|
||||
<nut-textarea v-model="form.remarks" :rows="3" adjust-keyboard-to="bottom"
|
||||
<nut-textarea v-model="form.remarks" :rows="3"
|
||||
placeholder="请输入备注"></nut-textarea>
|
||||
</nut-form-item>
|
||||
</nut-form>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<nut-input v-model="form.tel" placeholder="请输入尾号"></nut-input>
|
||||
</nut-form-item>
|
||||
<nut-form-item label="备注">
|
||||
<nut-textarea v-model="form.remarks" :rows="3" :adjust-keyboard-to="bottom"
|
||||
<nut-textarea v-model="form.remarks" :rows="3"
|
||||
placeholder="请输入备注"></nut-textarea>
|
||||
</nut-form-item>
|
||||
</nut-form>
|
||||
|
||||
@@ -57,8 +57,8 @@
|
||||
|
||||
|
||||
|
||||
<view class="title">超时收费 </view>
|
||||
<nut-form>
|
||||
<view class="title" v-if="form.fee_type==1 || form.fee_type==2 ">超时收费 </view>
|
||||
<nut-form v-if="form.fee_type==1 || form.fee_type==2 ">
|
||||
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
||||
<view class="inline-form">
|
||||
<!-- 台费类型选择 -->
|
||||
@@ -91,15 +91,9 @@
|
||||
|
||||
|
||||
<view class="title">商品 </view>
|
||||
<view class="top-bar">
|
||||
<nut-button type="primary" plain size="small" @click="addGoods">新增商品</nut-button>
|
||||
</view>
|
||||
<nut-form>
|
||||
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
||||
<view class="inline-goods-form" v-for="(item, index) in orderGoods" :key="index">
|
||||
|
||||
<view class="form-row">
|
||||
<!-- 台费类型选择 -->
|
||||
<nut-form-item label-position="top">
|
||||
<template v-slot:label>商品</template>
|
||||
<template v-slot:default>
|
||||
@@ -111,8 +105,6 @@
|
||||
</view>
|
||||
</template>
|
||||
</nut-form-item>
|
||||
|
||||
<!-- 套餐选择 -->
|
||||
<nut-form-item label-position="top">
|
||||
<template v-slot:label>售价</template>
|
||||
<template v-slot:default>
|
||||
@@ -122,10 +114,7 @@
|
||||
</template>
|
||||
</nut-form-item>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="form-row">
|
||||
<!-- 支付状态选择 -->
|
||||
<nut-form-item label-position="top">
|
||||
<template v-slot:label>支付状态</template>
|
||||
<template v-slot:default>
|
||||
@@ -134,7 +123,6 @@
|
||||
</view>
|
||||
</template>
|
||||
</nut-form-item>
|
||||
<!-- 套餐选择 -->
|
||||
<nut-form-item label-position="top">
|
||||
<template v-slot:label>操作</template>
|
||||
<template v-slot:default>
|
||||
@@ -144,12 +132,11 @@
|
||||
</template>
|
||||
</nut-form-item>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</nut-form>
|
||||
</nut-form>
|
||||
<view class="top-bar">
|
||||
<nut-button type="primary" plain size="small" @click="addGoods">新增商品</nut-button>
|
||||
</view>
|
||||
|
||||
<view class="title">订单优惠 </view>
|
||||
|
||||
@@ -161,8 +148,7 @@
|
||||
</template>
|
||||
</nut-form-item>
|
||||
<nut-form-item label="备注">
|
||||
<nut-textarea v-model="form.remarks" :rows="3" :adjust-keyboard-to="bottom"
|
||||
placeholder="请输入备注"></nut-textarea>
|
||||
<nut-textarea v-model="form.remarks" :rows="3" placeholder="请输入备注"></nut-textarea>
|
||||
</nut-form-item>
|
||||
</nut-form>
|
||||
|
||||
@@ -460,10 +446,7 @@
|
||||
over_pay_status_txt: "请选择", // 超时支付状态
|
||||
|
||||
discount_amount: null, // 优惠金额
|
||||
|
||||
remarks: null
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
|
||||
|
||||
|
||||
<view class="title">超时收费 </view>
|
||||
<nut-form>
|
||||
<view class="title" v-if="form.fee_type==1 || form.fee_type==2 ">超时收费 </view>
|
||||
<nut-form v-if="form.fee_type==1 || form.fee_type==2 ">
|
||||
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
||||
<view class="inline-form">
|
||||
<!-- 台费类型选择 -->
|
||||
@@ -82,15 +82,9 @@
|
||||
|
||||
|
||||
<view class="title">商品 </view>
|
||||
<view class="top-bar">
|
||||
<nut-button type="primary" plain size="small" @click="addGoods">新增商品</nut-button>
|
||||
</view>
|
||||
<nut-form>
|
||||
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
||||
<view class="inline-goods-form" v-for="(item, index) in orderGoods" :key="index">
|
||||
|
||||
<view class="form-row">
|
||||
<!-- 台费类型选择 -->
|
||||
<nut-form-item label-position="top">
|
||||
<template v-slot:label>商品</template>
|
||||
<template v-slot:default>
|
||||
@@ -102,8 +96,6 @@
|
||||
</view>
|
||||
</template>
|
||||
</nut-form-item>
|
||||
|
||||
<!-- 套餐选择 -->
|
||||
<nut-form-item label-position="top">
|
||||
<template v-slot:label>售价</template>
|
||||
<template v-slot:default>
|
||||
@@ -113,10 +105,7 @@
|
||||
</template>
|
||||
</nut-form-item>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="form-row">
|
||||
<!-- 支付状态选择 -->
|
||||
<nut-form-item label-position="top">
|
||||
<template v-slot:label>支付状态</template>
|
||||
<template v-slot:default>
|
||||
@@ -125,7 +114,6 @@
|
||||
</view>
|
||||
</template>
|
||||
</nut-form-item>
|
||||
<!-- 套餐选择 -->
|
||||
<nut-form-item label-position="top">
|
||||
<template v-slot:label>操作</template>
|
||||
<template v-slot:default>
|
||||
@@ -135,12 +123,11 @@
|
||||
</template>
|
||||
</nut-form-item>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</nut-form>
|
||||
</nut-form>
|
||||
<view class="top-bar">
|
||||
<nut-button type="primary" plain size="small" @click="addGoods">新增商品</nut-button>
|
||||
</view>
|
||||
|
||||
<view class="title">订单优惠 </view>
|
||||
|
||||
@@ -152,7 +139,7 @@
|
||||
</template>
|
||||
</nut-form-item>
|
||||
<nut-form-item label="备注">
|
||||
<nut-textarea v-model="form.remarks" :rows="3" :adjust-keyboard-to="bottom"
|
||||
<nut-textarea v-model="form.remarks" :rows="3"
|
||||
placeholder="请输入备注"></nut-textarea>
|
||||
</nut-form-item>
|
||||
</nut-form>
|
||||
@@ -225,7 +212,8 @@
|
||||
import {
|
||||
fetchCombos,
|
||||
fetchGoods,
|
||||
fetchAddOrder,
|
||||
fetchAddOrder,
|
||||
fetchEditOrder,
|
||||
fetchRoomOrder,
|
||||
} from '@/api/index';
|
||||
|
||||
@@ -264,7 +252,11 @@
|
||||
form.discount_amount = res.discount_amount
|
||||
form.remarks = res.remarks
|
||||
|
||||
orderGoods.value = res.goods
|
||||
orderGoods.value = res.goods
|
||||
|
||||
if (form.fee_type !== 3) {
|
||||
getCombos();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -509,22 +501,22 @@
|
||||
|
||||
// 提交表单
|
||||
const submitForm = () => {
|
||||
// const formData = {
|
||||
// room: room.value,
|
||||
// feeType: feeType.value,
|
||||
// selectedPackage: selectedPackage.value,
|
||||
// amount: amount.value,
|
||||
// paymentStatus: paymentStatus.value
|
||||
// };
|
||||
let data = {
|
||||
order_goods: orderGoods.value,
|
||||
order: form
|
||||
}
|
||||
console.log('提交的订单数据:', data);
|
||||
// console.log('提交的订单数据:', form);
|
||||
fetchAddOrder(data).then(res => {
|
||||
console.log(res);
|
||||
// selectGoods.value = res;
|
||||
fetchEditOrder(data).then(res => {
|
||||
console.log(res);
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '更新账单成功'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/index/index'
|
||||
});
|
||||
}, 500)
|
||||
})
|
||||
|
||||
};
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["api/index.ts"],"sourcesContent":["import { request } from \"./request\";\n\n// export function fetchNavList () {\n// \treturn request({\n// \t\turl:'/index/nav_list'\n// \t})\n// }\n\n\n\n\n// 获取商品\nexport function fetchGoods () {\n\treturn request({\n\t\turl:'/index/goods',\n\t})\n}\n// 获取套餐\nexport function fetchCombos(data : {}) {\n\treturn request({\n\t\turl: '/index/combos',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n// 获取房间\nexport function fetchRooms(data : {}) {\n\treturn request({\n\t\turl: '/index/rooms',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n\n// 预约\nexport function fetchBooking(data : {}) {\n\treturn request({\n\t\turl: '/index/booking',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n// 取消预约\nexport function fetchUnBooking(data : {}) {\n\treturn request({\n\t\turl: '/index/unbooking',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n\n// 开台/商品订单\nexport function fetchAddOrder(data : {}) {\n\treturn request({\n\t\turl: '/index/addOrder',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n\n// 房间订单详情\r\nexport function fetchRoomOrder(roomId : Number) {\r\n\treturn request({\r\n\t\turl: '/index/roomOrder',\r\n\t\tdata: { roomId: roomId },\r\n\t})\r\n}\r\n"],"names":["request"],"mappings":";;AAYO,SAAS,aAAc;AAC7B,SAAOA,oBAAQ;AAAA,IACd,KAAI;AAAA,EAAA,CACJ;AACF;AAEO,SAAS,YAAY,MAAW;AACtC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAEO,SAAS,WAAW,MAAW;AACrC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAGO,SAAS,aAAa,MAAW;AACvC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAEO,SAAS,eAAe,MAAW;AACzC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAGO,SAAS,cAAc,MAAW;AACxC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAGO,SAAS,eAAe,QAAiB;AAC/C,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL,MAAM,EAAE,OAAe;AAAA,EAAA,CACvB;AACF;;;;;;;;"}
|
||||
{"version":3,"file":"index.js","sources":["api/index.ts"],"sourcesContent":["import { request } from \"./request\";\n\n// export function fetchNavList () {\n// \treturn request({\n// \t\turl:'/index/nav_list'\n// \t})\n// }\n\n\n\n\n// 获取商品\nexport function fetchGoods () {\n\treturn request({\n\t\turl:'/index/goods',\n\t})\n}\n// 获取套餐\nexport function fetchCombos(data : {}) {\n\treturn request({\n\t\turl: '/index/combos',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n// 获取房间\nexport function fetchRooms(data : {}) {\n\treturn request({\n\t\turl: '/index/rooms',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n\n// 预约\nexport function fetchBooking(data : {}) {\n\treturn request({\n\t\turl: '/index/booking',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n// 取消预约\nexport function fetchUnBooking(data : {}) {\n\treturn request({\n\t\turl: '/index/unbooking',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n\n// 开台/商品订单\nexport function fetchAddOrder(data : {}) {\n\treturn request({\n\t\turl: '/index/addOrder',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n\n// 开台/商品订单\nexport function fetchEditOrder(data : {}) {\n\treturn request({\n\t\turl: '/index/editOrder',\n\t\tdata: data,\n\t\tmethod: 'POST'\n\t});\n}\n\n// 房间订单详情\r\nexport function fetchRoomOrder(roomId : Number) {\r\n\treturn request({\r\n\t\turl: '/index/roomOrder',\r\n\t\tdata: { roomId: roomId },\r\n\t})\r\n}\r\n"],"names":["request"],"mappings":";;AAYO,SAAS,aAAc;AAC7B,SAAOA,oBAAQ;AAAA,IACd,KAAI;AAAA,EAAA,CACJ;AACF;AAEO,SAAS,YAAY,MAAW;AACtC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAEO,SAAS,WAAW,MAAW;AACrC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAGO,SAAS,aAAa,MAAW;AACvC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAEO,SAAS,eAAe,MAAW;AACzC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAGO,SAAS,cAAc,MAAW;AACxC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAGO,SAAS,eAAe,MAAW;AACzC,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,EAAA,CACR;AACF;AAGO,SAAS,eAAe,QAAiB;AAC/C,SAAOA,oBAAQ;AAAA,IACd,KAAK;AAAA,IACL,MAAM,EAAE,OAAe;AAAA,EAAA,CACvB;AACF;;;;;;;;;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8
unpackage/dist/dev/mp-weixin/api/index.js
vendored
8
unpackage/dist/dev/mp-weixin/api/index.js
vendored
@@ -40,6 +40,13 @@ function fetchAddOrder(data) {
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
function fetchEditOrder(data) {
|
||||
return api_request.request({
|
||||
url: "/index/editOrder",
|
||||
data,
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
function fetchRoomOrder(roomId) {
|
||||
return api_request.request({
|
||||
url: "/index/roomOrder",
|
||||
@@ -49,6 +56,7 @@ function fetchRoomOrder(roomId) {
|
||||
exports.fetchAddOrder = fetchAddOrder;
|
||||
exports.fetchBooking = fetchBooking;
|
||||
exports.fetchCombos = fetchCombos;
|
||||
exports.fetchEditOrder = fetchEditOrder;
|
||||
exports.fetchGoods = fetchGoods;
|
||||
exports.fetchRoomOrder = fetchRoomOrder;
|
||||
exports.fetchRooms = fetchRooms;
|
||||
|
||||
@@ -221,7 +221,6 @@ const _sfc_main = {
|
||||
k: common_vendor.o(($event) => form.remarks = $event),
|
||||
l: common_vendor.p({
|
||||
rows: 3,
|
||||
["adjust-keyboard-to"]: "bottom",
|
||||
placeholder: "请输入备注",
|
||||
modelValue: form.remarks
|
||||
}),
|
||||
|
||||
@@ -182,7 +182,6 @@ const _sfc_main = {
|
||||
i: common_vendor.o(($event) => form.remarks = $event),
|
||||
j: common_vendor.p({
|
||||
rows: 3,
|
||||
["adjust-keyboard-to"]: _ctx.bottom,
|
||||
placeholder: "请输入备注",
|
||||
modelValue: form.remarks
|
||||
}),
|
||||
|
||||
156
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.js
vendored
156
unpackage/dist/dev/mp-weixin/pages/index/orderAdd.js
vendored
@@ -27,10 +27,10 @@ const _sfc_main = {
|
||||
__name: "orderAdd",
|
||||
setup(__props) {
|
||||
common_vendor.onLoad((options) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:237", "onLoad");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:223", "onLoad");
|
||||
form.room_id = options.roomId;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:240", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:241", options);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:226", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:227", options);
|
||||
});
|
||||
const visibleFeeTypePopup = common_vendor.ref(false);
|
||||
const feeTypes = [
|
||||
@@ -48,21 +48,21 @@ const _sfc_main = {
|
||||
}
|
||||
];
|
||||
const onConfirmFeeType = (selectedValue) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:268", selectedValue);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:254", 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:271", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:257", form);
|
||||
if (form.fee_type !== 3) {
|
||||
getCombos();
|
||||
}
|
||||
visibleFeeTypePopup.value = false;
|
||||
};
|
||||
const getCombos = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:279", "获取套餐");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:265", "获取套餐");
|
||||
api_index.fetchCombos({
|
||||
type: form.fee_type
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:283", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:269", res);
|
||||
combos.value = res;
|
||||
});
|
||||
};
|
||||
@@ -70,10 +70,10 @@ const _sfc_main = {
|
||||
const popupCombosVal = common_vendor.ref([]);
|
||||
const combos = common_vendor.ref([]);
|
||||
const onConfirmCombos = (selectedValue) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:298", selectedValue);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:284", 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:301", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:287", form);
|
||||
visibleCombosPopup.value = false;
|
||||
};
|
||||
const visiblePaymentStatusPopup = common_vendor.ref(false);
|
||||
@@ -97,7 +97,7 @@ const _sfc_main = {
|
||||
popupPaymentTypeVal.value = type;
|
||||
goodsPayIndex.value = index;
|
||||
visiblePaymentStatusPopup.value = true;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:329", type);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:315", type);
|
||||
};
|
||||
const onConfirmPaymentStatus = (selectedValue) => {
|
||||
if (popupPaymentTypeVal.value == "fee") {
|
||||
@@ -109,11 +109,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/orderAdd.vue:343", "处理商品支付状态", goodsPayIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:329", "处理商品支付状态", 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:347", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:333", form);
|
||||
visiblePaymentStatusPopup.value = false;
|
||||
popupPaymentTypeVal.value = "";
|
||||
goodsPayIndex.value = -1;
|
||||
@@ -133,7 +133,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:374", orderGoods.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:360", orderGoods.value);
|
||||
orderGoods.value.push({
|
||||
goods_type_name: null,
|
||||
goods_type_id: null,
|
||||
@@ -159,12 +159,12 @@ const _sfc_main = {
|
||||
}
|
||||
});
|
||||
const onGoodsChange = (...args) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:402", "onGoodsChange", args);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:388", "onGoodsChange", args);
|
||||
};
|
||||
const onGoodsPathChange = (args) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:406", "onGoodsPathChange", args);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:407", "goodsIndex", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:408", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:392", "onGoodsPathChange", args);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:393", "goodsIndex", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:394", "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;
|
||||
@@ -179,11 +179,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:424", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:410", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||
};
|
||||
const onCloseGoodsCascader = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:427", "onCloseGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:428", "goodsIndex.value", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:413", "onCloseGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:414", "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,
|
||||
@@ -191,11 +191,11 @@ const _sfc_main = {
|
||||
];
|
||||
}
|
||||
goodsIndex.value = 0;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:436", "goodsIndex.value", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:422", "goodsIndex.value", goodsIndex.value);
|
||||
};
|
||||
const onOpenGoodsCascader = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:439", "onOpenGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:440", "goodsIndex.value", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:425", "onOpenGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:426", "goodsIndex.value", goodsIndex.value);
|
||||
};
|
||||
const form = common_vendor.reactive({
|
||||
order_type: 1,
|
||||
@@ -236,9 +236,9 @@ const _sfc_main = {
|
||||
order_goods: orderGoods.value,
|
||||
order: form
|
||||
};
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:486", "提交的订单数据:", data);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:469", "提交的订单数据:", data);
|
||||
api_index.fetchAddOrder(data).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:489", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:472", res);
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "开台成功"
|
||||
@@ -280,35 +280,34 @@ const _sfc_main = {
|
||||
m: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
n: common_vendor.o(($event) => form.often = $event),
|
||||
o: common_vendor.p({
|
||||
n: form.fee_type == 1 || form.fee_type == 2
|
||||
}, 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),
|
||||
q: common_vendor.p({
|
||||
placeholder: "请输入小时",
|
||||
type: "number",
|
||||
modelValue: form.often
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
r: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
q: common_vendor.o(($event) => form.over_amount = $event),
|
||||
r: common_vendor.p({
|
||||
s: common_vendor.o(($event) => form.over_amount = $event),
|
||||
t: common_vendor.p({
|
||||
placeholder: "请输入金额",
|
||||
type: "number",
|
||||
modelValue: form.over_amount
|
||||
}),
|
||||
s: common_vendor.p({
|
||||
v: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
t: common_vendor.t(form.over_pay_status_txt),
|
||||
v: common_vendor.o(($event) => openPayStatusPopup("over")),
|
||||
w: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
x: common_vendor.o(addGoods),
|
||||
w: common_vendor.t(form.over_pay_status_txt),
|
||||
x: common_vendor.o(($event) => openPayStatusPopup("over")),
|
||||
y: common_vendor.p({
|
||||
type: "primary",
|
||||
plain: true,
|
||||
size: "small"
|
||||
}),
|
||||
["label-position"]: "top"
|
||||
})
|
||||
} : {}, {
|
||||
z: common_vendor.f(orderGoods.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.goods_type_name && item.goods_name
|
||||
@@ -320,15 +319,15 @@ const _sfc_main = {
|
||||
visibleGoodsCascader.value = true;
|
||||
goodsIndex.value = index;
|
||||
}, index),
|
||||
e: "528154d3-14-" + i0 + ",528154d3-13",
|
||||
e: "528154d3-13-" + i0 + ",528154d3-12",
|
||||
f: common_vendor.t(item.goods_price),
|
||||
g: "528154d3-15-" + i0 + ",528154d3-13",
|
||||
g: "528154d3-14-" + i0 + ",528154d3-12",
|
||||
h: common_vendor.t(item.goods_pay_status_txt),
|
||||
i: common_vendor.o(($event) => openPayStatusPopup("goods", index), index),
|
||||
j: "528154d3-16-" + i0 + ",528154d3-13",
|
||||
j: "528154d3-15-" + i0 + ",528154d3-12",
|
||||
k: common_vendor.o(($event) => removeGoods(index), index),
|
||||
l: "528154d3-18-" + i0 + "," + ("528154d3-17-" + i0),
|
||||
m: "528154d3-17-" + i0 + ",528154d3-13",
|
||||
l: "528154d3-17-" + i0 + "," + ("528154d3-16-" + i0),
|
||||
m: "528154d3-16-" + i0 + ",528154d3-12",
|
||||
n: index
|
||||
});
|
||||
}),
|
||||
@@ -348,34 +347,39 @@ const _sfc_main = {
|
||||
E: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
F: common_vendor.o(($event) => form.discount_amount = $event),
|
||||
F: common_vendor.o(addGoods),
|
||||
G: common_vendor.p({
|
||||
type: "primary",
|
||||
plain: true,
|
||||
size: "small"
|
||||
}),
|
||||
H: common_vendor.o(($event) => form.discount_amount = $event),
|
||||
I: common_vendor.p({
|
||||
placeholder: "请输入金额",
|
||||
type: "number",
|
||||
modelValue: form.discount_amount
|
||||
}),
|
||||
H: common_vendor.o(($event) => form.remarks = $event),
|
||||
I: common_vendor.p({
|
||||
J: common_vendor.o(($event) => form.remarks = $event),
|
||||
K: common_vendor.p({
|
||||
rows: 3,
|
||||
["adjust-keyboard-to"]: _ctx.bottom,
|
||||
placeholder: "请输入备注",
|
||||
modelValue: form.remarks
|
||||
}),
|
||||
J: common_vendor.p({
|
||||
L: common_vendor.p({
|
||||
label: "备注"
|
||||
}),
|
||||
K: common_vendor.o(submitForm),
|
||||
L: common_vendor.p({
|
||||
M: common_vendor.o(submitForm),
|
||||
N: common_vendor.p({
|
||||
type: "primary",
|
||||
block: true
|
||||
}),
|
||||
M: common_vendor.o(onGoodsChange),
|
||||
N: common_vendor.o(onGoodsPathChange),
|
||||
O: common_vendor.o(onOpenGoodsCascader),
|
||||
P: common_vendor.o(onCloseGoodsCascader),
|
||||
Q: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
||||
R: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
||||
S: common_vendor.p({
|
||||
O: common_vendor.o(onGoodsChange),
|
||||
P: common_vendor.o(onGoodsPathChange),
|
||||
Q: common_vendor.o(onOpenGoodsCascader),
|
||||
R: common_vendor.o(onCloseGoodsCascader),
|
||||
S: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
||||
T: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
||||
U: common_vendor.p({
|
||||
title: "商品选择",
|
||||
["text-key"]: "label",
|
||||
["value-key"]: "value",
|
||||
@@ -385,9 +389,9 @@ const _sfc_main = {
|
||||
visible: visibleGoodsCascader.value,
|
||||
modelValue: cascaderGoodsValue.value
|
||||
}),
|
||||
T: common_vendor.o(onConfirmPaymentStatus),
|
||||
U: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
||||
V: common_vendor.p({
|
||||
V: common_vendor.o(onConfirmPaymentStatus),
|
||||
W: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
||||
X: common_vendor.p({
|
||||
columns: paymentStatuses,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
@@ -395,16 +399,16 @@ const _sfc_main = {
|
||||
},
|
||||
title: "选择支付状态"
|
||||
}),
|
||||
W: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
||||
X: common_vendor.p({
|
||||
Y: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
||||
Z: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visiblePaymentStatusPopup.value
|
||||
}),
|
||||
Y: common_vendor.o(onConfirmCombos),
|
||||
Z: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
||||
aa: common_vendor.o(($event) => popupCombosVal.value = $event),
|
||||
ab: common_vendor.p({
|
||||
aa: common_vendor.o(onConfirmCombos),
|
||||
ab: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
||||
ac: common_vendor.o(($event) => popupCombosVal.value = $event),
|
||||
ad: common_vendor.p({
|
||||
columns: combos.value,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
@@ -413,15 +417,15 @@ const _sfc_main = {
|
||||
title: "选择团购套餐",
|
||||
modelValue: popupCombosVal.value
|
||||
}),
|
||||
ac: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
||||
ad: common_vendor.p({
|
||||
ae: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
||||
af: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visibleCombosPopup.value
|
||||
}),
|
||||
ae: common_vendor.o(onConfirmFeeType),
|
||||
af: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
||||
ag: common_vendor.p({
|
||||
ag: common_vendor.o(onConfirmFeeType),
|
||||
ah: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
||||
ai: common_vendor.p({
|
||||
columns: feeTypes,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
@@ -429,8 +433,8 @@ const _sfc_main = {
|
||||
},
|
||||
title: "选择结算方式"
|
||||
}),
|
||||
ah: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
||||
ai: common_vendor.p({
|
||||
aj: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
||||
ak: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visibleFeeTypePopup.value
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -27,15 +27,15 @@ const _sfc_main = {
|
||||
__name: "orderEdit",
|
||||
setup(__props) {
|
||||
common_vendor.onLoad((options) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:233", "onLoad");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:221", "onLoad");
|
||||
form.room_id = options.roomId;
|
||||
getRoomOrder();
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:240", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:241", options);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:228", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:229", options);
|
||||
});
|
||||
const getRoomOrder = () => {
|
||||
api_index.fetchRoomOrder(form.room_id).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:247", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:235", res);
|
||||
form.room_id = res.room_id;
|
||||
form.order_type = res.order_type;
|
||||
form.fee_type = res.fee_type.value;
|
||||
@@ -52,6 +52,9 @@ const _sfc_main = {
|
||||
form.discount_amount = res.discount_amount;
|
||||
form.remarks = res.remarks;
|
||||
orderGoods.value = res.goods;
|
||||
if (form.fee_type !== 3) {
|
||||
getCombos();
|
||||
}
|
||||
});
|
||||
};
|
||||
const visibleFeeTypePopup = common_vendor.ref(false);
|
||||
@@ -70,21 +73,21 @@ const _sfc_main = {
|
||||
}
|
||||
];
|
||||
const onConfirmFeeType = (selectedValue) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:298", selectedValue);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:290", 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:301", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:293", form);
|
||||
if (form.fee_type !== 3) {
|
||||
getCombos();
|
||||
}
|
||||
visibleFeeTypePopup.value = false;
|
||||
};
|
||||
const getCombos = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:310", "获取套餐");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:302", "获取套餐");
|
||||
api_index.fetchCombos({
|
||||
type: form.fee_type
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:314", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:306", res);
|
||||
combos.value = res;
|
||||
});
|
||||
};
|
||||
@@ -92,10 +95,10 @@ 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:329", selectedValue);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:321", 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/orderEdit.vue:332", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:324", form);
|
||||
visibleCombosPopup.value = false;
|
||||
};
|
||||
const visiblePaymentStatusPopup = common_vendor.ref(false);
|
||||
@@ -119,7 +122,7 @@ const _sfc_main = {
|
||||
popupPaymentTypeVal.value = type;
|
||||
goodsPayIndex.value = index;
|
||||
visiblePaymentStatusPopup.value = true;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:360", type);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:352", type);
|
||||
};
|
||||
const onConfirmPaymentStatus = (selectedValue) => {
|
||||
if (popupPaymentTypeVal.value == "fee") {
|
||||
@@ -131,11 +134,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:375", "处理商品支付状态", goodsPayIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:367", "处理商品支付状态", 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:379", form);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:371", form);
|
||||
visiblePaymentStatusPopup.value = false;
|
||||
popupPaymentTypeVal.value = "";
|
||||
goodsPayIndex.value = -1;
|
||||
@@ -155,7 +158,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:406", orderGoods.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:398", orderGoods.value);
|
||||
orderGoods.value.push({
|
||||
goods_type_name: null,
|
||||
goods_type_id: null,
|
||||
@@ -181,12 +184,12 @@ const _sfc_main = {
|
||||
}
|
||||
});
|
||||
const onGoodsChange = (...args) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:434", "onGoodsChange", args);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:426", "onGoodsChange", args);
|
||||
};
|
||||
const onGoodsPathChange = (args) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:438", "onGoodsPathChange", args);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:439", "goodsIndex", goodsIndex.value);
|
||||
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:430", "onGoodsPathChange", args);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:431", "goodsIndex", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:432", "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;
|
||||
@@ -201,11 +204,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:456", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:448", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||
};
|
||||
const onCloseGoodsCascader = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:459", "onCloseGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:460", "goodsIndex.value", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:451", "onCloseGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:452", "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,
|
||||
@@ -213,11 +216,11 @@ const _sfc_main = {
|
||||
];
|
||||
}
|
||||
goodsIndex.value = 0;
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:468", "goodsIndex.value", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:460", "goodsIndex.value", goodsIndex.value);
|
||||
};
|
||||
const onOpenGoodsCascader = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:471", "onOpenGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:472", "goodsIndex.value", goodsIndex.value);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:463", "onOpenGoodsCascader");
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:464", "goodsIndex.value", goodsIndex.value);
|
||||
};
|
||||
const form = common_vendor.reactive({
|
||||
order_type: 1,
|
||||
@@ -257,9 +260,18 @@ const _sfc_main = {
|
||||
order_goods: orderGoods.value,
|
||||
order: form
|
||||
};
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:523", "提交的订单数据:", data);
|
||||
api_index.fetchAddOrder(data).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:526", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:508", "提交的订单数据:", data);
|
||||
api_index.fetchEditOrder(data).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:510", res);
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "更新账单成功"
|
||||
});
|
||||
setTimeout(() => {
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
@@ -292,35 +304,34 @@ const _sfc_main = {
|
||||
m: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
n: common_vendor.o(($event) => form.over_often = $event),
|
||||
o: common_vendor.p({
|
||||
n: form.fee_type == 1 || form.fee_type == 2
|
||||
}, 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.over_often = $event),
|
||||
q: common_vendor.p({
|
||||
placeholder: "请输入小时",
|
||||
type: "number",
|
||||
modelValue: form.over_often
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
r: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
q: common_vendor.o(($event) => form.over_amount = $event),
|
||||
r: common_vendor.p({
|
||||
s: common_vendor.o(($event) => form.over_amount = $event),
|
||||
t: common_vendor.p({
|
||||
placeholder: "请输入金额",
|
||||
type: "number",
|
||||
modelValue: form.over_amount
|
||||
}),
|
||||
s: common_vendor.p({
|
||||
v: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
t: common_vendor.t(form.over_pay_status_txt),
|
||||
v: common_vendor.o(($event) => openPayStatusPopup("over")),
|
||||
w: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
x: common_vendor.o(addGoods),
|
||||
w: common_vendor.t(form.over_pay_status_txt),
|
||||
x: common_vendor.o(($event) => openPayStatusPopup("over")),
|
||||
y: common_vendor.p({
|
||||
type: "primary",
|
||||
plain: true,
|
||||
size: "small"
|
||||
}),
|
||||
["label-position"]: "top"
|
||||
})
|
||||
} : {}, {
|
||||
z: common_vendor.f(orderGoods.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.goods_type_name && item.goods_name
|
||||
@@ -332,15 +343,15 @@ const _sfc_main = {
|
||||
visibleGoodsCascader.value = true;
|
||||
goodsIndex.value = index;
|
||||
}, index),
|
||||
e: "7c6285d6-14-" + i0 + ",7c6285d6-13",
|
||||
e: "7c6285d6-13-" + i0 + ",7c6285d6-12",
|
||||
f: common_vendor.t(item.goods_price),
|
||||
g: "7c6285d6-15-" + i0 + ",7c6285d6-13",
|
||||
g: "7c6285d6-14-" + i0 + ",7c6285d6-12",
|
||||
h: common_vendor.t(item.goods_pay_status_txt),
|
||||
i: common_vendor.o(($event) => openPayStatusPopup("goods", index), index),
|
||||
j: "7c6285d6-16-" + i0 + ",7c6285d6-13",
|
||||
j: "7c6285d6-15-" + i0 + ",7c6285d6-12",
|
||||
k: common_vendor.o(($event) => removeGoods(index), index),
|
||||
l: "7c6285d6-18-" + i0 + "," + ("7c6285d6-17-" + i0),
|
||||
m: "7c6285d6-17-" + i0 + ",7c6285d6-13",
|
||||
l: "7c6285d6-17-" + i0 + "," + ("7c6285d6-16-" + i0),
|
||||
m: "7c6285d6-16-" + i0 + ",7c6285d6-12",
|
||||
n: index
|
||||
});
|
||||
}),
|
||||
@@ -360,39 +371,44 @@ const _sfc_main = {
|
||||
E: common_vendor.p({
|
||||
["label-position"]: "top"
|
||||
}),
|
||||
F: common_vendor.o(($event) => form.discount_amount = $event),
|
||||
F: common_vendor.o(addGoods),
|
||||
G: common_vendor.p({
|
||||
type: "primary",
|
||||
plain: true,
|
||||
size: "small"
|
||||
}),
|
||||
H: common_vendor.o(($event) => form.discount_amount = $event),
|
||||
I: common_vendor.p({
|
||||
placeholder: "请输入金额",
|
||||
type: "number",
|
||||
modelValue: form.discount_amount
|
||||
}),
|
||||
H: common_vendor.o(($event) => form.remarks = $event),
|
||||
I: common_vendor.p({
|
||||
J: common_vendor.o(($event) => form.remarks = $event),
|
||||
K: common_vendor.p({
|
||||
rows: 3,
|
||||
["adjust-keyboard-to"]: _ctx.bottom,
|
||||
placeholder: "请输入备注",
|
||||
modelValue: form.remarks
|
||||
}),
|
||||
J: common_vendor.p({
|
||||
label: "备注"
|
||||
}),
|
||||
K: common_vendor.o(submitForm),
|
||||
L: common_vendor.p({
|
||||
type: "success",
|
||||
block: true
|
||||
label: "备注"
|
||||
}),
|
||||
M: common_vendor.o(submitForm),
|
||||
N: common_vendor.p({
|
||||
type: "success",
|
||||
block: true
|
||||
}),
|
||||
O: common_vendor.o(submitForm),
|
||||
P: common_vendor.p({
|
||||
type: "danger",
|
||||
block: true
|
||||
}),
|
||||
O: common_vendor.o(onGoodsChange),
|
||||
P: common_vendor.o(onGoodsPathChange),
|
||||
Q: common_vendor.o(onOpenGoodsCascader),
|
||||
R: common_vendor.o(onCloseGoodsCascader),
|
||||
S: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
||||
T: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
||||
U: common_vendor.p({
|
||||
Q: common_vendor.o(onGoodsChange),
|
||||
R: common_vendor.o(onGoodsPathChange),
|
||||
S: common_vendor.o(onOpenGoodsCascader),
|
||||
T: common_vendor.o(onCloseGoodsCascader),
|
||||
U: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
||||
V: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
||||
W: common_vendor.p({
|
||||
title: "商品选择",
|
||||
["text-key"]: "label",
|
||||
["value-key"]: "value",
|
||||
@@ -402,9 +418,9 @@ const _sfc_main = {
|
||||
visible: visibleGoodsCascader.value,
|
||||
modelValue: cascaderGoodsValue.value
|
||||
}),
|
||||
V: common_vendor.o(onConfirmPaymentStatus),
|
||||
W: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
||||
X: common_vendor.p({
|
||||
X: common_vendor.o(onConfirmPaymentStatus),
|
||||
Y: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
||||
Z: common_vendor.p({
|
||||
columns: paymentStatuses,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
@@ -412,16 +428,16 @@ const _sfc_main = {
|
||||
},
|
||||
title: "选择支付状态"
|
||||
}),
|
||||
Y: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
||||
Z: common_vendor.p({
|
||||
aa: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
||||
ab: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visiblePaymentStatusPopup.value
|
||||
}),
|
||||
aa: common_vendor.o(onConfirmCombos),
|
||||
ab: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
||||
ac: common_vendor.o(($event) => popupCombosVal.value = $event),
|
||||
ad: common_vendor.p({
|
||||
ac: common_vendor.o(onConfirmCombos),
|
||||
ad: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
||||
ae: common_vendor.o(($event) => popupCombosVal.value = $event),
|
||||
af: common_vendor.p({
|
||||
columns: combos.value,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
@@ -430,15 +446,15 @@ const _sfc_main = {
|
||||
title: "选择团购套餐",
|
||||
modelValue: popupCombosVal.value
|
||||
}),
|
||||
ae: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
||||
af: common_vendor.p({
|
||||
ag: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
||||
ah: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visibleCombosPopup.value
|
||||
}),
|
||||
ag: common_vendor.o(onConfirmFeeType),
|
||||
ah: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
||||
ai: common_vendor.p({
|
||||
ai: common_vendor.o(onConfirmFeeType),
|
||||
aj: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
||||
ak: common_vendor.p({
|
||||
columns: feeTypes,
|
||||
["field-names"]: {
|
||||
text: "label",
|
||||
@@ -446,8 +462,8 @@ const _sfc_main = {
|
||||
},
|
||||
title: "选择结算方式"
|
||||
}),
|
||||
aj: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
||||
ak: common_vendor.p({
|
||||
al: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
||||
am: common_vendor.p({
|
||||
position: "bottom",
|
||||
["safe-area-inset-bottom"]: true,
|
||||
visible: visibleFeeTypePopup.value
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user