"use strict";const e=require("../../../common/vendor.js"),i=require("../../../api/user.js");if(require("../../../utils/request.js"),require("../../../store/index.js"),require("../../../utils/functions.js"),require("../../../utils/IDCardVerification.js"),require("../../../config/host.js"),require("../../../utils/base64.js"),require("../../../utils/md5.js"),!Array){(e.resolveComponent("u-navbar")+e.resolveComponent("u-icon")+e.resolveComponent("l-calendar"))()}Math||((()=>"../../../uni_modules/uview-plus/components/u-navbar/u-navbar.js")+(()=>"../../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../../uni_modules/l-calendar/components/l-calendar/l-calendar.js"))();const t=e.defineComponent({__name:"SelfPickupScan",setup(t){let n=e.reactive({datatime:"",show:!1,current:1,size:10,recordsList:[]});const a=e.ref([]);function o(){n.show=!n.show}function r(e){console.log(e),a.value[0]=e.startDate,a.value[1]=e.endDate,n.datatime=a.value[0]+" 至 "+a.value[1]}function u(){n.datatime=""}e.onLoad((()=>{a.value[0]=e.index.$u.timeFormat((new Date).valueOf()-2592e5,"yyyy-mm-dd"),a.value[1]=e.index.$u.timeFormat((new Date).valueOf(),"yyyy-mm-dd"),n.current=1,async function(){let e={current:n.current,size:n.size,pickUpTimeStart:a.value[0],pickUpTimeEnd:a.value[1]},t=await i.billLadingpageList(e);n.recordsList=t.data.records}()}));const{datatime:s,dataList:l,show:c,recordsList:d}=e.toRefs(n);return(i,t)=>e.e({a:e.p({title:"自提扫描",placeholder:!0,border:"true",autoBack:!0,leftIconSize:"35"}),b:e.unref(s),c:!e.unref(s)},e.unref(s)?{f:e.o(u),g:e.p({name:"close-circle",color:"#999999",size:"40"})}:{d:e.o(o),e:e.p({name:"calendar",color:"#999999",size:"50"})},{h:e.o((()=>{})),i:e.o(o),j:e.f(e.unref(d),((i,t,n)=>({a:e.t(i.item),b:e.t(i.conditionStr),c:e.t(i.pickUpPlate),d:e.t(i.consignee),e:e.t(i.createTime),f:e.t(i.createTime),g:e.t(i.orderNum),h:e.t(i.planNum),i:e.t(i.signedNum),j:e.o((t=>function(i){e.index.navigateTo({url:"/pagesHome/pages/SelfPickupDetails/SelfPickupDetails?billLadingId="+i.billLadingId})}(i))),k:e.o((t=>function(i){e.index.navigateTo({url:"/pagesHome/pages/SelfPScanList/SelfPScanList?billLadingId="+i.billLadingId})}(i)))}))),k:e.o(o),l:e.o(r),m:e.o((i=>e.isRef(c)?c.value=i:null)),n:e.p({initStartDate:a.value[0],initEndDate:a.value[1],value:e.unref(c)})})}});wx.createPage(t);