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