From e11be1d733849fa49508a28e39b90e7be02e81d8 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 24 May 2024 09:21:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subject/subjectAccount/index.vue | 10 +-- .../subjectAccount/subjectAccount.data.ts | 78 ++++--------------- 2 files changed, 18 insertions(+), 70 deletions(-) diff --git a/src/views/wms/basicDataManage/subject/subjectAccount/index.vue b/src/views/wms/basicDataManage/subject/subjectAccount/index.vue index c17d92f32..4c6654736 100644 --- a/src/views/wms/basicDataManage/subject/subjectAccount/index.vue +++ b/src/views/wms/basicDataManage/subject/subjectAccount/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'wms:subjectAccount:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'wms:subjectAccount:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'wms:subjectAccount:export'}), // 导出 + defaultButtons.defaultAddBtn({hasPermi:'wms:subject-account:create'}), // 新增 + defaultButtons.defaultImportBtn({hasPermi:'wms:subject-account:import'}), // 导入 + defaultButtons.defaultExportBtn({hasPermi:'wms:subject-account:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ - defaultButtons.mainListEditBtn({hasPermi:'wms:subjectAccount:update'}), // 编辑 - defaultButtons.mainListDeleteBtn({hasPermi:'wms:subjectAccount:delete'}), // 删除 + defaultButtons.mainListEditBtn({hasPermi:'wms:subject-account:update'}), // 编辑 + defaultButtons.mainListDeleteBtn({hasPermi:'wms:subject-account:delete'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts b/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts index d82220542..c53804311 100644 --- a/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts +++ b/src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts @@ -33,20 +33,19 @@ export const SubjectAccount = useCrudSchemas(reactive([ field: 'usageDescription', sort: 'custom', isSearch: true, - form: { - component: 'Editor', - componentProps: { - valueHtml: '', - height: 200 - } - }, }, { - label: '成本中心ID', + label: '成本中心ID111', field: 'costecentreId', sort: 'custom', isSearch: false, isTable:false, + disabled:true, + from:{ + componentProps:{ + disabled:true + } + } }, { label: '成本中心代码', @@ -59,9 +58,6 @@ export const SubjectAccount = useCrudSchemas(reactive([ field: 'costecentreType', sort: 'custom', isSearch: false, - form: { - component: 'SelectV2' - }, }, { label: '项目ID', @@ -69,6 +65,12 @@ export const SubjectAccount = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, isTable:false, + disabled:true, + from:{ + componentProps:{ + disabled:true + } + } }, { label: '项目代码', @@ -107,60 +109,6 @@ export const SubjectAccount = useCrudSchemas(reactive([ }, isForm: false, }, - { - label: '删除时间', - field: 'deletionTime', - sort: 'custom', - formatter: dateFormatter, - isTable:false, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '删除者ID', - field: 'deleterId', - sort: 'custom', - isSearch: false, - isTable:false, - }, - { - label: '扩展属性', - field: 'extraProperties', - sort: 'custom', - isSearch: false, - isTable:false, - }, - { - label: '并发乐观锁', - field: 'concurrencyStamp', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0 - }, - isTable:false, - }, - { - label: '地点ID', - field: 'siteId', - sort: 'custom', - isSearch: false, - isTable:false - }, { label: '操作', field: 'action',