var i=(r,u,n)=>new Promise((a,l)=>{var c=t=>{try{s(n.next(t))}catch(o){l(o)}},_=t=>{try{s(n.throw(t))}catch(o){l(o)}},s=t=>t.done?a(t.value):Promise.resolve(t.value).then(c,_);s((n=n.apply(r,u)).next())});import{_ as g,__tla as y}from"./index-2f73993e.js";import{n as E,__tla as S}from"./inventory-cb50dc51.js";import{d as b,k as d,o as v,w,u as R,a7 as D,_ as N,$ as k,f as I}from"./vue-1631514e.js";import{_ as H,__tla as O}from"./index-f0df2f76.js";import{__tla as U}from"./index-7a87ec93.js";import{__tla as A}from"./index-a2613349.js";import"./antd-057b41b1.js";import{__tla as x}from"./props-28b7992c.js";import{__tla as C}from"./useContextMenu-e2127c1a.js";let f,P=Promise.all([(()=>{try{return y}catch(r){}})(),(()=>{try{return S}catch(r){}})(),(()=>{try{return O}catch(r){}})(),(()=>{try{return U}catch(r){}})(),(()=>{try{return A}catch(r){}})(),(()=>{try{return x}catch(r){}})(),(()=>{try{return C}catch(r){}})()]).then(()=>i(void 0,null,function*(){const r=b({name:"HouseTree",components:{TigerTree:g},emits:["select","success","gettree"],props:{disabledTree:{type:Number,default:0}},setup(a,{emit:l}){const c=d(),_=d(null);var s=d(!1);function t(){const e=R(_);if(!e)throw new Error("tree is null!");return e}function o(){return i(this,null,function*(){const e=t().getCheckedKeys();t().getSelectedNode(e[0])})}function m(){return i(this,null,function*(){const e={ID:"",AUTH_ORG:"",HOUSE_NAME:"",HOUSE_CODE:"",PARENT_HOUSE:"",CREATE_TIME:"",TYPE:""};c.value=yield E(e)})}function h(e){l("select",e[0])}v(()=>{l("gettree",t()),m()}),w(()=>a.disabledTree,e=>{e!=0&&(s.value=!0)});function p({isUpdate:e,values:G}){m()}function T({houseType:e}){return e==="Warehouse"?"warehouse|svg":e==="Region"?"Region|svg":e==="Shelf"?"Shelf|svg":""}return{treeData:c,treeRef:_,handleSelect:h,handleSuccess:p,createIcon:T,getTree:t,GetTree:o,disabledTree:s,props:a}}}),u={class:"m-4 mr-0 overflow-hidden bg-white",style:{height:"800px"}};function n(a,l,c,_,s,t){const o=D("TigerTree");return N(),k("div",u,[I(o,{title:"\u4ED3\u5E93",toolbar:"",search:"",checkable:"",clickRowToExpand:!1,treeData:a.treeData,disabled:a.disabledTree,renderIcon:a.createIcon,fieldNames:{key:"id",title:"houseName"},onSelect:a.handleSelect,ref:"treeRef"},null,8,["treeData","disabled","renderIcon","onSelect"])])}f=H(r,[["render",n]])}));export{P as __tla,f as default};
|