You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.6 KiB
JavaScript

import{u as a}from"./useRender-C6_44OXE.js";import{D as i}from"./dictEnum-DeC8h6ZR.js";import{z as u,W as l}from"./antd-BY-1PcYE.js";import{k as n}from"./vue-aEZWZQSa.js";import"./index-JkNHdZh2.js";import"./entry/index-C2Ijy48E-1723706691540.js";import"./useWindowSizeFn-CjdUjzGl.js";import"./dict-1X4Pwk-Z.js";const I=[{label:"采购标题",field:"name",component:"Input"}],{renderDict:r}=a(),h=[{title:"主键",dataIndex:"id"},{title:"采购标题",dataIndex:"name"},{title:"备注",dataIndex:"notes"},{title:"流程状态",dataIndex:"status",customRender({value:e}){return r(e,i.WF_BUSINESS_STATUS)}}],v=[{label:"主键",field:"id",component:"Input",show:!1},{label:"采购标题",field:"name",required:!0,component:"Input"},{label:"备注",field:"notes",component:"InputTextArea"}],b=[{type:"checkbox",align:"center",width:60},{title:"序号",type:"seq",fixed:"left",width:"50",align:"center"},{title:"名称",field:"name",slots:{edit:({row:e})=>n(u,{value:e.name,"onUpdate:value":t=>e.name=t,placeholder:"输入名称"},null)},editRender:{}},{title:"数量",field:"num",slots:{edit:({row:e})=>n(l,{value:e.num,"onUpdate:value":t=>e.num=t,min:1,max:100,placeholder:"输入1-100"},null)},editRender:{}},{title:"单价",field:"price",slots:{edit:({row:e})=>n(l,{value:e.price,"onUpdate:value":t=>e.price=t,min:1,max:100,placeholder:"输入1-100"},null)},editRender:{}},{title:"总价",field:"total",slots:{default:({row:e})=>(e.total=e.price*e.num,e.total)}}],S={name:[{required:!0,message:"请输入"}],num:[{required:!0,message:"请输入"}],price:[{required:!0,message:"请输入"}]};export{h as columns,I as formSchemas,v as modalSchemas,S as validRules,b as vxeTableColumns};