<<<<<<<< HEAD:dist/assets/index.b676060d.js import{aE as l,ae as C,af as x,aC as y,a8 as v,_ as b,d as w,w as n,a0 as B,r as f,o as D,G as P,C as N,l as L,u as h}from"./index.5f40f350.js";import{h as S}from"./index.14e94d6a.js";import{u as q}from"./use-page-search.e82aa511.js";import{u as I}from"./use-page-modal.47d1ce01.js";const{VITE_PROXY_DOMAIN_REAL:j,VITE_PROXY_USER_REAL:R}=C(),r=R+"/admin/",k=e=>l.request("post",`${r}execadd`,{data:e}),M=e=>l.request("post",`${r}execlist`,{data:e}),Y=e=>l.request("post",`${r}execstatus`,{data:e}),$=e=>l.request("post",`${r}execaction`,{data:e}),H=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u62A5\u8868\u540D\u79F0",prop:"name"},{label:"\u72B6\u6001",prop:"status",width:"80px",cellRenderer:({row:e,props:i})=>x(y,{size:i.size,type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u7801",prop:"companyNo",width:"150px"},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"companyName"},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:"80px"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:"140px",formatter:({addtime:e})=>v(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],O={title:"\u53EF\u7533\u8BF7\u62A5\u8868",superUserNoAction:!1,showCreate:e=>e,showStatus:e=>e,columns:H,apis:{httpList:M,httpAdd:k,httpStatus:Y}},g={colLayout:{xl:3,lg:4,md:6,sm:8,xs:12},formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:[{value:"0",label:"\u7981\u7528"},{value:"1",label:"\u542F\u7528"}]},{field:"name",type:"input",placeholder:"\u62A5\u8868\u540D\u79F0"}]},A={title:"\u53EF\u7533\u8BF7\u62A5\u8868",colLayout:{span:24},itemStyle:{},formItems:[{field:"name",type:"input",label:"\u62A5\u8868\u540D\u79F0",labelWidth:"120px",placeholder:"\u62A5\u8868\u540D\u79F0",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u62A5\u8868\u540D\u79F0"}],otherOptions:{disabled:!0}},{field:"action",type:"select",label:"\u62A5\u8868\u9009\u9879",labelWidth:"120px",placeholder:"\u62A5\u8868\u9009\u9879",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u62A5\u8868\u9009\u9879"}],options:[]},{field:"companyNo",type:"select",label:"\u4E1A\u52A1\u516C\u53F8",labelWidth:"120px",placeholder:"\u4E1A\u52A1\u516C\u53F8",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8"}],options:[]}]},z=w({__name:"index",setup(e){const i="reportApply",c=n(A),F=n(null),p=n([]),d=n([]);async function m(t){const u=[],{code:o,data:s}=t==1?await $({}):await S({page:1,size:1e4});return o===0&&(t==1?s:s.list).forEach(a=>{const E={value:t==1?a.action:a.companyNo,label:(t==1,a.name)};u.push(E)}),u}const _={pageSearchHook:()=>q(void 0,void 0,g),pageModalHook:t=>I({pageContentRef:t})};return B(async()=>{p.value=await m(1),d.value=await m(2),c.value.formItems[1].options=p.value,c.value.formItems[2].options=d.value}),A.onDataChange=function(t){const u=p.value.find(({value:o})=>o===t.action);return{...t,name:u?u.label:""}},(t,u)=>{const o=f("PageContainer"),s=f("PageAuth");return D(),P(s,{pageName:i},{default:N(()=>[L(o,{hooks:_,contentConfig:h(O),"search-config":h(g),"modal-config":c.value,"get-modal-ref":a=>F.value=a},null,8,["contentConfig","search-config","modal-config","get-modal-ref"])]),_:1})}}});var X=b(z,[["__file","/Users/apple/Desktop/CompanyProjects/accout-vue3-ui/src/views/reportForm/reportApply/index.vue"]]);export{X as default}; ======== import{aE as l,ae as C,af as x,aC as y,a8 as v,_ as b,d as w,w as n,a0 as B,r as f,o as D,G as P,C as N,l as L,u as h}from"./index.c5c59fb2.js";import{h as S}from"./index.f498e35a.js";import{u as q}from"./use-page-search.c15fce16.js";import{u as I}from"./use-page-modal.3951827c.js";const{VITE_PROXY_DOMAIN_REAL:j,VITE_PROXY_USER_REAL:R}=C(),r=R+"/admin/",k=e=>l.request("post",`${r}execadd`,{data:e}),M=e=>l.request("post",`${r}execlist`,{data:e}),Y=e=>l.request("post",`${r}execstatus`,{data:e}),$=e=>l.request("post",`${r}execaction`,{data:e}),H=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u62A5\u8868\u540D\u79F0",prop:"name"},{label:"\u72B6\u6001",prop:"status",width:"80px",cellRenderer:({row:e,props:i})=>x(y,{size:i.size,type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u7801",prop:"companyNo",width:"150px"},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"companyName"},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:"80px"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:"140px",formatter:({addtime:e})=>v(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],O={title:"\u53EF\u7533\u8BF7\u62A5\u8868",superUserNoAction:!1,showCreate:e=>e,showStatus:e=>e,columns:H,apis:{httpList:M,httpAdd:k,httpStatus:Y}},g={colLayout:{xl:3,lg:4,md:6,sm:8,xs:12},formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:[{value:"0",label:"\u7981\u7528"},{value:"1",label:"\u542F\u7528"}]},{field:"name",type:"input",placeholder:"\u62A5\u8868\u540D\u79F0"}]},A={title:"\u53EF\u7533\u8BF7\u62A5\u8868",colLayout:{span:24},itemStyle:{},formItems:[{field:"name",type:"input",label:"\u62A5\u8868\u540D\u79F0",labelWidth:"120px",placeholder:"\u62A5\u8868\u540D\u79F0",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u62A5\u8868\u540D\u79F0"}],otherOptions:{disabled:!0}},{field:"action",type:"select",label:"\u62A5\u8868\u9009\u9879",labelWidth:"120px",placeholder:"\u62A5\u8868\u9009\u9879",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u62A5\u8868\u9009\u9879"}],options:[]},{field:"companyNo",type:"select",label:"\u4E1A\u52A1\u516C\u53F8",labelWidth:"120px",placeholder:"\u4E1A\u52A1\u516C\u53F8",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u516C\u53F8"}],options:[]}]},z=w({__name:"index",setup(e){const i="reportApply",c=n(A),F=n(null),p=n([]),d=n([]);async function m(t){const u=[],{code:o,data:s}=t==1?await $({}):await S({page:1,size:1e4});return o===0&&(t==1?s:s.list).forEach(a=>{const E={value:t==1?a.action:a.companyNo,label:(t==1,a.name)};u.push(E)}),u}const _={pageSearchHook:()=>q(void 0,void 0,g),pageModalHook:t=>I({pageContentRef:t})};return B(async()=>{p.value=await m(1),d.value=await m(2),c.value.formItems[1].options=p.value,c.value.formItems[2].options=d.value}),A.onDataChange=function(t){const u=p.value.find(({value:o})=>o===t.action);return{...t,name:u?u.label:""}},(t,u)=>{const o=f("PageContainer"),s=f("PageAuth");return D(),P(s,{pageName:i},{default:N(()=>[L(o,{hooks:_,contentConfig:h(O),"search-config":h(g),"modal-config":c.value,"get-modal-ref":a=>F.value=a},null,8,["contentConfig","search-config","modal-config","get-modal-ref"])]),_:1})}}});var X=b(z,[["__file","/Users/apple/Desktop/CompanyProjects/accout-vue3-ui/src/views/reportForm/reportApply/index.vue"]]);export{X as default}; >>>>>>>> v3.0:dist/assets/index.e96a393a.js