epmet 工作端 小程序
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.

215 lines
8.7 KiB

<view class="header">
<view class="header_left">
<image src="../../../../images/location.png" class="header_img"></image>
<view class="inside">
<text class="text1">{{addressContent}}</text>
<text class="text2">如定位不在事发地,请重新选择定位</text>
</view>
</view>
<view class="header_right" bind:tap="toughGetLocation">
<text class="text3">重新定位</text>
</view>
</view>
<view class="from">
<view class="prosecutors">
<text class="prosecutors_req">*</text>
<view class="nes">
<view class="conclusion">
<text class="prosecutors_pre">企业名称</text>
<div >
<input class="{{inspectIf ? 'search-input' : 'search-input1'}}" type="text" placeholder="请输入要查找的公司" bindfocus="handleFocus" bindinput="inputChange" value="{{searchKeyword}}" />
<view class="Enterpris">
<scroll-view scroll-y="{{true}}" wx:if="{{ showscroll }}" class="searchKeyword" >
<div class="searchList" wx:for="{{companyList}}" bindtap="onChange2" data-item="{{item}}" wx:key="index">
<view wx:if="{{item.inspectIf}}" class="EnterperiseName "> {{item.name}}</view>
<view wx:if="{{!item.inspectIf}}" class="EnterperiseName1 "> {{item.name}}</view>
</div>
</scroll-view>
</view>
<!-- <picker bindchange="pickerChange2" range-key="name" value="{{index}}" range="{{companyList}}">
</picker> -->
<!-- <view class="list-container">
<view wx:for="{{ companyList }}" wx:key="index">
<text bindchange="pickerChange2" bind:tap="pickerChange2">{{ companyList[index].name }}</text>
</view>
</view> -->
</div>
</view>
</view>
</view>
<view class="prosecutors" bind:tap="showPopup">
<text class="prosecutors_req">*</text>
<view class="nes">
<view class="conclusion">
<text class="prosecutors_pre">检查人员</text>
<text class="prosecutors_name">{{ selectedNames }}</text>
</view>
<view class="conclusion_right">
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view></view>
</view>
<view class="prosecutors">
<text class="prosecutors_req">*</text>
<view class="nes">
<view class="conclusion">
<text class="prosecutors_pre">检查结论</text>
<picker class="prosecutors_name" bindchange="pickerChange" value="{{index}}" range="{{array}}">
<view class="{{checkResultName?'':'gray'}}">
{{checkResultName?checkResultName:'请选择'}}
</view>
</picker>
</view>
<view class="conclusion_right">
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
</view>
<view class="pitfall">
<view class="prosecutors">
<text class="prosecutors_req" wx:if="{{checkResultFlag == 0}}">*</text>
<view class="conclusion1">
<text class="prosecutors_pre">{{ beforeFlag ?'隐患明细':'未整改隐患'}}</text>
</view>
</view>
<view class="checkbox1">
<van-checkbox-group value="{{checkboxValue}}" bind:change="onChange" wx:if="{{checkboxOptions}}" >
<van-checkbox custom-class="group" name="{{index}}" wx:for="{{checkboxOptions}}" >{{index + 1}}. {{item.hazardDesc}}</van-checkbox>
</van-checkbox-group>
<view class="addHiddenDangeList" wx:for="{{addHiddenDangeList}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<input class="addHiddenDangeListText"
value="{{item.hazardDesc}}"
data-index="{{index}}"
bindinput="onInputChange"
></input>
</view>
</view>
<view class="input1">
<input bindinput="changenewContent" type="text" value="{{newContent}}" placeholder=" 请输入" />
</view>
<view class="add" bind:tap="addAnother">
<image src="../../../../images/add.png" class="add_img"></image>
<text>再添加一条</text>
</view>
</view>
<view class="pitfall" wx:if="{{beforeFlag}}">
<view class="prosecutors">
<!-- <text class="prosecutors_req">*</text> -->
<view class="conclusion1">
<text class="prosecutors_pre">整改要求</text>
</view>
</view>
<view class="input1">
<input bindinput="changeHazardDescStatus2" type="text" placeholder=" 请输入" value="{{ hazardDesc2 }}" />
</view>
</view>
<view class="prosecutors">
<text class="prosecutors_req" wx:if="{{checkResultFlag == 0}}">*</text>
<view class="nes" bind:tap="showTime" >
<view class="conclusion">
<text class="prosecutors_pre">拟复查时间</text>
<view class="{{currentDateShow?'':'gray'}} prosecutors_name">
{{currentDateShow?currentDateShow:'请选择'}}
</view>
<!-- <picker mode="date" class="prosecutors_name" bindchange="pickerChange1" value="{{data}}">
<view class="{{getData?'':'gray'}}">
{{getData?getData:'请选择'}}
</view>
</picker> -->
</view>
<view class="conclusion_right">
<image src="../../../../images/right.png" class="prosecutors_img"></image>
</view>
</view>
</view>
<view class="attachment">
<view class="image-box">
<view class="{{ uploadImageList.length < 4 ? 'image-list' : uploadImageList.length > 3 && uploadImageList.length < 7 ? 'image-list image-list-2' : uploadImageList.length > 6 && uploadImageList.length < 10 ? 'image-list image-list-3' : 'image-list image-list-4' }}">
<view class=" image-list-label">
<view class="field-text">上传图片</view>
</view>
<view
class="image-item"
wx:for="{{uploadImageList}}"
wx:for-index="index"
wx:for-item="item"
wx:key="imageId">
<image class="issue-image" src="{{item.ossUrl.url}}" />
<image wx:if="{{!item.uploaded}}" class="loading" src="../../../../images/loading.gif" />
<image bindtap="deleteImage" data-imageid="{{item.imageId}}" class="close" wx:else src="../../../../images/icon_close.png" />
</view>
<image wx:if="{{uploadImageList.length < 3}}" src="../../../../images/ig_tianjiatupian@2x.png" bindtap="chooseImage" />
</view>
</view>
<text class="text_27">备注</text>
<view class="textarea1">
<textarea placeholder-style="color: #C1C1C1;" bindinput="bindRemarkInput" maxlength="100" placeholder-class="gray" placeholder=" 请输入" />
</view>
</view>
</view>
<view class="footer">
<view class="btn" bind:tap="submitBiao">
<text class="btn_text">提交</text>
</view>
</view>
<wux-actionsheet id="wux-actionsheet" />
<van-popup show="{{ showPopup }}" closeable close-icon="close" position="bottom" custom-style="height: 50%" bind:close="onClose" round>
<view class="popup-content">
<van-checkbox-group value="{{selectedOptions}}" bind:change="onChange1">
<van-checkbox name="{{item.staffId}}" custom-class="checkbox" wx:for="{{arr}}">{{item.name}}</van-checkbox>
</van-checkbox-group>
</view>
</van-popup>
<!-- 企业名称 -->
<!-- <van-popup show="{{ showqiye }}" closeable close-icon="close" position="bottom" custom-style="height: 50%" bind:close="onClose" round>
<view class="popup-content">
<van-checkbox-group max="{{1}}" value="{{selectedEnterpriseNames}}" bind:change="onChange2">
<van-checkbox name="{{item.name}}" custom-class="checkbox"
wx:for="{{companyList}}" wx:key="index">{{item.name}}</van-checkbox>
</van-checkbox-group>
</view>
</van-popup> -->
<van-popup show="{{ showtime }}" close-icon="close" position="bottom" custom-style="height: 50%" bind:close="closePopup" round>
<van-datetime-picker
type="datetime"
value="{{ currentDate }}"
min-date="{{ minDate }}"
max-date="{{ maxDate }}"
bind:input="onInput"
bind:confirm="handelConfirmDate"
bind:cancel="onCancel"
/>
</van-popup>
<van-overlay show="{{ show }}" bind:click="onClickHide" />
<!-- <van-popup show="{{ showTime }}" closeable close-icon="close" position="bottom" custom-style="height: 50%" bind:close="onClose" round>
<view class="popup-content">
<van-checkbox-group value="{{selectedOptions}}" bind:change="onChange1">
<van-checkbox name="{{item.staffId}}" custom-class="checkbox" wx:for="{{arr}}">{{item.name}}</van-checkbox>
</van-checkbox-group>
</view>
</van-popup> -->
<!-- <van-popup show="{{ showTime }}" position="bottom" bind:close="closePopup" custom-style="height: 50%">
<van-datetime-picker
type="datetime"
value="{{ currentDate }}"
min-date="{{ minDate }}"
max-date="{{ maxDate }}"
bind:input="onInput"
bind:confirm="onConfirm"
bind:cancel="onCancel"
/>
</van-popup> -->