"use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[1980],{31980:function(t,e,a){a.r(e),a.d(e,{default:function(){return c}});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:"makerfund"},[t._m(0),e("hr"),e("div",{staticClass:"selectInp"},[e("div",{staticClass:"manageSelects"},[e("div",{staticClass:"selectsBlock"},[e("div",{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.filterSelects,(function(t){return e("el-option",{key:null==t.aid?t.pid:t.aid,attrs:{label:null==t.atit?t.ptit:t.atit,value:null==t.aid?t.pid:t.aid}})}))],2)],1),e("div",{staticClass:"selectsBlock"},[e("div",{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.departmentSelect,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],2)],1),e("div",{staticClass:"selectsBlock"},[e("div",{staticClass:"selectLabel"},[t._v("分类")]),e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getData},model:{value:t.selectInp.type,callback:function(e){t.$set(t.selectInp,"type",e)},expression:"selectInp.type"}},[e("el-option",{attrs:{label:"所有分类",value:""}}),t._l(t.typeSelects,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],2)],1),e("div",{staticClass:"selectsBlock"},[e("div",{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.leaderSelects,(function(t,a){return e("el-option",{key:a,attrs:{label:null==t.ppl?t.apl:t.ppl,value:null==t.ppl?t.apl:t.ppl}})}))],2)],1),e("div",{staticClass:"selectsBlock"},[e("div",{staticClass:"selectLabel"},[t._v("状态")]),e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getData},model:{value:t.selectInp.status,callback:function(e){t.$set(t.selectInp,"status",e)},expression:"selectInp.status"}},[e("el-option",{attrs:{label:"所有状态",value:""}}),t._l(t.statusSelects,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],2)],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",stripe:"","header-cell-style":{background:"#f2f2f2",color:"#000"}}},[e("el-table-column",{attrs:{prop:"fNo",label:"资金编号",align:"center"}}),e("el-table-column",{attrs:{label:"项目(活动)名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[e("span",[a.row.ptit?e("span",[t._v(t._s(a.row.ptit))]):t._e(),a.row.atit?e("span",[t._v(t._s(a.row.atit))]):t._e()])])]}}])}),e("el-table-column",{attrs:{align:"center",label:"负责人"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[e("span",[a.row.ppl?e("span",[t._v(t._s(a.row.ppl))]):t._e(),a.row.apl?e("span",[t._v(t._s(a.row.apl))]):t._e()])])]}}])}),e("el-table-column",{attrs:{align:"center",prop:"type",label:"项目类型"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[0==a.row.type?e("span",[t._v("创客空间")]):t._e(),1==a.row.type?e("span",[t._v("学生创客")]):t._e(),2==a.row.type?e("span",[t._v("活动创客")]):t._e()])]}}])}),e("el-table-column",{attrs:{prop:"applyfund",align:"center",label:"申请经费(元)"}}),e("el-table-column",{attrs:{prop:"actualuse",align:"center",label:"实际使用(元)"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[e("span",[t._v(t._s(null==a.row.actualuse?"":a.row.actualuse))])])]}}])}),e("el-table-column",{attrs:{prop:"name",align:"center",label:"所在部门"}}),e("el-table-column",{attrs:{prop:"status",align:"center",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[0==a.row.state?e("span",[t._v("未审核")]):t._e(),1==a.row.state?e("span",[t._v("待审核")]):t._e(),2==a.row.state?e("span",[t._v("已审核")]):t._e(),3==a.row.state?e("span",[t._v("已报销")]):t._e()])]}}])}),e("el-table-column",{attrs:{prop:"time",align:"center",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",[t._v(" "+t._s(a.row.time.split(" ")[0])),e("br"),t._v(t._s(a.row.time.split(" ")[1])+" ")])]}}])}),e("el-table-column",{attrs:{prop:"operation",align:"center",width:"380",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.details(a.row.fid,a.row.atit,a.row.ptit,a.row.paid)}}},[t._v("查看详情")]),0==a.row.state?e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.Audit(a.row,0)}}},[t._v("提交")]):t._e(),1==a.row.state?e("el-button",{staticClass:"disa",attrs:{type:"primary",size:"mini"}},[t._v("已提交")]):t._e(),1!=a.row.state&&0!=a.row.state?e("el-button",{staticClass:"disa",attrs:{type:"primary",size:"mini"}},[t._v("已提交")]):t._e(),0==a.row.state&&0==t.$store.state.userInfo.type?e("el-button",{staticClass:"disa",attrs:{type:"primary",size:"mini"}},[t._v("审核")]):t._e(),1==a.row.state&&0==t.$store.state.userInfo.type?e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.Audit(a.row,1)}}},[t._v("审核")]):t._e(),2==a.row.state&&0==t.$store.state.userInfo.type?e("el-button",{staticClass:"disa",attrs:{type:"primary",size:"mini"}},[t._v("已审核")]):t._e(),3==a.row.state&&0==t.$store.state.userInfo.type?e("el-button",{staticClass:"disa",attrs:{type:"primary",size:"mini"}},[t._v("已审核")]):t._e(),0==a.row.state?e("el-button",{staticClass:"disa",attrs:{type:"primary",size:"mini"}},[t._v("完结")]):t._e(),1==a.row.state?e("el-button",{staticClass:"disa",attrs:{type:"primary",size:"mini"}},[t._v("完结")]):t._e(),2==a.row.state?e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.endDialogShow(a.row.fid)}}},[t._v("完结")]):t._e(),3==a.row.state?e("el-button",{staticClass:"disa",attrs:{type:"primary",size:"mini"}},[t._v("已报销")]):t._e()],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:"pageSubmitData",attrs:{title:"立项审核",visible:t.dialogVisible,width:"750px","before-close":t.init},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("div",{staticClass:"diaTit1",staticStyle:{"margin-top":"0"}},[e("div",{staticClass:"spans"},[t._v("项目名称:")]),e("div",{staticStyle:{"margin-right":"30px",color:"#adadad"}},[t._v(" "+t._s(t.ProjectFundData.ptit)+" ")]),e("div",{staticClass:"spans"},[t._v("项目负责人:")]),e("div",{staticStyle:{color:"#adadad"}},[t._v(t._s(t.ProjectFundData.ppl))])]),e("div",{staticClass:"diaTit1"},[e("div",{staticClass:"spans1"},[t._v("所在部门")]),e("div",{staticClass:"inp"},[e("el-input",{attrs:{disabled:"",placeholder:"信通学院"},model:{value:t.ProjectFundData.name,callback:function(e){t.$set(t.ProjectFundData,"name",e)},expression:"ProjectFundData.name"}})],1)]),e("div",{staticClass:"diaTit1"},[e("div",{staticClass:"spans1"},[t._v("使用经费")]),e("div",{staticClass:"inp"},[e("el-input",{attrs:{disabled:""},model:{value:t.ProjectFundData.actualuse,callback:function(e){t.$set(t.ProjectFundData,"actualuse",e)},expression:"ProjectFundData.actualuse"}})],1)]),e("div",{staticClass:"diaTit1"},[e("div",{staticClass:"spans1"},[t._v("联系电话")]),e("div",{staticClass:"inp"},[e("el-input",{attrs:{disabled:""},model:{value:t.ProjectFundData.phone,callback:function(e){t.$set(t.ProjectFundData,"phone",e)},expression:"ProjectFundData.phone"}})],1)]),e("div",{staticClass:"diaTit1"},[e("div",{staticClass:"spans1"},[t._v("项目类型")]),e("div",{staticClass:"inp"},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"个人创客"},model:{value:t.ProjectFundData.type,callback:function(e){t.$set(t.ProjectFundData,"type",e)},expression:"ProjectFundData.type"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[0==t.isManager?e("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:function(e){return t.auditPass(1)}}},[t._v("提交")]):t._e(),1==t.isManager?e("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:function(e){return t.auditPass(2)}}},[t._v("通过")]):t._e(),1==t.isManager?e("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:function(e){return t.auditPass(0)}}},[t._v("撤回")]):t._e(),e("el-button",{staticClass:"AllDialogBtn",on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")])],1)]),e("el-dialog",{staticClass:"pageSubmitData",attrs:{title:"提示",visible:t.dialogVisible1,width:"600px"},on:{"update:visible":function(e){t.dialogVisible1=e}}},[e("div",{staticClass:"deleteContent"},[t._v("确定完结?")]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:t.confirmEnd}},[t._v("确认")]),e("el-button",{staticClass:"AllDialogBtn",on:{click:function(e){t.dialogVisible1=!1}}},[t._v("取消")])],1)])],1)},l=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pAHeader"},[e("div",{staticClass:"pAHeader1"},[t._v("事后汇总")])])}],i=(a(57658),{data(){return{selectInp:{filter:"",department:"",type:"",leader:"",status:""},loading:!1,ProjectFundData:{},projectFundState:"",isManager:"",dialogVisible1:!1,dialogVisible:!1,revocation:!1,createFromDialog:!1,projectFilter:[],textarea:"",input:"",value:"",options:[{value:0,label:"空间创客"},{value:1,label:"学生创客"},{value:2,label:"活动创客"}],status:"",table:{total:0,packageSize:8,currentPage:1},filterSelects:[],departmentSelect:[],typeSelects:[{value:0,label:"空间创客"},{value:1,label:"学生创客"},{value:2,label:"活动创客"}],leaderSelects:[],statusSelects:[{value:0,label:"未审核"},{value:1,label:"待审核"},{value:2,label:"待报销"},{value:3,label:"已报销"}],tableData:[]}},methods:{Audit(t,e){if(console.log(t),0==e&&0==t.actualuse)return null!=t.atit?this.$router.push(`/makerfundDetails?Id=${t.fid}&tit=${t.atit}&paid=${t.paid}`):(this.$router.push(`/makerfundDetails?Id=${t.fid}&tit=${t.ptit}&paid=${t.paid}`),this.$message.error("请填写实际使用金额"));this.isManager=e,this.ProjectFundData=t,this.dialogVisible=!0},auditPass(t){let e={uid:this.$store.state.userInfo.userid,fid:this.ProjectFundData.fid,status:t};this.ajax.post(this.$store.state.api+"/UpdateMakerFundState",e).then((e=>{this.dialogVisible=!1,e.data?(0==t?this.$message.success("已撤回"):1==t?this.$message.success("提交成功"):this.$message.success("已通过"),this.getData()):this.$message.error("审核失败")}),(t=>{console.log(t)}))},endDialogShow(t){this.dialogVisible1=!0,this.projectFundState=t},confirmEnd(){let t={uid:this.$store.state.userInfo.userid,fid:this.projectFundState,status:3};this.ajax.post(this.$store.state.api+"/UpdateMakerFundState",t).then((t=>{this.dialogVisible1=!1,t.data?(this.$message.success("完结成功"),this.getData()):this.$message.error("完结失败")}),(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,filter:this.selectInp.filter,department:this.selectInp.department,type:this.selectInp.type,leader:this.selectInp.leader,status:this.selectInp.status,inp:this.input,page:this.table.currentPage,lim:this.table.packageSize};console.log(t),this.ajax.get(this.$store.state.api+"/selectAllFundApply",t).then((t=>{console.log(t);let e=t.data;console.log(e);let a=0;e[0].length>0&&(e[0].forEach((t=>{t.applyfund=JSON.parse(t.applyfund);for(let e in t.applyfund)a+=1*t.applyfund[e];t.applyfund=a,a=0})),e[0].forEach((t=>{t.actualuse=JSON.parse(t.actualuse);for(let e in t.actualuse)a+=1*t.actualuse[e];t.actualuse=a,a=0})),this.tableData=e[0],this.filterSelects=e[1],this.departmentSelect=e[2],this.leaderSelects=e[3],this.table.total=e[0][0].num),this.loading=!1}),(t=>{console.log(t)}))},init(){this.dialogVisible=!1,this.createFromDialog=!1},details(t,e,a,s){if(null!=e)return this.$router.push(`/makerfundDetails?Id=${t}&tit=${e}&paid=${s}`);console.log(111),this.$router.push(`/makerfundDetails?Id=${t}&tit=${a}&paid=${s}`)}},mounted(){this.getData()}}),n=i,r=a(43736),o=(0,r.Z)(n,s,l,!1,null,"28f4ef6c",null),c=o.exports}}]); //# sourceMappingURL=1980.c9234789.js.map