(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9afa31b0"],{a313:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"tjfx"},[a("el-breadcrumb",{attrs:{separator:"/"}},[a("el-breadcrumb-item",[t._v("审读管理")]),a("el-breadcrumb-item",[t._v("四封审读")]),a("el-breadcrumb-item",[t._v(t._s(t.data.name))])],1),a("div",{staticClass:"content"},[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("返回")]),t.text?a("h1",{staticClass:"sh_title",staticStyle:{margin:"10vh 0"}},[t._v(t._s(t.text))]):t._e(),t.data.id?a("h1",{staticClass:"sh_title"},[t._v(t._s(t.data.name))]):t._e(),t.data.id?a("el-row",{staticStyle:{padding:"10px"}},[a("el-col",{staticStyle:{background:"#f5f5f5",padding:"10px"},attrs:{span:6}},[t._v("\n 期刊名称: "+t._s(t.data.journal)),a("br"),a("br"),t._v("\n 期刊负责人: "+t._s(t.data.journaluser_realname)),a("br"),a("br"),t._v("\n 负责人电话:"+t._s(t.data.journaluser_phone)),a("br"),a("br"),a("b",[t._v("审读工作流程:")]),a("br"),a("br"),t.data.workflow_records?a("div",{style:"height:"+100*t.data.workflow_records.length+"px"},[a("el-timeline",t._l(t.data.workflow_records,(function(e,r){return a("el-timeline-item",{key:r,class:t.flow_index==r?"active":"",staticStyle:{cursor:"pointer"},attrs:{color:e.color,timestamp:e.ctime},nativeOn:{click:function(a){return t.step(e.record_id,r)}}},[t._v("\n "+t._s(e.desc)+"\n ")])})),1)],1):t._e()]),a("el-col",{staticClass:"wj",attrs:{span:18}},[t.data.post_status>0&&t.data.journal_fourface&&t.data.journal_fourface.length>0?a("div",[a("p",[t._v("\n "+t._s(t.data.journal)+"四封图片:   \n "),t.data.post_status>0?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.downloadFourFace(t.data)}}},[t._v("下载四封图片")]):t._e()],1),a("br"),t.data.journal_fourface?a("ul",t._l(t.data.journal_fourface,(function(e,r){return a("li",{key:r},[a("el-image",{staticStyle:{width:"100px"},attrs:{src:e,"preview-src-list":t.data.journal_fourface}}),a("br"),t._v("\n "+t._s(t.word[r])+"\n ")],1)})),0):t._e()]):a("div",[a("p",[t._v("上传期刊四封图片:")]),a("br"),a("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card","on-success":t.imageChange,"on-remove":function(e,a){return t.handleRemove(e,a)},"file-list":t.journal_fourface_list}},[a("i",{staticClass:"el-icon-plus"})])],1),a("temp",{ref:"temp",attrs:{show_record:t.show_record,show_head:!0,info:t.data},on:{post:t.post}})],1)],1):t._e()],1)],1)},o=[],s=(a("1bc78"),a("fc02"),a("78c3")),n={components:{temp:s["a"]},data:function(){return{text:"",active:0,title:"申请复检原因",word:["一","二","三","四"],open:!1,query:{record_id:-1},list:[],form:{name:""},progress:1,data:{},journal_fourface:[],journal_fourface_list:[],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(t){var e=this;this.$api.downloadFourFace({journal:t.journal,journal_fourface:t.journal_fourface}).then((function(t){var a=document.createElement("a"),r=new Blob([t.data],{type:"application/zip,charset=UTF-8"}),o=URL.createObjectURL(r),s=decodeURIComponent(t.headers["content-disposition"].split("=")[1]);console.log(s),a.download=s,a.style.display="none",a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),e.download_loading=!1}))},step:function(t,e){if(this.flow_index=e,this.query.record_id=t,this.getData(1),!this.data.workflow_records)return!1;var a=this.data.workflow_records.length-1;this.data.workflow_records[a].record_id==t?this.show_record=!1:this.show_record=!0},handleRemove:function(t,e){this.journal_fourface_list=e},imageChange:function(t){if(this.journal_fourface_list.length<10){var e=t.data.split("/").pop(),a=t.data;this.journal_fourface_list.push({name:e,url:a})}else this.$message.error("只能上传4张封面")},getData:function(t){var e=this;this.$api.getWorkflow(this.query).then((function(a){if(!a.data.data)return e.text="-暂无数据-",!1;e.data=a.data.data;var r=e.data.workflow_records;if(!t&&r&&(e.flow_index=r.length-1),r){r=e.data.workflow_records.reverse(),e.data.workflow_records=r;for(var o=0;o