Files
qhmes/web-dist/js/MesXslMixerMaterialKindCfg.data-CJQv3F5o.js
2026-06-16 18:19:57 +08:00

2 lines
3.7 KiB
Java

import{J as e}from"./JVxeTypes-C-gX5UoZ.js";import{l as i}from"./dict.api-DWwarPXx.js";import{aZ as l}from"./index-X7Y8jykP.js";const o=[{label:"数据字典",value:"dict"},{label:"分类字典",value:"category"}],n={dict:"数据字典",category:"分类字典"},c=[{title:"种类键值",align:"center",dataIndex:"kindKey",width:120},{title:"种类名称",align:"center",dataIndex:"kindName",width:140},{title:"数据源",align:"center",dataIndex:"sourceType",width:100,customRender:({text:t})=>n[String(t||"")]||t||""},{title:"根名称",align:"center",dataIndex:"sourceRootName",width:140},{title:"对应分类",align:"center",dataIndex:"categoryRefName",width:140},{title:"优先级",align:"center",dataIndex:"priority",width:80},{title:"租户ID",align:"center",dataIndex:"tenantId",width:80,defaultHidden:!0},{title:"创建时间",align:"center",dataIndex:"createTime",width:165}],p=[{label:"种类键值",field:"kindKey",component:"Input",colProps:{span:6}},{label:"种类名称",field:"kindName",component:"Input",colProps:{span:6}},{label:"数据源",field:"sourceType",component:"Select",componentProps:{options:o,allowClear:!0},colProps:{span:6}},{label:"根编码",field:"sourceRootCode",component:"Input",colProps:{span:6}}],s=[{label:"数据源",field:"sourceType",component:"Select",required:!0,defaultValue:"category",componentProps:{options:o}},{label:"数据字典",field:"dictRootCode",component:"ApiSelect",required:!0,ifShow:({values:t})=>t.sourceType==="dict",componentProps:{api:()=>i({pageNo:1,pageSize:500}),resultField:"records",labelField:"dictName",valueField:"dictCode",showSearch:!0,placeholder:"请选择数据字典根"}},{label:"分类字典",field:"categoryRootCode",component:"ApiSelect",required:!0,ifShow:({values:t})=>t.sourceType==="category",componentProps:{api:l,params:{async:!1,pcode:"0"},resultField:"",labelField:"title",valueField:"code",showSearch:!0,placeholder:"请选择分类字典根"}}],u=[{label:"",field:"id",component:"Input",show:!1},{label:"",field:"sourceType",component:"Input",show:!1},{label:"",field:"sourceRootCode",component:"Input",show:!1},{label:"",field:"sourceRootName",component:"Input",show:!1},{label:"",field:"categoryRefId",component:"Input",show:!1},{label:"",field:"categoryRefCode",component:"Input",show:!1},{label:"种类键值",field:"kindKey",component:"Input",componentProps:{disabled:!0}},{label:"种类名称",field:"kindName",component:"Input",required:!0},{label:"对应分类",field:"categoryRefName",component:"Input",componentProps:{disabled:!0}},{label:"优先级",field:"priority",component:"InputNumber",required:!0,componentProps:{min:0,precision:0,style:{width:"100%"}}},{label:"租户ID",field:"tenantId",component:"InputNumber",componentProps:{disabled:!0,style:{width:"100%"}}}],m=[{title:"",key:"categoryRefId",type:e.hidden},{title:"",key:"categoryRefCode",type:e.hidden},{title:"",key:"sourceType",type:e.hidden},{title:"",key:"sourceRootCode",type:e.hidden},{title:"",key:"sourceRootName",type:e.hidden},{title:"",key:"tenantId",type:e.hidden},{title:"种类键值",key:"kindKey",type:e.normal,width:200,minWidth:160,disabled:!0},{title:"种类名称",key:"kindName",type:e.input,width:180,minWidth:140},{title:"对应分类",key:"categoryRefName",type:e.normal,width:180,minWidth:140,disabled:!0},{title:"优先级",key:"priority",type:e.inputNumber,width:110,minWidth:90,align:"center",validateRules:[{required:!0,message:"请输入优先级"}]}],y={kindKey:{title:"种类键值",order:0,view:"text"},kindName:{title:"种类名称",order:1,view:"text"},sourceType:{title:"数据源",order:2,view:"list",enum:o},sourceRootCode:{title:"根编码",order:3,view:"text"},categoryRefName:{title:"对应分类",order:4,view:"text"},priority:{title:"优先级",order:5,view:"number"}};export{y as a,s as b,c,m as d,u as e,p as s};