chunk-65e3cb02.98b48637.js 18 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65e3cb02"],{"0353":function(e,t,a){"use strict";var i=a("6bf8"),n=RegExp.prototype.exec,s=String.prototype.replace,r=n,l="lastIndex",o=function(){var e=/a/,t=/b*/g;return n.call(e,"a"),n.call(t,"a"),0!==e[l]||0!==t[l]}(),c=void 0!==/()??/.exec("")[1],u=o||c;u&&(r=function(e){var t,a,r,u,p=this;return c&&(a=new RegExp("^"+p.source+"$(?!\\s)",i.call(p))),o&&(t=p[l]),r=n.call(p,e),o&&r&&(p[l]=p.global?r.index+r[0].length:t),c&&r&&r.length>1&&s.call(r[0],a,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(r[u]=void 0)})),r}),e.exports=r},"129d":function(e,t,a){"use strict";a("a210")},1663:function(e,t,a){var i=a("212e"),n=a("3ab0");e.exports=function(e){return function(t,a){var s,r,l=String(n(t)),o=i(a),c=l.length;return o<0||o>=c?e?"":void 0:(s=l.charCodeAt(o),s<55296||s>56319||o+1===c||(r=l.charCodeAt(o+1))<56320||r>57343?e?l.charAt(o):s:e?l.slice(o,o+2):r-56320+(s-55296<<10)+65536)}}},2391:function(e,t,a){"use strict";a("3f93")},"27cd":function(e,t,a){"use strict";var i=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:12}},["examiner_leader"!=e.cur?a("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"info"},on:{click:e.all}},[e._v("全选")]):e._e(),"examiner"==e.cur?a("p",{staticClass:"title"},[e._v("专家库")]):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,i){return a("li",{key:i,on:{click:function(a){t.checked=!t.checked,e.id=t.id,e.change()}}},[t.avatar?a("img",{attrs:{src:t.avatar,alt:""}}):e._e(),t.realname?a("font",[e._v(e._s(t.realname))]):a("font",[e._v(e._s(t.name))]),t.college?a("span",[e._v(e._s(t.college))]):e._e(),t.journal?a("span",[e._v(e._s(t.journal))]):e._e(),"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),"examiner_leader"!=e.cur?a("el-col",{attrs:{span:12}},[a("p",{staticClass:"title",staticStyle:{"margin-bottom":"50px"}},[e._v("已选 \n "),e.ids.length>0?a("span",[e._v("("+e._s(e.ids.length)+")")]):e._e(),a("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"info"},on:{click:e.clear}},[e._v("清除")])],1),a("ul",{staticClass:"people"},[e._l(e.list,(function(t,i){return[t.checked?a("li",{key:i},[t.avatar?a("img",{attrs:{src:t.avatar,alt:""}}):e._e(),t.realname?a("font",[e._v(e._s(t.realname))]):a("font",[e._v(e._s(t.name))]),t.college?a("span",[e._v(e._s(t.college))]):e._e(),t.journal?a("span",[e._v(e._s(t.journal))]):e._e(),a("i",{staticClass:"el-icon-error",on:{click:function(e){t.checked=!1}}})],1):e._e()]}))],2)]):e._e()],1)],1)},n=[],s=(a("fc02"),{props:{type:"",cur:"",cur_data:""},data:function(){return{search:"",query:{realname:""},checked:"",list:[],id:4,ids:[]}},watch:{type:function(e){this.id="",this.ids=[],this.getData()},cur:function(e){this.id="",this.ids=[],this.getData()},cur_data:function(e){e&&(console.log(e),"examiner_leader"==this.cur?this.id=parseInt(e):this.ids=e.split(","),this.getData())}},methods:{getData:function(){var e=this;1==this.type?this.$api.searchExamineList(this.query).then((function(t){var a=t.data.data;a=a||[];for(var i=0;i<a.length;i++)e.ids&&e.ids.indexOf(String(a[i].id))>=0?a[i].checked=!0:a[i].checked=!1;e.list=a})):this.$api.receiverList(this.query).then((function(t){var a=t.data.data;a=a||[];for(var i=0;i<a.length;i++)e.ids&&e.ids.indexOf(String(a[i].id))>=0?a[i].checked=!0:a[i].checked=!1;e.list=a}))},change:function(){for(var e=[],t=this.list,a=0;a<t.length;a++)t[a].checked&&e.push(String(t[a].id));this.ids=e},all:function(){for(var e=this.list,t=0;t<e.length;t++)this.$set(e[t],"checked",!0);this.list=e},clear:function(){for(var e=this.list,t=0;t<e.length;t++)this.$set(e[t],"checked",!1);this.list=e},submitForm:function(){for(var e,t=this.list,a=[],i=[],n=0;n<t.length;n++)t[n].checked&&(a.push(t[n].id),i.push(t[n].realname)),t[n].id==this.id&&(e=t[n].realname);return"examiner_leader"==this.cur?{id:String(this.id),name:e}:{id:a.join(","),name:i.join(",")}}},created:function(){this.cur_data&&this.cur_data.length>0&&("examiner_leader"==this.cur?this.id=parseInt(this.cur_data):this.ids=this.cur_data.split(",")),this.getData()}}),r=s,l=(a("f5bc"),a("5d22")),o=Object(l["a"])(r,i,n,!1,null,null,null);t["a"]=o.exports},"2f9b":function(e,t,a){"use strict";a.r(t);var i=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",{nativeOn:{click:function(t){return e.$router.go(-1)}}},[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:"150px"},attrs:{slot:"prepend",placeholder:"请选择",clearable:""},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:""}}),a("el-option",{attrs:{label:"期刊名称",value:"journal"}}),a("el-option",{attrs:{label:"主办单位",value:"journal_organizer"}}),a("el-option",{attrs:{label:"编辑部负责人",value:"journaluser_realname"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getData},slot:"append"})],1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"填报状态"},on:{change:e.getData},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,4"}}),a("el-option",{attrs:{label:"已退回",value:5}})],1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"任务分配"},on:{change:e.getData},model:{value:e.query.assign_user_id,callback:function(t){e.$set(e.query,"assign_user_id",t)},expression:"query.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),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",label:"主办单位",prop:"journal_organizer"}}),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",[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:"danger"}},[e._v("退回重填")]):e._e(),3==t.row.post_status&&2==e.role?a("el-tag",{attrs:{type:"warning"}},[e._v("申请复检")]):e._e(),3==t.row.post_status&&3==e.role?a("el-tag",{attrs:{type:"warning"}},[e._v("待复检")]):e._e(),3==t.row.post_status&&0==e.role?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",fixed:"right",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.post_status||!t.row.assign_user_id&&1==t.row.post_status?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-select",{staticStyle:{width:"150px"},attrs:{disabled:"",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("查看")]),0==t.row.post_status?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.urg}},[e._v("催办")]):e._e()]}}])})],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)},n=[],s=a("9973"),r=a("27cd"),l={components:{person:r["a"],Page:s["a"]},data:function(){return{assign_user_id:"",loading:!1,activeName:0,total:0,query:{page:1,page_size:10,type:""},form:{},list:[{}],open:!1,open1:!1,title:"批量分配",rules:{name:[{required:!0,message:"标题不能为空",trigger:"blur"}]},role:"",expert_list:[],isall:0,ids:[]}},methods:{gopage:function(e){e&&(this.query.page_size=e),this.query.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,i={isall:this.isall};e?(i.assign_user_id=e.assign_user_id,i.id=e.id):(i.assign_user_id=this.assign_user_id,i.id=t),this.$api.assignWorkflow(i).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;this.role=localStorage.getItem("role");var 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();var a=this.$route.query.id;this.$api.searchExamineList({wsid:a}).then((function(t){e.expert_list=t.data.data}))}},o=l,c=(a("2391"),a("5d22")),u=Object(c["a"])(o,i,n,!1,null,null,null);t["default"]=u.exports},"3f93":function(e,t,a){},"43ec":function(e,t,a){"use strict";var i=a("1663")(!0);e.exports=function(e,t,a){return t+(a?i(e,t).length:1)}},"6bf8":function(e,t,a){"use strict";var i=a("a86f");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"804d":function(e,t,a){var i=a("9cff"),n=a("cea2"),s=a("839a")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==n(e))}},9973:function(e,t,a){"use strict";var i=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}})},n=[],s={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){console.log(e),this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},r=s,l=(a("129d"),a("5d22")),o=Object(l["a"])(r,i,n,!1,null,null,null);t["a"]=o.exports},a210:function(e,t,a){},af18:function(e,t,a){},bf73:function(e,t,a){"use strict";var i=a("0353");a("e99b")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},c46f:function(e,t,a){"use strict";a("bf73");var i=a("84e8"),n=a("065d"),s=a("0926"),r=a("3ab0"),l=a("839a"),o=a("0353"),c=l("species"),u=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();e.exports=function(e,t,a){var d=l(e),h=!s((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),g=h?!s((function(){var t=!1,a=/a/;return a.exec=function(){return t=!0,null},"split"===e&&(a.constructor={},a.constructor[c]=function(){return a}),a[d](""),!t})):void 0;if(!h||!g||"replace"===e&&!u||"split"===e&&!p){var f=/./[d],_=a(r,d,""[e],(function(e,t,a,i,n){return t.exec===o?h&&!n?{done:!0,value:f.call(t,a,i)}:{done:!0,value:e.call(a,t,i)}:{done:!1}})),v=_[0],m=_[1];i(String.prototype,e,v),n(RegExp.prototype,d,2==t?function(e,t){return m.call(e,this,t)}:function(e){return m.call(e,this)})}}},f417:function(e,t,a){"use strict";var i=a("d445"),n=RegExp.prototype.exec;e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var s=a.call(e,t);if("object"!==typeof s)throw new TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},f5bc:function(e,t,a){"use strict";a("af18")},fc02:function(e,t,a){"use strict";var i=a("804d"),n=a("a86f"),s=a("1b0b"),r=a("43ec"),l=a("201c"),o=a("f417"),c=a("0353"),u=a("0926"),p=Math.min,d=[].push,h="split",g="length",f="lastIndex",_=4294967295,v=!u((function(){RegExp(_,"y")}));a("c46f")("split",2,(function(e,t,a,u){var m;return m="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[g]||2!="ab"[h](/(?:ab)*/)[g]||4!="."[h](/(.?)(.?)/)[g]||"."[h](/()()/)[g]>1||""[h](/.?/)[g]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return a.call(n,e,t);var s,r,l,o=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,h=void 0===t?_:t>>>0,v=new RegExp(e.source,u+"g");while(s=c.call(v,n)){if(r=v[f],r>p&&(o.push(n.slice(p,s.index)),s[g]>1&&s.index<n[g]&&d.apply(o,s.slice(1)),l=s[0][g],p=r,o[g]>=h))break;v[f]===s.index&&v[f]++}return p===n[g]?!l&&v.test("")||o.push(""):o.push(n.slice(p)),o[g]>h?o.slice(0,h):o}:"0"[h](void 0,0)[g]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,i){var n=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,n,i):m.call(String(n),a,i)},function(e,t){var i=u(m,e,this,t,m!==a);if(i.done)return i.value;var c=n(e),d=String(this),h=s(c,RegExp),g=c.unicode,f=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),b=new h(v?c:"^(?:"+c.source+")",f),y=void 0===t?_:t>>>0;if(0===y)return[];if(0===d.length)return null===o(b,d)?[d]:[];var x=0,w=0,k=[];while(w<d.length){b.lastIndex=v?w:0;var q,$=o(b,v?d:d.slice(w));if(null===$||(q=p(l(b.lastIndex+(v?0:w)),d.length))===x)w=r(d,w,g);else{if(k.push(d.slice(x,w)),k.length===y)return k;for(var S=1;S<=$.length-1;S++)if(k.push($[S]),k.length===y)return k;w=x=q}}return k.push(d.slice(x)),k}]}))}}]);
  2. //# sourceMappingURL=chunk-65e3cb02.98b48637.js.map