| 1 |
- var u=(e,t,l)=>new Promise((r,a)=>{var p=i=>{try{o(l.next(i))}catch(s){a(s)}},d=i=>{try{o(l.throw(i))}catch(s){a(s)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(p,d);o((l=l.apply(e,t)).next())});import{l as n}from"./index-lE2idd8k.js";import{c as m}from"./cateApi-BE6kfD5q.js";import{s as c}from"./sysMenuApi-BX7id6VS.js";import{bp as f}from"./entry/index-CRWhxBeP.js";import{n as b,S as y}from"./antd-BfqWtMX3.js";import{l as h}from"./vue-DM5HGU8Z.js";const F=[{label:"业务名称",field:"name",required:!0,component:"Input",componentProps:{placeholder:"请输入业务名称"},colProps:{span:24}},{ifShow:!1,label:"二级分类",field:"typeValue",component:"Input"},{ifShow:!1,label:"二级分类",field:"categoryName",component:"Input"},{label:"所属分类",field:"categoryId",required:!0,component:"ApiSelect",componentProps:({formActionType:e,formModel:t})=>({api:m,valueField:"id",labelField:"name",resultField:"data",getPopupContainer:()=>document.body,params:{type:"CBB"},onSelect:(l,r)=>u(void 0,null,function*(){const a=yield c({parentId:l});t.categoryName=r==null?void 0:r.label,(a==null?void 0:a.length)>0?(yield e.updateSchema([{label:"二级分类",field:"typeDict",ifShow:!0,required:!0,component:"Select",componentProps:({formModel:p})=>({options:a==null?void 0:a.map(d=>({label:d.name,value:d.id})),onChange:(d,o)=>u(void 0,null,function*(){p.typeValue=o==null?void 0:o.label})})}]),t.typeDict=void 0):yield e.updateSchema([{ifShow:!1,label:"二级分类",field:"typeDict",component:"Input"}])})})},{ifShow:!1,label:"二级分类",field:"typeDict",component:"Input"},{label:"审批人",field:"reviewBy",required:!0,itemProps:{validateTrigger:"blur"},component:"ApiSelect",componentProps:()=>({placeholder:"请选择审批人",api:f,params:{roleCode:"repository"},showSearch:!0,apiSearch:{show:!0,searchName:"nickname"},filterOption:!1,mode:"multiple",resultField:"data",labelField:"nickname",valueField:"id",getPopupContainer:()=>document.body}),colProps:{span:24}},{label:"排序",field:"sort",required:!0,component:"InputNumber",componentProps:{placeholder:"请输入CBB库排序"}},{label:"建设时间",field:"createTime",component:"DatePicker",required:!0,componentProps:{style:{width:"100%"},format:"YYYY-MM-DD",placeholder:"请输入上传日期",valueFormat:"YYYY-MM-DD"},defaultValue:b().format("YYYY-MM-DD")}],q=[{label:"id",field:"id",ifShow:!1,component:"Input"},{label:"菜单名称",field:"name",required:!0,component:"Input",componentProps:{placeholder:"请输入菜单名称"}},{label:"排序",field:"sort",required:!0,component:"InputNumber",componentProps:{placeholder:"请输入排序编码"}},{label:"启用情况",field:"enable",ifShow:({values:e})=>e.id!=null,component:"ApiRadioGroup",componentProps:()=>({api:n,params:{dictCode:"sys_enable_type"}})}],N=[{title:"CBB库名称",dataIndex:"name",align:"left"},{title:"所属分类",dataIndex:"categoryName",align:"left"},{title:"二级分类",dataIndex:"typeValue",align:"left"},{title:"排序",dataIndex:"sort",width:80,align:"left"},{title:"创建时间",dataIndex:"createTime",align:"left"},{title:"下属菜单",dataIndex:"menuNameList",align:"left"},{title:"审批人",dataIndex:"reviewByName",ellipsis:!0,align:"left"},{title:"更新时间",dataIndex:"updateTime",align:"left"},{title:"状态",dataIndex:"status",align:"left"}],_=[{field:"times",label:"",component:"RangePicker",componentProps:{format:"YYYY-MM-DD",placeholder:["开始日期","结束日期"]},colProps:{span:12}},{field:"name",label:"",component:"Input",componentProps:({formModel:e})=>({placeholder:"请输入要搜索的内容",onChange:t=>{e.blurry=t.target.value}}),renderComponentContent:()=>({prefix:()=>h(y)}),colProps:{span:12}}],B=[{title:"菜单名称",dataIndex:"name",align:"left"},{title:"排序",dataIndex:"sort",align:"left"},{title:"核心字段",dataIndex:"fieldNameList",align:"left"},{title:"更新时间",dataIndex:"updateTime",align:"left"},{title:"启用情况",dataIndex:"enable",align:"left"}],Y=[{title:"字段",dataIndex:"fieldKey",align:"left"},{title:"字段名称",dataIndex:"fieldName",align:"left"},{title:"排序",dataIndex:"sort",align:"left"},{title:"是否显示",dataIndex:"show",align:"left"},{title:"是否增改",dataIndex:"editable",align:"left"},{title:"是否必填",dataIndex:"required",align:"left"},{title:"模糊搜索",dataIndex:"fuzzySearch",align:"left"},{title:"精准查询",dataIndex:"exactSearch",align:"left"},{title:"字段类型",dataIndex:"inputBoxType",align:"left"}],D=[{label:"sysField",field:"sysField",ifShow:!1,component:"Input"},{label:"id",field:"id",ifShow:!1,component:"Input"},{label:"字段键值",field:"fieldKey",required:!0,component:"Input",componentProps:({formModel:e})=>({placeholder:"请输入字段键值",disabled:!!e.id}),defaultValue:"CBB_"},{label:"字段名称",field:"fieldName",required:!0,component:"Input",componentProps:{placeholder:"请输入字段名称"}},{label:"字段排序",field:"sort",required:!0,component:"InputNumber",componentProps:{placeholder:"请输入排序编码"}},{label:"是否显示",field:"show",component:"ApiRadioGroup",componentProps:({formModel:e})=>({api:n,params:{dictCode:"sys_true_false"},disabled:!!e.sysField}),defaultValue:"0"},{label:"是否增改",field:"editable",component:"ApiRadioGroup",componentProps:({formModel:e})=>({api:n,params:{dictCode:"sys_true_false"},disabled:!!e.sysField}),defaultValue:"0"},{label:"是否必填",field:"required",component:"ApiRadioGroup",componentProps:({formModel:e})=>({api:n,params:{dictCode:"sys_true_false"},disabled:!!e.sysField}),defaultValue:"0"},{label:"模糊搜索",field:"fuzzySearch",component:"ApiRadioGroup",componentProps:({formModel:e})=>({api:n,params:{dictCode:"sys_true_false"},disabled:!!e.sysField}),defaultValue:"0"},{label:"精准查询",field:"exactSearch",component:"ApiRadioGroup",componentProps:({formModel:e})=>({api:n,params:{dictCode:"sys_true_false"},disabled:!!e.sysField}),defaultValue:"0"},{label:"对齐方式",required:!0,field:"alignment",component:"ApiRadioGroup",componentProps:({formModel:e})=>({api:n,params:{dictCode:"cbb_alignment"},disabled:!!e.sysField}),defaultValue:"left"},{label:"字段类型",required:!0,field:"inputBoxType",component:"ApiSelect",componentProps:({formModel:e})=>({api:n,params:{dictCode:"biz_feild_type"},disabled:e.id?!0:!!e.sysField,onChange:t=>{t==="number"&&(e.alignment="right")}})},{label:"选项值",ifShow:({values:e})=>e.inputBoxType==="select"||e.inputBoxType==="multipleSelect",field:"options",slot:"options"},{label:"最小值",field:"minNum",required:!0,component:"InputNumber",ifShow:({values:e})=>e.inputBoxType==="number",defaultValue:"0"},{label:"最大值",field:"maxNum",component:"InputNumber",ifShow:({values:e})=>e.inputBoxType==="number",dynamicRules:({values:e})=>[{required:!0,validator:(t,l)=>l<e.minNum?Promise.reject("最大值不能小于最小值"):Promise.resolve()}],defaultValue:"0"}];export{D as a,q as b,N as c,F as d,Y as f,B as m,_ as s};
|