| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697 |
- <template>
- <div>
- <el-breadcrumb class="heading">
- <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
- <el-breadcrumb-item :to="{ path: '/oilsupplier/companyaudit' }">公司审核</el-breadcrumb-item>
- </el-breadcrumb>
- <el-card class="box-card">
- <div slot="header">
- <span>
- <i class="icon icon-table2"> 公司审核列表</i>
- </span>
- <el-form ref="form"
- v-model="searchForm"
- :inline="true"
- style="float: right; margin-top: -10px">
- <el-form-item label="公司名称">
- <el-input v-model="searchForm.Name"
- placeholder="请输入公司名称"
- size="mini"></el-input>
- </el-form-item>
- <el-form-item>
- <el-button @click="initData"
- size="mini"
- type="primary">查 询</el-button>
- </el-form-item>
- <el-form-item>
- <el-button type="primary"
- class="el-button--small"
- @click="clearSearch"
- size="mini">重 置</el-button>
- </el-form-item>
- </el-form>
- </div>
- <el-row :gutter="20">
- <el-col :span="24">
- <!-- <el-collapse>
- <el-collapse-item title="查询公司">
- <el-form ref="form"
- :model="searchForm"
- label-width="120px">
- <el-row>
- <el-col :span="8">
- <el-form-item label="公司名称">
- <el-input v-model="searchForm.Name"
- placeholder="请输入公司名称"> ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col class="line"
- :span="24"
- style="background-color:lightgrey; line-height: 1px"> </el-col>
- </el-row>
- <el-row :gutter="0"
- style="text-align:right;margin-top:10px;">
- <el-button @click="initData"
- size="small"
- type="primary">查询</el-button>
- <el-button type="primary"
- class="el-button--small"
- @click="clearSearch"
- style="margin-left:8px">重 置</el-button>
- </el-row>
- </el-form>
- </el-collapse-item>
- </el-collapse> -->
- <el-table :data="list"
- stripe
- highlight-current-row
- size="mini"
- border
- style="width: 100%">
- <el-table-column label="操作"
- width="120"
- align="center"
- header-align="center"
- fixed="right">
- <template slot-scope="scope">
- <el-button size="mini"
- type="text"
- title="审核"
- @click="checkData(scope.row)"
- v-if="scope.row.CheckStatus == 0 && auditBtn">审核</el-button>
- <el-button size="mini"
- type="text"
- title="查看"
- @click="checkData(scope.row)"
- v-else>查看</el-button>
- </template>
- </el-table-column>
- <el-table-column prop="CheckStatus"
- label="审核状态"
- width="120"
- align="center"
- header-align="center"
- show-overflow-tooltip>
- <template slot-scope="scope">
- <span v-if="scope.row.CheckStatus == 1"
- style="color:#E6A23C">待审核</span>
- <span v-if="scope.row.CheckStatus == 11"
- style="color:#67C23A">审核通过</span>
- <span v-if="scope.row.CheckStatus == -1"
- style="color:#F56C6C">审核未通过</span>
- </template>
- <!--TODO 新注册账号待审核状态不对-->
- </el-table-column>
- <el-table-column prop="SupplierName"
- label="公司名称"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- <el-table-column prop="CommercialNo"
- label="统一社会信用代码"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- <el-table-column prop="LegalPerson"
- label="法定代表人"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- <el-table-column prop="ContactName"
- label="联系人"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- <el-table-column prop="EMail"
- label="邮箱"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- <el-table-column prop="UserName"
- label="用户名"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- <el-table-column prop="UserTelephone"
- label="用户手机号"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- <el-table-column prop="CheckUnitName"
- label="审核单位"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- <el-table-column prop="ModifiedBy"
- label="审核人"
- align="center"
- header-align="center"
- show-overflow-tooltip></el-table-column>
- </el-table>
- <el-pagination style="float:right;margin:10px 0 10px 0;"
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="currentPage"
- :page-size="size"
- :page-sizes="[10, 15, 20 ]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="currentItemCount">
- </el-pagination>
- </el-col>
- </el-row>
- </el-card>
- <!-- 公司审核信息 -->
- <el-dialog title="企业注册信息"
- :visible.sync="dialogVisible">
- <el-form label-width="135px"
- ref="formData"
- :model="formData"
- size="small">
- <el-row>
- <el-col :span="24">
- <el-form-item label="公司名称"
- label-width="150px"
- style="width: 100%"
- prop="SupplierName">
- <el-input v-model="formData.SupplierName"
- readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="统一社会信用代码"
- label-width="150px"
- style="width: 100%"
- prop="CommercialNo">
- <el-input v-model="formData.CommercialNo"
- readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="法定代表人姓名"
- label-width="150px"
- style="width: 100%"
- prop="LegalPerson">
- <el-input v-model="formData.LegalPerson"
- readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="法定代表人身份证号"
- label-width="150px"
- style="width: 100%"
- prop="LegalPersonId">
- <el-input v-model="formData.LegalPersonId"
- readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="法定代表人身份证扫描件"
- label-width="170px"
- prop="LegalPersonImg">
- <div class="block"
- style="overflow: auto;">
- <template>
- <el-row>
- <el-col :span="12"
- v-for="(url, index) in urlList"
- :key="index">
- <span @click="bigImg(url)">
- <el-image style="width: 170px; height: 100px; cursor: pointer"
- :src="url"></el-image>
- </span>
- </el-col>
- </el-row>
- </template>
- </div>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="联系人姓名"
- label-width="150px"
- style="width: 100%"
- prop="ContactName">
- <el-input v-model="formData.ContactName"
- readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="联系人身份证号"
- label-width="150px"
- style="width: 100%"
- prop="ContactId">
- <el-input v-model="formData.ContactId"
- readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="联系人身份证扫描件"
- label-width="170px"
- prop="ContactImg">
- <div class="block"
- style="overflow: auto;">
- <template>
- <el-row>
- <el-col :span="12"
- v-for="(url, index) in urlList2"
- :key="index">
- <span @click="bigImg(url)">
- <el-image style="width: 170px; height: 100px; cursor: pointer"
- :src="url"></el-image>
- </span>
- </el-col>
- </el-row>
- </template>
- </div>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="12">
- <el-form-item label="邮箱"
- label-width="150px"
- style="width: 100%"
- prop="EMail">
- <el-input v-model="formData.EMail"
- readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="手机号"
- style="width: 100%"
- prop="UserTelephone">
- <el-input v-model="formData.UserTelephone"
- readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="用户名"
- label-width="150px"
- style="width: 100%"
- prop="UserName">
- <el-input v-model="formData.UserName"
- readonly></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <!-- <el-row style="margin-top: 10px; margin-bottom: 20px;"> -->
- <!-- <el-button type="primary" size="mini" @click="ComAudit">审核</el-button> -->
- <!-- <el-button size="mini" @click="cancelOption">审核未通过</el-button> -->
- <!-- <el-button size="mini" type="primary" @click="ensureOption" style="margin-left: 20%;">审核通过</el-button> -->
- <!-- </el-row> -->
- </el-form>
- <div slot="footer"
- class="dialog-footer"
- style="margin-top: -25px">
- <el-button type="primary"
- size="mini"
- v-if="showorhid==0 && auditBtn"
- @click="ComAudit">审核</el-button>
- </div>
- </el-dialog>
- <el-dialog title="审核"
- :visible.sync="Auditshow">
- <el-form :model="shenheForm"
- label-width="100px"
- ref="shenheForm">
- <el-form-item label="审核状态">
- <template>
- <el-radio class="radio"
- v-model="shenheForm.SuccessStatus"
- :label="1">通过</el-radio>
- <el-radio class="radio"
- v-model="shenheForm.SuccessStatus"
- :label="2">未通过</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="请输入审核意见"></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer"
- class="dialog-footer"
- style="margin-top: -25px">
- <el-button size="small"
- @click="Auditshow = false">取 消</el-button>
- <el-button type="primary"
- size="small"
- @click="makeSure()" :loading="btnLoading">确 定</el-button>
- </div>
- </el-dialog>
- <!--点击图片放大区域-->
- <el-dialog title="法定代表人身份证扫描件"
- :visible.sync="legalPersonImgVisible"
- width="40%">
- <el-image :src="bigUrl"></el-image>
- </el-dialog>
- </div>
- </template>
- <script>
- import apiCert from '@/api/oilsupplier/suppliercert'
- export default {
- name: 'companyaudit',
- data () {
- return {
- btnLoading: false,
- btntitle: '查看',
- auditBtn: false,
- Auditshow: false,
- shenheForm: {
- SuccessStatus: 1,
- AuditorRemark: ''
- },
- bigUrl: '',
- legalPersonImgVisible: false,
- currentItemCount: 0,
- currentPage: 1,
- size: 10,
- list: [], // 公司列表
- searchForm: {
- Name: '' // 公司名称
- },
- dialogVisible: false,
- showorhid: 0,
- urlList: [], // 照片地址数组
- urlList2: [], // 照片地址数组2
- formData: {
- Id: '', // int
- UserId: '', // int
- UserName: '', // 账号/Email
- UserRealName: '', // 用户真实姓名
- UserTelephone: '', // 用户手机号
- UserPass: '',
- UserPass2: '',
- SupplierName: '',
- OilCertificateNo: '',
- Grade: '',
- MgrUnit: '',
- OperType: '',
- Country: '',
- CommercialNo: '',
- OrganCode: '',
- CountryTaxNo: '',
- LocalTaxNo: '',
- Address: '',
- DetailAddress: '',
- Province: '',
- City: '',
- Street: '',
- HouseNo: '',
- ZipCode: '',
- BusinessScope: '',
- LegalPerson: '',
- LegalPersonId: '',
- LegalPersonURL: '',
- CategoryCode: '',
- CategoryName: '',
- RegCapital: 0, // float32
- Currency: '',
- ContactName: '',
- ContactId: '',
- ContactURL: '',
- CompanyType: '',
- SetupTime: '', // time
- DepositBank: '',
- BankAccount: '',
- EMail: '',
- BankCreditRating: '',
- Mobile: '',
- Telphone: '',
- Fax: '',
- CompanyTel: '',
- QQ: '',
- CompanyUrl: '',
- Remark: '',
- CheckStatus: 0, // 二级单位审核状态,0:未通过,1:通过 默认0
- IsDelete: 0, // 删除状态,0正常,1已删除
- LinkAddress: '',
- LinkProvince: '',
- LinkCity: '',
- LinkStreet: '',
- LinkHouseNo: '',
- LinkZipCode: '',
- HseTraining: ''
- }
- }
- },
- created () {
- this.initData()
- this.isAccess()
- },
- methods: {
- isAccess () {
- let params = {
- id: this.formData.CertId,
- auditstepcode: 'COMPONY_AUDIT',
- processkey: 'oil_register_apply'
- }
- apiCert.isAccess(params, this.$axios).then(res => {
- this.auditBtn = res.data
- if (this.auditBtn) {
- this.btntitle = '审核'
- } else {
- this.btntitle = '查看'
- }
- }).catch(err => {
- console.log(err)
- })
- },
- bigImg (url) {
- this.bigUrl = url
- this.legalPersonImgVisible = true
- },
- initData () {
- let _this = this
- const params = {
- _currentPage: this.currentPage,
- _size: this.size,
- Name: this.searchForm.Name
- }
- this.$axios.get('/register/getcompanylist', {
- params
- })
- .then(function (response) {
- _this.list = response.data.items
- _this.currentItemCount = response.data.currentItemCount
- })
- .catch(function (error) {
- console.log(error)
- })
- },
- // 审核公司信息
- checkData (row) {
- let _this = this
- _this.formData = row
- _this.dialogVisible = true
- _this.showorhid = row.CheckStatus
- // 处理URL
- _this.urlList = []
- let urlArr = _this.formData.LegalPersonURL.split('&')
- if (urlArr) {
- for (let i = 0; i < urlArr.length; i++) {
- let tempURL = urlArr[i].split('|')
- if (tempURL[0].indexOf('/upfile') === 0) {
- const myDomain = window.location.host
- _this.urlList.push('http://' + myDomain + tempURL[0])
- } else {
- _this.urlList.push('http://' + tempURL[0])
- }
- }
- }
- _this.urlList2 = []
- let urlArr2 = _this.formData.ContactURL.split('&')
- if (urlArr2) {
- for (let i = 0; i < urlArr2.length; i++) {
- let tempURL = urlArr2[i].split('|')
- if (tempURL[0].indexOf('/upfile') === 0) {
- const myDomain = window.location.host
- _this.urlList2.push('http://' + myDomain + tempURL[0])
- } else {
- _this.urlList2.push('http://' + tempURL[0])
- }
- }
- }
- },
- ComAudit () {
- this.Auditshow = true
- },
- // 审核
- makeSure () {
- if (this.shenheForm.AuditorRemark.trim().length < 1) {
- this.$message({
- type: 'warning',
- message: '请填写审批意见!'
- })
- return
- }
- this.checkstatus()
- },
- checkstatus () {
- let _this = this
- const params = _this.shenheForm
- this.btnLoading = true
- _this.$axios.post('/register/comaudit/', _this.formData, { params })
- .then(res => {
- if (res.data.code === 0) {
- _this.$message({
- type: 'success',
- message: res.data.message
- })
- // 关闭dialog
- _this.Auditshow = false
- _this.dialogVisible = false
- this.shenheForm.AuditorRemark = ''
- this.shenheForm.SuccessStatus = 1
- // 更新列表
- _this.initData()
- } else {
- _this.$message({
- type: 'warning',
- message: res.data.message
- })
- }
- this.btnLoading = false
- })
- .catch(err => {
- console.error(err)
- })
- },
- // 审核未通过
- cancelOption () {
- let _this = this
- _this.$axios.delete('/register/deleteinfo/' + _this.formData.Id, {})
- .then(function (response) {
- if (response.data.code === 0) {
- _this.$message({
- type: 'success',
- message: response.data.message
- })
- // 关闭dialog
- _this.dialogVisible = false
- // 更新界面
- _this.initData()
- } else {
- _this.$message({
- type: 'warning',
- message: response.data.message
- })
- }
- })
- .catch(function (error) {
- console.log(error)
- })
- },
- // 审核通过
- ensureOption () {
- let _this = this
- _this.$axios.post('/register/adduser/', _this.formData)
- .then(res => {
- if (res.data.code === 0) {
- _this.$message({
- type: 'success',
- message: res.data.message
- })
- // 关闭dialog
- _this.dialogVisible = false
- // 更新列表
- _this.initData()
- } else {
- _this.$message({
- type: 'warning',
- message: res.data.message
- })
- }
- })
- .catch(err => {
- console.error(err)
- })
- },
- handleSizeChange (value) {
- this.size = value
- this.currentPage = 1
- this.initData()
- },
- handleCurrentChange (value) {
- this.currentPage = value
- this.initData()
- },
- clearSearch () {
- this.searchForm.Name = ''
- this.initData()
- }
- }
- }
- </script>
- <style lang="scss">
- .time {
- font-size: 13px;
- color: #999;
- }
- .bottom {
- margin-top: 13px;
- line-height: 12px;
- }
- .button {
- padding: 0;
- float: right;
- }
- .image {
- width: 100%;
- display: block;
- }
- .clearfix:before,
- .clearfix:after {
- display: table;
- content: "";
- }
- .clearfix:after {
- clear: both;
- }
- .el-pagination {
- margin: 1rem 0 2rem;
- text-align: right;
- }
- .plab {
- font-size: 13px;
- color: #999;
- }
- .triggerone {
- font-size: 13px;
- margin-left: 80px;
- }
- .plab {
- font-size: 13px;
- color: #999;
- }
- .docdelete .el-radio {
- padding: 8px 15px 0 0;
- margin-left: -2px;
- }
- </style>
|