feature-JimuReport-1106-yjl
sunzehua 4 weeks ago
parent 77dbee2dd6
commit bd261fe435

@ -31,11 +31,12 @@ const CategoryData = [
const bankList = ref([]) as any const bankList = ref([]) as any
const customerList = ref([]) as any const customerList = ref([]) as any
import { import {
GetControllerClientList,GetCustomerServiceList GetCustomerServiceList
} from '/@/views/operation/seaexport/api/BookingLedger' } from '/@/views/operation/seaexport/api/BookingLedger'
import { GetClientBankList, GetOrgList } from './api' import { GetClientBankList, GetOrgList } from './api'
import { GetFeeCurrencySelectList,GetFeeCodeSelectList,GetClientListByCode } from '/@/api/common' import { GetFeeCurrencySelectList,GetFeeCodeSelectList,GetClientListByCode,GetControllerClientList } from '/@/api/common'
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
{ {
field: 'applicationNO', field: 'applicationNO',

@ -592,9 +592,9 @@ function addDetailed() {
customerId: item.customerId customerId: item.customerId
}) })
}) })
const queryDataStr = JSON.parse(queryData.value.queryCondition) const queryDataStr1 = JSON.parse(queryData.value.queryCondition)
const arr = [] as any const arr = [] as any
queryDataStr.forEach(item => { queryDataStr1.forEach(item => {
if (item.FieldName == 'feeType') { if (item.FieldName == 'feeType') {
arr.push(item) arr.push(item)
} }

@ -656,7 +656,6 @@ const bottomFormEdit = [
{ {
label: '客户名称', label: '客户名称',
field: 'customerName', field: 'customerName',
required: true,
component: 'DEdit', component: 'DEdit',
colProps: { span: 4 }, colProps: { span: 4 },
componentProps: (e) => { componentProps: (e) => {

@ -199,3 +199,10 @@ export function Reverse(parameter) {
data: parameter, data: parameter,
}) })
} }
export function ApiQuery(parameter) {
return request({
url: '/feeApi/GeneralInvoice/ApiQuery',
method: 'post',
params: parameter,
})
}

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

Loading…
Cancel
Save