1 |
- import{r,m as a}from"./index.T0of0op1.js";import{a as n}from"./authFunction.occvKyd3.js";const o="/api/system/warehouse/";function s(e){return r({url:o,method:"get",params:e})}function u(e){return r({url:o,method:"post",data:e})}function p(){return r({url:o,method:"get"})}const i=function({crudExpose:e}){return{crudOptions:{request:{pageRequest:async t=>await s(t),addRequest:async({form:t})=>await u(t)},actionbar:{buttons:{add:{show:n("area:Create")}}},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:{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:{minWidth:120},dict:a({url:"/api/system/tenant/list/",value:"id",label:"name"}),form:{component:{placeholder:"请填租户id"},rules:[{required:!1,message:"请填租户id"}]}},status:{title:"状态",type:"dict-select",column:{show:!1,minWidth:120},dict:a({data:[{label:"启用",value:!0},{label:"禁用",value:!1}]}),form:{component:{placeholder:"请填写状态"},rules:[{required:!0,message:"请填写状态"}]}}}}}},h=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:i},Symbol.toStringTag,{value:"Module"}));export{p as G,h as a,i as c};
|