提交 08224878 authored 作者: matian's avatar matian

style:样式修改

上级 6b7b4395
...@@ -26,3 +26,7 @@ export function deposit() { ...@@ -26,3 +26,7 @@ export function deposit() {
export function downloadInvoices(params) { export function downloadInvoices(params) {
return httpRequest.get('/api/finance/v1/invoices/download', { params, responseType: 'blob' }) return httpRequest.get('/api/finance/v1/invoices/download', { params, responseType: 'blob' })
} }
// 确认销售领取
export function confirmReceive(data) {
return httpRequest.post('/api/finance/v1/invoices/confirm-receive', data)
}
...@@ -43,8 +43,15 @@ ...@@ -43,8 +43,15 @@
</el-row> </el-row>
<template v-slot:table-x="{ row }"> <template v-slot:table-x="{ row }">
<router-link target="_blank" :to="{ name: 'paymentView', params: { id: row.payment_id } }"> <router-link target="_blank" :to="{ name: 'paymentView', params: { id: row.payment_id } }">
<el-button type="text">查看</el-button> <el-button type="primary">查看</el-button>
</router-link> </router-link>
<el-button
type="primary"
@click="confirmReceived(row)"
v-show="row.invoice_type === '2'"
style="margin-left: 10px"
>确认领取</el-button
>
</template> </template>
<template #footer> <template #footer>
<span>已选择{{ multipleSelection.length }}</span> <span>已选择{{ multipleSelection.length }}</span>
...@@ -68,7 +75,7 @@ import AppList from '@/components/base/AppList.vue' ...@@ -68,7 +75,7 @@ import AppList from '@/components/base/AppList.vue'
import AppCard from '@/components/base/AppCard.vue' import AppCard from '@/components/base/AppCard.vue'
import DistributionDialog from '../components/DistributionDialog.vue' import DistributionDialog from '../components/DistributionDialog.vue'
// 接口 // 接口
import { getInvoiceList, getCondition, deposit } from '../api' import { getInvoiceList, getCondition, deposit, confirmReceive } from '../api'
import XLSX from 'xlsx' import XLSX from 'xlsx'
import fileDownload from 'js-file-download' import fileDownload from 'js-file-download'
import queryString from 'query-string' import queryString from 'query-string'
...@@ -204,8 +211,10 @@ export default { ...@@ -204,8 +211,10 @@ export default {
{ label: '票据跟进人', prop: 'sales_rep_user_id_name', align: 'center', minWidth: '100px' }, { label: '票据跟进人', prop: 'sales_rep_user_id_name', align: 'center', minWidth: '100px' },
{ label: '发票申请日期', prop: 'invoice_application_time', align: 'center', minWidth: '150px' }, { label: '发票申请日期', prop: 'invoice_application_time', align: 'center', minWidth: '150px' },
{ label: '开票时间', prop: 'invoice_issuing_time', align: 'center', minWidth: '150px' }, { label: '开票时间', prop: 'invoice_issuing_time', align: 'center', minWidth: '150px' },
{ label: '开票状态', prop: 'invoiceStatusViewName', align: 'center', minWidth: '100px' }, { label: '发票状态', prop: 'invoiceStatusViewName', align: 'center', minWidth: '100px' },
{ label: '操作', slots: 'table-x', align: 'center', fixed: 'right', minWidth: '100px' } { label: '票据领取状态', prop: 'receive_status', align: 'center', minWidth: '100px' },
{ label: '票据领取时间', prop: 'receive_time', align: 'center', minWidth: '100px' },
{ label: '操作', slots: 'table-x', align: 'center', fixed: 'right', minWidth: '200px' }
] ]
} }
} }
...@@ -246,6 +255,18 @@ export default { ...@@ -246,6 +255,18 @@ export default {
} }
return params return params
}, },
// 确认领取
confirmReceived(row) {
const params = {
invoices_id: row.id
}
confirmReceive(params).then(res => {
if (res.code === 0) {
this.$message.success('发票领取成功')
this.$refs.list.refetch()
}
})
},
// 分配票据跟进人弹窗 // 分配票据跟进人弹窗
dialogHide() { dialogHide() {
this.isShowDialog = false this.isShowDialog = false
......
<!-- 开具发票--> <!-- 开具发票-->
<template> <template>
<div> <div>
<h3 style="margin-bottom: 20px">支付信息</h3> <h3 style="margin-bottom: 20px; margin-left: 10px">支付信息</h3>
<table border="1" width="860px" cellspacing="0" class="tableDetail"> <table border="1" width="860px" cellspacing="0" class="tableDetail">
<tr> <tr>
<th>客户姓名</th> <th>客户姓名</th>
...@@ -50,7 +50,8 @@ ...@@ -50,7 +50,8 @@
</el-form> </el-form>
<el-form label-width="120px" ref="ruleForm" :model="form" :rules="rules" style="margin-top: 20px"> <el-form label-width="120px" ref="ruleForm" :model="form" :rules="rules" style="margin-top: 20px">
<div class="type" style="border: 1px solid #ebeef5; margin-bottom: 10px; padding-right: 50px"> <div class="type" style="border: 1px solid #ebeef5; margin-bottom: 10px; padding-right: 50px">
<el-form-item label="发票信息" class="title"> <el-form-item class="title" style="margin-top: 10px">
<span style="display: inline-block; font-size: 19px; font-weight: 800; margin-left: -110px">发票信息</span>
<el-button type="text" style="float: right" @click="$emit('history')">历史开票信息</el-button> <el-button type="text" style="float: right" @click="$emit('history')">历史开票信息</el-button>
</el-form-item> </el-form-item>
<el-form-item label="发票类型" prop="invoice_type"> <el-form-item label="发票类型" prop="invoice_type">
...@@ -110,9 +111,10 @@ ...@@ -110,9 +111,10 @@
<el-form-item label="备注"> <el-form-item label="备注">
<el-input disabled :placeholder="row.payer_name"></el-input> <el-input disabled :placeholder="row.payer_name"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="收票信息"> <h3 style="margin-bottom: 20px; margin-left: 10px">收票信息</h3>
<!-- <el-form-item label="收票信息"> -->
<!-- <span>请填写邮箱地址,方便接收电子发票</span> --> <!-- <span>请填写邮箱地址,方便接收电子发票</span> -->
</el-form-item> <!-- </el-form-item> -->
<!-- 电子发票显示邮箱 --> <!-- 电子发票显示邮箱 -->
<el-form-item <el-form-item
label="邮箱" label="邮箱"
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</template> </template>
</app-list> </app-list>
<!-- 开具发票 --> <!-- 开具发票 -->
<el-dialog title="开具发票" :visible.sync="ticketVisible" width="900px" append-to-body :destroy-on-close="true"> <el-drawer title="开具发票" :visible.sync="ticketVisible" size="60%" append-to-body :destroy-on-close="true">
<TicketForm <TicketForm
:history="history" :history="history"
@history="handleHistory" @history="handleHistory"
...@@ -79,10 +79,10 @@ ...@@ -79,10 +79,10 @@
@createTicket="handleCreateTicket" @createTicket="handleCreateTicket"
:row="row" :row="row"
/> />
<el-dialog <el-drawer
size="20%"
title="历史开票信息" title="历史开票信息"
:visible.sync="historyVisible" :visible.sync="historyVisible"
width="460px"
top="15px" top="15px"
append-to-body append-to-body
:destroy-on-close="true" :destroy-on-close="true"
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
:modal="false" :modal="false"
> >
<History v-if="historyVisible" :hasSearch="true" @select="handleSelect" /> <History v-if="historyVisible" :hasSearch="true" @select="handleSelect" />
</el-dialog> </el-drawer>
</el-dialog> </el-drawer>
<!-- 开票二维码 --> <!-- 开票二维码 -->
<ShareQrcode :visible.sync="codeVisible" :value="shareUrl" /> <ShareQrcode :visible.sync="codeVisible" :value="shareUrl" />
</app-card> </app-card>
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
{ label: '实缴金额', prop: 'amount_need_to_pay', align: 'center', minWidth: 100 }, { label: '实缴金额', prop: 'amount_need_to_pay', align: 'center', minWidth: 100 },
{ label: '手续费', prop: 'service_charge', align: 'center', minWidth: 100 }, { label: '手续费', prop: 'service_charge', align: 'center', minWidth: 100 },
{ label: '到账金额', prop: 'amount_received', align: 'center', minWidth: 100 }, { label: '到账金额', prop: 'amount_received', align: 'center', minWidth: 100 },
{ label: '缴金额', prop: 'amount_waiting_for_pay', align: 'center', minWidth: 100 }, { label: '缴金额', prop: 'amount_waiting_for_pay', align: 'center', minWidth: 100 },
{ label: '跟进人', prop: 'sales_rep_user_id_name', align: 'center', minWidth: 100 }, { label: '跟进人', prop: 'sales_rep_user_id_name', align: 'center', minWidth: 100 },
{ label: '渠道', prop: 'channel_id_name', align: 'center', minWidth: 300 }, { label: '渠道', prop: 'channel_id_name', align: 'center', minWidth: 300 },
{ label: '交易流水号', prop: 'txn_id_list', align: 'center', minWidth: 300 }, { label: '交易流水号', prop: 'txn_id_list', align: 'center', minWidth: 300 },
...@@ -340,12 +340,11 @@ export default { ...@@ -340,12 +340,11 @@ export default {
this.row = row this.row = row
this.id = row.id this.id = row.id
// 学费 // 学费
if (row.real_invoice_status === '1') { if (row.real_invoice_status === 1) {
this.ticketVisible = true this.ticketVisible = true
} else { } else {
this.$message.error('当前不可开发票') this.$message.error('当前不可开发票')
} }
}
}, },
// 作废发票 // 作废发票
disabledTicket(row) { disabledTicket(row) {
...@@ -365,7 +364,7 @@ export default { ...@@ -365,7 +364,7 @@ export default {
}) })
}, },
qrCode(row) { qrCode(row) {
if (row.real_invoice_status === '1') { if (row.real_invoice_status === 1) {
this.shareUrl = `${import.meta.env.VITE_SHARE_URL}/h5/payment/invoice?id=${row.id}&remark=${ this.shareUrl = `${import.meta.env.VITE_SHARE_URL}/h5/payment/invoice?id=${row.id}&remark=${
row.payer_name row.payer_name
}&name=${row.sales_rep_user_id_name}` }&name=${row.sales_rep_user_id_name}`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论