Merge branch 'main' of https://git.nianxx.cn/zoujing/YGChatCS into fix-109
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
.checkbox-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.checkbox-icon {
|
||||
margin-right: 6px;
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<script setup>
|
||||
import { ref, onMounted, nextTick } from "vue";
|
||||
import { SCROLL_TO_BOTTOM } from "@/constant/constant";
|
||||
import { createWorkOrder } from "@/request/api/OrderApi";
|
||||
import { createWorkOrder } from "@/request/api/WorkOrderApi";
|
||||
import { updateImageFile } from "@/request/api/UpdateFile";
|
||||
import { zniconsMap } from "@/static/fonts/znicons.js";
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user