index.09cc47.js 2.6 KB

1
  1. import{_ as P,d as w,bn as N,w as i,aU as V,z as A,r as b,o as n,G as k,C as _,h as o,M as d,c,a as m,F as S,D,B as F,L as R,j as p,l as E,aq as T}from"./index.js";import U from"./organize-tree.f944e6.js";import{M as j}from"./modal.a0422b.js";import"./addr-query.f67f9a06.js";import"./useTask.8a645393.js";import"./contact-modal.118bef.js";const M={class:"flex cursor-pointer"},I={key:0,class:"mx-[5px]"},L=["onClick"],O={key:0,class:"mx-[5px]"},$={class:"flex justify-between pt-[20px]"},q={class:"flex gap-1"},G={class:"flex"},W={class:"flex-1"},H=w({__name:"index",setup(J){const g="business",{hasPermissionWithCode:B}=N(g),a=i([]),r=V(!1),u=i({}),v=i({name:""}),l=i(null);function y(s){a.value.push(s)}function C(s){if(s===a.value.length-1)return;const e=a.value[s],f=e?e.id:"";l.value.changePid(f),l.value.onSearch(),a.value.splice(s+1)}return A(()=>a.value,()=>{const s=a.value[a.value.length-1];u.value.companyNo=s?s.companyNo:"",u.value.pid=s?s.id:"0"},{immediate:!0,deep:!0}),(s,e)=>{const f=b("ElInput"),x=b("ElButton"),z=b("PageAuth");return n(),k(z,{class:"px-[10px] h-[calc(100vh-60px)] bg-white",pageName:g,margin:!1},{default:_(()=>[o("ul",M,[o("li",{onClick:e[0]||(e[0]=()=>C())},[d(" \u5168\u90E8\u4E00\u7EA7\u7EC4\u7EC7 "),a.value.length>0?(n(),c("span",I,"/")):m("v-if",!0)]),(n(!0),c(S,null,D(a.value,(t,h)=>(n(),c("li",{class:F({"cursor-pointer":!0,"text-[#ccc]":h===a.value.length-1}),key:t.id,onClick:()=>C(h)},[d(R(t.name)+" ",1),h!==a.value.length-1?(n(),c("span",O,"/")):m("v-if",!0)],10,L))),128))]),o("div",$,[o("div",q,[p(f,{modelValue:v.value.name,"onUpdate:modelValue":e[1]||(e[1]=t=>v.value.name=t),placeholder:"\u4F01\u4E1A/\u7EC4\u7EC7\u540D\u79F0",clearable:"",size:"small",onChange:e[2]||(e[2]=()=>l.value.onSearch())},null,8,["modelValue"])]),o("div",G,[E(B)("003")?(n(),k(x,{key:0,size:"small",type:"primary",onClick:e[3]||(e[3]=t=>r.value=!0)},{default:_(()=>[d("\u6DFB\u52A0")]),_:1})):m("v-if",!0),p(x,{size:"small",onClick:e[4]||(e[4]=()=>l.value.onSearch())},{default:_(()=>[d("\u5237\u65B0")]),_:1})])]),m(" \u6811\u8282\u70B9 "),o("div",W,[p(U,{ref_key:"organizeTreeRef",ref:l,otherParms:v.value,breadcrumb:a.value,onBreadcrumbChange:y},null,8,["otherParms","breadcrumb"])]),p(j,{data:u.value,"onUpdate:data":e[5]||(e[5]=t=>u.value=t),visible:E(r),"onUpdate:visible":e[6]||(e[6]=t=>T(r)?r.value=t:null),onRefresh:e[7]||(e[7]=t=>l.value.onSearch()),breadcrumb:a.value,pid:u.value.pid},null,8,["data","visible","breadcrumb","pid"])]),_:1})}}});var ae=P(H,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/serviceParam/business/index.vue"]]);export{ae as default};