text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-app-delivery-index"],{"2c5d":function(t,e,i){var a=i("6110");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("9e032e02",a,!0,{sourceMap:!1,shadowMode:!1})},3385:function(t,e,i){function a(t){if("number"!==typeof t||t<0)return t;var e=parseInt(t/3600);t%=3600;var i=parseInt(t/60);t%=60;var a=t;return[e,i,a].map((function(t){return t=t.toString(),t[1]?t:"0"+t})).join(":")}function n(t,e){return"string"===typeof t&&"string"===typeof e&&(t=parseFloat(t),e=parseFloat(e)),t=t.toFixed(2),e=e.toFixed(2),{longitude:t.toString().split("."),latitude:e.toString().split(".")}}i("a15b"),i("d81d"),i("b680"),i("d3b7"),i("acd8"),i("e25e"),i("ac1f"),i("25f0"),i("1276");var s={UNITS:{"年":315576e5,"月":26298e5,"天":864e5,"小时":36e5,"分钟":6e4,"秒":1e3},humanize:function(t){var e="";for(var i in this.UNITS)if(t>=this.UNITS[i]){e=Math.floor(t/this.UNITS[i])+i+"前";break}return e||"刚刚"},format:function(t){var e=this.parse(t),i=Date.now()-e.getTime();if(i<this.UNITS["天"])return this.humanize(i);var a=function(t){return t<10?"0"+t:t};return e.getFullYear()+"/"+a(e.getMonth()+1)+"/"+a(e.getDate())+"-"+a(e.getHours())+":"+a(e.getMinutes())},parse:function(t){var e=t.split(/[^0-9]/);return new Date(e[0],e[1]-1,e[2],e[3],e[4],e[5])},formatDate:function(t){function e(t){return t<10?"0"+t:t}t=1e3*parseInt(t);var i=new Date(t),a=i.getFullYear(),n=i.getMonth()+1,s=i.getDate(),o=i.getHours(),r=i.getMinutes();i.getSeconds();return a+"-"+e(n)+"-"+e(s)+" "+e(o)+":"+e(r)}};t.exports={formatTime:a,formatLocation:n,dateUtils:s}},4434:function(t,e,i){"use strict";i.r(e);var a=i("5fa3"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"5fa3":function(t,e,i){"use strict";var a=i("ee27");i("99af"),i("ac1f"),i("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("1913")),s=i("3385"),o={components:{uniLoadMore:n.default},data:function(){return{tabIndex:0,listTop:103,tabBars:[{name:"审核中",id:"flow.todo",page:1,data:[],status:"more",contentText:{contentdown:"上拉加载更多",contentrefresh:"加载中",contentnomore:"没有更多"}},{name:"已生效",id:"flow.done",page:1,data:[],status:"more",contentText:{contentdown:"上拉加载更多",contentrefresh:"加载中",contentnomore:"没有更多"}}],reload:!1}},onLoad:function(){var t=this;t.getList(0)},mounted:function(){var t=this;uni.createSelectorQuery().in(this).select("#header").boundingClientRect((function(e){t.listTop=e.height-1})).exec()},onPullDownRefresh:function(){var t=this;t.reload=!0;var e=t.tabBars[t.tabIndex];e.page=1,e.status="more",t.getList(t.tabIndex)},onReachBottom:function(){var t=this,e=t.tabBars[t.tabIndex];"noMore"!=e.status&&(e.status="more",this.getList(t.tabIndex))},methods:{ontabtap:function(t){var e=this;e.tabIndex=t,this.switchTab(t)},switchTab:function(t){var e=this,i=e.tabBars[t];0==i.data.length&&e.getList(t)},htmlClear:function(t){return t.replace(/<[^>]+>/g,"")},formatDate:function(t){return s.dateUtils.formatDate(t)},getList:function(t){var e=this,i=e.tabBars[t];"noMore"!=i.status?e.$api.post("stock/delivery/count",{by:i.id,page:i.page}).then((function(t){e.reload&&(i.data=[],e.reload=!1,uni.stopPullDownRefresh()),i.data=i.data.concat(t.data),t.current_page>=t.last_page?i.status="noMore":i.page=t.current_page+1})).catch((function(t){})):e.reload&&(e.reload=!1,uni.stopPullDownRefresh())},goDetail:function(t){uni.navigateTo({url:"/pages/webview?title=发货详情&url="+encodeURIComponent("stock/delivery/show?id="+t.master_id)})}}};e.default=o},6110:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"uni-page-body[data-v-24ee143a]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;background:#f9f9f9}.header[data-v-24ee143a]{position:fixed;top:0;right:0;left:0;z-index:100;background:#fff;width:100vw}.uni-list-controller[data-v-24ee143a]{margin-top:103px;width:100vw}.uni-media-list-logo[data-v-24ee143a]{width:%?140?%;height:%?140?%}.uni-media-list-body[data-v-24ee143a]{height:auto;-webkit-justify-content:space-around;justify-content:space-around}.uni-media-list-text-top[data-v-24ee143a]{font-size:%?28?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.uni-media-list-text-bottom[data-v-24ee143a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding-top:%?15?%}.tabs[data-v-24ee143a]{-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;overflow:hidden;background-color:#fff;height:100vh}.scroll-h[data-v-24ee143a]{width:%?750?%;height:%?80?%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;white-space:nowrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid #c8c7cc}.line-h[data-v-24ee143a]{height:%?1?%;background-color:#ccc}.uni-tab-item[data-v-24ee143a]{display:inline-block;\r\n\t\t/*\r\n        padding-left: 70rpx;\r\n        padding-right: 70rpx;\r\n\t\t*/text-align:center;width:50%}.uni-tab-item-title[data-v-24ee143a]{color:#555;font-size:%?30?%;height:%?80?%;line-height:%?80?%;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;white-space:nowrap}.uni-tab-item-title-active[data-v-24ee143a]{color:#007aff}.swiper-box[data-v-24ee143a]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:50vh}.swiper-item[data-v-24ee143a]{-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.scroll-v[data-v-24ee143a]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:%?750?%}.search-controller[data-v-24ee143a]{padding:%?10?%}.search-result[data-v-24ee143a]{margin-top:10px;margin-bottom:20px;text-align:center}.search-result-text[data-v-24ee143a]{text-align:center;font-size:14px}body.?%PAGE?%[data-v-24ee143a]{background:#f9f9f9}",""]),t.exports=e},a7c6:function(t,e,i){"use strict";var a=i("2c5d"),n=i.n(a);n.a},c549:function(t,e,i){"use strict";var a={uniSearchBar:i("4eed").default,uniLoadMore:i("1913").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"header",attrs:{id:"header"}},[i("v-uni-scroll-view",{staticClass:"scroll-h",attrs:{id:"tab-bar","scroll-x":!0,"show-scrollbar":!1}},t._l(t.tabBars,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-tab-item",attrs:{id:e.id},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.ontabtap(a)}}},[i("v-uni-text",{staticClass:"uni-tab-item-title",class:t.tabIndex==a?"uni-tab-item-title-active":""},[t._v(t._s(e.name))])],1)})),1),i("v-uni-view",{staticClass:"search-controller"},[i("uni-search-bar",{attrs:{radius:"50",placeholder:"搜索单号"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.search.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"line-h"})],1),i("v-uni-view",{staticClass:"uni-list uni-list-controller",style:"margin-top:"+t.listTop+"px;"},t._l(t.tabBars[t.tabIndex].data,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-list-cell",attrs:{"hover-class":"uni-list-cell-hover"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetail(e)}}},[i("v-uni-view",{staticClass:"uni-media-list"},[i("v-uni-view",{staticClass:"uni-media-list-body"},[i("v-uni-view",{staticClass:"uni-media-list-text-top"},[i("v-uni-text",[t._v(t._s(e.master_sn))]),i("v-uni-text",[t._v(t._s(t.htmlClear(e.master_status)))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v(t._s(e.master_customer_id_name))]),i("v-uni-text",{staticClass:"desc"},[t._v(t._s(e.master_invoice_dt))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("预计到货日期："+t._s(e.master_invoice_dt))]),i("v-uni-text",{staticClass:"desc"},[t._v("实发数量："+t._s(e.total_quantity))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("收货地址："+t._s(e.master_warehouse_address))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("物流公司："+t._s(e.master_freight_logistics_id_name))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("物流电话："+t._s(e.master_freight_logistics_phone))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("运输单号："+t._s(e.master_freight_sn))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("配件吨位(T)："+t._s(e.master_freight_part_weight))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("发运方式："+t._s(e.master_freight_type_name))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("承担运费："+t._s(e.master_freight_customer_money))])],1),i("v-uni-view",{staticClass:"uni-media-list-text-bottom"},[i("v-uni-text",{staticClass:"desc"},[t._v("物流备注："+t._s(e.master_freight_remark))])],1)],1)],1)],1)})),1),i("uni-load-more",{attrs:{status:t.tabBars[t.tabIndex].status,"icon-size":16,"content-text":t.tabBars[t.tabIndex].contentText}})],1)},s=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}))},fdfa:function(t,e,i){"use strict";i.r(e);var a=i("c549"),n=i("4434");for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("a7c6");var o,r=i("f0c5"),l=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"24ee143a",null,!1,a["a"],o);e["default"]=l.exports}}]);