2024-06-04 14:45:44 +08:00
|
|
|
|
<!--pages/msg/push/index.wxml-->
|
|
|
|
|
|
<title-bar title="应急上报"></title-bar>
|
|
|
|
|
|
<scroll-view scroll-y refresher-enabled style="height: calc(100vh - {{topBarH}}px);">
|
|
|
|
|
|
<view class="item">
|
2024-06-19 15:42:55 +08:00
|
|
|
|
<!-- 标题 -->
|
|
|
|
|
|
<view class="h-div v-center header">
|
2024-06-04 14:45:44 +08:00
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title">标题</text>
|
|
|
|
|
|
</view>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
<input bindinput="inputContent" data-name="title" class="put v-div h-center" placeholder="请输入标题" value="{{postData.title}}"></input>
|
2024-06-04 14:45:44 +08:00
|
|
|
|
<!-- 时间 -->
|
|
|
|
|
|
<view class="h-div v-center header">
|
|
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title">事发时间</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<picker mode="date" value="{{postData.createTime}}" bindchange="bindDateChange">
|
|
|
|
|
|
<input disabled class="put v-div h-center" placeholder="请选择" value="{{postData.createTime}}"></input>
|
|
|
|
|
|
</picker>
|
|
|
|
|
|
<!-- 地点 -->
|
|
|
|
|
|
<!-- <view class="h-div v-center header">
|
|
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title">事发地点</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<input catchtap="chooseAddress" class="put v-div h-center" disabled placeholder="请输入" value="{{postData.address}}"></input> -->
|
|
|
|
|
|
<!-- 类型 -->
|
|
|
|
|
|
<view class="h-div v-center header">
|
|
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title">事件类型</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<input catchtap="popModal" data-type="showTypePop" disabled class="put v-div h-center" placeholder="请选择" value="{{TypeData[postData.type-1].emerTypeName}}"></input>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
<!-- 地区 -->
|
|
|
|
|
|
<view class="h-div v-center header">
|
2024-06-04 14:45:44 +08:00
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title">地区</text>
|
|
|
|
|
|
</view>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
<picker mode="multiSelector" bindchange="areabindMultiPickerChange" bindcolumnchange="areabindMultiPickerColumnChange" value="{{areamultiIndex}}" range="{{areanewArr}}">
|
|
|
|
|
|
<view class="picker picker1">
|
|
|
|
|
|
<!-- 当前选择: <van-button type="primary">
|
2024-06-04 14:45:44 +08:00
|
|
|
|
{{areanewArr[0][areamultiIndex[0]]}},{{areanewArr[1][areamultiIndex[1]]}},{{areanewArr[2][areamultiIndex[2]]}}</van-button> -->
|
|
|
|
|
|
<view>当前选择:{{areamultiArray[0].children[area[1]].orgname}}</view>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</picker>
|
|
|
|
|
|
<!-- 所属组织 -->
|
|
|
|
|
|
<view class="h-div v-center header">
|
2024-06-04 14:45:44 +08:00
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title">所属组织</text>
|
|
|
|
|
|
</view>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
<view catchtap="areapopModal" data-type="areashowTypePop" class="picker1">
|
|
|
|
|
|
当前选择:{{postData.organizationName}}
|
2024-06-04 14:45:44 +08:00
|
|
|
|
</view>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
<view class="h-div v-center header">
|
2024-06-04 14:45:44 +08:00
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title">详细地址</text>
|
|
|
|
|
|
</view>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
<view catchtap="toShowAddress" class="picker1">
|
2024-06-04 14:45:44 +08:00
|
|
|
|
地址:{{postData.addressName}}
|
2024-06-19 15:42:55 +08:00
|
|
|
|
</view>
|
2024-06-04 14:45:44 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 内容 -->
|
|
|
|
|
|
<view class="h-div v-center header">
|
|
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title">事件描述</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<textarea bindinput="inputContent" data-name="content" value="{{postData.content}}" style="color: #333333;" class="put v-div" placeholder="请输入工作内容"></textarea>
|
|
|
|
|
|
<!-- 附件 -->
|
|
|
|
|
|
<view class="h-div v-center header">
|
|
|
|
|
|
<text class="single"></text>
|
|
|
|
|
|
<text class="title flex">附件</text>
|
|
|
|
|
|
<text catchtap="chooseFile" class="title cuIcon-roundadd" style="font-weight: normal;color: #5DA6F4;">添加图片</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="grid">
|
|
|
|
|
|
<view class="img" wx:for="{{files}}" style="position: relative;">
|
|
|
|
|
|
<text wx:if="{{!postData.emerEventId}}" catchtap="deleteFile" data-id="{{item.sysdocumentid}}" class="cuIcon-delete del" style="color:red;"></text>
|
|
|
|
|
|
<image class="img" src="{{baseUrl+item.filepath}}" catchtap="filePre" data-url="{{item.filepath}}" />
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
<view class="plan">
|
|
|
|
|
|
<view class="plan_div" wx:for="{{othplanList}}" data-item="{{item}}">
|
|
|
|
|
|
<view class="plan_top">
|
|
|
|
|
|
<view class="plan_name">预案名称:</view>
|
|
|
|
|
|
<view class="plan_cent">{{item.planname}}</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="plan_top">
|
|
|
|
|
|
<view class="plan_name">预案简介:</view>
|
|
|
|
|
|
<view class="plan_cent">{{item.introduction}}</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view data-item="{{item}}" catchtap="download" class="h-div v-center" >
|
|
|
|
|
|
<text class="download">附件下载</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2024-06-04 14:45:44 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="space"></view>
|
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
<view class="option" wx:if="{{!postData.emerEventId}}">
|
|
|
|
|
|
<view catchtap="push" class="btn">上报</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 选择通知类型 -->
|
|
|
|
|
|
<view class="cu-modal {{showTypePop?'show':''}}">
|
|
|
|
|
|
<view class="cu-dialog pop" catchtap>
|
|
|
|
|
|
<view class="cu-bar justify-end pop-header">
|
|
|
|
|
|
<view class="content">选择工作类型</view>
|
|
|
|
|
|
<view class="action" catchtap="popModal" data-type="showTypePop">
|
|
|
|
|
|
<text class="cuIcon-close text-red"></text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<radio-group class="block" style="max-height: 50vh;overflow-y: scroll;">
|
|
|
|
|
|
<view class="cu-list menu text-left">
|
|
|
|
|
|
<view class="cu-item" wx:for="{{TypeData}}" wx:key>
|
|
|
|
|
|
<label catchtap="typeChange" data-item="{{item}}" data-index="{{index}}" class="flex justify-between align-center flex-sub">
|
|
|
|
|
|
<view class="flex-sub">{{item.emerTypeName}}</view>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</radio-group>
|
|
|
|
|
|
</view>
|
2024-06-19 15:42:55 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 选择所属组织 -->
|
|
|
|
|
|
<view class="cu-modal {{areashowTypePop?'show':''}}">
|
|
|
|
|
|
<view class="cu-dialog pop" catchtap>
|
|
|
|
|
|
<view class="cu-bar justify-end pop-header">
|
|
|
|
|
|
<view class="content">选择所属组织</view>
|
|
|
|
|
|
<view class="action" catchtap="areapopModal" data-type="areashowTypePop">
|
|
|
|
|
|
<text class="cuIcon-close text-red"></text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<radio-group class="block" style="max-height: 50vh;overflow-y: scroll;">
|
|
|
|
|
|
<tree-node id="tree" dataTree="{{unitTreelist}}" pros="{{unitTreepros}}" bindselect="handleselectunit" isOpenAll="true" />
|
|
|
|
|
|
</radio-group>
|
|
|
|
|
|
</view>
|
2024-06-04 14:45:44 +08:00
|
|
|
|
</view>
|