|
@@ -0,0 +1,674 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <!--顶部显示-->
|
|
|
|
|
+ <el-breadcrumb class="heading">
|
|
|
|
|
+ <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
|
|
+ <el-breadcrumb-item>待删除准入项</el-breadcrumb-item>
|
|
|
|
|
+ </el-breadcrumb>
|
|
|
|
|
+
|
|
|
|
|
+ <!--内框顶部显示-->
|
|
|
|
|
+ <el-card class="box-card" style="height: calc(100vh - 115px);position:relative">
|
|
|
|
|
+ <div slot="header">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <i class="icon icon-table2"></i> 待删除准入项查询
|
|
|
|
|
+ </span>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ :model="searchForm"
|
|
|
|
|
+ ref="searchformRef"
|
|
|
|
|
+ :inline="true"
|
|
|
|
|
+ style="float: right;position:absolute;right:15px;top:10.5px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form-item label="准入编码">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.AccessCardNo" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="企业名称">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.SupplierName" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <el-dropdown
|
|
|
|
|
+ split-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="initDatas($event)"
|
|
|
|
|
+ @command="searchCommand"
|
|
|
|
|
+ >
|
|
|
|
|
+ 查询
|
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
|
+ <el-dropdown-item command="search">高级查询</el-dropdown-item>
|
|
|
|
|
+ <el-dropdown-item command="clear">查询重置</el-dropdown-item>
|
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
|
+ </el-dropdown>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <!--<el-button type="primary" size="mini" @click="exportExcel">导出</el-button>-->
|
|
|
|
|
+ <el-button type="warning" size="mini" @click="delSupplierCertSub">删除</el-button>
|
|
|
|
|
+ <router-link :to="'/oilsupplier/goodsaptitude'">
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" >返回</el-button>
|
|
|
|
|
+ </router-link>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <!-- 预留接口 公司基本信息和准入范围 -->
|
|
|
|
|
+ <!-- <el-form-item label="特殊查询">
|
|
|
|
|
+ <el-input size="mini" v-model="Spesearch" placeholder="输入特殊查询"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="ssearch">特殊查询</el-button>
|
|
|
|
|
+ </el-form-item> -->
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!--内框表格显示-->
|
|
|
|
|
+ <el-table id="rebateSetTable" :data="entityList" size="mini" v-loading="loading" border height="calc(100vh - 243px)"
|
|
|
|
|
+ style="width: 100%" @sort-change="orderby" >
|
|
|
|
|
+ <el-table-column label="操作" width="260px" align="center" fixed="right" show-overflow-tooltip>
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button type="text" @click="opencertsub(scope.row)" title="导出" size="mini" icon="el-icon-document" width="120px">待删除准入范围</el-button>
|
|
|
|
|
+ <!--<el-button type="text" @click="openfilelist(scope.row)" title="导出" size="mini" icon="el-icon-document" width="120px">企业资质</el-button>-->
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <!--内框表格剩余栏显示-->
|
|
|
|
|
+ <el-table-column label="状态" prop="InFlag" width="100px" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-alert v-if="scope.row.InFlag=='1'" :closable="false" style="background:rgba(255,255,255,0.2)" title="准入" type="success" ></el-alert>
|
|
|
|
|
+ <el-alert v-if="scope.row.InFlag=='2'" :closable="false" style="background:rgba(255,255,255,0.2)" title="暂停" type="warning" ></el-alert>
|
|
|
|
|
+ <el-alert v-if="scope.row.InFlag=='3'" :closable="false" style="background:rgba(255,255,255,0.2)" title="取消" type="error"></el-alert>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="准入编码" width="100px" prop="AccessCardNo" sortable align="center">
|
|
|
|
|
+ <template slot-scope="scope" >
|
|
|
|
|
+ <span style="font-family:'黑体';font-size:13px">{{scope.row.AccessCardNo}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="企业名称" min-width="300px" prop="SupplierName" sortable align="center"></el-table-column>
|
|
|
|
|
+ <el-table-column label="准入类别" prop="SupplierTypeCode" align="center">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{transferStr(scope.row.SupplierTypeCode)}}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="法人代表" width="100px" prop="LegalPerson" align="center"></el-table-column>
|
|
|
|
|
+ <el-table-column label="注册资金(万元)" width="170px" prop="RegCapital" sortable align="center"></el-table-column>
|
|
|
|
|
+ <el-table-column label="移动电话" width="120px" prop="Mobile" align="center"></el-table-column>
|
|
|
|
|
+ <!--<el-table-column label="最后一次年审" width="100px" prop="AuditDate" align="center">-->
|
|
|
|
|
+ <!--<template slot-scope="scope">{{ jstimehandle(scope.row.AuditDate) }}</template>-->
|
|
|
|
|
+ <!--</el-table-column>-->
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 15, 20, 25]" :page-size="size"
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount"></el-pagination>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+
|
|
|
|
|
+ <!--查询框-->
|
|
|
|
|
+ <el-dialog title="高级查询" :visible.sync="dialogVisible" width="720px">
|
|
|
|
|
+ <el-form label-width="135px">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="准入编码">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.AccessCardNo" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="企业名称">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.SupplierName" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="准入标识">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ style="width:100%"
|
|
|
|
|
+ v-model="searchForm.InFlag"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option label="全部" value></el-option>
|
|
|
|
|
+ <el-option label="准入" value="1"></el-option>
|
|
|
|
|
+ <el-option label="暂停" value="2"></el-option>
|
|
|
|
|
+ <el-option label="取消" value="3"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="法人">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.LegalPerson" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="统一社会信用代码">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.CommercialNo" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="成立时间">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="SetupTime"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ 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-form-item label="注册资本(万元)">
|
|
|
|
|
+ <el-col :span="5">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.RegCapital1" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="1">
|
|
|
|
|
+ <span> ~</span>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="5">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.RegCapital2" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="企业资质">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.NeedFileType" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="准入范围">
|
|
|
|
|
+ <el-input size="mini" v-model="searchForm.CerSubName" placeholder="请输入内容"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="initDatas($event)">查 询</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <el-dialog :visible.sync="dialogVisibleCertsSub" width="80%">
|
|
|
|
|
+ <el-card class="box-card">
|
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
|
+ <span style="font-weight: bold">准入范围</span>
|
|
|
|
|
+ <span style="float: right;">
|
|
|
|
|
+ <el-form ref="form" :inline="true" style="margin-top: -10px">
|
|
|
|
|
+ <el-form-item label="编码">
|
|
|
|
|
+ <el-input size="mini" v-model="searchFormSub.Code" style="width: 100%"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="名称">
|
|
|
|
|
+ <el-input size="mini" v-model="searchFormSub.Name" style="width: 100%"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="search">查询</el-button>
|
|
|
|
|
+ <!--<el-button type="primary" @click="toPdf" size="mini" style="margin-left: 25px">下载准入范围</el-button>-->
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-table :data="certsubList" border size="mini">
|
|
|
|
|
+ <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
|
|
+ <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="是否为制造商" width="100" v-if="SupplierTypeCode == '01'">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag type="info" v-if="scope.row.IsManufacturer == 2">非制造商</el-tag>
|
|
|
|
|
+ <el-tag type="success" v-else-if="scope.row.IsManufacturer == 1">制造商</el-tag>
|
|
|
|
|
+ <span v-else>——</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="状态"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ width="100px">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span v-if="scope.row.CertSubStatus=='1'"
|
|
|
|
|
+ style="color:#67C23A">准入</span>
|
|
|
|
|
+ <span v-else-if="scope.row.CertSubStatus=='2'"
|
|
|
|
|
+ style="color:#E6A23C">暂停</span>
|
|
|
|
|
+ <span v-else>——</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ @size-change="handleSizeChangeSub"
|
|
|
|
|
+ @current-change="handleCurrentChangeSub"
|
|
|
|
|
+ :current-page="currentPageSub"
|
|
|
|
|
+ :page-sizes="[10, 50, 100, 200, 400]"
|
|
|
|
|
+ :page-size="sizeSub"
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
+ :total="currentItemCountSub"
|
|
|
|
|
+ ></el-pagination>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <el-dialog :visible.sync="dialogVisibleSubFile" width="80%">
|
|
|
|
|
+ <subfile-list ref="subfileListRef"
|
|
|
|
|
+ :SupplierId="SupplierId"
|
|
|
|
|
+ height="360px"
|
|
|
|
|
+ style="margin-top: 20px"></subfile-list>
|
|
|
|
|
+
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+import api from '@/api/oilsupplier/goodsaptitude'
|
|
|
|
|
+import FileSaver from 'file-saver'
|
|
|
|
|
+import XLSX from 'xlsx'
|
|
|
|
|
+import oapi from '@/api/oilsupplier/supplier'
|
|
|
|
|
+import SubfileList from '@/pages/select/components/subfilelist'
|
|
|
|
|
+
|
|
|
|
|
+export default {
|
|
|
|
|
+ components: {
|
|
|
|
|
+ SubfileList
|
|
|
|
|
+ },
|
|
|
|
|
+ created () {
|
|
|
|
|
+ Object.assign(this.searchFormReset, this.searchForm)
|
|
|
|
|
+ // 执行初始化方法
|
|
|
|
|
+ this.getDictOptions()
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ this.getDictOptions2()
|
|
|
|
|
+ // watermark.set("大港油田企业法规处")
|
|
|
|
|
+ },
|
|
|
|
|
+ data () {
|
|
|
|
|
+ return {
|
|
|
|
|
+ SupplierId: '',
|
|
|
|
|
+ Id: '',
|
|
|
|
|
+ SupplierCertId: '',
|
|
|
|
|
+ SupplierTypeCode: '',
|
|
|
|
|
+ SupplierName: '',
|
|
|
|
|
+ dialogVisibleCertsSub: false,
|
|
|
|
|
+ dialogVisibleSubFile: false,
|
|
|
|
|
+ loading: false,
|
|
|
|
|
+ Spesearch: '',
|
|
|
|
|
+ orgOptions: [],
|
|
|
|
|
+ auditorg: '',
|
|
|
|
|
+ selectDept: '',
|
|
|
|
|
+ allorgunitOptions: [],
|
|
|
|
|
+ HSEOptions: [
|
|
|
|
|
+ {
|
|
|
|
|
+ value: '',
|
|
|
|
|
+ label: '全部'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ value: '1',
|
|
|
|
|
+ label: '是'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ value: '0',
|
|
|
|
|
+ label: '否'
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ nftOptions: [],
|
|
|
|
|
+ CityAry: [],
|
|
|
|
|
+ LinkCityAry: [],
|
|
|
|
|
+ countryprops: {
|
|
|
|
|
+ value: 'adcode',
|
|
|
|
|
+ label: 'name',
|
|
|
|
|
+ children: 'districts'
|
|
|
|
|
+ },
|
|
|
|
|
+ CompanyTypeOptions: [],
|
|
|
|
|
+ dictData: null,
|
|
|
|
|
+ searchFormReset: {},
|
|
|
|
|
+ dialogVisible: false,
|
|
|
|
|
+ formData: {
|
|
|
|
|
+ SupplierName: '',
|
|
|
|
|
+ AccessCardNo: '',
|
|
|
|
|
+ SpecTypeCode: '',
|
|
|
|
|
+ Country: '',
|
|
|
|
|
+ InStyle: '',
|
|
|
|
|
+ ManagementUnit: '',
|
|
|
|
|
+ CredentialFlag: '',
|
|
|
|
|
+ CommercialNo: '',
|
|
|
|
|
+ CountryTaxNo: '',
|
|
|
|
|
+ OrganCode: '',
|
|
|
|
|
+ Address: '',
|
|
|
|
|
+ ZipCode: '',
|
|
|
|
|
+ LinkAddress: '',
|
|
|
|
|
+ LinkZipCode: '',
|
|
|
|
|
+ LegalPerson: '',
|
|
|
|
|
+ CompanyType: '',
|
|
|
|
|
+ RegCapital: '',
|
|
|
|
|
+ SetupTime: '',
|
|
|
|
|
+ DepositBank: '',
|
|
|
|
|
+ BankAccount: '',
|
|
|
|
|
+ ContactName: '',
|
|
|
|
|
+ Mobile: '',
|
|
|
|
|
+ Telphone: '',
|
|
|
|
|
+ Fax: '',
|
|
|
|
|
+ CompanyTel: '',
|
|
|
|
|
+ EMail: '',
|
|
|
|
|
+ BankCreditRating: '',
|
|
|
|
|
+ Level: '',
|
|
|
|
|
+ HseTraining: '',
|
|
|
|
|
+ QualitySystemCert: '',
|
|
|
|
|
+ ProductQualityCert: '',
|
|
|
|
|
+ MaunLicense: '',
|
|
|
|
|
+ MaunAgent: '',
|
|
|
|
|
+ SupplierCertificate: '',
|
|
|
|
|
+ SafetyLicense: '',
|
|
|
|
|
+ SpecIndustryCert: '',
|
|
|
|
|
+ BusinessScope: '',
|
|
|
|
|
+ Remark: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ // 定义列表数据
|
|
|
|
|
+ entityList: [],
|
|
|
|
|
+ // 分页参数
|
|
|
|
|
+ sizeSub: 10,
|
|
|
|
|
+ currentPageSub: 1,
|
|
|
|
|
+ currentItemCountSub: 0,
|
|
|
|
|
+ // 分页参数
|
|
|
|
|
+ size: 10,
|
|
|
|
|
+ currentPage: 1,
|
|
|
|
|
+ currentItemCount: 0,
|
|
|
|
|
+ SetupTime: '', // 成立时间
|
|
|
|
|
+ CreateOn: [],
|
|
|
|
|
+ ssList: [],
|
|
|
|
|
+ searchForm: {
|
|
|
|
|
+ AccessCardNo: '',
|
|
|
|
|
+ SupplierName: '',
|
|
|
|
|
+ SupplierTypeCode: '',
|
|
|
|
|
+ InFlag: '',
|
|
|
|
|
+ LegalPerson: '',
|
|
|
|
|
+ ContactName: '',
|
|
|
|
|
+ CommercialNo: '',
|
|
|
|
|
+ RegCapital1: '',
|
|
|
|
|
+ RegCapital2: '',
|
|
|
|
|
+ CompanyType: '',
|
|
|
|
|
+ Province: '',
|
|
|
|
|
+ City: '',
|
|
|
|
|
+ Street: '',
|
|
|
|
|
+ Address: '',
|
|
|
|
|
+ LinkProvince: '',
|
|
|
|
|
+ LinkCity: '',
|
|
|
|
|
+ LinkStreet: '',
|
|
|
|
|
+ LinkAddress: '',
|
|
|
|
|
+ DepositBank: '',
|
|
|
|
|
+ BusinessScope: '',
|
|
|
|
|
+ OldSupplierName: '',
|
|
|
|
|
+ HseTraining: '',
|
|
|
|
|
+ // NeedFileType: [],
|
|
|
|
|
+ NeedFileType: '',
|
|
|
|
|
+ CerSubName: '',
|
|
|
|
|
+ FullName: '',
|
|
|
|
|
+ CheckUserName: '',
|
|
|
|
|
+ CheckUserId: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ searchFormSub: {
|
|
|
|
|
+ Code: '',
|
|
|
|
|
+ Name: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ // 列表排序
|
|
|
|
|
+ Column: {
|
|
|
|
|
+ Order: '',
|
|
|
|
|
+ Prop: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ countryoptions: [],
|
|
|
|
|
+
|
|
|
|
|
+ certsubList: []
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ delSupplierCertSub () {
|
|
|
|
|
+ this.$confirm('此操作将删除缺少资质的准入项, 是否继续?', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ api.delTmpSupplierCertSub(this.$axios).then(res => {
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ if (res.data.code === 0) {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ search () {
|
|
|
|
|
+ this.getCertSub()
|
|
|
|
|
+ },
|
|
|
|
|
+ openfilelist (row) {
|
|
|
|
|
+ let _this = this
|
|
|
|
|
+ _this.dialogVisibleSubFile = true
|
|
|
|
|
+ _this.SupplierId = row.Id
|
|
|
|
|
+ },
|
|
|
|
|
+ opencertsub (row) {
|
|
|
|
|
+ this.certsubList = []
|
|
|
|
|
+ this.dialogVisibleCertsSub = true
|
|
|
|
|
+ this.Id = row.Id
|
|
|
|
|
+ this.SupplierCertId = row.CertId
|
|
|
|
|
+ this.SupplierTypeCode = row.SupplierTypeCode
|
|
|
|
|
+ this.SupplierName = row.SupplierName
|
|
|
|
|
+ this.getCertSub(row)
|
|
|
|
|
+ },
|
|
|
|
|
+ getCertSub (row) {
|
|
|
|
|
+ let _this = this
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ SupplierCertId: this.SupplierCertId,
|
|
|
|
|
+ SupplierTypeCode: this.SupplierTypeCode,
|
|
|
|
|
+ _currentPage: this.currentPageSub,
|
|
|
|
|
+ _size: this.sizeSub
|
|
|
|
|
+ }
|
|
|
|
|
+ Object.assign(params, this.searchFormSub)
|
|
|
|
|
+ this.$axios.get('goodsaptitude/delcertsublist', {
|
|
|
|
|
+ params
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ _this.certsubList = res.data.items
|
|
|
|
|
+ _this.currentItemCountSub = res.data.currentItemCount
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ transferStr (val) {
|
|
|
|
|
+ if (val === '01') {
|
|
|
|
|
+ return '物资类'
|
|
|
|
|
+ } else if (val === '02') {
|
|
|
|
|
+ return '基建类'
|
|
|
|
|
+ } else if (val === '03') {
|
|
|
|
|
+ return '技术服务类'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return val
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ GetorgOptions () {
|
|
|
|
|
+ let _this = this
|
|
|
|
|
+ this.$axios.get('/register/orgloginlist').then(res => {
|
|
|
|
|
+ _this.orgOptions = res.data.items
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.log(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ getDictOptions2 () {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ }
|
|
|
|
|
+ oapi.getDictListByStatus(params, this.$axios).then(res => {
|
|
|
|
|
+ this.allorgunitOptions = res.data.items['Allunitorglist']
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ handleLinkAreaChange (value) {
|
|
|
|
|
+ this.searchForm.LinkProvince = value[0]
|
|
|
|
|
+ this.searchForm.LinkCity = value[1]
|
|
|
|
|
+ this.searchForm.LinkStreet = value[2]
|
|
|
|
|
+ },
|
|
|
|
|
+ handleAreaChange (value) {
|
|
|
|
|
+ this.searchForm.Province = value[0]
|
|
|
|
|
+ this.searchForm.City = value[1]
|
|
|
|
|
+ this.searchForm.Street = value[2]
|
|
|
|
|
+ },
|
|
|
|
|
+ getDictOptions () {
|
|
|
|
|
+ oapi
|
|
|
|
|
+ .getDictList(this.$axios)
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.dictData = res.data.items
|
|
|
|
|
+ this.CompanyTypeOptions = this.dictData['CompanyType']
|
|
|
|
|
+ this.getCityList(this.dictData['GaodeMapChinaAreas'])
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ getCityList (val) {
|
|
|
|
|
+ let resultData = JSON.parse(val)
|
|
|
|
|
+ let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
|
|
|
+ countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
|
|
|
|
|
+ this.countryoptions = JSON.parse(countstr)
|
|
|
|
|
+ },
|
|
|
|
|
+ exportExcel () {
|
|
|
|
|
+ /* generate workbook object from table */
|
|
|
|
|
+ let wb = XLSX.utils.table_to_book(
|
|
|
|
|
+ document.querySelector('#rebateSetTable')
|
|
|
|
|
+ )
|
|
|
|
|
+ /* get binary string as output */
|
|
|
|
|
+ let wbout = XLSX.write(wb, {
|
|
|
|
|
+ bookType: 'xlsx',
|
|
|
|
|
+ bookSST: true,
|
|
|
|
|
+ type: 'array'
|
|
|
|
|
+ })
|
|
|
|
|
+ try {
|
|
|
|
|
+ FileSaver.saveAs(
|
|
|
|
|
+ new Blob([wbout], { type: 'application/octet-stream' }),
|
|
|
|
|
+ 'SupplierSituation.xlsx'
|
|
|
|
|
+ )
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ if (typeof console !== 'undefined') console.log(e, wbout)
|
|
|
|
|
+ }
|
|
|
|
|
+ return wbout
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ // 列表排序功能
|
|
|
|
|
+ orderby (column) {
|
|
|
|
|
+ if (column.order === 'ascending') {
|
|
|
|
|
+ this.Column.Order = 'asc'
|
|
|
|
|
+ } else if (column.order === 'descending') {
|
|
|
|
|
+ this.Column.Order = 'desc'
|
|
|
|
|
+ }
|
|
|
|
|
+ this.Column.Prop = column.prop
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ },
|
|
|
|
|
+ jstimehandle (val) {
|
|
|
|
|
+ if (val === '') {
|
|
|
|
|
+ return '----'
|
|
|
|
|
+ } else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
|
|
+ return '----'
|
|
|
|
|
+ } else if (val === '0001-01-01T00:00:00Z') {
|
|
|
|
|
+ return '----'
|
|
|
|
|
+ } else if (val === '5000-01-01T23:59:59+08:00') {
|
|
|
|
|
+ return '永久'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ val = val.replace('T', ' ')
|
|
|
|
|
+ return val.substring(0, 10)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ // 初始化列表方法
|
|
|
|
|
+ initDatas (event) {
|
|
|
|
|
+ if (event != null) {
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
|
+ this.dialogVisible = false
|
|
|
|
|
+ }
|
|
|
|
|
+ this.loading = true
|
|
|
|
|
+ let myCreateOn = []
|
|
|
|
|
+ // 解析时间
|
|
|
|
|
+ if (this.CreateOn != null && this.CreateOn.length === 2) {
|
|
|
|
|
+ this.CreateOn[1].setHours(23)
|
|
|
|
|
+ this.CreateOn[1].setMinutes(59)
|
|
|
|
|
+ this.CreateOn[1].setSeconds(59)
|
|
|
|
|
+ myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
|
|
|
|
|
+ myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
|
|
|
|
|
+ }
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ _size: this.size,
|
|
|
|
|
+ _currentPage: this.currentPage,
|
|
|
|
|
+ Order: this.Column.Order,
|
|
|
|
|
+ Prop: this.Column.Prop,
|
|
|
|
|
+ SetupTime: this.SetupTime,
|
|
|
|
|
+ CreateOn: myCreateOn.join(','),
|
|
|
|
|
+ CheckUId: this.auditorg,
|
|
|
|
|
+ FullId: this.selectDept
|
|
|
|
|
+ }
|
|
|
|
|
+ api.getCompanyList(params, this.searchForm, this.$axios)
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.entityList = res.data.items
|
|
|
|
|
+ this.currentItemCount = res.data.currentItemCount
|
|
|
|
|
+ this.loading = false
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 分页方法
|
|
|
|
|
+ handleCurrentChangeSub (value) {
|
|
|
|
|
+ this.currentPageSub = value
|
|
|
|
|
+ this.getCertSub()
|
|
|
|
|
+ },
|
|
|
|
|
+ handleSizeChangeSub (value) {
|
|
|
|
|
+ this.sizeSub = value
|
|
|
|
|
+ this.currentPageSub = 1
|
|
|
|
|
+ this.getCertSub()
|
|
|
|
|
+ },
|
|
|
|
|
+ // 分页方法
|
|
|
|
|
+ handleCurrentChange (value) {
|
|
|
|
|
+ this.currentPage = value
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ },
|
|
|
|
|
+ handleSizeChange (value) {
|
|
|
|
|
+ this.size = value
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ },
|
|
|
|
|
+ searchCommand (command) {
|
|
|
|
|
+ if (command === 'search') {
|
|
|
|
|
+ this.dialogVisible = true
|
|
|
|
|
+ } else if (command === 'clear') {
|
|
|
|
|
+ this.clearSearch()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ clearSearch () {
|
|
|
|
|
+ Object.assign(this.searchForm, this.searchFormReset)
|
|
|
|
|
+ this.CityAry = []
|
|
|
|
|
+ this.SetupTime = ''
|
|
|
|
|
+ this.auditorg = ''
|
|
|
|
|
+ this.selectDept = '',
|
|
|
|
|
+ (this.LinkCityAry = []), (this.currentPage = 1)
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ },
|
|
|
|
|
+ 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>
|
|
|
|
|
+.eldialog .el-input__inner {
|
|
|
|
|
+ border: none;
|
|
|
|
|
+}
|
|
|
|
|
+.eldialog .el-textarea__inner {
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ resize: none;
|
|
|
|
|
+ height: 70px;
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|
|
|
|
|
+
|