feat: 问题反馈接口改造

This commit is contained in:
2025-10-28 18:07:54 +08:00
parent 055423fc32
commit 655547c57a
2 changed files with 12 additions and 9 deletions

View File

@@ -66,9 +66,8 @@
import { ref, onMounted, nextTick, computed } from "vue";
import { SCROLL_TO_BOTTOM } from "@/constant/constant";
import { getCurrentConfig } from "@/constant/base";
import { createWorkOrder } from "@/request/api/OrderApi";
import { submitFeedback } from "@/request/api/FeedbackApi";
const workOrderTypeId = ref("");
const contactPhone = ref("");
const contactText = ref("");
const isCallSuccess = ref(false); // 呼叫成功状态
@@ -93,16 +92,15 @@ const handleCall = async () => {
return;
}
sendCreateWorkOrder();
sendFeedback();
};
/// 创建工单
const sendCreateWorkOrder = async () => {
/// 提交反馈意见
const sendFeedback = async () => {
try {
const res = await createWorkOrder({
contactName: contactText.value,
contactPhone: contactPhone.value,
workOrderTypeId: workOrderTypeId.value,
const res = await submitFeedback({
userPhone: contactPhone.value,
content: contactText.value,
});
if (res.code === 0) {

View File

@@ -0,0 +1,5 @@
import request from "../base/request";
export const submitFeedback = (args) => {
return request.post("/hotelBiz/feedback/submitFeedback", args);
};