12 |
- "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[3177],{33177:function(t,e,l){l.r(e),l.d(e,{default:function(){return c}});var a=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"projectSettlement"},[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.person,callback:function(e){t.$set(t.selectInp,"person",e)},expression:"selectInp.person"}},[e("el-option",{attrs:{label:"所有负责人",value:""}}),t._l(t.options.person,(function(t,l){return e("el-option",{key:l,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.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:"ProjectManagementQuery"},[e("el-input",{attrs:{placeholder:"请输入项目名称/编号"},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}}),e("el-button",{staticClass:"btn",attrs:{type:"primary",size:"mini"},on:{click:t.getData}},[t._v("查询")])],1)]),e("div",[e("span",{staticStyle:{"font-size":"12px"}},[t._v("共 "+t._s(t.table.total)+" 条")]),e("el-table",{ref:"multipleTable",staticClass:"fontSize",attrs:{data:t.tableData,"tooltip-effect":"dark","header-cell-style":{background:"#f2f2f2",color:"#000"}},on:{"cell-click":t.cellProjectClick,"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{prop:"ProjectNo",label:"项目编号",align:"center","min-width":"7%"}}),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":"10%"}}),e("el-table-column",{attrs:{prop:"name",label:"所在部门",align:"center","min-width":"10%"}}),e("el-table-column",{attrs:{prop:"fund",label:"预算总经费(万)",align:"center","min-width":"10%"}}),e("el-table-column",{attrs:{prop:"time",label:"结项时间",align:"center","min-width":"12%"}}),e("el-table-column",{attrs:{prop:"phone",label:"联系电话",align:"center","min-width":"10%"},scopedSlots:t._u([{key:"default",fn:function(l){return[e("div",[t._v(" "+t._s(""==l.row.phone||null==l.row.phone?"-":l.row.phone)+" ")])]}}])}),e("el-table-column",{attrs:{prop:"endProject",label:"状态",align:"center","min-width":"8%"},scopedSlots:t._u([{key:"default",fn:function(l){return[e("div",[3==l.row.isupload?e("span",[t._v("待结项")]):t._e(),4==l.row.isupload?e("span",[t._v("已结项")]):t._e()])]}}])}),e("el-table-column",{attrs:{prop:"operation",label:"操作",width:"300",align:"center"},scopedSlots:t._u([{key:"default",fn:function(l){return[e("div",{staticClass:"operations"},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.details(l.row)}}},[t._v("查看详情")]),3==l.row.isupload?e("el-button",{staticStyle:{width:"73.3px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.audit(l.row.courseId,l.row.title)}}},[t._v("确认结项")]):t._e(),4==l.row.isupload?e("el-button",{staticStyle:{"background-color":"#c8c9cc","border-color":"#c8c9cc",cursor:"no-drop"},attrs:{type:"info",disabled:"",size:"mini"}},[t._v("已完结")]):t._e(),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.edit(l.row.courseId,l.row.typeid)}}},[t._v("成果查看")])],1)]}}])})],1)],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}}),e("el-dialog",{staticClass:"projectApplicationfundAddDialog",attrs:{title:"提示",visible:t.submitHint,width:"600px","before-close":t.init},on:{"update:visible":function(e){t.submitHint=e}}},[e("div",{staticClass:"deleteContent"},[t._v("确定提交“"+t._s(t.tit?t.tit:"")+"”结项吗?提交后将不能修改内容,等待管理员审核结项结果。 ")]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:t.submitAll}},[t._v("确认")]),e("el-button",{staticClass:"AllDialogBtn",attrs:{size:"small"},on:{click:t.init}},[t._v("取消")])],1)])],1)},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pAHeader"},[e("div",{staticClass:"pAHeader1"},[t._v("项目结项")])])}],i=(l(57658),{data(){return{submitHint:!1,loading:!1,input:"",iid:"",tit:"",options:{projectFilter:[],department:[],sort:[],person:[],state:[{value:"",label:"全部"},{value:3,label:"待结项"},{value:4,label:"已结项"}]},table:{total:0,packageSize:8,currentPage:1},tableData:[],selectInp:{filter:"",department:"",sort:"",person:"",state:""}}},methods:{init(){this.submitHint=!1},audit(t,e){this.iid=t,this.tit=e,this.submitHint=!0},submitAll(){let t={uid:this.$store.state.userInfo.userid,pid:this.iid};this.ajax.post(this.$store.state.api+"/UpdateSettlementEndProject",t).then((t=>{this.$message.success("结项成功"),this.submitHint=!1,this.getData()}),(t=>{console.log(t)}))},handleCurrentChange(t){this.table.currentPage=t,this.getData()},getData(){if(this.loading)return;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.person,st:this.selectInp.state,inp:encodeURIComponent(this.input),page:this.table.currentPage,lim:this.table.packageSize};this.ajax.get(this.$store.state.api+"/SelectAllProjectSettlement",t).then((t=>{let e=t.data,l=this.options;console.log(e),this.tableData=e[0],l.projectFilter=e[1],l.department=e[2],l.sort=e[3],l.person=e[4],this.table.total=e[5][0].total,this.loading=!1}),(t=>{console.log(t)}))},edit(t,e){window.open(`/resultShowDetail?pid=${t}&tid=${e}`)},details(t){this.$router.push(`/projectSettlementDetailMain?pid=${t["courseId"]}&tid=${t["typeid"]}`)},handleSelectionChange(t){this.multipleSelection=t},cellProjectClick(t,e,l,a){"operation"!=e.property&&this.details(t)}},mounted(){},activated(){this.getData()}}),n=i,o=l(43736),r=(0,o.Z)(n,a,s,!1,null,"35f7baaf",null),c=r.exports}}]);
- //# sourceMappingURL=3177.e19a29cc.js.map
|