feat: 问题反馈接口改造
This commit is contained in:
@@ -66,9 +66,8 @@
|
|||||||
import { ref, onMounted, nextTick, computed } from "vue";
|
import { ref, onMounted, nextTick, computed } from "vue";
|
||||||
import { SCROLL_TO_BOTTOM } from "@/constant/constant";
|
import { SCROLL_TO_BOTTOM } from "@/constant/constant";
|
||||||
import { getCurrentConfig } from "@/constant/base";
|
import { getCurrentConfig } from "@/constant/base";
|
||||||
import { createWorkOrder } from "@/request/api/OrderApi";
|
import { submitFeedback } from "@/request/api/FeedbackApi";
|
||||||
|
|
||||||
const workOrderTypeId = ref("");
|
|
||||||
const contactPhone = ref("");
|
const contactPhone = ref("");
|
||||||
const contactText = ref("");
|
const contactText = ref("");
|
||||||
const isCallSuccess = ref(false); // 呼叫成功状态
|
const isCallSuccess = ref(false); // 呼叫成功状态
|
||||||
@@ -93,16 +92,15 @@ const handleCall = async () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sendCreateWorkOrder();
|
sendFeedback();
|
||||||
};
|
};
|
||||||
|
|
||||||
/// 创建工单
|
/// 提交反馈意见
|
||||||
const sendCreateWorkOrder = async () => {
|
const sendFeedback = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await createWorkOrder({
|
const res = await submitFeedback({
|
||||||
contactName: contactText.value,
|
userPhone: contactPhone.value,
|
||||||
contactPhone: contactPhone.value,
|
content: contactText.value,
|
||||||
workOrderTypeId: workOrderTypeId.value,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
|||||||
5
src/request/api/FeedbackApi.js
Normal file
5
src/request/api/FeedbackApi.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import request from "../base/request";
|
||||||
|
|
||||||
|
export const submitFeedback = (args) => {
|
||||||
|
return request.post("/hotelBiz/feedback/submitFeedback", args);
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user