|
|
|
@ -37,10 +37,10 @@
|
|
|
|
|
</span>
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="color: #17a6a3" class="right-b lock" v-if="route.query.id">
|
|
|
|
|
<div style="color: #17a6a3" class="right-b lock" v-if="route.query.id && form.isLocked">
|
|
|
|
|
<span class="iconfont icon-locksuo"></span>锁定
|
|
|
|
|
</div>
|
|
|
|
|
<div style="color: #7a8798" class="right-b lock" v-if="!route.query.id">
|
|
|
|
|
<div style="color: #7a8798" class="right-b lock" v-if="!route.query.id || !form.isLocked">
|
|
|
|
|
<span class="iconfont icon-a-jiesuo1_jiesuo"></span>未锁定
|
|
|
|
|
</div>
|
|
|
|
|
<div class="type">
|
|
|
|
@ -116,7 +116,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { ref, onMounted, defineComponent, nextTick, watchEffect, watch } from 'vue'
|
|
|
|
|
import { InvoiceSettlementSave, InvoiceSettlementGet, GetClientBankList } from '../api'
|
|
|
|
|
import { InvoiceSettlementSave, InvoiceSettlementGet, PaymentSettlementGetList,InvoiceSettlementGetInvoiceDetails } from '../api'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
import invoiceTable from './invoiceTable.vue'
|
|
|
|
|
import invoiceFile from '../../../operation/invoiceIssue/detail/invoiceFile.vue'
|
|
|
|
@ -144,7 +144,7 @@ const [registerFormMark, { getFieldsValue: getFieldsValueMark, setFieldsValue: s
|
|
|
|
|
schemas: markForm,
|
|
|
|
|
showActionButtonGroup: false,
|
|
|
|
|
})
|
|
|
|
|
const [registerTable, { setTableData }] = useTable({
|
|
|
|
|
const [registerTable, { setTableData,setSelectedRowKeys }] = useTable({
|
|
|
|
|
columns: invoiceColum,
|
|
|
|
|
useSearchForm: false,
|
|
|
|
|
showIndexColumn: false,
|
|
|
|
@ -176,9 +176,65 @@ const [registerTable1, { getSelectRows: getSelectRowsFee, setProps: setPropsFee,
|
|
|
|
|
canResize: true,
|
|
|
|
|
immediate: false,
|
|
|
|
|
})
|
|
|
|
|
function ClickLast(type) {
|
|
|
|
|
const data = {
|
|
|
|
|
"queryCondition": "[]",
|
|
|
|
|
"pageCondition": {
|
|
|
|
|
"pageIndex": 1,
|
|
|
|
|
"pageSize": 100,
|
|
|
|
|
"sortConditions": []
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let indexQuery = 0
|
|
|
|
|
let list = []
|
|
|
|
|
PaymentSettlementGetList(data).then(res => {
|
|
|
|
|
list = res.data.list
|
|
|
|
|
res.data.list.forEach((item, index) => {
|
|
|
|
|
if (item.id == route.query.id) {
|
|
|
|
|
indexQuery = index
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(indexQuery, list)
|
|
|
|
|
if (type == 'next') {
|
|
|
|
|
if (indexQuery == 0) {
|
|
|
|
|
createMessage.warning('已经是第一条了')
|
|
|
|
|
} else {
|
|
|
|
|
go("/invoiceIssueDetail?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)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function addDetailed(){
|
|
|
|
|
if (route.query.type == 'invoice') {
|
|
|
|
|
invoiceTableRef.value.customerIdP = form.value.customerId
|
|
|
|
|
invoiceTableRef.value.init()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function handleClick(record){
|
|
|
|
|
setSelectedRowKeys([record.id])
|
|
|
|
|
const data = {
|
|
|
|
|
ids: [record.id],
|
|
|
|
|
businessType: record.businessType,
|
|
|
|
|
}
|
|
|
|
|
loading.value = true
|
|
|
|
|
InvoiceSettlementGetInvoiceDetails(data).then(res => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
setTableData1(res.data)
|
|
|
|
|
}
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const invoiceTableRef = ref('')
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
if (route.query.type == 'invoice' && !route.query.id) {
|
|
|
|
|
invoiceTableRef.value.customerIdP = ''
|
|
|
|
|
invoiceTableRef.value.init()
|
|
|
|
|
}
|
|
|
|
|
if (route.query.type == 'invoice' && route.query.id) {
|
|
|
|
@ -207,7 +263,7 @@ function updateList(arr, currency) {
|
|
|
|
|
const { fullPath } = route //获取当前路径
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}`)
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}&type=${route.query.type}`)
|
|
|
|
|
}, 50)
|
|
|
|
|
} else {
|
|
|
|
|
getDetail()
|
|
|
|
@ -236,7 +292,7 @@ function handleSave() {
|
|
|
|
|
const { fullPath } = route //获取当前路径
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}`)
|
|
|
|
|
go(`/feeSettlementDetail?id=${res.data.id}&type=${route.query.type}`)
|
|
|
|
|
}, 50)
|
|
|
|
|
} else {
|
|
|
|
|
getDetail()
|
|
|
|
@ -255,31 +311,12 @@ function getDetail() {
|
|
|
|
|
res.data.currencyAmount = res.data.currency + '/' + res.data.amount
|
|
|
|
|
setFieldsValueMark(res.data)
|
|
|
|
|
setFieldsValue(res.data)
|
|
|
|
|
setTableData(res.data.details)
|
|
|
|
|
setTableData(res.data.settlementDetails)
|
|
|
|
|
}
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const bankList = ref([])
|
|
|
|
|
function getBankInfo(id) {
|
|
|
|
|
const queryStr = [
|
|
|
|
|
{
|
|
|
|
|
FieldName: 'ClientId',
|
|
|
|
|
FieldValue: id,
|
|
|
|
|
ConditionalType: '0',
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
const data = {
|
|
|
|
|
pageCondition: {
|
|
|
|
|
pageIndex: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
sortConditions: [],
|
|
|
|
|
},
|
|
|
|
|
queryCondition: JSON.stringify(queryStr),
|
|
|
|
|
}
|
|
|
|
|
bankList.value = []
|
|
|
|
|
GetClientBankList(data).then((res) => { })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|