1 |
- import{aC as c,a2 as B,_ as O,d as q,w as u,b3 as L,ad as U,r as p,al as T,o as x,G as z,C as d,b as v,l as a,M as C,H as $,u as S,b4 as I}from"./index.1d5f2f42.js";const{VITE_PROXY_DOMAIN_REAL:W,VITE_PROXY_USER_REAL:N}=B(),_=N+"/admin/",Z=t=>c.request("post",`${_}useradd`,{data:{...t,level:"3"}}),ee=(t={})=>c.request("post",`${_}usersinglelist`,{data:{...t,level:"3"}}),te=t=>c.request("post",`${_}useradd`,{data:{...t,level:"3"}}),ae=t=>c.request("post",`${_}setstatus`,{data:t}),j=t=>c.request("post",`${_}supplier_by_super`,{data:t});const H={flex:"","mb-2":""},X={flex:"","flex-1":"",gap:"5",pr:"20px"},Y={flex:"",width:"120px"},G={flex:"","justify-between":"","mt-2":""},J=q({__name:"company-modal",emits:["choose"],setup(t,{expose:V,emit:E}){const b=u([]),w=u([]),r=u({name:""}),f=u(!1),m=u(!1),P=u(null),k=L(),o=U({currentPage:1,pageSize:10,total:0});async function g(){const{pageSize:s,currentPage:e}=o;f.value=!0;const{code:y,message:i,data:l}=await j({...r.value,size:s,page:e});k({code:y,message:i,handler:()=>{o.total=l.count,b.value=l.list}}),f.value=!1}function D(){m.value=!1,E("choose",S(w))}function F(s){w.value=s}function h(s=!1){s&&(r.value={name:""}),o.currentPage=1,g()}return V({onDisplay:()=>{m.value=!0}}),(s,e)=>{const y=p("el-input"),i=p("el-button"),l=p("el-table-column"),M=p("el-pagination"),R=p("el-dialog"),A=T("loading");return x(),z(R,{"close-on-click-modal":!1,modelValue:m.value,"onUpdate:modelValue":e[5]||(e[5]=n=>m.value=n),title:"\u4F9B\u5E94\u5546",center:"",width:"1040px",onOpen:e[6]||(e[6]=()=>g()),onClose:e[7]||(e[7]=()=>r.value.name="")},{default:d(()=>[v("div",H,[v("div",X,[a(y,{placeholder:"\u516C\u53F8\u540D\u79F0",size:"small",modelValue:r.value.name,"onUpdate:modelValue":e[0]||(e[0]=n=>r.value.name=n)},null,8,["modelValue"])]),v("div",Y,[a(i,{size:"small",type:"primary",onClick:e[1]||(e[1]=()=>h())},{default:d(()=>[C("\u641C\u7D22")]),_:1}),a(i,{size:"small",onClick:e[2]||(e[2]=()=>h(!0))},{default:d(()=>[C("\u91CD\u7F6E")]),_:1})])]),$((x(),z(S(I),{border:"",ref_key:"tableRef",ref:P,data:b.value,size:"small","row-key":"id",onSelectionChange:F},{default:d(()=>[a(l,{type:"selection",align:"center",width:"40"}),a(l,{label:"\u516C\u53F8\u7F16\u7801",prop:"code","show-overflow-tooltip":"",width:"150px"}),a(l,{label:"\u516C\u53F8\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),a(l,{label:"\u516C\u53F8\u7C7B\u578B",prop:"nature","show-overflow-tooltip":""})]),_:1},8,["data"])),[[A,f.value]]),v("div",G,[a(M,{"current-page":o.currentPage,"onUpdate:currentPage":e[3]||(e[3]=n=>o.currentPage=n),"page-size":o.pageSize,"onUpdate:pageSize":e[4]||(e[4]=n=>o.pageSize=n),total:o.total,onCurrentChange:g},null,8,["current-page","page-size","total"]),a(i,{type:"primary",size:"small",onClick:D},{default:d(()=>[C("\u786E\u5B9A")]),_:1})])]),_:1},8,["modelValue"])}}});var K=O(J,[["__scopeId","data-v-0d929ade"],["__file","D:/work/rep-v3/report-v3/src/views/supplierManage/supplierAccoutManage/components/company-modal.vue"]]),oe=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));export{K as C,te as a,ae as b,ee as c,oe as d,Z as h};
|