wjt
2024-07-29 2ffea51205b7eb94cf3fb7221aede7ff66669fc1
qiye/record/details.vue
@@ -8,9 +8,10 @@
      <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>
            <template v-if="msg.orderStatus==2">待执法</template> -->
         </view>
         <view class="wbox">
            <view class="item">
@@ -37,14 +38,14 @@
                  {{msg.executeDeptName || msg.applyDeptName}}
               </view>
            </view>
            <view class="item">
            <!-- <view class="item">
               <view class="k">
                  企业
               </view>
               <view class="v">
                  {{msg.companyName}}
               </view>
            </view>
            </view> -->
         </view>
         <view style="height: 20rpx;"></view>
         <view class="wbox">
@@ -58,10 +59,10 @@
            </view>
            <view class="item">
               <view class="k">
                  执法过程
                  执法内容
               </view>
               <view class="v" v-if="!img.length">
                  {{msg.regionReason || '执法过程待上报'}}
                  {{ msg.enforceContent}}
               </view>
            </view>
            <view class="imgbox"  v-if="img.length">
@@ -79,7 +80,7 @@
                  执法结果
               </view>
               <view class="v" style="color: #EB4746;">
                  {{msg.regionReason || '执法结果待上报'}}
                  {{msg.regionReason || '--'}}
               </view>
            </view>
            <view class="item">
@@ -87,7 +88,7 @@
                  执法时间
               </view>
               <view class="v">
                  {{msg.inTime || "待执法"}}
                  {{msg.inTime || msg.planTime}}
               </view>
            </view>
         </view>
@@ -168,7 +169,7 @@
            </view>
         </view>
      </view>
      <view class="bottom" v-if="msg.orderStatus==3 || msg.orderStatus== 4">
      <view class="bottom" v-if=" msg.orderStatus== 5">
         <view class="one" v-if="msg.isComplaint != 1 && msg.isEva == 1">
            <view class="b1" @click="open()">
               投诉
@@ -187,6 +188,15 @@
               我要评价
            </view>
         </view>
      </view>
      <view class="bottom" v-if=" msg.orderStatus == 4">
         <view class="one" >
            <view class="b1" style="background-color: #1171E0;color: white;" @click="enterOrder()">
               确认
            </view>
         </view>
      </view>
      <u-popup :show="show" @close="close" mode="bottom" round="10" closeable>
         <view class="page-box">
@@ -224,7 +234,7 @@
   import { order } from '@/api/index.js'
   import { getDicts } from '@/api/data.js'
   import { config } from '@/common/config'
   import { orderComplaint } from '@/api/qiye.js'
   import { orderComplaint, confirmOrderId } from '@/api/qiye.js'
   export default {
      data() {
         return {
@@ -259,6 +269,27 @@
         this.getdata()
      },
      methods: {
         enterOrder() {
            uni.showModal({
               title: '提示',
               content: '确认该订单?',
               success: val => {
                  if(val.confirm) {
                     confirmOrderId({orderId: this.msg.orderId}).then(val => {
                        if(val.data.code == 200) {
                           uni.showToast({
                              title: '确认成功',
                              icon: 'none'
                           })
                           this.getdata()
                        }
                     })
                  }
               }
            })
         },
         getdata(){
            order(this.id).then(val => {