|
|
@ -1,6 +1,6 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
|
|
|
|
<BasicTable :class="{'ds-table': source == 'list', 'ds-table-detail': source == 'modal'}" @register="registerTable" @row-dbClick="handleAudit">
|
|
|
|
<template #tableTitle>
|
|
|
|
<template #tableTitle>
|
|
|
|
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:goods:add')">
|
|
|
|
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:goods:add')">
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
@ -51,10 +51,10 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
import { ref, defineProps } from 'vue'
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import ImportFlow from './importFlow.vue'
|
|
|
|
import ImportFlow from './importFlow.vue'
|
|
|
|
import { ApiList, ApiImport, ApiDel } from './api'
|
|
|
|
import { ApiList, ApiImport, ApiDel } from './api'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
@ -62,10 +62,14 @@
|
|
|
|
import { columns, searchFormSchema } from './columns'
|
|
|
|
import { columns, searchFormSchema } from './columns'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
const { notification } = useMessage()
|
|
|
|
const { notification } = useMessage()
|
|
|
|
let filterInfo: Partial<Recordable<string[]>> = []
|
|
|
|
|
|
|
|
let sortInfo: SorterResult = {}
|
|
|
|
|
|
|
|
const visible = ref<boolean>(false)
|
|
|
|
const visible = ref<boolean>(false)
|
|
|
|
const refImportFlow = ref()
|
|
|
|
const refImportFlow = ref()
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
|
|
source: {
|
|
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
|
|
default: 'list'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
|
|
|
|
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
|
|
|
|
title: '',
|
|
|
|
title: '',
|
|
|
@ -118,6 +122,7 @@
|
|
|
|
showTableSetting: true,
|
|
|
|
showTableSetting: true,
|
|
|
|
bordered: true,
|
|
|
|
bordered: true,
|
|
|
|
showIndexColumn: true,
|
|
|
|
showIndexColumn: true,
|
|
|
|
|
|
|
|
rowSelection: { type: 'checkbox' },
|
|
|
|
indexColumnProps: {
|
|
|
|
indexColumnProps: {
|
|
|
|
width: 60,
|
|
|
|
width: 60,
|
|
|
|
},
|
|
|
|
},
|
|
|
|