Browse Source

打印服务业务类型和打印模板关系管理

hella_online_20240829
wangyufei 3 months ago
parent
commit
da8f50c503
  1. 10
      src/views/report/printBusinesstypeTemplate/index.vue
  2. 35
      src/views/report/printBusinesstypeTemplate/printBusinesstypeTemplate.data.ts

10
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'}), //
]
// -

35
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<CrudSchema[]>([
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: '备注',

Loading…
Cancel
Save