|
@@ -8,8 +8,8 @@
|
|
|
<el-form :model="taskForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="" label-width="80px">
|
|
|
<el-form-item :label=" xpxp == 12 ? '预约续票' : '预约新票' ">
|
|
|
<el-table :data="devList" :span-method="mergeMethod" border style="width: 100%;">
|
|
|
- <el-table-column label="作业单位" align="center" prop="workUnit" />
|
|
|
- <el-table-column label="作业区域单元" align="center" prop="workArea" />
|
|
|
+ <el-table-column label="作业单位" align="center" prop="workUnit"/>
|
|
|
+ <el-table-column label="作业区域单元" align="center" prop="workArea"/>
|
|
|
<el-table-column label="楼层位置" align="center" prop="floorLocation" :formatter="floorLocationFormat"/>
|
|
|
<el-table-column label=" 作业日期" align="center" prop="workStartTime" width="100">
|
|
|
<template slot-scope="scope">
|
|
@@ -18,21 +18,21 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="作业类型" align="center" prop="workType" :formatter="workTypeFormat"/>
|
|
|
<el-table-column label="风险等级" align="center" prop="riskLevel" :formatter="riskLevelFormat"/>
|
|
|
- <el-table-column label="作业内容描述" align="center" prop="workDescription" />
|
|
|
- <el-table-column label="作业人员数" align="center" prop="workPeopleNumber" />
|
|
|
- <el-table-column label="预计作业时间" align="center" prop="estimateWorktime" />
|
|
|
- <el-table-column label="联系人" align="center" prop="contact" />
|
|
|
- <el-table-column label="联系方式" align="center" prop="phonenumber" />
|
|
|
+ <el-table-column label="作业内容描述" align="center" prop="workDescription"/>
|
|
|
+ <el-table-column label="作业人员数" align="center" prop="workPeopleNumber"/>
|
|
|
+ <el-table-column label="预计作业时间" align="center" prop="estimateWorktime"/>
|
|
|
+ <el-table-column label="联系人" align="center" prop="contact"/>
|
|
|
+ <el-table-column label="联系方式" align="center" prop="phonenumber"/>
|
|
|
<el-table-column label="状态" align="center" prop="status" width="100" :formatter="statusFormat"/>
|
|
|
- <el-table-column label="危害工作许可证号" align="center" prop="whgzxkzh" />
|
|
|
- <el-table-column label="动火作业许可证号" align="center" prop="dhzyxkzh" />
|
|
|
+ <el-table-column label="危害工作许可证号" align="center" prop="whgzxkzh"/>
|
|
|
+ <el-table-column label="动火作业许可证号" align="center" prop="dhzyxkzh"/>
|
|
|
<el-table-column label="火票级别" align="center" prop="hpjb" width="50" :formatter="hpjbFormat"/>
|
|
|
- <el-table-column label="限制空间许可证号" align="center" prop="xzkjxkzh" />
|
|
|
- <el-table-column label="盲板作业许可证号" align="center" prop="mbzyxkzh" />
|
|
|
- <el-table-column label="高处作业许可证号" align="center" prop="gczyxkzh" />
|
|
|
+ <el-table-column label="限制空间许可证号" align="center" prop="xzkjxkzh"/>
|
|
|
+ <el-table-column label="盲板作业许可证号" align="center" prop="mbzyxkzh"/>
|
|
|
+ <el-table-column label="高处作业许可证号" align="center" prop="gczyxkzh"/>
|
|
|
<el-table-column label="高处作业级别" align="center" prop="gczyjb" :formatter="gczyjbFormat"/>
|
|
|
- <el-table-column label="延期许可证号" align="center" prop="yqxkzh" />
|
|
|
- <el-table-column label="索引" align="center" prop="tag" width="60" />
|
|
|
+ <el-table-column label="延期许可证号" align="center" prop="yqxkzh"/>
|
|
|
+ <el-table-column label="索引" align="center" prop="tag" width="60"/>
|
|
|
</el-table>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('申请时间')" prop="creattime">
|
|
@@ -90,7 +90,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="归属部门" prop="deptId">
|
|
|
- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" :disabled="isDevSup"/>
|
|
|
+ <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门"
|
|
|
+ :disabled="isDevSup"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -112,7 +113,7 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="作业时间" prop="workStartTime" >
|
|
|
+ <el-form-item label="作业时间" prop="workStartTime">
|
|
|
<el-date-picker clearable size="small" style="width: 190px"
|
|
|
v-model="form.workStartTime"
|
|
|
type="date"
|
|
@@ -122,16 +123,16 @@
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-<!-- <el-col :span="12">
|
|
|
- <el-form-item label="作业结束" prop="workEndTime">
|
|
|
- <el-date-picker clearable size="small" style="width: 190px"
|
|
|
- v-model="form.workEndTime"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择作业结束时间">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>-->
|
|
|
+ <!-- <el-col :span="12">
|
|
|
+ <el-form-item label="作业结束" prop="workEndTime">
|
|
|
+ <el-date-picker clearable size="small" style="width: 190px"
|
|
|
+ v-model="form.workEndTime"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择作业结束时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>-->
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
@@ -222,8 +223,9 @@
|
|
|
<el-button @click="reduce" :disabled="flag">移除一条</el-button>
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button v-if="this.isUserMag" type="primary" @click="confirmDetail(1)">保存并重新申请</el-button>
|
|
|
- <el-button v-else type="primary" @click="confirmDetail">保存</el-button>
|
|
|
+ <el-button v-if="this.isUserMag" type="primary" @click="confirmDetail(1)" :disabled="save">保存并重新申请
|
|
|
+ </el-button>
|
|
|
+ <el-button v-else type="primary" @click="confirmDetail" :disabled="save">保存</el-button>
|
|
|
<el-button @click="detailCancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -250,6 +252,7 @@ export default {
|
|
|
return {// 表单校验
|
|
|
ruleForm: [{}],
|
|
|
//禁用
|
|
|
+ save: false,
|
|
|
edit: true,
|
|
|
flag: true,
|
|
|
rules: {
|
|
@@ -619,9 +622,9 @@ export default {
|
|
|
reset() {
|
|
|
this.historyList = [];
|
|
|
this.devList = [];
|
|
|
- this.isUserMag=false;
|
|
|
- this.isDevSup=false;
|
|
|
- this.userUnitOptions=[];
|
|
|
+ this.isUserMag = false;
|
|
|
+ this.isDevSup = false;
|
|
|
+ this.userUnitOptions = [];
|
|
|
},
|
|
|
detailReset() {
|
|
|
this.form = {
|
|
@@ -774,6 +777,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
updateDetail() {
|
|
|
+ this.save=false
|
|
|
this.detailReset();
|
|
|
const id = this.devList[0].bookingticketId
|
|
|
getBookingworkticket(id).then(response => {
|
|
@@ -813,7 +817,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
confirmDetail(val) {
|
|
|
-
|
|
|
+ this.save = true
|
|
|
let arr = []
|
|
|
const basicForm = this.$refs.form;
|
|
|
arr.push(basicForm)
|
|
@@ -835,7 +839,7 @@ export default {
|
|
|
const genForm4 = this.$refs.ruleForm[4];
|
|
|
arr.push(genForm4)
|
|
|
}
|
|
|
- this.submitDisabled = true
|
|
|
+
|
|
|
this.taskForm.condition = 0
|
|
|
this.taskForm.govFiles = this.dataForm.files
|
|
|
|
|
@@ -855,7 +859,6 @@ export default {
|
|
|
this.approveForm.userSupId = this.form.userMg
|
|
|
if (val === 1) {
|
|
|
handleApprove(this.taskForm).then(response => {
|
|
|
- this.submitDisabled = false
|
|
|
this.msgSuccess(this.$t('处理成功'));
|
|
|
addInvoice(this.approveForm).then(response => {
|
|
|
// this.msgSuccess(this.$t('预约成功'));
|