import{W as t}from"./index.BKEMpsLA.js";import{A as a,D as s,U as r,a as o}from"./api.Dv806c7F.js";import{a as l}from"./authFunction.DqglRaEG.js";import"./vue.YrNK8sx4.js";const q=function({crudExpose:n}){return{crudOptions:{request:{pageRequest:async e=>await o(e),editRequest:async({form:e})=>await r(e),delRequest:async({row:e})=>await s(e.id),addRequest:async({form:e})=>await a(e)},actionbar:{buttons:{add:{show:l("area:Create")}}},form:{wrapper:{buttons:{ok:{text:"提交"}}}},pagination:{show:!1},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},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:!1,minWidth:120},dict:t({data:[{label:"启用",value:!0},{label:"禁用",value:!1}]}),form:{component:{placeholder:"请填写状态"},rules:[{required:!0,message:"请填写状态"}]}}}}}};export{q as createCrudOptions};
