|
@@ -4,11 +4,10 @@
|
|
|
<div class="stepList item_content" :key="stepShow+'123'">
|
|
|
<div class="item_content_top">
|
|
|
<div class="stepList_title">维修单号 {{id}}</div>
|
|
|
- <!-- <van-button class="top_but" type="primary" size="small">去支付</van-button> -->
|
|
|
<van-button v-if="detailData.repairerVo?.status == 3" size="small" @click="goRoute(`/repair/${id}`)" color="#00B3EC" type="primary" >待确认</van-button>
|
|
|
<van-button v-if="detailData.repairerVo?.status == 9 || detailData.repairerVo?.status == 4" size="small" @click="goRoute(`/payment/${id}`)" color="#00B3EC" type="primary" >支付</van-button>
|
|
|
- <van-button v-if="detailData.repairerVo?.status == 13" size="small" @click="goRoute(`/evaluate/${id}`)" color="#00B3EC" type="primary" >评价</van-button>
|
|
|
- <van-button v-if="detailData.repairerVo?.status == 10" size="small" @click="goRoute(`/invoice/${id}`)" color="#00B3EC" type="primary" >申请开票</van-button>
|
|
|
+ <van-button v-if="detailData.repairerVo?.status > 11 && detailData.repairerVo?.commentStatus == 0" size="small" @click="goRoute(`/evaluate/${id}`)" color="#00B3EC" type="primary" >评价</van-button>
|
|
|
+ <van-button v-if="detailData.repairerVo?.status > 9 && detailData.applyInvoice == 0" size="small" @click="goRoute(`/invoice/${id}`)" color="#00B3EC" type="primary" >申请开票</van-button>
|
|
|
</div>
|
|
|
<transition-group name="van-fade">
|
|
|
<!-- <div v-show="stepShow">Slide Right</div> -->
|
|
@@ -65,7 +64,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="page_custinfo item_content" v-if="detailData.priceList.length">
|
|
|
+ <div class="page_custinfo item_content" v-if="detailData.priceList.length && detailData.repairerVo?.status > 3">
|
|
|
<div class="title">费用明细</div>
|
|
|
<div class="content">
|
|
|
<div class="cost_list">
|
|
@@ -158,6 +157,7 @@ let detailData = ref({
|
|
|
repairPay:<any>{},
|
|
|
RepairComment:<any>{},
|
|
|
priceList:<any>[],
|
|
|
+ applyInvoice:0,
|
|
|
});
|
|
|
let processList = ref<any>([])
|
|
|
onMounted(() => {
|
|
@@ -177,14 +177,12 @@ function priceCount(list){
|
|
|
return price.toFixed(2)
|
|
|
}
|
|
|
const getDetaile = async () => {
|
|
|
- const { response } = await repairDetails(id);
|
|
|
- let detaile = unref(response)?.data;
|
|
|
- detailData.value = detaile
|
|
|
+ const { data } = await repairDetails(id);
|
|
|
+ detailData.value = data
|
|
|
const resProcess = await repairProcess(id);
|
|
|
console.log('resProcess',resProcess)
|
|
|
let process = unref(resProcess?.response)?.data;
|
|
|
processList.value = process
|
|
|
- console.log('getDetaile',detaile,process)
|
|
|
};
|
|
|
const handleShow = () => {
|
|
|
stepShow.value = !stepShow.value;
|