diff --git a/src/views/Clue/Order/Comp/MallOrderList.vue b/src/views/Clue/Order/Comp/MallOrderList.vue index 4846595..8ffef86 100644 --- a/src/views/Clue/Order/Comp/MallOrderList.vue +++ b/src/views/Clue/Order/Comp/MallOrderList.vue @@ -206,6 +206,15 @@ import DialogDelivery from './DialogDelivery.vue' import { removeNullField } from '@/utils' +const userOptions = ref([]) +onMounted(() => { + getUserOption().then((data) => { + userOptions.value = data + getCurdSchemas() + }) + getOptions() +}) + const message = useMessage() // 消息弹窗 const allSchemas = ref({}) @@ -338,15 +347,6 @@ const deliveryDialog = ref() function handleDelivery(row) { deliveryDialog.value.open(row) } - -const userOptions = ref([]) -onMounted(() => { - getUserOption().then((data) => { - userOptions.value = data - getCurdSchemas() - }) - getOptions() -}) diff --git a/src/views/Clue/Order/Comp/OrderList.vue b/src/views/Clue/Order/Comp/OrderList.vue index 5439d22..f9c89c0 100644 --- a/src/views/Clue/Order/Comp/OrderList.vue +++ b/src/views/Clue/Order/Comp/OrderList.vue @@ -182,6 +182,15 @@ import DialogExtraFee from './DialogExtraPay.vue' import { removeNullField } from '@/utils' +const userOptions = ref([]) +onMounted(() => { + getUserOption().then((data) => { + userOptions.value = data + getCurdSchemas() + }) + getOptions() +}) + const message = useMessage() // 消息弹窗 const allSchemas = ref({}) @@ -327,15 +336,6 @@ function getOptions() { allPlaceOptions.value = data.placeList }) } - -const userOptions = ref([]) -onMounted(() => { - getUserOption().then((data) => { - userOptions.value = data - getCurdSchemas() - }) - getOptions() -})