维修完成api
This commit is contained in:
@@ -3,12 +3,13 @@
|
|||||||
* @Author: Zy
|
* @Author: Zy
|
||||||
* @Date: 2026-05-19 16:29:20
|
* @Date: 2026-05-19 16:29:20
|
||||||
* @LastEditor: Zy
|
* @LastEditor: Zy
|
||||||
* @LastEditTime: 2026-05-19 18:31:32
|
* @LastEditTime: 2026-05-20 08:36:23
|
||||||
*/
|
*/
|
||||||
import request, {
|
import request, {
|
||||||
get,
|
get,
|
||||||
filterParams,
|
filterParams,
|
||||||
post
|
post,
|
||||||
|
put,
|
||||||
} from './request.js'
|
} from './request.js'
|
||||||
|
|
||||||
|
|
||||||
@@ -101,5 +102,5 @@ export function getTicketMainById(id) {
|
|||||||
* @param {ticketComputedInfo} data
|
* @param {ticketComputedInfo} data
|
||||||
*/
|
*/
|
||||||
export function ticketComputed(data) {
|
export function ticketComputed(data) {
|
||||||
return get('/manage/repair/order', filterParams(data))
|
return put('/manage/repair/order', filterParams(data))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
<text v-if="record.problemStatus === '1'" class="repairman"
|
<text v-if="record.problemStatus === '1'" class="repairman"
|
||||||
>维修师傅:{{ record.repairName }}</text
|
>维修师傅:{{ record.repairName }}</text
|
||||||
>
|
>
|
||||||
<view class="share" v-if="record.problemStatus === '2'">
|
<view class="share" v-if="record.problemStatus === '0'">
|
||||||
<text>维修完成</text>
|
<text>维修完成</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed } from 'vue'
|
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 TabsComponents from '@/components/tabs/tabs.vue'
|
||||||
import NavBar from '@/components/navbar/navbar.vue'
|
import NavBar from '@/components/navbar/navbar.vue'
|
||||||
import { getUserTicketlist } from '@/api/ticket.js'
|
import { getUserTicketlist } from '@/api/ticket.js'
|
||||||
@@ -155,7 +155,9 @@ function getlist() {
|
|||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
getlist()
|
onShow(() => {
|
||||||
|
getlist()
|
||||||
|
})
|
||||||
function resetList() {
|
function resetList() {
|
||||||
reportRecords.value = []
|
reportRecords.value = []
|
||||||
queryParmas.value.pageNum = 1
|
queryParmas.value.pageNum = 1
|
||||||
|
|||||||
@@ -97,15 +97,15 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label"> <text>状态</text> </view>
|
<view class="label"> <text>状态</text> </view>
|
||||||
<view class="value"> {{ repairInfo.problemStatus }} </view>
|
<view class="value"> {{ repairInfo.repairStatus === 0 ? '正常' : '异常' }} </view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label"> <text>角色</text> </view>
|
<view class="label"> <text>角色</text> </view>
|
||||||
<!-- <view class="value"> {{ repairInfo.repairUser.role }} </view> -->
|
<view class="value"> {{ repairInfo.repairRoleName }} </view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label"> <text>手机号</text> </view>
|
<view class="label"> <text>手机号</text> </view>
|
||||||
<!-- <view class="value"> {{ repairInfo.repairUser.phone }} </view> -->
|
<view class="value"> {{ repairInfo.repairPhone }} </view>
|
||||||
</view>
|
</view>
|
||||||
<view class="" v-if="currentStep >= 3">
|
<view class="" v-if="currentStep >= 3">
|
||||||
<view class="item descrition flex-col">
|
<view class="item descrition flex-col">
|
||||||
@@ -122,7 +122,6 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
class="images"
|
class="images"
|
||||||
:src="item"
|
:src="item"
|
||||||
mode=""
|
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -209,11 +208,11 @@ function getTicketById() {
|
|||||||
repairInfo.value = res.data
|
repairInfo.value = res.data
|
||||||
|
|
||||||
problemImageUrl.value = repairInfo.value.problemImageUrl
|
problemImageUrl.value = repairInfo.value.problemImageUrl
|
||||||
? repairInfo.value.problemImageUrl.split(',')
|
? repairInfo.value.problemImageUrl.split(',').filter(item => item)
|
||||||
: []
|
: []
|
||||||
|
|
||||||
repairImageUrl.value = repairInfo.value.repairImageUrl
|
repairImageUrl.value = repairInfo.value.repairImageUrl
|
||||||
? repairInfo.value.repairImageUrl.split(',')
|
? repairInfo.value.repairImageUrl.split(',').filter(item => item)
|
||||||
: []
|
: []
|
||||||
handleStop(res.data)
|
handleStop(res.data)
|
||||||
})
|
})
|
||||||
@@ -247,13 +246,7 @@ function handleStop(row) {
|
|||||||
/** 选择维修人员 */
|
/** 选择维修人员 */
|
||||||
function handleSelecthouse() {
|
function handleSelecthouse() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pageSubPack/ticket/shareUser',
|
url: '/pageSubPack/ticket/shareUser'
|
||||||
events: {
|
|
||||||
backData: val => {
|
|
||||||
currentStep.value += 1
|
|
||||||
//api;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user