import{u as C,_ as B}from"./use-page-search.665e4825.js";import{u as g,_ as F}from"./use-page-modal.4a26f3da.js";import{P as D}from"./page-content.c90a59ec.js";import{ah as k,aE as y,aX as A,_ as E,q as P,r as b,o as v,n as w,t as a,H as x,p as R,v as e}from"./index.d8ce26ef.js";import{h as I,a as S,b as M,c as q,d as H}from"./index.bd029b16.js";import{u as U}from"./use-permission.314b29b7.js";import"./basic-form.147ada95.js";import"./global.9ad647c8.js";import"./hooks.3def80f5.js";import"./index.4ed99b91.js";import"./responseHandle.f073653a.js";import"./use-response-handle.e6cae34f.js";const Y={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001"},{field:"addtime",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u521B\u5EFA\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u521B\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"process_name",type:"input",placeholder:"\u6D41\u7A0B\u540D\u79F0"},{field:"creater",type:"input",placeholder:"\u521B\u5EFA\u4EBA"}]},N=[{type:"selection",width:55,hide:({checkList:t})=>!t.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:t})=>!t.includes("\u5E8F\u53F7\u5217")},{label:"ID",prop:"id"},{label:"\u6D41\u7A0B\u540D\u79F0",prop:"process_name"},{label:"\u6D41\u7A0B\u503C",prop:"process_type"},{label:"\u72B6\u6001",prop:"status",cellRenderer({row:t}){return k(y,{type:t.status==="0"?"danger":"success"},{default:()=>t.status==="0"?"\u7981\u7528":"\u542F\u7528"})}},{label:"\u521B\u5EFA\u4EBA",prop:"creater"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({createTime:t})=>A(t).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:150,slot:"operation"}],n={title:"\u6D41\u7A0B\u8BBE\u7F6E",powers:["001","002","003","004","005","006","007","008"],notReuqiredInit:!0,mockData:[{addtime:"2022-08-09 13:30:18",creater:"",id:"23",process_name:"\u91C7\u8D2D\u5355\u9000\u8D27\u6D41\u7A0B",process_type:"CGTHD",status:"1"}],columns:N,apis:{httpAdd:I,httpList:S,httpUpdate:M,httpDelete:q,httpStatus:H}},L={title:"\u6D41\u7A0B",itemStyle:{},colLayout:{span:24},formItems:[{field:"process_name",type:"input",label:"\u6D41\u7A0B\u540D\u79F0",labelWidth:"120px",rules:[{required:!0,message:"\u6D41\u7A0B\u540D\u79F0\u4E3A\u5FC5\u586B\u9879",trigger:"change"}]},{field:"process_type",type:"input",labelWidth:"120px",label:"\u6D41\u7A0B\u503C",rules:[{required:!0,message:"\u6D41\u7A0B\u503C\u79F0\u4E3A\u5FC5\u586B\u9879",trigger:"change"}]}]};const T={class:"main role"},V={"w-full":""},W={name:"invoiceheader"},$=P({...W,setup(t){const{pageContentRef:o,handleResetClick:s,handleSearchClick:r}=C(),{pageModalRef:i,handleUpdateData:l,handleCreateData:c,handlePreviewData:p,handleConfrim:d,defaultInfo:m}=g({pageContentRef:o}),{permission:f,contentConfigRef:_}=U({pageName:"setProcess",contentConfig:n,callback:u=>n.powers=u});return(u,j)=>{const h=b("PagePower");return v(),w("div",T,[a(h,{"is-show":e(f).list},{default:x(()=>[R("div",V,[a(e(B),{"form-config":e(Y),onSearchBtnClick:e(r),onResetBtnClick:e(s)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(e(D),{ref_key:"pageContentRef",ref:o,"content-config":e(_),onCreateBtnClick:e(c),onUpdateBtnClick:e(l),onPreviewBtnClick:e(p)},null,8,["content-config","onCreateBtnClick","onUpdateBtnClick","onPreviewBtnClick"])])]),_:1},8,["is-show"]),a(e(F),{ref_key:"pageModalRef",ref:i,"modal-config":e(L),"default-info":e(m),onConfirmBtnClick:e(d)},null,8,["modal-config","default-info","onConfirmBtnClick"])])}}});var ue=E($,[["__scopeId","data-v-aa532d82"]]);export{ue as default};
