1 |
- import{aD as R,a3 as B,_ as U,d as L,w as s,b4 as O,ae as I,r,am as M,o as w,G as x,C as p,b as c,l as t,M as v,H as N,u as z,b5 as T}from"./index.26d13061.js";const{VITE_PROXY_DOMAIN_REAL:Q,VITE_PROXY_USER_REAL:H}=B(),j=H+"/admin/",q=g=>R.request("post",`${j}supplierlist`,{data:g});const X={flex:"","mb-2":""},Y={flex:"","flex-1":"",gap:"5",pr:"20px"},G={flex:"",width:"120px"},$={flex:"","justify-between":"","mt-2":""},J=L({__name:"company-modal",emits:["choose"],setup(g,{expose:V,emit:D}){const C=s([]),y=s([]),u=s({name:""}),m=s(!1),d=s(!1),E=s(null),h=O(),o=I({currentPage:1,pageSize:10,total:0});async function _(){const{pageSize:l,currentPage:e}=o;m.value=!0;const{code:f,message:i,data:a}=await q({...u.value,size:l,page:e});h({code:f,message:i,handler:()=>{o.total=a.count,C.value=a.list}}),m.value=!1}function k(){d.value=!1,D("choose",z(y))}function F(l){y.value=l}function b(l=!1){l&&(u.value={name:""}),o.currentPage=1,_()}return V({onDisplay:()=>{d.value=!0}}),(l,e)=>{const f=r("el-input"),i=r("el-button"),a=r("el-table-column"),P=r("el-pagination"),S=r("el-dialog"),A=M("loading");return w(),x(S,{"close-on-click-modal":!1,modelValue:d.value,"onUpdate:modelValue":e[5]||(e[5]=n=>d.value=n),title:"\u4E1A\u52A1\u516C\u53F8",center:"",width:"1040px",onOpen:e[6]||(e[6]=()=>_()),onClose:e[7]||(e[7]=()=>u.value.name="")},{default:p(()=>[c("div",X,[c("div",Y,[t(f,{placeholder:"\u516C\u53F8\u540D\u79F0",size:"small",modelValue:u.value.name,"onUpdate:modelValue":e[0]||(e[0]=n=>u.value.name=n)},null,8,["modelValue"])]),c("div",G,[t(i,{size:"small",type:"primary",onClick:e[1]||(e[1]=()=>b())},{default:p(()=>[v("\u641C\u7D22")]),_:1}),t(i,{size:"small",onClick:e[2]||(e[2]=()=>b(!0))},{default:p(()=>[v("\u91CD\u7F6E")]),_:1})])]),N((w(),x(z(T),{border:"",ref_key:"tableRef",ref:E,data:C.value,size:"small","row-key":"id",onSelectionChange:F},{default:p(()=>[t(a,{type:"selection",align:"center",width:"40"}),t(a,{label:"\u516C\u53F8\u7F16\u7801",prop:"code","show-overflow-tooltip":""}),t(a,{label:"\u516C\u53F8\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),t(a,{label:"\u516C\u53F8\u7C7B\u578B",prop:"nature","show-overflow-tooltip":""})]),_:1},8,["data"])),[[A,m.value]]),c("div",$,[t(P,{"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:_},null,8,["current-page","page-size","total"]),t(i,{type:"primary",size:"small",onClick:k},{default:p(()=>[v("\u786E\u5B9A")]),_:1})])]),_:1},8,["modelValue"])}}});var W=U(J,[["__scopeId","data-v-3eb9682a"],["__file","C:/Users/a/Desktop/projects/report-v3/src/views/interest/companyAccount-origin/components/company-modal.vue"]]);export{W as default};
|