import{D as o,U as n,A as i,G as r}from"./api.BAiVg_WJ.js";import{W as a}from"./index.DbBdG0ey.js";import{aH as u}from"./vue.D1BjjNmv.js";import{G as c}from"./api.TaODowvR.js";const g=function({crudExpose:d}){const s=u();return{crudOptions:{toolbar:{buttons:{search:{show:!1},refresh:{show:!1},compact:{show:!1},export:{text:"导出",type:"primary",size:"small",icon:"upload",circle:!1,display:!0,show:!1},columns:{show:!1}}},request:{pageRequest:async e=>await r(e),addRequest:async({form:e})=>await i(e),editRequest:async({form:e,row:l})=>(e.id=l.id,await n(e)),delRequest:async({row:e})=>await o(e.id)},search:{col:{span:3},show:!0,autoSearch:!1,buttons:{search:{size:"small"},reset:{size:"small"}}},actionbar:{buttons:{add:{size:"small",show:!0}}},rowHandle:{fixed:"right",width:260,buttons:{view:{size:"small",text:"详细信息",iconRight:"View",type:"text",show:!0},viewContract:{size:"small",text:"查看合约",iconRight:"",type:"text",show:!0,click:async({row:e})=>{(await c({tenant_id:e.id,page:1,page_size:10})).data.forEach(t=>{console.log(t.tenant,e.tenant_id),t.tenant==e.tenant_id&&(console.log(t),s.push({path:"/system/contract/preview",query:{file:t.document_link,contractName:t.contract_name}}))})}},edit:{show:!1},remove:{show:!1}}},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},code:{title:"企业编码",type:"input",search:{show:!0},form:{rules:[{required:!0,message:"企业编码必填"}],component:{placeholder:"请输入企业编码"}},column:{minWidth:120}},name:{title:"企业名称",search:{show:!0},type:"input",form:{rules:[{required:!0,message:"企业名称必填"}],component:{placeholder:"请输入企业名称"}},column:{minWidth:120}},company_size:{title:"企业规模",type:"dict-select",search:{show:!0},form:{component:{placeholder:"请选择企业规模"}},column:{minWidth:100},dict:a({data:[{value:"1",label:"1-10人"},{value:"2",label:"11-50人"},{value:"3",label:"51-200人"},{value:"4",label:"201-500人"},{value:"5",label:"501-1000人"},{value:"6",label:"1000人以上"}]})},company_address:{title:"企业地点",type:"input",search:{show:!0},form:{component:{placeholder:"请输入企业地点"}},column:{minWidth:120}},industry:{title:"行业",type:"dict-select",search:{show:!0},form:{component:{placeholder:"请选择行业"}},column:{minWidth:100},dict:a({data:[{value:"1",label:"互联网/软件"},{value:"2",label:"金融/保险"},{value:"3",label:"制造业"},{value:"4",label:"教育培训"},{value:"5",label:"医疗健康"},{value:"6",label:"房地产/建筑"},{value:"7",label:"零售/电商"},{value:"8",label:"餐饮/酒店"},{value:"9",label:"物流/运输"},{value:"10",label:"咨询服务"},{value:"11",label:"媒体/广告"},{value:"12",label:"能源/化工"},{value:"13",label:"政府机构"},{value:"14",label:"非营利组织"},{value:"15",label:"其他"}]})},status:{title:"状态",search:{show:!0},type:"dict-select",form:{component:{placeholder:"请选择状态"}},column:{minWidth:120},dict:a({data:[{value:"1",label:"服务中"},{value:"2",label:"试用中"},{value:"0",label:"已停用"}]})},published_jobs_count:{title:"岗位数",type:"number",column:{minWidth:90}},update_datetime:{title:"数据更新时间",type:"datetime",column:{minWidth:150},form:{show:!1}}}}}};export{g as createCrudOptions};
