货无忧
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
3.4 KiB

"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("../../../utils/base64.js"),require("../../../config/host.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 n=e.defineComponent({__name:"signinScan",setup(n){let o=e.reactive({datatime:"",show:!1,taskTime_start:"",taskTime_end:"",datalist:[],current:1,size:5,checkstate:1});e.onPullDownRefresh((()=>{setTimeout((()=>{e.index.stopPullDownRefresh()}),500)}));const i=e.ref([]);function a(){o.show=!o.show}function l(e){o.checkstate!=e&&(o.checkstate=e,r())}function u(e){console.log(e),i.value[0]=e.startDate,i.value[1]=e.endDate,o.datatime=i.value[0]+" 至 "+i.value[1],r()}function r(){o.current=1,c()}function s(){o.current++,c()}async function c(){let n={current:o.current,size:o.size,taskTime_start:i.value[0],taskTime_end:i.value[1],type:o.checkstate},a=await t.signforpage(n);if(1==o.current)o.datalist=a.data.records;else{if(0==a.data.records.lngth)return e.index.showToast({title:"已经到底了。",icon:"none"}),void o.current--;o.datalist=o.datalist.concat(a.data.records)}}function d(e){console.log(e),o.show=e}function m(){o.datatime="",i.value=[],r()}e.watchEffect((()=>{0!=i.value.length&&(o.datatime=i.value[0]+" 至 "+i.value[1])})),e.onLoad((()=>{i.value[0]=e.index.$u.timeFormat((new Date).valueOf()-2592e5,"yyyy-mm-dd"),i.value[1]=e.index.$u.timeFormat((new Date).valueOf(),"yyyy-mm-dd"),o.current=1})),e.onShow((()=>{r()}));const{checkstate:f,datatime:v,datalist:g,show:p}=e.toRefs(o);return(t,n)=>e.e({a:e.p({title:"签收扫描",bgColor:"#D3832A",leftIconColor:"#ffffff",titleStyle:"color:#ffffff",placeholder:!0,autoBack:!0,leftIconSize:"35"}),b:e.o((e=>l(1))),c:e.n(1==e.unref(f)?"xz":""),d:e.o((e=>l(2))),e:e.n(2==e.unref(f)?"xz":""),f:e.unref(v),g:!e.unref(v)},e.unref(v)?{j:e.o(m),k:e.p({name:"close-circle",color:"#999999",size:"40"})}:{h:e.o((e=>d(!0))),i:e.p({name:"calendar",color:"#999999",size:"50"})},{l:e.o((()=>{})),m:e.o((e=>d(!0))),n:e.o(r),o:e.f(e.unref(g),((t,n,o)=>({a:e.t(null==t?void 0:t.noteNumber),b:e.t(null==t?void 0:t.type_name),c:e.t(null==t?void 0:t.deliStatus_name),d:e.t(null==t?void 0:t.vehicleName),e:e.t(null==t?void 0:t.driverName),f:e.t(null==t?void 0:t.loadingTeamName),g:e.t(null==t?void 0:t.isstock),h:e.t(null==t?void 0:t.consignee),i:e.t(null==t?void 0:t.taskTime),j:e.t((null==t?void 0:t.customersNumber)||0),k:e.o((n=>function(t){e.index.navigateTo({url:"/pagesHome/pages/CustomerSign/CustomerSign?item="+JSON.stringify(t)})}(t))),l:e.t((null==t?void 0:t.orderNumber)||0),m:e.o((n=>function(t){e.index.navigateTo({url:"/pagesHome/pages/SignDetailScan/SignDetailScan?item="+JSON.stringify(t)})}(t))),n:e.t((null==t?void 0:t.deliveryNumber)||0),o:e.t((null==t?void 0:t.signNub)||0),p:e.t((null==t?void 0:t.inventoryNub)||0)}))),p:e.o(s),q:e.o(a),r:e.o(u),s:e.o((t=>e.isRef(p)?p.value=t:null)),t:e.p({initStartDate:i.value[0],initEndDate:i.value[1],value:e.unref(p)})})}});wx.createPage(n);