"use strict";const e=require("../../../common/vendor.js"),t=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("tips")+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 a=e.defineComponent({__name:"pickingScan",setup(a){let s=e.reactive({datatime:"",dataList:[1,2,3,4,5,6],show:!1,currentPage:1,size:10,stockupDate:"",status:0}),o=e.ref(null);const n=e.ref([]);function u(){s.show=!s.show}function r(e){console.log(e),n.value[0]=e.startDate,n.value[1]=e.endDate,s.datatime=n.value[0]+" 至 "+n.value[1]}async function i(){let e={current:s.currentPage,size:s.size,stockupDate:s.stockupDate,status:s.status},a=await t.distributionStockuppageList(e);s.dataList=a.data.records}function c(){s.datatime=""}function l(e){s.status=e,i()}function d(){o.value.setdetails({title:"提示",content:"确认备货完成?",confirmTxt:"确认",isshow:!0,isshowcancel:!0,success:()=>{o.value.setisshow(!1)},cancel:()=>{o.value.setisshow(!1)},close:()=>{o.value.setisshow(!1)}})}e.onLoad((()=>{s.currentPage=1,n.value[0]=e.index.$u.timeFormat((new Date).valueOf()-2592e5,"yyyy-mm-dd"),n.value[1]=e.index.$u.timeFormat((new Date).valueOf(),"yyyy-mm-dd"),i()}));const{datatime:m,dataList:p,show:f,status:v}=e.toRefs(s);return(t,a)=>e.e({a:e.p({title:"拣货扫描",placeholder:!0,border:"true",autoBack:!0,leftIconSize:"35"}),b:e.unref(m),c:!e.unref(m)},e.unref(m)?{f:e.o(c),g:e.p({name:"close-circle",color:"#999999",size:"40"})}:{d:e.o(u),e:e.p({name:"calendar",color:"#999999",size:"50"})},{h:e.o((()=>{})),i:e.o(u),j:e.n(0==e.unref(v)?"xz":""),k:e.o((e=>l(0))),l:e.n(1==e.unref(v)?"xz":""),m:e.o((e=>l(1))),n:e.f(e.unref(p),((t,a,s)=>({a:e.t(t.typeServiceStr),b:e.t(t.stockupStatusStr),c:e.t(t.customer),d:e.t(t.stockupArea),e:e.t(t.warehouseArea),f:e.t(t.trays),g:e.t(t.orderNum),h:e.t(t.planNum),i:e.t(t.realNum),j:e.o((a=>function(t){e.index.navigateTo({url:"/pagesHome/pages/StockUplist/StockUplist?id="+t.reservationId})}(t)))}))),o:e.o(d),p:e.sr(o,"7babdaae-3",{k:"tip"}),q:e.o(u),r:e.o(r),s:e.o((t=>e.isRef(f)?f.value=t:null)),t:e.p({initStartDate:n.value[0],initEndDate:n.value[1],value:e.unref(f)})})}});wx.createPage(a);