|
|
@@ -0,0 +1,2011 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <el-breadcrumb class="heading">
|
|
|
+ <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item :to="{ path: '/oilsupplier/annualaudit' }">年审基本信息表</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item>编辑</el-breadcrumb-item>
|
|
|
+ </el-breadcrumb>
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>年审基本信息表</span>
|
|
|
+ <span style="float: right;">
|
|
|
+ <!-- <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批历史</el-button> -->
|
|
|
+ <el-popover>
|
|
|
+ <el-steps :active="Step" direction="vertical" align-center finish-status="success">
|
|
|
+ <el-step title="填信息"></el-step>
|
|
|
+ <el-step title="待审批"></el-step>
|
|
|
+ <el-step title="已审批"></el-step>
|
|
|
+ <el-step title="待交费"></el-step>
|
|
|
+ <el-step title="待入库"></el-step>
|
|
|
+ <el-step title="完成"></el-step>
|
|
|
+ </el-steps>
|
|
|
+ <!-- <el-button slot="reference" plain size="mini" style="margin-left: 8px">查看进度</el-button> -->
|
|
|
+ </el-popover>
|
|
|
+ <!-- <el-button type="primary" style="margin-left: 8px;" size="mini" @click="annualAudit()"
|
|
|
+ v-if="AnnualStatus == 1 ||AnnualStatus == 2 ||AnnualStatus == 4">审核
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" style="margin-left: 8px;" size="mini" @click="profAudit()" v-if="AnnualStatus == 3">
|
|
|
+ 专业审核分配</el-button> -->
|
|
|
+ <el-button type="primary" size="mini" style="margin-right: 8px" @click="itemsshow">查看变更项</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()"
|
|
|
+ v-if="auditBtn && AnnualStatus == '1'">初审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()"
|
|
|
+ v-if="auditBtn && AnnualStatus == '2'">复审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="profAudit()"
|
|
|
+ v-if="auditBtn && AnnualStatus == '3'">提交专业审核</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()"
|
|
|
+ v-if="auditBtn && AnnualStatus == '4'">专业审核</el-button>
|
|
|
+ <el-button type="primary" style="margin-left: 8px;" size="mini" @click="fenbanBtn" v-if="auditBtn && AnnualStatus == '10'">
|
|
|
+ 提交分办</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px;" onclick="window.history.go(-1)">返回</el-button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <el-tabs tab-position="top" style="margin-top: 10px" size="mini">
|
|
|
+ <el-tab-pane label="企业信息">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>供方基本信息表</span>
|
|
|
+ <!-- <span style="float: right;">
|
|
|
+ <el-button type="primary" size="mini" @click="saveEntity">保存基本信息</el-button>
|
|
|
+ </span> -->
|
|
|
+ </div>
|
|
|
+ <!--<tech-info ref="TechInfo" :formData.sync="formData" :dictData.sync="dictData" :authUser="authUser"-->
|
|
|
+ <!--:disabled="true" :canUpdateSupplier="canUpdateSupplier" @selectcompany="changeFormData"-->
|
|
|
+ <!--@inputcompany="inputCompany">-->
|
|
|
+ <!--</tech-info>-->
|
|
|
+ <div>
|
|
|
+ <el-form class="formDataInfo" label-width="135px" ref="EntityForm" :model="formData" :rules="rulesform">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="供方名称" prop="SupplierName" >
|
|
|
+ <el-input v-model="formData.SupplierName" :maxlength="255" :class="changedForm['SupplierName'] ? 'modified-form-input' : ''"
|
|
|
+ placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="准入编码">
|
|
|
+ <el-input v-model="AccessCardNo" :readonly="true" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="单位关系">
|
|
|
+ <el-select ref="SpecType" v-model="formData.SpecTypeCode" :class="changedForm['SpecTypeCode'] ? 'modified-form-input' : ''"
|
|
|
+ placeholder="请选择" style="width: 100%">
|
|
|
+ <el-option v-for="item in UnitRelationOptions" :key="item.Id" :label="item.Key"
|
|
|
+ :value="item.Value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="准入方式">
|
|
|
+ <el-select ref="SpecType" v-model="InStyle" :disabled="true"
|
|
|
+ placeholder="请选择" style="width: 100%">
|
|
|
+ <el-option v-for="item in InOptions" :key="item.Id" :label="item.Key" v-if="item.Value != '2' && item.Value != '3'"
|
|
|
+ :value="item.Value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="证件合一">
|
|
|
+ <el-select v-model="formData.CredentialFlag" placeholder="请选择" :class="changedForm['CredentialFlag'] ? 'modified-form-input' : ''" @change="showorhid" style="width: 100%">
|
|
|
+ <el-option v-for="item in selectoptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="统一社会信用代码" prop="CommercialNo" >
|
|
|
+ <el-input v-model="formData.CommercialNo" maxlength="50" :readonly="true" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="税务登记证编号" prop="CountryTaxNo" v-if="showorhidflag=='show'" >
|
|
|
+ <el-input v-model="formData.CountryTaxNo" maxlength="50" :readonly="!canUpdateSupplier" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="组织机构代码" prop="OrganCode" v-if="showorhidflag=='show'" >
|
|
|
+ <el-input v-model="formData.OrganCode" maxlength="50" :readonly="!canUpdateSupplier" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <!--<el-col :span="8">
|
|
|
+ <el-form-item label="税务登记证地税编号">
|
|
|
+ <el-input v-model="formData.LocalTaxNo" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>-->
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="注册地址" prop="Province" >
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="10">
|
|
|
+ <el-cascader ref="cascaderAdd" :options="countryoptions"
|
|
|
+ :props="countryprops" maxlength="20" placeholder="省市区"
|
|
|
+ :class="changedForm['Province'] || changedForm['City'] || changedForm['Street'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="CityAry" style="width: 100%" @change="handleAreaChange">
|
|
|
+ </el-cascader>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="14">
|
|
|
+ <el-input :class="changedForm['Address'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.Address" maxlength="500" :readonly="!canUpdateSupplier" placeholder="详细地址" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="邮编" prop="ZipCode" >
|
|
|
+ <el-input :class="changedForm['ZipCode'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.ZipCode" :readonly="!canUpdateSupplier" maxlength="20" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="通信地址" prop="LinkProvince" >
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="10">
|
|
|
+ <el-cascader ref="cascaderAddrLink" :options="countryoptions" :props="countryprops" placeholder="省市区"
|
|
|
+ :class="changedForm['LinkProvince'] || changedForm['LinkCity'] || changedForm['LinkStreet'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="LinkCityAry" maxlength="20" style="width: 100%" @change="handleLinkAreaChange">
|
|
|
+ </el-cascader>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="14">
|
|
|
+ <el-input v-model="formData.LinkAddress" :class="changedForm['LinkAddress'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" maxlength="500" placeholder="详细地址" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="邮编" prop="LinkZipCode" >
|
|
|
+ <el-input v-model="formData.LinkZipCode" :class="changedForm['LinkZipCode'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" maxlength="20" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="法定代表人姓名" prop="LegalPerson" >
|
|
|
+ <el-input v-model="formData.LegalPerson" :class="changedForm['LegalPerson'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" maxlength="20" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="公司类型" prop="CompanyType" >
|
|
|
+ <!--<el-input v-model="formData.CompanyType" placeholder="请输入" style="width: 100%"></el-input>-->
|
|
|
+ <el-select v-model="formData.CompanyType" :class="changedForm['CompanyType'] ? 'modified-form-input' : ''"
|
|
|
+ maxlength="50" filterable allow-create placeholder="请选择"
|
|
|
+ style="width: 100%;">
|
|
|
+ <el-option v-for="item in CompanyTypeOptions" :key="item.Id" :label="item.Key" :value="item.Value"
|
|
|
+ style="width: 100%">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="成立时间">
|
|
|
+ <!--<el-date v-model="formData.SetupTime" maxlength="50" type="date" placeholder="请输入"
|
|
|
+ style="width: 100%"> </el-date>-->
|
|
|
+ <el-date-picker v-model="formData.SetupTime" :class="changedForm['SetupTime'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" type="date" format="yyyy 年 MM 月 dd 日"
|
|
|
+ value-format="yyyy-MM-dd" placeholder="选择日期" style="width: 100%">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="注册资本" prop="RegCapital" >
|
|
|
+ <el-input type="number" :class="changedForm['RegCapital'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" v-model.number="formData.RegCapital" :min="1" placeholder="请输入" style="width: 100%">
|
|
|
+ <template slot="append">万元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="币种">
|
|
|
+ <el-select :class="changedForm['Currency'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.Currency" placeholder="请选择"
|
|
|
+ style="width: 100%;">
|
|
|
+ <el-option v-for="item in CurrencyOptions" :key="item.Value" :label="item.Key" :value="item.Value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="开户银行" prop="DepositBank" >
|
|
|
+ <el-input v-model="formData.DepositBank"
|
|
|
+ :class="changedForm['DepositBank'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" maxlength="50" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="联系人姓名" prop="ContactName">
|
|
|
+ <el-input :class="changedForm['ContactName'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.ContactName" :readonly="!canUpdateSupplier" maxlength="20" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="移动电话" prop="Mobile" >
|
|
|
+ <el-input :class="changedForm['Mobile'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.Mobile" :readonly="!canUpdateSupplier" maxlength="20" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="银行账号" prop="BankAccount" >
|
|
|
+ <el-input :class="changedForm['BankAccount'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.BankAccount" :readonly="!canUpdateSupplier" maxlength="50" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="固定电话" prop="Telphone" >
|
|
|
+ <el-input :class="changedForm['Telphone'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.Telphone" :readonly="!canUpdateSupplier" maxlength="20" placeholder="区号-0000000" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="传真" prop="Fax" >
|
|
|
+ <el-input :class="changedForm['Fax'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.Fax" :readonly="!canUpdateSupplier" maxlength="20" placeholder="区号-0000000" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="财务电话" prop="CompanyTel" >
|
|
|
+ <el-input v-model="formData.CompanyTel" :class="changedForm['CompanyTel'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" placeholder="请输入" maxlength="20" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="电子邮箱" prop="EMail" >
|
|
|
+ <el-input v-model="formData.EMail" :class="changedForm['EMail'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" maxlength="50" placeholder="请输入" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="银行信用等级">
|
|
|
+ <el-input v-model="formData.BankCreditRating" :class="changedForm['BankCreditRating'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" maxlength="10" placeholder="请输入" style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="HSE审查培训">
|
|
|
+ <!--<el-input v-model="formData.HseTraining" placeholder="请输入" style="width: 100%"></el-input>-->
|
|
|
+ <el-select :class="changedForm['HseTraining'] ? 'modified-form-input' : ''"
|
|
|
+ v-model="formData.HseTraining" placeholder="请选择" style="width: 100%;">
|
|
|
+ <el-option v-for="item in HSEOptions" :key="item.value" :label="item.label" :value="item.value"
|
|
|
+ style="width: 100%">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <el-form class="formDataInfo" label-position="top" ref="EntityFormCert" :rules="rulesform" :model="formData">
|
|
|
+ <el-row :gutter="60">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="质量管理体系认证证书编号">
|
|
|
+ <el-input v-model="formData.QualitySystemCert" :class="changedForm['QualitySystemCert'] ? 'modified-form-input' : ''"
|
|
|
+ maxlength="200" :readonly="this.formData.Status > '0'" placeholder="请输入" type="textarea"
|
|
|
+ style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="企业资质证书(编号 级别)">
|
|
|
+ <el-input v-model="formData.QualifCert" :class="changedForm['QualifCert'] ? 'modified-form-input' : ''"
|
|
|
+ placeholder="请输入" :readonly="this.formData.Status >'0'" maxlength="200" type="textarea"
|
|
|
+ style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="安全生产许可证证书编号">
|
|
|
+ <el-input v-model="formData.SafetyLicense" :class="changedForm['SafetyLicense'] ? 'modified-form-input' : ''"
|
|
|
+ maxlength="200" :readonly="this.formData.Status > '0'" placeholder="请输入" type="textarea"
|
|
|
+ style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="行业特殊要求的认证证书编号">
|
|
|
+ <el-input v-model="formData.SpecIndustryCert" :class="changedForm['SpecIndustryCert'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="this.formData.Status > '0'" placeholder="请输入" maxlength="200" type="textarea"
|
|
|
+ style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="营业范围" prop="BusinessScope">
|
|
|
+ <el-input v-model="formData.BusinessScope" :class="changedForm['BusinessScope'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="!canUpdateSupplier" maxlength="200" placeholder="营业执照上的信息" type="textarea"
|
|
|
+ style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="备注">
|
|
|
+ <el-input v-model="formData.Remark" :class="changedForm['Remark'] ? 'modified-form-input' : ''"
|
|
|
+ :readonly="this.formData.Status > '0'" maxlength="500" placeholder="请输入" type="textarea"
|
|
|
+ style="width: 100%">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="企业情况">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>企业人员结构情况</span>
|
|
|
+ <!-- <span style="float: right;">
|
|
|
+ <el-button type="primary" size="mini" @click="updateNumberEntity">保存人员结构情况</el-button>
|
|
|
+ </span> -->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-form label-width="220px" ref="EntityFormNumber" :model="formDataCert" :disabled="true">
|
|
|
+ <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>
|
|
|
+ <!-- <el-button style="float: right; padding: 3px 0" type="text" @click="equipmentdialog">添加</el-button> -->
|
|
|
+ </div>
|
|
|
+ <equipment-list ref="equipmentList" :data="equipmentList" :SupplierCertId="certId"
|
|
|
+ :SupplierTypeCode="classId" 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>
|
|
|
+ <!-- <el-button style="float: right; padding: 3px 0" type="text" @click="performancedialog">添加</el-button> -->
|
|
|
+ </div>
|
|
|
+ <performance-list ref="performanceList" :data="performanceList" :SupplierCertId="certId" :disabled="true"
|
|
|
+ :SupplierTypeCode="classId" 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>
|
|
|
+ <!-- <el-button style="float: right; padding: 3px 0" type="text" @click="patentdialog">添加</el-button> -->
|
|
|
+ </div>
|
|
|
+ <patent-list ref="patentList" :data="patentList" :SupplierCertId="certId" :SupplierTypeCode="classId"
|
|
|
+ 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>
|
|
|
+ <!-- <el-button style="float: right; padding: 3px 0" type="text" @click="winningdialog">添加</el-button> -->
|
|
|
+ </div>
|
|
|
+ <winning-list ref="winningList" :data="winningList" :SupplierCertId="certId" :SupplierTypeCode="classId"
|
|
|
+ height="360px" style="margin-top: 20px">
|
|
|
+ </winning-list>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+
|
|
|
+ <el-tab-pane label="准入范围" :disabled="!certId">
|
|
|
+ <business-list ref="businessList" :data.sync="businessList" :canadd="false" height="360px"
|
|
|
+ style="margin-top: 20px"></business-list>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="企业资质" :disabled="!certId">
|
|
|
+ <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="false" height="360px"
|
|
|
+ style="margin-top: 20px"></subfile-list>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+
|
|
|
+ <el-tab-pane label="审批流程">
|
|
|
+ <el-card class="box-card" style="height: 800px">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>审批流程</span>
|
|
|
+ </div>
|
|
|
+ <wf-history ref="WfHistory" :entryinfo="entrydetail"></wf-history>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-card>
|
|
|
+ <el-dialog title="审核" :visible.sync="dialogMakeSure">
|
|
|
+ <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
+ <el-form-item label="审核状态">
|
|
|
+ <template>
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1" @change="radioChange">通过</el-radio>
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="0" @change="radioChange">未通过</el-radio>
|
|
|
+ </template>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="意见" :rules="[{ required: true, message: '请输入审批意见', trigger: 'blur' }]">
|
|
|
+ <el-input type="textarea" v-model="shenheForm.AuditorRemark" :placeholder="textplaceholder">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
+ <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="分配" :visible.sync="dialogProfAudit" width="420px">
|
|
|
+ <el-form ref="searchForm" label-width="110px">
|
|
|
+ <el-form-item label="审批人">
|
|
|
+ <el-select ref="selectAuditer" v-model="ProfAuditThen" placeholder="请选择" style="width: 100%" filterable
|
|
|
+ allow-create default-first-option>
|
|
|
+ <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="意见">
|
|
|
+ <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核意见"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="mini" @click="dialogProfAudit = false">取 消</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="checkstatus()">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog title="提交申请" :visible.sync="addshow" width="520px">
|
|
|
+ <el-form label-width="90px" :model="shenheForm" ref="EntityFormref">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="审批状态">
|
|
|
+ <el-radio-group v-model="shenheForm.SuccessStatus">
|
|
|
+ <el-radio :label="1">通过</el-radio>
|
|
|
+ <el-radio :label="0">退回</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 1">
|
|
|
+ <el-form-item label="初审人员">
|
|
|
+ <el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">
|
|
|
+ <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="复审人员">
|
|
|
+ <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
|
|
|
+ allow-create default-first-option>
|
|
|
+ <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <!--<el-form-item label="专业处室">-->
|
|
|
+ <!--<el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable-->
|
|
|
+ <!--style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">-->
|
|
|
+ <!--</el-cascader>-->
|
|
|
+ <!--</el-form-item>-->
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 1">
|
|
|
+ <el-form-item label="备注">
|
|
|
+ <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="请输入备注内容">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 0">
|
|
|
+ <el-form-item label="退回原因">
|
|
|
+ <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="请输入备注内容">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span style="float: right;margin-top:-10px;">
|
|
|
+ <el-button size="small" @click="addshow = false">取 消</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ <br>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog title="变更项查看" :visible.sync="myitemsshow" width="780px">
|
|
|
+ <el-table :data="InfoData" border style="width: 100%">
|
|
|
+ <el-table-column align="center" prop="SelectItemName" label="变更项目">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" prop="BeChangeInfo" label="变更前内容">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ bfdataformat(scope.row) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="ChangeInfo" align="center" label="变更后内容">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ dataformat(scope.row) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
+ <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
+ :visible="chooseAuditorVisible"></choose-auditor>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import {
|
|
|
+ mapGetters
|
|
|
+ } from 'vuex'
|
|
|
+ import annualapi from '@/api/oilsupplier/annualaudit'
|
|
|
+ import api from '@/api/oilsupplier/supplier'
|
|
|
+ import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
+ import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.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 BusinessList from '@/components/oilsupplier/businesslist'
|
|
|
+ import TechInfo from '@/components/oilsupplier/techinfo'
|
|
|
+ import AuditbusList from '@/components/oilsupplier/auditbuslist'
|
|
|
+ import SubfileList from '@/components/oilsupplier/subfilelist'
|
|
|
+ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
+ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
+ import _ from 'lodash'
|
|
|
+
|
|
|
+ export default {
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ authUser: 'authUser'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ SupplierFileTable,
|
|
|
+ WfHistory,
|
|
|
+ SupplierCertEdit,
|
|
|
+ SubfileList, // 选择企业资质
|
|
|
+ EquipmentList, // 企业主要设备
|
|
|
+ PerformanceList, // 近三年主要业绩列表
|
|
|
+ PatentList, // 专利及专有技术列表
|
|
|
+ WinningList, // 近三年省部级及以上获奖项目列表
|
|
|
+ BusinessList, // 选择准入范围
|
|
|
+ AuditbusList, // 待审核业务
|
|
|
+ TechInfo,
|
|
|
+ ChooseAuditor
|
|
|
+ },
|
|
|
+ name: 'oiltechnologyserviceEdit',
|
|
|
+
|
|
|
+ watch: {
|
|
|
+ formData: {
|
|
|
+ handler (newValue) {
|
|
|
+ this.comparevalue(newValue)
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ data () {
|
|
|
+ var checkemail = (rule, value, callback) => {
|
|
|
+ if (value) {
|
|
|
+ let re = /^([a-zA-Z0-9]+[_|-|.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|-|.|-]?)*[a-zA-Z0-9]+.[a-zA-Z]{2,3}$/
|
|
|
+ if (!re.test(value)) {
|
|
|
+ callback(new Error('请输入正确的邮箱地址'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ var checkCommercialNo = (rule, value, callback) => {
|
|
|
+ if (!value) {
|
|
|
+ callback(new Error('请输入统一社会信用代码'))
|
|
|
+ } else {
|
|
|
+ if (this.showorhidflag === 'hid') {
|
|
|
+ let re = /^[^_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$/g
|
|
|
+ if (!re.test(value)) {
|
|
|
+ callback(new Error('请输入正确的统一社会信用代码'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 查找是否有公司信息,若有则补全信息。
|
|
|
+ var checkSupplierName = (rule, value, callback) => {
|
|
|
+ if (!value) {
|
|
|
+ callback(new Error('请输入供方名称'))
|
|
|
+ } else {
|
|
|
+ // this.searchSupplierName();
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 检查邮编格式
|
|
|
+ var checkZipCode = (rule, value, callback) => {
|
|
|
+ if (!value) {
|
|
|
+ callback(new Error('请输入邮编'))
|
|
|
+ } else {
|
|
|
+ let re = /^[1-9]\d{5}$/
|
|
|
+ if (!re.test(value)) {
|
|
|
+ callback(new Error('请输入正确的邮编'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 检查手机号
|
|
|
+ var checkMobile = (rule, value, callback) => {
|
|
|
+ if (!value) {
|
|
|
+ callback(new Error('请输入手机号码'))
|
|
|
+ } else {
|
|
|
+ let re = /^1[3456789]\d{9}$/
|
|
|
+ if (!re.test(value)) {
|
|
|
+ callback(new Error('请输入正确的手机号码'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 注册资金限制
|
|
|
+ var checkMoney = (rule, value, callback) => {
|
|
|
+ if (!value) {
|
|
|
+ return callback(new Error('注册资金不能为空'))
|
|
|
+ } else {
|
|
|
+ if (value < 1) {
|
|
|
+ callback(new Error('注册资金至少为1'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 固话检验
|
|
|
+ var checkTelphone = (rule, value, callback) => {
|
|
|
+ if (!value) {
|
|
|
+ callback(new Error('请输入固话号码'))
|
|
|
+ } else {
|
|
|
+ let re = /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/
|
|
|
+ if (!re.test(value)) {
|
|
|
+ callback(new Error('请输入正确的固话格式为:0000-0000000'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 传真检验
|
|
|
+ var checkFax = (rule, value, callback) => {
|
|
|
+ if (!value) {
|
|
|
+ callback()
|
|
|
+ } else {
|
|
|
+ let re = /^((0\d{2,3}-\d{7,8})|(1[35874]\d{9}))$/
|
|
|
+ if (!re.test(value)) {
|
|
|
+ callback(new Error('请输入正确的传真格式为:区号-0000000'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ AccessCardNo: '',
|
|
|
+ InStyle: '',
|
|
|
+ InfoData: [],
|
|
|
+ CurrencyOptions: [],
|
|
|
+ CompanyTypeOptions: [],
|
|
|
+ CityAry: [],
|
|
|
+ LinkCityAry: [],
|
|
|
+ address: [],
|
|
|
+ OperTypeOptions: [],
|
|
|
+ linkaddress: [],
|
|
|
+ countryListOptions: [],
|
|
|
+ ManagementUnitOptions: [],
|
|
|
+ UnitRelationOptions: [],
|
|
|
+ InOptions: [],
|
|
|
+ countryoptions: [],
|
|
|
+ infochangeItemList: [],
|
|
|
+ copyformdata: '',
|
|
|
+ infochangeForm: {
|
|
|
+ SelectItem: '',
|
|
|
+ SelectItemName: '',
|
|
|
+ BeChangeInfo: '',
|
|
|
+ ChangeInfo: ''
|
|
|
+ },
|
|
|
+ showorhidflag: 'hid',
|
|
|
+ myitemsshow: false,
|
|
|
+ GradeOptions: [{
|
|
|
+ value: '1',
|
|
|
+ label: '一级'
|
|
|
+ }, {
|
|
|
+ value: '2',
|
|
|
+ label: '二级'
|
|
|
+ }],
|
|
|
+ selectoptions: [{
|
|
|
+ value: '1',
|
|
|
+ label: '三证合一'
|
|
|
+ }, {
|
|
|
+ value: '2',
|
|
|
+ label: '五证合一'
|
|
|
+ }, {
|
|
|
+ value: '3',
|
|
|
+ label: '常规'
|
|
|
+ }],
|
|
|
+ countryprops: {
|
|
|
+ value: 'adcode',
|
|
|
+ label: 'name',
|
|
|
+ children: 'districts'
|
|
|
+ },
|
|
|
+ HSEOptions: [{
|
|
|
+ value: '1',
|
|
|
+ label: '是'
|
|
|
+ }, {
|
|
|
+ value: '0',
|
|
|
+ label: '否'
|
|
|
+ }],
|
|
|
+ addshow: false,
|
|
|
+ chooseAuditorVisible: false,
|
|
|
+ auditer: '',
|
|
|
+ auditerName: '',
|
|
|
+ fushenauditer: '',
|
|
|
+ auditBtn: false,
|
|
|
+ textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
|
|
|
+ audithistoryshow: false,
|
|
|
+ dialogProfAudit: false,
|
|
|
+ canUpdateSupplier: true,
|
|
|
+ dictData: null,
|
|
|
+ applyLoading: false,
|
|
|
+ userOptions: [],
|
|
|
+ subfileList: [],
|
|
|
+ majorDept: [100000000, 100000001, 100000071],
|
|
|
+ auditbusList: [], // 待审核业务
|
|
|
+ secauditerOptions: [], // 专业审批人
|
|
|
+ secorgtreelist: [], // 专业审核人部门
|
|
|
+ orgtreelist: [], // 专业审核部门
|
|
|
+ equipmentList: [], // 企业主要设备
|
|
|
+ performanceList: [], // 近三年主要业绩
|
|
|
+ patentList: [], // 专利及专有技术
|
|
|
+ winningList: [], // 近三年省部级及以上获奖项目
|
|
|
+ businessList: [], // 准入业务
|
|
|
+ serviceId: '',
|
|
|
+ certId: '',
|
|
|
+ classId: '',
|
|
|
+ annualId: '',
|
|
|
+ WorkflowId: '',
|
|
|
+ ProfAuditThen: '',
|
|
|
+ Step: 0,
|
|
|
+ formData: {
|
|
|
+ Id: '',
|
|
|
+ SupplierName: '',
|
|
|
+ OilCertificateNo: '',
|
|
|
+ Grade: '',
|
|
|
+ MgrUnit: '',
|
|
|
+ OperType: '',
|
|
|
+ Country: '',
|
|
|
+ MaunAgent: '',
|
|
|
+ ConstructTeam: '',
|
|
|
+ CommercialNo: '',
|
|
|
+ OrganCode: '',
|
|
|
+ CountryTaxNo: '',
|
|
|
+ LocalTaxNo: '',
|
|
|
+ Address: '',
|
|
|
+ Province: '',
|
|
|
+ City: '',
|
|
|
+ Street: '',
|
|
|
+ HouseNo: '',
|
|
|
+ ZipCode: '',
|
|
|
+ LinkAddress: '',
|
|
|
+ LinkProvince: '',
|
|
|
+ LinkCity: '',
|
|
|
+ LinkStreet: '',
|
|
|
+ LinkHouseNo: '',
|
|
|
+ LinkZipCode: '',
|
|
|
+ QualitySystemCert: '',
|
|
|
+ ProductQualityCert: '',
|
|
|
+ MaunLicense: '',
|
|
|
+ QualifCert: '',
|
|
|
+ QualifCertLevel: '',
|
|
|
+ SafetyLicense: '',
|
|
|
+ TechServiceLic: '',
|
|
|
+ TJInNotify: '',
|
|
|
+ SpecIndustryCert: '',
|
|
|
+ LegalPerson: '',
|
|
|
+ CategoryCode: '',
|
|
|
+ CategoryName: '',
|
|
|
+ RegCapital: '',
|
|
|
+ Currency: '',
|
|
|
+ ContactName: '',
|
|
|
+ CompanyType: '',
|
|
|
+ SetupTime: null,
|
|
|
+ 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: '',
|
|
|
+ SupplierTypeName: '',
|
|
|
+ Step: 0,
|
|
|
+ HseTraining: 0
|
|
|
+ },
|
|
|
+ formDatacp: {
|
|
|
+ Id: '',
|
|
|
+ SupplierName: '',
|
|
|
+ OilCertificateNo: '',
|
|
|
+ Grade: '',
|
|
|
+ MgrUnit: '',
|
|
|
+ OperType: '',
|
|
|
+ Country: '',
|
|
|
+ MaunAgent: '',
|
|
|
+ ConstructTeam: '',
|
|
|
+ CommercialNo: '',
|
|
|
+ OrganCode: '',
|
|
|
+ CountryTaxNo: '',
|
|
|
+ LocalTaxNo: '',
|
|
|
+ Address: '',
|
|
|
+ Province: '',
|
|
|
+ City: '',
|
|
|
+ Street: '',
|
|
|
+ HouseNo: '',
|
|
|
+ ZipCode: '',
|
|
|
+ LinkAddress: '',
|
|
|
+ LinkProvince: '',
|
|
|
+ LinkCity: '',
|
|
|
+ LinkStreet: '',
|
|
|
+ LinkHouseNo: '',
|
|
|
+ LinkZipCode: '',
|
|
|
+ QualitySystemCert: '',
|
|
|
+ ProductQualityCert: '',
|
|
|
+ MaunLicense: '',
|
|
|
+ QualifCert: '',
|
|
|
+ QualifCertLevel: '',
|
|
|
+ SafetyLicense: '',
|
|
|
+ TechServiceLic: '',
|
|
|
+ TJInNotify: '',
|
|
|
+ SpecIndustryCert: '',
|
|
|
+ LegalPerson: '',
|
|
|
+ CategoryCode: '',
|
|
|
+ CategoryName: '',
|
|
|
+ RegCapital: '',
|
|
|
+ Currency: '',
|
|
|
+ ContactName: '',
|
|
|
+ CompanyType: '',
|
|
|
+ SetupTime: null,
|
|
|
+ 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: '',
|
|
|
+ SupplierTypeName: '',
|
|
|
+ Step: 0,
|
|
|
+ HseTraining: 0
|
|
|
+ },
|
|
|
+ changedForm: {
|
|
|
+ SupplierName: false,
|
|
|
+ SpecTypeCode: false,
|
|
|
+ Country: false,
|
|
|
+ InStyle: false,
|
|
|
+ MgrUnit: false,
|
|
|
+ PACNumber: false,
|
|
|
+ CredentialFlag: false,
|
|
|
+ CommercialNo: false,
|
|
|
+ CountryTaxNo: false,
|
|
|
+ OrganCode: false,
|
|
|
+ Province: false,
|
|
|
+ Address: false,
|
|
|
+ ZipCode: false,
|
|
|
+ LinkProvince: false,
|
|
|
+ LinkAddress: false,
|
|
|
+ LinkZipCode: false,
|
|
|
+ LegalPerson: false,
|
|
|
+ CompanyType: false,
|
|
|
+ RegCapital: false,
|
|
|
+ SetupTime: false,
|
|
|
+ DepositBank: false,
|
|
|
+ BankAccount: false,
|
|
|
+ ContactName: false,
|
|
|
+ Mobile: false,
|
|
|
+ Telphone: false,
|
|
|
+ Fax: false,
|
|
|
+ CompanyTel: false,
|
|
|
+ EMail: false,
|
|
|
+ BankCreditRating: false,
|
|
|
+ HseTraining: false,
|
|
|
+ QualitySystemCert: false,
|
|
|
+ ProductQualityCert: false,
|
|
|
+ MaunLicense: false,
|
|
|
+ SupplierCertificate: false,
|
|
|
+ SafetyLicense: false,
|
|
|
+ SpecIndustryCert: false,
|
|
|
+ BusinessScope: false,
|
|
|
+ Remark: false
|
|
|
+ },
|
|
|
+ AnnualStatus: '',
|
|
|
+ dialogMakeSure: false,
|
|
|
+ shenheForm: {
|
|
|
+ SuccessStatus: 1,
|
|
|
+ AuditorRemark: '',
|
|
|
+ AnnualId: 0
|
|
|
+ },
|
|
|
+ orgtreeprops: {
|
|
|
+ value: 'id',
|
|
|
+ label: 'name',
|
|
|
+ children: 'children'
|
|
|
+ },
|
|
|
+ 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_audit_apply',
|
|
|
+ business: '',
|
|
|
+ instance: '',
|
|
|
+ Status: ''
|
|
|
+ },
|
|
|
+ anndata: [],
|
|
|
+ auditstepcode: '',
|
|
|
+ rulesform: {
|
|
|
+ Mobile: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkMobile,
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+
|
|
|
+ Telphone: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkTelphone,
|
|
|
+ trigger: 'blur'
|
|
|
+ }],
|
|
|
+ Fax: [{
|
|
|
+ required: false,
|
|
|
+ validator: checkFax,
|
|
|
+ trigger: 'blur'
|
|
|
+ }],
|
|
|
+ BusinessScope: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入营业范围',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ ZipCode: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkZipCode,
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ LinkZipCode: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkZipCode,
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ SupplierName: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkSupplierName,
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ Country: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入国家',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ CommercialNo: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkCommercialNo,
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ CountryTaxNo: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入税务登记证编号',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ CompanyType: [{
|
|
|
+ required: true,
|
|
|
+ message: '请选择公司类型',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ LegalPerson: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入法定代表人姓名',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ Province: [{
|
|
|
+ required: true,
|
|
|
+ message: '请选择省市区',
|
|
|
+ trigger: 'blur'
|
|
|
+ }],
|
|
|
+ Address: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入注册地址',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ EMail: [{
|
|
|
+ required: false,
|
|
|
+ validator: checkemail,
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ OrganCode: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入组织机构代码',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+
|
|
|
+ RegCapital: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkMoney,
|
|
|
+ trigger: 'change'
|
|
|
+ } ],
|
|
|
+ DepositBank: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入开户银行',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ BankAccount: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入银行账号',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ ContactName: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入联系人姓名',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ CompanyTel: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入财务电话',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+
|
|
|
+ LinkProvince: [{
|
|
|
+ required: true,
|
|
|
+ message: '请选择省市区',
|
|
|
+ trigger: 'blur'
|
|
|
+ }],
|
|
|
+ LinkAddress: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入通信地址',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ realname: [{
|
|
|
+ required: true,
|
|
|
+ message: '用户名',
|
|
|
+ trigger: 'blur'
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created () {
|
|
|
+ this.companyid = this.authUser.Profile.Superior
|
|
|
+ this.serviceId = this.$route.params.opera
|
|
|
+ if (this.$route.query.certid) {
|
|
|
+ this.certId = this.$route.query.certid + ''
|
|
|
+ }
|
|
|
+
|
|
|
+ this.AnnualStatus = this.$route.query.AnnualStatus
|
|
|
+ this.WorkflowId = this.$route.query.WorkflowId + ''
|
|
|
+ this.annualId = this.$route.query.annualId
|
|
|
+ this.Step = parseInt(this.$route.query.Step)
|
|
|
+ // this.getDictOptions()
|
|
|
+ this.formData.Id = this.serviceId
|
|
|
+ this.initDatas()
|
|
|
+ this.getorgtreelist()
|
|
|
+ this.getannualdata()
|
|
|
+ // this.getorgtreelistbydeptid()
|
|
|
+ // this.orgtreeChange(this.majorDept)
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ fenbanBtn () {
|
|
|
+ this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
+ this.addshow = true
|
|
|
+ },
|
|
|
+ orgtreeChange (val) {
|
|
|
+ this.userOptions = []
|
|
|
+ if (val) {
|
|
|
+ let deptid = val[val.length - 1]
|
|
|
+ let auditstepcode = 'PROF_RECE'
|
|
|
+ api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.userOptions = res.data.item
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ chooseAuditorShow () {
|
|
|
+ this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
+ this.chooseAuditorVisible = true
|
|
|
+ },
|
|
|
+ getstatus (annid) {
|
|
|
+ annualapi.getEntity(annid, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.formannData = res.data
|
|
|
+ this.AnnualStatus = this.formannData.Status
|
|
|
+ this.entrydetail.business = this.formannData.Id
|
|
|
+ this.entrydetail.instance = this.formannData.WorkflowId
|
|
|
+ this.entrydetail.Status = this.formannData.Status
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ setAuditer (val, name) {
|
|
|
+ this.auditer = val
|
|
|
+ this.auditerName = name
|
|
|
+ this.chooseAuditorVisible = false
|
|
|
+ this.auditOrgChang(this.auditer)
|
|
|
+ },
|
|
|
+ auditOrgChang (val) {
|
|
|
+ let auditstepcode = 'SECOND_TRIAL'
|
|
|
+ api
|
|
|
+ .getAuditerByFirst(val, auditstepcode, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.secauditerOptions = res.data.item
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ inputCompany (val) {
|
|
|
+ if (!this.certId) {
|
|
|
+ api.getEntityByName(val, this.$axios).then(res => {
|
|
|
+ if (res.data && res.data.Id) {
|
|
|
+ this.SetFormData(res.data)
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getannualdata () {
|
|
|
+ annualapi.getEntity(this.annualId, this.$axios).then(res => {
|
|
|
+ this.anndata = res.data
|
|
|
+ if (this.anndata) {
|
|
|
+ this.entrydetail.business = this.anndata.Id + ''
|
|
|
+ this.entrydetail.instance = this.anndata.WorkflowId + ''
|
|
|
+ this.entrydetail.Status = this.anndata.Status + ''
|
|
|
+ this.AnnualStatus = this.anndata.Status + ''
|
|
|
+ if (this.anndata.Status === '1') {
|
|
|
+ this.auditstepcode = 'FIRST_TRIAL'
|
|
|
+ } else if (this.anndata.Status === '2') {
|
|
|
+ this.auditstepcode = 'SECOND_TRIAL'
|
|
|
+ } else if (this.anndata.Status === '3') {
|
|
|
+ this.auditstepcode = 'PROF_RECE'
|
|
|
+ } else if (this.anndata.Status === '4') {
|
|
|
+ this.auditstepcode = 'PROF_AUDIT'
|
|
|
+ } else if (this.anndata.Status === '10') {
|
|
|
+ if (this.anndata.SupplierTypeName === '01') {
|
|
|
+ this.auditstepcode = 'SUB_OFFICE_WZ'
|
|
|
+ } else if (this.anndata.SupplierTypeName === '02') {
|
|
|
+ this.auditstepcode = 'SUB_OFFICE_JS'
|
|
|
+ } else if (this.anndata.SupplierTypeName === '03') {
|
|
|
+ this.auditstepcode = 'SUB_OFFICE_JF'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.isAccess()
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ isAccess () {
|
|
|
+ let params = {
|
|
|
+ id: this.anndata.Id,
|
|
|
+ auditstepcode: this.auditstepcode,
|
|
|
+ processkey: this.entrydetail.process
|
|
|
+ }
|
|
|
+ apiCert.isAccess(params, this.$axios).then(res => {
|
|
|
+ this.auditBtn = res.data
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ changeFormData (fdata) {
|
|
|
+ if (!this.certId) {
|
|
|
+ this.SetFormData(fdata)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ radioChange () {
|
|
|
+ if (this.shenheForm.SuccessStatus === 1) {
|
|
|
+ this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
|
|
|
+ } else {
|
|
|
+ this.textplaceholder = '退回意见不能少于5个字'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ SetFormData (fdata) {
|
|
|
+ this.isCanUpdateSupplier(fdata.Id)
|
|
|
+ this.formData.Id = fdata.Id
|
|
|
+ this.formData.SupplierName = fdata.SupplierName
|
|
|
+ this.formData.OilCertificateNo = fdata.OilCertificateNo
|
|
|
+ this.formData.Grade = fdata.Grade
|
|
|
+ this.formData.MgrUnit = fdata.MgrUnit
|
|
|
+ this.formData.OperType = fdata.OperType
|
|
|
+ this.formData.Country = fdata.Country
|
|
|
+ this.formData.MaunAgent = fdata.MaunAgent
|
|
|
+ this.formData.ConstructTeam = fdata.ConstructTeam
|
|
|
+ this.formData.CommercialNo = fdata.CommercialNo
|
|
|
+ this.formData.OrganCode = fdata.OrganCode
|
|
|
+ this.formData.CountryTaxNo = fdata.CountryTaxNo
|
|
|
+ this.formData.LocalTaxNo = fdata.LocalTaxNo
|
|
|
+ this.formData.Address = fdata.Address
|
|
|
+ this.formData.Province = fdata.Province
|
|
|
+ this.formData.City = fdata.City
|
|
|
+ this.formData.Street = fdata.Street
|
|
|
+ this.formData.HouseNo = fdata.HouseNo
|
|
|
+ this.formData.ZipCode = fdata.ZipCode
|
|
|
+ this.formData.LinkAddress = fdata.LinkAddress
|
|
|
+ this.formData.LinkProvince = fdata.LinkProvince
|
|
|
+ this.formData.LinkCity = fdata.LinkCity
|
|
|
+ this.formData.LinkStreet = fdata.LinkStreet
|
|
|
+ this.formData.LinkHouseNo = fdata.LinkHouseNo
|
|
|
+ this.formData.LinkZipCode = fdata.LinkZipCode
|
|
|
+ this.formData.LegalPerson = fdata.LegalPerson
|
|
|
+ this.formData.CategoryCode = fdata.CategoryCode
|
|
|
+ this.formData.CategoryName = fdata.CategoryName
|
|
|
+ this.formData.RegCapital = fdata.RegCapital
|
|
|
+ this.formData.Currency = fdata.Currency
|
|
|
+ this.formData.ContactName = fdata.ContactName
|
|
|
+ this.formData.CompanyType = fdata.CompanyType
|
|
|
+ this.formData.SetupTime = fdata.SetupTime
|
|
|
+ this.formData.DepositBank = fdata.DepositBank
|
|
|
+ this.formData.BankAccount = fdata.BankAccount
|
|
|
+ this.formData.EMail = fdata.EMail
|
|
|
+ this.formData.BankCreditRating = fdata.BankCreditRating
|
|
|
+ this.formData.Mobile = fdata.Mobile
|
|
|
+ this.formData.Telphone = fdata.Telphone
|
|
|
+ this.formData.Fax = fdata.Fax
|
|
|
+ this.formData.CompanyTel = fdata.CompanyTel
|
|
|
+ this.formData.QQ = fdata.QQ
|
|
|
+ this.formData.CompanyUrl = fdata.CompanyUrl
|
|
|
+ this.formData.HseTraining = fdata.HseTraining
|
|
|
+ this.formData.SpecTypeCode = fdata.SpecTypeCode
|
|
|
+ // this.$refs['TechInfo'].CityAry = []
|
|
|
+ // this.$refs['TechInfo'].CityAry.push(this.formData.Province)
|
|
|
+ // this.$refs['TechInfo'].CityAry.push(this.formData.City)
|
|
|
+ // this.$refs['TechInfo'].CityAry.push(this.formData.Street)
|
|
|
+ // this.$refs['TechInfo'].LinkCityAry = []
|
|
|
+ // this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
+ // this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
+ // this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
+ // this.$refs['TechInfo'].UnitRelationAry = []
|
|
|
+ // if (this.formData.SpecTypeCode.length > 0) {
|
|
|
+ // this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
|
|
|
+ // }
|
|
|
+ },
|
|
|
+
|
|
|
+ isCanUpdateSupplier (supplierId) {
|
|
|
+ api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
|
|
|
+ this.canUpdateSupplier = (res.data.code === 0)
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ equipmentdialog () {
|
|
|
+ this.$refs['equipmentList'].showDialog()
|
|
|
+ },
|
|
|
+ performancedialog () {
|
|
|
+ this.$refs['performanceList'].showDialog()
|
|
|
+ },
|
|
|
+ patentdialog () {
|
|
|
+ this.$refs['patentList'].showDialog()
|
|
|
+ },
|
|
|
+ winningdialog () {
|
|
|
+ this.$refs['winningList'].showDialog()
|
|
|
+ },
|
|
|
+ initDatas () {
|
|
|
+ this.isCanUpdateSupplier(this.formData.Id)
|
|
|
+ if (this.formData.Id) {
|
|
|
+ api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
+ // this.formData = res.data
|
|
|
+ this.AccessCardNo = res.data.AccessCardNo
|
|
|
+ this.InStyle = res.data.InStyle
|
|
|
+ this.formDatacp = res.data
|
|
|
+ this.formDataCert.WorkerTotal = this.formDatacp.WorkerTotal
|
|
|
+ this.formDataCert.ContractNum = this.formDatacp.ContractNum
|
|
|
+ this.formDataCert.UniversityNum = this.formDatacp.UniversityNum
|
|
|
+ this.formDataCert.TechnicalNum = this.formDatacp.TechnicalNum
|
|
|
+ this.formDataCert.AboveProfNum = this.formDatacp.AboveProfNum
|
|
|
+ this.formDataCert.MiddleProfNum = this.formDatacp.MiddleProfNum
|
|
|
+ this.formDataCert.NationalRegNum = this.formDatacp.NationalRegNum
|
|
|
+ this.formDataCert.NationalCertTotal = this.formDatacp.NationalCertTotal
|
|
|
+ this.formDataCert.DesignerTotal = this.formDatacp.DesignerTotal
|
|
|
+ this.formDataCert.SkillerTotal = this.formDatacp.SkillerTotal
|
|
|
+ this.formDataCert.Status = this.formDatacp.Status
|
|
|
+ this.formDataCert.WorkflowId = this.formDatacp.WorkflowId
|
|
|
+ // this.$refs['TechInfo'].CityAry = []
|
|
|
+ // this.$refs['TechInfo'].CityAry.push(this.formData.Province)
|
|
|
+ // this.$refs['TechInfo'].CityAry.push(this.formData.City)
|
|
|
+ // this.$refs['TechInfo'].CityAry.push(this.formData.Street)
|
|
|
+ // this.$refs['TechInfo'].LinkCityAry = []
|
|
|
+ // this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
+ // this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
+ // this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
+ // this.$refs['TechInfo'].UnitRelationAry = []
|
|
|
+ // if (this.formData.SpecTypeCode.length > 0) {
|
|
|
+ // this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
|
|
|
+ // }
|
|
|
+ this.GetItemsDatas()
|
|
|
+ this.GetChangeEntity(res.data.Id)
|
|
|
+ this.$refs['equipmentList'].getvalue(this.formDatacp.Id, this.formDatacp.SupplierTypeCode, this.certId)
|
|
|
+ this.$refs['performanceList'].getvalue(this.formDatacp.Id, this.formDatacp.SupplierTypeCode, this.certId)
|
|
|
+ this.$refs['patentList'].getvalue(this.formDatacp.Id, this.formDatacp.SupplierTypeCode, this.certId)
|
|
|
+ this.$refs['winningList'].getvalue(this.formDatacp.Id, this.formDatacp.SupplierTypeCode, this.certId)
|
|
|
+ this.$refs['businessList'].getvalue(this.formDatacp.Id, this.formDatacp.SupplierTypeCode, this.certId)
|
|
|
+ this.$refs['subfileList'].getvalue(this.formDatacp.Id, this.formDatacp.SupplierTypeCode, this.certId)
|
|
|
+ if (this.certId && this.WorkflowId) {
|
|
|
+ this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ GetChangeEntity (Id) {
|
|
|
+ let params = {
|
|
|
+ InfomainId: this.annualId
|
|
|
+ }
|
|
|
+ annualapi.GetChangeEntity(Id, params, this.$axios).then(res => {
|
|
|
+ console.log(res, '=====')
|
|
|
+ this.copyformdata = _.cloneDeep(res.data[0])
|
|
|
+ this.formData = res.data[1]
|
|
|
+ console.log(this.copyformdata, 'this.copyformdata')
|
|
|
+ this.CityAry = []
|
|
|
+ this.CityAry.push(this.formData.Province)
|
|
|
+ this.CityAry.push(this.formData.City)
|
|
|
+ this.CityAry.push(this.formData.Street)
|
|
|
+ this.LinkCityAry = []
|
|
|
+ this.LinkCityAry.push(this.formData.LinkProvince)
|
|
|
+ this.LinkCityAry.push(this.formData.LinkCity)
|
|
|
+ this.LinkCityAry.push(this.formData.LinkStreet)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ itemsshow () {
|
|
|
+ this.myitemsshow = true
|
|
|
+ },
|
|
|
+ GetItemsDatas () {
|
|
|
+ if (this.annualId) {
|
|
|
+ annualapi.getEntityThen(this.annualId, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.InfoData = []
|
|
|
+ this.infochangedata = res.data.items
|
|
|
+ if (this.infochangedata) {
|
|
|
+ for (var i = 0; i < this.infochangedata.length; i++) {
|
|
|
+ if (this.infochangedata[i].SelectItem !== 'Province' && this.infochangedata[i].SelectItem !==
|
|
|
+ 'City' && this.infochangedata[i].SelectItem !== 'Street' && this.infochangedata[i].SelectItem !== 'LinkProvince' &&
|
|
|
+ this.infochangedata[i].SelectItem !== 'LinkCity' &&
|
|
|
+ this.infochangedata[i].SelectItem !== 'LinkStreet') {
|
|
|
+ this.InfoData.push(this.infochangedata[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 审批历史
|
|
|
+ auhistory () {
|
|
|
+ this.audithistoryshow = true
|
|
|
+ },
|
|
|
+
|
|
|
+ getDictOptions () {
|
|
|
+ annualapi.getDictList(this.$axios).then(res => {
|
|
|
+ this.dictData = res.data.items
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getbuslist () {
|
|
|
+ this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
+ },
|
|
|
+
|
|
|
+ getorgtreelist () {
|
|
|
+ let params = {
|
|
|
+ IsInnerOrganize: 1
|
|
|
+ }
|
|
|
+ api.getDictListByStatus(params, this.$axios).then(res => {
|
|
|
+ this.dictData = res.data.items
|
|
|
+ this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
|
|
|
+ this.OperTypeOptions = res.data.items['OperType']
|
|
|
+ this.UnitRelationOptions = res.data.items['UnitRelation']
|
|
|
+ this.CompanyTypeOptions = res.data.items['CompanyType']
|
|
|
+ this.CurrencyOptions = res.data.items['CurrencyType']
|
|
|
+ this.getCountryList(res.data.items['CountryList'])
|
|
|
+ this.getCityList(res.data.items['GaodeMapChinaAreas'])
|
|
|
+ this.InOptions = res.data.items['InOptions']
|
|
|
+ this.ManagementUnitOptions = res.data.items['ManagementUnit']
|
|
|
+ this.InOptions = res.data.items['InOptions']
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getCityList (val) {
|
|
|
+ let resultData = JSON.parse(val)
|
|
|
+ let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
|
+ // eslint-disable-next-line no-useless-escape
|
|
|
+ countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
|
|
|
+ this.countryoptions = JSON.parse(countstr)
|
|
|
+ },
|
|
|
+ getCountryList (val) {
|
|
|
+ let tmpJson = JSON.parse(val)
|
|
|
+ this.countryListOptions = []
|
|
|
+ for (let idx in tmpJson) {
|
|
|
+ this.countryListOptions.push({
|
|
|
+ label: tmpJson[idx].split('-')[0],
|
|
|
+ value: tmpJson[idx].split('-')[1],
|
|
|
+ code: tmpJson[idx].split('-')[2],
|
|
|
+ key: tmpJson[idx]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleAreaChange (value) {
|
|
|
+ this.formData.Province = value[0]
|
|
|
+ this.formData.City = value[1]
|
|
|
+ this.formData.Street = value[2]
|
|
|
+ // this.formData.ZipCode = value[2]
|
|
|
+ this.address = this.$refs['cascaderAdd'].currentLabels
|
|
|
+ this.formData.AllAddress = this.address[0] + '/' + this.address[1] + '/' + this.address[2]
|
|
|
+ },
|
|
|
+ bfdataformat (val) {
|
|
|
+ // debugger
|
|
|
+ if (val.SelectItem === 'SpecTypeCode') {
|
|
|
+ if (val.BeChangeInfo === '1') {
|
|
|
+ return '一般外部'
|
|
|
+ } else if (val.BeChangeInfo === '2') {
|
|
|
+ return '多元内部'
|
|
|
+ }
|
|
|
+ } else if (val.SelectItem === 'InStyle') {
|
|
|
+ if (val.BeChangeInfo === '1') {
|
|
|
+ return '评审准入'
|
|
|
+ } else if (val.BeChangeInfo === '2') {
|
|
|
+ return '一级物资备案准入'
|
|
|
+ } else if (val.BeChangeInfo === '3') {
|
|
|
+ return '二级物资备案准入'
|
|
|
+ } else if (val.BeChangeInfo === '4') {
|
|
|
+ return '战略合作准入'
|
|
|
+ } else if (val.BeChangeInfo === '5') {
|
|
|
+ return '内部多元准入'
|
|
|
+ }
|
|
|
+ } else if (val.SelectItem === 'CredentialFlag') {
|
|
|
+ if (val.BeChangeInfo === '1') {
|
|
|
+ return '三证合一'
|
|
|
+ } else if (val.BeChangeInfo === '2') {
|
|
|
+ return '五证合一'
|
|
|
+ } else if (val.BeChangeInfo === '3') {
|
|
|
+ return '常规'
|
|
|
+ }
|
|
|
+ } else if (val.SelectItem === 'SetupTime') {
|
|
|
+ if (val.BeChangeInfo === '') {
|
|
|
+ return '----'
|
|
|
+ } else if (val.BeChangeInfo === '0001-01-01T08:00:00+08:00') {
|
|
|
+ return '----'
|
|
|
+ } else if (val.BeChangeInfo === '5000-01-01T23:59:59+08:00') {
|
|
|
+ return '永久'
|
|
|
+ } else {
|
|
|
+ let val2 = val.BeChangeInfo.replace('T', ' ')
|
|
|
+ return val2.substring(0, 10)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return val.BeChangeInfo
|
|
|
+ }
|
|
|
+ },
|
|
|
+ dataformat (val) {
|
|
|
+ // debugger
|
|
|
+ if (val.SelectItem === 'SpecTypeCode') {
|
|
|
+ if (val.ChangeInfo === '1') {
|
|
|
+ return '一般外部'
|
|
|
+ } else if (val.ChangeInfo === '2') {
|
|
|
+ return '多元内部'
|
|
|
+ }
|
|
|
+ } else if (val.SelectItem === 'InStyle') {
|
|
|
+ if (val.ChangeInfo === '1') {
|
|
|
+ return '评审准入'
|
|
|
+ } else if (val.ChangeInfo === '2') {
|
|
|
+ return '一级物资备案准入'
|
|
|
+ } else if (val.ChangeInfo === '3') {
|
|
|
+ return '二级物资备案准入'
|
|
|
+ } else if (val.ChangeInfo === '4') {
|
|
|
+ return '战略合作准入'
|
|
|
+ } else if (val.ChangeInfo === '5') {
|
|
|
+ return '内部多元准入'
|
|
|
+ }
|
|
|
+ } else if (val.SelectItem === 'CredentialFlag') {
|
|
|
+ if (val.ChangeInfo === '1') {
|
|
|
+ return '三证合一'
|
|
|
+ } else if (val.ChangeInfo === '2') {
|
|
|
+ return '五证合一'
|
|
|
+ } else if (val.ChangeInfo === '3') {
|
|
|
+ return '常规'
|
|
|
+ }
|
|
|
+ } else if (val.SelectItem === 'SetupTime') {
|
|
|
+ if (val.ChangeInfo === '') {
|
|
|
+ return '----'
|
|
|
+ } else if (val.ChangeInfo === '0001-01-01T08:00:00+08:00') {
|
|
|
+ return '----'
|
|
|
+ } else if (val.ChangeInfo === '5000-01-01T23:59:59+08:00') {
|
|
|
+ return '永久'
|
|
|
+ } else {
|
|
|
+ let val2 = val.ChangeInfo.replace('T', ' ')
|
|
|
+ return val2.substring(0, 10)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return val.ChangeInfo
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 保存信息
|
|
|
+ saveinfochange () {
|
|
|
+ let AllInfochangeItemList = {
|
|
|
+ SupplierId: this.formData.Id + '',
|
|
|
+ MInfoId: this.annualId,
|
|
|
+ InfochangeForm: this.infochangeItemList
|
|
|
+ }
|
|
|
+ console.log('----', AllInfochangeItemList)
|
|
|
+ annualapi.addInfoChangeItemCh(AllInfochangeItemList, 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)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ GradeChange (val) {
|
|
|
+ if (val === '1') {
|
|
|
+ this.formData.MgrUnit = '中油集团公司'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ showorhid (val) {
|
|
|
+ if (val === '1' || val === '2') {
|
|
|
+ this.showorhidflag = 'hid'
|
|
|
+ this.formData.OrganCode = ''
|
|
|
+ this.formData.CountryTaxNo = ''
|
|
|
+ } else {
|
|
|
+ if (this.formData.CommercialNo !== '') {
|
|
|
+ this.formData.OrganCode = this.formData.CommercialNo
|
|
|
+ this.formData.CountryTaxNo = this.formData.CommercialNo
|
|
|
+ }
|
|
|
+ this.showorhidflag = 'show'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleLinkAreaChange (value) {
|
|
|
+ this.formData.LinkProvince = value[0]
|
|
|
+ this.formData.LinkCity = value[1]
|
|
|
+ this.formData.LinkStreet = value[2]
|
|
|
+ // this.formData.LinkZipCode = value[2]
|
|
|
+ this.linkaddress = this.$refs['cascaderAddrLink'].currentLabels
|
|
|
+ this.formData.LinkAllAddress = this.linkaddress[0] + '/' + this.linkaddress[1] + '/' + this.linkaddress[2]
|
|
|
+ },
|
|
|
+
|
|
|
+ comparevalue (newValue) {
|
|
|
+ let _this = this
|
|
|
+ _this.infochangeItemList = []
|
|
|
+ if (!newValue || !_this.copyformdata) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _.forEach(newValue, function (value, key) {
|
|
|
+ if (_this.copyformdata[key] !== value) {
|
|
|
+ _this.changedForm[key] = true
|
|
|
+ _this.infochangeForm = {}
|
|
|
+ _this.infochangeForm.SelectItem = key
|
|
|
+ _this.infochangeForm.ChangeInfo = value
|
|
|
+ _this.infochangeForm.BeChangeInfo = _this.copyformdata[key]
|
|
|
+ if (_this.infochangeForm.SelectItem === 'SupplierName') {
|
|
|
+ _this.infochangeForm.SelectItemName = '企业名称'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'OperType') {
|
|
|
+ _this.infochangeForm.SelectItemName = '供应商类型'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'SpecTypeCode') {
|
|
|
+ _this.infochangeForm.SelectItemName = '单位关系'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'Country') {
|
|
|
+ _this.infochangeForm.SelectItemName = '国家'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'InStyle') {
|
|
|
+ _this.infochangeForm.SelectItemName = '准入方式'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'MgrUnit') {
|
|
|
+ _this.infochangeForm.SelectItemName = '管理单位'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'PACNumber') {
|
|
|
+ _this.infochangeForm.SelectItemName = '中石油准入证编号'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'CredentialFlag') {
|
|
|
+ _this.infochangeForm.SelectItemName = '证件类型'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'CommercialNo') {
|
|
|
+ _this.infochangeForm.SelectItemName = '统一社会信用代码'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'CountryTaxNo') {
|
|
|
+ _this.infochangeForm.SelectItemName = '税务登记证编号'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'OrganCode') {
|
|
|
+ _this.infochangeForm.SelectItemName = '组织机构代码'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'Address') {
|
|
|
+ _this.infochangeForm.SelectItemName = '注册地址'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'LinkAddress') {
|
|
|
+ _this.infochangeForm.SelectItemName = '通信地址-单位地址'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'ZipCode') {
|
|
|
+ _this.infochangeForm.SelectItemName = '邮编'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'LinkZipCode') {
|
|
|
+ _this.infochangeForm.SelectItemName = '通信地址-邮编'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'LegalPerson') {
|
|
|
+ _this.infochangeForm.SelectItemName = '法定代表人姓名'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'CompanyType') {
|
|
|
+ _this.infochangeForm.SelectItemName = '公司类型'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'SetupTime') {
|
|
|
+ _this.infochangeForm.SelectItemName = '成立时间'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'RegCapital') {
|
|
|
+ _this.infochangeForm.BeChangeInfo = _this.infochangeForm.BeChangeInfo + ''
|
|
|
+ _this.infochangeForm.ChangeInfo = _this.infochangeForm.ChangeInfo + ''
|
|
|
+ _this.infochangeForm.SelectItemName = '注册资本'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'Currency') {
|
|
|
+ _this.infochangeForm.SelectItemName = '币种'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'DepositBank') {
|
|
|
+ _this.infochangeForm.SelectItemName = '开户银行'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'ContactName') {
|
|
|
+ _this.infochangeForm.SelectItemName = '联系人姓名'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'Mobile') {
|
|
|
+ _this.infochangeForm.SelectItemName = '移动电话'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'BankAccount') {
|
|
|
+ _this.infochangeForm.SelectItemName = '银行账号'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'Telphone') {
|
|
|
+ _this.infochangeForm.SelectItemName = '固定电话'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'Fax') {
|
|
|
+ _this.infochangeForm.SelectItemName = '传真'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'CompanyTel') {
|
|
|
+ _this.infochangeForm.SelectItemName = '财务电话'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'EMail') {
|
|
|
+ _this.infochangeForm.SelectItemName = '电子邮箱'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'BankCreditRating') {
|
|
|
+ _this.infochangeForm.SelectItemName = '银行信用等级'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'HseTraining') {
|
|
|
+ _this.infochangeForm.SelectItemName = 'HSE审查培训'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'QualitySystemCert') {
|
|
|
+ _this.infochangeForm.SelectItemName = '质量管理体系认证情况及认证机构'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'ProductQualityCert') {
|
|
|
+ _this.infochangeForm.SelectItemName = '产品质量认证情况及认证机构'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'MaunLicense') {
|
|
|
+ _this.infochangeForm.SelectItemName = '生产/制造许可证获证情况及编号'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'MaunAgent') {
|
|
|
+ _this.infochangeForm.SelectItemName = '所代理制造商名称'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'SupplierCertificate') {
|
|
|
+ _this.infochangeForm.SelectItemName = '中石油物资供应商证书'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'SafetyLicense') {
|
|
|
+ _this.infochangeForm.SelectItemName = '安全生产许可证'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'SpecIndustryCert') {
|
|
|
+ _this.infochangeForm.SelectItemName = '行业特殊要求的认证证书'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'BusinessScope') {
|
|
|
+ _this.infochangeForm.SelectItemName = '营业范围'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'Remark') {
|
|
|
+ _this.infochangeForm.SelectItemName = '备注'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'AllAddress') {
|
|
|
+ _this.infochangeForm.SelectItemName = '注册地址'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'LinkAllAddress') {
|
|
|
+ _this.infochangeForm.SelectItemName = '通信地址'
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'Grade') {
|
|
|
+ _this.infochangeForm.SelectItemName = '级别'
|
|
|
+ }
|
|
|
+
|
|
|
+ _this.infochangeItemList.push(_this.infochangeForm)
|
|
|
+ } else {
|
|
|
+ _this.changedForm[key] = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ getorgtreelistbydeptid () {
|
|
|
+ let _this = this
|
|
|
+ let params = {
|
|
|
+ IsInnerOrganize: 1
|
|
|
+ }
|
|
|
+ _this.$axios.get('organizes/listbydeptid', {
|
|
|
+ params
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ _this.secorgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ auditOrgChange () {
|
|
|
+ let auditstepcode = 'PROF_AUDIT'
|
|
|
+ api.getAuditerByDept(this.authUser.Profile.DepartmentId, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.secauditerOptions = res.data.item
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ annualAudit () {
|
|
|
+ this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
+ this.dialogMakeSure = true
|
|
|
+ },
|
|
|
+ profAudit () {
|
|
|
+ this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
+ this.auditOrgChange()
|
|
|
+ this.dialogProfAudit = true
|
|
|
+ },
|
|
|
+ // 审核通过
|
|
|
+ makeSure () {
|
|
|
+ if (this.shenheForm.SuccessStatus === 1) {
|
|
|
+ if (this.AnnualStatus === '10') {
|
|
|
+ if (this.auditer === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择审批人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.fushenauditer === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择复审人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 20 && this.AnnualStatus && this.AnnualStatus !== '10') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '审批意见不能低于20个字符!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 5) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '退回意见不能低于5个字符!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.checkstatus()
|
|
|
+ },
|
|
|
+ checkstatus () {
|
|
|
+ this.shenheForm.SuccessStatus = parseInt(this.shenheForm.SuccessStatus)
|
|
|
+ let params = {
|
|
|
+ ProfAudit: this.ProfAuditThen,
|
|
|
+ FirstAudit: this.auditer,
|
|
|
+ SecondAudit: this.fushenauditer,
|
|
|
+ ThirdAudit: this.majorDept[this.majorDept.length - 1]
|
|
|
+ }
|
|
|
+ // this.$axios.put('/annualaudit/auditfirst?ProfAudit=' + this.ProfAuditThen, params)
|
|
|
+ annualapi.Auditfirst(this.shenheForm, params, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ // response
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.getannualdata()
|
|
|
+ this.dialogMakeSure = false
|
|
|
+ this.dialogProfAudit = false
|
|
|
+ this.addshow = false
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ // handle error
|
|
|
+ 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'>
|
|
|
+ .modified-form-input {
|
|
|
+ .el-input__inner {
|
|
|
+ background-color: wheat;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-textarea__inner {
|
|
|
+ background-color: wheat;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .formDataInfo .el-input__inner[disabled]{
|
|
|
+ color:black;
|
|
|
+ opacity: 1;
|
|
|
+ background-color: white;
|
|
|
+ }
|
|
|
+ .formDataInfo .el-textarea__inner[disabled]{
|
|
|
+ color:black;
|
|
|
+ opacity: 1;
|
|
|
+ background-color: white;
|
|
|
+ }
|
|
|
+</style>
|