diff --git a/src/views/materials-inventory/inventory-check/index.vue b/src/views/materials-inventory/inventory-check/index.vue index b7ae9ef..ffc3e68 100644 --- a/src/views/materials-inventory/inventory-check/index.vue +++ b/src/views/materials-inventory/inventory-check/index.vue @@ -26,14 +26,12 @@ import { useTable } from '@/components/core/dynamic-table'; import { baseColumns, type TableColumnItem, type TableListItem } from './columns'; import Api from '@/api/'; - import { useDictStore } from '@/store/modules/dict'; - import { onMounted, ref, type FunctionalComponent, unref } from 'vue'; - import { DictEnum } from '@/enums/dictEnum'; - import { useFormModal, useModal } from '@/hooks/useModal'; - import { Button } from 'ant-design-vue'; + import { onMounted, ref, unref } from 'vue'; + import { useFormModal } from '@/hooks/useModal'; import { exportSchemas } from './exportSchema'; import dayjs from 'dayjs'; import fileDownload from 'js-file-download'; + import { message } from 'ant-design-vue'; defineOptions({ name: 'MaterialsInventory', @@ -57,22 +55,22 @@ icon: 'ant-design:edit-outlined', tooltip: '编辑', auth: { - perm: 'app:contract:update', + perm: 'app:materials_inventory:update', effect: 'disable', }, onClick: () => openEditModal(record), }, - { - icon: 'ant-design:delete-outlined', - color: 'red', - tooltip: '删除此记录', - auth: 'app:contract:delete', - popConfirm: { - title: '你确定要删除吗?', - placement: 'left', - onConfirm: () => delRowConfirm(record.id), - }, - }, + // { + // icon: 'ant-design:delete-outlined', + // color: 'red', + // tooltip: '删除此记录', + // auth: 'app:materials_inventory:delete', + // popConfirm: { + // title: '你确定要删除吗?', + // placement: 'left', + // onConfirm: () => delRowConfirm(record.id), + // }, + // }, ], }, ]; @@ -111,6 +109,12 @@ * @description 打开新增/编辑弹窗 */ const openEditModal = async (record: Partial) => { + message.warning( +
+ 暂不支持编辑功能,等待后期需求确认 +
库存数量是由出入库记录自动计算得出的,库存单价为入库的单价
+
+ ); // const [formRef] = await showModal({ // modalProps: { // title: `${record.id ? '编辑' : '新增'}盘点记录`,