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