diff --git a/components/CreateServiceOrder/index.vue b/components/CreateServiceOrder/index.vue index de42fcc..592fabf 100644 --- a/components/CreateServiceOrder/index.vue +++ b/components/CreateServiceOrder/index.vue @@ -122,7 +122,7 @@ const handleCall = async () => { }; /// 创建工单 -const sendCreateWorkOrder = () => { +const sendCreateWorkOrder = async () => { try { const res = await createWorkOrder({ contactName: contactName.value, @@ -204,12 +204,13 @@ const makePhoneCall = () => { }); }; -onMounted(() => { - nextTick(() => { - setTimeout(() => { - uni.$emit(SCROLL_TO_BOTTOM, true) - }, 200) - }); +onMounted(() => { + getWorkOrderType() + nextTick(() => { + setTimeout(() => { + uni.$emit(SCROLL_TO_BOTTOM, true) + }, 200) + }); }) diff --git a/request/api/OrderApi.js b/request/api/OrderApi.js index abc95c5..b1dc2cf 100644 --- a/request/api/OrderApi.js +++ b/request/api/OrderApi.js @@ -47,6 +47,7 @@ const orderPayNow = (args) => { export { userOrderList, userWorkOrderList, + workOrderTypeListForBiz, createWorkOrder, userOrderDetail, preOrder,