|
@@ -6,21 +6,16 @@
|
|
:visible.sync="visible"
|
|
:visible.sync="visible"
|
|
:append-to-body="true">
|
|
:append-to-body="true">
|
|
<el-form :model="taskForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="" label-width="80px">
|
|
<el-form :model="taskForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="" label-width="80px">
|
|
- <el-form-item :label="$t('申请开票')">
|
|
|
|
|
|
+ <el-form-item :label=" xpxp == 12 ? '预约续票' : '预约新票' ">
|
|
<el-table :data="devList" :span-method="mergeMethod" border style="width: 100%;">
|
|
<el-table :data="devList" :span-method="mergeMethod" border style="width: 100%;">
|
|
<el-table-column label="作业单位" align="center" prop="workUnit" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="作业单位" align="center" prop="workUnit" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="作业区域单元" align="center" prop="workArea" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="作业区域单元" align="center" prop="workArea" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="楼层位置" align="center" prop="floorLocation" :formatter="floorLocationFormat"/>
|
|
<el-table-column label="楼层位置" align="center" prop="floorLocation" :formatter="floorLocationFormat"/>
|
|
- <el-table-column label=" 作业开始时间" align="center" prop="workStartTime" width="100">
|
|
|
|
|
|
+ <el-table-column label=" 作业日期" align="center" prop="workStartTime" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.workStartTime, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.workStartTime, '{y}-{m}-{d}') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="作业结束时间" align="center" prop="workEndTime" width="100">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span>{{ parseTime(scope.row.workEndTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
<el-table-column label="作业类型" align="center" prop="workType" :formatter="workTypeFormat"
|
|
<el-table-column label="作业类型" align="center" prop="workType" :formatter="workTypeFormat"
|
|
:show-overflow-tooltip="true"/>
|
|
:show-overflow-tooltip="true"/>
|
|
<el-table-column label="风险等级" align="center" prop="riskLevel" :formatter="riskLevelFormat"/>
|
|
<el-table-column label="风险等级" align="center" prop="riskLevel" :formatter="riskLevelFormat"/>
|
|
@@ -30,6 +25,15 @@
|
|
<el-table-column label="联系人" align="center" prop="contact" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="联系人" align="center" prop="contact" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="联系方式" align="center" prop="phonenumber" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="联系方式" align="center" prop="phonenumber" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="状态" align="center" prop="status" width="100" :formatter="statusFormat"/>
|
|
<el-table-column label="状态" align="center" prop="status" width="100" :formatter="statusFormat"/>
|
|
|
|
+ <el-table-column label="危害工作许可证号" align="center" prop="whgzxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="动火作业许可证号" align="center" prop="dhzyxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="火票级别" align="center" prop="hpjb" width="50" :formatter="hpjbFormat"/>
|
|
|
|
+ <el-table-column label="限制空间许可证号" align="center" prop="xzkjxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="盲板作业许可证号" align="center" prop="mbzyxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="高处作业许可证号" align="center" prop="gczyxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="高处作业级别" align="center" prop="gczyjb" :formatter="gczyjbFormat"/>
|
|
|
|
+ <el-table-column label="延期许可证号" align="center" prop="yqxkzh" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="索引" align="center" prop="tag" width="60" :show-overflow-tooltip="true"/>
|
|
</el-table>
|
|
</el-table>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item :label="$t('申请时间')" prop="creattime">
|
|
<el-form-item :label="$t('申请时间')" prop="creattime">
|
|
@@ -44,7 +48,7 @@
|
|
<el-button v-if="this.taskForm.taskId == ''" @click="visible = false">{{ $t('message.return') }}</el-button>
|
|
<el-button v-if="this.taskForm.taskId == ''" @click="visible = false">{{ $t('message.return') }}</el-button>
|
|
<el-button v-if="!this.taskForm.taskId == ''" type="primary"
|
|
<el-button v-if="!this.taskForm.taskId == ''" type="primary"
|
|
@click="dataFormSubmit(1)">{{ $t('通过') }}</el-button>
|
|
@click="dataFormSubmit(1)">{{ $t('通过') }}</el-button>
|
|
- <el-button v-if="!this.taskForm.taskId == ''&&(this.isDevSup||this.isUserMag)" type="success"
|
|
|
|
|
|
+ <el-button v-if="!this.taskForm.taskId == ''&&(this.isDevSup||this.isUserMag) && this.xpxp!= 12" type="success"
|
|
@click="updateDetail">{{ $t('修改') }}</el-button>
|
|
@click="updateDetail">{{ $t('修改') }}</el-button>
|
|
<el-button v-if="!this.taskForm.taskId == ''" type="danger" @click="dataFormSubmit(0)"
|
|
<el-button v-if="!this.taskForm.taskId == ''" type="danger" @click="dataFormSubmit(0)"
|
|
:disabled="submitDisabled">{{ $t('作废') }}</el-button>
|
|
:disabled="submitDisabled">{{ $t('作废') }}</el-button>
|
|
@@ -290,6 +294,7 @@ export default {
|
|
approveForm: {},
|
|
approveForm: {},
|
|
isUserMag: false,
|
|
isUserMag: false,
|
|
isDevSup: false,
|
|
isDevSup: false,
|
|
|
|
+ xpxp: null,
|
|
loading: true,
|
|
loading: true,
|
|
bookingworkticketVisible: false,
|
|
bookingworkticketVisible: false,
|
|
// 总条数
|
|
// 总条数
|
|
@@ -315,6 +320,10 @@ export default {
|
|
riskLevelOptions: [],
|
|
riskLevelOptions: [],
|
|
// 监护人单位字典
|
|
// 监护人单位字典
|
|
guardianUnitOptions: [],
|
|
guardianUnitOptions: [],
|
|
|
|
+ // 火票级别字典
|
|
|
|
+ hpjbOptions: [],
|
|
|
|
+ // 高处作业级别字典
|
|
|
|
+ gczyjbOptions: [],
|
|
recordVisible: false,
|
|
recordVisible: false,
|
|
// 遮罩层
|
|
// 遮罩层
|
|
historyLoading: false,
|
|
historyLoading: false,
|
|
@@ -427,6 +436,14 @@ export default {
|
|
statusFormat(row, column) {
|
|
statusFormat(row, column) {
|
|
return this.selectDictLabel(this.statusOptions, row.status);
|
|
return this.selectDictLabel(this.statusOptions, row.status);
|
|
},
|
|
},
|
|
|
|
+ // 火票级别字典翻译
|
|
|
|
+ hpjbFormat(row, column) {
|
|
|
|
+ return this.selectDictLabel(this.hpjbOptions, row.hpjb);
|
|
|
|
+ },
|
|
|
|
+ // 高处作业级别字典翻译
|
|
|
|
+ gczyjbFormat(row, column) {
|
|
|
|
+ return this.selectDictLabel(this.gczyjbOptions, row.gczyjb);
|
|
|
|
+ },
|
|
// 字典翻译
|
|
// 字典翻译
|
|
workUnitFormat(row, column) {
|
|
workUnitFormat(row, column) {
|
|
return this.selectDictLabel(this.workUnitOptions, row.workUnit);
|
|
return this.selectDictLabel(this.workUnitOptions, row.workUnit);
|
|
@@ -498,6 +515,12 @@ export default {
|
|
this.getDicts("book_guardian_unit").then(response => {
|
|
this.getDicts("book_guardian_unit").then(response => {
|
|
this.guardianUnitOptions = response.data;
|
|
this.guardianUnitOptions = response.data;
|
|
});
|
|
});
|
|
|
|
+ this.getDicts("HPJB").then(response => {
|
|
|
|
+ this.hpjbOptions = response.data;
|
|
|
|
+ });
|
|
|
|
+ this.getDicts("GCZYJB").then(response => {
|
|
|
|
+ this.gczyjbOptions = response.data;
|
|
|
|
+ });
|
|
this.dataForm.processId = processId
|
|
this.dataForm.processId = processId
|
|
this.taskName = taskName
|
|
this.taskName = taskName
|
|
this.taskForm.taskId = taskId
|
|
this.taskForm.taskId = taskId
|
|
@@ -528,6 +551,7 @@ export default {
|
|
this.devList = response.data.devList
|
|
this.devList = response.data.devList
|
|
this.isUserMag = this.devList[0].status == 0 ? true : false;
|
|
this.isUserMag = this.devList[0].status == 0 ? true : false;
|
|
this.isDevSup = this.devList[0].status == 2 ? true : false;
|
|
this.isDevSup = this.devList[0].status == 2 ? true : false;
|
|
|
|
+ this.xpxp = this.devList[0].xpxp
|
|
this.dataForm.delayDate = response.data.delayDate
|
|
this.dataForm.delayDate = response.data.delayDate
|
|
this.dataForm.delayReason = response.data.delayReason
|
|
this.dataForm.delayReason = response.data.delayReason
|
|
this.dataForm.delayMeasure = response.data.delayMeasure
|
|
this.dataForm.delayMeasure = response.data.delayMeasure
|
|
@@ -550,8 +574,8 @@ export default {
|
|
this.reset();
|
|
this.reset();
|
|
},
|
|
},
|
|
|
|
|
|
- getDeviceup(){
|
|
|
|
- const queryForm= {
|
|
|
|
|
|
+ getDeviceup() {
|
|
|
|
+ const queryForm = {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
devName: null,
|
|
devName: null,
|
|
@@ -838,7 +862,7 @@ export default {
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
getInvoice(this.taskForm.businessKey).then(response => {
|
|
getInvoice(this.taskForm.businessKey).then(response => {
|
|
- this.devList=response.data.devList;
|
|
|
|
|
|
+ this.devList = response.data.devList;
|
|
});
|
|
});
|
|
this.open = false;
|
|
this.open = false;
|
|
}
|
|
}
|