给全部业务单据都加上嵌套子表格的功能

This commit is contained in:
jishenghua
2025-04-24 17:08:22 +08:00
parent 37225a8e6a
commit 7aa33185c3
12 changed files with 156 additions and 0 deletions

View File

@@ -155,6 +155,8 @@
:scroll="scroll"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:expandedRowKeys="expandedRowKeys"
@expand="onExpand"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="myHandleDetail(record, '销售退货入库', prefixNo)">查看</a>
@@ -174,6 +176,17 @@
<a-tag v-if="status == '3'" color="blue">部分入库</a-tag>
<a-tag v-if="status == '9'" color="orange">审核中</a-tag>
</template>
<a-table
bordered
size="small"
slot="expandedRowRender"
slot-scope="record"
:loading="record.loading"
:columns="detailColumns"
:dataSource="record.childrens"
:row-key="record => record.id"
:pagination="false">
</a-table>
</a-table>
</div>
<!-- table区域-end -->