巡检-早于巡检时间,禁止提交

This commit is contained in:
Zy
2026-09-03 17:03:39 +08:00
parent 825220cd86
commit 0a68226c3b
3 changed files with 88 additions and 36 deletions

View File

@@ -16,9 +16,7 @@
</view>
<view class="flex justify-between">
<span class="subtitle">{{ data.desc }}</span>
<span class="subtime" v-if="currentStep == index + 1">{{
repairInfo.updateTime
}}</span>
<span class="subtime">{{ data.time }}</span>
</view>
</view>
</template>
@@ -150,10 +148,10 @@ import { getTicketMainById, shareRepairUser } from '@/api/ticket.js'
const currentStep = ref(2)
// 步骤数据
const stepList = ref([
{ title: '提交维修信息', desc: '等待提交报修' },
{ title: '待分配', desc: '等待物业派单中' },
{ title: '待解决', desc: '等待维修人员' },
{ title: '维修完成', desc: '填写维修记录' }
{ title: '提交维修信息', desc: '等待提交报修', time: '' },
{ title: '待分配', desc: '等待物业派单中', time: '' },
{ title: '待解决', desc: '等待维修人员', time: '' },
{ title: '维修完成', desc: '填写维修记录', time: '' }
])
// --------------------------------------
const queryParams = ref({
@@ -231,18 +229,21 @@ function getTicketById() {
function handleStop(row) {
// 0 已提交 1 已分配 2已解决
let status = row.problemStatus
const repairInfo = row.repairProcessList[0]
currentStep.value = 0
// 维修步骤:0提交 1分配 2维修完成 / 待解决 3记录完成 完成
if (status === '0') {
currentStep.value = 1
stepList.value[0].desc = '提交报修成功'
stepList.value[0].time = repairInfo.submitTime
return
}
if (status === '1') {
currentStep.value = 2
stepList.value[0].time = repairInfo.submitTime
stepList.value[1].title = '已派单'
stepList.value[1].desc = '物业已派单'
stepList.value[1].time = repairInfo.allocateTime
stepList.value[2].title = '待解决'
stepList.value[2].desc = `维修人员(${row.repairName})维修中`
return
@@ -250,10 +251,14 @@ function handleStop(row) {
if (status === '2') {
currentStep.value = 4
stepList.value[0].desc = '提交报修成功'
stepList.value[0].time = repairInfo.submitTime
stepList.value[1].title = '已派单'
stepList.value[1].desc = '物业已派单'
stepList.value[1].time = repairInfo.allocateTime
stepList.value[2].title = '已解决'
stepList.value[2].desc = `维修人员(${row.repairName})已解决`
stepList.value[2].time = repairInfo.completeTime
stepList.value[3].time = repairInfo.completeTime
return
}
}
@@ -346,7 +351,7 @@ function handlePrivew(items, index = 0) {
.subtime {
font-weight: 400;
font-size: 22rpx;
color: #999999;
color: rgba(77, 93, 250, 1);
line-height: 40rpx;
}
}