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-XZKTTfG1.js";import{w as L,a as O,b as X,c as A,o as N}from"./WmsCheckBill.api-D97T72rU.js";import{D as V}from"./index-l25ixgFa.js";import"./index-KOQNKxnC.js";import{useListPage as F}from"./useListPage-CevWQ3ci.js";import{a8 as G}from"./index-CLZzJyTP.js";import Q from"./BasicTable-DUJWN3yz.js";import{Q as W}from"./componentMap-DpsJvoqz.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.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};
