var l=(u,o,r)=>new Promise((d,i)=>{var s=e=>{try{n(r.next(e))}catch(a){i(a)}},f=e=>{try{n(r.throw(e))}catch(a){i(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(s,f);n((r=r.apply(u,o)).next())});import{d as _,c as I,u as t,w as S,U as M,a2 as y,a3 as U,k,af as c,ad as v,G as z,V as D}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import{useListPage as R}from"./useListPage-CevWQ3ci.js";import"./index-XZKTTfG1.js";import{w as T,a as V,b as F,c as L,d as N,e as X}from"./WmsCheckBill.api-D97T72rU.js";import{a9 as K,u as P,i as j}from"./index-CLZzJyTP.js";import{Q as A}from"./componentMap-DpsJvoqz.js";import G from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.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 oo=_({__name:"WmsCheckBillEntryList",setup(u){const o=I("mainId")||"",r=P(),[d,{openModal:i}]=K(),s={},{prefixCls:f,tableContext:n,onImportXls:e,onExportXls:a}=R({tableProps:{api:V,columns:T,canResize:!1,useSearchForm:!1,size:"small",striped:!0,actionColumn:{width:180,fixed:"right"},pagination:{current:1,pageSize:5,pageSizeOptions:["5","10","20"]}},exportConfig:{name:"盘点单库存分录",url:L,params:{orderId:o}},importConfig:{url:()=>F+"/"+t(o)}}),[x,{reload:C},{rowSelection:E,selectedRowKeys:w}]=n;S(o,()=>{s.orderId=t(o),C()});function H(){if(j(t(o))){r.createMessage.warning("请选择一个主表信息");return}i(!0,{isUpdate:!1,showFooter:!0})}function O(m){return l(this,null,function*(){i(!0,{record:m,isUpdate:!0,showFooter:!0})})}function Q(m){return l(this,null,function*(){yield N({id:m.id},h)})}function W(){return l(this,null,function*(){yield X({ids:w.value},h)})}function h(){(w.value=[])&&C()}function B(m){return[]}return(m,p)=>{const b=M("a-button");return y(),U("div",null,[k(t(G),{onRegister:t(x),rowSelection:t(E),searchInfo:s},{tableTitle:c(()=>[t(o)!=""?(y(),v(b,{key:0,type:"primary",preIcon:"ant-design:export-outlined",onClick:t(a)},{default:c(()=>p[0]||(p[0]=[z(" 导出")])),_:1},8,["onClick"])):D("",!0)]),action:c(({record:g})=>[k(t(A),{actions:B(g)},null,8,["actions"])]),bodyCell:c(({column:g,record:$,index:q,text:J})=>p[1]||(p[1]=[])),_:1},8,["onRegister","rowSelection"])])}}});export{oo as default};
