|
|
@@ -0,0 +1,528 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <el-breadcrumb class="heading">
|
|
|
+ <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item :to="{ path: '/oilsupplier/supplieraudit' }">准入审核列表</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item>技术服务-准入审核</el-breadcrumb-item>
|
|
|
+ </el-breadcrumb>
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header">
|
|
|
+ <span>
|
|
|
+ <i class="icon icon-table2"></i> 审批
|
|
|
+ </span>
|
|
|
+ <span style="float: right;">
|
|
|
+ <router-link :to="'/oilsupplier/supplieraudit'">
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
+ </router-link>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-tabs tab-position="right">
|
|
|
+ <el-tab-pane label="企业信息">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>供方基本信息表</span>
|
|
|
+ </div>
|
|
|
+ <basis-info v-if="dictData" ref="TechInfo" :formData="formData" :dictData="dictData" :disabled="true"></basis-info>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="企业情况">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>企业人员结构情况</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-form label-width="220px" ref="EntityFormNumber" :model="formDataCert">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="企业员工总数">
|
|
|
+ <el-input-number v-model="formDataCert.WorkerTotal" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="合同化用工数量">
|
|
|
+ <el-input-number v-model="formDataCert.ContractNum" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="大学及以上学历人员数量">
|
|
|
+ <el-input-number v-model="formDataCert.UniversityNum" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="技术、管理人员数量">
|
|
|
+ <el-input-number v-model="formDataCert.TechnicalNum" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="高级及以上职称人员数量">
|
|
|
+ <el-input-number v-model="formDataCert.AboveProfNum" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="中级职称人员数量">
|
|
|
+ <el-input-number v-model="formDataCert.MiddleProfNum" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="具有国家注册执业资格人员数量">
|
|
|
+ <el-input-number v-model="formDataCert.NationalRegNum" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="具有国家注册执业资格证书总数">
|
|
|
+ <el-input-number v-model="formDataCert.NationalCertTotal" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="设计人员总数">
|
|
|
+ <el-input-number v-model="formDataCert.DesignerTotal" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="技术工人总数">
|
|
|
+ <el-input-number v-model="formDataCert.SkillerTotal" controls-position="right" :min="0"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <el-card class="box-card" style="margin-top: 10px;">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>企业主要装备情况</span>
|
|
|
+ </div>
|
|
|
+ <equipment-list ref="equipmentList" :data="equipmentList" :SupplierCertId="certId" height="360px"
|
|
|
+ style="margin-top: 20px"></equipment-list>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <el-card class="box-card" style="margin-top: 10px;">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>近三年主要工程业绩</span>
|
|
|
+ </div>
|
|
|
+ <performance-list ref="performanceList" :data="performanceList" :SupplierCertId="certId" height="360px"
|
|
|
+ style="margin-top: 20px"></performance-list>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <el-card class="box-card" style="margin-top: 10px;">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>拥有专利、专有技术及工法</span>
|
|
|
+ </div>
|
|
|
+ <patent-list ref="patentList" :data="patentList" :SupplierCertId="certId" height="360px"
|
|
|
+ style="margin-top: 20px">
|
|
|
+ </patent-list>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <el-card class="box-card" style="margin-top: 10px;">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>近三年获得省部级及以上主要技术、管理成果、获奖项目</span>
|
|
|
+ </div>
|
|
|
+ <winning-list ref="winningList" :data="winningList" :SupplierCertId="certId" height="360px"
|
|
|
+ style="margin-top: 20px">
|
|
|
+ </winning-list>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="准入审批意见">
|
|
|
+ <auditbus-list ref="auditbusList" :data="auditbusList" :SupplierCertId="certId" :SupplierId="serviceId"
|
|
|
+ :SupplierTypeCode="classId" height="360px" style="margin-top: 20px"></auditbus-list>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="流程查看">
|
|
|
+ <el-card class="box-card" style="margin-top: 20px">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>审批流程</span>
|
|
|
+ </div>
|
|
|
+ <wf-history :entryinfo="entrydetail"></wf-history>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import {
|
|
|
+ mapGetters
|
|
|
+ } from 'vuex'
|
|
|
+ import api from '@/api/oilsupplier/supplier'
|
|
|
+ import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
+ import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
|
|
|
+ import WfHistory from '@/components/workflow/wfhistory.vue'
|
|
|
+ import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
|
|
|
+
|
|
|
+ import EquipmentList from '@/components/oilsupplier/equipmentlist'
|
|
|
+ import PerformanceList from '@/components/oilsupplier/performancelist'
|
|
|
+ import PatentList from '@/components/oilsupplier/patentlist'
|
|
|
+ import WinningList from '@/components/oilsupplier/winninglist'
|
|
|
+ import AuditbusList from '@/components/oilsupplier/auditbuslist'
|
|
|
+ import BasisInfo from '@/components/oilsupplier/basisinfo'
|
|
|
+
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ SupplierFileTable,
|
|
|
+ WfHistory,
|
|
|
+ SupplierCertEdit,
|
|
|
+
|
|
|
+ EquipmentList, //企业主要装备情况
|
|
|
+ PerformanceList, //近三年主要工程业绩列表
|
|
|
+ PatentList, //拥有专利、专有技术及工法列表
|
|
|
+ WinningList, //近三年获得省部级及以上主要技术、管理成果、获奖项目列表
|
|
|
+ AuditbusList, //待审核业务
|
|
|
+ BasisInfo
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ authUser: 'authUser'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ name: 'oilsupplierEdit',
|
|
|
+
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ equipmentList: [], //企业主要装备情况
|
|
|
+ performanceList: [], //近三年主要工程业绩
|
|
|
+ patentList: [], //拥有专利、专有技术及工法
|
|
|
+ winningList: [], //近三年获得省部级及以上主要技术、管理成果、获奖项目
|
|
|
+ auditbusList: [], //待审核业务
|
|
|
+
|
|
|
+ serviceId: '',
|
|
|
+ certId: '',
|
|
|
+ classId: '02',
|
|
|
+ dictData: null,
|
|
|
+
|
|
|
+ formData: {
|
|
|
+ Id: '',
|
|
|
+ SupplierName: '',
|
|
|
+ OilCertificateNo: '',
|
|
|
+ Grade: '',
|
|
|
+ MgrUnit: '',
|
|
|
+ OperType: '',
|
|
|
+ Country: '',
|
|
|
+ MaunAgent: '',
|
|
|
+ ConstructTeam: '',
|
|
|
+ CommercialNo: '',
|
|
|
+ OrganCode: '',
|
|
|
+ CountryTaxNo: '',
|
|
|
+ LocalTaxNo: '',
|
|
|
+ Address: '',
|
|
|
+ Province: '',
|
|
|
+ City: '',
|
|
|
+ Street: '',
|
|
|
+ HouseNo: '',
|
|
|
+ ZipCode: '',
|
|
|
+ QualitySystemCert: '',
|
|
|
+ ProductQualityCert: '',
|
|
|
+ MaunLicense: '',
|
|
|
+ QualifCert: '',
|
|
|
+ QualifCertLevel: '',
|
|
|
+ SafetyLicense: '',
|
|
|
+ TechServiceLic: '',
|
|
|
+ TJInNotify: '',
|
|
|
+ SpecIndustryCert: '',
|
|
|
+ LegalPerson: '',
|
|
|
+ CategoryCode: '',
|
|
|
+ CategoryName: '',
|
|
|
+ RegCapital: '',
|
|
|
+ Currency: '',
|
|
|
+ ContactName: '',
|
|
|
+ CompanyType: '',
|
|
|
+ SetupTime: '',
|
|
|
+ DepositBank: '',
|
|
|
+ BankAccount: '',
|
|
|
+ EMail: '',
|
|
|
+ BankCreditRating: '',
|
|
|
+ Mobile: '',
|
|
|
+ Telphone: '',
|
|
|
+ Fax: '',
|
|
|
+ CompanyTel: '',
|
|
|
+ QQ: '',
|
|
|
+ CompanyUrl: '',
|
|
|
+ SpecSupplier: '',
|
|
|
+ SpecTypeCode: '',
|
|
|
+ SpecTypeName: '',
|
|
|
+ WorkerTotal: 0,
|
|
|
+ ContractNum: 0,
|
|
|
+ UniversityNum: 0,
|
|
|
+ TechnicalNum: 0,
|
|
|
+ AboveProfNum: 0,
|
|
|
+ MiddleProfNum: 0,
|
|
|
+ NationalRegNum: 0,
|
|
|
+ NationalCertTotal: 0,
|
|
|
+ DesignerTotal: 0,
|
|
|
+ SkillerTotal: 0,
|
|
|
+ Remark: '',
|
|
|
+ IsDelete: '',
|
|
|
+ CreateOn: '',
|
|
|
+ CreateUserId: '',
|
|
|
+ CreateBy: '',
|
|
|
+ ModifiedOn: '',
|
|
|
+ ModifiedUserId: '',
|
|
|
+ ModifiedBy: '',
|
|
|
+ CertId: 0,
|
|
|
+ SupplierTypeCode: '02',
|
|
|
+ SupplierTypeName: '基建类',
|
|
|
+ Step: 0
|
|
|
+ },
|
|
|
+
|
|
|
+ formDataCert: {
|
|
|
+ WorkerTotal: 0,
|
|
|
+ ContractNum: 0,
|
|
|
+ UniversityNum: 0,
|
|
|
+ TechnicalNum: 0,
|
|
|
+ AboveProfNum: 0,
|
|
|
+ MiddleProfNum: 0,
|
|
|
+ NationalRegNum: 0,
|
|
|
+ NationalCertTotal: 0,
|
|
|
+ DesignerTotal: 0,
|
|
|
+ SkillerTotal: 0,
|
|
|
+ Status: 0,
|
|
|
+ WorkflowId: ''
|
|
|
+ },
|
|
|
+ entrydetail: {
|
|
|
+ process: 'oil_supplier_apply',
|
|
|
+ business: '',
|
|
|
+ instance: ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+
|
|
|
+ this.serviceId = this.$route.params.opera + ''
|
|
|
+ this.certId = this.$route.query.certid + ''
|
|
|
+ if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
|
+ this.formData.Id = this.serviceId
|
|
|
+ } else {
|
|
|
+ this.formData.Id = 0
|
|
|
+ }
|
|
|
+ this.getDictOptions()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ equipmentdialog() {
|
|
|
+ this.$refs["equipmentList"].showDialog()
|
|
|
+ },
|
|
|
+ performancedialog() {
|
|
|
+ this.$refs["performanceList"].showDialog()
|
|
|
+ },
|
|
|
+ patentdialog() {
|
|
|
+ this.$refs["patentList"].showDialog()
|
|
|
+ },
|
|
|
+ winningdialog() {
|
|
|
+ this.$refs["winningList"].showDialog()
|
|
|
+ },
|
|
|
+
|
|
|
+ initDatas () {
|
|
|
+ if (this.formData.Id) {
|
|
|
+ api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
+ this.formData = res.data
|
|
|
+ this.formDataCert.WorkerTotal = this.formData.WorkerTotal
|
|
|
+ this.formDataCert.ContractNum = this.formData.ContractNum
|
|
|
+ this.formDataCert.UniversityNum = this.formData.UniversityNum
|
|
|
+ this.formDataCert.TechnicalNum = this.formData.TechnicalNum
|
|
|
+ this.formDataCert.AboveProfNum = this.formData.AboveProfNum
|
|
|
+ this.formDataCert.MiddleProfNum = this.formData.MiddleProfNum
|
|
|
+ this.formDataCert.NationalRegNum = this.formData.NationalRegNum
|
|
|
+ this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal
|
|
|
+ this.formDataCert.DesignerTotal = this.formData.DesignerTotal
|
|
|
+ this.formDataCert.SkillerTotal = this.formData.SkillerTotal
|
|
|
+ this.formDataCert.Status = this.formData.Status
|
|
|
+ this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
+
|
|
|
+ this.entrydetail.business = this.certId
|
|
|
+ this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ getDictOptions () {
|
|
|
+ api.getDictList(this.$axios).then(res => {
|
|
|
+ this.dictData = res.data.items
|
|
|
+ this.initDatas()
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ //保存信息
|
|
|
+ saveEntity() {
|
|
|
+ this.$refs['EntityForm'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ //this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
|
|
|
+ if (!this.formData.Id) {
|
|
|
+ this.addEntity()
|
|
|
+ } else {
|
|
|
+ this.updateEntity()
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ //保存信息
|
|
|
+ saveCertEntity() {
|
|
|
+ this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
|
+ },
|
|
|
+
|
|
|
+ addEntity() {
|
|
|
+ this.formData.SupplierTypeCode = '02'
|
|
|
+ this.formData.SupplierTypeName = '基建类'
|
|
|
+ api.addEntity(this.formData, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ //保存成功后,初始化数据,变成修改
|
|
|
+ this.formData.Id = res.data.item.split('_')[0]
|
|
|
+ this.certId = res.data.item.split('_')[1]
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ updateEntity() {
|
|
|
+ api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ //保存成功后,初始化数据,变成修改
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ CheckCompanyBase() {
|
|
|
+ if (!this.formData.Id) {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '无法保存,请先填写企业基本信息'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (!this.certId) {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '准入类别不清晰,无法保存!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ },
|
|
|
+ //企业人员结构情况
|
|
|
+ updateNumberEntity() {
|
|
|
+ if (!this.CheckCompanyBase()) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ api.updateNumberEntity(this.formData.Id + '_' + this.certId, this.formDataCert, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ //保存成功后,初始化数据,变成修改
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ AuditEntity() {
|
|
|
+ apiCert.auditEntity(this.certId, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ //保存成功后,初始化数据,变成修改
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ jstimehandle(val) {
|
|
|
+ if (val === '') {
|
|
|
+ return '----'
|
|
|
+ } else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
+ return '----'
|
|
|
+ } else if (val === '5000-01-01T23:59:59+08:00') {
|
|
|
+ return '永久'
|
|
|
+ } else {
|
|
|
+ val = val.replace('T', ' ')
|
|
|
+ return val.substring(0, 10)
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ formatDateTime(date) {
|
|
|
+ var y = date.getFullYear();
|
|
|
+ var m = date.getMonth() + 1;
|
|
|
+ m = m < 10 ? ('0' + m) : m;
|
|
|
+ var d = date.getDate();
|
|
|
+ d = d < 10 ? ('0' + d) : d;
|
|
|
+ var h = date.getHours();
|
|
|
+ var minute = date.getMinutes();
|
|
|
+ minute = minute < 10 ? ('0' + minute) : minute;
|
|
|
+ return y + '-' + m + '-' + d + ' ' + h + ':' + minute;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss">
|
|
|
+
|
|
|
+</style>
|