File: /var/www/html/public/static/js/hookReceiptList-4a29cb56.js
import{partShippingDetailList as W}from"./po-dd1813b7.js";import{r as t,A as o,o as k}from"./runtime-core.esm-bundler-6128546f.js";import"./index-474bf855.js";import"./preload-helper-78dc9057.js";import"./message-2472a54a.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";function C(){const l=t([]),n=t([]),p=t(!0),d=t(""),s=t(!1),c=t(!1),u=o({page:1,resault:"",trackingNo:"",part_param:""}),r=o({trackingNo:"",part_id:""}),i=o({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),h=["运单号","快递公司","包裹数量","收货日期","名称","物料ID","物料型号","品牌","关联采购单","关联订单","入库数量","操作"],m=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",prop:"seq_id",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"运单号",prop:"tracking_No",width:70,hide:({checkList:e})=>!e.includes("运单号")},{label:"快递公司",prop:"courier",minWidth:100,hide:({checkList:e})=>!e.includes("快递公司")},{label:"包裹数量",prop:"package_qty",minWidth:100,hide:({checkList:e})=>!e.includes("包裹数量")},{label:"收货日期",prop:"deliver_time",minWidth:150,hide:({checkList:e})=>!e.includes("收货日期")},{label:"名称",prop:"name",minWidth:120,hide:({checkList:e})=>!e.includes("名称")},{label:"物料ID",prop:"part_id",minWidth:120,hide:({checkList:e})=>!e.includes("物料ID")},{label:"物料型号",prop:"standard_model",minWidth:120,hide:({checkList:e})=>!e.includes("物料型号")},{label:"品牌",prop:"comp_name",minWidth:120,hide:({checkList:e})=>!e.includes("品牌")},{label:"关联采购单",prop:"po_number",minWidth:120,hide:({checkList:e})=>!e.includes("关联采购单")},{label:"关联订单",prop:"sn_order",minWidth:120,hide:({checkList:e})=>!e.includes("关联订单")},{label:"入库数量",prop:"in_stock_quantity",minWidth:120,hide:({checkList:e})=>!e.includes("入库数量")},{label:"操作",fixed:"right",width:250,slot:"operation",hide:({checkList:e})=>!e.includes("操作")}];async function a(){const{data:e}=await W(Object.assign(u,{page:i.currentPage,resault:i.pageSize,trackingNo:r.trackingNo,part_param:r.part_id}));l.value=e.data,i.total=e.total,d.value=e.print_url,setTimeout(()=>{p.value=!1},500)}function g(e){n.value=[],n.value.push(e),c.value=!0}function _(e){i.pageSize=e,a()}function b(e){i.currentPage=e,a()}function f(e){const v=d.value.replace("make_local_print.php?from=part","improvise/receiving_excel.php?receiving_id=");window.open(v+e.tracking_id)}return k(()=>{a()}),{receiptList:r,dataList:l,columns:m,loading:p,small:s,pagination:i,selectList:h,loadPoData:a,openPrintDialog:g,tableDialogPrint:c,printRowData:n,handleSizeChange:_,handleCurrentChange:b,printWarehouse:f}}export{C as useEqu};