处理商品订单

This commit is contained in:
2026-01-12 19:28:35 +08:00
parent a14a51d575
commit 8d4e899c08
23 changed files with 916 additions and 214 deletions

View File

@@ -54,6 +54,13 @@
"enablePullDownRefresh": false
}
},
{
"path": "pages/index/goodsOrderAdd",
"style": {
"navigationBarTitleText": "商品订单",
"enablePullDownRefresh": false
}
},
// {
// "path": "pages/cart/index",
// "style": {

View File

@@ -0,0 +1,338 @@
<template>
<view class="page-content">
<view style=" padding: 10rpx;">
<view class="title">商品 </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>
<view style="color: black;" @click="visibleGoodsCascader = true;goodsIndex = index">
<text v-if="item.goods_type_name && item.goods_name">
{{ item.goods_type_name }} - {{ item.goods_name }}
</text>
<text v-else>请选择商品</text>
</view>
</template>
</nut-form-item>
<nut-form-item label-position="top">
<template v-slot:label>售价</template>
<template v-slot:default>
<view style="color: black;">
<text>{{item.goods_price}}</text>
</view>
</template>
</nut-form-item>
</view>
<view class="form-row">
<nut-form-item label-position="top">
<template v-slot:label>支付状态</template>
<template v-slot:default>
<view style="color: black;" @click="openPayStatusPopup('goods',index)">
<text>{{item.goods_pay_status_txt}}</text>
</view>
</template>
</nut-form-item>
<nut-form-item label-position="top">
<template v-slot:label>操作</template>
<template v-slot:default>
<view>
<nut-button type="danger" size="mini" @click="removeGoods(index)">删除商品</nut-button>
</view>
</template>
</nut-form-item>
</view>
</view>
</nut-form>
<view class="top-bar">
<nut-button type="primary" plain size="small" @click="addGoods">新增商品</nut-button>
</view>
<view class="title">订单优惠 </view>
<nut-form>
<nut-form-item>
<template v-slot:label>优惠金额</template>
<template v-slot:default>
<nut-input v-model="form.discount_amount" placeholder="请输入金额" type="number" />
</template>
</nut-form-item>
<nut-form-item label="备注">
<nut-textarea v-model="form.remarks" :rows="3" adjust-keyboard-to="bottom"
placeholder="请输入备注"></nut-textarea>
</nut-form-item>
</nut-form>
<view style="align-items: center;text-align: center; padding: 20rpx 60rpx;">
<nut-button type="primary" block @click="submitForm">
提交订单
</nut-button>
</view>
</view>
<nut-cascader title="商品选择" v-model:visible="visibleGoodsCascader" v-model="cascaderGoodsValue"
@change="onGoodsChange" @pathChange="onGoodsPathChange" text-key="label" value-key="value"
children-key="children" :options="selectGoods" :title-ellipsis="false" @open="onOpenGoodsCascader"
@close="onCloseGoodsCascader"></nut-cascader>
<!-- v-model="popupPaymentStatusVal" -->
<nut-popup v-model:visible="visiblePaymentStatusPopup" position="bottom" safe-area-inset-bottom>
<nut-picker :columns="paymentStatuses" :field-names="{text:'label',value:'value'}" title="选择支付状态"
@confirm="onConfirmPaymentStatus" @cancel="visiblePaymentStatusPopup = false">
</nut-picker>
</nut-popup>
</view>
</template>
<script setup>
import {
computed,
onMounted,
reactive,
ref,
toValue
} from 'vue';
import {
onLoad,
onShow,
onHide
} from '@dcloudio/uni-app';
import {
// fetchCombos,
fetchGoods,
fetchAddOrder,
} from '@/api/index';
onLoad(options => {
console.log(options);
})
// 支付状态弹窗
const visiblePaymentStatusPopup = ref(false);
// 选中的支付状态
// const popupPaymentStatusVal = ref([])
// 支付类型
const popupPaymentTypeVal = ref('')
// 支付状态
const paymentStatuses = [{
value: 1,
label: '已付'
},
];
const openPayStatusPopup = (type, index = -1) => {
popupPaymentTypeVal.value = type
goodsPayIndex.value = index // 只有type = goods 生效
visiblePaymentStatusPopup.value = true
console.log(type);
}
const onConfirmPaymentStatus = (selectedValue) => {
if (popupPaymentTypeVal.value == 'goods' && goodsPayIndex.value >= 0) {
console.log("处理商品支付状态", 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
}
console.log(form);
visiblePaymentStatusPopup.value = false
popupPaymentTypeVal.value = ''
goodsPayIndex.value = -1
}
// 订单商品列表
const orderGoods = ref([
// {
// goods_type_name: null,
// goods_type_id: null,
// goods_name: null,
// goods_id: null,
// goods_price: null,
// goods_pay_status: 0,
// goods_pay_status_txt: "请选择",
// cascader_val: []
// },
])
// 当前操作的商品
const goodsPayIndex = ref(0)
// 当前操作的商品
const goodsIndex = ref(0)
// 添加规则
const addGoods = () => {
console.log(orderGoods.value);
orderGoods.value.push({
goods_type_name: null,
goods_type_id: null,
goods_name: null,
goods_id: null,
goods_price: null,
goods_pay_status: 1,
goods_pay_status_txt: "已付",
cascader_val: []
})
}
// 删除商品
const removeGoods = (index) => {
orderGoods.value.splice(index, 1)
}
// 显示商品选择
const visibleGoodsCascader = ref(false)
// 商品选中
const cascaderGoodsValue = computed(() => {
let cascader_val = [];
if (goodsIndex.value >= 0) {
return orderGoods.value[goodsIndex.value]?.cascader_val ?? []
} else {
return cascader_val;
}
});
const onGoodsChange = (...args) => {
console.log("onGoodsChange", args);
}
// 选择商品
const onGoodsPathChange = (args) => {
console.log("onGoodsPathChange", args);
console.log("goodsIndex", goodsIndex.value);
console.log("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
orderGoods.value[goodsIndex.value].goods_id = null
orderGoods.value[goodsIndex.value].goods_price = null
if (args.length >= 1 && args[0] !== null) {
orderGoods.value[goodsIndex.value].goods_type_name = args[0].text
orderGoods.value[goodsIndex.value].goods_type_id = args[0].value
}
if (args.length >= 2 && args[1] !== null) {
orderGoods.value[goodsIndex.value].goods_name = args[1].text
orderGoods.value[goodsIndex.value].goods_id = args[1].value
orderGoods.value[goodsIndex.value].goods_price = args[1].goods_price
}
console.log("orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
}
const onCloseGoodsCascader = () => {
console.log("onCloseGoodsCascader");
console.log("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,
orderGoods.value[goodsIndex.value].goods_id
]
}
goodsIndex.value = 0
console.log("goodsIndex.value", goodsIndex.value);
}
const onOpenGoodsCascader = () => {
console.log("onOpenGoodsCascader");
console.log("goodsIndex.value", goodsIndex.value);
}
const form = reactive({
order_type: 2, // 开台订单
discount_amount: null, // 优惠金额
remarks: null
})
// 商品列表
const selectGoods = ref([])
onMounted(() => {
fetchGoods().then(res => {
selectGoods.value = res;
})
})
// 提交表单
const submitForm = () => {
let data = {
order_goods: orderGoods.value,
order: form
}
console.log('提交的订单数据:', data);
fetchAddOrder(data).then(res => {
console.log(res);
uni.showToast({
icon: 'none',
title: '商品订单记录成功'
})
setTimeout(() => {
uni.switchTab({
url: '/pages/index/index'
});
// uni.navigateBack({
// delta: 1 // 返回上一页
// });
}, 500)
})
};
</script>
<style lang="scss" scoped>
.page-content {
min-height: 100vh;
background-color: #f2f3f5;
}
.title {
padding: 0 20rpx;
margin-top: 20rpx;
margin-bottom: 20rpx;
font-size: 28rpx;
// font-weight: 400;
color: #909ca4;
}
.inline-form {
display: flex;
justify-content: space-between;
gap: 10rpx;
/* 在元素之间添加间距 */
}
.top-bar {
background: #fff;
padding: 20rpx;
display: flex;
justify-content: space-between;
border-top: 1px solid #eee;
// position: sticky;
// bottom: 0;
// z-index: 999;
}
/* 每个商品项容器 */
.inline-goods-form {
// box-sizing: border-box;
}
/* 行容器 */
.form-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20rpx;
margin-bottom: 20rpx;
}
</style>

View File

@@ -2,7 +2,7 @@
<view class="page-content">
<view style="z-index: 10000;position: sticky;" :style="'top:0px'">
<view class="top-bar">
<nut-button type="primary" block @click="navigateTo('/pages/index/orderAdd')">
<nut-button type="primary" block @click="navigateTo('/pages/index/goodsOrderAdd')">
新增商品订单
</nut-button>
</view>
@@ -43,7 +43,7 @@
</view>
<!-- 弹出 -->
<nut-popup :custom-style="{ height: '60%' }" v-model:visible="visiblePopup" position="bottom"
<nut-popup :custom-style="{ height: '75%' }" v-model:visible="visiblePopup" position="bottom"
safe-area-inset-bottom :close-on-click-overlay="true" @close="onClosePopup">
<view>
<view class="title">{{tempRoom?.room_name}} </view>

View File

@@ -160,6 +160,10 @@
<nut-input v-model="form.discount_amount" placeholder="请输入金额" type="number" />
</template>
</nut-form-item>
<nut-form-item label="备注">
<nut-textarea v-model="form.remarks" :rows="3" :adjust-keyboard-to="bottom"
placeholder="请输入备注"></nut-textarea>
</nut-form-item>
</nut-form>
@@ -239,34 +243,6 @@
// // 选择房间弹窗
// const visibleRoomsPopup = ref(false);
// // 选中的房间
// const popupRoomsVal = ref([])
// // 房间列表
// const rooms = [{
// value: 1,
// label: '房间 101'
// },
// {
// value: 2,
// label: '房间 102'
// },
// {
// value: 3,
// label: '房间 103'
// }
// ];
// // 选择房间
// const onConfirmRoom = (selectedValue) => {
// console.log(selectedValue);
// form.room_name = selectedValue.selectedOptions[0].label
// form.room_id = selectedValue.selectedOptions[0].value
// console.log(form);
// visibleRoomsPopup.value = false
// }
// 选择房间弹窗
const visibleFeeTypePopup = ref(false);
// 台费结算类型
@@ -296,7 +272,6 @@
if (form.fee_type !== 3) {
getCombos();
}
visibleFeeTypePopup.value = false
}
@@ -486,6 +461,8 @@
discount_amount: null, // 优惠金额
remarks: null
})
@@ -502,13 +479,6 @@
// 提交表单
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
@@ -517,7 +487,18 @@
// console.log('提交的订单数据:', form);
fetchAddOrder(data).then(res => {
console.log(res);
// selectGoods.value = res;
uni.showToast({
icon: 'none',
title: '开台成功'
})
setTimeout(() => {
uni.switchTab({
url: '/pages/index/index'
});
// uni.navigateBack({
// delta: 1 // 返回上一页
// });
}, 500)
})
};

