MrShi
2025-01-02 a0a1c206612de9a3e9d64f3d45564c0ff03f93f6
h5/pages/workOrder/detail.vue
@@ -4,13 +4,13 @@
         <view class="title">
            <text>{{ info.projectName }}/{{ info.buildingName }}/{{info.roomNum || info.floorName}}</text>
            <text class="status" v-if="info.dealStatus == 0">待处理</text>
            <text class="status" v-if="info.dealStatus == 1">已指派</text>
            <text class="status" v-if="info.dealStatus == 1">待处理</text>
            <text class="status gray" v-if="info.dealStatus == 2">已处理</text>
         </view>
         <view class="desc">{{ info.content }}</view>
         <view class="file_list">
            <view class="file" v-for="(item,index) in info.fileList">
               <image v-if="item.type == 0" :src="item.fileurlFull" mode="widthFix"></image>
               <image v-if="item.type == 0" :src="item.fileurlFull" mode="aspectFill"></image>
               <video v-if="item.type == 1" :src="item.fileurlFull" :controls="false"></video>
            </view>
         </view>
@@ -23,9 +23,9 @@
               <view class="la">上报人:</view>
               <view class="val">{{ info.creatorName }}{{info.creatorCompany ? '-' + info.creatorCompany : ''}}</view>
            </view>
            <view class="line"  v-if="info.creatorPhone">
            <view class="line"  v-if="info.creatorPhone || info.creatorMobile">
               <view class="la">联系电话:</view>
               <view class="val">{{ info.creatorPhone }}</view>
               <view class="val">{{ info.creatorMobile || info.creatorPhone }}</view>
            </view>
            <view class="line">
               <view class="la">上报时间:</view>
@@ -33,14 +33,14 @@
            </view>
            <view class="line" v-if="info.getDate">
               <view class="la">上门时间:</view>
               <view class="val">{{ info.getDate }}</view>
               <view class="val">{{ info.getDate.slice(0, 16) }}</view>
            </view>
         </view>
         <view class="result_wrap" v-if="info.dealStatus == 2">
            <div class="title">处理结果</div>
            <view v-if="info.dealFileList && info.dealFileList.length > 0" class="file_list">
               <view class="file" v-for="item in info.dealFileList">
                  <image v-if="item.type == 0" :src="item.fileurlFull" mode="widthFix"></image>
                  <image v-if="item.type == 0" :src="item.fileurlFull" mode="aspectFill"></image>
                  <video v-if="item.type == 1" :src="item.fileurlFull" :controls="false"></video>
               </view>
            </view>
@@ -49,7 +49,7 @@
            </view>
            <view class="line">
               <view class="la">处理人:</view>
               <view class="val">{{ info.dealUserName }}</view>
               <view class="val">{{ info.dealUserName }}{{info.dealUserCompany ? '-' + info.dealUserCompany : ''}}</view>
            </view>
            <view class="line">
               <view class="la">处理时间:</view>
@@ -58,8 +58,8 @@
         </view>
      </view>
      <!--  -->
      <view class="btns" v-if="info.dealStatus == 0">
         <view class="btn">
      <view class="btns" v-if="info.dealStatus == 0 || (info.dealUserId === userInfo.id && info.dealStatus == 1)">
         <view class="btn" @click="handleCall">
            <image src="@/static/side/phoneed.png" class="icon"></image>
            <text>上报人</text>
         </view>
@@ -135,7 +135,8 @@
            info: {},
            showUpload: false,
            isShowHandle: false,
            isShowHandleDate: false,
            isShowHandleDate: false,
            userInfo: uni.getStorageSync('userInfo') || {},
            handleParam: {},
            dealFileList: []
         };
@@ -159,6 +160,12 @@
                  uni.navigateBack()
               }
            })
         },
         handleCall() {
            const { info } = this
            uni.makePhoneCall({
               phoneNumber: info.creatorMobile
            });
         },
         getDetail() {
            ywWorkorderD(this.id).then(res => {
@@ -316,7 +323,8 @@
            image,
            video {
               width: 156rpx;
               width: 156rpx;
               height: 156rpx;
            }
         }
      }