(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/officialDocManagement/readerList"],{"3f7b":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.pageList.length>0?t.__map(t.pageList,(function(e,n){var a=t.__get_orig(e),i=e.PRESCRIPTION?t.getDealTime(e.PRESCRIPTION):null,o=e.PRESCRIPTION&&e.PREVIEWDATE?t.$util.cutDate(e.PREVIEWDATE,"MM-DD hh:mm"):null,u=t.__map(e.childList,(function(e,n){var a=t.__get_orig(e),i=e.PREVIEWDATE?t.getDealTime(e.PRESCRIPTION):null,o=e.PREVIEWDATE?t.$util.cutDate(e.PREVIEWDATE,"MM-DD hh:mm"):null,u=t.__map(e.detilsList,(function(e,n){var a=t.__get_orig(e),i=e.PREVIEWDATE?t.getDealTime(e.PRESCRIPTION):null,o=e.PREVIEWDATE?t.$util.cutDate(e.PREVIEWDATE,"MM-DD hh:mm"):null;return{$orig:a,m2:i,g2:o}}));return{$orig:a,m1:i,g1:o,l0:u}}));return{$orig:a,m0:i,g0:o,l1:u}})):null);t.$mp.data=Object.assign({},{$root:{l2:n}})},o=[]},4892:function(t,e,n){"use strict";n.r(e);var a=n("3f7b"),i=n("6e31");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("e275");var u,s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"7e3549b0",null,!1,a["a"],u);e["default"]=r.exports},6436:function(t,e,n){},"6e31":function(t,e,n){"use strict";n.r(e);var a=n("fefb"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},ad69:function(t,e,n){"use strict";(function(t){n("40da");a(n("66fd"));var e=a(n("4892"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},e275:function(t,e,n){"use strict";var a=n("6436"),i=n.n(a);i.a},fefb:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=function(){n.e("pages/officialDocManagement/components/listUnit").then(function(){return resolve(n("2864"))}.bind(null,n)).catch(n.oe)},i={data:function(){return{pageData:{pageIndex:1,pageSize:10,sendPageIndex:1,sendPageSize:10,isEnd:!1,isLoading:!0},documentId:"",documentListType:"",currentTab:0,pageList:[]}},components:{ListUnit:a},onLoad:function(e){t.showLoading({title:"正在加载"}),this.documentListType=e.type,this.documentId=e.id,this.pageData.isLoading=!0,this.getList()},methods:{getDealTime:function(t){return t<1?"1小时内":t>1&&t<24?parseInt(t)+"小时内":t>24?parseInt(t/24)+"天内":parseInt(t)+"小时内"},getList:function(){var e=this,n=this;n.$request.$get("getReadingDetails",{pageIndex:this.pageData.pageIndex,pageSize:this.pageData.pageSize,documentListType:this.documentListType,documentId:this.documentId}).then((function(a){if(a.ResultCode&&"100"==a.ResultCode){var i=a.Data.List;i.length>0&&(1==e.pageData.pageIndex?n.pageList=i:n.pageList=n.pageList.concat(i)),i.length<n.pageData.pageSize&&(n.pageData.isEnd=!0),n.$forceUpdate()}else n.pageList=[];t.hideLoading(),setTimeout((function(){n.pageData.isLoading=!1}),500)}))},loadMore:function(){this.pageData.isEnd||(this.pageData.pageIndex+=1,this.getList())},downFresh:function(){var t=this;t.pageMsg.pageIndex=1,t.getList(),t.$forceUpdate()}},onPullDownRefresh:function(){t.showLoading({title:"正在加载"}),this.pageData.pageIndex=1,this.pageData.isEnd=!1,this.getList(),setTimeout((function(){t.stopPullDownRefresh()}),1e3)},onReachBottom:function(){this.loadMore()},onUnload:function(){this.$util.addUserBehavior()}};e.default=i}).call(this,n("543d")["default"])}},[["ad69","common/runtime","common/vendor"]]]);