Commit c2e447c1 authored by 许珑标's avatar 许珑标

开票人信息、开票申请

parent 0d2a1dc9
...@@ -83,3 +83,12 @@ export function updateInvoiceStatus(data) { ...@@ -83,3 +83,12 @@ export function updateInvoiceStatus(data) {
data: data data: data
}) })
} }
// 通过外部付款卡号获取销售方开票信息
export function getSellerInvoiceInfo(cardNo) {
return request({
url: `/business/laborSign/getSellerInvoiceInfo/${cardNo}`,
method: 'get',
})
}
import request from '@/utils/request'
// 查询办税人信息列表
export function listLoginUser(query) {
return request({
url: '/business/loginUser/list',
method: 'get',
params: query
})
}
// 查询办税人信息所有列表
export function listAllLoginUser(query) {
return request({
url: '/business/loginUser/listAll',
method: 'get',
params: query
})
}
// 查询办税人信息详细
export function getLoginUser(id) {
return request({
url: '/business/loginUser/getInfo/' + id,
method: 'get'
})
}
// 新增办税人信息
export function addLoginUser(data) {
return request({
url: '/business/loginUser/add',
method: 'post',
data: data
})
}
// 修改办税人信息
export function updateLoginUser(data) {
return request({
url: '/business/loginUser/edit',
method: 'post',
data: data
})
}
// 删除办税人信息
export function delLoginUser(id) {
return request({
url: '/business/loginUser/remove/' + id,
method: 'get'
})
}
...@@ -201,6 +201,7 @@ export default { ...@@ -201,6 +201,7 @@ export default {
/** 查询付款主体信息列表 */ /** 查询付款主体信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
this.queryParams.bindType = 1
listCompanyInfo(this.queryParams).then(response => { listCompanyInfo(this.queryParams).then(response => {
this.companyInfoList = response.rows; this.companyInfoList = response.rows;
this.total = response.total; this.total = response.total;
......
...@@ -155,6 +155,13 @@ ...@@ -155,6 +155,13 @@
v-hasPermi="['business:invoiceApply:uploadInvoiceFile']" v-hasPermi="['business:invoiceApply:uploadInvoiceFile']"
@click="uploadInvoiceDailog(scope.row)" @click="uploadInvoiceDailog(scope.row)"
>上传发票</el-button> >上传发票</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-s-help"
v-hasPermi="['business:invoiceApply:uploadInvoiceFile']"
@click="onlineInvoice(scope.row)"
>一键开票</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
...@@ -426,7 +433,18 @@ ...@@ -426,7 +433,18 @@
<el-button @click="uploadInvoiceOpen = false">取 消</el-button> <el-button @click="uploadInvoiceOpen = false">取 消</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 一键发票对话框 -->
<el-dialog title="上传发票" :visible.sync="onlineInvoiceForm.panel">
<el-form :model="onlineInvoiceForm" ref="onlineInvoiceForm" size="small" label-width="100px">
<el-select v-model="onlineInvoiceForm.taxpayerId" placeholder="请选择开票员" clearable>
<el-option v-for="item in taxpayerList" :key="item.loginUserIdCard" :label="item.loginName" :value="item.id" />
</el-select>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="uploadInvoiceFile">确 定</el-button>
<el-button @click="onlineInvoiceForm.panel = false">取 消</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -442,6 +460,7 @@ import { ...@@ -442,6 +460,7 @@ import {
import { listCompanyInfo } from '@/api/business/companyInfo' import { listCompanyInfo } from '@/api/business/companyInfo'
import fa from 'element-ui/src/locale/lang/fa' import fa from 'element-ui/src/locale/lang/fa'
import { laborSign, querySignList } from '@/api/business/unitInfo' import { laborSign, querySignList } from '@/api/business/unitInfo'
import { listAllLoginUser } from '@/api/business/taxUser'
export default { export default {
name: "InvoiceApply", name: "InvoiceApply",
...@@ -453,6 +472,11 @@ export default { ...@@ -453,6 +472,11 @@ export default {
dicts: ['invoice_status', 'tax_invoice_type'], dicts: ['invoice_status', 'tax_invoice_type'],
data() { data() {
return { return {
// 一键开票
onlineInvoiceForm: {
panel: false,
taxpayerId: ''
},
//上传发票 //上传发票
applyInvoiceId: null, applyInvoiceId: null,
viewInvoiceFileOpen : false, viewInvoiceFileOpen : false,
...@@ -586,7 +610,8 @@ export default { ...@@ -586,7 +610,8 @@ export default {
invocieUrl: [ invocieUrl: [
{ required: true, message: "发票文件地址不能为空", trigger: "blur" } { required: true, message: "发票文件地址不能为空", trigger: "blur" }
], ],
} },
taxpayerList: [],
}; };
}, },
created() { created() {
...@@ -816,6 +841,18 @@ export default { ...@@ -816,6 +841,18 @@ export default {
this.form = response.data; this.form = response.data;
}); });
}, },
onlineInvoice(row) {
let taxpayerQuery = {
// companyType: 2,
// companyId: row.taxCompanyId
}
listAllLoginUser(taxpayerQuery).then(resp => {
if (200 === resp.code) {
this.taxpayerList = resp.data
}
})
this.onlineInvoiceForm.panel = true
},
}, },
}; };
</script> </script>
......
This diff is collapsed.
...@@ -61,7 +61,11 @@ ...@@ -61,7 +61,11 @@
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="企业名称" align="center" prop="unitName" fixed/> <el-table-column label="企业名称" align="center" prop="unitName" fixed/>
<el-table-column label="信用代码" align="center" prop="unitCode" fixed/> <el-table-column label="信用代码" align="center" prop="unitCode" fixed/>
<el-table-column label="所属行业" align="center" prop="sectorDictDataVal"/> <el-table-column label="所属行业" align="center" prop="sectorDictDataVal">
<template slot-scope="scope">
<dict-tag :options="dict.type.unit_business_type" :value="scope.row.sectorDictDataVal"/>
</template>
</el-table-column>
<el-table-column label="法人姓名" align="center" prop="legalPersonName"/> <el-table-column label="法人姓名" align="center" prop="legalPersonName"/>
<el-table-column label="法人联系电话" align="center" prop="legalPersonMobile"/> <el-table-column label="法人联系电话" align="center" prop="legalPersonMobile"/>
<el-table-column label="所属地址" align="center" prop="address"/> <el-table-column label="所属地址" align="center" prop="address"/>
...@@ -162,7 +166,7 @@ import { listUnitInfo, delUnitInfo, getUnitTaxCategories, updateUnitInfo } from ...@@ -162,7 +166,7 @@ import { listUnitInfo, delUnitInfo, getUnitTaxCategories, updateUnitInfo } from
export default { export default {
name: 'UnitInfo', name: 'UnitInfo',
dicts: ['tax_invoice_status', 'tax_invoice_type'], dicts: ['tax_invoice_status', 'tax_invoice_type', 'unit_business_type'],
data() { data() {
return { return {
taxCategoryPanel: { taxCategoryPanel: {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment