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-D2AmS0aU.js";import{w as L,a as O,b as X,c as A,o as N}from"./WmsCheckBill.api-1ig1uyVb.js";import{D as V}from"./index-CGfZ4X2A.js";import"./index-LwlFn7Y4.js";import{useListPage as F}from"./useListPage-BEtybUiF.js";import{a8 as G}from"./index-B_2CoVdl.js";import Q from"./BasicTable-Clbg3fHx.js";import{Q as W}from"./componentMap-CzCGDP7x.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.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};
