var y=(_,d,a)=>new Promise((e,u)=>{var n=o=>{try{s(a.next(o))}catch(l){u(l)}},p=o=>{try{s(a.throw(o))}catch(l){u(l)}},s=o=>o.done?e(o.value):Promise.resolve(o.value).then(n,p);s((a=a.apply(_,d)).next())});import{d as R,f as C,K as z,u as t,U as g,a2 as M,ad as D,af as r,k as i,G as P,ag as T}from"./vue-vendor-CxLCUzY4.js";import{B as U}from"./index-CF_FJn6P.js";import{w as L,a as O,b as X,c as A,o as N}from"./WmsCheckBill.api-CGMxr1ow.js";import{D as V}from"./index-CeuZFN4z.js";import"./index-BN5Ac_IG.js";import{useListPage as F}from"./useListPage-i3Wl0_Fg.js";import{a8 as G}from"./index-CYriLmQo.js";import Q from"./BasicTable-DAfCfXmD.js";import{Q as W}from"./componentMap-7D1QIeNI.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./injectionKey-DPVn4AgL.js";const Zt=R({__name:"WmsCheckBillDesc",emits:["register"],setup(_,{emit:d}){const a=d,e=C(""),u=z(),n=C({}),p=C("wmsCheckEntry"),[s,{setModalProps:o,closeModal:l}]=G(m=>y(this,null,function*(){o({confirmLoading:!1}),n.value=m.record,e.value=m.record.id,h.orderId=t(e),w()})),h={},{prefixCls:$,tableContext:k,onImportXls:j,onExportXls:b}=F({tableProps:{api:O,columns:L,canResize:!1,useSearchForm:!1,size:"small",striped:!0,actionColumn:{width:180,fixed:"right"},pagination:{current:1,pageSize:10,pageSizeOptions:["5","10","20"]}},exportConfig:{name:"盘点单库存分录",url:A,params:{orderId:e}},importConfig:{url:()=>X+"/"+t(e)}}),[v,{reload:w},{rowSelection:B,selectedRowKeys:x}]=k;function q(){(x.value=[])&&w()}function E(m){return[]}return(m,c)=>{const I=g("a-button"),S=g("a-tab-pane"),K=g("a-tabs");return M(),D(t(U),T(m.$attrs,{onRegister:t(s),title:"详细信息",width:1e3,showCancelBtn:!1,showOkBtn:!1,destroyOnClose:""}),{default:r(()=>[i(t(V),{size:"small",column:3,data:n.value,schema:t(N)},null,8,["data","schema"]),i(K,{activeKey:p.value,"onUpdate:activeKey":c[0]||(c[0]=f=>p.value=f),animated:""},{default:r(()=>[i(S,{tab:"物料列表",key:"wmsCheckEntry",forceRender:!0},{default:r(()=>[i(t(Q),{onRegister:t(v),rowSelection:t(B),searchInfo:h},{tableTitle:r(()=>[i(I,{type:"primary",preIcon:"ant-design:export-outlined",onClick:t(b)},{default:r(()=>c[1]||(c[1]=[P(" 导出")])),_:1},8,["onClick"])]),action:r(({record:f})=>[i(t(W),{actions:E(f)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"])]),_:1})]),_:1},8,["activeKey"])]),_:1},16,["onRegister"])}}});export{Zt as default};
