| | |
| | | <el-option label="待处理" value="0"></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-form-item label="申请日期" prop="status"> |
| | |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="申请开票企业" prop="companyId"> |
| | | <el-form-item label="申请开票企业" prop="companyId" v-if="userInfo.type === 0"> |
| | | <el-select v-model="searchForm.companyId" placeholder="请选择" @change="search"> |
| | | <el-option |
| | | v-for="item in companyList" |
| | |
| | | </el-table-column> |
| | | <el-table-column label="开票状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status === 0">待处理</span> |
| | | <span v-if="row.status === 1">已开票</span> |
| | | <span v-if="row.status === 2">平台撤回</span> |
| | | <span :class="'tax-status'+row.status" v-if="row.status === 0">待处理</span> |
| | | <span :class="'tax-status'+row.status" v-if="row.status === 1">已开票</span> |
| | | <span :class="'tax-status'+row.status" v-if="row.status === 2">平台撤回</span> |
| | | <span :class="'tax-status'+row.status" v-if="row.status === 3">已冲红</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyName" label="申请企业" min-width="100px"></el-table-column> |
| | | <el-table-column prop="companyName" label="申请企业" min-width="100px" v-if="userInfo.type === 0"></el-table-column> |
| | | <el-table-column prop="createDate" label="申请开票时间" min-width="100px"></el-table-column> |
| | | <el-table-column prop="creatorName" label="申请人" min-width="100px"></el-table-column> |
| | | <el-table-column prop="price" label="开票金额(元)" min-width="100px"></el-table-column> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="发票电子版" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <img v-if="row.imgurlFull!=null" :src="row.imgurlFull" style="width: 40px;height: 40px"> |
| | | <el-image |
| | | v-if="row.imgurlFull!=null" |
| | | style="width: 40px; height: 40px" |
| | | :src="row.imgurlFull" |
| | | :preview-src-list="[row.imgurlFull]"> |
| | | </el-image> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" min-width="180px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button v-if="row.status==0" type="text" @click="$refs.OperaTaxesUploadWindow.open('上传发票',row)">上传发票</el-button> |
| | | <el-button v-if="row.status ==1 " type="text" @click="$refs.OperaTaxesUploadWindow.open('修改发票',row)">修改发票</el-button> |
| | | <el-button type="text">申请详情</el-button> |
| | | <el-button v-if="row.status == 0" type="text" @click="$refs.OperaTaxesUploadWindow.open('上传发票',row)">上传发票</el-button> |
| | | <el-button v-if="row.status == 1 && userInfo.type === 0" type="text" @click="$refs.OperaTaxesUploadWindow.open('修改发票',row)">修改发票</el-button> |
| | | <el-button type="text" @click="$refs.OperaTaxesWindow.open('开票申请详情',row)">申请详情</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import { pageAll as companyAll } from '@/api/business/company' |
| | | import { doneApply } from '@/api/business/taxes' |
| | | import UploadAvatarImage from '@/components/common/UploadAvatarImage' |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | name: 'Taxes', |
| | | extends: BaseTable, |
| | |
| | | visible: false |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: '发票信息表', |