动土作业迁移
parent
6e32a94026
commit
05c8055754
|
@ -8,7 +8,7 @@
|
||||||
<td colspan="6" style="border: none">
|
<td colspan="6" style="border: none">
|
||||||
<div class="level-title mt-20">
|
<div class="level-title mt-20">
|
||||||
<h1>动土安全作业票</h1>
|
<h1>动土安全作业票</h1>
|
||||||
<div class="level-btns">编号:{{ pd.CHECK_NO }}</div>
|
<div class="level-code">编号:{{ pd.CHECK_NO }}</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
<td>{{ index + 1 }}</td>
|
<td>{{ index + 1 }}</td>
|
||||||
<td>{{ item.PROTECTIVE_MEASURES }}</td>
|
<td>{{ item.PROTECTIVE_MEASURES }}</td>
|
||||||
<td>
|
<td>
|
||||||
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
||||||
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -125,10 +125,10 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bbg">接受交底人</td>
|
<td class="bbg">接受交底人</td>
|
||||||
<td colspan="10">
|
<td colspan="10">
|
||||||
<div v-if="pd.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
|
<div v-for="item in imgList" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<span>签字:</span>
|
<span>签字:</span>
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<span>{{ pd.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
<span>{{ item.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -172,13 +172,13 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="pd.ACCEPT_USER_SIGNER_PATH">
|
<tr v-if="imgList1.length>0">
|
||||||
<td colspan="6">
|
<td colspan="10">
|
||||||
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
||||||
<div style="text-align: right">
|
<div v-for="item in imgList1" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<span>签字:</span>
|
<span>签字:</span>
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<span>{{ pd.ACCEPT_USER_SIGNER_TIME }}</span>
|
<span>{{ item.ACCEPT_USER_SIGNER_TIME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -201,6 +201,8 @@ export default {
|
||||||
BREAKGROUND_ID: this.$parent.BREAKGROUND_ID, // 主键ID
|
BREAKGROUND_ID: this.$parent.BREAKGROUND_ID, // 主键ID
|
||||||
pd: [], // 存放字段参数
|
pd: [], // 存放字段参数
|
||||||
measuresList: [],
|
measuresList: [],
|
||||||
|
imgList: [],
|
||||||
|
imgList1: [],
|
||||||
otherProtectiveMeasures: [],
|
otherProtectiveMeasures: [],
|
||||||
hazardIdentification: []
|
hazardIdentification: []
|
||||||
}
|
}
|
||||||
|
@ -240,6 +242,8 @@ export default {
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
this.pd = data.pd // 参数map
|
this.pd = data.pd // 参数map
|
||||||
|
this.imgList = data.imgList
|
||||||
|
this.imgList1 = data.imgList1
|
||||||
this.measuresList = data.measuresList // 参数map
|
this.measuresList = data.measuresList // 参数map
|
||||||
this.pd.APPLY_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
this.pd.APPLY_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
||||||
this.pd.CONSTRUCTION_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
this.pd.CONSTRUCTION_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
||||||
|
@ -272,6 +276,4 @@ export default {
|
||||||
img
|
img
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 100%
|
height: 100%
|
||||||
.app-container
|
|
||||||
margin-bottom: 50px
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -129,18 +129,52 @@
|
||||||
<div>{{ pd.ACCEPT_USER_SIGNER_TIME }}</div>
|
<div>{{ pd.ACCEPT_USER_SIGNER_TIME }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-step>
|
</el-step>
|
||||||
<div slot="footer" class="dialog-footer">
|
|
||||||
<!-- <el-button @click="dialogFormShow = false">取 消</el-button>-->
|
</el-steps>
|
||||||
<el-button type="primary" @click="dialogFormShow = false">确 定</el-button>
|
<div style="margin: 60px 60px 0 60px;display: flex;justify-content: space-between">
|
||||||
|
<div v-if="pd.GUARDIAN_USER_SIGNER_TIME">
|
||||||
|
<div style="color: #13ce66">
|
||||||
|
监护人:{{ pd.GUARDIAN_USER_NAME }}已签字
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-steps></el-dialog>
|
<div v-if="!pd.GUARDIAN_USER_SIGNER_TIME">
|
||||||
|
<div style="color: red">
|
||||||
|
监护人:{{ pd.GUARDIAN_USER_NAME }}未签字
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="pd.CONFESS_USER_SIGNER_TIME">
|
||||||
|
<div style="color: #13ce66">
|
||||||
|
安全交底人:{{ pd.CONFESS_USER_NAME }}已签字
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="!pd.CONFESS_USER_SIGNER_TIME">
|
||||||
|
<div style="color: red">
|
||||||
|
安全交底人:{{ pd.CONFESS_USER_NAME }}未签字
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="pd.ACCEPT_CONFESS_USER_SIGNER_TIME">
|
||||||
|
<div style="color: #13ce66">
|
||||||
|
接受交底人:{{ pd.ACCEPT_CONFESS_USER_NAME }}已签字
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="!pd.ACCEPT_CONFESS_USER_SIGNER_TIME">
|
||||||
|
<div style="color: red">
|
||||||
|
接受交底人:{{ pd.ACCEPT_CONFESS_USER_NAME }}未签字
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<!-- <el-button @click="dialogFormShow = false">取 消</el-button>-->
|
||||||
|
<el-button type="primary" @click="dialogFormShow = false">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||||
import { requestFN } from '@/utils/request'
|
import { requestFN } from '@/utils/request'
|
||||||
import waves from '@/directive/waves'
|
import waves from '@/directive/waves'
|
||||||
import Teacher from '../../../archives/corp/components/teacher.vue'
|
import Teacher from '../../../archives/corp/components/teacher' // waves directive
|
||||||
export default {
|
export default {
|
||||||
components: { Teacher, Pagination },
|
components: { Teacher, Pagination },
|
||||||
directives: { waves },
|
directives: { waves },
|
||||||
|
@ -152,7 +186,7 @@ export default {
|
||||||
edit: false,
|
edit: false,
|
||||||
listQuery: {
|
listQuery: {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 20
|
limit: 10
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
KEYWORDS: '',
|
KEYWORDS: '',
|
||||||
|
@ -167,7 +201,7 @@ export default {
|
||||||
replyVarList: [], // REPLY
|
replyVarList: [], // REPLY
|
||||||
replyListQuery: {
|
replyListQuery: {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 20
|
limit: 10
|
||||||
},
|
},
|
||||||
replyTotal: 0,
|
replyTotal: 0,
|
||||||
dialogFormHuifuShow: false,
|
dialogFormHuifuShow: false,
|
||||||
|
|
|
@ -2,203 +2,194 @@
|
||||||
<div>
|
<div>
|
||||||
<div id="printTest" class="app-container print-work">
|
<div id="printTest" class="app-container print-work">
|
||||||
<el-page-header content="审批表详情" class="no-print" @back="goBack"/>
|
<el-page-header content="审批表详情" class="no-print" @back="goBack"/>
|
||||||
<table class="table-ui">
|
<div v-for="pdf in 2" :key="pdf" :name="pdf === 2 ? 'pdf-box' : ''" class="pdf-content">
|
||||||
<thead>
|
<table :class="['table-ui','table-ui' + pdf]">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="6" style="border: none">
|
<td colspan="6" style="border: none">
|
||||||
<div class="level-title mt-20">
|
<div class="level-title mt-20">
|
||||||
<h1>动土安全作业票</h1>
|
<h1>动土安全作业票</h1>
|
||||||
<div class="level-btns">编号:{{ pd.CHECK_NO }}</div>
|
<div class="level-code">编号:{{ pd.CHECK_NO }}</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
<tr>
|
||||||
<tr>
|
<td class="bbg">申请单位</td>
|
||||||
<td class="bbg">申请单位</td>
|
<td>{{ pd.APPLY_DEPARTMENT_NAME }}</td>
|
||||||
<td>{{ pd.APPLY_DEPARTMENT_NAME }}</td>
|
<td class="bbg" colspan="2">作业申请时间</td>
|
||||||
<td class="bbg" colspan="2">作业申请时间</td>
|
<td colspan="2">{{ pd.CREATTIME }}</td>
|
||||||
<td colspan="2">{{ pd.CREATTIME }}</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td class="bbg">作业单位</td>
|
||||||
<td class="bbg">作业单位</td>
|
<td>{{ pd.CONSTRUCTION_DEPARTMENT_NAME }}</td>
|
||||||
<td>{{ pd.CONSTRUCTION_DEPARTMENT_NAME }}</td>
|
<td class="bbg">作业地点</td>
|
||||||
<td class="bbg">作业地点</td>
|
<td>{{ pd.WORK_PLACE }}</td>
|
||||||
<td>{{ pd.WORK_PLACE }}</td>
|
<td class="bbg">作业内容</td>
|
||||||
<td class="bbg">作业内容</td>
|
<td>{{ pd.JOB_CONTENT }}</td>
|
||||||
<td>{{ pd.JOB_CONTENT }}</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td class="bbg">监护人</td>
|
||||||
<td class="bbg">监护人</td>
|
<td>
|
||||||
<td>
|
<div v-if="pd.GUARDIAN_USER_SIGNER_PATH" style="text-align: right">
|
||||||
<div v-if="pd.GUARDIAN_USER_SIGNER_PATH" style="text-align: right">
|
<span>签字:</span>
|
||||||
<span>签字:</span>
|
<img v-viewer :src="config.fileUrl + pd.GUARDIAN_USER_SIGNER_PATH" alt="" width="30" height="30">
|
||||||
<img v-viewer :src="config.fileUrl + pd.GUARDIAN_USER_SIGNER_PATH" alt="" width="30" height="30">
|
<span>{{ pd.GUARDIAN_USER_SIGNER_TIME }}</span>
|
||||||
<span>{{ pd.GUARDIAN_USER_SIGNER_TIME }}</span>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td class="bbg" colspan="2">作业负责人</td>
|
|
||||||
<td colspan="2">{{ pd.CONSTRUCTION_USER_NAME }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="bbg">关联的其他特殊作业及安全作业票编号</td>
|
|
||||||
<td colspan="5">{{ pd.SPECIAL_WORK }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="6">
|
|
||||||
<div>作业内容、范围、方式(包括深度、面积,并附简图):{{ pd.WORK_CONTENT }}</div>
|
|
||||||
<div style="display: flex;justify-content: space-between;margin-top: 20px;">
|
|
||||||
<img v-viewer :src="config.fileUrl + pd.CONTENT_IMG_PATH" alt="" width="100" height="100">
|
|
||||||
<div>
|
|
||||||
编制人:
|
|
||||||
<img v-viewer :src="config.fileUrl + pd.APPLY_USER_SIGNER_PATH" alt="" width="100" height="100">
|
|
||||||
{{ pd.APPLY_USER_SIGNER_TIME }}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
<td class="bbg" colspan="2">作业负责人</td>
|
||||||
</tr>
|
<td colspan="2">{{ pd.CONSTRUCTION_USER_NAME }}</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td class="bbg">风险辨识结果</td>
|
<tr>
|
||||||
<td colspan="5">{{ pd.HAZARD_IDENTIFICATION.split(";_;")[0] }}</td>
|
<td class="bbg">关联的其他特殊作业及安全作业票编号</td>
|
||||||
</tr>
|
<td colspan="5">{{ pd.SPECIAL_WORK }}</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td class="bbg">作业实施时间</td>
|
<tr>
|
||||||
<td colspan="5">{{ pd.WORK_START_DATE }}至{{ pd.WORK_END_DATE }}止</td>
|
<td colspan="6">
|
||||||
</tr>
|
<div>作业内容、范围、方式(包括深度、面积,并附简图):{{ pd.WORK_CONTENT }}</div>
|
||||||
<tr>
|
<div style="display: flex;justify-content: space-between;margin-top: 20px;">
|
||||||
<td colspan="6">
|
<img v-viewer :src="config.fileUrl + pd.CONTENT_IMG_PATH" alt="" width="100" height="100">
|
||||||
<table class="table-ui">
|
<div>
|
||||||
<tr>
|
编制人:
|
||||||
<td>序号</td>
|
<img v-viewer :src="config.fileUrl + pd.APPLY_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<td>安全措施</td>
|
{{ pd.APPLY_USER_SIGNER_TIME }}
|
||||||
<td>是否涉及</td>
|
</div>
|
||||||
<td>确认人</td>
|
</div>
|
||||||
</tr>
|
</td>
|
||||||
<tr v-for="(item,index) in measuresList" :key="index">
|
</tr>
|
||||||
<td>{{ index + 1 }}</td>
|
<tr>
|
||||||
<td>{{ item.PROTECTIVE_MEASURES }}</td>
|
<td class="bbg">风险辨识结果</td>
|
||||||
<td>
|
<td colspan="5">{{ pd.HAZARD_IDENTIFICATION.split(";_;")[0] }}</td>
|
||||||
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
</tr>
|
||||||
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
<tr>
|
||||||
</td>
|
<td class="bbg">作业实施时间</td>
|
||||||
<td>
|
<td colspan="5">{{ pd.WORK_START_DATE }}至{{ pd.WORK_END_DATE }}止</td>
|
||||||
{{ item.CONFIRM_NAME }}
|
</tr>
|
||||||
</td>
|
<tr>
|
||||||
</tr>
|
<td colspan="6">
|
||||||
<tr
|
<table class="table-ui">
|
||||||
v-if="pd.APPLY_USER_MEASURES || pd.CONSTRUCTION_USER_MEASURES || pd.PRODUCTION_USER_MEASURES || pd.SAFETY_USER_MEASURES || pd.LEADER_USER_MEASURES">
|
<tr>
|
||||||
<td>{{ measuresList.length + 1 }}</td>
|
<td>序号</td>
|
||||||
<td colspan="3">
|
<td>安全措施</td>
|
||||||
<div v-if="pd.APPLY_USER_MEASURES" style="display: flex;justify-content: space-between;">
|
<td>是否涉及</td>
|
||||||
<span>其他安全措施:{{ pd.APPLY_USER_MEASURES }}</span>
|
<td>确认人</td>
|
||||||
<span>编制人:{{ pd.APPLY_USER_NAME }}</span>
|
</tr>
|
||||||
</div>
|
<tr v-for="(item,index) in measuresList" :key="index">
|
||||||
<div
|
<td>{{ index + 1 }}</td>
|
||||||
v-if="pd.CONSTRUCTION_USER_MEASURES"
|
<td>{{ item.PROTECTIVE_MEASURES }}</td>
|
||||||
style="display: flex;justify-content: space-between;margin-top: 10px;">
|
<td>
|
||||||
<span>其他安全措施:{{ pd.CONSTRUCTION_USER_MEASURES }}</span>
|
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
||||||
<span>编制人:{{ pd.CONSTRUCTION_USER_NAME }}</span>
|
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
||||||
</div>
|
</td>
|
||||||
<div
|
<td>
|
||||||
v-if="pd.PRODUCTION_USER_ID && pd.PRODUCTION_USER_MEASURES"
|
{{ item.CONFIRM_NAME }}
|
||||||
style="display: flex;justify-content: space-between;margin-top: 10px;">
|
</td>
|
||||||
<span>其他安全措施:{{ pd.PRODUCTION_USER_MEASURES }}</span>
|
</tr>
|
||||||
<span>编制人:{{ pd.PRODUCTION_USER_NAME }}</span>
|
<tr v-if="pd.APPLY_USER_MEASURES || pd.CONSTRUCTION_USER_MEASURES || pd.PRODUCTION_USER_MEASURES || pd.SAFETY_USER_MEASURES || pd.LEADER_USER_MEASURES">
|
||||||
</div>
|
<td>{{ measuresList.length + 1 }}</td>
|
||||||
<div
|
<td colspan="3">
|
||||||
v-if="pd.SAFETY_USER_ID && pd.SAFETY_USER_MEASURES"
|
<div v-if="pd.APPLY_USER_MEASURES" style="display: flex;justify-content: space-between;">
|
||||||
style="display: flex;justify-content: space-between;margin-top: 10px;">
|
<span>其他安全措施:{{ pd.APPLY_USER_MEASURES }}</span>
|
||||||
<span>其他安全措施:{{ pd.SAFETY_USER_MEASURES }}</span>
|
<span>编制人:{{ pd.APPLY_USER_NAME }}</span>
|
||||||
<span>编制人:{{ pd.SAFETY_USER_NAME }}</span>
|
</div>
|
||||||
</div>
|
<div v-if="pd.CONSTRUCTION_USER_MEASURES" style="display: flex;justify-content: space-between;margin-top: 10px;">
|
||||||
<div
|
<span>其他安全措施:{{ pd.CONSTRUCTION_USER_MEASURES }}</span>
|
||||||
v-if="pd.LEADER_USER_ID && pd.LEADER_USER_MEASURES"
|
<span>编制人:{{ pd.CONSTRUCTION_USER_NAME }}</span>
|
||||||
style="display: flex;justify-content: space-between;margin-top: 10px;">
|
</div>
|
||||||
<span>其他安全措施:{{ pd.LEADER_USER_MEASURES }}</span>
|
<div v-if="pd.PRODUCTION_USER_ID && pd.PRODUCTION_USER_MEASURES" style="display: flex;justify-content: space-between;margin-top: 10px;">
|
||||||
<span>编制人:{{ pd.LEADER_USER_NAME }}</span>
|
<span>其他安全措施:{{ pd.PRODUCTION_USER_MEASURES }}</span>
|
||||||
</div>
|
<span>编制人:{{ pd.PRODUCTION_USER_NAME }}</span>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
<div v-if="pd.SAFETY_USER_ID && pd.SAFETY_USER_MEASURES" style="display: flex;justify-content: space-between;margin-top: 10px;">
|
||||||
</table>
|
<span>其他安全措施:{{ pd.SAFETY_USER_MEASURES }}</span>
|
||||||
</td>
|
<span>编制人:{{ pd.SAFETY_USER_NAME }}</span>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div v-if="pd.LEADER_USER_ID && pd.LEADER_USER_MEASURES" style="display: flex;justify-content: space-between;margin-top: 10px;">
|
||||||
<td class="bbg">安全交底人</td>
|
<span>其他安全措施:{{ pd.LEADER_USER_MEASURES }}</span>
|
||||||
<td colspan="10">
|
<span>编制人:{{ pd.LEADER_USER_NAME }}</span>
|
||||||
<div v-if="pd.CONFESS_USER_SIGNER_PATH" style="text-align: right">
|
</div>
|
||||||
<span>签字:</span>
|
</td>
|
||||||
<img v-viewer :src="config.fileUrl + pd.CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
</tr>
|
||||||
<span>{{ pd.CONFESS_USER_SIGNER_TIME }}</span>
|
</table>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td class="bbg">安全交底人</td>
|
||||||
<td class="bbg">接受交底人</td>
|
<td colspan="10">
|
||||||
<td colspan="10">
|
<div v-if="pd.CONFESS_USER_SIGNER_PATH" style="text-align: right">
|
||||||
<div v-if="pd.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
|
<span>签字:</span>
|
||||||
<span>签字:</span>
|
<img v-viewer :src="config.fileUrl + pd.CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<span>{{ pd.CONFESS_USER_SIGNER_TIME }}</span>
|
||||||
<span>{{ pd.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td class="bbg">接受交底人</td>
|
||||||
<td colspan="6">
|
<td colspan="10">
|
||||||
<div>作业负责人意见:{{ pd.CONSTRUCTION_CONTENT }}</div>
|
<div v-for="item in imgList" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
<div style="text-align: right">
|
<span>签字:</span>
|
||||||
<span>签字:</span>
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<img v-viewer :src="config.fileUrl + pd.CONSTRUCTION_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<span>{{ item.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
||||||
<span>{{ pd.CONSTRUCTION_USER_SIGNER_TIME }}</span>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr v-if="pd.PRODUCTION_USER_ID">
|
<td colspan="6">
|
||||||
<td colspan="6">
|
<div>作业负责人意见:{{ pd.CONSTRUCTION_CONTENT }}</div>
|
||||||
<div>所在单位意见:{{ pd.PRODUCTION_CONTENT }}</div>
|
<div style="text-align: right">
|
||||||
<div style="text-align: right">
|
<span>签字:</span>
|
||||||
<span>签字:</span>
|
<img v-viewer :src="config.fileUrl + pd.CONSTRUCTION_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<img v-viewer :src="config.fileUrl + pd.PRODUCTION_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<span>{{ pd.CONSTRUCTION_USER_SIGNER_TIME }}</span>
|
||||||
<span>{{ pd.PRODUCTION_USER_SIGNER_TIME }}</span>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr v-if="pd.PRODUCTION_USER_ID">
|
||||||
<tr v-if="pd.SAFETY_USER_ID">
|
<td colspan="6">
|
||||||
<td colspan="6">
|
<div>所在单位意见:{{ pd.PRODUCTION_CONTENT }}</div>
|
||||||
<div>有关水、电、汽、工艺、设备、消防、安全等部门会签意见:{{ pd.SAFETY_CONTENT }}</div>
|
<div style="text-align: right">
|
||||||
<div style="text-align: right">
|
<span>签字:</span>
|
||||||
<span>签字:</span>
|
<img v-viewer :src="config.fileUrl + pd.PRODUCTION_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<img v-viewer :src="config.fileUrl + pd.SAFETY_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<span>{{ pd.PRODUCTION_USER_SIGNER_TIME }}</span>
|
||||||
<span>{{ pd.SAFETY_USER_SIGNER_TIME }}</span>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr v-if="pd.SAFETY_USER_ID">
|
||||||
<tr v-if="pd.LEADER_USER_ID">
|
<td colspan="6">
|
||||||
<td colspan="6">
|
<div>有关水、电、汽、工艺、设备、消防、安全等部门会签意见:{{ pd.SAFETY_CONTENT }}</div>
|
||||||
<div>审批部门意见:{{ pd.LEADER_CONTENT }}</div>
|
<div style="text-align: right">
|
||||||
<div style="text-align: right">
|
<span>签字:</span>
|
||||||
<span>签字:</span>
|
<img v-viewer :src="config.fileUrl + pd.SAFETY_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<img v-viewer :src="config.fileUrl + pd.LEADER_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<span>{{ pd.SAFETY_USER_SIGNER_TIME }}</span>
|
||||||
<span>{{ pd.LEADER_USER_SIGNER_TIME }}</span>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr v-if="pd.LEADER_USER_ID">
|
||||||
<tr>
|
<td colspan="6">
|
||||||
<td colspan="6">
|
<div>审批部门意见:{{ pd.LEADER_CONTENT }}</div>
|
||||||
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
<div style="text-align: right">
|
||||||
<div style="text-align: right">
|
<span>签字:</span>
|
||||||
<span>签字:</span>
|
<img v-viewer :src="config.fileUrl + pd.LEADER_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
<img v-viewer :src="config.fileUrl + pd.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
<span>{{ pd.LEADER_USER_SIGNER_TIME }}</span>
|
||||||
<span>{{ pd.ACCEPT_USER_SIGNER_TIME }}</span>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr v-if="imgList1.length>0">
|
||||||
</tbody>
|
<td colspan="10">
|
||||||
</table>
|
<div>完工验收:{{ pd.ACCEPT_CONTENT }}</div>
|
||||||
|
<div v-for="item in imgList1" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||||
|
<span>签字:</span>
|
||||||
|
<img v-viewer :src="config.fileUrl + item.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||||
|
<span>{{ item.ACCEPT_USER_SIGNER_TIME }}</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding-top: 100px"/>
|
|
||||||
<!-- <div class="ui-height" />-->
|
<!-- <div class="ui-height" />-->
|
||||||
<div class="ui-foot">
|
<div class="ui-foot">
|
||||||
<el-button v-print="'#printTest'" icon="el-icon-printer" type="primary">打 印</el-button>
|
<!-- <el-button v-print="'#printTest'" icon="el-icon-printer" type="primary">打 印</el-button>-->
|
||||||
|
<el-button type="primary" icon="el-icon-printer" @click="handle2PDF">PDF导出</el-button>
|
||||||
<el-button icon="el-icon-arrow-left" @click="goBack">返 回</el-button>
|
<el-button icon="el-icon-arrow-left" @click="goBack">返 回</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -207,7 +198,8 @@
|
||||||
<script>
|
<script>
|
||||||
import { requestFN } from '@/utils/request'
|
import { requestFN } from '@/utils/request'
|
||||||
import dateformat from '@/utils/dateformat'
|
import dateformat from '@/utils/dateformat'
|
||||||
|
import JsPDF from 'jspdf'
|
||||||
|
import html2Canvas from 'html2canvas'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -215,6 +207,8 @@ export default {
|
||||||
BREAKGROUND_ID: this.$parent.BREAKGROUND_ID, // 主键ID
|
BREAKGROUND_ID: this.$parent.BREAKGROUND_ID, // 主键ID
|
||||||
pd: [], // 存放字段参数
|
pd: [], // 存放字段参数
|
||||||
measuresList: [],
|
measuresList: [],
|
||||||
|
imgList: [],
|
||||||
|
imgList1: [],
|
||||||
otherProtectiveMeasures: [],
|
otherProtectiveMeasures: [],
|
||||||
hazardIdentification: []
|
hazardIdentification: []
|
||||||
}
|
}
|
||||||
|
@ -223,10 +217,87 @@ export default {
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
validStr(str) {
|
handle2PDF() {
|
||||||
if (str != null && str != '' && typeof (str) != 'undefined' && str != 0) {
|
const loading = this.$loading({
|
||||||
return true
|
lock: true,
|
||||||
|
text: '正在生成,请稍候...',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
|
const elements = document.querySelectorAll('div[name="pdf-box"]')
|
||||||
|
console.log(elements)
|
||||||
|
this.html2pdf(this.pd.CHECK_NO + '审批表详情', elements, loading)
|
||||||
|
},
|
||||||
|
|
||||||
|
html2pdf(filename, els, loading) {
|
||||||
|
const flagArr = []
|
||||||
|
for (let i = 0, len = els.length; i < len; i++) {
|
||||||
|
flagArr.push(0)
|
||||||
}
|
}
|
||||||
|
console.log(flagArr)
|
||||||
|
runself(0)
|
||||||
|
const pdf = new JsPDF('', 'pt', 'a4') // A4纸,纵向
|
||||||
|
function runself(index) {
|
||||||
|
const html = els[index]
|
||||||
|
html2Canvas(html, {
|
||||||
|
allowTaint: true,
|
||||||
|
taintTest: false,
|
||||||
|
logging: false,
|
||||||
|
useCORS: true,
|
||||||
|
scale: 2 // 按比例增加分辨率
|
||||||
|
}).then(canvas => {
|
||||||
|
// eslint-disable-next-line one-var
|
||||||
|
var ctx = canvas.getContext('2d'),
|
||||||
|
a4w = 532.28, a4h = 781.89, // A4大小,210mm x 297mm,四边各保留10mm的边距,显示区域190x277 pt:592.28 * 841.89
|
||||||
|
renderedHeight = 0
|
||||||
|
const allTrs = html.querySelectorAll('tr')
|
||||||
|
while (renderedHeight < canvas.height) {
|
||||||
|
let imgHeight = Math.floor(a4h * canvas.width / a4w) // 按A4显示比例换算一页图像的像素高度
|
||||||
|
for (let i = 0; i < allTrs.length; i++) {
|
||||||
|
const tr = allTrs[i]
|
||||||
|
const trHeight = tr.offsetHeight + tr.offsetTop
|
||||||
|
console.log('offsetHeight:' + tr.offsetHeight + 'offsetTop:' + tr.offsetTop + 'offsetParent:' + tr.offsetParent.offsetTop)
|
||||||
|
if (trHeight * 2 > (imgHeight + renderedHeight)) {
|
||||||
|
const btr = allTrs[i - 1]
|
||||||
|
const btrHeight = btr.offsetHeight + btr.offsetTop
|
||||||
|
console.log('i:' + (i - 1) + 'btrHeight:' + btrHeight)
|
||||||
|
imgHeight = btrHeight * 2 - renderedHeight
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var page = document.createElement('canvas')
|
||||||
|
page.width = canvas.width
|
||||||
|
page.height = Math.min(imgHeight, canvas.height - renderedHeight)// 可能内容不足一页
|
||||||
|
|
||||||
|
// 用getImageData剪裁指定区域,并画到前面创建的canvas对象中
|
||||||
|
page.getContext('2d').putImageData(ctx.getImageData(0, renderedHeight, canvas.width, Math.min(imgHeight, canvas.height - renderedHeight)), 0, 0)
|
||||||
|
pdf.addImage(page.toDataURL('image/jpeg', 1.0), 'JPEG', 30, 30, a4w, Math.min(a4h, a4w * page.height / page.width)) // 添加图像到页面,保留10mm边距
|
||||||
|
|
||||||
|
renderedHeight += imgHeight
|
||||||
|
if (renderedHeight < canvas.height) {
|
||||||
|
pdf.addPage()// 如果后面还有内容,添加一个空页
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (index < els.length - 1) {
|
||||||
|
pdf.addPage()
|
||||||
|
}
|
||||||
|
return 1
|
||||||
|
}).then(item => {
|
||||||
|
flagArr[index] = item
|
||||||
|
if (flagArr.every(f => f === 1)) {
|
||||||
|
pdf.save(filename)
|
||||||
|
}
|
||||||
|
index++
|
||||||
|
if (index < els.length) {
|
||||||
|
runself(index)
|
||||||
|
} else {
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
validStr(str) {
|
||||||
|
if (str != null && str != '' && typeof (str) != 'undefined' && str != 0) { return true }
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
formatTime(date, column) {
|
formatTime(date, column) {
|
||||||
|
@ -256,6 +327,8 @@ export default {
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
this.pd = data.pd // 参数map
|
this.pd = data.pd // 参数map
|
||||||
|
this.imgList = data.imgList
|
||||||
|
this.imgList1 = data.imgList1
|
||||||
this.measuresList = data.measuresList // 参数map
|
this.measuresList = data.measuresList // 参数map
|
||||||
this.pd.APPLY_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
this.pd.APPLY_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
||||||
this.pd.CONSTRUCTION_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
this.pd.CONSTRUCTION_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
||||||
|
@ -275,18 +348,40 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.print-approval-p10
|
.print-approval-p10
|
||||||
padding: 20px 0
|
padding: 20px 0
|
||||||
|
span
|
||||||
|
vertical-align: middle
|
||||||
|
|
||||||
span
|
.print-approval-img
|
||||||
vertical-align: middle
|
width: 200px
|
||||||
|
height: 97px
|
||||||
.print-approval-img
|
display: inline-block
|
||||||
width: 200px
|
img
|
||||||
height: 97px
|
width: 100%
|
||||||
display: inline-block
|
height: 100%
|
||||||
|
</style>
|
||||||
img
|
<style scoped lang="scss">
|
||||||
width: 100%
|
.table-ui td{
|
||||||
height: 100%
|
line-height: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pdf-content[name=pdf-box]{
|
||||||
|
position: absolute;
|
||||||
|
left: -999999px;
|
||||||
|
.level-title {
|
||||||
|
h1{
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.level-code{
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
td{
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.bbg {
|
||||||
|
width: 180px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -90,7 +90,7 @@ export default {
|
||||||
edit: false,
|
edit: false,
|
||||||
listQuery: {
|
listQuery: {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 20
|
limit: 10
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
KEYWORDS: '',
|
KEYWORDS: '',
|
||||||
|
@ -105,7 +105,7 @@ export default {
|
||||||
replyVarList: [], // REPLY
|
replyVarList: [], // REPLY
|
||||||
replyListQuery: {
|
replyListQuery: {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 20
|
limit: 10
|
||||||
},
|
},
|
||||||
replyTotal: 0,
|
replyTotal: 0,
|
||||||
dialogFormHuifuShow: false,
|
dialogFormHuifuShow: false,
|
||||||
|
|
Loading…
Reference in New Issue