|
|
@@ -80,12 +80,13 @@
|
|
|
style="width: 100%"
|
|
|
@sort-change="orderby"
|
|
|
>
|
|
|
- <el-table-column label="操作" width="260px" align="center" fixed="right" show-overflow-tooltip>
|
|
|
+ <el-table-column label="操作" width="320px" align="center" fixed="right" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="toWord(scope.row)" title="下载" size="mini" icon="el-icon-download" width="120px">表单下载</el-button>
|
|
|
<!--<el-button type="text" @click="toPdf(scope.row)" title="导出" size="mini" icon="el-icon-document" width="120px">准入范围</el-button>-->
|
|
|
<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>
|
|
|
+ <el-button type="text" @click="openBadrecord(scope.row)" title="不良记录" size="mini" icon="el-icon-document" width="120px">不良记录</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -843,6 +844,399 @@
|
|
|
<el-button size="mini" type="primary" @click="exportBusinessLicense()">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="查看不良记录"
|
|
|
+ :visible.sync="addshow"
|
|
|
+ width="85%">
|
|
|
+ <el-tabs type="border-card" v-model="activeName2">
|
|
|
+ <el-tab-pane label="企业" name="first">
|
|
|
+ <el-card class="box-card1"
|
|
|
+ shadow="never" v-if="TypeCode == '01'">
|
|
|
+ <el-table size="mini"
|
|
|
+ :data="wzList"
|
|
|
+ border
|
|
|
+ height="300px">
|
|
|
+ <el-table-column width="150" property="CreateOn" label="操作时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.Createon+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="CertSubStatus"
|
|
|
+ label="状态"
|
|
|
+ width="100px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color: #67C23A" v-if="scope.row.CertSubStatus=='1'">准入</span>
|
|
|
+ <span style="color: #E6A23C" v-else-if="scope.row.CertSubStatus=='2'">暂停</span>
|
|
|
+ <span style="color: #F56C6C" v-else-if="scope.row.CertSubStatus=='3'">取消</span>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="BackReason"
|
|
|
+ label="原因"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination @size-change="handleWZSizeChange"
|
|
|
+ @current-change="handleWZCurrentChange"
|
|
|
+ :current-page="wzCurrentPage"
|
|
|
+ :page-sizes="[10, 15, 20, 25]"
|
|
|
+ :page-size="wzSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="wzCurrentItemCount"></el-pagination>
|
|
|
+ </el-card>
|
|
|
+ <el-card class="box-card1"
|
|
|
+ shadow="never" v-if="TypeCode == '02'">
|
|
|
+ <el-table size="mini"
|
|
|
+ :data="jjList"
|
|
|
+ border
|
|
|
+ height="300px">
|
|
|
+ <el-table-column width="150" property="CreateOn" label="操作时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.Createon+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="CertSubStatus"
|
|
|
+ label="状态"
|
|
|
+ width="100px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color: #67C23A" v-if="scope.row.CertSubStatus=='1'">准入</span>
|
|
|
+ <span style="color: #E6A23C" v-else-if="scope.row.CertSubStatus=='2'">暂停</span>
|
|
|
+ <span style="color: #F56C6C" v-else-if="scope.row.CertSubStatus=='3'">取消</span>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="BackReason"
|
|
|
+ label="原因"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination @size-change="handleJJSizeChange"
|
|
|
+ @current-change="handleJJCurrentChange"
|
|
|
+ :current-page="jjCurrentPage"
|
|
|
+ :page-sizes="[10, 15, 20, 25]"
|
|
|
+ :page-size="jjSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="jjCurrentItemCount"></el-pagination>
|
|
|
+ </el-card>
|
|
|
+ <el-card class="box-card1"
|
|
|
+ shadow="never" v-if="TypeCode == '03'">
|
|
|
+ <el-table size="mini"
|
|
|
+ :data="jfList"
|
|
|
+ border
|
|
|
+ height="300px">
|
|
|
+ <el-table-column width="150" property="CreateOn" label="操作时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.Createon+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="CertSubStatus"
|
|
|
+ label="状态"
|
|
|
+ width="100px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color: #67C23A" v-if="scope.row.CertSubStatus=='1'">准入</span>
|
|
|
+ <span style="color: #E6A23C" v-else-if="scope.row.CertSubStatus=='2'">暂停</span>
|
|
|
+ <span style="color: #F56C6C" v-else-if="scope.row.CertSubStatus=='3'">取消</span>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="BackReason"
|
|
|
+ label="原因"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination @size-change="handleJFSizeChange"
|
|
|
+ @current-change="handleJFCurrentChange"
|
|
|
+ :current-page="jfCurrentPage"
|
|
|
+ :page-sizes="[10, 15, 20, 25]"
|
|
|
+ :page-size="jfSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="jfCurrentItemCount"></el-pagination>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="准入范围" name="second">
|
|
|
+ <el-card class="box-card1"
|
|
|
+ shadow="never" v-if="TypeCode == '01'">
|
|
|
+ <div slot="header">
|
|
|
+ <div style="width:100%;height:20px;margin-top:-20px">
|
|
|
+ <el-button type="primary"
|
|
|
+ style="float:right;margin-top:6.5px"
|
|
|
+ size="mini"
|
|
|
+ @click="initCert($event)">查询</el-button>
|
|
|
+ <el-form :inline="true"
|
|
|
+ style="float:right">
|
|
|
+ <el-form-item label="准入范围名称">
|
|
|
+ <el-input size="mini"
|
|
|
+ style="width: 165px;"
|
|
|
+ v-model="certChooseName"
|
|
|
+ clearable
|
|
|
+ placeholder="请输入准入范围名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="状态">
|
|
|
+ <el-select size="mini" style="width:100px"
|
|
|
+ v-model="CertSubStatus"
|
|
|
+ placeholder="请选择" clearable >
|
|
|
+ <el-option label="准入" value="1"></el-option>
|
|
|
+ <el-option label="暂停" value="2"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-table size="mini"
|
|
|
+ :data="goodsList"
|
|
|
+ border
|
|
|
+ height="300px"
|
|
|
+ >
|
|
|
+ <el-table-column prop="Code"
|
|
|
+ label="编码"
|
|
|
+ width="120px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="Name"
|
|
|
+ label="名称"
|
|
|
+ width="300px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="CertSubStatus"
|
|
|
+ label="状态"
|
|
|
+ align="center"
|
|
|
+ width="100px"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.CertSubStatus=='1'"
|
|
|
+ style="color:#67C23A">准入</span>
|
|
|
+ <span v-else-if="scope.row.CertSubStatus>'1'"
|
|
|
+ style="color:#E6A23C">暂停</span>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="150" prop="badCreateOn" label="操作时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.badCreateOn+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="BackReason"
|
|
|
+ label="原因"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label=""
|
|
|
+ align="center"
|
|
|
+ width="160px"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="plain" plain size="mini" @click="showBackReasonList(scope.row)">查看历史状态</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination @size-change="handleGoodsSizeChange"
|
|
|
+ @current-change="handleGoodsCurrentChange"
|
|
|
+ :current-page="currentGoodsPage"
|
|
|
+ :page-sizes="[10, 15, 20, 25]"
|
|
|
+ :page-size="goodsSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="currentGoodsItemCount"></el-pagination>
|
|
|
+ </el-card>
|
|
|
+ <el-card class="box-card1"
|
|
|
+ shadow="never" v-if="TypeCode == '02'">
|
|
|
+ <div slot="header">
|
|
|
+ <div style="width:100%;height:20px;margin-top:-20px">
|
|
|
+ <el-button type="primary"
|
|
|
+ style="float:right;margin-top:6.5px"
|
|
|
+ size="mini"
|
|
|
+ @click="initCert($event)">查询</el-button>
|
|
|
+ <el-form :inline="true"
|
|
|
+ style="float:right">
|
|
|
+ <el-form-item label="准入范围名称">
|
|
|
+ <el-input size="mini"
|
|
|
+ style="width: 165px;"
|
|
|
+ v-model="certChooseName"
|
|
|
+ clearable
|
|
|
+ placeholder="请输入准入范围名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="状态">
|
|
|
+ <el-select size="mini" style="width:100px"
|
|
|
+ v-model="CertSubStatus"
|
|
|
+ placeholder="请选择" clearable >
|
|
|
+ <el-option label="准入" value="1"></el-option>
|
|
|
+ <el-option label="暂停" value="2"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-table size="mini"
|
|
|
+ :data="basisList"
|
|
|
+ border
|
|
|
+ height="300px"
|
|
|
+ >
|
|
|
+ <el-table-column prop="Code"
|
|
|
+ label="编码"
|
|
|
+ width="120px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="Name"
|
|
|
+ label="名称"
|
|
|
+ width="300px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="CertSubStatus"
|
|
|
+ label="状态"
|
|
|
+ align="center"
|
|
|
+ width="100px"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.CertSubStatus=='1'"
|
|
|
+ style="color:#67C23A">准入</span>
|
|
|
+ <span v-else-if="scope.row.CertSubStatus>'1'"
|
|
|
+ style="color:#E6A23C">暂停</span>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="150" prop="badCreateOn" label="操作时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.badCreateOn+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="BackReason"
|
|
|
+ label="原因"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label=""
|
|
|
+ align="center"
|
|
|
+ width="160px"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="plain" plain size="mini" @click="showBackReasonList(scope.row)">查看历史状态</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination @size-change="handleBasisSizeChange"
|
|
|
+ @current-change="handleBasisCurrentChange"
|
|
|
+ :current-page="currentBasisPage"
|
|
|
+ :page-sizes="[10, 15, 20, 25]"
|
|
|
+ :page-size="basisSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="currentBasisItemCount"></el-pagination>
|
|
|
+ </el-card>
|
|
|
+ <el-card class="box-card1"
|
|
|
+ shadow="never" v-if="TypeCode == '03'">
|
|
|
+ <div slot="header">
|
|
|
+ <div style="width:100%;height:20px;margin-top:-20px">
|
|
|
+ <el-button type="primary"
|
|
|
+ style="float:right;margin-top:6.5px"
|
|
|
+ size="mini"
|
|
|
+ @click="initCert($event)">查询</el-button>
|
|
|
+ <el-form :inline="true"
|
|
|
+ style="float:right">
|
|
|
+ <el-form-item label="准入范围名称">
|
|
|
+ <el-input size="mini"
|
|
|
+ style="width: 165px;"
|
|
|
+ v-model="certChooseName"
|
|
|
+ clearable
|
|
|
+ placeholder="请输入准入范围名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="状态">
|
|
|
+ <el-select size="mini" style="width:100px"
|
|
|
+ v-model="CertSubStatus"
|
|
|
+ placeholder="请选择" clearable >
|
|
|
+ <el-option label="准入" value="1"></el-option>
|
|
|
+ <el-option label="暂停" value="2"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-table size="mini"
|
|
|
+ :data="tcList"
|
|
|
+ border
|
|
|
+ height="300px"
|
|
|
+ >
|
|
|
+ <el-table-column prop="Code"
|
|
|
+ label="编码"
|
|
|
+ width="120px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="Name"
|
|
|
+ label="名称"
|
|
|
+ width="300px"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="CertSubStatus"
|
|
|
+ label="状态"
|
|
|
+ align="center"
|
|
|
+ width="100px"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.CertSubStatus=='1'"
|
|
|
+ style="color:#67C23A">准入</span>
|
|
|
+ <span v-else-if="scope.row.CertSubStatus>'1'"
|
|
|
+ style="color:#E6A23C">暂停</span>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="150" prop="badCreateOn" label="操作时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.badCreateOn+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="BackReason"
|
|
|
+ label="原因"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label=""
|
|
|
+ align="center"
|
|
|
+ width="160px"
|
|
|
+ show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="plain" plain size="mini" @click="showBackReasonList(scope.row)">查看历史状态</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table >
|
|
|
+ <el-pagination @size-change="handleTCSizeChange"
|
|
|
+ @current-change="handleTCCurrentChange"
|
|
|
+ :current-page="currentTCPage"
|
|
|
+ :page-sizes="[10, 15, 20, 25]"
|
|
|
+ :page-size="tcSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="currentTCItemCount"></el-pagination>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="准入变化历史"
|
|
|
+ stripe
|
|
|
+ :visible.sync="showBackReason"
|
|
|
+ width="800px">
|
|
|
+ <el-table :data="backReasonList">
|
|
|
+ <el-table-column width="80" property="CertSubStatus" label="状态">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.CertSubStatus=='1'"
|
|
|
+ style="color:#67C23A">准入</span>
|
|
|
+ <span v-else-if="scope.row.CertSubStatus>'1'"
|
|
|
+ style="color:#E6A23C">暂停</span>
|
|
|
+ <span v-else>——</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column width="150" property="CreateOn" label="操作时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.CreateOn+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column mini-width="120" property="BackReason" label="原因"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -857,6 +1251,8 @@ import XLSX from 'xlsx'
|
|
|
import oapi from '@/api/oilsupplier/supplier'
|
|
|
import dataapi from '@/api/oilsupplier/dataentry'
|
|
|
import SubfileList from '@/pages/select/components/subfilelist'
|
|
|
+import setapi from '@/api/oilsupplier/oilclassorgset'
|
|
|
+import backReasonApi from '@/api/oilsupplier/supplierpausereason'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -874,6 +1270,16 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ showBackReason: false,
|
|
|
+ backReasonList: [],
|
|
|
+ TypeCode: '',
|
|
|
+ certChooseName: '',
|
|
|
+ CertSubStatus: '',
|
|
|
+ companyId: '',
|
|
|
+ addshow: false,
|
|
|
+ activeName: 'first',
|
|
|
+ activeName2: 'first',
|
|
|
+ activeName1: 'first',
|
|
|
SupplierId: '',
|
|
|
Id: '',
|
|
|
SupplierCertId: '',
|
|
|
@@ -1016,11 +1422,209 @@ export default {
|
|
|
countryoptions: [],
|
|
|
TableHeaderList: [],
|
|
|
|
|
|
- certsubList: []
|
|
|
+ certsubList: [],
|
|
|
+
|
|
|
+ goodsList: [],
|
|
|
+ basisList: [],
|
|
|
+ tcList: [],
|
|
|
+ wzList: [],
|
|
|
+ jjList: [],
|
|
|
+ jfList: [],
|
|
|
+ wzSize: 10,
|
|
|
+ jjSize: 10,
|
|
|
+ jfSize: 10,
|
|
|
+ wzCurrentPage: 1,
|
|
|
+ jjCurrentPage: 1,
|
|
|
+ jfCurrentPage: 1,
|
|
|
+ wzCurrentItemCount: 0,
|
|
|
+ jjCurrentItemCount: 0,
|
|
|
+ jfCurrentItemCount: 0,
|
|
|
+
|
|
|
+ goodsSize: 10,
|
|
|
+ basisSize: 10,
|
|
|
+ tcSize: 10,
|
|
|
+ currentGoodsPage: 1,
|
|
|
+ currentBasisPage: 1,
|
|
|
+ currentTCPage: 1,
|
|
|
+
|
|
|
+ currentGoodsItemCount: 0,
|
|
|
+ currentBasisItemCount: 0,
|
|
|
+ currentTCItemCount: 0
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ initCert (event) {
|
|
|
+ if (this.activeName === 'first') {
|
|
|
+ this.serachGoodsCertByCompany(event)
|
|
|
+ } else if (this.activeName === 'second') {
|
|
|
+ this.serachBasisCertByCompany(event)
|
|
|
+ } else {
|
|
|
+ this.serachTCCertByCompany(event)
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ showBackReasonList (row) {
|
|
|
+ // 分页及列表条件
|
|
|
+ let params = {
|
|
|
+ CertSubId: row.Id
|
|
|
+ }
|
|
|
+ // 访问接口
|
|
|
+ backReasonApi.getNoPageList(params, this.$axios).then(res => {
|
|
|
+ this.backReasonList = res.data.items
|
|
|
+ this.showBackReason = true
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ openBadrecord (row) {
|
|
|
+ this.serachCertByCompany(row.Id)
|
|
|
+ this.TypeCode = row.SupplierTypeCode
|
|
|
+ this.addshow = true
|
|
|
+ },
|
|
|
+ serachCertByCompany (companyId) {
|
|
|
+ this.companyId = companyId
|
|
|
+ this.CertSubStatus = ''
|
|
|
+ this.certChooseName = ''
|
|
|
+ this.getWZBadList()
|
|
|
+ this.getJJBadList()
|
|
|
+ this.getJFBadList()
|
|
|
+ this.serachGoodsCertByCompany()
|
|
|
+ this.serachBasisCertByCompany()
|
|
|
+ this.serachTCCertByCompany()
|
|
|
+ },
|
|
|
+ serachGoodsCertByCompany (event) {
|
|
|
+ if (event != null) {
|
|
|
+ this.currentGoodsPage = 1
|
|
|
+ }
|
|
|
+
|
|
|
+ let params = {
|
|
|
+ _size: this.goodsSize,
|
|
|
+ _currentPage: this.currentGoodsPage,
|
|
|
+ _companyId: this.companyId,
|
|
|
+ _certName: this.certChooseName,
|
|
|
+ _certSubStatus: this.CertSubStatus
|
|
|
+ }
|
|
|
+ setapi
|
|
|
+ .serachGoodsCertByCompany(params, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.goodsList = res.data.items
|
|
|
+ if (res.data.currentItemCount) {
|
|
|
+ this.currentGoodsItemCount = res.data.currentItemCount
|
|
|
+ } else {
|
|
|
+ this.currentGoodsItemCount = 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ serachBasisCertByCompany (event) {
|
|
|
+ if (event != null) {
|
|
|
+ this.currentBasisPage = 1
|
|
|
+ }
|
|
|
+
|
|
|
+ let params = {
|
|
|
+ _size: this.basisSize,
|
|
|
+ _currentPage: this.currentBasisPage,
|
|
|
+ _companyId: this.companyId,
|
|
|
+ _certName: this.certChooseName,
|
|
|
+ _certSubStatus: this.CertSubStatus
|
|
|
+ }
|
|
|
+ setapi
|
|
|
+ .serachBasisCertByCompany(params, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.basisList = res.data.items
|
|
|
+ if (res.data.currentItemCount) {
|
|
|
+ this.currentBasisItemCount = res.data.currentItemCount
|
|
|
+ } else {
|
|
|
+ this.currentBasisItemCount = 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ serachTCCertByCompany (event) {
|
|
|
+ if (event != null) {
|
|
|
+ this.currentTCPage = 1
|
|
|
+ }
|
|
|
+ let params = {
|
|
|
+ _size: this.tcSize,
|
|
|
+ _currentPage: this.currentTCPage,
|
|
|
+ _companyId: this.companyId,
|
|
|
+ _certName: this.certChooseName,
|
|
|
+ _certSubStatus: this.CertSubStatus
|
|
|
+ }
|
|
|
+ setapi
|
|
|
+ .serachTCCertByCompany(params, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.tcList = res.data.items
|
|
|
+ if (res.data.currentItemCount) {
|
|
|
+ this.currentTCItemCount = res.data.currentItemCount
|
|
|
+ } else {
|
|
|
+ this.currentTCItemCount = 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getWZBadList () {
|
|
|
+ let params = {
|
|
|
+ _size: this.wzSize,
|
|
|
+ _currentPage: this.wzCurrentPage,
|
|
|
+ companyId: this.companyId,
|
|
|
+ companyType: '01'
|
|
|
+ }
|
|
|
+ setapi
|
|
|
+ .getBadList(params, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.wzList = res.data.items
|
|
|
+ this.wzCurrentItemCount = res.data.currentItemCount
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getJJBadList () {
|
|
|
+ let params = {
|
|
|
+ _size: this.jjSize,
|
|
|
+ _currentPage: this.jjCurrentPage,
|
|
|
+ companyId: this.companyId,
|
|
|
+ companyType: '02'
|
|
|
+ }
|
|
|
+ setapi
|
|
|
+ .getBadList(params, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.jjList = res.data.items
|
|
|
+ this.jjCurrentItemCount = res.data.currentItemCount
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getJFBadList () {
|
|
|
+ let params = {
|
|
|
+ _size: this.jfSize,
|
|
|
+ _currentPage: this.jfCurrentPage,
|
|
|
+ companyId: this.companyId,
|
|
|
+ companyType: '03'
|
|
|
+ }
|
|
|
+ setapi
|
|
|
+ .getBadList(params, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.jfList = res.data.items
|
|
|
+ this.jfCurrentItemCount = res.data.currentItemCount
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
changeTypeCode () {
|
|
|
console.log(this.importData.Type)
|
|
|
let params = {
|
|
|
@@ -1250,6 +1854,64 @@ export default {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ handleGoodsCurrentChange (value) {
|
|
|
+ this.currentGoodsPage = value
|
|
|
+ this.serachGoodsCertByCompany()
|
|
|
+ },
|
|
|
+ handleBasisCurrentChange (value) {
|
|
|
+ this.currentBasisPage = value
|
|
|
+ this.serachBasisCertByCompany()
|
|
|
+ },
|
|
|
+ handleTCCurrentChange (value) {
|
|
|
+ this.currentTCPage = value
|
|
|
+ this.serachTCCertByCompany()
|
|
|
+ },
|
|
|
+ handleGoodsSizeChange (value) {
|
|
|
+ this.goodsSize = value
|
|
|
+ this.currentGoodsPage = 1
|
|
|
+ this.serachGoodsCertByCompany()
|
|
|
+ },
|
|
|
+ handleBasisSizeChange (value) {
|
|
|
+ this.basisSize = value
|
|
|
+ this.currentBasisPage = 1
|
|
|
+ this.serachBasisCertByCompany()
|
|
|
+ },
|
|
|
+ handleTCSizeChange (value) {
|
|
|
+ this.tcSize = value
|
|
|
+ this.currentTCPage = 1
|
|
|
+ this.serachTCCertByCompany()
|
|
|
+ },
|
|
|
+
|
|
|
+ handleWZSizeChange (value) {
|
|
|
+ this.wzSize = value
|
|
|
+ this.wzCurrentPage = 1
|
|
|
+ this.getWZBadList()
|
|
|
+ },
|
|
|
+ handleWZCurrentChange (value) {
|
|
|
+ this.wzCurrentPage = value
|
|
|
+ this.getWZBadList()
|
|
|
+ },
|
|
|
+ handleJJSizeChange (value) {
|
|
|
+ this.jjSize = value
|
|
|
+ this.jjCurrentPage = 1
|
|
|
+ this.getJJBadList()
|
|
|
+ },
|
|
|
+ handleJJCurrentChange (value) {
|
|
|
+ this.jjCurrentPage = value
|
|
|
+ this.getJJBadList()
|
|
|
+ },
|
|
|
+ handleJFSizeChange (value) {
|
|
|
+ this.jfSize = value
|
|
|
+ this.jfCurrentPage = 1
|
|
|
+ this.getJFBadList()
|
|
|
+ },
|
|
|
+ handleJFCurrentChange (value) {
|
|
|
+ this.jfCurrentPage = value
|
|
|
+ this.getJFBadList()
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
// 列表排序功能
|
|
|
orderby (column) {
|
|
|
if (column.order === 'ascending') {
|