|
|
|
@ -66,10 +66,10 @@
|
|
|
|
|
<a-button @click="openRed" v-repeat type="link" v-if="route.query.id">
|
|
|
|
|
<span class="iconfont icon-dengjizongshu"></span>冲红
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button v-repeat type="link" v-if="route.query.id">
|
|
|
|
|
<!-- <a-button v-repeat type="link" v-if="route.query.id">
|
|
|
|
|
<span class="iconfont icon-youjian"></span>邮件转发
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button v-repeat type="link" v-if="route.query.id">
|
|
|
|
|
</a-button> -->
|
|
|
|
|
<a-button @click="lookInvoice" v-repeat type="link" v-if="route.query.id">
|
|
|
|
|
<span class="iconfont icon-ic_search24px"></span>查看发票
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button @click="openHand" v-repeat type="link" v-if="route.query.id">
|
|
|
|
@ -415,7 +415,7 @@ import applyInvoice from './applyInvoice.vue'
|
|
|
|
|
import invoiceFile from './invoiceFile.vue'
|
|
|
|
|
import { DownOutlined } from '@ant-design/icons-vue'
|
|
|
|
|
import {
|
|
|
|
|
GetInvoiceCodeList, GetUserListAll, DeleteInvoiceDetail,
|
|
|
|
|
GetInvoiceCodeList, GetUserListAll, DeleteInvoiceDetail,ApiQuery,
|
|
|
|
|
GeneralInvoiceSave, GeneralInvoiceGet, FreeInvoiceSave, Reverse,
|
|
|
|
|
GeneralInvoiceGetList, GeneralInvoiceInitiate, GetClientBankList
|
|
|
|
|
} from '../api'
|
|
|
|
@ -816,6 +816,17 @@ const handFlag = ref(false)
|
|
|
|
|
function openHand() {
|
|
|
|
|
handFlag.value = true
|
|
|
|
|
}
|
|
|
|
|
function lookInvoice(){
|
|
|
|
|
loading.value = true
|
|
|
|
|
ApiQuery({id:route.query.id}).then(res=>{
|
|
|
|
|
if(res.succeeded){
|
|
|
|
|
window.open(res.data.pdfUrl)
|
|
|
|
|
}
|
|
|
|
|
loading.value = false
|
|
|
|
|
}).catch(()=>{
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const invoiceFileRef = ref('')
|
|
|
|
|
function openFile() {
|
|
|
|
|
invoiceFileRef.value.init()
|
|
|
|
|