You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
4.5 KiB

<!-- package/startInspection/startInspection.wxml -->
2 years ago
<view class="page">
<view class="plan-list" wx:if="{{planList}}">
<t-cell class="block" title="选择巡检计划" arrow hover note="{{planListText}}" bind:click="onPlanListPicker" />
<t-picker visible="{{planListVisible}}" value="{{planListValue}}" data-key="planList" title="选择巡检计划" cancelBtn="取消" confirmBtn="确认" bindchange="onPickerChange" bindcancel="onPickerCancel">
<t-picker-item options="{{planList}}" format></t-picker-item>
</t-picker>
</view>
<view class="titleFirst">巡检要求</view>
2 years ago
<van-cell-group>
<van-cell size="large" title="结构物名称:" value="{{dataList.project.name}}" />
<van-cell size="large" title="开始时间:" value="{{dataList.startTime}}" />
<van-cell size="large" title="结束时间:" value="{{dataList.endTime}}" />
<van-cell size="large" title="巡检方式:" value="{{dataList.way}}" />
<van-cell size="large" title="巡检频次:" value="{{dataList.frequency}}" />
<van-cell size="large" title="巡检人:" value="{{dataList.showUsers}}" />
<van-cell size="large" title="巡检单位:" value="{{dataList.showDepts}}" />
<van-cell size="large" title="巡检点位:" value="{{points}}" />
</van-cell-group>
<view class="titleTwo">巡检结果录入</view>
<block wx:for="{{dataList.points}}" wx:key="*this" class="entering">
<van-cell-group>
<van-cell title="巡检点位:" value="{{item.name}}" />
<van-cell title="上次巡检日期:" value="{{item.lastInspectionTime}}" />
<van-cell title="巡检人:" value="{{dataList.showUsers}}" />
<van-cell title="本次巡检日期:" value="{{item.inspectionTime}}" />
</van-cell-group>
<view class="flex-end btn-box">
<view class="startBtn" data-itemData="{{item}}" bindtap="showModal">开始巡检</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>