|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<a-modal width="1600px" @cancel="open = false" :visible="open" title="添加发票申请明细" :footer="null">
|
|
|
|
|
<div style="padding-bottom:5px ;">
|
|
|
|
|
<div>
|
|
|
|
|
<BasicTable class="ds-table" @row-click="handleClick" @register="registerTable" @row-dbClick="(e) => {
|
|
|
|
|
<BasicTable class="ds-table" :rowClassName="rowClassName" @row-click="handleClick" @register="registerTable" @row-dbClick="(e) => {
|
|
|
|
|
GoDetailed(true, e)
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
@ -192,6 +192,9 @@ const [registerTable, { getForm, setSelectedRowKeys, getSelectRows, setProps, ge
|
|
|
|
|
api: async (p) => {
|
|
|
|
|
const res: API.DataResult = await GetBizList(p)
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
res.data.forEach((item, index) => {
|
|
|
|
|
item.cindex = index
|
|
|
|
|
})
|
|
|
|
|
resolve({ data: [...res.data], total: res.count })
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -209,8 +212,11 @@ const [registerTable, { getForm, setSelectedRowKeys, getSelectRows, setProps, ge
|
|
|
|
|
useSearchForm: true,
|
|
|
|
|
showIndexColumn: false,
|
|
|
|
|
maxHeight: '600',
|
|
|
|
|
rowKey:'cindex',
|
|
|
|
|
id:'11',
|
|
|
|
|
pagination: true,
|
|
|
|
|
striped: true,
|
|
|
|
|
showTableSetting: true,
|
|
|
|
|
bordered: true,
|
|
|
|
|
indexColumnProps: {
|
|
|
|
|
width: 60,
|
|
|
|
@ -228,9 +234,11 @@ const [registerTable1, { getSelectRows: getSelectRowsFee, setProps: setPropsFee,
|
|
|
|
|
striped: true,
|
|
|
|
|
rowKey: 'recordId',
|
|
|
|
|
bordered: true,
|
|
|
|
|
showTableSetting: true,
|
|
|
|
|
indexColumnProps: {
|
|
|
|
|
width: 60,
|
|
|
|
|
},
|
|
|
|
|
id:'22',
|
|
|
|
|
canResize: true,
|
|
|
|
|
immediate: false,
|
|
|
|
|
})
|
|
|
|
@ -359,8 +367,10 @@ function handleSureExhange() {
|
|
|
|
|
setLoading(false)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const activeRow = ref(null)
|
|
|
|
|
function handleClick(record, index) {
|
|
|
|
|
setSelectedRowKeys([record.id])
|
|
|
|
|
setSelectedRowKeys([index])
|
|
|
|
|
activeRow.value = index
|
|
|
|
|
const data = {
|
|
|
|
|
id: record.id,
|
|
|
|
|
businessType: record.businessType,
|
|
|
|
@ -379,6 +389,11 @@ function handleClick(record, index) {
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function rowClassName(record, index){
|
|
|
|
|
if(index==activeRow.value){
|
|
|
|
|
return 'active-row'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function init(data) {
|
|
|
|
|
open.value = true
|
|
|
|
|
setTimeout(() => {
|
|
|
|
@ -668,4 +683,12 @@ defineExpose({ init, changeCustIn })
|
|
|
|
|
/deep/ .ant-checkbox-wrapper-checked .ant-checkbox-disabled+span {
|
|
|
|
|
color: #257afa;
|
|
|
|
|
}
|
|
|
|
|
:deep(.active-row){
|
|
|
|
|
.ant-table-cell{
|
|
|
|
|
background: #dfe8f6;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
:deep(.flex){
|
|
|
|
|
align-items: flex-end !important;
|
|
|
|
|
}
|
|
|
|
|
</style>
|