View File

@@ -151,14 +151,22 @@
<nut-input v-model="form.discount_amount" placeholder="请输入金额" type="number" />
</template>
</nut-form-item>
<nut-form-item label="备注">
<nut-textarea v-model="form.remarks" :rows="3" :adjust-keyboard-to="bottom"
placeholder="请输入备注"></nut-textarea>
</nut-form-item>
</nut-form>
<view style="align-items: center;text-align: center; padding: 20rpx 60rpx;">
<nut-button type="success" block @click="submitForm">
仅保存账单
</nut-button>
</view>
<view style="align-items: center;text-align: center; padding: 20rpx 60rpx;">
<nut-button type="primary" block @click="submitForm">
开台
<nut-button type="danger" block @click="submitForm">
保存账单并结束该房间
</nut-button>
</view>
</view>
@@ -253,36 +261,10 @@
form.over_pay_status = res.over_pay_status.value
form.over_pay_status_txt = res.over_pay_status.text
// is_show_edit.value = true;
// console.log("====>", res);
// form.goods_id = res.goods_id
// form.goods_name = res.goods_name
// form.goods_no = res.goods_no
// form.goods_price = res.goods_price
// // form.goods_stock = res.goods_stock
// form.content = res.content
// form.details_content = res.details_content
// form.status = res.status.value.toString()
form.discount_amount = res.discount_amount
form.remarks = res.remarks
// form.degree_id = res.degree?.degree_id ?? 0
// form.degree_name = res.degree?.degree_name ?? '未选择'
// form.type_id = res.type?.type_id ?? 0
// form.type_name = res.type?.name ?? '未选择'
// form.brand_id = res.brand?.brand_id ?? 0
// form.brand_name = res.brand?.name ?? '未选择'
// form.product_id = res.product?.product_id ?? 0
// form.product_name = res.product?.name ?? '未选择'
// popup_degree_val.value = [res.degree?.degree_id ?? 0]
// cascader_product_val.value = [res.type?.type_id ?? 0, res.brand?.brand_id ?? 0, res.product
// ?.product_id ?? 0
// ]
// form.images = []
// res.image?.forEach(item => {
// form.images.push({
// id: item.image_id,
// file_path: item.file_path,
// })
// })
orderGoods.value = res.goods
})
}
@@ -291,33 +273,6 @@
// // 选择房间弹窗
// const visibleRoomsPopup = ref(false);
// // 选中的房间
// const popupRoomsVal = ref([])
// // 房间列表
// const rooms = [{
// value: 1,
// label: '房间 101'
// },
// {
// value: 2,
// label: '房间 102'
// },
// {
// value: 3,
// label: '房间 103'
// }
// ];
// // 选择房间
// const onConfirmRoom = (selectedValue) => {
// console.log(selectedValue);
// form.room_name = selectedValue.selectedOptions[0].label
// form.room_id = selectedValue.selectedOptions[0].value
// console.log(form);
// visibleRoomsPopup.value = false
// }
// 选择房间弹窗
const visibleFeeTypePopup = ref(false);
// 台费结算类型
@@ -405,8 +360,8 @@
console.log(type);
}
// 选择支付状态
const onConfirmPaymentStatus = (selectedValue) => {
if (popupPaymentTypeVal.value == 'fee') {
form.fee_pay_status_txt = selectedValue.selectedOptions[0].label
form.fee_pay_status = selectedValue.selectedOptions[0].value
@@ -415,6 +370,7 @@
form.over_pay_status_txt = selectedValue.selectedOptions[0].label
form.over_pay_status = selectedValue.selectedOptions[0].value
}
// 商品
if (popupPaymentTypeVal.value == 'goods' && goodsPayIndex.value >= 0) {
console.log("处理商品支付状态", goodsPayIndex.value);
orderGoods.value[goodsPayIndex.value].goods_pay_status_txt = selectedValue.selectedOptions[0].label

View File

@@ -1 +1 @@
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\n\t// import {ShoppingCartType} from '@/common/constants';\n\texport default {\n\tonLaunch: function () {\n\t\t\t// const shoppingCartType = uni.getStorageSync('SHOPPING_CART_TYPE');\n\t\t\t// if (!shoppingCartType) {\n\t\t\t// \tuni.setStorageSync('SHOPPING_CART_TYPE', ShoppingCartType.PHONE)\n\t\t\t// }\n\n\t\t\t// uni.hideTabBar()\n\t\t\tconsole.log('App Launch')\n\t\t},\n\t\tonShow: function() {\n\t\t\t// uni.hideTabBar()\n\t\t\tconsole.log('App Show')\n\t\t},\n\t\tonHide: function() {\n\t\t\tconsole.log('App Hide')\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\t@import \"@/uni_modules/nutui-uni/styles/index.scss\";\n</style>\n","import App from './App'\n\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n return {\n app\n }\n}\n// #endif"],"names":["uni","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEC,MAAK,YAAU;AAAA,EACf,UAAU,WAAY;AAOpBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAElBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACJM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\n\t// import {ShoppingCartType} from '@/common/constants';\n\texport default {\n\tonLaunch: function () {\n\t\t\t// const shoppingCartType = uni.getStorageSync('SHOPPING_CART_TYPE');\n\t\t\t// if (!shoppingCartType) {\n\t\t\t// \tuni.setStorageSync('SHOPPING_CART_TYPE', ShoppingCartType.PHONE)\n\t\t\t// }\n\n\t\t\t// uni.hideTabBar()\n\t\t\tconsole.log('App Launch')\n\t\t},\n\t\tonShow: function() {\n\t\t\t// uni.hideTabBar()\n\t\t\tconsole.log('App Show')\n\t\t},\n\t\tonHide: function() {\n\t\t\tconsole.log('App Hide')\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n\t@import \"@/uni_modules/nutui-uni/styles/index.scss\";\n</style>\n","import App from './App'\n\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n return {\n app\n }\n}\n// #endif"],"names":["uni","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEC,MAAK,YAAU;AAAA,EACf,UAAU,WAAY;AAOpBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAElBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACJM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}

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

View File

@@ -5,6 +5,7 @@ if (!Math) {
"./pages/index/index.js";
"./pages/index/orderAdd.js";
"./pages/index/orderEdit.js";
"./pages/index/goodsOrderAdd.js";
"./pages/mine/index.js";
"./pages/mall/detail.js";
"./pages/mall/houseDetail.js";

View File

@@ -3,6 +3,7 @@
"pages/index/index",
"pages/index/orderAdd",
"pages/index/orderEdit",
"pages/index/goodsOrderAdd",
"pages/mine/index",
"pages/mall/detail",
"pages/mall/houseDetail",

View File

@@ -0,0 +1,274 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_index = require("../../api/index.js");
if (!Array) {
const _easycom_nut_form_item2 = common_vendor.resolveComponent("nut-form-item");
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
const _easycom_nut_form2 = common_vendor.resolveComponent("nut-form");
const _easycom_nut_input2 = common_vendor.resolveComponent("nut-input");
const _easycom_nut_textarea2 = common_vendor.resolveComponent("nut-textarea");
const _easycom_nut_cascader2 = common_vendor.resolveComponent("nut-cascader");
const _easycom_nut_picker2 = common_vendor.resolveComponent("nut-picker");
const _easycom_nut_popup2 = common_vendor.resolveComponent("nut-popup");
(_easycom_nut_form_item2 + _easycom_nut_button2 + _easycom_nut_form2 + _easycom_nut_input2 + _easycom_nut_textarea2 + _easycom_nut_cascader2 + _easycom_nut_picker2 + _easycom_nut_popup2)();
}
const _easycom_nut_form_item = () => "../../uni_modules/nutui-uni/components/formitem/formitem.js";
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
const _easycom_nut_form = () => "../../uni_modules/nutui-uni/components/form/form.js";
const _easycom_nut_input = () => "../../uni_modules/nutui-uni/components/input/input.js";
const _easycom_nut_textarea = () => "../../uni_modules/nutui-uni/components/textarea/textarea.js";
const _easycom_nut_cascader = () => "../../uni_modules/nutui-uni/components/cascader/cascader.js";
const _easycom_nut_picker = () => "../../uni_modules/nutui-uni/components/picker/picker.js";
const _easycom_nut_popup = () => "../../uni_modules/nutui-uni/components/popup/popup.js";
if (!Math) {
(_easycom_nut_form_item + _easycom_nut_button + _easycom_nut_form + _easycom_nut_input + _easycom_nut_textarea + _easycom_nut_cascader + _easycom_nut_picker + _easycom_nut_popup)();
}
const _sfc_main = {
__name: "goodsOrderAdd",
setup(__props) {
common_vendor.onLoad((options) => {
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:118", options);
});
const visiblePaymentStatusPopup = common_vendor.ref(false);
const popupPaymentTypeVal = common_vendor.ref("");
const paymentStatuses = [
{
value: 1,
label: "已付"
}
];
const openPayStatusPopup = (type, index = -1) => {
popupPaymentTypeVal.value = type;
goodsPayIndex.value = index;
visiblePaymentStatusPopup.value = true;
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:141", type);
};
const onConfirmPaymentStatus = (selectedValue) => {
if (popupPaymentTypeVal.value == "goods" && goodsPayIndex.value >= 0) {
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:145", "处理商品支付状态", 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/goodsOrderAdd.vue:149", form);
visiblePaymentStatusPopup.value = false;
popupPaymentTypeVal.value = "";
goodsPayIndex.value = -1;
};
const orderGoods = common_vendor.ref([
// {
// goods_type_name: null,
// goods_type_id: null,
// goods_name: null,
// goods_id: null,
// goods_price: null,
// goods_pay_status: 0,
// goods_pay_status_txt: "请选择",
// cascader_val: []
// },
]);
const goodsPayIndex = common_vendor.ref(0);
const goodsIndex = common_vendor.ref(0);
const addGoods = () => {
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:176", orderGoods.value);
orderGoods.value.push({
goods_type_name: null,
goods_type_id: null,
goods_name: null,
goods_id: null,
goods_price: null,
goods_pay_status: 1,
goods_pay_status_txt: "已付",
cascader_val: []
});
};
const removeGoods = (index) => {
orderGoods.value.splice(index, 1);
};
const visibleGoodsCascader = common_vendor.ref(false);
const cascaderGoodsValue = common_vendor.computed(() => {
var _a;
let cascader_val = [];
if (goodsIndex.value >= 0) {
return ((_a = orderGoods.value[goodsIndex.value]) == null ? void 0 : _a.cascader_val) ?? [];
} else {
return cascader_val;
}
});
const onGoodsChange = (...args) => {
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:204", "onGoodsChange", args);
};
const onGoodsPathChange = (args) => {
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:208", "onGoodsPathChange", args);
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:209", "goodsIndex", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:210", "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;
orderGoods.value[goodsIndex.value].goods_id = null;
orderGoods.value[goodsIndex.value].goods_price = null;
if (args.length >= 1 && args[0] !== null) {
orderGoods.value[goodsIndex.value].goods_type_name = args[0].text;
orderGoods.value[goodsIndex.value].goods_type_id = args[0].value;
}
if (args.length >= 2 && args[1] !== null) {
orderGoods.value[goodsIndex.value].goods_name = args[1].text;
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/goodsOrderAdd.vue:226", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
};
const onCloseGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:229", "onCloseGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:230", "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,
orderGoods.value[goodsIndex.value].goods_id
];
}
goodsIndex.value = 0;
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:238", "goodsIndex.value", goodsIndex.value);
};
const onOpenGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:241", "onOpenGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:242", "goodsIndex.value", goodsIndex.value);
};
const form = common_vendor.reactive({
order_type: 2,
// 开台订单
discount_amount: null,
// 优惠金额
remarks: null
});
const selectGoods = common_vendor.ref([]);
common_vendor.onMounted(() => {
api_index.fetchGoods().then((res) => {
selectGoods.value = res;
});
});
const submitForm = () => {
let data = {
order_goods: orderGoods.value,
order: form
};
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:269", "提交的订单数据:", data);
api_index.fetchAddOrder(data).then((res) => {
common_vendor.index.__f__("log", "at pages/index/goodsOrderAdd.vue:271", res);
common_vendor.index.showToast({
icon: "none",
title: "商品订单记录成功"
});
setTimeout(() => {
common_vendor.index.switchTab({
url: "/pages/index/index"
});
}, 500);
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(orderGoods.value, (item, index, i0) => {
return common_vendor.e({
a: item.goods_type_name && item.goods_name
}, item.goods_type_name && item.goods_name ? {
b: common_vendor.t(item.goods_type_name),
c: common_vendor.t(item.goods_name)
} : {}, {
d: common_vendor.o(($event) => {
visibleGoodsCascader.value = true;
goodsIndex.value = index;
}, index),
e: "bd18e2e4-1-" + i0 + ",bd18e2e4-0",
f: common_vendor.t(item.goods_price),
g: "bd18e2e4-2-" + i0 + ",bd18e2e4-0",
h: common_vendor.t(item.goods_pay_status_txt),
i: common_vendor.o(($event) => openPayStatusPopup("goods", index), index),
j: "bd18e2e4-3-" + i0 + ",bd18e2e4-0",
k: common_vendor.o(($event) => removeGoods(index), index),
l: "bd18e2e4-5-" + i0 + "," + ("bd18e2e4-4-" + i0),
m: "bd18e2e4-4-" + i0 + ",bd18e2e4-0",
n: index
});
}),
b: common_vendor.p({
["label-position"]: "top"
}),
c: common_vendor.p({
["label-position"]: "top"
}),
d: common_vendor.p({
["label-position"]: "top"
}),
e: common_vendor.p({
type: "danger",
size: "mini"
}),
f: common_vendor.p({
["label-position"]: "top"
}),
g: common_vendor.o(addGoods),
h: common_vendor.p({
type: "primary",
plain: true,
size: "small"
}),
i: common_vendor.o(($event) => form.discount_amount = $event),
j: common_vendor.p({
placeholder: "请输入金额",
type: "number",
modelValue: form.discount_amount
}),
k: common_vendor.o(($event) => form.remarks = $event),
l: common_vendor.p({
rows: 3,
["adjust-keyboard-to"]: "bottom",
placeholder: "请输入备注",
modelValue: form.remarks
}),
m: common_vendor.p({
label: "备注"
}),
n: common_vendor.o(submitForm),
o: common_vendor.p({
type: "primary",
block: true
}),
p: common_vendor.o(onGoodsChange),
q: common_vendor.o(onGoodsPathChange),
r: common_vendor.o(onOpenGoodsCascader),
s: common_vendor.o(onCloseGoodsCascader),
t: 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",
["children-key"]: "children",
options: selectGoods.value,
["title-ellipsis"]: false,
visible: visibleGoodsCascader.value,
modelValue: cascaderGoodsValue.value
}),
x: common_vendor.o(onConfirmPaymentStatus),
y: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
z: common_vendor.p({
columns: paymentStatuses,
["field-names"]: {
text: "label",
value: "value"
},
title: "选择支付状态"
}),
A: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
B: common_vendor.p({
position: "bottom",
["safe-area-inset-bottom"]: true,
visible: visiblePaymentStatusPopup.value
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bd18e2e4"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/goodsOrderAdd.js.map

View File

@@ -0,0 +1,14 @@
{
"navigationBarTitleText": "商品订单",
"enablePullDownRefresh": false,
"usingComponents": {
"nut-form-item": "../../uni_modules/nutui-uni/components/formitem/formitem",
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
"nut-form": "../../uni_modules/nutui-uni/components/form/form",
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader",
"nut-picker": "../../uni_modules/nutui-uni/components/picker/picker",
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup"
}
}

View File

@@ -0,0 +1 @@
<view class="page-content data-v-bd18e2e4"><view class="data-v-bd18e2e4" style="padding:10rpx"><view class="title data-v-bd18e2e4">商品 </view><nut-form class="data-v-bd18e2e4" u-s="{{['d']}}" u-i="bd18e2e4-0" bind:__l="__l"><view wx:for="{{a}}" wx:for-item="item" wx:key="n" class="inline-goods-form data-v-bd18e2e4"><view class="form-row data-v-bd18e2e4"><nut-form-item wx:if="{{b}}" class="data-v-bd18e2e4" u-s="{{['label','d']}}" u-i="{{item.e}}" bind:__l="__l" u-p="{{b}}"><view slot="label">商品</view><view class="data-v-bd18e2e4" style="color:black" bindtap="{{item.d}}"><text wx:if="{{item.a}}" class="data-v-bd18e2e4">{{item.b}} - {{item.c}}</text><text wx:else class="data-v-bd18e2e4">请选择商品</text></view></nut-form-item><nut-form-item wx:if="{{c}}" class="data-v-bd18e2e4" u-s="{{['label','d']}}" u-i="{{item.g}}" bind:__l="__l" u-p="{{c}}"><view slot="label">售价</view><view class="data-v-bd18e2e4" style="color:black"><text class="data-v-bd18e2e4">{{item.f}}</text></view></nut-form-item></view><view class="form-row data-v-bd18e2e4"><nut-form-item wx:if="{{d}}" class="data-v-bd18e2e4" u-s="{{['label','d']}}" u-i="{{item.j}}" bind:__l="__l" u-p="{{d}}"><view slot="label">支付状态</view><view class="data-v-bd18e2e4" style="color:black" bindtap="{{item.i}}"><text class="data-v-bd18e2e4">{{item.h}}</text></view></nut-form-item><nut-form-item wx:if="{{f}}" class="data-v-bd18e2e4" u-s="{{['label','d']}}" u-i="{{item.m}}" bind:__l="__l" u-p="{{f}}"><view slot="label">操作</view><view class="data-v-bd18e2e4"><nut-button wx:if="{{e}}" class="data-v-bd18e2e4" u-s="{{['d']}}" bindclick="{{item.k}}" u-i="{{item.l}}" bind:__l="__l" u-p="{{e}}">删除商品</nut-button></view></nut-form-item></view></view></nut-form><view class="top-bar data-v-bd18e2e4"><nut-button wx:if="{{h}}" class="data-v-bd18e2e4" u-s="{{['d']}}" bindclick="{{g}}" u-i="bd18e2e4-6" bind:__l="__l" u-p="{{h}}">新增商品</nut-button></view><view class="title data-v-bd18e2e4">订单优惠 </view><nut-form class="data-v-bd18e2e4" u-s="{{['d']}}" u-i="bd18e2e4-7" bind:__l="__l"><nut-form-item class="data-v-bd18e2e4" u-s="{{['label','d']}}" u-i="bd18e2e4-8,bd18e2e4-7" bind:__l="__l"><view slot="label">优惠金额</view><nut-input class="data-v-bd18e2e4" u-i="bd18e2e4-9,bd18e2e4-8" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"/></nut-form-item><nut-form-item wx:if="{{m}}" class="data-v-bd18e2e4" u-s="{{['d']}}" u-i="bd18e2e4-10,bd18e2e4-7" bind:__l="__l" u-p="{{m}}"><nut-textarea wx:if="{{l}}" class="data-v-bd18e2e4" u-i="bd18e2e4-11,bd18e2e4-10" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></nut-textarea></nut-form-item></nut-form><view class="data-v-bd18e2e4" style="align-items:center;text-align:center;padding:20rpx 60rpx"><nut-button wx:if="{{o}}" class="data-v-bd18e2e4" u-s="{{['d']}}" bindclick="{{n}}" u-i="bd18e2e4-12" bind:__l="__l" u-p="{{o}}"> 提交订单 </nut-button></view></view><nut-cascader wx:if="{{w}}" class="data-v-bd18e2e4" bindchange="{{p}}" bindpathChange="{{q}}" bindopen="{{r}}" bindclose="{{s}}" u-i="bd18e2e4-13" bind:__l="__l" bindupdateVisible="{{t}}" bindupdateModelValue="{{v}}" u-p="{{w}}"></nut-cascader><nut-popup wx:if="{{B}}" class="data-v-bd18e2e4" u-s="{{['d']}}" u-i="bd18e2e4-14" bind:__l="__l" bindupdateVisible="{{A}}" u-p="{{B}}"><nut-picker wx:if="{{z}}" class="data-v-bd18e2e4" bindconfirm="{{x}}" bindcancel="{{y}}" u-i="bd18e2e4-15,bd18e2e4-14" bind:__l="__l" u-p="{{z}}"></nut-picker></nut-popup></view>

View File

@@ -0,0 +1,84 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page-content.data-v-bd18e2e4 {
min-height: 100vh;
background-color: #f2f3f5;
}
.title.data-v-bd18e2e4 {
padding: 0 20rpx;
margin-top: 20rpx;
margin-bottom: 20rpx;
font-size: 28rpx;
color: #909ca4;
}
.inline-form.data-v-bd18e2e4 {
display: flex;
justify-content: space-between;
gap: 10rpx;
/* 在元素之间添加间距 */
}
.top-bar.data-v-bd18e2e4 {
background: #fff;
padding: 20rpx;
display: flex;
justify-content: space-between;
border-top: 1px solid #eee;
}
/* 每个商品项容器 */
/* 行容器 */
.form-row.data-v-bd18e2e4 {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20rpx;
margin-bottom: 20rpx;
}

View File

@@ -109,7 +109,7 @@ const _sfc_main = {
});
return (_ctx, _cache) => {
return {
a: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/index/orderAdd")),
a: common_vendor.o(($event) => common_vendor.unref(utils_helper.navigateTo)("/pages/index/goodsOrderAdd")),
b: common_vendor.p({
type: "primary",
block: true
@@ -198,7 +198,7 @@ const _sfc_main = {
o: common_vendor.o(($event) => visiblePopup.value = $event),
p: common_vendor.p({
["custom-style"]: {
height: "60%"
height: "75%"
},
position: "bottom",
["safe-area-inset-bottom"]: true,

View File

@@ -6,29 +6,31 @@ if (!Array) {
const _easycom_nut_input2 = common_vendor.resolveComponent("nut-input");
const _easycom_nut_form2 = common_vendor.resolveComponent("nut-form");
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
const _easycom_nut_textarea2 = common_vendor.resolveComponent("nut-textarea");
const _easycom_nut_cascader2 = common_vendor.resolveComponent("nut-cascader");
const _easycom_nut_picker2 = common_vendor.resolveComponent("nut-picker");
const _easycom_nut_popup2 = common_vendor.resolveComponent("nut-popup");
(_easycom_nut_form_item2 + _easycom_nut_input2 + _easycom_nut_form2 + _easycom_nut_button2 + _easycom_nut_cascader2 + _easycom_nut_picker2 + _easycom_nut_popup2)();
(_easycom_nut_form_item2 + _easycom_nut_input2 + _easycom_nut_form2 + _easycom_nut_button2 + _easycom_nut_textarea2 + _easycom_nut_cascader2 + _easycom_nut_picker2 + _easycom_nut_popup2)();
}
const _easycom_nut_form_item = () => "../../uni_modules/nutui-uni/components/formitem/formitem.js";
const _easycom_nut_input = () => "../../uni_modules/nutui-uni/components/input/input.js";
const _easycom_nut_form = () => "../../uni_modules/nutui-uni/components/form/form.js";
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
const _easycom_nut_textarea = () => "../../uni_modules/nutui-uni/components/textarea/textarea.js";
const _easycom_nut_cascader = () => "../../uni_modules/nutui-uni/components/cascader/cascader.js";
const _easycom_nut_picker = () => "../../uni_modules/nutui-uni/components/picker/picker.js";
const _easycom_nut_popup = () => "../../uni_modules/nutui-uni/components/popup/popup.js";
if (!Math) {
(_easycom_nut_form_item + _easycom_nut_input + _easycom_nut_form + _easycom_nut_button + _easycom_nut_cascader + _easycom_nut_picker + _easycom_nut_popup)();
(_easycom_nut_form_item + _easycom_nut_input + _easycom_nut_form + _easycom_nut_button + _easycom_nut_textarea + _easycom_nut_cascader + _easycom_nut_picker + _easycom_nut_popup)();
}
const _sfc_main = {
__name: "orderAdd",
setup(__props) {
common_vendor.onLoad((options) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:233", "onLoad");
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:237", "onLoad");
form.room_id = options.roomId;
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:236", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:237", options);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:240", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:241", options);
});
const visibleFeeTypePopup = common_vendor.ref(false);
const feeTypes = [
@@ -46,21 +48,21 @@ const _sfc_main = {
}
];
const onConfirmFeeType = (selectedValue) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:292", selectedValue);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:268", 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:295", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:271", form);
if (form.fee_type !== 3) {
getCombos();
}
visibleFeeTypePopup.value = false;
};
const getCombos = () => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:304", "获取套餐");
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:279", "获取套餐");
api_index.fetchCombos({
type: form.fee_type
}).then((res) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:308", res);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:283", res);
combos.value = res;
});
};
@@ -68,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:323", selectedValue);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:298", 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:326", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:301", form);
visibleCombosPopup.value = false;
};
const visiblePaymentStatusPopup = common_vendor.ref(false);
@@ -95,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:354", type);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:329", type);
};
const onConfirmPaymentStatus = (selectedValue) => {
if (popupPaymentTypeVal.value == "fee") {
@@ -107,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:368", "处理商品支付状态", goodsPayIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:343", "处理商品支付状态", 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:372", form);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:347", form);
visiblePaymentStatusPopup.value = false;
popupPaymentTypeVal.value = "";
goodsPayIndex.value = -1;
@@ -131,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:399", orderGoods.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:374", orderGoods.value);
orderGoods.value.push({
goods_type_name: null,
goods_type_id: null,
@@ -157,12 +159,12 @@ const _sfc_main = {
}
});
const onGoodsChange = (...args) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:427", "onGoodsChange", args);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:402", "onGoodsChange", args);
};
const onGoodsPathChange = (args) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:431", "onGoodsPathChange", args);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:432", "goodsIndex", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:433", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
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]);
orderGoods.value[goodsIndex.value].goods_type_name = null;
orderGoods.value[goodsIndex.value].goods_type_id = null;
orderGoods.value[goodsIndex.value].goods_name = null;
@@ -177,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:449", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:424", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
};
const onCloseGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:452", "onCloseGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:453", "goodsIndex.value", goodsIndex.value);
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);
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,
@@ -189,11 +191,11 @@ const _sfc_main = {
];
}
goodsIndex.value = 0;
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:461", "goodsIndex.value", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:436", "goodsIndex.value", goodsIndex.value);
};
const onOpenGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:464", "onOpenGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:465", "goodsIndex.value", goodsIndex.value);
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);
};
const form = common_vendor.reactive({
order_type: 1,
@@ -219,8 +221,9 @@ const _sfc_main = {
// 超时支付状态
over_pay_status_txt: "请选择",
// 超时支付状态
discount_amount: null
discount_amount: null,
// 优惠金额
remarks: null
});
const selectGoods = common_vendor.ref([]);
common_vendor.onMounted(() => {
@@ -233,9 +236,18 @@ const _sfc_main = {
order_goods: orderGoods.value,
order: form
};
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:516", "提交的订单数据:", data);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:486", "提交的订单数据:", data);
api_index.fetchAddOrder(data).then((res) => {
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:519", res);
common_vendor.index.__f__("log", "at pages/index/orderAdd.vue:489", res);
common_vendor.index.showToast({
icon: "none",
title: "开台成功"
});
setTimeout(() => {
common_vendor.index.switchTab({
url: "/pages/index/index"
});
}, 500);
});
};
return (_ctx, _cache) => {
@@ -342,18 +354,28 @@ const _sfc_main = {
type: "number",
modelValue: form.discount_amount
}),
H: common_vendor.o(submitForm),
H: common_vendor.o(($event) => form.remarks = $event),
I: 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: "primary",
block: true
}),
J: common_vendor.o(onGoodsChange),
K: common_vendor.o(onGoodsPathChange),
L: common_vendor.o(onOpenGoodsCascader),
M: common_vendor.o(onCloseGoodsCascader),
N: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
O: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
P: common_vendor.p({
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({
title: "商品选择",
["text-key"]: "label",
["value-key"]: "value",
@@ -363,9 +385,9 @@ const _sfc_main = {
visible: visibleGoodsCascader.value,
modelValue: cascaderGoodsValue.value
}),
Q: common_vendor.o(onConfirmPaymentStatus),
R: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
S: common_vendor.p({
T: common_vendor.o(onConfirmPaymentStatus),
U: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
V: common_vendor.p({
columns: paymentStatuses,
["field-names"]: {
text: "label",
@@ -373,16 +395,16 @@ const _sfc_main = {
},
title: "选择支付状态"
}),
T: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
U: common_vendor.p({
W: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
X: common_vendor.p({
position: "bottom",
["safe-area-inset-bottom"]: true,
visible: visiblePaymentStatusPopup.value
}),
V: common_vendor.o(onConfirmCombos),
W: common_vendor.o(($event) => visibleCombosPopup.value = false),
X: common_vendor.o(($event) => popupCombosVal.value = $event),
Y: common_vendor.p({
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({
columns: combos.value,
["field-names"]: {
text: "label",
@@ -391,15 +413,15 @@ const _sfc_main = {
title: "选择团购套餐",
modelValue: popupCombosVal.value
}),
Z: common_vendor.o(($event) => visibleCombosPopup.value = $event),
aa: common_vendor.p({
ac: common_vendor.o(($event) => visibleCombosPopup.value = $event),
ad: common_vendor.p({
position: "bottom",
["safe-area-inset-bottom"]: true,
visible: visibleCombosPopup.value
}),
ab: common_vendor.o(onConfirmFeeType),
ac: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
ad: common_vendor.p({
ae: common_vendor.o(onConfirmFeeType),
af: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
ag: common_vendor.p({
columns: feeTypes,
["field-names"]: {
text: "label",
@@ -407,8 +429,8 @@ const _sfc_main = {
},
title: "选择结算方式"
}),
ae: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
af: common_vendor.p({
ah: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
ai: common_vendor.p({
position: "bottom",
["safe-area-inset-bottom"]: true,
visible: visibleFeeTypePopup.value

View File

@@ -6,6 +6,7 @@
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
"nut-form": "../../uni_modules/nutui-uni/components/form/form",
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader",
"nut-picker": "../../uni_modules/nutui-uni/components/picker/picker",
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup"

File diff suppressed because one or more lines are too long

View File

@@ -6,34 +6,36 @@ if (!Array) {
const _easycom_nut_input2 = common_vendor.resolveComponent("nut-input");
const _easycom_nut_form2 = common_vendor.resolveComponent("nut-form");
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
const _easycom_nut_textarea2 = common_vendor.resolveComponent("nut-textarea");
const _easycom_nut_cascader2 = common_vendor.resolveComponent("nut-cascader");
const _easycom_nut_picker2 = common_vendor.resolveComponent("nut-picker");
const _easycom_nut_popup2 = common_vendor.resolveComponent("nut-popup");
(_easycom_nut_form_item2 + _easycom_nut_input2 + _easycom_nut_form2 + _easycom_nut_button2 + _easycom_nut_cascader2 + _easycom_nut_picker2 + _easycom_nut_popup2)();
(_easycom_nut_form_item2 + _easycom_nut_input2 + _easycom_nut_form2 + _easycom_nut_button2 + _easycom_nut_textarea2 + _easycom_nut_cascader2 + _easycom_nut_picker2 + _easycom_nut_popup2)();
}
const _easycom_nut_form_item = () => "../../uni_modules/nutui-uni/components/formitem/formitem.js";
const _easycom_nut_input = () => "../../uni_modules/nutui-uni/components/input/input.js";
const _easycom_nut_form = () => "../../uni_modules/nutui-uni/components/form/form.js";
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
const _easycom_nut_textarea = () => "../../uni_modules/nutui-uni/components/textarea/textarea.js";
const _easycom_nut_cascader = () => "../../uni_modules/nutui-uni/components/cascader/cascader.js";
const _easycom_nut_picker = () => "../../uni_modules/nutui-uni/components/picker/picker.js";
const _easycom_nut_popup = () => "../../uni_modules/nutui-uni/components/popup/popup.js";
if (!Math) {
(_easycom_nut_form_item + _easycom_nut_input + _easycom_nut_form + _easycom_nut_button + _easycom_nut_cascader + _easycom_nut_picker + _easycom_nut_popup)();
(_easycom_nut_form_item + _easycom_nut_input + _easycom_nut_form + _easycom_nut_button + _easycom_nut_textarea + _easycom_nut_cascader + _easycom_nut_picker + _easycom_nut_popup)();
}
const _sfc_main = {
__name: "orderEdit",
setup(__props) {
common_vendor.onLoad((options) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:225", "onLoad");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:233", "onLoad");
form.room_id = options.roomId;
getRoomOrder();
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:232", form);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:233", options);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:240", form);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:241", options);
});
const getRoomOrder = () => {
api_index.fetchRoomOrder(form.room_id).then((res) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:239", res);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:247", res);
form.room_id = res.room_id;
form.order_type = res.order_type;
form.fee_type = res.fee_type.value;
@@ -47,6 +49,9 @@ const _sfc_main = {
form.over_amount = res.over_amount;
form.over_pay_status = res.over_pay_status.value;
form.over_pay_status_txt = res.over_pay_status.text;
form.discount_amount = res.discount_amount;
form.remarks = res.remarks;
orderGoods.value = res.goods;
});
};
const visibleFeeTypePopup = common_vendor.ref(false);
@@ -65,21 +70,21 @@ const _sfc_main = {
}
];
const onConfirmFeeType = (selectedValue) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:343", selectedValue);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:298", 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:346", form);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:301", form);
if (form.fee_type !== 3) {
getCombos();
}
visibleFeeTypePopup.value = false;
};
const getCombos = () => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:355", "获取套餐");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:310", "获取套餐");
api_index.fetchCombos({
type: form.fee_type
}).then((res) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:359", res);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:314", res);
combos.value = res;
});
};
@@ -87,10 +92,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:374", selectedValue);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:329", 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:377", form);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:332", form);
visibleCombosPopup.value = false;
};
const visiblePaymentStatusPopup = common_vendor.ref(false);
@@ -114,7 +119,7 @@ const _sfc_main = {
popupPaymentTypeVal.value = type;
goodsPayIndex.value = index;
visiblePaymentStatusPopup.value = true;
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:405", type);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:360", type);
};
const onConfirmPaymentStatus = (selectedValue) => {
if (popupPaymentTypeVal.value == "fee") {
@@ -126,11 +131,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:419", "处理商品支付状态", goodsPayIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:375", "处理商品支付状态", 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:423", form);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:379", form);
visiblePaymentStatusPopup.value = false;
popupPaymentTypeVal.value = "";
goodsPayIndex.value = -1;
@@ -150,7 +155,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:450", orderGoods.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:406", orderGoods.value);
orderGoods.value.push({
goods_type_name: null,
goods_type_id: null,
@@ -176,12 +181,12 @@ const _sfc_main = {
}
});
const onGoodsChange = (...args) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:478", "onGoodsChange", args);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:434", "onGoodsChange", args);
};
const onGoodsPathChange = (args) => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:482", "onGoodsPathChange", args);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:483", "goodsIndex", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:484", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
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]);
orderGoods.value[goodsIndex.value].goods_type_name = null;
orderGoods.value[goodsIndex.value].goods_type_id = null;
orderGoods.value[goodsIndex.value].goods_name = null;
@@ -196,11 +201,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:500", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:456", "orderGoods.value[goodsIndex.value]", orderGoods.value[goodsIndex.value]);
};
const onCloseGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:503", "onCloseGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:504", "goodsIndex.value", goodsIndex.value);
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);
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,
@@ -208,11 +213,11 @@ const _sfc_main = {
];
}
goodsIndex.value = 0;
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:512", "goodsIndex.value", goodsIndex.value);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:468", "goodsIndex.value", goodsIndex.value);
};
const onOpenGoodsCascader = () => {
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:515", "onOpenGoodsCascader");
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:516", "goodsIndex.value", goodsIndex.value);
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);
};
const form = common_vendor.reactive({
order_type: 1,
@@ -252,9 +257,9 @@ const _sfc_main = {
order_goods: orderGoods.value,
order: form
};
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:567", "提交的订单数据:", data);
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:570", res);
common_vendor.index.__f__("log", "at pages/index/orderEdit.vue:526", res);
});
};
return (_ctx, _cache) => {
@@ -361,18 +366,33 @@ const _sfc_main = {
type: "number",
modelValue: form.discount_amount
}),
H: common_vendor.o(submitForm),
H: common_vendor.o(($event) => form.remarks = $event),
I: common_vendor.p({
type: "primary",
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
}),
J: common_vendor.o(onGoodsChange),
K: common_vendor.o(onGoodsPathChange),
L: common_vendor.o(onOpenGoodsCascader),
M: common_vendor.o(onCloseGoodsCascader),
N: common_vendor.o(($event) => visibleGoodsCascader.value = $event),
O: common_vendor.o(($event) => cascaderGoodsValue.value = $event),
P: common_vendor.p({
M: common_vendor.o(submitForm),
N: 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({
title: "商品选择",
["text-key"]: "label",
["value-key"]: "value",
@@ -382,9 +402,9 @@ const _sfc_main = {
visible: visibleGoodsCascader.value,
modelValue: cascaderGoodsValue.value
}),
Q: common_vendor.o(onConfirmPaymentStatus),
R: common_vendor.o(($event) => visiblePaymentStatusPopup.value = false),
S: 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",
@@ -392,16 +412,16 @@ const _sfc_main = {
},
title: "选择支付状态"
}),
T: common_vendor.o(($event) => visiblePaymentStatusPopup.value = $event),
U: 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
}),
V: common_vendor.o(onConfirmCombos),
W: common_vendor.o(($event) => visibleCombosPopup.value = false),
X: common_vendor.o(($event) => popupCombosVal.value = $event),
Y: 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",
@@ -410,15 +430,15 @@ const _sfc_main = {
title: "选择团购套餐",
modelValue: popupCombosVal.value
}),
Z: common_vendor.o(($event) => visibleCombosPopup.value = $event),
aa: 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
}),
ab: common_vendor.o(onConfirmFeeType),
ac: common_vendor.o(($event) => visibleFeeTypePopup.value = false),
ad: 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",
@@ -426,8 +446,8 @@ const _sfc_main = {
},
title: "选择结算方式"
}),
ae: common_vendor.o(($event) => visibleFeeTypePopup.value = $event),
af: 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

View File

@@ -6,6 +6,7 @@
"nut-input": "../../uni_modules/nutui-uni/components/input/input",
"nut-form": "../../uni_modules/nutui-uni/components/form/form",
"nut-button": "../../uni_modules/nutui-uni/components/button/button",
"nut-textarea": "../../uni_modules/nutui-uni/components/textarea/textarea",
"nut-cascader": "../../uni_modules/nutui-uni/components/cascader/cascader",
"nut-picker": "../../uni_modules/nutui-uni/components/picker/picker",
"nut-popup": "../../uni_modules/nutui-uni/components/popup/popup"

File diff suppressed because one or more lines are too long