import{ch as l,a5 as b,af as R,ce as S,cA as B,a7 as P,_ as k,d as x,n as p,cB as M,r as h,o as V,A as Y,y as f,h as d,i as g,cC as I}from"./index.js";import{R as L,M as s}from"./role-modal.ae06cc.js";import{S as q}from"./super.19b0fc65.js";import"./index.ee658708.js";const{VITE_PROXY_DOMAIN_REAL:Z,VITE_PROXY_USER_REAL:T}=b(),r=T+"/admin/",W=e=>l.request("post",`${r}userlist`,{data:{level:"3",...e}}),$=e=>l.request("post",`${r}usersave`,{data:e}),H=e=>l.request("post",`${r}menustatus`,{data:e}),O=e=>l.request("post",`${r}setrole`,{data:e}),U=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u624B\u673A\u53F7",prop:"mobile",width:120,align:"left"},{label:"\u771F\u5B9E\u59D3\u540D",prop:"nickname",minWidth:150},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e})=>R(S,{type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{label:"\u89D2\u8272",prop:"role_name",minWidth:150,align:"left"},{label:"\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180,align:"left",...B("companyCode","companyName","\u516C\u53F8\u7F16\u7801:")},{label:"\u521B\u5EFA\u65F6\u95F4",width:140,prop:"addtime",formatter:({addtime:e})=>P(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],j={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:U,deleteProp:"payNo",notNeedCompanyFilter:!0,statusRowProp:({companyCode:e})=>({companyNo:e}),apis:{httpAdd:!0,httpDelete:H,httpUpdate:$,httpList:W}},y={formItems:[{field:"nickname",type:"input",placeholder:"\u771F\u5B9E\u59D3\u540D"},{field:"username",type:"input",placeholder:"\u624B\u673A\u53F7"}]},Q="supplierAccoutQuery",X=x({__name:"index",setup(e){const n=p(null),m=p(null),o=p(""),F=()=>({result:{companyNo:o.value},deleteProps:[]}),_={pageSearchHook:()=>I(F,()=>o.value="",y,!0)},{run:v}=M({success:()=>m.value.onSearch()}),C={content:{create:()=>n.value.onDisplay(void 0,s.create),preview:t=>n.value.onDisplay(t,s.preview),update:t=>n.value.onDisplay(t,s.update)}};function D(t,u){const{roleid:c,nickname:i,relaComNo:a,id:E,companyNo:A,mobile:N}=t,w={id:E,mobile:N,roleid:c,nickname:i,relaComNo:a,companyNo:A};switch(u){case s.update:v(O(w));break}}return(t,u)=>{const c=h("PageContainer"),i=h("PageAuth");return V(),Y(i,{pageName:Q},{default:f(()=>[d(c,{hooks:_,events:C,contentConfig:g(j),"search-config":g(y),"get-content-ref":a=>m.value=a},{search_field:f(()=>[d(q,{style:{"margin-right":"20px",width:"100%"},modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=a=>o.value=a),placeholder:"\u4F9B\u5E94\u5546\u516C\u53F8","no-all":"","no-set":"","is-supplier":""},null,8,["modelValue"])]),_:1},8,["contentConfig","search-config","get-content-ref"]),d(L,{ref_key:"roleModalRef",ref:n,onFinanceSave:D},null,512)]),_:1})}}});var ee=k(X,[["__file","D:/work/jiesuan/settle-vue3/src/views/supplierManage/supplierAccoutQuery/index.vue"]]);export{ee as default};