|
@@ -172,6 +172,7 @@
|
|
<el-table-column label="盲板作业许可证号" align="center" prop="mbzyxkzh" :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="gczyxkzh" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="高处作业级别" align="center" prop="gczyjb" :formatter="gczyjbFormat"/>
|
|
<el-table-column label="高处作业级别" align="center" prop="gczyjb" :formatter="gczyjbFormat"/>
|
|
|
|
+ <el-table-column label="索引" align="center" prop="tag" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="操作" align="center" fixed="right" width="180" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" fixed="right" width="180" class-name="small-padding fixed-width">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@@ -421,6 +422,16 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="索引" prop="tag">
|
|
|
|
+ <el-select v-model="licenseForm.tag" clearable placeholder="请选择索引">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in tagOptions"
|
|
|
|
+ :key="dict.tag"
|
|
|
|
+ :label="dict.tag"
|
|
|
|
+ :value="dict.tag"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="guanlianVisible=false">取 消</el-button>
|
|
<el-button @click="guanlianVisible=false">取 消</el-button>
|
|
@@ -435,6 +446,7 @@
|
|
import { listBookingworkticket, getBookingworkticket, delBookingworkticket, addBookingworkticket, updateBookingworkticket, exportBookingworkticket, importTemplate, seeBookingworkticket,assion} from "@/api/invoice/bookingworkticket";
|
|
import { listBookingworkticket, getBookingworkticket, delBookingworkticket, addBookingworkticket, updateBookingworkticket, exportBookingworkticket, importTemplate, seeBookingworkticket,assion} from "@/api/invoice/bookingworkticket";
|
|
import { listWorkcontent, getWorkcontent, delWorkcontent, addWorkcontent, updateWorkcontent, exportWorkcontent,getWorkcontentBybookingticketId} from "@/api/invoice/workcontent";
|
|
import { listWorkcontent, getWorkcontent, delWorkcontent, addWorkcontent, updateWorkcontent, exportWorkcontent,getWorkcontentBybookingticketId} from "@/api/invoice/workcontent";
|
|
import { listDevice, getDevice, delDevice, updateDevice, exportDevice, selectDevice} from "@/api/invoice/device";
|
|
import { listDevice, getDevice, delDevice, updateDevice, exportDevice, selectDevice} from "@/api/invoice/device";
|
|
|
|
+import { listTagAll} from "@/api/invoice/tag";
|
|
import { listUnit, getUnit, delUnit, addUnit, updateUnit, exportUnit,getUserByUnit} from "@/api/invoice/unit";
|
|
import { listUnit, getUnit, delUnit, addUnit, updateUnit, exportUnit,getUserByUnit} from "@/api/invoice/unit";
|
|
import { listUser, getUser, delUser, addUser, updateUser, exportUser, resetUserPwd, changeUserStatus,userDataScope,getUserByUserName } from "@/api/system/user";
|
|
import { listUser, getUser, delUser, addUser, updateUser, exportUser, resetUserPwd, changeUserStatus,userDataScope,getUserByUserName } from "@/api/system/user";
|
|
import { listJobticket, getJobticket, delJobticket, addJobticket, updateJobticket, exportJobticket,batchAddJobticket } from "@/api/ehs/jobticket";
|
|
import { listJobticket, getJobticket, delJobticket, addJobticket, updateJobticket, exportJobticket,batchAddJobticket } from "@/api/ehs/jobticket";
|
|
@@ -500,6 +512,7 @@ export default {
|
|
hpjbOptions: [],
|
|
hpjbOptions: [],
|
|
// 高处作业级别字典
|
|
// 高处作业级别字典
|
|
gczyjbOptions: [],
|
|
gczyjbOptions: [],
|
|
|
|
+ tagOptions: [],
|
|
// 是否显示弹出层
|
|
// 是否显示弹出层
|
|
open: false,
|
|
open: false,
|
|
// 用户导入参数
|
|
// 用户导入参数
|
|
@@ -608,9 +621,10 @@ export default {
|
|
this.clientHeight = document.body.clientHeight -250
|
|
this.clientHeight = document.body.clientHeight -250
|
|
|
|
|
|
})
|
|
})
|
|
- this.getNowFormatDate()
|
|
|
|
- this.getList();
|
|
|
|
- this.getTreeselect();
|
|
|
|
|
|
+ this.getNowFormatDate()
|
|
|
|
+ this.getList()
|
|
|
|
+ this.getTreeselect()
|
|
|
|
+ this.getTagList()
|
|
//初始化作业区域、 初始化用户单位下拉框
|
|
//初始化作业区域、 初始化用户单位下拉框
|
|
this.getDeviceup();
|
|
this.getDeviceup();
|
|
this.getDicts("booking_work_status").then(response => {
|
|
this.getDicts("booking_work_status").then(response => {
|
|
@@ -707,9 +721,15 @@ export default {
|
|
remarks: null
|
|
remarks: null
|
|
};
|
|
};
|
|
selectDevice(queryForm).then(response => {
|
|
selectDevice(queryForm).then(response => {
|
|
- this.workAreaOptions=response.data
|
|
|
|
|
|
+ this.workAreaOptions = response.data
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //得到索引下拉框
|
|
|
|
+ getTagList(){
|
|
|
|
+ listTagAll().then(response => {
|
|
|
|
+ this.tagOptions = response
|
|
|
|
+ });
|
|
|
|
+ },
|
|
addAprrove(row) {
|
|
addAprrove(row) {
|
|
this.reset();
|
|
this.reset();
|
|
|
|
|
|
@@ -1101,30 +1121,29 @@ export default {
|
|
submitassociation(){
|
|
submitassociation(){
|
|
this.guanlianVisible=false
|
|
this.guanlianVisible=false
|
|
let arr=[]
|
|
let arr=[]
|
|
- arr.push(this.licenseForm.whgzxkzh)
|
|
|
|
- arr.push(this.licenseForm.dhzyxkzh)
|
|
|
|
|
|
+ arr.push(this.licenseForm.whgzxkzh)
|
|
|
|
+ arr.push(this.licenseForm.dhzyxkzh)
|
|
arr.push(this.licenseForm.xzkjxkzh)
|
|
arr.push(this.licenseForm.xzkjxkzh)
|
|
- arr.push(this.licenseForm.mbzyxkzh)
|
|
|
|
- arr.push(this.licenseForm.gczyxkzh)
|
|
|
|
|
|
+ arr.push(this.licenseForm.mbzyxkzh)
|
|
|
|
+ arr.push(this.licenseForm.gczyxkzh)
|
|
const putData={}
|
|
const putData={}
|
|
let num=0
|
|
let num=0
|
|
arr.forEach(item => {if(item===null||item===''){
|
|
arr.forEach(item => {if(item===null||item===''){
|
|
num=num+1
|
|
num=num+1
|
|
}})
|
|
}})
|
|
- if(num<5){
|
|
|
|
- putData.id=this.associationParams.id
|
|
|
|
- putData.whgzxkzh=this.licenseForm.whgzxkzh
|
|
|
|
- putData.hpjb=this.licenseForm.hpjb
|
|
|
|
- putData.dhzyxkzh=this.licenseForm.dhzyxkzh
|
|
|
|
- putData.xzkjxkzh=this.licenseForm.xzkjxkzh
|
|
|
|
- putData.mbzyxkzh=this.licenseForm.mbzyxkzh
|
|
|
|
- putData.gczyxkzh=this.licenseForm.gczyxkzh
|
|
|
|
- putData.gczyjb=this.licenseForm.gczyjb
|
|
|
|
-
|
|
|
|
|
|
+ if(num<5){
|
|
|
|
+ putData.id=this.associationParams.id
|
|
|
|
+ putData.whgzxkzh=this.licenseForm.whgzxkzh
|
|
|
|
+ putData.hpjb=this.licenseForm.hpjb
|
|
|
|
+ putData.dhzyxkzh=this.licenseForm.dhzyxkzh
|
|
|
|
+ putData.xzkjxkzh=this.licenseForm.xzkjxkzh
|
|
|
|
+ putData.mbzyxkzh=this.licenseForm.mbzyxkzh
|
|
|
|
+ putData.gczyxkzh=this.licenseForm.gczyxkzh
|
|
|
|
+ putData.gczyjb=this.licenseForm.gczyjb
|
|
|
|
+ putData.tag=this.licenseForm.tag
|
|
}else{
|
|
}else{
|
|
return this.msgError("请至少关联一张许可证号");
|
|
return this.msgError("请至少关联一张许可证号");
|
|
}
|
|
}
|
|
-
|
|
|
|
updateWorkcontent(putData).then(response => {
|
|
updateWorkcontent(putData).then(response => {
|
|
// console.log(response.row)
|
|
// console.log(response.row)
|
|
|
|
|
|
@@ -1212,7 +1231,7 @@ export default {
|
|
colspan: _col
|
|
colspan: _col
|
|
};
|
|
};
|
|
}
|
|
}
|
|
- if (columnIndex === 23) {
|
|
|
|
|
|
+ if (columnIndex === 24) {
|
|
const _row = this.setTable(this.bookingworkticketList).merge[rowIndex];
|
|
const _row = this.setTable(this.bookingworkticketList).merge[rowIndex];
|
|
const _col = _row > 0 ? 1 : 0;
|
|
const _col = _row > 0 ? 1 : 0;
|
|
return {
|
|
return {
|
|
@@ -1321,10 +1340,6 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
//文件预览
|
|
//文件预览
|
|
openPdf(){
|
|
openPdf(){
|