File: /var/www/html/public/static/js/hookWord-7bd0a7f5.js
import{getScheDeliverList as P,DeliverAction as A}from"./po-e504e5bf.js";import{b7 as h}from"./message-2472a54a.js";import{r as a,A as o,o as z}from"./runtime-core.esm-bundler-6128546f.js";import"./index-96c98e35.js";import"./preload-helper-78dc9057.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 T(){const n=a(!1),l=a(!1),_=a(!1),s=a(""),c=a(""),u=a([]),g=o({page:1,resault:""}),f=o({destination_comp:"",state:"",city:"",address:"",phone:"",contact:"",customer_id:""}),v=o({}),t=o({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),i=o({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),y=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"订单号",slot:"order_sn",minWidth:100,hide:({checkList:e})=>!e.includes("订单号")},{label:"客户名称",prop:"name",minWidth:100,hide:({checkList:e})=>!e.includes("客户名称")},{label:"产品型号",prop:"part_no",minWidth:100,hide:({checkList:e})=>!e.includes("产品型号")},{label:"产品名称",prop:"customer_product_name",minWidth:100,hide:({checkList:e})=>!e.includes("产品名称")},{label:"产品编号",prop:"customer_product_code",minWidth:150,slot:"slotAction",hide:({checkList:e})=>!e.includes("产品编号")},{label:"订单数量",prop:"item_required_quantity",minWidth:120,hide:({checkList:e})=>!e.includes("订单数量")},{label:"已发货数量",prop:"deliver_qty",minWidth:120,hide:({checkList:e})=>!e.includes("已发货数量")},{label:"订单日期",prop:"order_time",minWidth:120,hide:({checkList:e})=>!e.includes("订单日期")},{label:"期望交期",prop:"expected_time",minWidth:120,hide:({checkList:e})=>!e.includes("期望交期")},{label:"操作",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("操作")}],b=["勾选列","订单号","客户名称","产品型号","产品名称","产品编号","订单数量","已发货数量","订单日期","期望交期","操作"],m=o({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""});function k(){r()}function D(e){i.pageSize=e,r()}function q(e){i.currentPage=e,r()}async function r(){n.value=!0;const{data:e}=await P(Object.assign(g,{page:i.currentPage,resault:i.pageSize,searchKey:m.searchKey,order_date1:s.value[0],order_date2:s.value[1]}));u.value=e.data.data,i.total=e.data.total,n.value=!1}function S(e){t.qo_item_str="";const d=[];e.forEach((p,C)=>{d.push(p.qo_item_id)}),t.qo_item_str=d.toString()}async function W(){const{data:e}=await A(Object.assign(v,{items:t.itemsDetail,shipping_address_id:t.address,customer_id:f.customer_id,trackingNo:t.trackingNo,deliverType:t.way,courier:t.courier,comment:t.comment}));e.code==1?(r(),l.value=!1,h({type:"success",message:e.msg})):h({type:"error",message:e.msg})}function w(e,d,p){c.value=e.content,tip.value=2,topicData.value=e.data.data.datas,importDialog.value=!0}return z(()=>{}),{searchDetail:m,btnSearchPart:k,loading:n,small:_,selectList:b,columns:y,pagination:i,handleSizeChange:D,handleCurrentChange:q,PartList:u,order_date:s,deliverDialog:l,selectClick:S,deliverDataArr:t,btnDeliverConfirm:W,uploadSlotFile:w,html:c}}export{T as useEqu};