import{al as C,a$ as F,_ as b,d as _,w as s,r as i,o as x,G as w,C as y,j as p,l as d}from"./index.js";import{h as A,a as B,M as k}from"./modal.18e072.js";import{u as P}from"./use-page-search.f7bc460e.js";import"./useTask.8a645393.js";import"./validator.92b8f4b2.js";const D=[{prop:"companyNo",label:"\u7F16\u53F7",width:"170px"},{prop:"company",label:"\u516C\u53F8\u540D\u79F0",minWidth:"200px"},{prop:"invoice_title",label:"\u516C\u53F8\u62AC\u5934",minWidth:"200px"},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:l})=>C(F,{type:String(l.status)==="1"?"success":"danger"},{default:()=>String(l.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{prop:"creater",label:"\u521B\u5EFA\u4EBA",width:"100px"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",width:"145px"},{prop:"",label:"\u64CD\u4F5C",fixed:"right",width:"140px",_noset_:!0,slot:"operation"}],E={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:D,apis:{httpList:A,httpAdd:!0,httpStatus:B,httpUpdate:!0}},S=[{id:"0",label:"\u7981\u7528"},{id:"1",label:"\u542F\u7528"}],c={formItems:[{field:"status",type:"select",options:S,placeholder:"\u72B6\u6001"},{type:"input",field:"company_name",placeholder:"\u516C\u53F8\u540D\u79F0"}]},N=_({__name:"index",setup(l){const v="workCompany",r=s(null),u=s(!1),a=s(!1),o=s(""),m={pageSearchHook:()=>P(void 0,void 0,c)},f={content:{create:()=>{o.value="",u.value=!1,a.value=!0},preview:({companyNo:n})=>{o.value=n,u.value=!0,a.value=!0},update:({companyNo:n})=>{o.value=n,u.value=!1,a.value=!0}}};return(n,e)=>{const h=i("PageContainer"),g=i("PageAuth");return x(),w(g,{pageName:v},{default:y(()=>[p(h,{hooks:m,events:f,contentConfig:d(E),"search-config":d(c),"get-content-ref":t=>r.value=t},null,8,["contentConfig","search-config","get-content-ref"]),p(k,{visible:a.value,"onUpdate:visible":e[0]||(e[0]=t=>a.value=t),data:o.value,"onUpdate:data":e[1]||(e[1]=t=>o.value=t),disabled:u.value,onRefresh:e[2]||(e[2]=t=>r.value.onSearch())},null,8,["visible","data","disabled"])]),_:1})}}});var $=b(N,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/serviceParam/workCompany/index.vue"]]);export{$ as default};
