From ade1aa658df84e8b52f5d1dfa9d2971da5cdad55 Mon Sep 17 00:00:00 2001 From: 346149741 <346149741@qq.com> Date: 星期六, 22 六月 2024 20:38:03 +0800 Subject: [PATCH] 投诉详情 --- qiye/complaint/details.vue | 89 ++++++++++++++++++++++------- qiye/complaint/complaint.vue | 14 ++-- api/qiye.js | 4 qiye/record/details.vue | 4 qiye/record/record.vue | 10 +- 5 files changed, 84 insertions(+), 37 deletions(-) diff --git a/api/qiye.js b/api/qiye.js index ccd8812..cc4d9c2 100644 --- a/api/qiye.js +++ b/api/qiye.js @@ -29,6 +29,6 @@ } // 鎶曡瘔璇︽儏 -export function complaint(id){ - return http.get('/enforce/complaint/'+id, { custom: { loading: true }}); +export function complaint(data){ + return http.get('/enforce/order/orderComplaintNodeList', {params: data}, { custom: { loading: true }}); } \ No newline at end of file diff --git a/qiye/complaint/complaint.vue b/qiye/complaint/complaint.vue index accf0db..2ae7c6f 100644 --- a/qiye/complaint/complaint.vue +++ b/qiye/complaint/complaint.vue @@ -15,17 +15,17 @@ {{item.companyName}} </view> <template v-if="item.complaintStatus==0"> - <view class="r color3"> + <view class="r color2"> 寰呭搷搴� </view> </template> <template v-if="item.complaintStatus==1"> - <view class="r color2"> + <view class="r color1"> 澶勭悊涓� </view> </template> <template v-if="item.complaintStatus==2"> - <view class="r color1"> + <view class="r color3"> 宸插姙缁� </view> </template> @@ -36,9 +36,9 @@ <view class="box"> <view class="l"> <p>鎵ф硶鍗曚綅锛歿{item.executeDeptName}}</p> - <p>鎵ф硶鏃堕棿锛歿{item.executeTime}}</p> + <p>鎶曡瘔鏃堕棿锛歿{item.complaintTime}}</p> </view> - <view class="r" @click="chakan()"> + <view class="r" @click="chakan(item.id,item.orderId)"> 鍘绘煡鐪� </view> </view> @@ -135,9 +135,9 @@ this.getList() }, methods: { - chakan(id){ + chakan(id,orderId){ uni.navigateTo({ - url: `/qiye/complaint/details?id=${id}` + url: `/qiye/complaint/details?id=${id}&orderId=${orderId}` }) }, getList() { diff --git a/qiye/complaint/details.vue b/qiye/complaint/details.vue index 0c3d8ac..dac18d2 100644 --- a/qiye/complaint/details.vue +++ b/qiye/complaint/details.vue @@ -8,7 +8,9 @@ <view class="donw-box"></view> <view class="page-main"> <view class="title"> - 宸茶瘎浠� + <template v-if="msg.orderStatus>2&&msg.isEva==0">宸叉墽娉曞緟璇勪环</template> + <template v-if="msg.orderStatus>2&&msg.isEva==1">宸茶瘎浠�</template> + <template v-if="msg.orderStatus==2">寰呮墽娉�</template> </view> <view class="wbox"> <view class="item"> @@ -16,7 +18,7 @@ 鎵ф硶绫诲瀷 </view> <view class="v"> - 鍙告硶妫�鏌� + {{type}} </view> </view> <view class="item"> @@ -24,7 +26,7 @@ 鎵ф硶浜� </view> <view class="v"> - 鍒樻娆� + {{msg.executeUser}} </view> </view> <view class="item"> @@ -32,7 +34,7 @@ 鎵ф硶閮ㄩ棬 </view> <view class="v"> - 鍐滀笟灞� + {{msg.executeDeptName}} </view> </view> <view class="item"> @@ -40,7 +42,7 @@ 浼佷笟 </view> <view class="v"> - 姹夊涵閰掑簵 + {{msg.companyName}} </view> </view> </view> @@ -51,7 +53,7 @@ 鎵ф硶涓婚 </view> <view class="v"> - 姹夊涵閰掑簵鍙告硶妫�鏌�233鍙锋枃浠� + {{msg.enforceReason}} </view> </view> <view class="item"> @@ -60,17 +62,19 @@ </view> </view> <view class="imgbox"> - <img src="/static/i01.png" class="more" @click="imgclick('/static/i01.png')" alt="" /> + <img v-for="(item,index) in img" :key="index" :src="item" class="more" alt="" @click="imgclick(item)" /> + + <!-- <img src="/static/i01.png" class="more" @click="imgclick('/static/i01.png')" alt="" /> <img src="/static/i02.png" class="more" alt="" /> <img src="/static/i03.png" class="more" alt="" /> - <img src="/static/i04.png" class="more" alt="" /> + <img src="/static/i04.png" class="more" alt="" /> --> </view> <view class="item"> <view class="k"> 鎵ф硶缁撴灉 </view> <view class="v" style="color: #EB4746;"> - 鍋滀笟鏁撮】 + {{msg.regionReason}} </view> </view> <view class="item"> @@ -78,7 +82,7 @@ 鎵ф硶鏃堕棿 </view> <view class="v"> - 2024-10-10 16:24 + {{msg.executeTime}} </view> </view> </view> @@ -87,33 +91,34 @@ <view class="t"> 鎶曡瘔璁板綍 </view> - <view class="jilu"> + <view class="jilu" v-for="(item,index) in tousulist"> <img src="/static/policy/icon.png" class="img" alt="" /> <view class="font"> <view class="h"> <view class="s"> - 宸查┏鍥� + {{item.nodeName}} </view> <view class="time"> - 2024-06-07 12:14 + {{item.nodeTime}} </view> </view> <view class="b"> <view class="name"> - 鏋楀皬闆� + {{item.nodeUser}} </view> <view class="p"> <span>鐢宠瘔涓婚锛�</span> - 姹夊涵閰掑簵鍙告硶妫�鏌�233鍙锋枃浠� + </view> <view class="p"> <span>鐢宠瘔鍐呭锛�</span> - 鎴戞槸涓�涓唴瀹癸紱鎴戞槸涓�涓唴瀹癸紱鎴戞槸涓�涓唴瀹癸紱鎴戞槸涓�涓唴瀹� + {{item.nodeReason}} + </view> </view> </view> </view> - <view class="jilu"> + <!-- <view class="jilu"> <img src="/static/policy/refject.png" class="img" alt="" /> <view class="font"> <view class="h"> @@ -138,7 +143,7 @@ </view> </view> </view> - </view> + </view> --> </view> </view> @@ -146,11 +151,52 @@ </template> <script> + import { complaint } from '@/api/qiye.js' + import { config } from '@/common/config' + import { order } from '@/api/index.js' + import { getDicts } from '@/api/data.js' + export default { data() { return { - + id:'', + msg:{}, + type:'', + img:[], + baseUrl: config.baseUrl, + orderId:'', + tousulist:[] } + }, + onLoad(options) { + this.id = options.id + this.orderId = options.orderId + order(this.orderId).then(val => { + this.msg = val.data.data + let arr = this.msg.regionImgs.split(","); + for(let i = 0;i<arr.length;i++){ + this.img.push(this.baseUrl+arr[i]) + } + + console.log(this.img) + getDicts('enforce_type').then(val => { + const value = val.data.data.find(item => item.dictCode == this.msg.enforceType) + this.type = value.dictLabel + }) + }) + complaint({orderId:this.orderId}).then(val => { + this.tousulist = val.data.data + // this.msg = val.data.data + // let arr = this.msg.regionImgs.split(","); + // for(let i = 0;i<arr.length;i++){ + // this.img.push(this.baseUrl+arr[i]) + // } + + // getDicts('enforce_type').then(val => { + // const value = val.data.data.find(item => item.dictCode == this.msg.enforceType) + // this.type = value.dictLabel + // }) + }) }, methods: { imgclick(url) { @@ -252,11 +298,12 @@ justify-content: space-between; padding: 24rpx; .img{ - width: 70rpx; - height: 50rpx; + width: 40rpx; + height: 40rpx; margin-right: 24rpx; } .font{ + width: 90%; .h{ display: flex; justify-content: space-between; diff --git a/qiye/record/details.vue b/qiye/record/details.vue index d1a0d4d..3dfe6ac 100644 --- a/qiye/record/details.vue +++ b/qiye/record/details.vue @@ -8,8 +8,8 @@ <view class="donw-box"></view> <view class="page-main"> <view class="title"> - <template v-if="msg.isEva==0">宸叉墽娉曞緟璇勪环</template> - <template v-if="msg.isEva==1">宸茶瘎浠�</template> + <template v-if="msg.orderStatus>2&&msg.isEva==0">宸叉墽娉曞緟璇勪环</template> + <template v-if="msg.orderStatus>2&&msg.isEva==1">宸茶瘎浠�</template> <template v-if="msg.orderStatus==2">寰呮墽娉�</template> </view> <view class="wbox"> diff --git a/qiye/record/record.vue b/qiye/record/record.vue index 5ba117c..6cc83b2 100644 --- a/qiye/record/record.vue +++ b/qiye/record/record.vue @@ -11,17 +11,17 @@ {{item.companyName}} </view> <template v-if="item.orderStatus==2"> - <view class="r color3"> + <view class="r color2"> 鏈墽娉� </view> </template> - <template v-if="item.isEva==0"> - <view class="r color2"> + <template v-if="item.orderStatus>2&&item.isEva==0"> + <view class="r color1"> 寰呰瘎浠� </view> </template> - <template v-if="item.isEva==1"> - <view class="r color1"> + <template v-if="item.orderStatus>2&&item.isEva==1"> + <view class="r color3"> 宸茶瘎浠� </view> </template> -- Gitblit v1.9.1