| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaCompanyDescWindow.open('企业详情', row)" v-permissions="['business:company:update']">查看详情</el-button> |
| | | <el-button type="text" @click="$refs.operaCompanyWindow.open('编辑企业信息表', row)" v-permissions="['business:company:update']">修改</el-button> |
| | | <el-button type="text" @click="edit(row)" v-permissions="['business:company:update']">修改</el-button> |
| | | <el-button type="text" @click="$refs.operaCompanyWindow.open('编辑企业信息表', row)" v-permissions="['business:company:update']">电子签认证</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaCompanyWindow from '@/components/business/OperaCompanyWindow' |
| | | import OperaCompanyDescWindow from '@/components/business/OperaCompanyDescWindow' |
| | | import { updateStatus } from '@/api/business/company' |
| | | import { updateStatus, getById } from '@/api/business/company' |
| | | export default { |
| | | name: 'Company', |
| | | extends: BaseTable, |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | edit(row) { |
| | | getById(row.id) |
| | | .then(res => { |
| | | let form = res; |
| | | form.type = 1 |
| | | form.file = { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | } |
| | | form.file1 = { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | } |
| | | form.file2 = { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | } |
| | | form.file3 = { |
| | | imgurl: '', |
| | | imgurlfull: '' |
| | | } |
| | | form.file.imgurl = res.businessImg.fileurl |
| | | form.file.imgurlfull = res.businessImg.fileurlFull |
| | | form.file1.imgurl = res.idcardImgList[0].fileurl |
| | | form.file1.imgurlfull = res.idcardImgList[0].fileurlFull |
| | | form.file2.imgurl = res.idcardImgList[1].fileurl |
| | | form.file2.imgurlfull = res.idcardImgList[1].fileurlFull |
| | | form.file3.imgurl = res.signImg.fileurl |
| | | form.file3.imgurlfull = res.signImg.fileurlFull |
| | | this.$refs.operaCompanyWindow.open('编辑企业', form) |
| | | }) |
| | | }, |
| | | // 修改状态 |
| | | changeStatus(status, row) { |
| | | updateStatus({ id: row.id, status }) |