|
|
|
<!--package/startInspection/startInspection.wxml-->
|
|
|
|
<view class="box">
|
|
|
|
<view class="titleFirst">巡检要求</view>
|
|
|
|
<view class="txt">
|
|
|
|
<view style="float: left;font-weight: bold;">结构物名称</view>
|
|
|
|
<view style="float:left;width:70%;margin-left:40rpx;">{{dataList.project.name}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt">
|
|
|
|
<view style="float: left;font-weight: bold;">开始时间</view>
|
|
|
|
<view style="float:left;width:70%;margin-left:40rpx;">{{dataList.startTime}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt">
|
|
|
|
<view style="float: left;font-weight: bold;">结束时间</view>
|
|
|
|
<view style="float:left;width:70%;margin-left:40rpx;">{{dataList.endTime}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt">
|
|
|
|
<view style="float: left;font-weight: bold;">巡检方式</view>
|
|
|
|
<view style="float:left;width:70%;margin-left:40rpx;">{{dataList.way}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt">
|
|
|
|
<view style="float: left;font-weight: bold;">巡检频次</view>
|
|
|
|
<view style="float:left;width:70%;margin-left:40rpx;">{{dataList.frequency}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt">
|
|
|
|
<view style="float: left;font-weight: bold;">巡检人</view>
|
|
|
|
<view style="float:left;width:70%;margin-left:40rpx;">{{dataList.user.name}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt">
|
|
|
|
<view style="float: left;font-weight: bold;">巡检单位</view>
|
|
|
|
<view style="float:left;width:70%;margin-left:40rpx;">{{dataList.user.department.name}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt">
|
|
|
|
<view style="float: left;font-weight: bold;">巡检点位</view>
|
|
|
|
<view style="float:left;width:70%;margin-left:40rpx;">{{points}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="line"></view>
|
|
|
|
<view class="titleFirst">巡检结果录入</view>
|
|
|
|
<block wx:for="{{dataList.points}}" wx:key="*this">
|
|
|
|
<view style="margin-bottom: 60rpx;">
|
|
|
|
<view class="txt" style="margin-bottom: 20rpx;">
|
|
|
|
<view style="float: left;font-weight: bold;">巡检点位</view>
|
|
|
|
<view style="float:left;width:55%;margin-left:40rpx;">{{item.name}}</view>
|
|
|
|
<view class="startBtn" data-itemData="{{item}}" bindtap="showModal">开始巡检</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt" style="margin-bottom: 20rpx;">
|
|
|
|
<view style="float: left;font-weight: bold;">上次巡检日期</view>
|
|
|
|
<view style="float:left;width:55%;margin-left:40rpx;">{{item.lastInspectionTime}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt" style="margin-bottom: 20rpx;">
|
|
|
|
<view style="float: left;font-weight: bold;">巡检人</view>
|
|
|
|
<view style="float:left;width:55%;margin-left:40rpx;">{{dataList.user.name}}</view>
|
|
|
|
</view>
|
|
|
|
<view class="txt" style="margin-bottom: 20rpx;">
|
|
|
|
<view style="float: left;font-weight: bold;">本次巡检日期</view>
|
|
|
|
<view style="float:left;width:55%;margin-left:40rpx;">{{item.inspectionTime}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</block>
|
|
|
|
|
|
|
|
<!-- 开始巡检弹框 -->
|
|
|
|
<view class="modal" wx:if="{{showModal}}">
|
|
|
|
<view class="popBox">
|
|
|
|
<view style="padding:20rpx 30rpx;overflow: hidden;">
|
|
|
|
<view style="float: left;">当前点位:</view>
|
|
|
|
<view style="float:left;width:480rpx;text-align: justify;">{{itemData.name}}</view>
|
|
|
|
</view>
|
|
|
|
<view style="padding:20rpx 30rpx;overflow: hidden;">
|
|
|
|
<view style="float: left;">当前位置:</view>
|
|
|
|
<view style="float:left;width:480rpx;text-align: justify;" wx:if="{{address}}">{{address}}</view>
|
|
|
|
<view style="float:left;width:480rpx;text-align: justify;" bindtap="selfLocation" wx:if="{{!address}}">点击获取当前位置</view>
|
|
|
|
</view>
|
|
|
|
<radio-group style="padding:10px 15px;display:flex;justify-content: space-evenly;" bindchange="handleChangeTwo">
|
|
|
|
<radio style="color:#1979ff;" color="#1979ff" value="normal">正常</radio>
|
|
|
|
<radio style="color:#CC0000;" color="#CC0000" value="abnormal">异常</radio>
|
|
|
|
</radio-group>
|
|
|
|
<textarea style="width: 84%;margin:0 auto;border:2rpx solid #ccc;padding:20rpx;height: 120rpx;border-radius: 10rpx;" placeholder="请输入巡查详情" maxlength="-1" wx:if="{{changeTwo == 'abnormal'}}" bindinput="bindInput"></textarea>
|
|
|
|
<radio-group style="padding:10px 15px;display:flex;justify-content: space-evenly;" bindchange="handleChangeThree" wx:if="{{changeTwo == 'abnormal'}}">
|
|
|
|
<radio style="color:#FF9900;" color="#FF9900" value="slight">轻微</radio>
|
|
|
|
<radio style="color:#FF3300;" color="#FF3300" value="moderate">中度</radio>
|
|
|
|
<radio style="color:#990000;" color="#990000" value="severity">严重</radio>
|
|
|
|
</radio-group>
|
|
|
|
|
|
|
|
<view class="weui-uploader" style="padding: 20rpx 30rpx;height:350rpx;overflow-y:scroll;" wx:if="{{changeTwo == 'abnormal'}}">
|
|
|
|
<view class="img-v weui-uploader__bd" style="overflow:hidden;">
|
|
|
|
<view class='pic' wx:for="{{imgs}}" wx:for-item="item" wx:key="*this">
|
|
|
|
<image class='weui-uploader__img showImg' src="{{item}}" data-index="{{index}}" mode="aspectFill" bindtap="previewImg">
|
|
|
|
<icon type='cancel' class="delete-btn" data-index="{{index}}" catchtap="deleteImg"></icon>
|
|
|
|
</image>
|
|
|
|
</view>
|
|
|
|
<!-- 用来提示用户上传图片 -->
|
|
|
|
<view class="weui-uploader__input-box pic" bindtap="chooseImg">
|
|
|
|
<image class="upload" src="/images/upload.png" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="btnBox">
|
|
|
|
<view class="cancel" bindtap="bindCancel">取消</view>
|
|
|
|
<view class="submit" bindtap="addPatrolRecord">提交</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|