|
|
|
@ -122,7 +122,7 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { ref, onMounted, defineComponent, nextTick, watchEffect, watch } from 'vue'
|
|
|
|
|
import {
|
|
|
|
|
InvoiceSettlementSave, InvoiceSettlementGet,
|
|
|
|
|
InvoiceSettlementSave, InvoiceSettlementGet,PaymentFreeSettlementGetFees,
|
|
|
|
|
PaymentSettlementGetList, PaymentSettlementDeleteDetail, PaymentFreeSettlementGet,
|
|
|
|
|
GeneralInvoiceGet, PaymentFreeSettlementSave
|
|
|
|
|
} from './api'
|
|
|
|
@ -239,7 +239,7 @@ function updateListFreeLeft(arr, currency,arrQuery) {
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
let type = route.query.type
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}&type=${type}`)
|
|
|
|
|
go(`/paymentSettlementFree?id=${res.data.id}&type=${type}`)
|
|
|
|
|
}, 50)
|
|
|
|
|
} else {
|
|
|
|
|
getDetail()
|
|
|
|
@ -273,14 +273,14 @@ function ClickLast(type) {
|
|
|
|
|
if (indexQuery == 0) {
|
|
|
|
|
createMessage.warning('已经是第一条了')
|
|
|
|
|
} else {
|
|
|
|
|
go("/invoiceIssueDetail?id=" + list[indexQuery - 1].id + '&type=' + route.query.type)
|
|
|
|
|
go("/paymentSettlementFree?id=" + list[indexQuery - 1].id + '&type=' + route.query.type)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (type == 'last') {
|
|
|
|
|
if (indexQuery == list.length - 1) {
|
|
|
|
|
createMessage.warning('已经是最后一条了')
|
|
|
|
|
} else {
|
|
|
|
|
go("/invoiceIssueDetail?id=" + list[indexQuery + 1].id + '&type=' + route.query.type)
|
|
|
|
|
go("/paymentSettlementFree?id=" + list[indexQuery + 1].id + '&type=' + route.query.type)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -324,6 +324,23 @@ function handleClick(record) {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (route.query.type == 'free') {
|
|
|
|
|
setSelectedRowKeys([record.id])
|
|
|
|
|
const data = {
|
|
|
|
|
items: [{
|
|
|
|
|
id: record.businessId,
|
|
|
|
|
businessType: record.businessType,
|
|
|
|
|
customerId: record.customerId
|
|
|
|
|
}],
|
|
|
|
|
queryCondition: ''
|
|
|
|
|
}
|
|
|
|
|
PaymentFreeSettlementGetFees(data).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
setTableData1(res.data.items)
|
|
|
|
|
}
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
const invoiceTableRef = ref(null) as any
|
|
|
|
@ -359,7 +376,7 @@ function updateList(arr, currency) {
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
let type = route.query.type
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}&type=${type}`)
|
|
|
|
|
go(`/paymentSettlementFree?id=${res.data.id}&type=${type}`)
|
|
|
|
|
}, 50)
|
|
|
|
|
} else {
|
|
|
|
|
getDetail()
|
|
|
|
@ -388,7 +405,7 @@ function updateListFree(arr, currency) {
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
let type = route.query.type
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}&type=${type}`)
|
|
|
|
|
go(`/paymentSettlementFree?id=${res.data.id}&type=${type}`)
|
|
|
|
|
}, 50)
|
|
|
|
|
} else {
|
|
|
|
|
getDetail()
|
|
|
|
@ -419,7 +436,7 @@ function handleSave() {
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
let type = route.query.type
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}&type=${type}`)
|
|
|
|
|
go(`/paymentSettlementFree?id=${res.data.id}&type=${type}`)
|
|
|
|
|
}, 50)
|
|
|
|
|
} else {
|
|
|
|
|
getDetail()
|
|
|
|
@ -437,7 +454,7 @@ function handleSave() {
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
let type = route.query.type
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}&type=${type}`)
|
|
|
|
|
go(`/paymentSettlementFree?id=${res.data.id}&type=${type}`)
|
|
|
|
|
}, 50)
|
|
|
|
|
} else {
|
|
|
|
|
getDetail()
|
|
|
|
|