(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/officialDocManagement/circulate"],{2059:function(t,e,n){"use strict";n.r(e);var i=n("b9e2"),o=n("d4c8");for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("b9c9");var c,u=n("f0c5"),a=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,"0ce4a2dc",null,!1,i["a"],c);e["default"]=a.exports},"74d9":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(){n.e("components/uni-popup").then(function(){return resolve(n("bf63"))}.bind(null,n)).catch(n.oe)},o={data:function(){return{pageList:[],documentListType:"",documentId:"",cardShowList:[],selectAllList:[],showPopupBottom:!1,isSelectAll:!1,readContent:"",personList:[]}},components:{uniPopup:i},methods:{getList:function(){var e=this;e.$request.$get("getDocumentPerson",{documentListType:this.documentListType,documentId:this.documentId}).then((function(n){n.ResultCode&&"100"==n.ResultCode?(e.pageList=n.Data.List,e.readContent=n.Data.SUGGESTION,e.personList=[],e.pageList.forEach((function(t,n){e.cardShowList[n]=!0,t.SELECTED=!1,e.selectAllList[n]=!1,e.personList[n]=[];var i=t.userList.filter((function(t){return t.SELECTED&&e.personList[n].push(t.USER_ID),1==t.SELECTED}));i.length==t.userList.length&&(e.selectAllList[n]=!0,t.SELECTED=!0)}))):e.pageList=[],t.hideLoading()}))},hidePopup:function(){this.showPopupBottom=!1},isShowCard:function(t){var e=this;e.cardShowList[t]=!e.cardShowList[t],e.$forceUpdate()},selectAll:function(t,e){var n=this,i=this.pageList[t].SELECTED=n.selectAllList[t]=e||!n.selectAllList[t];n.pageList[t].userList.forEach((function(t){t.SELECTED=i}))},checkboxChange:function(t,e){var n=t.detail.value;this.pageList[e].SELECTED=n.length==this.pageList[e].userList.length,this.personList[e]=n,this.$forceUpdate()},selectPage:function(){var t=this,e=this.isSelectAll=!this.isSelectAll;t.selectAllList.map((function(n,i){e!=n&&t.selectAll(i,e)}))},upReader:function(){var e=this,n=[];this.personList.forEach((function(t){n=n.concat(t)})),e.$request.$post("documentCirculate",{suggestion:this.readContent,readingIds:n.toString(),documentId:this.documentId}).then((function(n){"100"==n.ResultCode?(t.showToast({title:n.ResultDesc}),e.readContent="",setTimeout((function(){t.navigateBack({delta:1}),t.$emit("docCirculate",!0)}),1e3)):t.showToast({title:n.ResultDesc,icon:"none"})}))}},onUnload:function(){this.$util.addUserBehavior()},onLoad:function(e){t.showLoading({title:"正在加载"}),this.documentListType=e.type,this.documentId=e.id,this.getList()}};e.default=o}).call(this,n("543d")["default"])},b745:function(t,e,n){},b9c9:function(t,e,n){"use strict";var i=n("b745"),o=n.n(i);o.a},b9e2:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.showPopupBottom=!0},t.e1=function(e){t.showPopupBottom=!1})},s=[]},d4c8:function(t,e,n){"use strict";n.r(e);var i=n("74d9"),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},de09:function(t,e,n){"use strict";(function(t){n("40da");i(n("66fd"));var e=i(n("2059"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["de09","common/runtime","common/vendor"]]]);