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-zKZnG1QC.js";import{w as L,a as O,b as X,c as A,o as N}from"./WmsCheckBill.api-IqLAfg5X.js";import{D as V}from"./index-U6E3DaJx.js";import"./index-gyz1IdHU.js";import{useListPage as F}from"./useListPage-TMORxSEa.js";import{a8 as G}from"./index-Cy4uayzW.js";import Q from"./BasicTable-CgafrQwz.js";import{Q as W}from"./componentMap-0iK4HQBq.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./injectionKey-DPVn4AgL.js";const to=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{to as default};
