(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9afa31b0"],{a313:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"tjfx"},[a("el-breadcrumb",{attrs:{separator:"/"}},[a("el-breadcrumb-item",[e._v("审读管理")]),a("el-breadcrumb-item",[e._v("四封审读")]),a("el-breadcrumb-item",[e._v(e._s(e.data.name))])],1),a("div",{staticClass:"content"},[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$router.go(-1)}}},[e._v("返回")]),e.text?a("h1",{staticClass:"sh_title",staticStyle:{margin:"10vh 0"}},[e._v(e._s(e.text))]):e._e(),e.data.id?a("h1",{staticClass:"sh_title"},[e._v(e._s(e.data.name))]):e._e(),e.data.id?a("el-row",{staticStyle:{padding:"10px"}},[a("el-col",{staticStyle:{background:"#f5f5f5",padding:"10px"},attrs:{span:6}},[e._v("\n 期刊名称: "+e._s(e.data.journal)),a("br"),a("br"),e._v("\n 期刊负责人: "+e._s(e.data.journaluser_realname)),a("br"),a("br"),e._v("\n 负责人电话:"+e._s(e.data.journaluser_phone)),a("br"),a("br"),a("b",[e._v("审读工作流程:")]),a("br"),a("br"),e.data.workflow_records?a("div",{style:"height:"+100*e.data.workflow_records.length+"px"},[a("el-timeline",e._l(e.data.workflow_records,(function(t,r){return a("el-timeline-item",{key:r,class:e.flow_index==r?"active":"",staticStyle:{cursor:"pointer"},attrs:{color:t.color,timestamp:t.ctime},nativeOn:{click:function(a){return e.step(t.record_id,r)}}},[e._v("\n "+e._s(t.desc)+"\n ")])})),1)],1):e._e()]),a("el-col",{staticClass:"wj",attrs:{span:18}},[e.data.journal_fourface.length>0?a("div",[a("p",[e._v("\n "+e._s(e.data.journal)+"四封图片:   \n "),e.data.post_status>0?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.downloadFourFace(e.data)}}},[e._v("下载四封图片")]):e._e()],1),a("br"),e.data.journal_fourface?a("ul",e._l(e.data.journal_fourface,(function(t,r){return a("li",{key:r},[a("el-image",{staticStyle:{width:"100px"},attrs:{src:t,"preview-src-list":e.data.journal_fourface}}),a("br"),e._v("\n "+e._s(e.word[r])+"\n ")],1)})),0):e._e()]):a("div",[a("p",[e._v("上传期刊四封图片:")]),a("br"),a("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card","on-success":e.imageChange,"on-remove":function(t,a){return e.handleRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus"})])],1),a("temp",{ref:"temp",attrs:{show_record:e.show_record,show_head:!0,info:e.data},on:{post:e.post}})],1)],1):e._e()],1)],1)},o=[],n=(a("fc02"),a("78c3")),s={components:{temp:n["a"]},data:function(){return{text:"",active:0,title:"申请复检原因",word:["一","二","三","四"],open:!1,query:{record_id:-1},list:[],form:{name:""},progress:1,data:{},journal_fourface:[],role:"",review_remark:"",review_attach:"",show_record:!1,flow_index:999,url:"https://tederen.oss-cn-shanghai.aliyuncs.com/Axure/zhongkeyuan/03_2021/sifengshendu_04_jb/images/%E9%A2%84%E8%A7%88%E5%B0%81%E5%9B%9B1/u2979.jpg",img_list:["https://tederen.oss-cn-shanghai.aliyuncs.com/Axure/zhongkeyuan/03_2021/sifengshendu_04_jb/images/%E9%A2%84%E8%A7%88%E5%B0%81%E5%9B%9B1/u2979.jpg"]}},methods:{downloadFourFace:function(e){var t=this;this.$api.downloadFourFace({journal:e.journal,journal_fourface:e.journal_fourface}).then((function(e){var a=document.createElement("a"),r=new Blob([e.data],{type:"application/zip,charset=UTF-8"}),o=URL.createObjectURL(r),n=decodeURIComponent(e.headers["content-disposition"].split("=")[1]);console.log(n),a.download=n,a.style.display="none",a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),t.download_loading=!1}))},step:function(e,t){if(this.flow_index=t,this.query.record_id=e,this.getData(1),!this.data.workflow_records)return!1;var a=this.data.workflow_records.length-1;this.data.workflow_records[a].record_id==e?this.show_record=!1:this.show_record=!0},handleRemove:function(e,t){for(var a=[],r=0;r0?e.journal_fourface=this.data.journal_fourface:e.journal_fourface=this.journal_fourface,e.journal_fourface.length<4&&1==this.role)return this.$message.error("请上传4张封面图片"),!1;this.$api.addWorkflow(e).then((function(e){0==e.data.code?(t.$message({message:"操作成功!",type:"success"}),t.$router.go(-1)):t.$message.error(e.data.message)}))}},mounted:function(){this.$route.query.id&&(this.query.id=this.$route.query.id,this.getData())},created:function(){this.role=localStorage.getItem("role")}},i=s,c=(a("a9ab"),a("5d22")),l=Object(c["a"])(i,r,o,!1,null,null,null);t["default"]=l.exports},a9ab:function(e,t,a){"use strict";a("c8a8")},c8a8:function(e,t,a){}}]); //# sourceMappingURL=chunk-9afa31b0.4b1bb66e.js.map