(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/officialDocManagement/detail"],{"2e25":function(e,t,n){"use strict";(function(e){n("40da");r(n("66fd"));var t=r(n("9464"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"65e3":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("2f62");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){n.e("components/filesComponent/fileUnit").then(function(){return resolve(n("18af"))}.bind(null,n)).catch(n.oe)},u={data:function(){return{baseData:{},documentListType:1e3,isShow:!1,isRead:!0,FileList:[],refresh:0,moreReader:!0}},components:{fileUnit:c},computed:a({},(0,r.mapGetters)({users:"getUser"})),methods:{getDetail:function(t){var n=this,r=this;r.$request.get({action_type:"getDocumentDetails",documentListType:this.documentListType,documentId:t.id}).then((function(i){"100"==i.ResultCode&&(n.isShow=!0),e.hideLoading(),r.baseData=i.Data,r.baseData.fixedFileList.map((function(e){var t=e.IMAGE_DESC.split(".");e.type=t[t.length-1],e.name=e.IMAGE_DESC,e.path=e.IMAGE_PATH})),0==t.isread&&n.rememberReader()}))},getDealTime:function(e){return e<1?"1小时内":e>1&&e<24?parseInt(e)+"小时内":e>24?parseInt(e/24)+"天内":parseInt(e)+"小时内"},rememberReader:function(e){var t=this;t.$request.post({action_type:"InserDocumentReading",documentId:t.baseData.DOCUMENT_ID,documentName:e||"",readingType:1e3})}},onUnload:function(){this.$util.addUserBehavior(),0!=this.isRead&&1!=this.refresh||e.$emit("needrefresh",!0),e.$off("docCirculate")},onLoad:function(t){e.showLoading({title:"正在加载"}),this.documentListType=t.type,this.isRead=t.isread,this.getDetail(t);var n=this;e.$on("docCirculate",(function(t){t&&(e.showLoading({title:"正在加载"}),n.refresh=1,n.getDetail({id:n.baseData.DOCUMENT_ID}))}))},onShow:function(){},onHide:function(){}};t.default=u}).call(this,n("543d")["default"])},9464:function(e,t,n){"use strict";n.r(t);var r=n("cbef"),i=n("c303");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("f54b");var o,c=n("f0c5"),u=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"638c8af8",null,!1,r["a"],o);t["default"]=u.exports},"9c3a":function(e,t,n){},c303:function(e,t,n){"use strict";n.r(t);var r=n("65e3"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},cbef:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.isShow&&e.baseData.readingList.length>0?e.__map(e.baseData.readingList,(function(t,n){var r=e.__get_orig(t),i=t.PRESCRIPTION?e.getDealTime(t.PRESCRIPTION):null,a=t.PRESCRIPTION&&t.PREVIEWDATE?e.$util.cutDate(t.PREVIEWDATE,"MM-DD hh:mm"):null;return{$orig:r,m0:i,g0:a}})):null);e._isMounted||(e.e0=function(t){e.moreReader=!e.moreReader}),e.$mp.data=Object.assign({},{$root:{l0:n}})},a=[]},f54b:function(e,t,n){"use strict";var r=n("9c3a"),i=n.n(r);i.a}},[["2e25","common/runtime","common/vendor"]]]);