chunk-0122a332.e52d9936.js 11 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0122a332"],{"129d":function(e,t,a){"use strict";a("a210")},2391:function(e,t,a){"use strict";a("3f93")},"27cd":function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"person"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:21}},[a("p",{staticClass:"title"},[e._v("专家库")]),a("el-input",{attrs:{placeholder:"搜索","suffix-icon":"el-icon-search"},on:{input:e.getData},model:{value:e.query.realname,callback:function(t){e.$set(e.query,"realname",t)},expression:"query.realname"}}),a("ul",{staticClass:"people"},e._l(e.list,(function(t,l){return a("li",{key:l,on:{click:function(a){t.checked=!t.checked,e.id=t.id}}},[e._v("\n "+e._s(t.realname)+" "),a("span"),"examiner_leader"==e.cur?a("el-radio",{attrs:{label:t.id},model:{value:e.id,callback:function(t){e.id=t},expression:"id"}},[e._v(" ")]):a("el-checkbox",{model:{value:t.checked,callback:function(a){e.$set(t,"checked",a)},expression:"item.checked"}})],1)})),0)],1),a("el-col",{attrs:{span:3}})],1)],1)},s=[],i={props:{type:"",cur:""},data:function(){return{search:"",query:{realname:""},checked:"",list:[],id:""}},watch:{type:function(e){this.id="",this.getData()},cur:function(e){this.id="",this.getData()}},methods:{getData:function(){var e=this;1==this.type?this.$api.searchExamineList(this.query).then((function(t){for(var a=t.data.data,l=0;l<a.length;l++)a[l].checked=!1;e.list=a})):this.$api.receiverList(this.query).then((function(t){for(var a=t.data.data,l=0;l<a.length;l++)a[l].checked=!1;e.list=a}))},submitForm:function(){for(var e,t=this.list,a=[],l=[],s=0;s<t.length;s++)t[s].checked&&(a.push(t[s].id),l.push(t[s].realname)),t[s].id==this.id&&(e=t[s].realname);return"examiner_leader"==this.cur?{id:String(this.id),name:e}:{id:a.join(","),name:l.join(",")}}},created:function(){this.getData()}},n=i,r=(a("f5bc"),a("5d22")),o=Object(r["a"])(n,l,s,!1,null,null,null);t["a"]=o.exports},"2f9b":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"sf"},[a("el-breadcrumb",{attrs:{separator:"/"}},[a("el-breadcrumb-item",[e._v("审读管理")]),a("el-breadcrumb-item",{attrs:{to:{path:"/assignment"}}},[e._v("四封审读分配")]),a("el-breadcrumb-item",[e._v("分配列表")])],1),a("div",{staticClass:"content"},[a("el-tabs",{on:{"tab-click":e.getData},model:{value:e.query.assign_status,callback:function(t){e.$set(e.query,"assign_status",t)},expression:"query.assign_status"}},[a("el-tab-pane",{attrs:{label:"全部",name:"0"}}),a("el-tab-pane",{attrs:{label:"未分配",name:"1"}}),a("el-tab-pane",{attrs:{label:"已分配",name:"2"}})],1),a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入"},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}},[a("el-select",{staticStyle:{width:"90px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.query.type,callback:function(t){e.$set(e.query,"type",t)},expression:"query.type"}},[a("el-option",{attrs:{label:"标题",value:"name"}}),a("el-option",{attrs:{label:"期刊名称",value:"journal"}}),a("el-option",{attrs:{label:"所属机构",value:"journal_organizer"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},slot:"append"})],1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"80px"},attrs:{clearable:"",placeholder:"语种"},model:{value:e.query.languages,callback:function(t){e.$set(e.query,"languages",t)},expression:"query.languages"}},[a("el-option",{attrs:{label:"中文",value:"中文"}}),a("el-option",{attrs:{label:"英文",value:"英文"}}),a("el-option",{attrs:{label:"中英文",value:"中英文"}})],1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"填报状态"},model:{value:e.query.post_status,callback:function(t){e.$set(e.query,"post_status",t)},expression:"query.post_status"}},[a("el-option",{attrs:{label:"未填报",value:0}}),a("el-option",{attrs:{label:"已填报",value:1}}),a("el-option",{attrs:{label:"已完成",value:2}}),a("el-option",{attrs:{label:"待复检",value:3}}),a("el-option",{attrs:{label:"复审完成",value:4}}),a("el-option",{attrs:{label:"已退回",value:5}})],1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"任务分配"},model:{value:e.query.assign_user_id,callback:function(t){e.$set(e.query,"assign_user_id",t)},expression:"query.assign_user_id"}},[a("el-option",{attrs:{label:"未分配",value:""}}),e._l(e.expert_list,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realname,value:e.id}})}))],2)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getData}},[e._v("搜索")])],1),e.ids.length>0?a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"info"},on:{click:function(t){e.ids=[]}}},[e._v("取消")]),a("el-button",{attrs:{type:"success"},on:{click:function(t){e.open=!0,e.title="批量分配"}}},[e._v("批量分配")])],1):e._e()],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,height:"59vh"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",label:"全选",width:"55"}}),a("el-table-column",{attrs:{align:"center",width:"200",label:"标题",prop:"journal"}}),a("el-table-column",{attrs:{align:"center",width:"200",label:"期刊单位",prop:"journal_organizer"}}),a("el-table-column",{attrs:{align:"center",label:"语种",prop:""}}),a("el-table-column",{attrs:{align:"center",label:"主办单位",prop:""}}),a("el-table-column",{attrs:{align:"center",label:"编辑部负责人",width:"150",prop:"journaluser_realname"}}),a("el-table-column",{attrs:{align:"center",label:"状态",prop:""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.post_status?a("el-tag",{attrs:{type:"info"}},[e._v("未填报")]):e._e(),1==t.row.post_status?a("el-tag",{attrs:{type:"info"}},[e._v("已填报")]):e._e(),2==t.row.post_status||4==t.row.post_status?a("el-tag",{attrs:{type:"success"}},[e._v("已完成")]):e._e(),5==t.row.post_status?a("el-tag",{attrs:{type:"info"}},[e._v("已退回")]):e._e(),3==t.row.post_status?a("el-tag",{attrs:{type:"warning"}},[e._v("待复检")]):e._e()]}}])}),a("el-table-column",{attrs:{align:"center",width:"200",label:"填报时间",prop:"ctime"}}),a("el-table-column",{attrs:{label:"任务分配",width:"230",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择"},on:{change:function(a){return e.assign(t.row)}},model:{value:t.row.assign_user_id,callback:function(a){e.$set(t.row,"assign_user_id",a)},expression:"scope.row.assign_user_id"}},e._l(e.expert_list,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realname,value:e.id}})})),1)]}}])}),a("el-table-column",{attrs:{label:"操作",width:"150",fixed:"right",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.$router.push({path:"/leader/detail",query:{id:t.row.id}})}}},[e._v("查看")]),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.urg}},[e._v("催办")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:e.query.page,page_size:e.query.page_size,total:e.total},on:{pageChange:e.gopage}})],1),a("el-dialog",{attrs:{"close-on-click-modal":!1,title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择专家"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.assign_user_id,callback:function(t){e.assign_user_id=t},expression:"assign_user_id"}},e._l(e.expert_list,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realname,value:e.id}})})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,visible:e.open1,width:"800px"},on:{"update:visible":function(t){e.open1=t}}},[a("person"),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.open1=!1}}},[e._v("确 定")])],1)],1)],1)},s=[],i=a("9973"),n=a("27cd"),r={components:{person:n["a"],Page:i["a"]},data:function(){return{assign_user_id:"",loading:!1,activeName:0,total:0,query:{page:1,page_size:10,type:"name"},form:{},list:[{}],open:!1,open1:!1,title:"批量分配",rules:{name:[{required:!0,message:"标题不能为空",trigger:"blur"}]},expert_list:[],isall:0,ids:[]}},methods:{gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},handleSelectionChange:function(e){this.ids=e,console.log(e)},urg:function(){this.$confirm("催办后将向用户绑定的手机号发送一条短信提醒,确认催办?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){}))},submitForm:function(){if(this.assign_user_id){for(var e=[],t=0;t<this.ids.length;t++)e.push(this.ids[t].id);e=e.join(","),this.assign(null,e)}else this.$message.error("请选择分配的专家")},assign:function(e,t){var a=this,l={isall:this.isall};e?(l.assign_user_id=e.assign_user_id,l.id=e.id):(l.assign_user_id=this.assign_user_id,l.id=t),this.$api.assignWorkflow(l).then((function(e){0==e.data.code?(a.$message({message:"分配成功!",type:"success"}),a.getData(),a.open=!1):a.$message.error(e.data.message)}))},getData:function(){var e=this;this.loading=!0,this.$api.getWorkflowassignList(this.query).then((function(t){if(e.loading=!1,0==t.data.code){var a=t.data.data.list;e.total=t.data.data.total,e.list=a}else e.$message.error(t.data.message)}))},handleClick:function(){}},created:function(){var e=this,t=this.$route.query.id;this.$route.query.status&&(this.query.post_status=this.$route.query.status),this.$route.query.id&&(this.query.worksheet_id=t),this.getData(),this.$api.searchExamineList().then((function(t){e.expert_list=t.data.data}))}},o=r,u=(a("2391"),a("5d22")),c=Object(u["a"])(o,l,s,!1,null,null,null);t["default"]=c.exports},"3f93":function(e,t,a){},9973:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-pagination",{attrs:{background:"","page-size":e.page_size?e.page_size:20,"current-page":e.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},s=[],i={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},n=i,r=(a("129d"),a("5d22")),o=Object(r["a"])(n,l,s,!1,null,null,null);t["a"]=o.exports},a210:function(e,t,a){},af18:function(e,t,a){},f5bc:function(e,t,a){"use strict";a("af18")}}]);
  2. //# sourceMappingURL=chunk-0122a332.e52d9936.js.map