pages-notify-content.ce5d0c0d.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-notify-content"],{"0e54":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */.oa-notice-detail .uni-timeline[data-v-0f314e4a]{padding:%?30?%;background-color:#fff}.oa-notice-detail .feedback-title[data-v-0f314e4a]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:%?20?%;margin-top:%?20?%;font-size:%?32?%}.oa-notice-detail .feedback-star-view.feedback-title[data-v-0f314e4a]{justify-content:flex-start;margin:0}.oa-notice-detail .feedback-quick[data-v-0f314e4a]{position:relative;padding-right:%?40?%}.oa-notice-detail .feedback-quick .iconfont[data-v-0f314e4a]{font-size:%?28?%}.oa-notice-detail .feedback-body[data-v-0f314e4a]{background:#fff;padding:%?10?% %?20?%}.oa-notice-detail .feedback-body .gender-item[data-v-0f314e4a]{margin-right:%?20?%}.oa-notice-detail .feedback-body .gender-item .gender-item-text[data-v-0f314e4a]{padding-left:%?10?%}.oa-notice-detail .feedback-body .gender-item uni-radio .wx-radio-input.wx-radio-input-checked[data-v-0f314e4a]{background:#fa436a;border-color:#fa436a}.oa-notice-detail .feedback-textare[data-v-0f314e4a]{height:%?200?%;font-size:%?34?%;line-height:%?50?%;width:100%;box-sizing:border-box;padding:%?20?% %?30?% 0}.oa-notice-detail .footer[data-v-0f314e4a]{position:fixed;left:0;bottom:0;z-index:98;width:100%;background-color:#fff;color:#606266;box-shadow:0 -1px 5px rgba(0,0,0,.1);display:flex;justify-content:flex-end;align-items:center;padding:%?15?% %?20?%}.oa-notice-detail .footer .action-btn[data-v-0f314e4a]{font-size:%?28?%;margin:0 0 0 %?15?%;padding:0 %?30?%;text-align:center;height:%?80?%;line-height:%?80?%}.oa-notice-detail .banner[data-v-0f314e4a]{overflow:hidden;position:relative;background-color:#ccc}.oa-notice-detail .banner .banner-img[data-v-0f314e4a]{height:%?300?%;width:100%}.oa-notice-detail .banner .banner-title[data-v-0f314e4a]{max-height:%?84?%;overflow:hidden;position:absolute;bottom:0;width:100%;font-size:%?32?%;font-weight:400;line-height:%?42?%;color:#fff;z-index:11;background-color:rgba(0,0,0,.25);padding:%?4?% %?20?%}.oa-notice-detail .banner-title[data-v-0f314e4a]{padding:%?30?% %?30?% 0;font-size:%?36?%}.oa-notice-detail .article-meta[data-v-0f314e4a]{padding:%?20?% %?40?%;display:flex;flex-direction:row;justify-content:flex-start;color:grey}.oa-notice-detail .article-meta .article-text[data-v-0f314e4a]{font-size:%?26?%;line-height:%?50?%;margin:0 %?20?%}.oa-notice-detail .article-meta .article-author[data-v-0f314e4a],\n.oa-notice-detail .article-meta .article-time[data-v-0f314e4a]{font-size:%?30?%}.oa-notice-detail .article-content[data-v-0f314e4a]{padding:0 %?30?%;overflow:hidden;font-size:%?30?%;margin-bottom:%?30?%}.oa-notice-detail .input-title[data-v-0f314e4a]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:%?20?%;margin-top:%?20?%;font-size:%?32?%}.oa-notice-detail .input-body[data-v-0f314e4a]{background:#fff;padding:%?10?% %?20?%}.oa-notice-detail .covers-title[data-v-0f314e4a]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:%?20?%;margin-top:%?20?%;font-size:%?32?%}.oa-notice-detail .covers-body[data-v-0f314e4a]{background:#fff;padding:%?10?% %?20?%}.oa-notice-detail .covers-body .gender-item[data-v-0f314e4a]{margin-right:%?20?%}.oa-notice-detail .covers-body .gender-item .gender-item-text[data-v-0f314e4a]{padding-left:%?10?%}.oa-notice-detail .covers-body .gender-item uni-radio .wx-radio-input.wx-radio-input-checked[data-v-0f314e4a]{background:#fa436a;border-color:#fa436a}.oa-notice-detail .covers-uploader[data-v-0f314e4a]{padding:%?22?% %?20?%;margin:%?22?% %?20?%}.oa-notice-detail .qianshou uni-view[data-v-0f314e4a]{line-height:2}.oa-notice-detail .qianshou .input-content[data-v-0f314e4a]{padding-left:%?18?%}.oa-notice-detail .qianshou .text2[data-v-0f314e4a]{margin-left:%?40?%}.oa-notice-detail .pop-item[data-v-0f314e4a]{margin:%?40?%}.oa-notice-detail .pop-item uni-view[data-v-0f314e4a]{line-height:2;margin:%?10?%;font-size:%?36?%;display:flex;flex-wrap:wrap;flex-direction:row;justify-content:space-between}.oa-notice-detail .pop-item uni-input[data-v-0f314e4a]{width:70%;border-bottom:1px solid #eaeaea}.btn[data-v-0f314e4a]{display:inline-block;vertical-align:middle;background:#f0f0f0 no-repeat 50%;border:1px solid #d0d0d0;width:24px;height:24px;border-radius:20px;box-shadow:0 1px hsla(0,0%,39.2%,.1);color:#666;transition:color .2s,background-color .2s}.btn[data-v-0f314e4a]:active{box-shadow:inset 0 1px hsla(0,0%,39.2%,.1)}.btn[data-v-0f314e4a]:hover{background-color:#e9e9e9;color:#333}.btn_plus[data-v-0f314e4a]{background-image:linear-gradient(0deg,currentColor,currentColor),linear-gradient(0deg,currentColor,currentColor);background-size:10px 2px,2px 10px}.btn_minus[data-v-0f314e4a]{background-image:linear-gradient(0deg,currentColor,currentColor);background-size:10px 2px;float:right;right:-9px;position:relative}',""]),t.exports=e},"151e":function(t,e,n){"use strict";n.r(e);var i=n("25a7"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"15da":function(t,e,n){"use strict";function i(t,e){var n="";n="warning"==t?"none":t,uni.showToast({icon:n,title:e})}n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.toastMsg=i},2184:function(t,e,n){"use strict";n.r(e);var i=n("976d"),a=n("151e");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("f864");var s,r=n("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"7256c79b",null,!1,i["a"],s);e["default"]=c.exports},"25a7":function(t,e,n){"use strict";(function(t){n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"popup-layer",model:{prop:"showPop",event:"change"},props:{showPop:{type:Boolean,default:!1},direction:{type:String,default:"top"},autoClose:{type:Boolean,default:!0}},data:function(){return{ifshow:!1,translateValue:-100,timer:null,iftoggle:!1}},computed:{_translate:function(){var t={top:"transform:translateY(".concat(-this.translateValue,"%)"),bottom:"transform:translateY(".concat(this.translateValue,"%)"),left:"transform:translateX(".concat(-this.translateValue,"%)"),right:"transform:translateX(".concat(this.translateValue,"%)")};return t[this.direction]},_location:function(){var t={top:"bottom:0px;width:100%;",bottom:"top:0px;width:100%;",left:"right:0px;height:100%;",right:"left:0px;height:100%;"};return t[this.direction]+this._translate}},mounted:function(){this.showPop&&this.show()},watch:{showPop:function(e){t("log",e," at components/popup-layer/popup-layer.vue:70"),e?this.show():this.close()}},methods:{stopMove:function(e){t("log",11," at components/popup-layer/popup-layer.vue:80"),t("log",e," at components/popup-layer/popup-layer.vue:81")},show:function(t){var e=this;this.ifshow=!0;setTimeout((function(){e.translateValue=0,null}),100),setTimeout((function(){e.iftoggle=!0,null}),300)},close:function(){var t=this;null===this.timer&&this.iftoggle&&(this.translateValue=-100,this.timer=setTimeout((function(){t.ifshow=!1,t.timer=null,t.iftoggle=!1,t.$emit("closeCallBack",null),t.$emit("change",!1)}),300))},ableClose:function(){this.autoClose&&this.close()},stopEvent:function(t){},doSome:function(){t("log",0x6527ea6c87c7," at components/popup-layer/popup-layer.vue:115")}}};e.default=i}).call(this,n("0de9")["log"])},"298b":function(t,e,n){"use strict";n.r(e);var i=n("791c"),a=n("4387");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("bdaf");var s,r=n("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"0f314e4a",null,!1,i["a"],s);e["default"]=c.exports},4387:function(t,e,n){"use strict";n.r(e);var i=n("a65b"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"791c":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={mpHtml:n("1026").default,popupLayer:n("2184").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"oa-notice-detail"},[n("v-uni-view",{staticClass:"covers-body covers-uploader oa-uploader"},[n("v-uni-view",[n("v-uni-view",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.content.title))]),n("v-uni-view",{staticClass:"input-title"},[n("mp-html",{attrs:{content:t.content.content}})],1)],1),t.file.length>0?n("v-uni-view",{staticClass:"input-title"},[n("v-uni-view",[t._v("附件:")]),n("v-uni-view",{staticClass:"uni-uploader"},t._l(t.file,(function(e,i){return n("v-uni-view",{key:i,staticClass:"uni-uploader-body"},[n("v-uni-view",{staticClass:"uni-uploader_files",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.showFile(e.path)}}},[[n("v-uni-view",{staticClass:"uni-uploader__file",staticStyle:{position:"relative"}},[t._v(t._s(e.name))])]],2)],1)})),1)],1):t._e()],1),n("v-uni-view",{staticClass:"covers-body covers-uploader oa-uploader"},[n("v-uni-view",{staticClass:"input-body"},[n("v-uni-view",{staticClass:"input-content"},[t._v("拟办意见:"),n("v-uni-text",[t._v(t._s(t.content.proposed))])],1),n("v-uni-view",{staticClass:"input-content"},[t._v("领导批示:"),n("v-uni-text",[t._v(t._s(t.content.roval))])],1),n("v-uni-view",{staticClass:"input-content"},[t._v("联系人:"),n("v-uni-text",[t._v(t._s(t.content.contactperson))])],1),n("v-uni-view",{staticClass:"input-content"},[t._v("电   话:"),n("v-uni-text",[t._v(t._s(t.content.contacttel))])],1),t.ismine?t._e():n("v-uni-view",{staticClass:"input-content"},[t._v("发送人:"),n("v-uni-text",[t._v(t._s(t.content.sendperson))])],1),t.ismine?t._e():n("v-uni-view",{staticClass:"input-content"},[t._v("发送时间:"),n("v-uni-text",[t._v(t._s(t.content.sendtime))])],1)],1)],1),t.ismine?n("v-uni-view",{staticClass:"covers-body covers-uploader oa-uploader"},[n("v-uni-view",{staticClass:"input-title"},[t._v("签收详情:")]),n("v-uni-view",{staticClass:"uni-timeline"},t._l(t.approveDetail,(function(e,i){return n("v-uni-view",{key:i,staticClass:"uni-timeline-item",class:["0"===e.recvstatus?"text-"+t.themeColor.name+" uni-timeline-first-item":"uni-timeline-last-item"]},[n("v-uni-view",{staticClass:"uni-timeline-item-content"},[n("v-uni-view",[t._v(t._s(e.recvperson)+" ----- "+t._s(t._f("qsstatus")(e.recvstatus)))]),null!=e.recvtime?n("v-uni-view",{staticClass:"datetime"},[t._v(t._s(t._f("time")(e.recvtime)))]):t._e()],1)],1)})),1)],1):t.qianshou?t._e():n("v-uni-view",{staticClass:"covers-body covers-uploader oa-uploader"},t._l(t.radioList,(function(e,i){return n("v-uni-view",{key:i},[n("v-uni-button",{staticClass:"action-btn",class:"text-"+t.themeColor.name,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleWorksOperation()}}},[t._v(t._s(e.value))])],1)})),1),n("popup-layer",{ref:"popupRef",attrs:{direction:"top"}},[n("v-uni-view",{staticClass:"zidingyiBox"},[n("v-uni-view",{staticClass:"input-title"},[n("v-uni-view",{staticClass:"input-content"},[t._v("请填写参会人员姓名以及电话:")]),n("v-uni-view",{staticClass:"input-content"},[n("a",{staticClass:"btn btn_plus",attrs:{role:"button",title:"增加"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addperson()}}})])],1),t._l(t.canhuiperson,(function(e,i){return n("v-uni-view",{key:i,staticClass:"pop-item"},[t.canhuiperson.length>1?n("a",{staticClass:"btn btn_minus",attrs:{role:"button",title:"减少"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.minusperson(e.id)}}}):t._e(),n("v-uni-view",[n("v-uni-text",[t._v("姓   名:")]),n("v-uni-input",{attrs:{placeholder:"请输入参会人员姓名"},model:{value:e.name,callback:function(n){t.$set(e,"name",n)},expression:"person.name"}})],1),n("v-uni-view",[n("v-uni-text",[t._v("手机号:")]),n("v-uni-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.phone,callback:function(n){t.$set(e,"phone",n)},expression:"person.phone"}})],1)],1)})),n("v-uni-view",[n("v-uni-button",{staticClass:"action-btn",class:"text-"+t.themeColor.name,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleWorksOperation()}}},[t._v("签收")])],1)],2)],1)],1)},o=[]},"976d":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.ifshow,expression:"ifshow"}],staticClass:"popup-layer",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.ableClose.apply(void 0,arguments)}}}),n("v-uni-view",{ref:"popRef",staticClass:"popup-content",style:t._location,on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stopEvent.apply(void 0,arguments)}}},[t._t("default")],2)],1)},o=[]},a65b:function(t,e,n){"use strict";(function(t){n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("ade3"));n("14d9"),n("e25e"),n("d3b7"),n("159b"),n("a434");var o,s=i(n("b424")),r=i(n("2184")),c=i(n("1026")),l=n("15da"),u=(o={components:{mpHtml:c.default},data:function(){return{id:"",content:{},contentFile:{},file:{},qianshou:!1,ismine:!1,approveDetail:[],radioList:[{value:"签收"}],canhuiperson:[{id:1,name:"",phone:""}],maxid:1,meetingNamePhome:""}}},(0,a.default)(o,"components",{popupLayer:r.default}),(0,a.default)(o,"filters",{time:function(t){var e=new Date(t);return(0,s.default)(e).format("YYYY-MM-DD HH:mm")},qsstatus:function(t){return"0"==t?"未签收":"已签收"}}),(0,a.default)(o,"onLoad",(function(t){this.id=t.id,"1"==t.qianshou?this.qianshou=!0:this.qianshou=!1,"true"==t.ismine&&(this.ismine=!0),this.initData()})),(0,a.default)(o,"methods",{initData:function(){this.getContent(),uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.themeColor.color,animation:{duration:400,timingFunc:"easeIn"}})},getContent:function(){var t=this,e=this.$mConfig.baseUrl+"/notify/"+this.id,n=this.$preToken+" "+this.$store.state.accessToken,i=this;this.$http.request({url:e,header:{"content-type":"application/json",Authorization:n}}).then((function(t){if("200"==t.code){i.content=t.data;var e=[];if(t.data.filename)var n=t.data.filename.substr(0,t.data.filename.length-1).split(",");else n=[];for(var a=0;a<n.length;a++)e.push({name:n[a],path:t.data.filepath.substr(0,t.data.filepath.length-1).split(",")[a]});i.file=e}})).then((function(e){if(i.ismine){var a=t.$mConfig.baseUrl+"/notify/recvDetail/"+i.id;t.$http.request({url:a,header:{"content-type":"application/json",Authorization:n}}).then((function(t){"200"==t.code&&(i.approveDetail=t.data)}))}else i.qianshou}))},addperson:function(){var t=parseInt(this.maxid)+1,e={id:parseInt(t),name:"",phone:""};this.canhuiperson.push(e),this.maxid=parseInt(this.maxid)+1},minusperson:function(e){t("log",e," at pages/notify/content.vue:247");var n=this;this.canhuiperson.forEach((function(t,i){t.id==e&&n.canhuiperson.splice(i,1)}))},showFile:function(e){var n=e.split(".")[1].toLocaleLowerCase(),i=this.$mConfig.baseUrl+e;if("jpg"==n||"jpeg"==n||"bmp"==n||"gif"==n||"png"==n){var a=[];a.push(i),uni.previewImage({urls:a})}else"doc"==n||"xls"==n||"ppt"==n||"pdf"==n||"docx"==n||"xlsx"==n||"pptx"==n?uni.downloadFile({url:i,success:function(e){var n=e.tempFilePath;uni.openDocument({filePath:n,success:function(e){t("log",e," at pages/notify/content.vue:273")}})}}):uni.downloadFile({url:i,success:function(t){if(200===t.statusCode){var e=t.tempFilePath;uni.saveFile({tempFilePath:e[0],success:function(t){var e=t.savedFilePath;(0,l.toastMsg)("success","已保存文件至:"+e)}})}}})},openDialog:function(){this.$refs.popupRef.show()},preHandleWorks:function(){var t=this;if(1==t.canhuiperson.length)return""==t.canhuiperson[0].name||""==t.canhuiperson[0].phone?((0,l.toastMsg)("warning","请填写参会人员姓名和手机号"),!1):(t.meetingNamePhome=t.canhuiperson[0].name+","+t.canhuiperson[0].phone+","+t.$mStore.state.user.dept.deptName,!0);for(var e=0;e<t.canhuiperson.length;e++){if(""==t.canhuiperson[e].name||""==t.canhuiperson[e].phone)return(0,l.toastMsg)("warning","请填写第"+(parseInt(e)+1)+"参会人员的姓名和手机号"),!1;t.meetingNamePhome+=t.canhuiperson[e].name+","+t.canhuiperson[e].phone+";"}return!0},handleWorksOperation:function(){var t=this.$mConfig.baseUrl+"/notify/receive",e=this.$preToken+" "+this.$store.state.accessToken,n=this;this.$http.request({url:t,method:"GET",header:{"content-type":"application/json",Authorization:e},params:{id:n.id,instructions:"同意"}}).then((function(t){"200"==t.code?((0,l.toastMsg)("success","签收成功"),n.qianshou=!0,n.$refs.popupRef.close(),n.getTabBarBadge()):(0,l.toastMsg)("warning","签收失败")}))}}),o);e.default=u}).call(this,n("0de9")["log"])},bdaf:function(t,e,n){"use strict";var i=n("c1c5"),a=n.n(i);a.a},c1c5:function(t,e,n){var i=n("0e54");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("6924d45a",i,!0,{sourceMap:!1,shadowMode:!1})},cbc2:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */.popup-layer[data-v-7256c79b]{position:fixed;z-index:999999;background:rgba(0,0,0,.3);height:100%;width:100%;top:0;left:0;overflow:hidden}.popup-content[data-v-7256c79b]{position:fixed;z-index:1000000;background:#fff;transition:all .3s ease;overflow:hidden}',""]),t.exports=e},e929:function(t,e,n){var i=n("cbc2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("a9b77c46",i,!0,{sourceMap:!1,shadowMode:!1})},f864:function(t,e,n){"use strict";var i=n("e929"),a=n.n(i);a.a}}]);