|
|
|
@ -42,12 +42,15 @@
|
|
|
|
|
</BasicTable>
|
|
|
|
|
<div class="fee-box">
|
|
|
|
|
<div class="orange-msg">
|
|
|
|
|
此付费客户存在应收费用{{ state.receivableTotal }}
|
|
|
|
|
此付费客户存在应收费用{{ state.recvByCustomer }}
|
|
|
|
|
</div>
|
|
|
|
|
<a-button class="file-btn" v-repeat type="link" @click="openFile">
|
|
|
|
|
<span class="iconfont icon-fujian1"></span>附件
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-tabs v-model:activeKey="activeKey">
|
|
|
|
|
<a-tab-pane key="1" tab="付费申请信息">
|
|
|
|
|
<div>
|
|
|
|
|
<FeeTable :id="busId">
|
|
|
|
|
<FeeTable :id="busId" :state="state">
|
|
|
|
|
<Divider type="vertical" />
|
|
|
|
|
<a-table
|
|
|
|
|
id="fee-statistic"
|
|
|
|
@ -73,11 +76,9 @@
|
|
|
|
|
:id="busId"
|
|
|
|
|
/>
|
|
|
|
|
</a-tab-pane>
|
|
|
|
|
<a-button v-repeat type="link" @click="openFile">
|
|
|
|
|
<span class="iconfont icon-fujian1"></span>附件
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
<invoiceFile ref="invoiceFileRef"></invoiceFile>
|
|
|
|
|
</div>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</template>
|
|
|
|
@ -87,7 +88,7 @@
|
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
|
import { GetList, GetApplicationStat } from './api'
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
|
import invoiceFile from '/@/views/operation/invoiceIssue/detail/invoiceFile.vue'
|
|
|
|
|
import { columns, searchFormSchema } from './columns'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
import FeeTable from './components/feeTable.vue'
|
|
|
|
@ -106,6 +107,7 @@
|
|
|
|
|
const res = await GetList(p)
|
|
|
|
|
if (res?.data?.length) state.BRowKeys = [res.data[0].id]
|
|
|
|
|
setSelectedRows([res.data[0]])
|
|
|
|
|
feeStatistic(res.data[0].id)
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
resolve({ data: [...res.data], total: res.count })
|
|
|
|
|
})
|
|
|
|
@ -130,7 +132,9 @@
|
|
|
|
|
// 业务信息已选项
|
|
|
|
|
const state = reactive({
|
|
|
|
|
BRowKeys: [],
|
|
|
|
|
receivableTotal: 0,
|
|
|
|
|
recvByCustomer: 0,
|
|
|
|
|
payableCNY: 0,
|
|
|
|
|
payableUSD: 0,
|
|
|
|
|
totalItems: []
|
|
|
|
|
})
|
|
|
|
|
const activeKey = ref('1')
|
|
|
|
@ -188,14 +192,17 @@
|
|
|
|
|
customerId: row[0].customerId,
|
|
|
|
|
businessType: 1
|
|
|
|
|
}).then(res => {
|
|
|
|
|
if (res.data.receivableTotal) state.receivableTotal = (res.data.receivableTotal).toLocaleString()
|
|
|
|
|
if (res.data.recvByCustomer) state.recvByCustomer = (res.data.recvByCustomer).toLocaleString()
|
|
|
|
|
if (res.data.payableCNY) state.payableCNY = (res.data.payableCNY).toLocaleString()
|
|
|
|
|
if (res.data.payableUSD) state.payableUSD = (res.data.payableUSD).toLocaleString()
|
|
|
|
|
state.totalItems = res.data.totalItems
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const invoiceFileRef = ref(null)
|
|
|
|
|
// 附件弹窗
|
|
|
|
|
const openFile = () => {
|
|
|
|
|
// fileRef.value.init()
|
|
|
|
|
invoiceFileRef.value.init(busId.value)
|
|
|
|
|
}
|
|
|
|
|
// 记录数据按下时候的Y轴坐标
|
|
|
|
|
// const clientY = ref()
|
|
|
|
@ -271,6 +278,12 @@
|
|
|
|
|
}
|
|
|
|
|
.fee-box {
|
|
|
|
|
position: relative;
|
|
|
|
|
.file-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 7px;
|
|
|
|
|
left: 195px;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
.ant-table-title {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|