12 |
- "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[1085],{53734:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"ProjectManagement"},[e._m(0),t("hr"),t("div",{staticClass:"selectInp"},[t("div",{staticClass:"manageSelects"},[t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("项目筛选")]),t("el-select",{attrs:{placeholder:"我的项目"},on:{change:e.getData},model:{value:e.selectInp.filter,callback:function(t){e.$set(e.selectInp,"filter",t)},expression:"selectInp.filter"}},[t("el-option",{attrs:{label:"所有项目",value:""}}),e._l(e.options.projectFilter,(function(e){return t("el-option",{key:e.courseId,attrs:{label:e.title,value:e.courseId}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("部门")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.department,callback:function(t){e.$set(e.selectInp,"department",t)},expression:"selectInp.department"}},[t("el-option",{attrs:{label:"所有部门",value:""}}),e._l(e.options.department,(function(e){return t("el-option",{key:e.classid,attrs:{label:e.name,value:e.classid}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("分类")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.sort,callback:function(t){e.$set(e.selectInp,"sort",t)},expression:"selectInp.sort"}},[t("el-option",{attrs:{label:"所有分类",value:""}}),e._l(e.options.sort,(function(e){return t("el-option",{key:e.typeid,attrs:{label:e.name,value:e.typeid}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("结题状态")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.state,callback:function(t){e.$set(e.selectInp,"state",t)},expression:"selectInp.state"}},e._l(e.options.state,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("负责人")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.leader,callback:function(t){e.$set(e.selectInp,"leader",t)},expression:"selectInp.leader"}},[t("el-option",{attrs:{label:"所有负责人",value:""}}),e._l(e.options.person,(function(e,a){return t("el-option",{key:a,attrs:{label:e.pro_leader,value:e.pro_leader}})}))],2)],1),t("div",{staticClass:"selectsBlock"},[t("span",{staticClass:"selectLabel"},[e._v("年份")]),t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getData},model:{value:e.selectInp.year,callback:function(t){e.$set(e.selectInp,"year",t)},expression:"selectInp.year"}},[t("el-option",{attrs:{label:"所有年份",value:""}}),e._l(e.options.yearData,(function(e,a){return t("el-option",{key:a,attrs:{label:e.time+"年",value:e.time}})}))],2)],1)]),t("div",{staticClass:"ProjectManagementQuery"},[t("el-input",{attrs:{placeholder:"请输入项目名称/编号"},model:{value:e.selectText,callback:function(t){e.selectText=t},expression:"selectText"}}),t("el-button",{staticClass:"btn",attrs:{type:"primary",size:"mini"},on:{click:e.getData}},[e._v("查询")])],1)]),t("div",[t("span",{staticStyle:{"font-size":"12px"}},[e._v("共 "+e._s(e.table.total)+" 条")]),t("el-table",{ref:"multipleTable",staticClass:"fontSize",attrs:{data:e.items,"tooltip-effect":"dark",stripe:"","header-cell-style":{background:"#f2f2f2",color:"#000"}},on:{"cell-click":e.cellProjectClick}},[t("el-table-column",{attrs:{prop:"ProjectNo",label:"项目编号",align:"center","min-width":"9%"}}),t("el-table-column",{attrs:{prop:"title",label:"项目名称",align:"center","min-width":"10%"}}),t("el-table-column",{attrs:{prop:"pro_leader",align:"center",label:"项目负责人","min-width":"9%"}}),t("el-table-column",{attrs:{prop:"dName",align:"center",label:"所在部门","min-width":"10%"}}),t("el-table-column",{attrs:{prop:"tName",align:"center",label:"分类","min-width":"10%"}}),t("el-table-column",{attrs:{prop:"fund",label:"预算(万)",align:"center","min-width":"8%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(" "+e._s(a.row.fund/1e4)+" ")])]}}])}),t("el-table-column",{attrs:{prop:"startTime",align:"center",label:"开始时间","min-width":"9%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(" "+e._s(a.row.startTime.split(" ")[0])+" ")])]}}])}),t("el-table-column",{attrs:{prop:"phone",align:"center",label:"联系电话","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(" "+e._s(null!=a.row.phone||""==a.row.phone?a.row.phone:"-")+" ")])]}}])}),t("el-table-column",{attrs:{prop:"state",label:"状态",align:"center","min-width":"6%"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[2==a.row.isupload?t("span",[e._v("进行中")]):e._e(),3==a.row.isupload?t("span",[e._v("待结项")]):e._e(),4==a.row.isupload?t("span",[e._v("已结项")]):e._e()])]}}])}),t("el-table-column",{attrs:{prop:"operation",width:"300",align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",{staticClass:"operations"},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.scheduleDetail(a.row.courseId,a.row.typeid)}}},[e._v("项目详情")]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:2==a.row.isupload,expression:"scope.row.isupload == 2"}],attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.finish(a.row)}}},[e._v("提交结项")]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:3==a.row.isupload,expression:"scope.row.isupload == 3"}],attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.amendFinish(a.row)}}},[e._v("修改结项")]),t("el-button",{directives:[{name:"show",rawName:"v-show",value:4==a.row.isupload,expression:"scope.row.isupload == 4"}],staticClass:"disa",attrs:{type:"primary",disabled:"",size:"mini"}},[e._v("已结项")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.jump(a.row.courseId)}}},[e._v("打印结项书")])],1)]}}])})],1)],1),t("el-dialog",{staticClass:"endDialog",attrs:{title:"提示",visible:e.NoReportActivity,width:"600px"},on:{"update:visible":function(t){e.NoReportActivity=t}}},[t("div",{staticClass:"deleteContent"},[e._v('"'+e._s(e.tit)+'"项目')]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.checkActivityFinishData.length>0,expression:"checkActivityFinishData.length > 0"}],staticClass:"download checkActivity"},[t("span",{staticStyle:{color:"black"}},[e._v("未完结活动:")]),e._l(e.checkActivityFinishData,(function(a,s){return t("span",{key:s},[e._v(e._s(a.title))])}))],2),t("div",{directives:[{name:"show",rawName:"v-show",value:e.checkFundFinishData.length>0,expression:"checkFundFinishData.length > 0"}],staticClass:"download checkActivity"},[t("span",{staticStyle:{color:"black"}},[e._v("未完结资金:")]),e._l(e.checkFundFinishData,(function(a,s){return t("span",{key:s,staticStyle:{cursor:"pointer"},on:{click:function(t){return e.fundDetail(a.id,a.title,a.pid)}}},[e._v(e._s(a.title)+"/"+e._s(a.applyfund-a.actualuse)+"(元)")])}))],2),t("div",{staticClass:"dialog-footer",staticStyle:{display:"flex","justify-content":"center"},attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"AllDialogBtn",on:{click:function(t){e.NoReportActivity=!1}}},[e._v("取消")])],1)]),t("el-dialog",{staticClass:"endDialog1",attrs:{title:"提示",visible:e.shareDialog,width:"600px"},on:{"update:visible":function(t){e.shareDialog=t}}},[t("div",[t("el-select",{attrs:{placeholder:"请选择项目"},model:{value:e.project,callback:function(t){e.project=t},expression:"project"}},e._l(e.allProject,(function(e){return t("el-option",{key:e.courseId,attrs:{label:e.title,value:e.courseId}})})),1)],1),t("el-input",{staticStyle:{width:"50%",margin:"10px 0 0 0"},attrs:{placeholder:"请输入姓名"},on:{change:e.getPeople},model:{value:e.un,callback:function(t){e.un=t},expression:"un"}}),t("el-checkbox",{staticStyle:{padding:"15px 0 0 15px"},attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e.people.length?t("el-checkbox-group",{directives:[{name:"loading",rawName:"v-loading",value:e.caseLoading,expression:"caseLoading"}],staticStyle:{height:"400px",overflow:"auto",padding:"0 0 0 15px"},on:{change:e.handleCheckedAnliChange},model:{value:e.checkboxList,callback:function(t){e.checkboxList=t},expression:"checkboxList"}},e._l(e.people,(function(a){return t("el-checkbox",{key:a.userid,attrs:{label:a.userid}},[t("div",{staticClass:"t_j_box"},[t("el-tooltip",{attrs:{placement:"top",content:a.username?a.username:"暂无姓名"}},[t("span",[e._v(e._s(a.username?a.username:"暂无姓名"))])])],1)])})),1):e._e(),t("div",{staticClass:"dialog-footer",staticStyle:{display:"flex","justify-content":"center"},attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.setUseridInProject}},[e._v("确认")]),t("el-button",{staticClass:"AllDialogBtn",on:{click:function(t){e.shareDialog=!1}}},[e._v("取消")])],1)],1),t("el-dialog",{staticClass:"endDialogBlock",attrs:{title:"结项书",visible:e.endDialog},on:{"update:visible":function(t){e.endDialog=t}}},[t("Closingstatement",{ref:"finalClo",attrs:{myArrayProp2:e.myArrayProp,iid:e.iid,isDownPdf:e.isDownPdf},on:{"update:myArrayProp2":function(t){e.myArrayProp=t},"update:my-array-prop2":function(t){e.myArrayProp=t}}}),t("div",{staticClass:"dialog-footer",staticStyle:{display:"flex","justify-content":"center"},attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.ending}},[e._v("确认")]),t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.getWord}},[e._v("下载表格")]),t("el-button",{staticClass:"AllDialogBtn",on:{click:function(t){e.endDialog=!1}}},[e._v("取消")])],1)],1),t("el-pagination",{staticClass:"paginations",attrs:{"current-page":e.table.currentPage,"page-size":e.table.packageSize,layout:" prev, pager, next",background:"",total:e.table.total},on:{"current-change":e.handleCurrentChange}})],1)},l=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pAHeader"},[t("div",{staticClass:"pAHeader1"},[e._v("项目管理")])])}],i=(a(57658),a(11057)),o=a(41275),n=a(53003),r={components:{beUpload:i.Z,Closingstatement:o.Z},data(){return{isDownPdf:!1,accept:"*",iid:"",selectText:"",endDialog:!1,DelFileDialog:!1,NoReportActivity:!1,loading:!1,tit:"",items:[],allProject:[],table:{total:0,packageSize:10,currentPage:1},progress:{value:0,show:!1},DelFileData:{fid:"",fileName:""},options:{projectFilter:[],department:[],sort:[],person:[],state:[{value:"",label:"全部"},{value:2,label:"进行中"},{value:3,label:"待结项"},{value:4,label:"已结项"}],yearData:[]},selectInp:{filter:"",department:"",sort:"",state:"",leader:"",year:""},file:[],checkActivityFinishData:[],checkFundFinishData:[],submitData:{brief:"",plan:"",technology:"",business:"",innovate:"",resultAccessory:[],firmAccessory:[],competitionAccessory:[],exchangeAccessory:[],conversionAccessory:[],talentsAccessory:[],targetPlan:"",realityResult:"",socialValue:"",taskAccessory:[]},myArrayProp:[],shareDialog:!1,project:"",caseLoading:!1,checkboxList:[],checkboxIdList:[],people:[],isIndeterminate:!1,checkAll:!1,un:""}},methods:{handleCheckAllChange(e){if(0==this.checkboxIdList.length)for(var t=0;t<this.people.length;t++)this.checkboxIdList.push(this.people[t].userid);this.checkboxList=e?this.checkboxIdList:[],this.isIndeterminate=!1},handleCheckedAnliChange(e){let t=this.checkboxList.length;this.checkAll=t===this.people.length,this.isIndeterminate=t>0&&t<this.people.length},fundDetail(e,t,a){this.$router.push(`/makerfundDetails?Id=${e}&tit=${t}&paid=${a}`)},ProgressFormat(e){return 100==e?"100%":`${e}%`},checkDelFile(e){this.file=this.file.filter((t=>t.url!=e))},getFile(e){this.file.push(e),this.progress.show=!1},ending(){this.myArrayProp=this.$refs["finalClo"].myArrayProp,this.ajax.post(this.$store.state.api+"/updateClosingstatementData",{uid:this.$store.state.userInfo.userid,cid:this.iid,submitData:encodeURIComponent(JSON.stringify(this.myArrayProp[0]["ClosingstatementData"])),state:3}).then((e=>{console.log(e),1==e.data?(this.$message.success("提交成功"),this.endDialog=!1,this.progress.show=!1):this.$message.error("提交失败"),this.getData()}),(e=>{console.log(e)})),this.endDialog=!1},scheduleDetail(e,t){this.$router.push(`/ProjectManagementMain?Id=${t}&pid=${e}`)},fundStatus(e){this.$router.push(`/ProjectManagementFundDetail?pid=${e}`)},finish(e){this.myArrayProp=[],this.iid=e.courseId,this.checkActivityFinishData=[],this.checkFundFinishData=[],this.ajax.get(this.$store.state.api+"/GetActivityNoReportByPId",{uid:this.$store.state.userInfo.userid,pid:e.courseId}).then((t=>{if(t.data[0].length>0||t.data[1].length>0){if(this.checkActivityFinishData=t.data[0],t.data[1].length>0){let e=0,a=0;t.data[1].forEach((t=>{t.applyfund=JSON.parse(t.applyfund);for(let a in t.applyfund)e+=1*t.applyfund[a];t.applyfund=e})),t.data[1].forEach((e=>{if(null!=e.actualuse){e.actualuse=JSON.parse(e.actualuse);for(let t in e.actualuse)a+=1*e.actualuse[t];e.actualuse=a}}))}this.checkFundFinishData=t.data[1],this.tit=e.title,this.NoReportActivity=!0}else this.iid=e.courseId,this.ajax.get(this.$store.state.api+"/getClosingstatementData",{uid:this.$store.state.userInfo.userid,pid:e.courseId}).then((e=>{let t=0;e.data[1].forEach((e=>{e["actualuse"]=JSON.parse(e["actualuse"]);for(let a in e["actualuse"])e["actualuse"][a]&&(t=1*e["actualuse"][a]+t)})),console.log(t);let a=e.data[0];a[0].course_student=JSON.parse(a[0].course_student),a[0].course_teacher=JSON.parse(a[0].course_teacher),a[0].promotion=a[0].promotion.indexOf(a[0].ProjectNo),null!=a[0].multiSelectProject&&(a[0].multiSelectProject=JSON.parse(a[0].multiSelectProject)),null!=a[0].opinion&&(a[0].opinion=JSON.parse(a[0].opinion)),a[0].money=JSON.parse(a[0].money),a[0].ClosingstatementData=a[0].ClosingstatementData?JSON.parse(a[0].ClosingstatementData):this.submitData,this.myArrayProp=a,this.myArrayProp[0].actualuse=t,console.log("this.myArrayProp",this.myArrayProp),this.endDialog=!0})).catch((e=>{console.log(e)}))})).catch((e=>{console.log(e)}))},amendFinish(e){this.myArrayProp=[],this.submitData={brief:"",plan:"",technology:"",business:"",innovate:"",resultAccessory:[],firmAccessory:[],competitionAccessory:[],exchangeAccessory:[],conversionAccessory:[],talentsAccessory:[],targetPlan:"",realityResult:"",socialValue:"",taskAccessory:[]},this.iid=e.courseId,this.ajax.get(this.$store.state.api+"/selectAmendFinish",{uid:this.$store.state.userInfo.userid,pid:e.courseId}).then((e=>{console.log("修改结项",e);let t=0;e.data[1].forEach((e=>{e["actualuse"]=JSON.parse(e["actualuse"]);for(let a in e["actualuse"])e["actualuse"][a]&&(t=1*e["actualuse"][a]+t)}));let a=e.data[0];a[0].course_student=JSON.parse(a[0].course_student),a[0].course_teacher=JSON.parse(a[0].course_teacher),a[0].multiSelectProject=JSON.parse(a[0].multiSelectProject),a[0].promotion=a[0].promotion.indexOf(a[0].ProjectNo),a[0].ClosingstatementData=JSON.parse(a[0].ClosingstatementData),a[0].money=JSON.parse(a[0].money),null!=a[0].opinion&&(a[0].opinion=JSON.parse(a[0].opinion)),this.myArrayProp=a,this.myArrayProp[0].actualuse=t,console.log("this.myArrayProp",this.myArrayProp),this.endDialog=!0})).catch((e=>{console.log(e)}))},handleCurrentChange(e){this.table.currentPage=e,this.getData()},openShare(){this.shareDialog=!0,this.getPeople(),this.getAllProject()},getPeople(){this.caseLoading=!0,this.ajax.post(this.$store.state.api+"/selectAllUser",{n:encodeURIComponent(this.un)}).then((e=>{this.people=e.data[0],this.caseLoading=!1}),(e=>{this.caseLoading=!1,console.log(e)}))},setUseridInProject(){this.ajax.post(this.$store.state.api+"/updateProjectLookTeacher",{cid:this.project,look:encodeURIComponent(this.checkboxList.join(","))}).then((e=>{this.$message.success("分配成功"),this.shareDialog=!1}),(e=>{console.log(e)}))},getAllProject(){this.ajax.get(this.$store.state.api+"/selectAllProjectByAdmin").then((e=>{this.allProject=e.data[0]}),(e=>{console.log(e)}))},getData(){if(this.loading)return;this.loading=!0;let e={uid:this.$store.state.userInfo.userid,pid:this.selectInp.filter,did:this.selectInp.department,tid:this.selectInp.sort,leader:this.selectInp.leader,endState:this.selectInp.state,year:this.selectInp.year,textInp:encodeURIComponent(this.selectText),page:this.table.currentPage,lim:this.table.packageSize};this.ajax.get(this.$store.state.api+"/SelectAllProjectManagement",e).then((e=>{let t=e.data;if(0==t[0].length&&0!=t[5][0]["total"]&&1!=this.table.currentPage)return this.table.currentPage=1,this.loading=!1,this.getData();let a=this.options;this.items=t[0],a.projectFilter=t[1],a.department=t[2],a.sort=t[3],a.person=t[4],a.yearData=t[6],0==a.yearData.filter((e=>e["time"]==(new Date).getFullYear().toString())).length&&a.yearData.push({time:(new Date).getFullYear().toString()}),this.table.total=t[5][0].total,this.loading=!1}),(e=>{console.log(e)}))},jump(e){window.open(`/Closingstatement1?iid=${e}`)},getWord(){this.isDownPdf=!0,this.$forceUpdate(),setTimeout((()=>{(0,n.W)(this.$refs.finalClo.$refs.downPDF,this.myArrayProp[0].title+"申报书"),setTimeout((()=>{this.isDownPdf=!1,this.$forceUpdate()}),500)}),500)},cellProjectClick(e,t,a,s){"operation"!=t.property&&this.scheduleDetail(e.courseId,e.typeid)}},mounted(){},activated(){this.getData()}},c=r,p=a(43736),u=(0,p.Z)(c,s,l,!1,null,"e6951f64",null),d=u.exports}}]);
- //# sourceMappingURL=1085.7b5f1e28.js.map
|