|
|
@@ -1,6 +1,6 @@
|
|
|
import {searchSymbol, pageSymbol, filterSymbol} from '../state';
|
|
|
import {GetInventoryList, DeleteInventory, resetPassword} from '@apis';
|
|
|
-import {type DataTableColumn, NSpace, useMessage, useDialog} from 'naive-ui';
|
|
|
+import {type DataTableColumn, NSpace, NDataTable, NTable} from 'naive-ui';
|
|
|
import {GetCheckListParams, GetInventoryParams} from '@models';
|
|
|
import {
|
|
|
useFetchTableList,
|
|
|
@@ -9,8 +9,9 @@ import {
|
|
|
} from '@hooks';
|
|
|
import {TABLE_CELL_WIDTH, lightVariable} from '@utils';
|
|
|
import {computed, h, ref} from 'vue';
|
|
|
-import {LDTableButton} from '@components';
|
|
|
+import {LDTableButton, LDTable} from '@components';
|
|
|
import {useI18n} from 'vue-i18n';
|
|
|
+import Children from './children.vue';
|
|
|
|
|
|
export function useTableData() {
|
|
|
return useFetchTableList({
|
|
|
@@ -36,11 +37,6 @@ export function useColumns(refetch: () => void) {
|
|
|
const columns
|
|
|
= computed<DataTableColumn<GetCheckListParams>[]>(function() {
|
|
|
return [
|
|
|
- {
|
|
|
- type: 'expand',
|
|
|
- expandable: data => data.supplierList.length,
|
|
|
- renderExpand: data => data.supplierList[0].length,
|
|
|
- },
|
|
|
{
|
|
|
title: t('inventory.table[0]'),
|
|
|
key: 'cCusName',
|
|
|
@@ -79,7 +75,7 @@ export function useColumns(refetch: () => void) {
|
|
|
{
|
|
|
title: t('inventory.table[7]'),
|
|
|
width: TABLE_CELL_WIDTH.date,
|
|
|
- key: 'supDays',
|
|
|
+ key: 'SupDays',
|
|
|
},
|
|
|
{
|
|
|
title: t('common.tableHeader.operation'),
|