From da8f50c50374b72b18bc8712aefef3fb46a11304 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Mon, 29 Jul 2024 15:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=9C=8D=E5=8A=A1=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E7=B1=BB=E5=9E=8B=E5=92=8C=E6=89=93=E5=8D=B0=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=85=B3=E7=B3=BB=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../printBusinesstypeTemplate/index.vue | 10 +++--- .../printBusinesstypeTemplate.data.ts | 35 +++++++++++++++++++ 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/src/views/report/printBusinesstypeTemplate/index.vue b/src/views/report/printBusinesstypeTemplate/index.vue index 11b0bec0c..45b3b13ce 100644 --- a/src/views/report/printBusinesstypeTemplate/index.vue +++ b/src/views/report/printBusinesstypeTemplate/index.vue @@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'wms:printBusinesstypeTemplate:create'}), // 新增 - defaultButtons.defaultImportBtn({hasPermi:'wms:printBusinesstypeTemplate:import'}), // 导入 - defaultButtons.defaultExportBtn({hasPermi:'wms:printBusinesstypeTemplate:export'}), // 导出 + defaultButtons.defaultAddBtn({hasPermi:'wms:print-businesstype-template:create'}), // 新增 + defaultButtons.defaultImportBtn({hasPermi:'wms:print-businesstype-template:import'}), // 导入 + defaultButtons.defaultExportBtn({hasPermi:'wms:print-businesstype-template:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ - defaultButtons.mainListEditBtn({hasPermi:'wms:printBusinesstypeTemplate:update'}), // 编辑 - defaultButtons.mainListDeleteBtn({hasPermi:'wms:printBusinesstypeTemplate:delete'}), // 删除 + defaultButtons.mainListEditBtn({hasPermi:'wms:print-businesstype-template:update'}), // 编辑 + defaultButtons.mainListDeleteBtn({hasPermi:'wms:print-businesstype-template:delete'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/report/printBusinesstypeTemplate/printBusinesstypeTemplate.data.ts b/src/views/report/printBusinesstypeTemplate/printBusinesstypeTemplate.data.ts index c8e645d77..d237fccff 100644 --- a/src/views/report/printBusinesstypeTemplate/printBusinesstypeTemplate.data.ts +++ b/src/views/report/printBusinesstypeTemplate/printBusinesstypeTemplate.data.ts @@ -1,5 +1,12 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import * as BusinesstypeApi from '@/api/wms/businesstype' +import { Businesstype } from '@//views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts' +// const templateCodes = await UserApi.getSimpleUserList() +const templateCodes = [{ + name:1111, + id:111 +}] // 表单校验 export const PrintBusinesstypeTemplateRules = reactive({ businesstypeCode: [required], @@ -18,12 +25,40 @@ export const PrintBusinesstypeTemplate = useCrudSchemas(reactive([ field: 'businesstypeCode', sort: 'custom', isSearch: true, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择业务类型', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '业务类型', // 查询弹窗标题 + searchAllSchemas: Businesstype.allSchemas, // 查询弹窗所需类 + searchPage: BusinesstypeApi.getBusinesstypePage, // 查询弹窗所需分页方法 + // searchCondition: [{ + // key: 'available', + // value: 'TRUE', + // isMainValue: false + // }] + } + } + }, { label: '模板代码', field: 'templateCode', sort: 'custom', isSearch: true, + form: { + component: 'Select', + componentProps: { + options: templateCodes, + optionsAlias: { + labelField: 'name', + valueField: 'id' + }, + filterable: true, + } + } }, { label: '备注',