Compare commits
3 Commits
05569374cc
...
3055d49644
| Author | SHA1 | Date | |
|---|---|---|---|
| 3055d49644 | |||
| a08f3b65be | |||
| 9a2b5b0c73 |
@@ -64,7 +64,6 @@ const workOrderTypeId = ref("");
|
|||||||
const contactPhone = ref("");
|
const contactPhone = ref("");
|
||||||
const contactText = ref("");
|
const contactText = ref("");
|
||||||
const isCallSuccess = ref(false); // 呼叫成功状态
|
const isCallSuccess = ref(false); // 呼叫成功状态
|
||||||
const workOrderId = ref(0); // 工单ID
|
|
||||||
const appName = computed(() => getCurrentConfig().name);
|
const appName = computed(() => getCurrentConfig().name);
|
||||||
|
|
||||||
const handleCall = async () => {
|
const handleCall = async () => {
|
||||||
@@ -99,26 +98,23 @@ const sendCreateWorkOrder = async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
// 保存工单ID
|
// 设置成功状态
|
||||||
workOrderId.value = res.data?.id || "";
|
|
||||||
|
|
||||||
// 设置呼叫成功状态
|
|
||||||
isCallSuccess.value = true;
|
isCallSuccess.value = true;
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "工单创建成功",
|
title: "反馈意见成功",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message || "创建工单失败",
|
title: res.message || "反馈意见失败",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("创建工单失败:", error);
|
console.error("反馈意见失败:", error);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "网络错误,请重试",
|
title: "网络错误,请重试",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
@@ -127,15 +123,6 @@ const sendCreateWorkOrder = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 查看工单
|
|
||||||
const viewWorkOrder = () => {
|
|
||||||
console.log("查看工单:", workOrderId.value);
|
|
||||||
// 这里可以跳转到工单详情页面
|
|
||||||
uni.navigateTo({
|
|
||||||
url: `/pages-order/order/list?id=${workOrderId.value}`,
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view
|
<view class="w-full border-box flex flex-col overflow-hidden pl-12 mt-6 mb-6">
|
||||||
class="chat-other border-box flex flex-col overflow-hidden pl-12 mt-6 mb-6"
|
|
||||||
>
|
|
||||||
<text class="font-size-14 color-333">{{ text }}</text>
|
<text class="font-size-14 color-333">{{ text }}</text>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
.item {
|
.item {
|
||||||
border: 1px solid #fff;
|
border: 1px solid #fff;
|
||||||
background-color: rgba(255, 255, 255, 0.5);
|
background-color: rgba(255, 255, 255, 0.5);
|
||||||
padding: 4px 8px;
|
padding: 4px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
|||||||
Reference in New Issue
Block a user