更新订单
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) {
|
export function fetchRoomOrder(roomId : Number) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
<nut-form-item label="备注">
|
<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>
|
placeholder="请输入备注"></nut-textarea>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
</nut-form>
|
</nut-form>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<nut-input v-model="form.tel" placeholder="请输入尾号"></nut-input>
|
<nut-input v-model="form.tel" placeholder="请输入尾号"></nut-input>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
<nut-form-item label="备注">
|
<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>
|
placeholder="请输入备注"></nut-textarea>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
</nut-form>
|
</nut-form>
|
||||||
|
|||||||
@@ -57,8 +57,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="title">超时收费 </view>
|
<view class="title" v-if="form.fee_type==1 || form.fee_type==2 ">超时收费 </view>
|
||||||
<nut-form>
|
<nut-form v-if="form.fee_type==1 || form.fee_type==2 ">
|
||||||
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
||||||
<view class="inline-form">
|
<view class="inline-form">
|
||||||
<!-- 台费类型选择 -->
|
<!-- 台费类型选择 -->
|
||||||
@@ -91,15 +91,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<view class="title">商品 </view>
|
<view class="title">商品 </view>
|
||||||
<view class="top-bar">
|
|
||||||
<nut-button type="primary" plain size="small" @click="addGoods">新增商品</nut-button>
|
|
||||||
</view>
|
|
||||||
<nut-form>
|
<nut-form>
|
||||||
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
|
||||||
<view class="inline-goods-form" v-for="(item, index) in orderGoods" :key="index">
|
<view class="inline-goods-form" v-for="(item, index) in orderGoods" :key="index">
|
||||||
|
|
||||||
<view class="form-row">
|
<view class="form-row">
|
||||||
<!-- 台费类型选择 -->
|
|
||||||
<nut-form-item label-position="top">
|
<nut-form-item label-position="top">
|
||||||
<template v-slot:label>商品</template>
|
<template v-slot:label>商品</template>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
@@ -111,8 +105,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
|
|
||||||
<!-- 套餐选择 -->
|
|
||||||
<nut-form-item label-position="top">
|
<nut-form-item label-position="top">
|
||||||
<template v-slot:label>售价</template>
|
<template v-slot:label>售价</template>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
@@ -122,10 +114,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="form-row">
|
<view class="form-row">
|
||||||
<!-- 支付状态选择 -->
|
|
||||||
<nut-form-item label-position="top">
|
<nut-form-item label-position="top">
|
||||||
<template v-slot:label>支付状态</template>
|
<template v-slot:label>支付状态</template>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
@@ -134,7 +123,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
<!-- 套餐选择 -->
|
|
||||||
<nut-form-item label-position="top">
|
<nut-form-item label-position="top">
|
||||||
<template v-slot:label>操作</template>
|
<template v-slot:label>操作</template>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
@@ -144,12 +132,11 @@
|
|||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</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>
|
<view class="title">订单优惠 </view>
|
||||||
|
|
||||||
@@ -161,8 +148,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
<nut-form-item label="备注">
|
<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>
|
||||||
placeholder="请输入备注"></nut-textarea>
|
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
</nut-form>
|
</nut-form>
|
||||||
|
|
||||||
@@ -460,10 +446,7 @@
|
|||||||
over_pay_status_txt: "请选择", // 超时支付状态
|
over_pay_status_txt: "请选择", // 超时支付状态
|
||||||
|
|
||||||
discount_amount: null, // 优惠金额
|
discount_amount: null, // 优惠金额
|
||||||
|
|
||||||
remarks: null
|
remarks: null
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -48,8 +48,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="title">超时收费 </view>
|
<view class="title" v-if="form.fee_type==1 || form.fee_type==2 ">超时收费 </view>
|
||||||
<nut-form>
|
<nut-form v-if="form.fee_type==1 || form.fee_type==2 ">
|
||||||
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
||||||
<view class="inline-form">
|
<view class="inline-form">
|
||||||
<!-- 台费类型选择 -->
|
<!-- 台费类型选择 -->
|
||||||
@@ -82,15 +82,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<view class="title">商品 </view>
|
<view class="title">商品 </view>
|
||||||
<view class="top-bar">
|
|
||||||
<nut-button type="primary" plain size="small" @click="addGoods">新增商品</nut-button>
|
|
||||||
</view>
|
|
||||||
<nut-form>
|
<nut-form>
|
||||||
<!-- 台费类型、套餐、支付状态 三者在同一行布局 -->
|
|
||||||
<view class="inline-goods-form" v-for="(item, index) in orderGoods" :key="index">
|
<view class="inline-goods-form" v-for="(item, index) in orderGoods" :key="index">
|
||||||
|
|
||||||
<view class="form-row">
|
<view class="form-row">
|
||||||
<!-- 台费类型选择 -->
|
|
||||||
<nut-form-item label-position="top">
|
<nut-form-item label-position="top">
|
||||||
<template v-slot:label>商品</template>
|
<template v-slot:label>商品</template>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
@@ -102,8 +96,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
|
|
||||||
<!-- 套餐选择 -->
|
|
||||||
<nut-form-item label-position="top">
|
<nut-form-item label-position="top">
|
||||||
<template v-slot:label>售价</template>
|
<template v-slot:label>售价</template>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
@@ -113,10 +105,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="form-row">
|
<view class="form-row">
|
||||||
<!-- 支付状态选择 -->
|
|
||||||
<nut-form-item label-position="top">
|
<nut-form-item label-position="top">
|
||||||
<template v-slot:label>支付状态</template>
|
<template v-slot:label>支付状态</template>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
@@ -125,7 +114,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
<!-- 套餐选择 -->
|
|
||||||
<nut-form-item label-position="top">
|
<nut-form-item label-position="top">
|
||||||
<template v-slot:label>操作</template>
|
<template v-slot:label>操作</template>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
@@ -135,12 +123,11 @@
|
|||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</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>
|
<view class="title">订单优惠 </view>
|
||||||
|
|
||||||
@@ -152,7 +139,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
<nut-form-item label="备注">
|
<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>
|
placeholder="请输入备注"></nut-textarea>
|
||||||
</nut-form-item>
|
</nut-form-item>
|
||||||
</nut-form>
|
</nut-form>
|
||||||
@@ -225,7 +212,8 @@
|
|||||||
import {
|
import {
|
||||||
fetchCombos,
|
fetchCombos,
|
||||||
fetchGoods,
|
fetchGoods,
|
||||||
fetchAddOrder,
|
fetchAddOrder,
|
||||||
|
fetchEditOrder,
|
||||||
fetchRoomOrder,
|
fetchRoomOrder,
|
||||||
} from '@/api/index';
|
} from '@/api/index';
|
||||||
|
|
||||||
@@ -264,7 +252,11 @@
|
|||||||
form.discount_amount = res.discount_amount
|
form.discount_amount = res.discount_amount
|
||||||
form.remarks = res.remarks
|
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 submitForm = () => {
|
||||||
// const formData = {
|
|
||||||
// room: room.value,
|
|
||||||
// feeType: feeType.value,
|
|
||||||
// selectedPackage: selectedPackage.value,
|
|
||||||
// amount: amount.value,
|
|
||||||
// paymentStatus: paymentStatus.value
|
|
||||||
// };
|
|
||||||
let data = {
|
let data = {
|
||||||
order_goods: orderGoods.value,
|
order_goods: orderGoods.value,
|
||||||
order: form
|
order: form
|
||||||
}
|
}
|
||||||
console.log('提交的订单数据:', data);
|
console.log('提交的订单数据:', data);
|
||||||
// console.log('提交的订单数据:', form);
|
fetchEditOrder(data).then(res => {
|
||||||
fetchAddOrder(data).then(res => {
|
console.log(res);
|
||||||
console.log(res);
|
uni.showToast({
|
||||||
// selectGoods.value = res;
|
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"
|
method: "POST"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function fetchEditOrder(data) {
|
||||||
|
return api_request.request({
|
||||||
|
url: "/index/editOrder",
|
||||||
|
data,
|
||||||
|
method: "POST"
|
||||||
|
});
|
||||||
|
}
|
||||||
function fetchRoomOrder(roomId) {
|
function fetchRoomOrder(roomId) {
|
||||||
return api_request.request({
|
return api_request.request({
|
||||||
url: "/index/roomOrder",
|
url: "/index/roomOrder",
|
||||||
@@ -49,6 +56,7 @@ function fetchRoomOrder(roomId) {
|
|||||||
exports.fetchAddOrder = fetchAddOrder;
|
exports.fetchAddOrder = fetchAddOrder;
|
||||||
exports.fetchBooking = fetchBooking;
|
exports.fetchBooking = fetchBooking;
|
||||||
exports.fetchCombos = fetchCombos;
|
exports.fetchCombos = fetchCombos;
|
||||||
|
exports.fetchEditOrder = fetchEditOrder;
|
||||||
exports.fetchGoods = fetchGoods;
|
exports.fetchGoods = fetchGoods;
|
||||||
exports.fetchRoomOrder = fetchRoomOrder;
|
exports.fetchRoomOrder = fetchRoomOrder;
|
||||||
exports.fetchRooms = fetchRooms;
|
exports.fetchRooms = fetchRooms;
|
||||||
|
|||||||
@@ -221,7 +221,6 @@ const _sfc_main = {
|
|||||||
k: common_vendor.o(($event) => form.remarks = $event),
|
k: common_vendor.o(($event) => form.remarks = $event),
|
||||||
l: common_vendor.p({
|
l: common_vendor.p({
|
||||||
rows: 3,
|
rows: 3,
|
||||||
["adjust-keyboard-to"]: "bottom",
|
|
||||||
placeholder: "请输入备注",
|
placeholder: "请输入备注",
|
||||||
modelValue: form.remarks
|
modelValue: form.remarks
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -182,7 +182,6 @@ const _sfc_main = {
|
|||||||
i: common_vendor.o(($event) => form.remarks = $event),
|
i: common_vendor.o(($event) => form.remarks = $event),
|
||||||
j: common_vendor.p({
|
j: common_vendor.p({
|
||||||
rows: 3,
|
rows: 3,
|
||||||
["adjust-keyboard-to"]: _ctx.bottom,
|
|
||||||
placeholder: "请输入备注",
|
placeholder: "请输入备注",
|
||||||
modelValue: form.remarks
|
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",
|
__name: "orderAdd",
|
||||||
setup(__props) {
|
setup(__props) {
|
||||||
common_vendor.onLoad((options) => {
|
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;
|
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:226", form);
|
||||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:241", options);
|
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:227", options);
|
||||||
});
|
});
|
||||||
const visibleFeeTypePopup = common_vendor.ref(false);
|
const visibleFeeTypePopup = common_vendor.ref(false);
|
||||||
const feeTypes = [
|
const feeTypes = [
|
||||||
@@ -48,21 +48,21 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
const onConfirmFeeType = (selectedValue) => {
|
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_name = selectedValue.selectedOptions[0].label;
|
||||||
form.fee_type = selectedValue.selectedOptions[0].value;
|
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) {
|
if (form.fee_type !== 3) {
|
||||||
getCombos();
|
getCombos();
|
||||||
}
|
}
|
||||||
visibleFeeTypePopup.value = false;
|
visibleFeeTypePopup.value = false;
|
||||||
};
|
};
|
||||||
const getCombos = () => {
|
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({
|
api_index.fetchCombos({
|
||||||
type: form.fee_type
|
type: form.fee_type
|
||||||
}).then((res) => {
|
}).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;
|
combos.value = res;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -70,10 +70,10 @@ const _sfc_main = {
|
|||||||
const popupCombosVal = common_vendor.ref([]);
|
const popupCombosVal = common_vendor.ref([]);
|
||||||
const combos = common_vendor.ref([]);
|
const combos = common_vendor.ref([]);
|
||||||
const onConfirmCombos = (selectedValue) => {
|
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_name = selectedValue.selectedOptions[0].label;
|
||||||
form.fee_combo_id = selectedValue.selectedOptions[0].value;
|
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;
|
visibleCombosPopup.value = false;
|
||||||
};
|
};
|
||||||
const visiblePaymentStatusPopup = common_vendor.ref(false);
|
const visiblePaymentStatusPopup = common_vendor.ref(false);
|
||||||
@@ -97,7 +97,7 @@ const _sfc_main = {
|
|||||||
popupPaymentTypeVal.value = type;
|
popupPaymentTypeVal.value = type;
|
||||||
goodsPayIndex.value = index;
|
goodsPayIndex.value = index;
|
||||||
visiblePaymentStatusPopup.value = true;
|
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) => {
|
const onConfirmPaymentStatus = (selectedValue) => {
|
||||||
if (popupPaymentTypeVal.value == "fee") {
|
if (popupPaymentTypeVal.value == "fee") {
|
||||||
@@ -109,11 +109,11 @@ const _sfc_main = {
|
|||||||
form.over_pay_status = selectedValue.selectedOptions[0].value;
|
form.over_pay_status = selectedValue.selectedOptions[0].value;
|
||||||
}
|
}
|
||||||
if (popupPaymentTypeVal.value == "goods" && goodsPayIndex.value >= 0) {
|
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_txt = selectedValue.selectedOptions[0].label;
|
||||||
orderGoods.value[goodsPayIndex.value].goods_pay_status = selectedValue.selectedOptions[0].value;
|
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;
|
visiblePaymentStatusPopup.value = false;
|
||||||
popupPaymentTypeVal.value = "";
|
popupPaymentTypeVal.value = "";
|
||||||
goodsPayIndex.value = -1;
|
goodsPayIndex.value = -1;
|
||||||
@@ -133,7 +133,7 @@ const _sfc_main = {
|
|||||||
const goodsPayIndex = common_vendor.ref(0);
|
const goodsPayIndex = common_vendor.ref(0);
|
||||||
const goodsIndex = common_vendor.ref(0);
|
const goodsIndex = common_vendor.ref(0);
|
||||||
const addGoods = () => {
|
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({
|
orderGoods.value.push({
|
||||||
goods_type_name: null,
|
goods_type_name: null,
|
||||||
goods_type_id: null,
|
goods_type_id: null,
|
||||||
@@ -159,12 +159,12 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const onGoodsChange = (...args) => {
|
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) => {
|
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:392", "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:393", "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:394", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||||
orderGoods.value[goodsIndex.value].goods_type_name = null;
|
orderGoods.value[goodsIndex.value].goods_type_name = null;
|
||||||
orderGoods.value[goodsIndex.value].goods_type_id = null;
|
orderGoods.value[goodsIndex.value].goods_type_id = null;
|
||||||
orderGoods.value[goodsIndex.value].goods_name = 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_id = args[1].value;
|
||||||
orderGoods.value[goodsIndex.value].goods_price = args[1].goods_price;
|
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 = () => {
|
const onCloseGoodsCascader = () => {
|
||||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:427", "onCloseGoodsCascader");
|
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:413", "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:414", "goodsIndex.value", goodsIndex.value);
|
||||||
if (orderGoods.value[goodsIndex.value].goods_type_id && orderGoods.value[goodsIndex.value].goods_id) {
|
if (orderGoods.value[goodsIndex.value].goods_type_id && orderGoods.value[goodsIndex.value].goods_id) {
|
||||||
orderGoods.value[goodsIndex.value].cascader_val = [
|
orderGoods.value[goodsIndex.value].cascader_val = [
|
||||||
orderGoods.value[goodsIndex.value].goods_type_id,
|
orderGoods.value[goodsIndex.value].goods_type_id,
|
||||||
@@ -191,11 +191,11 @@ const _sfc_main = {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
goodsIndex.value = 0;
|
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 = () => {
|
const onOpenGoodsCascader = () => {
|
||||||
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:439", "onOpenGoodsCascader");
|
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:425", "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:426", "goodsIndex.value", goodsIndex.value);
|
||||||
};
|
};
|
||||||
const form = common_vendor.reactive({
|
const form = common_vendor.reactive({
|
||||||
order_type: 1,
|
order_type: 1,
|
||||||
@@ -236,9 +236,9 @@ const _sfc_main = {
|
|||||||
order_goods: orderGoods.value,
|
order_goods: orderGoods.value,
|
||||||
order: form
|
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) => {
|
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({
|
common_vendor.index.showToast({
|
||||||
icon: "none",
|
icon: "none",
|
||||||
title: "开台成功"
|
title: "开台成功"
|
||||||
@@ -280,35 +280,34 @@ const _sfc_main = {
|
|||||||
m: common_vendor.p({
|
m: common_vendor.p({
|
||||||
["label-position"]: "top"
|
["label-position"]: "top"
|
||||||
}),
|
}),
|
||||||
n: common_vendor.o(($event) => form.often = $event),
|
n: form.fee_type == 1 || form.fee_type == 2
|
||||||
o: common_vendor.p({
|
}, 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: "请输入小时",
|
placeholder: "请输入小时",
|
||||||
type: "number",
|
type: "number",
|
||||||
modelValue: form.often
|
modelValue: form.often
|
||||||
}),
|
}),
|
||||||
p: common_vendor.p({
|
r: common_vendor.p({
|
||||||
["label-position"]: "top"
|
["label-position"]: "top"
|
||||||
}),
|
}),
|
||||||
q: common_vendor.o(($event) => form.over_amount = $event),
|
s: common_vendor.o(($event) => form.over_amount = $event),
|
||||||
r: common_vendor.p({
|
t: common_vendor.p({
|
||||||
placeholder: "请输入金额",
|
placeholder: "请输入金额",
|
||||||
type: "number",
|
type: "number",
|
||||||
modelValue: form.over_amount
|
modelValue: form.over_amount
|
||||||
}),
|
}),
|
||||||
s: common_vendor.p({
|
v: common_vendor.p({
|
||||||
["label-position"]: "top"
|
["label-position"]: "top"
|
||||||
}),
|
}),
|
||||||
t: common_vendor.t(form.over_pay_status_txt),
|
w: common_vendor.t(form.over_pay_status_txt),
|
||||||
v: common_vendor.o(($event) => openPayStatusPopup("over")),
|
x: common_vendor.o(($event) => openPayStatusPopup("over")),
|
||||||
w: common_vendor.p({
|
|
||||||
["label-position"]: "top"
|
|
||||||
}),
|
|
||||||
x: common_vendor.o(addGoods),
|
|
||||||
y: common_vendor.p({
|
y: common_vendor.p({
|
||||||
type: "primary",
|
["label-position"]: "top"
|
||||||
plain: true,
|
})
|
||||||
size: "small"
|
} : {}, {
|
||||||
}),
|
|
||||||
z: common_vendor.f(orderGoods.value, (item, index, i0) => {
|
z: common_vendor.f(orderGoods.value, (item, index, i0) => {
|
||||||
return common_vendor.e({
|
return common_vendor.e({
|
||||||
a: item.goods_type_name && item.goods_name
|
a: item.goods_type_name && item.goods_name
|
||||||
@@ -320,15 +319,15 @@ const _sfc_main = {
|
|||||||
visibleGoodsCascader.value = true;
|
visibleGoodsCascader.value = true;
|
||||||
goodsIndex.value = index;
|
goodsIndex.value = index;
|
||||||
}, index),
|
}, index),
|
||||||
e: "528154d3-14-" + i0 + ",528154d3-13",
|
e: "528154d3-13-" + i0 + ",528154d3-12",
|
||||||
f: common_vendor.t(item.goods_price),
|
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),
|
h: common_vendor.t(item.goods_pay_status_txt),
|
||||||
i: common_vendor.o(($event) => openPayStatusPopup("goods", index), index),
|
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),
|
k: common_vendor.o(($event) => removeGoods(index), index),
|
||||||
l: "528154d3-18-" + i0 + "," + ("528154d3-17-" + i0),
|
l: "528154d3-17-" + i0 + "," + ("528154d3-16-" + i0),
|
||||||
m: "528154d3-17-" + i0 + ",528154d3-13",
|
m: "528154d3-16-" + i0 + ",528154d3-12",
|
||||||
n: index
|
n: index
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
@@ -348,34 +347,39 @@ const _sfc_main = {
|
|||||||
E: common_vendor.p({
|
E: common_vendor.p({
|
||||||
["label-position"]: "top"
|
["label-position"]: "top"
|
||||||
}),
|
}),
|
||||||
F: common_vendor.o(($event) => form.discount_amount = $event),
|
F: common_vendor.o(addGoods),
|
||||||
G: common_vendor.p({
|
G: common_vendor.p({
|
||||||
|
type: "primary",
|
||||||
|
plain: true,
|
||||||
|
size: "small"
|
||||||
|
}),
|
||||||
|
H: common_vendor.o(($event) => form.discount_amount = $event),
|
||||||
|
I: common_vendor.p({
|
||||||
placeholder: "请输入金额",
|
placeholder: "请输入金额",
|
||||||
type: "number",
|
type: "number",
|
||||||
modelValue: form.discount_amount
|
modelValue: form.discount_amount
|
||||||
}),
|
}),
|
||||||
H: common_vendor.o(($event) => form.remarks = $event),
|
J: common_vendor.o(($event) => form.remarks = $event),
|
||||||
I: common_vendor.p({
|
K: common_vendor.p({
|
||||||
rows: 3,
|
rows: 3,
|
||||||
["adjust-keyboard-to"]: _ctx.bottom,
|
|
||||||
placeholder: "请输入备注",
|
placeholder: "请输入备注",
|
||||||
modelValue: form.remarks
|
modelValue: form.remarks
|
||||||
}),
|
}),
|
||||||
J: common_vendor.p({
|
L: common_vendor.p({
|
||||||
label: "备注"
|
label: "备注"
|
||||||
}),
|
}),
|
||||||
K: common_vendor.o(submitForm),
|
M: common_vendor.o(submitForm),
|
||||||
L: common_vendor.p({
|
N: common_vendor.p({
|
||||||
type: "primary",
|
type: "primary",
|
||||||
block: true
|
block: true
|
||||||
}),
|
}),
|
||||||
M: common_vendor.o(onGoodsChange),
|
O: common_vendor.o(onGoodsChange),
|
||||||
N: common_vendor.o(onGoodsPathChange),
|
P: common_vendor.o(onGoodsPathChange),
|
||||||
O: common_vendor.o(onOpenGoodsCascader),
|
Q: common_vendor.o(onOpenGoodsCascader),
|
||||||
P: common_vendor.o(onCloseGoodsCascader),
|
R: common_vendor.o(onCloseGoodsCascader),
|
||||||
Q: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
S: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
||||||
R: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
T: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
||||||
S: common_vendor.p({
|
U: common_vendor.p({
|
||||||
title: "商品选择",
|
title: "商品选择",
|
||||||
["text-key"]: "label",
|
["text-key"]: "label",
|
||||||
["value-key"]: "value",
|
["value-key"]: "value",
|
||||||
@@ -385,9 +389,9 @@ const _sfc_main = {
|
|||||||
visible: visibleGoodsCascader.value,
|
visible: visibleGoodsCascader.value,
|
||||||
modelValue: cascaderGoodsValue.value
|
modelValue: cascaderGoodsValue.value
|
||||||
}),
|
}),
|
||||||
T: common_vendor.o(onConfirmPaymentStatus),
|
V: common_vendor.o(onConfirmPaymentStatus),
|
||||||
U: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
W: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
||||||
V: common_vendor.p({
|
X: common_vendor.p({
|
||||||
columns: paymentStatuses,
|
columns: paymentStatuses,
|
||||||
["field-names"]: {
|
["field-names"]: {
|
||||||
text: "label",
|
text: "label",
|
||||||
@@ -395,16 +399,16 @@ const _sfc_main = {
|
|||||||
},
|
},
|
||||||
title: "选择支付状态"
|
title: "选择支付状态"
|
||||||
}),
|
}),
|
||||||
W: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
Y: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
||||||
X: common_vendor.p({
|
Z: common_vendor.p({
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
["safe-area-inset-bottom"]: true,
|
["safe-area-inset-bottom"]: true,
|
||||||
visible: visiblePaymentStatusPopup.value
|
visible: visiblePaymentStatusPopup.value
|
||||||
}),
|
}),
|
||||||
Y: common_vendor.o(onConfirmCombos),
|
aa: common_vendor.o(onConfirmCombos),
|
||||||
Z: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
ab: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
||||||
aa: common_vendor.o(($event) => popupCombosVal.value = $event),
|
ac: common_vendor.o(($event) => popupCombosVal.value = $event),
|
||||||
ab: common_vendor.p({
|
ad: common_vendor.p({
|
||||||
columns: combos.value,
|
columns: combos.value,
|
||||||
["field-names"]: {
|
["field-names"]: {
|
||||||
text: "label",
|
text: "label",
|
||||||
@@ -413,15 +417,15 @@ const _sfc_main = {
|
|||||||
title: "选择团购套餐",
|
title: "选择团购套餐",
|
||||||
modelValue: popupCombosVal.value
|
modelValue: popupCombosVal.value
|
||||||
}),
|
}),
|
||||||
ac: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
ae: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
||||||
ad: common_vendor.p({
|
af: common_vendor.p({
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
["safe-area-inset-bottom"]: true,
|
["safe-area-inset-bottom"]: true,
|
||||||
visible: visibleCombosPopup.value
|
visible: visibleCombosPopup.value
|
||||||
}),
|
}),
|
||||||
ae: common_vendor.o(onConfirmFeeType),
|
ag: common_vendor.o(onConfirmFeeType),
|
||||||
af: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
ah: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
||||||
ag: common_vendor.p({
|
ai: common_vendor.p({
|
||||||
columns: feeTypes,
|
columns: feeTypes,
|
||||||
["field-names"]: {
|
["field-names"]: {
|
||||||
text: "label",
|
text: "label",
|
||||||
@@ -429,8 +433,8 @@ const _sfc_main = {
|
|||||||
},
|
},
|
||||||
title: "选择结算方式"
|
title: "选择结算方式"
|
||||||
}),
|
}),
|
||||||
ah: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
aj: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
||||||
ai: common_vendor.p({
|
ak: common_vendor.p({
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
["safe-area-inset-bottom"]: true,
|
["safe-area-inset-bottom"]: true,
|
||||||
visible: visibleFeeTypePopup.value
|
visible: visibleFeeTypePopup.value
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -27,15 +27,15 @@ const _sfc_main = {
|
|||||||
__name: "orderEdit",
|
__name: "orderEdit",
|
||||||
setup(__props) {
|
setup(__props) {
|
||||||
common_vendor.onLoad((options) => {
|
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;
|
form.room_id = options.roomId;
|
||||||
getRoomOrder();
|
getRoomOrder();
|
||||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:240", form);
|
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:228", form);
|
||||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:241", options);
|
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:229", options);
|
||||||
});
|
});
|
||||||
const getRoomOrder = () => {
|
const getRoomOrder = () => {
|
||||||
api_index.fetchRoomOrder(form.room_id).then((res) => {
|
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.room_id = res.room_id;
|
||||||
form.order_type = res.order_type;
|
form.order_type = res.order_type;
|
||||||
form.fee_type = res.fee_type.value;
|
form.fee_type = res.fee_type.value;
|
||||||
@@ -52,6 +52,9 @@ const _sfc_main = {
|
|||||||
form.discount_amount = res.discount_amount;
|
form.discount_amount = res.discount_amount;
|
||||||
form.remarks = res.remarks;
|
form.remarks = res.remarks;
|
||||||
orderGoods.value = res.goods;
|
orderGoods.value = res.goods;
|
||||||
|
if (form.fee_type !== 3) {
|
||||||
|
getCombos();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const visibleFeeTypePopup = common_vendor.ref(false);
|
const visibleFeeTypePopup = common_vendor.ref(false);
|
||||||
@@ -70,21 +73,21 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
const onConfirmFeeType = (selectedValue) => {
|
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_name = selectedValue.selectedOptions[0].label;
|
||||||
form.fee_type = selectedValue.selectedOptions[0].value;
|
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) {
|
if (form.fee_type !== 3) {
|
||||||
getCombos();
|
getCombos();
|
||||||
}
|
}
|
||||||
visibleFeeTypePopup.value = false;
|
visibleFeeTypePopup.value = false;
|
||||||
};
|
};
|
||||||
const getCombos = () => {
|
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({
|
api_index.fetchCombos({
|
||||||
type: form.fee_type
|
type: form.fee_type
|
||||||
}).then((res) => {
|
}).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;
|
combos.value = res;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -92,10 +95,10 @@ const _sfc_main = {
|
|||||||
const popupCombosVal = common_vendor.ref([]);
|
const popupCombosVal = common_vendor.ref([]);
|
||||||
const combos = common_vendor.ref([]);
|
const combos = common_vendor.ref([]);
|
||||||
const onConfirmCombos = (selectedValue) => {
|
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_name = selectedValue.selectedOptions[0].label;
|
||||||
form.fee_combo_id = selectedValue.selectedOptions[0].value;
|
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;
|
visibleCombosPopup.value = false;
|
||||||
};
|
};
|
||||||
const visiblePaymentStatusPopup = common_vendor.ref(false);
|
const visiblePaymentStatusPopup = common_vendor.ref(false);
|
||||||
@@ -119,7 +122,7 @@ const _sfc_main = {
|
|||||||
popupPaymentTypeVal.value = type;
|
popupPaymentTypeVal.value = type;
|
||||||
goodsPayIndex.value = index;
|
goodsPayIndex.value = index;
|
||||||
visiblePaymentStatusPopup.value = true;
|
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) => {
|
const onConfirmPaymentStatus = (selectedValue) => {
|
||||||
if (popupPaymentTypeVal.value == "fee") {
|
if (popupPaymentTypeVal.value == "fee") {
|
||||||
@@ -131,11 +134,11 @@ const _sfc_main = {
|
|||||||
form.over_pay_status = selectedValue.selectedOptions[0].value;
|
form.over_pay_status = selectedValue.selectedOptions[0].value;
|
||||||
}
|
}
|
||||||
if (popupPaymentTypeVal.value == "goods" && goodsPayIndex.value >= 0) {
|
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_txt = selectedValue.selectedOptions[0].label;
|
||||||
orderGoods.value[goodsPayIndex.value].goods_pay_status = selectedValue.selectedOptions[0].value;
|
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;
|
visiblePaymentStatusPopup.value = false;
|
||||||
popupPaymentTypeVal.value = "";
|
popupPaymentTypeVal.value = "";
|
||||||
goodsPayIndex.value = -1;
|
goodsPayIndex.value = -1;
|
||||||
@@ -155,7 +158,7 @@ const _sfc_main = {
|
|||||||
const goodsPayIndex = common_vendor.ref(0);
|
const goodsPayIndex = common_vendor.ref(0);
|
||||||
const goodsIndex = common_vendor.ref(0);
|
const goodsIndex = common_vendor.ref(0);
|
||||||
const addGoods = () => {
|
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({
|
orderGoods.value.push({
|
||||||
goods_type_name: null,
|
goods_type_name: null,
|
||||||
goods_type_id: null,
|
goods_type_id: null,
|
||||||
@@ -181,12 +184,12 @@ const _sfc_main = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const onGoodsChange = (...args) => {
|
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) => {
|
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:430", "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:431", "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:432", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
|
||||||
orderGoods.value[goodsIndex.value].goods_type_name = null;
|
orderGoods.value[goodsIndex.value].goods_type_name = null;
|
||||||
orderGoods.value[goodsIndex.value].goods_type_id = null;
|
orderGoods.value[goodsIndex.value].goods_type_id = null;
|
||||||
orderGoods.value[goodsIndex.value].goods_name = 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_id = args[1].value;
|
||||||
orderGoods.value[goodsIndex.value].goods_price = args[1].goods_price;
|
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 = () => {
|
const onCloseGoodsCascader = () => {
|
||||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:459", "onCloseGoodsCascader");
|
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:451", "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:452", "goodsIndex.value", goodsIndex.value);
|
||||||
if (orderGoods.value[goodsIndex.value].goods_type_id && orderGoods.value[goodsIndex.value].goods_id) {
|
if (orderGoods.value[goodsIndex.value].goods_type_id && orderGoods.value[goodsIndex.value].goods_id) {
|
||||||
orderGoods.value[goodsIndex.value].cascader_val = [
|
orderGoods.value[goodsIndex.value].cascader_val = [
|
||||||
orderGoods.value[goodsIndex.value].goods_type_id,
|
orderGoods.value[goodsIndex.value].goods_type_id,
|
||||||
@@ -213,11 +216,11 @@ const _sfc_main = {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
goodsIndex.value = 0;
|
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 = () => {
|
const onOpenGoodsCascader = () => {
|
||||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:471", "onOpenGoodsCascader");
|
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:463", "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:464", "goodsIndex.value", goodsIndex.value);
|
||||||
};
|
};
|
||||||
const form = common_vendor.reactive({
|
const form = common_vendor.reactive({
|
||||||
order_type: 1,
|
order_type: 1,
|
||||||
@@ -257,9 +260,18 @@ const _sfc_main = {
|
|||||||
order_goods: orderGoods.value,
|
order_goods: orderGoods.value,
|
||||||
order: form
|
order: form
|
||||||
};
|
};
|
||||||
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:523", "提交的订单数据:", data);
|
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:508", "提交的订单数据:", data);
|
||||||
api_index.fetchAddOrder(data).then((res) => {
|
api_index.fetchEditOrder(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:510", res);
|
||||||
|
common_vendor.index.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "更新账单成功"
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
common_vendor.index.switchTab({
|
||||||
|
url: "/pages/index/index"
|
||||||
|
});
|
||||||
|
}, 500);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
return (_ctx, _cache) => {
|
return (_ctx, _cache) => {
|
||||||
@@ -292,35 +304,34 @@ const _sfc_main = {
|
|||||||
m: common_vendor.p({
|
m: common_vendor.p({
|
||||||
["label-position"]: "top"
|
["label-position"]: "top"
|
||||||
}),
|
}),
|
||||||
n: common_vendor.o(($event) => form.over_often = $event),
|
n: form.fee_type == 1 || form.fee_type == 2
|
||||||
o: common_vendor.p({
|
}, 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: "请输入小时",
|
placeholder: "请输入小时",
|
||||||
type: "number",
|
type: "number",
|
||||||
modelValue: form.over_often
|
modelValue: form.over_often
|
||||||
}),
|
}),
|
||||||
p: common_vendor.p({
|
r: common_vendor.p({
|
||||||
["label-position"]: "top"
|
["label-position"]: "top"
|
||||||
}),
|
}),
|
||||||
q: common_vendor.o(($event) => form.over_amount = $event),
|
s: common_vendor.o(($event) => form.over_amount = $event),
|
||||||
r: common_vendor.p({
|
t: common_vendor.p({
|
||||||
placeholder: "请输入金额",
|
placeholder: "请输入金额",
|
||||||
type: "number",
|
type: "number",
|
||||||
modelValue: form.over_amount
|
modelValue: form.over_amount
|
||||||
}),
|
}),
|
||||||
s: common_vendor.p({
|
v: common_vendor.p({
|
||||||
["label-position"]: "top"
|
["label-position"]: "top"
|
||||||
}),
|
}),
|
||||||
t: common_vendor.t(form.over_pay_status_txt),
|
w: common_vendor.t(form.over_pay_status_txt),
|
||||||
v: common_vendor.o(($event) => openPayStatusPopup("over")),
|
x: common_vendor.o(($event) => openPayStatusPopup("over")),
|
||||||
w: common_vendor.p({
|
|
||||||
["label-position"]: "top"
|
|
||||||
}),
|
|
||||||
x: common_vendor.o(addGoods),
|
|
||||||
y: common_vendor.p({
|
y: common_vendor.p({
|
||||||
type: "primary",
|
["label-position"]: "top"
|
||||||
plain: true,
|
})
|
||||||
size: "small"
|
} : {}, {
|
||||||
}),
|
|
||||||
z: common_vendor.f(orderGoods.value, (item, index, i0) => {
|
z: common_vendor.f(orderGoods.value, (item, index, i0) => {
|
||||||
return common_vendor.e({
|
return common_vendor.e({
|
||||||
a: item.goods_type_name && item.goods_name
|
a: item.goods_type_name && item.goods_name
|
||||||
@@ -332,15 +343,15 @@ const _sfc_main = {
|
|||||||
visibleGoodsCascader.value = true;
|
visibleGoodsCascader.value = true;
|
||||||
goodsIndex.value = index;
|
goodsIndex.value = index;
|
||||||
}, index),
|
}, index),
|
||||||
e: "7c6285d6-14-" + i0 + ",7c6285d6-13",
|
e: "7c6285d6-13-" + i0 + ",7c6285d6-12",
|
||||||
f: common_vendor.t(item.goods_price),
|
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),
|
h: common_vendor.t(item.goods_pay_status_txt),
|
||||||
i: common_vendor.o(($event) => openPayStatusPopup("goods", index), index),
|
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),
|
k: common_vendor.o(($event) => removeGoods(index), index),
|
||||||
l: "7c6285d6-18-" + i0 + "," + ("7c6285d6-17-" + i0),
|
l: "7c6285d6-17-" + i0 + "," + ("7c6285d6-16-" + i0),
|
||||||
m: "7c6285d6-17-" + i0 + ",7c6285d6-13",
|
m: "7c6285d6-16-" + i0 + ",7c6285d6-12",
|
||||||
n: index
|
n: index
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
@@ -360,39 +371,44 @@ const _sfc_main = {
|
|||||||
E: common_vendor.p({
|
E: common_vendor.p({
|
||||||
["label-position"]: "top"
|
["label-position"]: "top"
|
||||||
}),
|
}),
|
||||||
F: common_vendor.o(($event) => form.discount_amount = $event),
|
F: common_vendor.o(addGoods),
|
||||||
G: common_vendor.p({
|
G: common_vendor.p({
|
||||||
|
type: "primary",
|
||||||
|
plain: true,
|
||||||
|
size: "small"
|
||||||
|
}),
|
||||||
|
H: common_vendor.o(($event) => form.discount_amount = $event),
|
||||||
|
I: common_vendor.p({
|
||||||
placeholder: "请输入金额",
|
placeholder: "请输入金额",
|
||||||
type: "number",
|
type: "number",
|
||||||
modelValue: form.discount_amount
|
modelValue: form.discount_amount
|
||||||
}),
|
}),
|
||||||
H: common_vendor.o(($event) => form.remarks = $event),
|
J: common_vendor.o(($event) => form.remarks = $event),
|
||||||
I: common_vendor.p({
|
K: common_vendor.p({
|
||||||
rows: 3,
|
rows: 3,
|
||||||
["adjust-keyboard-to"]: _ctx.bottom,
|
|
||||||
placeholder: "请输入备注",
|
placeholder: "请输入备注",
|
||||||
modelValue: form.remarks
|
modelValue: form.remarks
|
||||||
}),
|
}),
|
||||||
J: common_vendor.p({
|
|
||||||
label: "备注"
|
|
||||||
}),
|
|
||||||
K: common_vendor.o(submitForm),
|
|
||||||
L: common_vendor.p({
|
L: common_vendor.p({
|
||||||
type: "success",
|
label: "备注"
|
||||||
block: true
|
|
||||||
}),
|
}),
|
||||||
M: common_vendor.o(submitForm),
|
M: common_vendor.o(submitForm),
|
||||||
N: common_vendor.p({
|
N: common_vendor.p({
|
||||||
|
type: "success",
|
||||||
|
block: true
|
||||||
|
}),
|
||||||
|
O: common_vendor.o(submitForm),
|
||||||
|
P: common_vendor.p({
|
||||||
type: "danger",
|
type: "danger",
|
||||||
block: true
|
block: true
|
||||||
}),
|
}),
|
||||||
O: common_vendor.o(onGoodsChange),
|
Q: common_vendor.o(onGoodsChange),
|
||||||
P: common_vendor.o(onGoodsPathChange),
|
R: common_vendor.o(onGoodsPathChange),
|
||||||
Q: common_vendor.o(onOpenGoodsCascader),
|
S: common_vendor.o(onOpenGoodsCascader),
|
||||||
R: common_vendor.o(onCloseGoodsCascader),
|
T: common_vendor.o(onCloseGoodsCascader),
|
||||||
S: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
U: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
|
||||||
T: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
V: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
|
||||||
U: common_vendor.p({
|
W: common_vendor.p({
|
||||||
title: "商品选择",
|
title: "商品选择",
|
||||||
["text-key"]: "label",
|
["text-key"]: "label",
|
||||||
["value-key"]: "value",
|
["value-key"]: "value",
|
||||||
@@ -402,9 +418,9 @@ const _sfc_main = {
|
|||||||
visible: visibleGoodsCascader.value,
|
visible: visibleGoodsCascader.value,
|
||||||
modelValue: cascaderGoodsValue.value
|
modelValue: cascaderGoodsValue.value
|
||||||
}),
|
}),
|
||||||
V: common_vendor.o(onConfirmPaymentStatus),
|
X: common_vendor.o(onConfirmPaymentStatus),
|
||||||
W: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
Y: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
|
||||||
X: common_vendor.p({
|
Z: common_vendor.p({
|
||||||
columns: paymentStatuses,
|
columns: paymentStatuses,
|
||||||
["field-names"]: {
|
["field-names"]: {
|
||||||
text: "label",
|
text: "label",
|
||||||
@@ -412,16 +428,16 @@ const _sfc_main = {
|
|||||||
},
|
},
|
||||||
title: "选择支付状态"
|
title: "选择支付状态"
|
||||||
}),
|
}),
|
||||||
Y: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
aa: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
|
||||||
Z: common_vendor.p({
|
ab: common_vendor.p({
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
["safe-area-inset-bottom"]: true,
|
["safe-area-inset-bottom"]: true,
|
||||||
visible: visiblePaymentStatusPopup.value
|
visible: visiblePaymentStatusPopup.value
|
||||||
}),
|
}),
|
||||||
aa: common_vendor.o(onConfirmCombos),
|
ac: common_vendor.o(onConfirmCombos),
|
||||||
ab: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
ad: common_vendor.o(($event) => visibleCombosPopup.value = false),
|
||||||
ac: common_vendor.o(($event) => popupCombosVal.value = $event),
|
ae: common_vendor.o(($event) => popupCombosVal.value = $event),
|
||||||
ad: common_vendor.p({
|
af: common_vendor.p({
|
||||||
columns: combos.value,
|
columns: combos.value,
|
||||||
["field-names"]: {
|
["field-names"]: {
|
||||||
text: "label",
|
text: "label",
|
||||||
@@ -430,15 +446,15 @@ const _sfc_main = {
|
|||||||
title: "选择团购套餐",
|
title: "选择团购套餐",
|
||||||
modelValue: popupCombosVal.value
|
modelValue: popupCombosVal.value
|
||||||
}),
|
}),
|
||||||
ae: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
ag: common_vendor.o(($event) => visibleCombosPopup.value = $event),
|
||||||
af: common_vendor.p({
|
ah: common_vendor.p({
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
["safe-area-inset-bottom"]: true,
|
["safe-area-inset-bottom"]: true,
|
||||||
visible: visibleCombosPopup.value
|
visible: visibleCombosPopup.value
|
||||||
}),
|
}),
|
||||||
ag: common_vendor.o(onConfirmFeeType),
|
ai: common_vendor.o(onConfirmFeeType),
|
||||||
ah: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
aj: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
|
||||||
ai: common_vendor.p({
|
ak: common_vendor.p({
|
||||||
columns: feeTypes,
|
columns: feeTypes,
|
||||||
["field-names"]: {
|
["field-names"]: {
|
||||||
text: "label",
|
text: "label",
|
||||||
@@ -446,8 +462,8 @@ const _sfc_main = {
|
|||||||
},
|
},
|
||||||
title: "选择结算方式"
|
title: "选择结算方式"
|
||||||
}),
|
}),
|
||||||
aj: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
al: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
|
||||||
ak: common_vendor.p({
|
am: common_vendor.p({
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
["safe-area-inset-bottom"]: true,
|
["safe-area-inset-bottom"]: true,
|
||||||
visible: visibleFeeTypePopup.value
|
visible: visibleFeeTypePopup.value
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user