From 244d89b41c0e0e995d38f635a126a0959b9ba25b Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期二, 25 六月 2024 18:16:42 +0800 Subject: [PATCH] 问题处理 --- qiye/record/details.vue | 45 ++++++++++++++++++++++++++------------------- 1 files changed, 26 insertions(+), 19 deletions(-) diff --git a/qiye/record/details.vue b/qiye/record/details.vue index d1a0d4d..2d43f43 100644 --- a/qiye/record/details.vue +++ b/qiye/record/details.vue @@ -8,7 +8,7 @@ <view class="donw-box"></view> <view class="page-main"> <view class="title"> - <template v-if="msg.isEva==0">宸叉墽娉曞緟璇勪环</template> + <template v-if="msg.isEva==0">鏈瘎浠�</template> <template v-if="msg.isEva==1">宸茶瘎浠�</template> <template v-if="msg.orderStatus==2">寰呮墽娉�</template> </view> @@ -26,7 +26,7 @@ 鎵ф硶浜� </view> <view class="v"> - {{msg.executeUser}} + {{msg.executeUser || msg.applyUser}} </view> </view> <view class="item"> @@ -34,7 +34,7 @@ 鎵ф硶閮ㄩ棬 </view> <view class="v"> - {{msg.executeDeptName}} + {{msg.executeDeptName || msg.applyDeptName}} </view> </view> <view class="item"> @@ -60,9 +60,14 @@ <view class="k"> 鎵ф硶杩囩▼ </view> + <view class="v" v-if="!img.length"> + {{msg.regionReason || '鎵ф硶杩囩▼寰呬笂鎶�'}} + </view> </view> - <view class="imgbox"> - <img v-for="(item,index) in img" :key="index" :src="item" class="more" alt="" @click="imgclick(item)" /> + <view class="imgbox" v-if="img.length"> + <template > + <img v-for="(item,index) in img" :key="index" :src="item" class="more" alt="" @click="imgclick(item)" /> + </template> <!-- <img src="/static/i01.png" class="more" @click="imgclick('/static/i01.png')" alt="" /> <img src="/static/i02.png" class="more" alt="" /> @@ -74,7 +79,7 @@ 鎵ф硶缁撴灉 </view> <view class="v" style="color: #EB4746;"> - {{msg.regionReason}} + {{msg.regionReason || '鎵ф硶缁撴灉寰呬笂鎶�'}} </view> </view> <view class="item"> @@ -82,7 +87,7 @@ 鎵ф硶鏃堕棿 </view> <view class="v"> - {{msg.executeTime}} + {{msg.inTime || "寰呮墽娉�"}} </view> </view> </view> @@ -153,7 +158,7 @@ </template> - <view class="sbox"> + <view class="sbox" v-if="msg.evaluateVo.questionRemark"> <view class="t2"> 瀵规垜浠殑璇勪环 </view> @@ -163,7 +168,7 @@ </view> </view> </view> - <view class="bottom"> + <view class="bottom" v-if="msg.orderStatus==3 || msg.orderStatus== 4"> <view class="one" v-if="msg.isEva==1"> <view class="b1" @click="open()"> 鎶曡瘔 @@ -199,7 +204,7 @@ 鎶曡瘔鍐呭 </view> <view class="margin-top"> - <u-textarea v-model="complaintReason" placeholder="璇疯緭鍏�..."></u-textarea> + <u-textarea :cursorSpacing="70" v-model="complaintReason" placeholder="璇疯緭鍏�..."></u-textarea> </view> </view> <view class="down"> @@ -242,15 +247,21 @@ console.log(this.list) // const value = val.data.data.find(item => item.dictCode == this.msg.enforceType) // this.type = value.dictLabel - }) + }) + this.getdata() }, onShow(options) { - this.getdata() + }, methods: { getdata(){ - order(this.id).then(val => { - this.msg = val.data.data + order(this.id).then(val => { + + this.msg = val.data.data + getDicts('enforce_type').then(val => { + const value = val.data.data.find(item => item.dictCode == this.msg.enforceType) + this.type = value.dictLabel + }) let arr = this.msg.regionImgs.split(","); for(let i = 0;i<arr.length;i++){ this.img.push(this.baseUrl+arr[i]) @@ -261,11 +272,7 @@ this.qlist[i].remark = Number(this.qlist[i].remark) } } - 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 - }) + }) }, daxing(a) { -- Gitblit v1.9.1