| | |
| | | <el-table ref="multipleTableRef" :data="applyData" style="width: 100%" height="calc(100% - 100px)" :header-cell-style="{ background: '#fafafa' }"> |
| | | <el-table-column property="workPermitNo" label="作业申请单号" width="180" /> |
| | | <el-table-column property="applyUname" label="申请人" /> |
| | | <el-table-column property="depName" label="部门名称" /> |
| | | <el-table-column property="operators" label="作业人" /> |
| | | <el-table-column property="operatorCompanys" label="施工单位" /> |
| | | <el-table-column property="operatorUnames" label="作业人" /> |
| | | <el-table-column property="workTypeDesc" label="作业类型" /> |
| | | <el-table-column property="workLevelDesc" label="作业等级" /> |
| | | <el-table-column property="applyTime" label="申请时间" width="180" /> |
| | |
| | | <el-button link type="text" @click="viewRecord(scope.row)">查看</el-button> |
| | | <el-button link type="text" @click="viewStatus(scope.row)">进度</el-button> |
| | | <el-button link type="text" @click="deleteRecordBtn(scope.row)">取消</el-button> |
| | | <el-button :disabled="scope.row.status == 7 ? false : true" link type="text" @click="downLoadRecord(scope.row)">导出作业票</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="dialogStatus" title="作业申请进度" width="60%"> |
| | | <el-form v-if="approveInfo.operators.length > 0" style="margin-bottom: 40px"> |
| | | <el-form-item label="申请作业人"> |
| | | <el-input v-model="approveInfo.operators" readonly type="textarea" /> |
| | | <el-form style="margin-bottom: 40px"> |
| | | <el-form-item label="作业人" v-if="approveInfo.operatorUnames"> |
| | | <el-input v-model="approveInfo.operatorUnames" readonly type="textarea" /> |
| | | </el-form-item> |
| | | <el-form-item label="作业人" v-else> |
| | | <el-input placeholder="无" readonly type="textarea" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div style="display: flex; flex-direction: column-reverse"> |
| | |
| | | ><span>{{ i.resultDesc }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="approveItem"> |
| | | <div class="approveItem" v-if="item.stepItems && item.stepItems.length>0"> |
| | | <div class="item-tit"> |
| | | <span>审批项目</span> |
| | | <!-- <span>类型</span>--> |
| | |
| | | <div class="item-cont" v-for="i in item.stepItems"> |
| | | <span>{{ i.itemName }}</span> |
| | | <!-- <span>{{ i.typeDesc }}</span>--> |
| | | <div v-if="i.measure !== null"> |
| | | <div v-if="i.measure"> |
| | | <div> |
| | | <span>作业类型:</span><span>{{ i.measure.workTypeDesc }}</span> |
| | | </div> |
| | |
| | | <span>措施内容:</span><span>{{ i.measure.context }}</span> |
| | | </div> |
| | | </div> |
| | | <div v-if="i.stand !== null"> |
| | | <div v-if="i.stand"> |
| | | <div> |
| | | <span>标题名称:</span><span>{{ i.stand.title }}</span> |
| | | </div> |
| | |
| | | import power from './components/powerLog' |
| | | import plate from './components/plateLog' |
| | | import {workApplyApi} from "../../../../api/workApply"; |
| | | import Cookies from 'js-cookie'; |
| | | import axios from 'axios'; |
| | | export default{ |
| | | name: 'myApply', |
| | | components: { |
| | |
| | | this.getListByPage(); |
| | | }, |
| | | |
| | | // 导出方法 |
| | | downLoadRecord(row) { |
| | | if(row.status == 7){ |
| | | axios.post(process.env.BASE_API + `/work/apply/printing`,{applyWorkId: row.workApplyId},{headers:{'Content-Type': 'application/json','Authorization': `${Cookies.get('token')}`},responseType: 'blob'}).then(res=>{ |
| | | if (res) { |
| | | const link = document.createElement('a') |
| | | let blob = new Blob([res.data],{type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'}) |
| | | link.style.display = "none"; |
| | | link.href = URL.createObjectURL(blob); // 创建URL |
| | | link.setAttribute("download", row.workTypeDesc + row.workPermitNo + "作业证.docx"); |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | } else { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | }); |
| | | } |
| | | }) |
| | | }else{ |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '该作业申请未完成审批流程,不可导出' |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | // 填写表单 |
| | | toApply() { |
| | | this.$router.push({ |
| | |
| | | let res = await workApplyApi().getStatus(data); |
| | | if (res.data.code === '200') { |
| | | this.approveInfo = JSON.parse(JSON.stringify(res.data.data)); |
| | | this.approveInfo.operators = this.approveInfo.operators.map(item => { |
| | | return item.operatorUname |
| | | }).join('、') |
| | | // this.approveInfo.operators = this.approveInfo.operators.map(item => { |
| | | // return item.operatorUname |
| | | // }).join('、') |
| | | } else { |
| | | this.$message({ |
| | | type: 'warning', |
| | |
| | | this.dialogType = row.workType |
| | | this.details = JSON.parse(JSON.stringify(row)); |
| | | this.details.operators = this.details.operators.join('、') |
| | | if(this.details.workDetail.otherSpecialWork == '' || !this.details.workDetail.otherSpecialWork){ |
| | | if(!this.details.workDetail.otherSpecialWork || this.details.workDetail.otherSpecialWork == ''){ |
| | | this.details.workDetail.otherSpecialWork = '' |
| | | } |
| | | else { |