crud.ceHfLWHq.js 1.8 KB

1
  1. import{W as t}from"./index.vzye5GYA.js";import{A as r,a}from"./api.Drlhaax8.js";import{a as o}from"./authFunction.CGt2HkWK.js";import"./vue.YrNK8sx4.js";const c=function({crudExpose:s}){return{crudOptions:{request:{pageRequest:async e=>await a(e),addRequest:async({form:e})=>await r(e)},actionbar:{buttons:{add:{show:o("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:t({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:t({data:[{label:"启用",value:!0},{label:"禁用",value:!1}]}),form:{component:{placeholder:"请填写状态"},rules:[{required:!0,message:"请填写状态"}]}}}}}};export{c as createCrudOptions};