|
|
@@ -5,8 +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" border @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="55"></el-table-column>
|
|
|
+ <el-table :data="businessList" border>
|
|
|
<el-table-column label="操作" width="70" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" title="编辑" size="small" icon="el-icon-edit" @click="openDialog(scope.row)">
|
|
|
@@ -30,15 +29,16 @@
|
|
|
<span style="font-weight: bold">分类文档</span>
|
|
|
<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" :BusinessForm="BusinessForm" height="360px" style="margin-top: 20px">
|
|
|
+ <subfile-list ref="subfileList" :data="subfileList" :SupplierId="SupplierId" :SupplierCertId="SupplierCertId"
|
|
|
+ :SupplierTypeCode="SupplierTypeCode" :businessList="businessList" :BusinessForm="BusinessForm" height="360px"
|
|
|
+ style="margin-top: 20px">
|
|
|
</subfile-list>
|
|
|
</el-card>
|
|
|
|
|
|
<el-dialog :title="Title" :visible.sync="visible" top="5vh">
|
|
|
<el-form :model="BusinessForm" label-width="100px">
|
|
|
<el-row>
|
|
|
- <el-col :span="12" v-if="SupplierTypeCode == '01'">
|
|
|
+ <el-col :span="12" v-if="SupplierTypeCode == '01' && Title == '新增准入范围'">
|
|
|
<el-form-item label="名称" required>
|
|
|
<el-select filterable default-first-option v-model="OneCode" placeholder="请选择" style="width: 100%"
|
|
|
@change="getChild()">
|
|
|
@@ -47,7 +47,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" v-if="SupplierTypeCode == '02'">
|
|
|
+ <el-col :span="12" v-if="SupplierTypeCode == '02' && Title == '新增准入范围'">
|
|
|
<el-form-item label="名称" required>
|
|
|
<el-input placeholder="请选择名称" v-model="BusinessForm.Name" style="width:100%">
|
|
|
<el-button type="primary" style="width:30%" @click="basicDialog = true" slot="append">选择
|
|
|
@@ -55,15 +55,20 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" v-if="SupplierTypeCode != '02'">
|
|
|
+ <el-col :span="12" v-if="SupplierTypeCode != '02' && Title == '新增准入范围'">
|
|
|
<el-form-item label="名称" required>
|
|
|
<el-cascader :options="techTreeList" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
v-model="selectedorg" placeholder="请选择菜单" @change="getCode()" style="width:100%"></el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12" v-if="Title == '编辑准入范围'">
|
|
|
+ <el-form-item label="名称">
|
|
|
+ <el-input v-model="BusinessForm.Name" placeholder="请输入名称" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="编码" required>
|
|
|
- <el-input v-model="BusinessForm.Code" placeholder="请输入编码"></el-input>
|
|
|
+ <el-input v-model="BusinessForm.Code" placeholder="请输入编码" :disabled="Title == '编辑准入范围'"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
@@ -157,7 +162,6 @@
|
|
|
},
|
|
|
selectedorg: [],
|
|
|
ClassId: '',
|
|
|
- needfileList: [],
|
|
|
|
|
|
Title: '',
|
|
|
BusinessForm: {
|
|
|
@@ -182,10 +186,7 @@
|
|
|
Size: 10,
|
|
|
CurrentItemCount: 0,
|
|
|
|
|
|
- cersubId: '', //对应的证书分类ID
|
|
|
subfileList: [], //文档
|
|
|
- selectBusiness: [],
|
|
|
- selectId: [],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -203,13 +204,7 @@
|
|
|
.then(res => {
|
|
|
_this.businessList = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
- if (_this.businessList && _this.businessList.length > 0) {
|
|
|
- for (var i = 0; i < _this.businessList.length; i++) {
|
|
|
- _this.selectId.push(_this.businessList[i].Id)
|
|
|
- }
|
|
|
- _this.cersubId = _this.selectId.join(",")
|
|
|
- this.$refs["subfileList"].initData(_this.cersubId)
|
|
|
- }
|
|
|
+ _this.$refs["subfileList"].initData()
|
|
|
})
|
|
|
.catch(err => {
|
|
|
// handle error
|
|
|
@@ -238,7 +233,7 @@
|
|
|
_this.BusinessForm.Id = res.data.item + ''
|
|
|
_this.visible = false
|
|
|
_this.initData()
|
|
|
- _this.getneedfile()
|
|
|
+ _this.$refs["subfileList"].initData()
|
|
|
} else {
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -425,322 +420,10 @@
|
|
|
this.BusinessForm.Name = val.Name
|
|
|
this.basicDialog = false
|
|
|
},
|
|
|
- getneedfile() {
|
|
|
- let _this = this
|
|
|
- const params = {
|
|
|
- ClassId: this.ClassId
|
|
|
- }
|
|
|
- if (_this.SubClassId == '03') { //获取技术服务类文件需求
|
|
|
- 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
|
|
|
- this.selectId = []
|
|
|
- if (this.selectBusiness && this.selectBusiness.length > 0) {
|
|
|
- for (var i = 0; i < this.selectBusiness.length; i++) {
|
|
|
- this.selectId.push(this.selectBusiness[i].Id)
|
|
|
- }
|
|
|
- }
|
|
|
- this.getfilelist()
|
|
|
- },
|
|
|
subfiledialog() {
|
|
|
this.$refs["subfileList"].showDialog()
|
|
|
},
|
|
|
- getfilelist() {
|
|
|
- this.cersubId = this.selectId.join(",")
|
|
|
- this.$refs["subfileList"].initData(this.cersubId)
|
|
|
- },
|
|
|
|
|
|
handleSizeChange(value) {
|
|
|
this.size = value
|