|
|
@@ -5,7 +5,7 @@
|
|
|
<span style="font-weight: bold">分类</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="showDialog">添加</el-button>
|
|
|
</div>
|
|
|
- <el-table :data="businessList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table :data="businessList" border @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column label="操作" width="70" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
@@ -31,7 +31,7 @@
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="subfiledialog">添加</el-button>
|
|
|
</div>
|
|
|
<subfile-list ref="subfileList" :data="subfileList" :SupplierCertId="SupplierCertId" :SupplierCertSubId="cersubId"
|
|
|
- :businessList="businessList" height="360px" style="margin-top: 20px"></subfile-list>
|
|
|
+ :businessList="businessList" :BusinessForm="BusinessForm" height="360px" style="margin-top: 20px"></subfile-list>
|
|
|
</el-card>
|
|
|
|
|
|
<el-dialog :title="Title" :visible.sync="visible" top="5vh">
|
|
|
@@ -90,7 +90,7 @@
|
|
|
<el-input size="mini" style="width: 165px;" v-model="keyword" placeholder="请输入业务名称"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table :data="techList">
|
|
|
+ <el-table :data="techList" border>
|
|
|
<el-table-column label="操作" width="70" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="small" @click="getChooseCode(scope.row)">选择</el-button>
|
|
|
@@ -155,6 +155,8 @@
|
|
|
children: 'children'
|
|
|
},
|
|
|
selectedorg: [],
|
|
|
+ ClassId: '',
|
|
|
+ needfileList: [],
|
|
|
|
|
|
Title: '',
|
|
|
BusinessForm: {
|
|
|
@@ -231,8 +233,10 @@
|
|
|
type: 'success',
|
|
|
message: res.data.message,
|
|
|
})
|
|
|
- this.visible = false
|
|
|
- this.initData()
|
|
|
+ _this.BusinessForm.Id = res.data.item + ''
|
|
|
+ _this.visible = false
|
|
|
+ _this.initData()
|
|
|
+ _this.getneedfile()
|
|
|
} else {
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -343,13 +347,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
} else if (_this.SubClassId == '2') { //获取技术服务类业务列表
|
|
|
- const params = {
|
|
|
- _currentPage: 1,
|
|
|
- _size: 1000,
|
|
|
- }
|
|
|
- this.$axios.get('technologyservice/businesslist', {
|
|
|
- params
|
|
|
- })
|
|
|
+ this.$axios.get('technologyservice/businesslist', {})
|
|
|
.then(res => {
|
|
|
_this.techList = res.data.items
|
|
|
_this.techTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
|
|
|
@@ -378,6 +376,7 @@
|
|
|
}
|
|
|
},
|
|
|
getCode() {
|
|
|
+ this.ClassId = this.selectedorg[this.selectedorg.length - 1]
|
|
|
for (var i = 0; i < this.techList.length; i++) {
|
|
|
if (this.selectedorg[this.selectedorg.length - 1] == this.techList[i].Id) {
|
|
|
this.BusinessForm.Name = this.techList[i].Name
|
|
|
@@ -406,6 +405,7 @@
|
|
|
})
|
|
|
},
|
|
|
getParentCode() {
|
|
|
+ this.ClassId = this.OneCode
|
|
|
for (var i = 0; i < this.oneList.length; i++) {
|
|
|
if (this.OneCode == this.oneList[i].Id) {
|
|
|
this.BusinessForm.Name = this.oneList[i].Name
|
|
|
@@ -414,10 +414,310 @@
|
|
|
}
|
|
|
},
|
|
|
getChooseCode(val) {
|
|
|
+ this.ClassId = val.Id
|
|
|
this.BusinessForm.Code = val.Code
|
|
|
this.BusinessForm.Name = val.Name
|
|
|
this.basicDialog = false
|
|
|
},
|
|
|
+ getneedfile() {
|
|
|
+ let _this = this
|
|
|
+ const params = {
|
|
|
+ ClassId: this.ClassId
|
|
|
+ }
|
|
|
+ console.log(params)
|
|
|
+ if (_this.SubClassId == '2') { //获取技术服务类文件需求
|
|
|
+ this.$axios.get('technologyservice/needfilelist', {
|
|
|
+ params
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.items.F01 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '营业执照',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F02 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '组织机构代码证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F03 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '税务登记证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F04 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '银行开户许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F05 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '质量管理体系认证证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F06 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '环境管理体系认证证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F07 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '职业健康安全管理体系认证证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F08 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '软件企业认定证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F09 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '安全生产许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F10 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '陆上石油天然气安全生产许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F11 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '海洋石油作业安全生产许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F12 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '辐射安全许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F13 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '石油工程技术服务企业资质证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F14 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '物业服务企业资质证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F15 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '工业清洗企业资质证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F16 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '建设项目环境影响评价资格证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F17 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '消防设施维护保养资质证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F18 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '安全评价机构资质证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F19 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '工程咨询招标代理机构资质证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F20 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '工程监督资质证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F21 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '土地开发资格证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F22 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '房屋预售资格证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F23 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '保安服务许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F24 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '道路运输经营许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F25 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '机动车维修经营许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F26 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '道路危险货物运输许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F27 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '特种设备安装改造维修许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F28 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '建筑安全许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F29 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '防火许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F30 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '印刷经营许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F31 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '餐饮服务许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F32 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '劳务派遣经营许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F33 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '人力资源服务许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F34 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '国家实验室认可证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F35 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '海洋石油专业设备检验检测机构证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F36 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '安全生产检验检测证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F37 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '液化气钢瓶检验证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F38 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '国家电网承试承装承修许可证',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F39 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '建筑企业资质证书',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if (res.data.items.F40 == '1') {
|
|
|
+ _this.needfileList.unshift({
|
|
|
+ 'FileName': '中油集团监造许可',
|
|
|
+ 'FileUrl': '',
|
|
|
+ 'EffectDate': new Date()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ _this.$refs["subfileList"].showFileDialog(_this.needfileList)
|
|
|
+ console.log("-------------------", _this.needfileList)
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
this.selectBusiness = val
|