import{h as l,u as r}from"./index-Cy4uayzW.js";const o=[{title:"单据号",align:"center",dataIndex:"orderNo"},{title:"盘点日期",align:"center",dataIndex:"checkTime"},{title:"状态",align:"center",dataIndex:"status"},{title:"盘点类型",align:"center",dataIndex:"checkType"},{title:"操作人",align:"center",dataIndex:"operator"},{title:"备注",align:"center",dataIndex:"note"}],i=[{label:"单据号",field:"orderNo",component:"Input"},{label:"盘点日期",field:"checkTime",component:"RangePicker",componentProps:{valueType:"Date",showTime:!0}},{label:"状态",field:"status",component:"Input"},{label:"盘点类型",field:"checkType",component:"Input"},{label:"操作人",field:"operator",component:"Input"}],c=[{label:"单据号",field:"orderNo",component:"Input"},{label:"盘点日期",field:"checkTime",component:"DatePicker",componentProps:{showTime:!0,valueFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"状态",field:"status",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入状态!"}]},{label:"盘点类型",field:"checkType",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入盘点类型!"}]},{label:"操作人",field:"operator",component:"Input",dynamicRules:({model:e,schema:t})=>[{required:!0,message:"请输入操作人!"}]},{label:"备注",field:"note",component:"Input"},{label:"",field:"id",component:"Input",show:!1}],a={orderNo:{title:"单据号",order:0,view:"text",type:"string"},checkTime:{title:"盘点日期",order:1,view:"datetime",type:"string"},status:{title:"状态",order:2,view:"text",type:"string"},checkType:{title:"盘点类型",order:3,view:"text",type:"string"},operator:{title:"操作人",order:4,view:"text",type:"string"},note:{title:"备注",order:5,view:"text",type:"string"}};function d(e){return c}const w=[{title:"物料编码",align:"center",dataIndex:"sku"},{title:"箱号",align:"center",dataIndex:"containerCode"},{title:"批次号",align:"center",dataIndex:"batchNo"},{title:"库位编码",align:"center",dataIndex:"locCode"},{title:"WMS账存数",align:"center",dataIndex:"wmsAccountQty"},{title:"wms库存数量",align:"center",dataIndex:"wmsNowQty"},{title:"是否有差异",align:"center",dataIndex:"isDiffer"}];const{createConfirm:n}=r();const u="/wms/wmsCheckBill/exportXls",h="/wms/wmsCheckBill/importExcel",p=e=>l.get({url:"/wms/wmsCheckBill/list",params:e}),k=(e,t)=>l.delete({url:"/wms/wmsCheckBill/delete",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),B=(e,t)=>{n({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>l.delete({url:"/wms/wmsCheckBill/deleteBatch",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})},C=(e,t)=>{let s=t?"/wms/wmsCheckBill/edit":"/wms/wmsCheckBill/add";return l.post({url:s,params:e})},y=e=>e.orderId?l.get({url:"/wms/wmsCheckBill/listWmsCheckBillEntryByMainId",params:e}):Promise.resolve({}),I=(e,t)=>l.delete({url:"/wms/wmsCheckBill/deleteWmsCheckBillEntry",params:e},{joinParamsToUrl:!0}).then(()=>{t()}),f=(e,t)=>{n({iconType:"warning",title:"确认删除",content:"是否删除选中数据",okText:"确认",cancelText:"取消",onOk:()=>l.delete({url:"/wms/wmsCheckBill/deleteBatchWmsCheckBillEntry",data:e},{joinParamsToUrl:!0}).then(()=>{t()})})};const g="/wms/wmsCheckBill/importWmsCheckBillEntry",x="/wms/wmsCheckBill/exportWmsCheckBillEntry",b=e=>l.post({url:"/wms/wmsCheckBill/pullDown",params:e}),E=e=>l.post({url:"/wms/wmsCheckBill/cancel",params:e}),T=e=>l.post({url:"/wms/wmsCheckBill/syncInventory",params:e});export{y as a,g as b,x as c,I as d,f as e,o as f,h as g,u as h,a as i,E as j,T as k,p as l,k as m,B as n,c as o,b as p,C as q,d as r,i as s,w};
