chunk-9eb07a28.502b27bf.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9eb07a28"],{2591:function(t,e,a){var r=a("e1f7");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var s=a("499e").default;s("5c34dc7d",r,!0,{sourceMap:!1,shadowMode:!1})},"2b41":function(t,e,a){var r=a("db2f");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var s=a("499e").default;s("292170d7",r,!0,{sourceMap:!1,shadowMode:!1})},"4f26":function(t,e,a){var r=a("24fb");e=r(!1),e.push([t.i,".us-card[data-v-21e9394f]{margin-bottom:14px}.us-card .ivu-card-body[data-v-21e9394f]{display:flex;justify-content:space-between}.us-card .ivu-card-body .pt-card-form[data-v-21e9394f]{width:100%;text-align:left}.us-card .ivu-card-body .pt-card-form .pt-form-item[data-v-21e9394f]{width:280px;min-width:200px;margin-bottom:0}.us-card .ivu-card-body .pt-card-form .custom[data-v-21e9394f] .el-input__inner,.us-card .ivu-card-body .pt-card-form .custom[data-v-21e9394f] .el-range-input{font-size:14px!important;color:#515a6e!important}",""]),t.exports=e},"58e2":function(t,e,a){"use strict";var r=a("b311"),s=a.n(r);s.a},a738: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("div",{staticClass:"DpRecord"},[a("dpRecordSearch",{attrs:{showAddBoolean:!0},on:{searchEvent:t.searchEvent}}),a("Card",{staticClass:"userList-card",attrs:{bordered:!1,shadow:!0}},[a("div",{staticClass:"header-top-box",attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"title-value"},[t._v("抽取记录")])]),a("Table",{ref:"selection",staticClass:"iv-custom-table",attrs:{columns:t.columns1,border:!0,data:t.tableList},on:{"on-sort-change":t.sortEvent},scopedSlots:t._u([{key:"action",fn:function(e){var r=e.row;e.index;return a("div",{staticClass:"iv-button-box"},[a("Button",{directives:[{name:"show",rawName:"v-show",value:2==r.status,expression:"row.status == 2"},{name:"auth",rawName:"v-auth",value:"evaluateInfo:add",expression:"'evaluateInfo:add'"}],staticClass:"iv-custom-button",attrs:{type:"success",title:"项目结束后才可以评分"},on:{click:function(e){return t.openScore(r)}}},[t._v("评分")]),a("Button",{directives:[{name:"show",rawName:"v-show",value:3==r.status,expression:"row.status == 3"},{name:"auth",rawName:"v-auth",value:"evaluateInfo:add",expression:"'evaluateInfo:add'"}],staticClass:"iv-custom-button",attrs:{type:"info",title:"项目结束后才可以评分"},on:{click:function(e){return t.openShowScore(r)}}},[t._v("查看评分")])],1)}},{key:"projectType",fn:function(e){var r=e.row;e.index;return a("div",{staticClass:"iv-button-box"},[t._v(" "+t._s(t.$formateDict(r.type,t.allList.project_type,1,">"))+" ")])}},{key:"shenhe",fn:function(e){var r=e.row;e.index;return a("div",{staticClass:"iv-button-box"},[a("el-tag",{attrs:{type:t.typeList[Number(r.status)],effect:"dark"}},[t._v(" "+t._s(t.$formateDict(r.status,t.allList.project_status))+" ")])],1)}}])}),a("div",{staticClass:"ivu-card-footer"},[a("Page",{attrs:{"class-name":"iv-custom-page",current:t.searchData.pageNum,total:t.searchData.totalNum,size:"small","show-total":"","show-sizer":"","show-elevator":""},on:{"on-change":t.pageNumChang,"on-page-size-change":t.sizeChange}})],1)],1),t.displayPopScore?a("Modal",{attrs:{transfer:!1,title:t.popScoreTitle,width:"760px"},model:{value:t.displayPopScore,callback:function(e){t.displayPopScore=e},expression:"displayPopScore"}},[a("ProjectPopScore",{ref:"ProjectPopScoreRefs",attrs:{allList:t.allList,showSaveScore:!t.showSaveScore}}),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"error"},on:{click:function(e){t.displayPopScore=!1}}},[t._v("关闭")]),a("Button",{directives:[{name:"show",rawName:"v-show",value:t.showSaveScore,expression:"showSaveScore"}],attrs:{type:"primary"},on:{click:t.projectSaveScore}},[t._v("保存")])],1)],1):t._e()],1)},s=[],o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Form",{ref:"addRoleForm",staticClass:"addUser-form",attrs:{model:t.formData,rules:t.ruleFormData,"label-width":120,inline:!0}},[a("FormItem",{staticClass:"custom-form-item",attrs:{prop:"username",label:"项目名称:"}},[a("Select",{staticClass:"lg-fm-item-Select",attrs:{transfer:!1,multiple:"","max-tag-count":2,placeholder:"请选择项目",clearable:""},on:{input:t.showDoctorSelect},model:{value:t.formData.username,callback:function(e){t.$set(t.formData,"username",e)},expression:"formData.username"}},t._l(t.doctorList,(function(e){return a("Option",{key:e.k,attrs:{value:e.k}},[t._v(t._s(e.val))])})),1)],1),a("FormItem",{staticClass:"custom-form-item",attrs:{label:"选择专家:"}},[a("Input",{attrs:{type:"textarea",rows:4,placeholder:""},on:{"on-focus":t.showDoctorSelect},model:{value:t.formData.doctorList,callback:function(e){t.$set(t.formData,"doctorList",e)},expression:"formData.doctorList"}})],1),a("FormItem",{staticClass:"custom-form-item",attrs:{label:"发送信息:"}},[a("CheckboxGroup",{staticStyle:{"text-align":"left"},model:{value:t.social,callback:function(e){t.social=e},expression:"social"}},[a("Checkbox",{attrs:{label:"phone"}},[a("Icon",{attrs:{type:"md-phone-portrait"}}),a("span",[t._v("电话")])],1),a("Checkbox",{attrs:{label:"mail"}},[a("Icon",{attrs:{type:"md-mail"}}),a("span",[t._v("邮箱")])],1)],1)],1),t.displayPop?a("Modal",{attrs:{transfer:!1,title:"选择专家",width:"1000px"},model:{value:t.displayPop,callback:function(e){t.displayPop=e},expression:"displayPop"}},[a("div",{staticStyle:{display:"flex","min-height":"600px"}},[a("div",{staticStyle:{flex:"3"}},[a("Scroll",{attrs:{height:"600"}},[a("List",{attrs:{header:"已选择专家(10)",border:""}},t._l(t.list3,(function(e,r){return a("ListItem",{key:r},[a("span",{staticStyle:{"margin-right":"auto"}},[t._v("专家"+t._s(e)+"-1510834365"+t._s(e))]),a("template",{slot:"action"},[a("li",[a("a",{attrs:{href:""}},[t._v("移除")])])])],2)})),1)],1)],1),a("div",{staticStyle:{flex:"7"}},[a("DoctorSearch")],1)]),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{on:{click:function(e){t.displayPop=!1}}},[t._v("确定")]),a("Button",{on:{click:function(e){t.displayPop=!1}}},[t._v("查询")]),a("Button",{attrs:{type:"error"},on:{click:function(e){t.displayPop=!1}}},[t._v("取消")])],1)]):t._e()],1)},i=[],c=a("2f62"),l=a("bca8"),n={name:"AddUserPop",components:{DoctorSearch:l["a"]},data(){const t=(t,e,a)=>{e?a():a("参数不能为空")},e=(t,e,a)=>{let r=/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;e?r.test(e)||a(new Error("邮箱格式错误!")):a(new Error("邮箱不能为空!")),a()};return{formData:{id:"",username:"",password:"",phone:"",enterprise:"",email:"",sex:"1",headImgUrl:"",nickname:"",telephone:"",birthday:"",region:[],roleIds:null,pcaName:"",applyEnterpriseType:[],doctorList:"专家1、专家2、专家3"},ruleFormData:{username:[{required:!0,validator:t,trigger:"blur"}],description:[{required:!0,validator:t,trigger:"blur"}],permissionIds:[{required:!0,validator:t,trigger:"blur"}],nickname:[{required:!0,validator:t,trigger:"blur"}],phone:[{required:!0,validator:t,trigger:"blur"}],email:[{required:!0,validator:e,trigger:"blur"}],industry:[{required:!0,validator:t,trigger:"blur"}],roleIds:[{required:!0,validator:t,trigger:"blur"}]},regionList:[],showPassword:!1,applyEnterpriseTypeList:[],displayPop:!1,list3:[1,2,3,4,5,6,7,8,9,10]}},computed:{...Object(c["b"])({dictSexList:t=>{const e=t.dictTypeList.filter(t=>"sex"===t.type?t:null);return e},dictIndustryList:t=>{const e=t.dictTypeList.filter(t=>"industry"===t.type?t:null);return e},rolesList:t=>t.rolesList})},mounted(){this.getDictionaryData()},methods:{showDoctorSelect(){console.log(1),this.displayPop=!0},async industryEvent(t){const e=this.$store.state.dictTypeList;let a={};for(var r in this.dictIndustryList)this.dictIndustryList[r].k===t.value&&(a=this.dictIndustryList[r]);const s=e.filter(t=>{if("applyEnterpriseType"===t.type&&t.pid===a.id)return t});this.applyEnterpriseTypeList=s},async editFromData(t){this.industryEvent({value:String(t.industry)}),this.showPassword=!1;const e=await JSON.parse("["+t.provinceId+","+t.cityId+","+t.areaId+"]"),a=await this.$utils.breadthQuery(this.regionList,e);this.formData={id:t.id,username:t.username,password:"",phone:t.phone,enterprise:t.enterprise,email:t.email?t.email:"",sex:t.sex?String(t.sex):"1",headImgUrl:t.headImgUrl,nickname:t.nickname,telephone:t.telephone,industry:String(t.industry),birthday:t.birthday,roleIds:t.roleIds?Number(t.roleIds.toString()):null,region:e,pcaName:a,applyEnterpriseType:t.applyEnterpriseType?t.applyEnterpriseType.split(","):[]}},addFromData(){this.showPassword=!0,this.formData={id:"",username:"",password:"",phone:"",enterprise:"",email:"",sex:"1",headImgUrl:"",nickname:"",telephone:"",birthday:"",roleIds:null,region:[],pcaName:"",doctorList:"专家1、专家2、专家3"}},async getDictionaryList(){const t=await this.$Api.publicGetMap.dictionaryData({type:"sex"});"200"===t.code&&(this.sexList=t.data.records);const e=await this.$Api.publicGetMap.dictionaryData({type:"industry"});"200"===e.code&&(this.industryList=e.data.records);const a=await this.$Api.roleGetMap.getAllRoles();a.code},async backData(){const t=await JSON.parse(JSON.stringify(this.formData)),e=await this.$utils.breadthQuery(this.regionList,t.region);return t.provinceId=t.region[0],t.cityId=t.region[1],t.areaId=t.region[2],t.pcaName=e,t.applyEnterpriseType=t.applyEnterpriseType.toString(),delete t.region,t},async getDictionaryData(){const t=await this.$Api.areaGetMap.getProvinceList();if("200"===t.code){let e=t.data.map(t=>({value:t.id,label:t.name,children:[],loading:!1,type:"shengJi"}));this.regionList=e}},async loadData(t,e){t.loading=!0;const a=await this.$Api.areaGetMap.getCityByProvinceId({id:t.value});if("200"===a.code){let r=[];"shengJi"===t.type?r=a.data.map(t=>({value:t.id,label:t.name,children:[],loading:!1,type:"shiJi"})):"shiJi"===t.type&&(r=a.data.map(t=>({value:t.id,label:t.name,type:"xianJi"}))),t.children=r,t.loading=!1,e()}}}},d=n,p=(a("ef4e"),a("2877")),u=Object(p["a"])(d,o,i,!1,null,null,null),m=u.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Card",{staticClass:"us-card",attrs:{bordered:!1,shadow:!0}},[a("Form",{staticClass:"pt-card-form",attrs:{"label-width":110,inline:!0}},[a("FormItem",{staticClass:"pt-form-item",attrs:{label:"名称"}},[a("Input",{attrs:{type:"text",placeholder:"项目名称",clearable:""},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1),a("FormItem",{staticClass:"custom-form-item",attrs:{prop:"date",label:"项目日期:"}},[a("el-date-picker",{staticClass:"custom",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.formData.date,callback:function(e){t.$set(t.formData,"date",e)},expression:"formData.date"}})],1),a("FormItem",{staticClass:"custom-form-item",attrs:{label:"项目分类:"}},[a("el-cascader",{staticClass:"custom",attrs:{options:t.allList.project_type,props:{label:"val",value:"k"},clearable:""},on:{change:t.handleChange},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}})],1),a("FormItem",{staticClass:"pt-form-item",attrs:{label:"项目状态:"}},[a("Select",{staticClass:"lg-fm-item-Select",attrs:{transfer:!1,placeholder:"请选择",clearable:""},model:{value:t.formData.status,callback:function(e){t.$set(t.formData,"status",e)},expression:"formData.status"}},t._l(t.allList.project_status,(function(e){return a("Option",{key:e.k,attrs:{value:e.k}},[t._v(t._s(e.val))])})),1)],1),a("Button",{attrs:{icon:"md-search",type:"primary"},on:{click:t.searchEvent}},[t._v("查询")])],1)],1)},f=[],v={name:"ProjectSearch",data(){return{formData:{name:"",type:[],status:"",date:[]},allList:{}}},created(){this.allList=this.$filterDict(["project_status","project_type"],this.$Store.getters.getDictTypeList),this.allList.project_type=this.allList.project_type.filter(t=>"项目分类"==t.val)[0].children},methods:{handleChange(t){console.log(t)},addEvent(){this.$emit("openAddPop")},searchEvent(){this.$emit("searchEvent",this.formData)}}},y=v,g=(a("58e2"),Object(p["a"])(y,h,f,!1,null,"21e9394f",null)),b=g.exports,w=a("b72c"),D={name:"UserList",components:{AddDpRecordPop:m,dpRecordSearch:b,ProjectPopScore:w["a"]},data(){return{columns1:[{type:"index",title:"序号",align:"center"},{title:"项目名称",key:"name",align:"center"},{title:"发起单位",key:"originator",align:"center"},{title:"开始时间",key:"startTime",width:170,align:"center"},{title:"结束时间",key:"endTime",width:170,align:"center"},{title:"项目分类",slot:"projectType",width:260,align:"center"},{title:"指派专家",key:"expertNames",width:200,align:"center"},{title:"状态",slot:"shenhe",width:140,align:"center"},{title:"创建时间",key:"createTime",width:170,align:"center",sortable:"custom"},{title:"操作",slot:"action",width:130,align:"center"}],tableList:[],popTitle:"",saveBtType:"add",searchData:{pageNum:1,pageSize:10,pageTole:0,totalNum:0,isAsc:!1},displayPopScore:!1,allList:{},typeList:["","info","warning","success"],showSaveScore:!0}},mounted(){this.$route.query.name&&(this.searchData.name=this.$route.query.name),this.doSearch(),this.allList=this.$filterDict(["project_status","project_type"],this.$Store.getters.getDictTypeList)},methods:{async sortEvent(t,e,a){this.searchData.isAsc=!this.searchData.isAsc,await this.doSearch()},openShowScore(t){this.displayPopScore=!0,this.showSaveScore=!1,this.popScoreTitle=t.name+"-项目评分",this.$nextTick(()=>{this.$refs.ProjectPopScoreRefs.getProjectData(t.id)})},openScore(t){this.displayPopScore=!0,this.showSaveScore=!0,this.popScoreTitle=t.name+"-项目评分",this.$nextTick(()=>{this.$refs.ProjectPopScoreRefs.getProjectData(t.id)})},async projectSaveScore(){let t=this.$refs.ProjectPopScoreRefs.rateForm,e=this.$refs.ProjectPopScoreRefs.doctorList.map((e,a)=>({id:t[`doctor-${e.id}-id`],expertInfoId:e.id,projectInfoId:this.$refs.ProjectPopScoreRefs.projectData.id,majorLevel:t[`doctor-${e.id}-rate1`],serviceAttitude:t[`doctor-${e.id}-rate2`],styleDiscipline:t[`doctor-${e.id}-rate3`],isDivulgeSecrets:t[`doctor-${e.id}-xiemi`].length>0?1:0,remarks:t[`doctor-${e.id}-rate4`]}));const a=await this.$Api.projectGetMap.evaluateAddEdit(e);"200"===a.code&&(this.$Message.success({content:"评分完成!",duration:4}),this.displayPopScore=!1,this.doSearch())},searchEvent(t){this.searchData.module=t.module,this.searchData.type=t.type.length>0?t.type.join(","):"",this.searchData.status=t.status,this.searchData.startTime=null!=t.date&&t.date.length>0?t.date[0]:"",this.searchData.endTime=null!=t.date&&t.date.length>0?t.date[1]:"",this.searchData.pageNum=1,this.doSearch()},pageNumChang(t){this.searchData.pageNum=t,this.doSearch()},sizeChange(t){this.searchData.pageSize=t,this.searchData.pageNum=1,this.doSearch()},async doSearch(){let t={offset:this.searchData.pageNum,limit:this.searchData.pageSize,name:this.searchData.name,type:this.searchData.type,status:this.searchData.status,startTime:this.searchData.startTime,endTime:this.searchData.endTime,isExtractRecord:1,isAsc:this.searchData.isAsc};const e=await this.$Api.projectGetMap.getProjectList(t);"200"===e.code&&(this.tableList=e.data.records,this.searchData.pageTole=e.data.pages,this.searchData.pageNum=e.data.current,this.searchData.totalNum=e.data.total)}}},x=D,S=(a("c6fc"),Object(p["a"])(x,r,s,!1,null,null,null));e["default"]=S.exports},b311:function(t,e,a){var r=a("4f26");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var s=a("499e").default;s("6457f111",r,!0,{sourceMap:!1,shadowMode:!1})},c6fc:function(t,e,a){"use strict";var r=a("2591"),s=a.n(r);s.a},db2f:function(t,e,a){var r=a("24fb");e=r(!1),e.push([t.i,".addUser-form{padding:20px;display:flex;justify-content:flex-start;flex-wrap:wrap}.addUser-form .custom-form-item{width:100%}.addUser-form .custom-form-item .ivu-form-item-label{margin:0 0}.addUser-form .custom-form-item .tree-comment{height:420px;overflow-y:scroll;overflow-x:hidden;text-align:left}.addUser-form .custom-form-item2{width:48.5%}.addUser-form .custom-form-item2 .ivu-form-item-label{margin:0 0}.addUser-form .custom-form-item2 .tree-comment{height:420px;overflow-y:scroll;overflow-x:hidden;text-align:left}.addUser-form .ivu-list-item-action{margin-left:0}",""]),t.exports=e},e1f7:function(t,e,a){var r=a("24fb");e=r(!1),e.push([t.i,".DpRecord .userList-card{\n /*!*overflow-y: auto;*!*/}.DpRecord .userList-card .header-top-box{height:auto;display:flex;justify-content:space-between}.DpRecord .userList-card .header-top-box .title-value{line-height:32px;text-align:left;font-size:24px;font-weight:700;color:#2760b7}.DpRecord .userList-card .iv-custom-table .ivu-table .ivu-table-tip td{width:100%!important}.DpRecord .userList-card .iv-custom-table .iv-button-box{position:relative;width:100%;justify-content:space-around}.DpRecord .userList-card .iv-custom-table .iv-button-box .iv-custom-button{margin:0 4px}.DpRecord .userList-card .ivu-card-footer{margin-top:10px}.DpRecord .userList-card .ivu-card-footer .footer-botton{float:left;margin-right:10px;color:#4862ea}.DpRecord .userList-card .ivu-card-footer .footer-botton:focus{box-shadow:0 0 0 0 transparent;color:#131d26}",""]),t.exports=e},ef4e:function(t,e,a){"use strict";var r=a("2b41"),s=a.n(r);s.a}}]);