wjt
2024-06-25 244d89b41c0e0e995d38f635a126a0959b9ba25b
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) {