596.d77bb990.js 12 KB

12
  1. "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[596],{66:function(t,e,a){a.r(e),a.d(e,{default:function(){return d}});var s=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ProjectManagement"},[t._m(0),e("hr"),e("div",{staticClass:"selectInp"},[e("div",{staticClass:"manageSelects"},[e("div",{staticClass:"selectsBlock"},[e("span",{staticClass:"selectLabel"},[t._v("项目筛选")]),e("el-select",{attrs:{placeholder:"我的项目"},on:{change:t.getData},model:{value:t.selectInp.filter,callback:function(e){t.$set(t.selectInp,"filter",e)},expression:"selectInp.filter"}},[e("el-option",{attrs:{label:"所有项目",value:""}}),t._l(t.options.projectFilter,(function(t){return e("el-option",{key:t.courseId,attrs:{label:t.title,value:t.courseId}})}))],2)],1),e("div",{staticClass:"selectsBlock"},[e("span",{staticClass:"selectLabel"},[t._v("部门")]),e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getData},model:{value:t.selectInp.department,callback:function(e){t.$set(t.selectInp,"department",e)},expression:"selectInp.department"}},[e("el-option",{attrs:{label:"所有部门",value:""}}),t._l(t.options.department,(function(t){return e("el-option",{key:t.classid,attrs:{label:t.name,value:t.classid}})}))],2)],1),e("div",{staticClass:"selectsBlock"},[e("span",{staticClass:"selectLabel"},[t._v("分类")]),e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getData},model:{value:t.selectInp.sort,callback:function(e){t.$set(t.selectInp,"sort",e)},expression:"selectInp.sort"}},[e("el-option",{attrs:{label:"所有分类",value:""}}),t._l(t.options.sort,(function(t){return e("el-option",{key:t.typeid,attrs:{label:t.name,value:t.typeid}})}))],2)],1),e("div",{staticClass:"selectsBlock"},[e("span",{staticClass:"selectLabel"},[t._v("结题状态")]),e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getData},model:{value:t.selectInp.state,callback:function(e){t.$set(t.selectInp,"state",e)},expression:"selectInp.state"}},t._l(t.options.state,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("div",{staticClass:"selectsBlock"},[e("span",{staticClass:"selectLabel"},[t._v("负责人")]),e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getData},model:{value:t.selectInp.leader,callback:function(e){t.$set(t.selectInp,"leader",e)},expression:"selectInp.leader"}},[e("el-option",{attrs:{label:"所有负责人",value:""}}),t._l(t.options.person,(function(t,a){return e("el-option",{key:a,attrs:{label:t.pro_leader,value:t.pro_leader}})}))],2)],1),e("div",{staticClass:"selectsBlock"},[e("span",{staticClass:"selectLabel"},[t._v("年份")]),e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getData},model:{value:t.selectInp.year,callback:function(e){t.$set(t.selectInp,"year",e)},expression:"selectInp.year"}},[e("el-option",{attrs:{label:"所有年份",value:""}}),t._l(t.options.yearData,(function(t,a){return e("el-option",{key:a,attrs:{label:t.time+"年",value:t.time}})}))],2)],1)]),e("div",{staticClass:"ProjectManagementQuery"},[e("el-input",{attrs:{placeholder:"请输入项目名称/编号"},model:{value:t.selectText,callback:function(e){t.selectText=e},expression:"selectText"}}),e("el-button",{staticClass:"btn",attrs:{type:"primary",size:"mini"},on:{click:t.getData}},[t._v("查询")])],1)]),e("div",[e("el-table",{ref:"multipleTable",staticClass:"fontSize",attrs:{data:t.items,"tooltip-effect":"dark",stripe:"","header-cell-style":{background:"#f2f2f2",color:"#000"}}},[e("el-table-column",{attrs:{prop:"ProjectNo",label:"项目编号",align:"center","min-width":"9%"}}),e("el-table-column",{attrs:{prop:"title",label:"项目名称",align:"center","min-width":"10%"}}),e("el-table-column",{attrs:{prop:"pro_leader",align:"center",label:"项目负责人","min-width":"9%"}}),e("el-table-column",{attrs:{prop:"dName",align:"center",label:"所在部门","min-width":"10%"}}),e("el-table-column",{attrs:{prop:"tName",align:"center",label:"分类","min-width":"10%"}}),e("el-table-column",{attrs:{prop:"fund",label:"预算(万)",align:"center","min-width":"8%"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(" "+t._s(a.row.fund/1e4)+" ")])]}}])}),e("el-table-column",{attrs:{prop:"startTime",align:"center",label:"开始时间","min-width":"9%"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(" "+t._s(a.row.startTime.split(" ")[0])+" ")])]}}])}),e("el-table-column",{attrs:{prop:"phone",align:"center",label:"联系电话","min-width":"10%"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(" "+t._s(null!=a.row.phone||""==a.row.phone?a.row.phone:"-")+" ")])]}}])}),e("el-table-column",{attrs:{prop:"state",label:"状态",align:"center","min-width":"6%"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[0==a.row.isupload?e("span",[t._v("未审核")]):t._e(),1==a.row.isupload?e("span",[t._v("审核中")]):t._e(),2==a.row.isupload?e("span",[t._v("进行中")]):t._e(),3==a.row.isupload?e("span",[t._v("待结项")]):t._e(),4==a.row.isupload?e("span",[t._v("已结项")]):t._e()])]}}])}),e("el-table-column",{attrs:{prop:"operation",width:"300",align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"operations"},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.scheduleDetail(a.row.courseId,a.row.typeid)}}},[t._v("进度详细")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.fundStatus(a.row.courseId)}}},[t._v("资金情况")]),e("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(e){return t.finish(a.row.courseId,a.row.title)}}},[t._v("结项")]),e("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(e){return t.amendFinish(a.row.courseId,a.row.title)}}},[t._v("修改结项")]),e("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"}},[t._v("已结项")])],1)]}}])})],1)],1),e("el-dialog",{staticClass:"endDialog",attrs:{title:"提示",visible:t.endDialog,width:"600px","before-close":t.init},on:{"update:visible":function(e){t.endDialog=e}}},[e("div",{staticClass:"deleteContent"},[t._v('"'+t._s(t.tit)+'"项目,是否确定完结?')]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.checkFundEndData.length>0,expression:"checkFundEndData.length>0"}],staticClass:"download checkActivity"},[e("span",{staticStyle:{color:"black"}},[t._v("剩余资金:")])]),e("div",{staticClass:"deleteContent1"},[t._v("活动完结报告")]),t._l(t.file,(function(a){return e("div",{key:a.fid,staticClass:"download"},[e("span",[t._v(t._s(a.fileName))]),e("div",{staticClass:"downloadBtn"},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.checkDelFile(a.url)}}},[t._v("删除文件")])],1)])})),e("el-progress",{directives:[{name:"show",rawName:"v-show",value:t.progress.show,expression:"progress.show"}],attrs:{percentage:t.progress.value,format:t.ProgressFormat}}),e("div",{staticClass:"addMoneyBtn",staticStyle:{"margin-left":"0"}},[e("div",{staticClass:"jia"},[t._v("+")]),t._v("添加 "),e("div",{attrs:{id:"upFile"}},[e("beUpload",{attrs:{navName:"上传文件",accept:t.accept,progress:t.progress},on:{getFile:t.getFile}})],1)]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:t.ending}},[t._v("确认提交")]),e("el-button",{staticClass:"AllDialogBtn",on:{click:t.init}},[t._v("取消")])],1)],2),e("el-dialog",{staticClass:"endDialog",attrs:{title:"提示",visible:t.NoReportActivity,width:"600px","before-close":t.init},on:{"update:visible":function(e){t.NoReportActivity=e}}},[e("div",{staticClass:"deleteContent"},[t._v('"'+t._s(t.tit)+'"项目')]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.checkActivityFinishData.length>0,expression:"checkActivityFinishData.length>0"}],staticClass:"download checkActivity"},[e("span",{staticStyle:{color:"black"}},[t._v("未完结活动:")]),t._l(t.checkActivityFinishData,(function(a,s){return e("span",{key:s},[t._v(t._s(a.title))])}))],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.checkFundFinishData.length>0,expression:"checkFundFinishData.length>0"}],staticClass:"download checkActivity"},[e("span",{staticStyle:{color:"black"}},[t._v("未完结资金:")])]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:t.init}},[t._v("确认")]),e("el-button",{staticClass:"AllDialogBtn",on:{click:t.init}},[t._v("取消")])],1)]),e("el-pagination",{staticClass:"paginations",attrs:{"current-page":t.table.currentPage,"page-size":t.table.packageSize,layout:" prev, pager, next",background:"",total:t.table.total},on:{"current-change":t.handleCurrentChange}})],1)},l=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pAHeader"},[e("div",{staticClass:"pAHeader1"},[t._v("项目管理")])])}],i=(a(7658),a(8716)),n={components:{beUpload:i.Z},data(){return{accept:"*",iid:"",selectText:"",endDialog:!1,DelFileDialog:!1,NoReportActivity:!1,loading:!1,tit:"",items:[],table:{total:0,packageSize:5,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:(new Date).getFullYear().toString()},file:[],checkActivityFinishData:[],checkFundFinishData:[],checkFundEndData:[]}},methods:{fundDetail(t){this.$router.push(`/makerfundDetails?Id=${t}`)},ProgressFormat(t){return 100==t?"100%":`${t}%`},checkDelFile(t){this.file=this.file.filter((e=>e.url!=t))},getFile(t){this.file.push(t),this.progress.show=!1},amendFinish(t,e){this.checkFundEndData=[],this.ajax.post(this.$store.state.api+"/UpdateAmendFinish",{uid:this.$store.state.userInfo.userid,pid:t}).then((a=>{console.log(a);let s=JSON.parse(a.data[0][0].endFile);this.file=s,this.tit=e,this.iid=t,this.endDialog=!0})).catch((t=>{console.log(t)}))},ending(){this.ajax.post(this.$store.state.api+"/UploadProjectManageFile",{uid:this.$store.state.userInfo.userid,cid:this.iid,file:JSON.stringify(this.file),state:3}).then((t=>{1==t.data?(this.$message.success("待结项成功"),this.endDialog=!1,this.progress.show=!1):this.$message.error("待结项失败"),this.getData()}),(t=>{console.log(t)})),this.endDialog=!1},scheduleDetail(t,e){this.$router.push(`/ProjectManagementMain?Id=${e}&pid=${t}`)},fundStatus(t){this.$router.push(`/ProjectManagementFundDetail?pid=${t}`)},init(){this.endDialog=!1,this.NoReportActivity=!1},finish(t,e){this.checkActivityFinishData=[],this.checkFundFinishData=[],this.checkFundEndData=[],this.ajax.get(this.$store.state.api+"/GetActivityNoReportByPId",{uid:this.$store.state.userInfo.userid,pid:t}).then((a=>{a.data[0].length>0||a.data[1].length>0?(this.checkActivityFinishData=a.data[0],this.checkFundFinishData=a.data[1],this.tit=e,this.NoReportActivity=!0):(this.checkFundEndData=a.data[2].filter((t=>t.fund!=t.usedFund)),this.iid=t,this.tit=e,this.endDialog=!0,this.file=[])})).catch((t=>{console.log(t)}))},handleCurrentChange(t){this.table.currentPage=t,this.getData()},getData(){this.loading=!0;let t={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:this.selectText,page:this.table.currentPage,lim:this.table.packageSize};this.ajax.get(this.$store.state.api+"/SelectAllProjectManagement",t).then((t=>{let e=t.data;if(console.log(e),0==e[0].length&&0!=e[5][0]["total"]&&1!=this.table.currentPage)return this.table.currentPage=1,this.getData();let a=this.options;this.items=e[0],a.projectFilter=e[1],a.department=e[2],a.sort=e[3],a.person=e[4],a.yearData=e[6],0==a.yearData.filter((t=>t["time"]==(new Date).getFullYear().toString())).length&&a.yearData.push({time:(new Date).getFullYear().toString()}),this.table.total=e[5][0].total,this.loading=!1}),(t=>{console.log(t)}))}},watch:{},mounted(){this.getData()}},o=n,r=a(1001),c=(0,r.Z)(o,s,l,!1,null,null,null),d=c.exports}}]);
  2. //# sourceMappingURL=596.d77bb990.js.map