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.
95 lines
6.5 KiB
95 lines
6.5 KiB
<view class="popBox">
|
|
<view>
|
|
<van-cell-group class="mission-card">
|
|
<van-cell-group>
|
|
<van-field value="{{ sms }}" bind:input="onInputChange" center clearable label="设备SN号" placeholder="设备SN号" border="{{ false }}" use-button-slot>
|
|
<van-button slot="button" size="small" type="info" bindtap="searchDetail">
|
|
搜索
|
|
</van-button>
|
|
</van-field>
|
|
</van-cell-group>
|
|
<van-cell wx:if="{{sList.length}}">
|
|
<view style="display:flex">
|
|
<view class="fs-cell-title" style="">结构物:</view>
|
|
<picker style="width:100%;text-align:left" bindchange="structChange" data-type='jiegouwu' value="{{0}}" range="{{sList}}" range-key="name">
|
|
<view class="fs-cell-content" style="width:100%">
|
|
{{structListIndex||structListIndex==0?sList[structListIndex].name:'请选择'}}
|
|
<van-icon name="arrow" style="float:right;position:relative; top:4px" />
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</van-cell>
|
|
<van-cell wx:if="{{pointVis}}">
|
|
<view style="display:flex">
|
|
<view class="fs-cell-title" style="">当前点位:</view>
|
|
<picker style="width:100%;text-align:left" bindchange="pointChange" data-type='point' value="{{0}}" range="{{pointList}}" range-key="name">
|
|
<view class="fs-cell-content" style="width:100%">
|
|
{{pointIndex||pointIndex==0?pointList[pointIndex].name:'请选择'}}
|
|
<van-icon name="arrow" style="float:right;position:relative; top:4px" />
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</van-cell>
|
|
<!--表单项渲染-->
|
|
<view wx:if="{{formVis}}">
|
|
<van-cell-group >
|
|
<van-field value="{{handleObj}}" bind:change="input1Change" type="textarea" autosize label="排查及处理对象:" placeholder="排查及处理对象" accordion title-width="110px" />
|
|
<van-field value="{{ handleGoal }}" bind:change="input2Change" type="textarea" autosize label="排查及处理目的:" placeholder="排查及处理目的" accordion title-width="110px"/>
|
|
<van-field value="{{ installLocation }}" bind:change="input3Change" type="textarea" autosize label="安装位置:" placeholder="安装位置" accordion />
|
|
<van-field value="{{ rtuNo }}" type="textarea" bind:change="input4Change" autosize label="RTU编号:" placeholder="RTU编号" accordion />
|
|
</van-cell-group>
|
|
<van-cell >
|
|
<view style="display:flex">
|
|
<view class="fs-cell-title">巡检模板:</view>
|
|
<picker style="width:100%;text-align:left" bindchange="patrolTemplateChange" data-type='template' value="{{0}}" range="{{patrolTemplate}}" range-key="name">
|
|
<view class="fs-cell-content" style="width:100%">
|
|
{{patrolTemplateIndex||patrolTemplateIndex==0?patrolTemplate[patrolTemplateIndex].name:'请选择'}}
|
|
<van-icon name="arrow" style="float:right;position:relative; top:4px" />
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</van-cell>
|
|
</view>
|
|
</van-cell-group>
|
|
</view>
|
|
|
|
<!-- 渲染巡检内容 -->
|
|
<view wx:for="{{inspectContentArr}}" wx:key="id" wx:for-item="device" wx:for-index="deviceidx">
|
|
<view wx:if="{{device.deviceName}}" class="flex flex-start" style="height: 40px">{{device.deviceName}}</view>
|
|
<view wx:for="{{device.checkItems}}" wx:key="id" wx:for-index="itemidx">
|
|
<view class="flex-between">
|
|
<view class="item-name">{{item.name}}:</view>
|
|
<van-radio-group style="padding:10px 15px;" data-deviceidx="{{deviceidx}}" data-itemidx="{{itemidx}}" bindchange="handleChangeTwo" value="{{item.isNormal}}">
|
|
<van-radio style="margin-right: 20px;" class="radio-text" color="#1979ff" name="{{true}}">正常</van-radio>
|
|
<van-radio class="radio-text" checked-color="#CC0000" name="{{false}}">异常</van-radio>
|
|
</van-radio-group>
|
|
</view>
|
|
<view class="divider" />
|
|
<van-radio-group class="flex-end" style="padding:10px 15px;" data-deviceidx="{{deviceidx}}" data-itemidx="{{itemidx}}" bindchange="handleChangeThree" wx:if="{{item.isNormal === false}}">
|
|
<van-radio style="margin-right: 20px;" class="radio-text" checked-color="#FF9900" name="轻微">轻微</van-radio>
|
|
<van-radio style="margin-right: 20px;" class="radio-text" checked-color="#FF3300" name="中度">中度</van-radio>
|
|
<van-radio class="radio-text" checked-color="#990000" name="严重">严重</van-radio>
|
|
</van-radio-group>
|
|
<textarea class="textarea" placeholder="请输入巡查详情" maxlength="-1" wx:if="{{item.isNormal === false}}" data-deviceidx="{{deviceidx}}" data-itemidx="{{itemidx}}" bindinput="bindInput" />
|
|
<view class="weui-uploader" style="padding: 20rpx 30rpx;overflow-y:scroll;" wx:if="{{item.isNormal === false}}">
|
|
<view class="img-v weui-uploader__bd" style="overflow:hidden;">
|
|
<view class="pic" wx:for="{{item.imgs}}" wx:for-item="img" wx:key="*this">
|
|
<image class="weui-uploader__img showImg" src="{{imgUrl + img}}" data-index="{{index}}" data-deviceidx="{{deviceidx}}" data-itemidx="{{itemidx}}" mode="aspectFill" bindtap="previewImg">
|
|
<icon type="cancel" class="delete-btn" data-index="{{index}}" data-deviceidx="{{deviceidx}}" data-itemidx="{{itemidx}}" catchtap="deleteImg" />
|
|
</image>
|
|
</view>
|
|
<!-- 用来提示用户上传图片 -->
|
|
<view class="weui-uploader__input-box pic" data-item="{{item.name}}" data-deviceidx="{{deviceidx}}" data-itemidx="{{itemidx}}" bindtap="chooseImg">
|
|
<image class="upload" src="/images/upload.png" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="divider" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="btnBox">
|
|
<view class="cancel" bindtap="bindCancel">取消</view>
|
|
<view class="submit" bindtap="addPatrolRecord">提交</view>
|
|
</view>
|
|
</view>
|