import{W as t,r}from"./index.Df8UJ10K.js";import{A as s,D as o,U as a,a as l}from"./api.DmW_DFI3.js";import"./vue.D1BjjNmv.js";const f=function({crudExpose:n}){return{crudOptions:{request:{pageRequest:async e=>await l(e),editRequest:async({form:e})=>await a(e),delRequest:async({row:e})=>await o(e.id),addRequest:async({form:e})=>await s(e)},toolbar:{show:!1},actionbar:{buttons:{add:{show:!0}}},form:{wrapper:{buttons:{ok:{text:"提交",show:r(e=>e.mode!=="view")}}}},pagination:{show:!0},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},search:{title:"关键字搜索",search:{show:!0,type:"input"},type:"input",form:{component:{placeholder:"请输入"},show:!1},column:{show:!1}},code:{title:"仓库编码",type:"input",column:{minWidth:120},form:{show:!1,component:{placeholder:"请填写标签颜色"},rules:[{required:!0,message:"请填写标签颜色"}]}},name:{title:"仓库名称",search:{show:!0},treeNode:!0,type:"input",column:{minWidth:120},form:{rules:[{required:!0,message:"仓库名称必填项"}],component:{placeholder:"请输入仓库名称"}}},location:{title:"仓库位置",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填写仓库位置"},rules:[{required:!0,message:"请填写仓库位置"}]}},manager:{title:"管理",type:"input",column:{show:!1,minWidth:120},form:{value:5,show:!1,component:{placeholder:"请填管理"},rules:[{required:!0,message:"请填管理"}]}},remark:{title:"仓库说明",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填仓库说明"},rules:[{required:!1,message:"请填仓库说明"}]}},tenant_id:{title:"租户id",type:"dict-select",column:{show:!1,minWidth:120},dict:t({url:"/api/system/tenant/list/",value:"id",label:"name"}),form:{value:1,show:!1,component:{placeholder:"请填租户id"},rules:[{required:!1,message:"请填租户id"}]}},status:{title:"状态",type:"dict-select",column:{show:!0,minWidth:120},dict:t({data:[{label:"启用",value:!0},{label:"禁用",value:!1,color:"danger"}]}),form:{component:{placeholder:"请填写状态"},rules:[{required:!0,message:"请填写状态"}]}}}}}};export{f as createCrudOptions};
