|
@ -12,11 +12,6 @@ |
|
|
labelWidth="120px" |
|
|
labelWidth="120px" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- <Form |
|
|
|
|
|
:formList="formList" |
|
|
|
|
|
:dFormData="formData" |
|
|
|
|
|
label-width="100px" |
|
|
|
|
|
/> --> |
|
|
|
|
|
<span class="title">上报侧重要素</span> |
|
|
<span class="title">上报侧重要素</span> |
|
|
<Form |
|
|
<Form |
|
|
ref="FormReportRef" |
|
|
ref="FormReportRef" |
|
@ -24,7 +19,6 @@ |
|
|
v-model="reportData" |
|
|
v-model="reportData" |
|
|
label-width="100px" |
|
|
label-width="100px" |
|
|
/> |
|
|
/> |
|
|
<!-- :dFormData="formData" --> |
|
|
|
|
|
<div class="footer"> |
|
|
<div class="footer"> |
|
|
<Button @click.native="onSubmit">保存</Button> |
|
|
<Button @click.native="onSubmit">保存</Button> |
|
|
<!-- :loading="submitting" --> |
|
|
<!-- :loading="submitting" --> |
|
@ -39,28 +33,262 @@ |
|
|
<el-tab-pane label="初报" name="second"> |
|
|
<el-tab-pane label="初报" name="second"> |
|
|
<div class="file" ref="file" id="export-box"> |
|
|
<div class="file" ref="file" id="export-box"> |
|
|
<div class="file-box"> |
|
|
<div class="file-box"> |
|
|
<el-form> |
|
|
<el-form :model="formFileData"> |
|
|
|
|
|
<div class="file-title">重要事件</div> |
|
|
|
|
|
<div class="file-top"> |
|
|
|
|
|
<span class="file-top-fromDept" |
|
|
|
|
|
>报送单位: |
|
|
|
|
|
<el-input |
|
|
|
|
|
:disabled="type != 0" |
|
|
|
|
|
v-model="formFileData.fromDept" |
|
|
|
|
|
/> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span class="file-top-createTime" |
|
|
|
|
|
>报送时间: {{ formFileData.createTime }} |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-content"> |
|
|
|
|
|
<div class="file-content-title"> |
|
|
|
|
|
<el-input :disabled="type != 0" v-model="formFileData.title"> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-content-toDept"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
:disabled="type != 0" |
|
|
|
|
|
v-model="formFileData.toDept" |
|
|
|
|
|
></el-input |
|
|
|
|
|
>: |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
:disabled="type != 0" |
|
|
|
|
|
class="file-content-text" |
|
|
|
|
|
v-model="formFileData.content" |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
:rows="2" |
|
|
|
|
|
placeholder="请输入内容" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-footer"> |
|
|
|
|
|
<div class="file-createName"> |
|
|
|
|
|
<span>填报人:</span |
|
|
|
|
|
><el-input |
|
|
|
|
|
:disabled="type != 0" |
|
|
|
|
|
v-model="formFileData.createName" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-phoneNumber"> |
|
|
|
|
|
<span>联系电话:</span |
|
|
|
|
|
><el-input |
|
|
|
|
|
:disabled="type != 0" |
|
|
|
|
|
v-model="formFileData.phoneNumber" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-issuedr"> |
|
|
|
|
|
<span>签发人:</span |
|
|
|
|
|
><el-input |
|
|
|
|
|
:disabled="type != 0" |
|
|
|
|
|
v-model="formFileData.issued" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="footer"> |
|
|
|
|
|
<Button |
|
|
|
|
|
v-if="type == 0" |
|
|
|
|
|
style="background: #39d5bf" |
|
|
|
|
|
@click.native="handleInitData(1)" |
|
|
|
|
|
>重新生成</Button |
|
|
|
|
|
> |
|
|
|
|
|
<Button style="background: #3de8ff" @click.native="handlePreview" |
|
|
|
|
|
>预览</Button |
|
|
|
|
|
> |
|
|
|
|
|
<Button |
|
|
|
|
|
v-if="type == 0" |
|
|
|
|
|
style="background: #ffdb82" |
|
|
|
|
|
@click.native="onFileSubmit" |
|
|
|
|
|
>保存</Button |
|
|
|
|
|
> |
|
|
|
|
|
<Button v-if="type == 0" @click.native="onSubmitUpload" |
|
|
|
|
|
>保存并上报</Button |
|
|
|
|
|
> |
|
|
|
|
|
<Button |
|
|
|
|
|
style="background: #c9c9c9" |
|
|
|
|
|
@click.native="modelVisible = false" |
|
|
|
|
|
>关闭</Button |
|
|
|
|
|
> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-tab-pane> |
|
|
|
|
|
<el-tab-pane label="续报" name="third" :disabled="type == 0"> |
|
|
|
|
|
<div class="file" ref="file" id="export-box"> |
|
|
|
|
|
<!-- v-for="item in fileList" :key="item.id" --> |
|
|
|
|
|
<div class="file-box"> |
|
|
|
|
|
<el-form :model="formFileData"> |
|
|
|
|
|
<div class="file-title">重要事件</div> |
|
|
|
|
|
<div class="file-top"> |
|
|
|
|
|
<span class="file-top-fromDept" |
|
|
|
|
|
>报送单位: |
|
|
|
|
|
<el-input |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
type == 3 || (type == 2 && formFileData.status == 1) |
|
|
|
|
|
" |
|
|
|
|
|
v-model="formFileData.fromDept" |
|
|
|
|
|
/> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span class="file-top-createTime" |
|
|
|
|
|
>报送时间: {{ formFileData.createTime }} |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-content"> |
|
|
|
|
|
<div class="file-content-title"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
type == 3 || (type == 2 && formFileData.status == 1) |
|
|
|
|
|
" |
|
|
|
|
|
v-model="formFileData.title" |
|
|
|
|
|
> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-content-toDept"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
type == 3 || (type == 2 && formFileData.status == 1) |
|
|
|
|
|
" |
|
|
|
|
|
v-model="formFileData.toDept" |
|
|
|
|
|
></el-input |
|
|
|
|
|
>: |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
type == 3 || (type == 2 && formFileData.status == 1) |
|
|
|
|
|
" |
|
|
|
|
|
class="file-content-text" |
|
|
|
|
|
v-model="formFileData.content" |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
:rows="2" |
|
|
|
|
|
placeholder="请输入内容" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-footer"> |
|
|
|
|
|
<div class="file-createName"> |
|
|
|
|
|
<span>填报人:</span |
|
|
|
|
|
><el-input |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
type == 3 || (type == 2 && formFileData.status == 1) |
|
|
|
|
|
" |
|
|
|
|
|
v-model="formFileData.createName" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-phoneNumber"> |
|
|
|
|
|
<span>联系电话:</span |
|
|
|
|
|
><el-input |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
type == 3 || (type == 2 && formFileData.status == 1) |
|
|
|
|
|
" |
|
|
|
|
|
v-model="formFileData.phoneNumber" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="file-issuedr"> |
|
|
|
|
|
<span>签发人:</span |
|
|
|
|
|
><el-input |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
type == 3 || (type == 2 && formFileData.status == 1) |
|
|
|
|
|
" |
|
|
|
|
|
v-model="formFileData.issued" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- @current-change="initData" @size-change="onSizeChange" --> |
|
|
|
|
|
<Pagination |
|
|
|
|
|
width="'100%'" |
|
|
|
|
|
:page-size="pageSize" |
|
|
|
|
|
:current-page.sync="pageNum" |
|
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
|
:total="renewedList.length" |
|
|
|
|
|
@size-change="onSizeChange" |
|
|
|
|
|
@current-change="onCurrentChange" |
|
|
|
|
|
> |
|
|
|
|
|
</Pagination> |
|
|
|
|
|
<div class="footer"> |
|
|
|
|
|
<Button |
|
|
|
|
|
v-if="type != 3" |
|
|
|
|
|
style="background: #39d5bf" |
|
|
|
|
|
@click.native="handleInitData(2)" |
|
|
|
|
|
>重新生成</Button |
|
|
|
|
|
> |
|
|
|
|
|
<Button style="background: #3de8ff" @click.native="handlePreview" |
|
|
|
|
|
>预览</Button |
|
|
|
|
|
> |
|
|
|
|
|
<Button |
|
|
|
|
|
v-if=" |
|
|
|
|
|
(type == 1 && formFileData.status == 0) || |
|
|
|
|
|
(newType == 1 && formFileData.status == 0) |
|
|
|
|
|
" |
|
|
|
|
|
style="background: #ffdb82" |
|
|
|
|
|
@click.native="onFileSubmit" |
|
|
|
|
|
>保存</Button |
|
|
|
|
|
> |
|
|
|
|
|
<Button |
|
|
|
|
|
v-if=" |
|
|
|
|
|
(type == 1 && formFileData.status == 0) || |
|
|
|
|
|
(newType == 1 && formFileData.status == 0) |
|
|
|
|
|
" |
|
|
|
|
|
@click.native="onSubmitUpload" |
|
|
|
|
|
>保存并上报</Button |
|
|
|
|
|
> |
|
|
|
|
|
<Button |
|
|
|
|
|
style="background: #c9c9c9" |
|
|
|
|
|
@click.native="modelVisible = false" |
|
|
|
|
|
>关闭</Button |
|
|
|
|
|
> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-tab-pane> |
|
|
|
|
|
<el-tab-pane label="终报" name="fourth" :disabled="type == 0"> |
|
|
|
|
|
<div class="file" ref="file" id="export-box"> |
|
|
|
|
|
<div class="file-box"> |
|
|
|
|
|
<el-form :model="formFileData"> |
|
|
<div class="file-title">重要事件</div> |
|
|
<div class="file-title">重要事件</div> |
|
|
<div class="file-top"> |
|
|
<div class="file-top"> |
|
|
<span class="file-top-fromDept" |
|
|
<span class="file-top-fromDept" |
|
|
>报送单位: |
|
|
>报送单位: |
|
|
<el-input v-model="fromDept" /> |
|
|
<el-input |
|
|
|
|
|
:disabled="type == 3" |
|
|
|
|
|
v-model="formFileData.fromDept" |
|
|
|
|
|
/> |
|
|
</span> |
|
|
</span> |
|
|
<span class="file-top-createTime" |
|
|
<span class="file-top-createTime" |
|
|
>报送时间: {{ createTime }} |
|
|
>报送时间: {{ formFileData.createTime }} |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="file-content"> |
|
|
<div class="file-content"> |
|
|
<div class="file-content-title"> |
|
|
<div class="file-content-title"> |
|
|
<el-input v-model="title"> </el-input> |
|
|
<el-input :disabled="type == 3" v-model="formFileData.title"> |
|
|
|
|
|
</el-input> |
|
|
</div> |
|
|
</div> |
|
|
<div class="file-content-toDept"> |
|
|
<div class="file-content-toDept"> |
|
|
<el-input v-model="toDept"></el-input>: |
|
|
<el-input |
|
|
|
|
|
:disabled="type == 3" |
|
|
|
|
|
v-model="formFileData.toDept" |
|
|
|
|
|
></el-input |
|
|
|
|
|
>: |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<el-input |
|
|
<el-input |
|
|
|
|
|
:disabled="type == 3" |
|
|
class="file-content-text" |
|
|
class="file-content-text" |
|
|
v-model="content" |
|
|
v-model="formFileData.content" |
|
|
type="textarea" |
|
|
type="textarea" |
|
|
:rows="2" |
|
|
:rows="2" |
|
|
placeholder="请输入内容" |
|
|
placeholder="请输入内容" |
|
@ -69,31 +297,51 @@ |
|
|
<div class="file-footer"> |
|
|
<div class="file-footer"> |
|
|
<div class="file-createName"> |
|
|
<div class="file-createName"> |
|
|
<span>填报人:</span |
|
|
<span>填报人:</span |
|
|
><el-input v-model="createName" placeholder=""></el-input> |
|
|
><el-input |
|
|
|
|
|
:disabled="type == 3" |
|
|
|
|
|
v-model="formFileData.createName" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
</div> |
|
|
</div> |
|
|
<div class="file-phoneNumber"> |
|
|
<div class="file-phoneNumber"> |
|
|
<span>联系电话:</span |
|
|
<span>联系电话:</span |
|
|
><el-input v-model="phoneNumber" placeholder=""></el-input> |
|
|
><el-input |
|
|
|
|
|
:disabled="type == 3" |
|
|
|
|
|
v-model="formFileData.phoneNumber" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
</div> |
|
|
</div> |
|
|
<div class="file-issuedr"> |
|
|
<div class="file-issuedr"> |
|
|
<span>签发人:</span |
|
|
<span>签发人:</span |
|
|
><el-input v-model="issued" placeholder=""></el-input> |
|
|
><el-input |
|
|
|
|
|
:disabled="type == 3" |
|
|
|
|
|
v-model="formFileData.issued" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
></el-input> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="footer"> |
|
|
<div class="footer"> |
|
|
<Button style="background: #39d5bf" @click.native="onSubmit" |
|
|
<Button |
|
|
|
|
|
v-if="type != 3" |
|
|
|
|
|
style="background: #39d5bf" |
|
|
|
|
|
@click.native="handleInitData(3)" |
|
|
>重新生成</Button |
|
|
>重新生成</Button |
|
|
> |
|
|
> |
|
|
<Button style="background: #3de8ff" @click.native="handlePreview" |
|
|
<Button style="background: #3de8ff" @click.native="handlePreview" |
|
|
>预览</Button |
|
|
>预览</Button |
|
|
> |
|
|
> |
|
|
<Button style="background: #ffdb82" @click.native="onSubmit" |
|
|
<Button |
|
|
|
|
|
v-if="type != 3" |
|
|
|
|
|
style="background: #ffdb82" |
|
|
|
|
|
@click.native="onFileSubmit" |
|
|
>保存</Button |
|
|
>保存</Button |
|
|
> |
|
|
> |
|
|
<Button @click.native="onSubmit">保存并上报</Button> |
|
|
<Button v-if="type != 3" @click.native="onSubmitUpload" |
|
|
|
|
|
>保存并上报</Button |
|
|
|
|
|
> |
|
|
<Button |
|
|
<Button |
|
|
style="background: #c9c9c9" |
|
|
style="background: #c9c9c9" |
|
|
@click.native="modelVisible = false" |
|
|
@click.native="modelVisible = false" |
|
@ -101,8 +349,6 @@ |
|
|
> |
|
|
> |
|
|
</div> |
|
|
</div> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="续报" name="third"> </el-tab-pane> |
|
|
|
|
|
<el-tab-pane label="终报" name="fourth"> </el-tab-pane> |
|
|
|
|
|
<Dialog style="" v-model="showDocx" width="1085px" top="60px"> |
|
|
<Dialog style="" v-model="showDocx" width="1085px" top="60px"> |
|
|
<div class="docx-wrapper"> |
|
|
<div class="docx-wrapper"> |
|
|
<section |
|
|
<section |
|
@ -130,9 +376,9 @@ |
|
|
style=" |
|
|
style=" |
|
|
font-family: 方正小标宋简体; |
|
|
font-family: 方正小标宋简体; |
|
|
color: rgb(255, 0, 0); |
|
|
color: rgb(255, 0, 0); |
|
|
min-height: 44pt; |
|
|
min-height: 46pt; |
|
|
font-size: 44pt; |
|
|
font-size: 46pt; |
|
|
font-weight: bold; |
|
|
font-weight: 700; |
|
|
" |
|
|
" |
|
|
>重要事件</span |
|
|
>重要事件</span |
|
|
> |
|
|
> |
|
@ -163,7 +409,8 @@ |
|
|
min-height: 10.5pt; |
|
|
min-height: 10.5pt; |
|
|
font-size: 10.5pt; |
|
|
font-size: 10.5pt; |
|
|
" |
|
|
" |
|
|
>山东高速青岛发展有限公司运营管理事业部 </span |
|
|
> |
|
|
|
|
|
{{ formFileData.fromDept }}</span |
|
|
><span |
|
|
><span |
|
|
lang="null" |
|
|
lang="null" |
|
|
style=" |
|
|
style=" |
|
@ -181,7 +428,7 @@ |
|
|
min-height: 10.5pt; |
|
|
min-height: 10.5pt; |
|
|
font-size: 10.5pt; |
|
|
font-size: 10.5pt; |
|
|
" |
|
|
" |
|
|
>2024年05月09日15时40分</span |
|
|
>{{ formFileData.createTime }}</span |
|
|
> |
|
|
> |
|
|
</p> |
|
|
</p> |
|
|
<p |
|
|
<p |
|
@ -221,7 +468,7 @@ |
|
|
font-size: 22pt; |
|
|
font-size: 22pt; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
" |
|
|
" |
|
|
>关于G15沈海高速K502+222交通事故的初报</span |
|
|
>{{ formFileData.title }}</span |
|
|
> |
|
|
> |
|
|
</p> |
|
|
</p> |
|
|
<p |
|
|
<p |
|
@ -243,42 +490,29 @@ |
|
|
>智慧管理中心:</span |
|
|
>智慧管理中心:</span |
|
|
> |
|
|
> |
|
|
</p> |
|
|
</p> |
|
|
<p |
|
|
<textarea |
|
|
|
|
|
v-model="formFileData.content" |
|
|
|
|
|
disabled |
|
|
style=" |
|
|
style=" |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 40vh; |
|
|
line-height: 1.5; |
|
|
line-height: 1.5; |
|
|
text-indent: 0pt; |
|
|
text-indent: 0pt; |
|
|
vertical-align: baseline; |
|
|
vertical-align: baseline; |
|
|
|
|
|
font-family: 仿宋_GB2312; |
|
|
|
|
|
font-weight: normal; |
|
|
|
|
|
color: black; |
|
|
|
|
|
min-height: 16pt; |
|
|
|
|
|
font-size: 16pt; |
|
|
|
|
|
background: #fff; |
|
|
|
|
|
border: none; |
|
|
" |
|
|
" |
|
|
> |
|
|
> |
|
|
<span |
|
|
|
|
|
lang="en-US" |
|
|
{{ formFileData.content }} |
|
|
style=" |
|
|
|
|
|
font-family: 仿宋_GB2312; |
|
|
</textarea> |
|
|
font-weight: normal; |
|
|
|
|
|
color: black; |
|
|
|
|
|
min-height: 16pt; |
|
|
|
|
|
font-size: 16pt; |
|
|
|
|
|
" |
|
|
|
|
|
> |
|
|
|
|
|
2024年05月09日11时02分,G15沈海高速K502+222沈阳方向发生侧翻事故,行1车道、行2车道、应急车道正常通行,无压车。</span |
|
|
|
|
|
><span><br /></span |
|
|
|
|
|
><span |
|
|
|
|
|
lang="en-US" |
|
|
|
|
|
style=" |
|
|
|
|
|
font-family: 仿宋_GB2312; |
|
|
|
|
|
font-weight: normal; |
|
|
|
|
|
color: black; |
|
|
|
|
|
min-height: 16pt; |
|
|
|
|
|
font-size: 16pt; |
|
|
|
|
|
" |
|
|
|
|
|
> |
|
|
|
|
|
未到达现场的情况:路管、交警、消防、医疗等单位正在赶往现场,具体情况稍后报告。</span |
|
|
|
|
|
> |
|
|
|
|
|
</p> |
|
|
|
|
|
<p style="vertical-align: baseline"><span id="_GoBack"></span></p> |
|
|
|
|
|
<p style="vertical-align: baseline"></p> |
|
|
|
|
|
<p style="vertical-align: baseline"></p> |
|
|
|
|
|
<p style="vertical-align: baseline"></p> |
|
|
|
|
|
<p |
|
|
<p |
|
|
style=" |
|
|
style=" |
|
|
line-height: 1; |
|
|
line-height: 1; |
|
@ -310,21 +544,20 @@ |
|
|
<p |
|
|
<p |
|
|
class="docx-num-0-0" |
|
|
class="docx-num-0-0" |
|
|
style=" |
|
|
style=" |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: space-between; |
|
|
margin-top: 0pt; |
|
|
margin-top: 0pt; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
vertical-align: baseline; |
|
|
vertical-align: baseline; |
|
|
|
|
|
font-family: 仿宋_GB2312; |
|
|
|
|
|
font-weight: normal; |
|
|
|
|
|
min-height: 14pt; |
|
|
|
|
|
font-size: 14pt; |
|
|
" |
|
|
" |
|
|
> |
|
|
> |
|
|
<span |
|
|
<span lang="en-US">填报人:{{ formFileData.createName }} </span> |
|
|
lang="en-US" |
|
|
<span>联系电话:{{ formFileData.phoneNumber }}</span> |
|
|
style=" |
|
|
<span> 签发人:{{ formFileData.issued }}</span> |
|
|
font-family: 仿宋_GB2312; |
|
|
|
|
|
font-weight: normal; |
|
|
|
|
|
min-height: 14pt; |
|
|
|
|
|
font-size: 14pt; |
|
|
|
|
|
" |
|
|
|
|
|
>填报人:智慧高速菜单 联系电话:18678866677 签发人:郭璐明</span |
|
|
|
|
|
> |
|
|
|
|
|
</p> |
|
|
</p> |
|
|
</article> |
|
|
</article> |
|
|
</section> |
|
|
</section> |
|
@ -343,12 +576,18 @@ import { formList, reportList } from "./data"; |
|
|
import { tabConfigList } from "../../EventInformation/components/EditEventInformationDialog/data.js"; |
|
|
import { tabConfigList } from "../../EventInformation/components/EditEventInformationDialog/data.js"; |
|
|
import Button from "@screen/components/Buttons/Button.vue"; |
|
|
import Button from "@screen/components/Buttons/Button.vue"; |
|
|
import request from "@/utils/request"; |
|
|
import request from "@/utils/request"; |
|
|
|
|
|
import Pagination from "@screen/components/Pagination.vue"; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
|
|
|
getEventImportantFile, |
|
|
getEventImportant, |
|
|
getEventImportant, |
|
|
editEventImportant, |
|
|
editEventImportant, |
|
|
deventImportantFileList, |
|
|
deventImportantFileList, |
|
|
|
|
|
addEventImportantFile, |
|
|
|
|
|
editEventImportantFile, |
|
|
|
|
|
importantFileStatus, |
|
|
} from "@/api/commandDispatch"; |
|
|
} from "@/api/commandDispatch"; |
|
|
|
|
|
import { delay, exportFile, confirm } from "@screen/utils/common"; |
|
|
var moment = require("moment"); |
|
|
var moment = require("moment"); |
|
|
export default { |
|
|
export default { |
|
|
name: "EventDetail", |
|
|
name: "EventDetail", |
|
@ -356,6 +595,7 @@ export default { |
|
|
Dialog, |
|
|
Dialog, |
|
|
Form, |
|
|
Form, |
|
|
Button, |
|
|
Button, |
|
|
|
|
|
Pagination, |
|
|
}, |
|
|
}, |
|
|
model: { |
|
|
model: { |
|
|
prop: "visible", |
|
|
prop: "visible", |
|
@ -371,7 +611,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
// formList, |
|
|
type: 0, |
|
|
|
|
|
newType: 0, |
|
|
showDocx: false, |
|
|
showDocx: false, |
|
|
fData: {}, |
|
|
fData: {}, |
|
|
formConfigList: [], |
|
|
formConfigList: [], |
|
@ -389,14 +630,21 @@ export default { |
|
|
chemicalsStatus: "", |
|
|
chemicalsStatus: "", |
|
|
fireStatus: "", |
|
|
fireStatus: "", |
|
|
}, |
|
|
}, |
|
|
fromDept: "齐鲁高速股份有限公司", |
|
|
formFileData: { |
|
|
createTime: "2024年04月24日17时22分", |
|
|
fromDept: "齐鲁高速股份有限公司", |
|
|
title: "关于G20青银高速K305+208交通事故的续报1", |
|
|
createTime: "2024年04月24日17时22分", |
|
|
toDept: "智慧管理中心", |
|
|
title: "关于G20青银高速K305+208交通事故的续报1", |
|
|
content: "路管等单位及清障救援车辆已到达现场。预计结束时间为12时44分。", |
|
|
toDept: "智慧管理中心", |
|
|
createName: "张三", |
|
|
content: "路管等单位及清障救援车辆已到达现场。预计结束时间为12时44分。", |
|
|
phoneNumber: "18678866677", |
|
|
createName: "张三", |
|
|
issued: "康传刚", |
|
|
phoneNumber: "18678866677", |
|
|
|
|
|
issued: "康传刚", |
|
|
|
|
|
status: 0, |
|
|
|
|
|
id: null, |
|
|
|
|
|
}, |
|
|
|
|
|
pageSize: 1, |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
renewedList: [], |
|
|
// submitting: false, |
|
|
// submitting: false, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@ -421,12 +669,9 @@ export default { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (infoData.code != 200) return Message.error(infoData?.msg); |
|
|
if (infoData.code != 200) return Message.error(infoData?.msg); |
|
|
// this.resultEventData = { ...infoData.data }; |
|
|
|
|
|
// console.log("事件详情666", this.resultEventData); |
|
|
|
|
|
let info = infoData.data; |
|
|
let info = infoData.data; |
|
|
if (typeof info.stakeMark == "string") { |
|
|
if (typeof info.stakeMark == "string") { |
|
|
let numbers = info.stakeMark.match(/\d+/g).map(Number); |
|
|
let numbers = info.stakeMark.match(/\d+/g).map(Number); |
|
|
// console.log('numbers', numbers); |
|
|
|
|
|
info.stakeMark = numbers; |
|
|
info.stakeMark = numbers; |
|
|
} |
|
|
} |
|
|
this.fData = info; |
|
|
this.fData = info; |
|
@ -484,8 +729,7 @@ export default { |
|
|
); |
|
|
); |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
console.log("err", err); |
|
|
Message.error("查询失败", err); |
|
|
Message.error("查询失败6", err); |
|
|
|
|
|
}), |
|
|
}), |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
@ -502,21 +746,20 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
getReportData() { |
|
|
getReportData() { |
|
|
console.log("事件id", this.eventId); |
|
|
|
|
|
getEventImportant(this.eventId).then((res) => { |
|
|
getEventImportant(this.eventId).then((res) => { |
|
|
console.log("详情", res); |
|
|
|
|
|
this.reportData = { ...res.data }; |
|
|
this.reportData = { ...res.data }; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
handleClick(tab, event) { |
|
|
handleClick(tab, event) { |
|
|
this.activeName = tab.name; |
|
|
this.activeName = tab.name; |
|
|
if (this.activeName == "second") { |
|
|
if (this.activeName == "second") { |
|
|
deventImportantFileList(this.eventId, 1).then((res) => { |
|
|
this.getEventImportantFileList(1); |
|
|
console.log("res", res); |
|
|
} else if (this.activeName == "third") { |
|
|
}); |
|
|
this.getEventImportantFileList(2); |
|
|
|
|
|
} else if (this.activeName == "fourth") { |
|
|
|
|
|
this.getEventImportantFileList(3); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getProcess() { |
|
|
getProcess() { |
|
|
let directionFlg = true; |
|
|
let directionFlg = true; |
|
|
|
|
|
|
|
@ -559,12 +802,10 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 事件提交 |
|
|
onSubmit() { |
|
|
onSubmit() { |
|
|
this.$refs.FormConfigRef.validate().then((formData) => { |
|
|
this.$refs.FormConfigRef.validate().then((formData) => {}); |
|
|
console.log("事件修改", formData); |
|
|
|
|
|
}); |
|
|
|
|
|
this.$refs.FormReportRef.validate().then((formData) => { |
|
|
this.$refs.FormReportRef.validate().then((formData) => { |
|
|
console.log("事件侧重要素修改", formData); |
|
|
|
|
|
formData.eventId = this.eventId; |
|
|
formData.eventId = this.eventId; |
|
|
editEventImportant(formData).then((result) => { |
|
|
editEventImportant(formData).then((result) => { |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
@ -573,28 +814,123 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 获取事件状态 |
|
|
|
|
|
getImportantFileStatus() { |
|
|
|
|
|
importantFileStatus(this.eventId).then((res) => { |
|
|
|
|
|
this.type = res.data; |
|
|
|
|
|
console.log("事件状态", res.data); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 分页 |
|
|
|
|
|
getEventImportantFileList(type) { |
|
|
|
|
|
deventImportantFileList(this.eventId, type).then((res) => { |
|
|
|
|
|
if (res.length > 0) { |
|
|
|
|
|
this.formFileData = res[0]; |
|
|
|
|
|
if (type == "2") { |
|
|
|
|
|
this.renewedList = res; |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.handleInitData(type); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
// 重新生成数据 |
|
|
|
|
|
handleInitData(type) { |
|
|
|
|
|
let data = new FormData(); |
|
|
|
|
|
data.append("eventId", this.eventId); |
|
|
|
|
|
data.append("type", type); |
|
|
|
|
|
getEventImportantFile(data).then((res) => { |
|
|
|
|
|
this.formFileData = res.data; |
|
|
|
|
|
if (type == "2") { |
|
|
|
|
|
this.newType = 1; |
|
|
|
|
|
this.renewedList.push(res.data); |
|
|
|
|
|
this.pageNum = this.renewedList.length; |
|
|
|
|
|
console.log("this.renewedList", this.renewedList); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
// 切换分页 |
|
|
|
|
|
onCurrentChange(val) { |
|
|
|
|
|
console.log(`当前页: ${val}`); |
|
|
|
|
|
this.renewedList.forEach((item, index) => { |
|
|
|
|
|
if (val == index + 1) { |
|
|
|
|
|
this.formFileData = item; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
onSizeChange(pageSize) { |
|
|
|
|
|
console.log("pageSize", pageSize); |
|
|
|
|
|
}, |
|
|
|
|
|
// 预览 |
|
|
handlePreview() { |
|
|
handlePreview() { |
|
|
this.showDocx = true; |
|
|
this.showDocx = true; |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 下载 |
|
|
handleDownload() { |
|
|
handleDownload() { |
|
|
console.log("下载"); |
|
|
exportFile({ |
|
|
// 获取HTML内容 |
|
|
url: "/business/eventImportantFile/download", |
|
|
const fileContent = this.$refs.initFile.innerHTML; |
|
|
filename: this.type == 0 ? "初报" : this.type == 1 ? "续报" : "终报", |
|
|
// // 将HTML转换为DOCX |
|
|
data: this.formFileData, |
|
|
const doc = htmlDocx.asBlob(fileContent); |
|
|
ext: "docx", |
|
|
// // 下载生成的文档 |
|
|
}); |
|
|
FileSaver.saveAs(doc, "初报.docx"); |
|
|
}, |
|
|
|
|
|
// 保存 |
|
|
|
|
|
onFileSubmit() { |
|
|
|
|
|
let data = { |
|
|
|
|
|
...this.formFileData, |
|
|
|
|
|
status: 0, |
|
|
|
|
|
}; |
|
|
|
|
|
if (this.formFileData && this.formFileData.id) { |
|
|
|
|
|
editEventImportantFile(data).then((res) => {}); |
|
|
|
|
|
} else { |
|
|
|
|
|
addEventImportantFile(data).then((res) => {}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.activeName == "second") { |
|
|
|
|
|
this.getEventImportantFileList(1); |
|
|
|
|
|
} else if (this.activeName == "third") { |
|
|
|
|
|
this.getEventImportantFileList(2); |
|
|
|
|
|
} else if (this.activeName == "fourth") { |
|
|
|
|
|
this.getEventImportantFileList(3); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 保存并上报 |
|
|
|
|
|
onSubmitUpload() { |
|
|
|
|
|
let data = { |
|
|
|
|
|
...this.formFileData, |
|
|
|
|
|
status: 1, |
|
|
|
|
|
}; |
|
|
|
|
|
if (this.formFileData && this.formFileData.id) { |
|
|
|
|
|
editEventImportantFile(data).then((res) => {}); |
|
|
|
|
|
} else { |
|
|
|
|
|
addEventImportantFile(data).then((res) => {}); |
|
|
|
|
|
} |
|
|
|
|
|
this.getImportantFileStatus(); |
|
|
|
|
|
if (this.activeName == "second") { |
|
|
|
|
|
this.getEventImportantFileList(1); |
|
|
|
|
|
} else if (this.activeName == "third") { |
|
|
|
|
|
this.getEventImportantFileList(2); |
|
|
|
|
|
} else if (this.activeName == "fourth") { |
|
|
|
|
|
this.getEventImportantFileList(3); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
mounted() { |
|
|
this.initData(); |
|
|
this.initData(); |
|
|
this.getReportData(); |
|
|
this.getReportData(); |
|
|
|
|
|
this.getImportantFileStatus(); |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
|
|
|
::v-deep .el-input.is-disabled input.el-input__inner { |
|
|
|
|
|
color: #000 !important; |
|
|
|
|
|
background: none; |
|
|
|
|
|
} |
|
|
.EventDetail { |
|
|
.EventDetail { |
|
|
display: flex; |
|
|
display: flex; |
|
|
gap: 9px; |
|
|
gap: 9px; |
|
@ -604,13 +940,15 @@ export default { |
|
|
.title { |
|
|
.title { |
|
|
margin: 10px 0; |
|
|
margin: 10px 0; |
|
|
} |
|
|
} |
|
|
.footer { |
|
|
// .footer { |
|
|
display: flex; |
|
|
// display: flex; |
|
|
justify-content: end; |
|
|
// justify-content: end; |
|
|
gap: 15px; |
|
|
// gap: 15px; |
|
|
margin-top: 20px; |
|
|
// margin-top: 20px; |
|
|
margin-right: 20px; |
|
|
// margin-right: 20px; |
|
|
} |
|
|
// div { |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
} |
|
|
} |
|
|
.file { |
|
|
.file { |
|
|
// width: 80%; |
|
|
// width: 80%; |
|
@ -653,6 +991,7 @@ export default { |
|
|
border-image: initial; |
|
|
border-image: initial; |
|
|
background: #fff; |
|
|
background: #fff; |
|
|
color: #000; |
|
|
color: #000; |
|
|
|
|
|
padding: 0; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -687,7 +1026,11 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.file-content { |
|
|
.file-content { |
|
|
|
|
|
.file-content-title .el-input { |
|
|
|
|
|
width: 100% !important; |
|
|
|
|
|
} |
|
|
::v-deep .file-content-title .el-input__inner { |
|
|
::v-deep .file-content-title .el-input__inner { |
|
|
|
|
|
width: 100% !important; |
|
|
font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi; |
|
|
font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi; |
|
|
font-weight: 600; |
|
|
font-weight: 600; |
|
|
text-align: center; |
|
|
text-align: center; |
|
@ -744,14 +1087,21 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.footer { |
|
|
.footer { |
|
|
display: flex; |
|
|
|
|
|
width: 35%; |
|
|
|
|
|
margin: auto; |
|
|
|
|
|
margin-top: 30px; |
|
|
|
|
|
justify-content: space-around; |
|
|
|
|
|
// display: flex; |
|
|
// display: flex; |
|
|
// flex-flow: row-reverse; |
|
|
// max-width: 40%; |
|
|
|
|
|
// width: 18%; |
|
|
|
|
|
// margin: auto; |
|
|
|
|
|
// margin-top: 30px; |
|
|
|
|
|
// justify-content: space-around; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: end; |
|
|
|
|
|
gap: 15px; |
|
|
|
|
|
margin-top: 20px; |
|
|
|
|
|
margin-right: 20px; |
|
|
div { |
|
|
div { |
|
|
|
|
|
// width: 120px; |
|
|
|
|
|
// height: 30px; |
|
|
|
|
|
// line-height: 30px; |
|
|
margin-left: 20px; |
|
|
margin-left: 20px; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -759,6 +1109,11 @@ export default { |
|
|
overflow: auto; |
|
|
overflow: auto; |
|
|
position: relative; |
|
|
position: relative; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
::v-deep .el-tabs__item.is-disabled { |
|
|
|
|
|
color: #c0c4cc !important; |
|
|
|
|
|
cursor: default; |
|
|
|
|
|
} |
|
|
.docx-wrapper { |
|
|
.docx-wrapper { |
|
|
background: #fff; |
|
|
background: #fff; |
|
|
padding: 30px; |
|
|
padding: 30px; |
|
|