维修完成api

This commit is contained in:
Zy
2026-05-20 09:15:30 +08:00
parent 25ef557d27
commit 9738fd1404
3 changed files with 15 additions and 19 deletions

View File

@@ -80,7 +80,7 @@
<text v-if="record.problemStatus === '1'" class="repairman"
>维修师傅:{{ record.repairName }}</text
>
<view class="share" v-if="record.problemStatus === '2'">
<view class="share" v-if="record.problemStatus === '0'">
<text>维修完成</text>
</view>
</view>
@@ -92,7 +92,7 @@
<script setup>
import { ref, computed } from 'vue'
import { onReady } from '@dcloudio/uni-app'
import { onReady, onShow } from '@dcloudio/uni-app'
import TabsComponents from '@/components/tabs/tabs.vue'
import NavBar from '@/components/navbar/navbar.vue'
import { getUserTicketlist } from '@/api/ticket.js'
@@ -155,7 +155,9 @@ function getlist() {
uni.hideLoading()
})
}
getlist()
onShow(() => {
getlist()
})
function resetList() {
reportRecords.value = []
queryParmas.value.pageNum = 1

View File

@@ -97,15 +97,15 @@
</view>
<view class="item">
<view class="label"> <text>状态</text> </view>
<view class="value"> {{ repairInfo.problemStatus }} </view>
<view class="value"> {{ repairInfo.repairStatus === 0 ? '正常' : '异常' }} </view>
</view>
<view class="item">
<view class="label"> <text>角色</text> </view>
<!-- <view class="value"> {{ repairInfo.repairUser.role }} </view> -->
<view class="value"> {{ repairInfo.repairRoleName }} </view>
</view>
<view class="item">
<view class="label"> <text>手机号</text> </view>
<!-- <view class="value"> {{ repairInfo.repairUser.phone }} </view> -->
<view class="value"> {{ repairInfo.repairPhone }} </view>
</view>
<view class="" v-if="currentStep >= 3">
<view class="item descrition flex-col">
@@ -122,7 +122,6 @@
:key="index"
class="images"
:src="item"
mode=""
></image>
</view>
</view>
@@ -209,11 +208,11 @@ function getTicketById() {
repairInfo.value = res.data
problemImageUrl.value = repairInfo.value.problemImageUrl
? repairInfo.value.problemImageUrl.split(',')
? repairInfo.value.problemImageUrl.split(',').filter(item => item)
: []
repairImageUrl.value = repairInfo.value.repairImageUrl
? repairInfo.value.repairImageUrl.split(',')
? repairInfo.value.repairImageUrl.split(',').filter(item => item)
: []
handleStop(res.data)
})
@@ -247,13 +246,7 @@ function handleStop(row) {
/** 选择维修人员 */
function handleSelecthouse() {
uni.navigateTo({
url: '/pageSubPack/ticket/shareUser',
events: {
backData: val => {
currentStep.value += 1
//api;
}
}
url: '/pageSubPack/ticket/shareUser'
})
}