Ben Lin
2024-12-28 f9eb1a419834f97a3ab0124b132de4f977b1973b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
  <div>
    <BasicTable @register="registerTable">
      <template #action="{ record }">
        <TableAction
          :actions="[
            {
              icon: 'clarity:info-standard-line',
              tooltip:bt('查看单据详情'),
              onClick: handleEdit.bind(null, record),
            }
          ]" />
      </template>
    </BasicTable>
  </div>
</template>
<script lang="ts" setup>
  import { BasicTable, useTable, TableAction } from '/@/components/Table';
  import { columns, searchFormSchema } from './saleoutorder.data';
  import { getSaleoutorderListByPage } from '/@/api/tigerapi/wms/saleoutorder';
  import { useI18n } from '/@/hooks/web/useI18n';
  import { useGo } from '/@/hooks/web/usePage';
 
      const { t:bt } = useI18n(); //useI18n();
      const go = useGo();
      const [registerTable, { reload }] = useTable({
        title: bt('销售出库单列表'),
        api: getSaleoutorderListByPage,
        columns,
        formConfig: {
          labelWidth: 120,
          schemas: searchFormSchema,
        },
        useSearchForm: true,
        showTableSetting: true,
        bordered: true,
        canResize:true,
        showIndexColumn: false,
        actionColumn: {
          width: 80,
          title: bt('操作'),
          dataIndex: 'action',
          slots: { customRender: 'action' },
          fixed: 'right',
        },
      });
      function handleEdit(record: Recordable) {
        go('/saleoutorderDetail/' + record.BILLCODE);
      }
 
</script>