From 210e0d7dd5fcf052827791be7ef34db048cdad0a Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Mon, 11 Mar 2024 14:13:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8E=9F=E6=9D=90=E6=96=99=E7=9B=98?= =?UTF-8?q?=E7=82=B9=E7=BC=96=E8=BE=91=E5=92=8C=E5=88=A0=E9=99=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventory-check/index.vue | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) 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 ? '编辑' : '新增'}盘点记录`,