12 |
- "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[4008],{69016:function(e,t,l){l.r(t),l.d(t,{default:function(){return n}});l(57658);var a=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("div",{staticClass:"vfpHeader"},[t("div",{staticClass:"titleOne"},[e._v("活动资金详细")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.$router.push("/makerfund")}}},[e._v("返回")])],1),t("hr"),t("div",{staticClass:"Apply1"},[t("div",{staticClass:"inpInterval"},[e._v("项目名称")]),t("el-select",{staticStyle:{width:"30%"},attrs:{disabled:"",placeholder:"请选择"},model:{value:e.projectName,callback:function(t){e.projectName=t},expression:"projectName"}},e._l(e.projectFilter,(function(e){return t("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),e._m(0),t("hr"),t("table",{staticClass:"table",attrs:{border:"1",cellspacing:"0"}},[t("tr",[t("th",{attrs:{colspan:"2"}},[e._v("经济支出类别")]),t("th",[e._v("预算")]),t("th",[e._v("已支付")]),t("th",{staticStyle:{position:"relative"}},[e._v(" 本次申请"),t("br"),t("div",{staticStyle:{width:"100px",position:"absolute",left:"50%",transform:"translate(-50%)",bottom:"1px"}},[e._v(" "+e._s(e.create_at)+" ")])]),t("th",{staticStyle:{position:"relative"}},[e._v(" 实际使用"),t("br"),t("div",{staticStyle:{width:"100px",position:"absolute",left:"50%",transform:"translate(-50%)",bottom:"1px"}},[e._v(" "+e._s(e.endTime)+" ")])]),t("th",[e._v("余额")]),t("th",{attrs:{colspan:"3"}},[e._v("备注")])]),e._l(e.fundList,(function(l,a){return t("tr",{key:a},[t("td",{attrs:{colspan:"2"}},[e._v(e._s(l.fundName))]),t("td",[e._v(" "+e._s(l.budget)+" ")]),t("td",[e._v(" "+e._s(l.havePaid)+" ")]),t("td",[e._v(" "+e._s(l.thisApply)+" ")]),e.state?e._e():t("td",{staticStyle:{"background-color":"rgb(234, 252, 186)"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{type:"number",autosize:"",resize:"none",onkeypress:"return (/[\\d]/.test(String.fromCharCode(event.keyCode)))",placeholder:"请输入金额"},on:{change:function(t){return e.isMoreApply(a)}},model:{value:l.actualuse,callback:function(t){e.$set(l,"actualuse",t)},expression:"item.actualuse"}})],1),e.state>0?t("td",[e._v(" "+e._s(l.actualuse)+" ")]):e._e(),t("td",[e._v(" "+e._s(e.state>0?l.budget-l.havePaid:l.budget-l.havePaid-l.actualuse)+" ")]),t("td",{staticStyle:{"box-sizing":"border-box",padding:"0 10px"},attrs:{colspan:"3"}},[e._v(" "+e._s(l.remark)+" ")])])})),t("tr",[t("td",[e._v("事由")]),t("td",{staticClass:"textLeft",attrs:{colspan:"10"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:6,maxRows:20},resize:"none",placeholder:""},model:{value:e.intro,callback:function(t){e.intro=t},expression:"intro"}})],1)]),t("tr",e._l(9,(function(e,l){return t("td",{key:l,staticStyle:{border:"none"}})})),0)],2),t("div",{staticClass:"baseBtn"},[t("div",{staticClass:"blockWidth"},[t("el-button",{attrs:{type:"primary"},on:{click:e.download}},[e._v("生成表单")]),e.state?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitData}},[e._v("提交")]),e.state>0?t("el-button",{staticClass:"disa",attrs:{type:"primary"}},[e._v("提交")]):e._e()],1)]),t("el-dialog",{staticClass:"pageSubmitData",attrs:{title:"生成Excel",visible:e.downLoadExcelDig,width:"600px"},on:{"update:visible":function(t){e.downLoadExcelDig=t}}},[t("span",{staticClass:"deleteContent"},[e._v("确定生成Excel?")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.downLoadExcel}},[e._v("确认")]),t("el-button",{staticClass:"AllDialogBtn",on:{click:function(t){e.downLoadExcelDig=!1}}},[e._v("取消")])],1)]),t("el-dialog",{staticClass:"pageSubmitData",attrs:{title:"提交",visible:e.submitDataDig,width:"600px"},on:{"update:visible":function(t){e.submitDataDig=t}}},[t("span",{staticClass:"deleteContent"},[e._v("确定提交?")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"AllDialogBtn",attrs:{type:"primary"},on:{click:e.submitAll}},[e._v("确认")]),t("el-button",{staticClass:"AllDialogBtn",on:{click:function(t){e.submitDataDig=!1}}},[e._v("取消")])],1)])],1)},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"tabTit"},[t("div",[t("p",[e._v("经费支出类别(单位:元)")])])])}],u=(l(16079),l(11057)),i=l(42851),C={components:{BeUpload:u.Z},data(){return{loading:!1,projectFilter:[],projectName:"",downLoadExcelDig:!1,submitDataDig:!1,allFund:0,fundList:[{fundName:"小型仪器设备费",budget:"",havePaid:0,thisApply:"",actualuse:"",remark:"项目开展所需的小型专用仪器设备、工具、配件购置或租赁费用。"},{fundName:"材料费",budget:"",havePaid:0,thisApply:"",actualuse:"",remark:"项目开展需消耗的各种原材料、辅助材料等低值易耗品的采购费用。"},{fundName:"测试化验加工费",budget:"",havePaid:0,thisApply:"",actualuse:"",remark:"项目开展过程中支付给外单位的检验、测试、化验、计算、分析及加工费等费用。"},{fundName:"项目协作费",budget:"",havePaid:0,thisApply:"",actualuse:"",remark:"按合同规定支付给协作单位的费用"},{fundName:"项目成功鉴定费",budget:"",havePaid:0,thisApply:"",actualuse:"",remark:"学术会务费、评审费、鉴定费、成果集制作费等费用。"},{fundName:"参展参赛费",budget:"",havePaid:0,thisApply:"",actualuse:"",remark:"参加创客展会、竞赛等所需的报名费、展位费、布展费、宣传推广费及差旅费等费用。"},{fundName:"创客交流活动费",budget:"",havePaid:0,thisApply:"",actualuse:"",remark:"创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。"},{fundName:"知识产权事务费",budget:"",havePaid:0,thisApply:"",actualuse:"",remark:"论文版面费、专利及其他知识产权事务等费用。"}],haveFund:"",intro:"",tit:"",ty:"",state:0,endTime:"",create_at:""}},methods:{getData(){if(this.loading)return;this.loading=!0;let e={uid:this.$store.state.userInfo.userid,fid:this.$route.query["Id"],aid:this.$route.query["paid"]};this.ajax.get(this.$store.state.api+"/selectActivityFundDetail",e).then((e=>{let t=e.data;console.log(t);let l=JSON.parse(t[0][0]["applyfund"]),a="";a=null!=t[0][0]["af"]?JSON.parse(t[0][0]["af"]):JSON.parse(t[0][0]["pf"]);let s=JSON.parse(t[0][0]["actualuse"]),u=e["data"][1].filter((e=>null!=e.actualuse));u&&u.forEach((e=>{let t=JSON.parse(e["actualuse"]);this.fundList[0]["havePaid"]+=Number(t["device"]),this.fundList[1]["havePaid"]+=Number(t["Material"]),this.fundList[2]["havePaid"]+=Number(t["processing"]),this.fundList[3]["havePaid"]+=Number(t["Collaboration"]),this.fundList[4]["havePaid"]+=Number(t["APPRAISAL"]),this.fundList[5]["havePaid"]+=Number(t["entery"]),this.fundList[6]["havePaid"]+=Number(t["activities"]),this.fundList[7]["havePaid"]+=Number(t["Transaction"])})),this.fundList[0].thisApply=l.device,this.fundList[1].thisApply=l.Material,this.fundList[2].thisApply=l.processing,this.fundList[3].thisApply=l.Collaboration,this.fundList[4].thisApply=l.APPRAISAL,this.fundList[5].thisApply=l.entery,this.fundList[6].thisApply=l.activities,this.fundList[7].thisApply=l.Transaction,this.fundList[0].budget=a.device,this.fundList[1].budget=a.Material,this.fundList[2].budget=a.processing,this.fundList[3].budget=a.Collaboration,this.fundList[4].budget=a.APPRAISAL,this.fundList[5].budget=a.entery,this.fundList[6].budget=a.activities,this.fundList[7].budget=a.Transaction,null!=t[1][0]["actualuse"]&&(this.fundList[0].actualuse=s.device,this.fundList[1].actualuse=s.Material,this.fundList[2].actualuse=s.processing,this.fundList[3].actualuse=s.Collaboration,this.fundList[4].actualuse=s.APPRAISAL,this.fundList[5].actualuse=s.entery,this.fundList[6].actualuse=s.activities,this.fundList[7].actualuse=s.Transaction),this.intro=t[0][0].intro,this.state=t[0][0].state,this.create_at=t[0][0].createTime,console.log(this.create_at),this.endTime=t[0][0].endTime,this.loading=!1}),(e=>{console.log(e)}))},download(){this.downLoadExcelDig=!0},downLoadExcel(){(0,i.G)(this.fundList,this.intro,this.tit,this.ty),this.downLoadExcelDig=!1},submitData(){if(!this.projectName)return this.$message.error("请选择项目名称");this.allFund=0,this.fundList.forEach((e=>{this.allFund+=1*e.budget})),console.log(this.allFund);let e=[this.fundList[0].actualuse,this.fundList[1].actualuse,this.fundList[2].actualuse,this.fundList[3].actualuse,this.fundList[4].actualuse,this.fundList[5].actualuse,this.fundList[6].actualuse,this.fundList[7].actualuse],t=[this.fundList[0].havePaid,this.fundList[1].havePaid,this.fundList[2].havePaid,this.fundList[3].havePaid,this.fundList[4].havePaid,this.fundList[5].havePaid,this.fundList[6].havePaid,this.fundList[7].havePaid],l=e.reduce(((e,t,l,a)=>e+1*t),0),a=t.reduce(((e,t,l,a)=>e+1*t),0);return 0==l?this.$message.error("请输入实际使用金额"):l+a>this.allFund?this.$message.error("申请金额已大于预算"):void(this.submitDataDig=!0)},submitAll(){let e={uid:this.$store.state.userInfo.userid,fid:this.$route.query["Id"],intro:this.intro,f:JSON.stringify({device:this.fundList[0].actualuse,Material:this.fundList[1].actualuse,processing:this.fundList[2].actualuse,Collaboration:this.fundList[3].actualuse,APPRAISAL:this.fundList[4].actualuse,entery:this.fundList[5].actualuse,activities:this.fundList[6].actualuse,Transaction:this.fundList[7].actualuse})};this.ajax.post(this.$store.state.api+"/updateActivityFundDetail",e).then((e=>{console.log(e),1==e.data?(this.$message.success("提交成功"),this.submitDataDig=!1,this.$router.push("/makerfund")):this.$message.error("提交失败")}),(e=>{console.log(e)}))},isMoreApply(e){if(this.fundList[e].budget-this.fundList[e].actualuse<0)return this.$message({message:"实际使用不能超过余额!",type:"warning"}),void(this.fundList[e].actualuse=0)}},mounted(){this.getData(),this.projectName=this.$route.query["tit"],console.log(this.$route.query["Id"]),console.log(this.$route.query["tit"]),console.log(this.$route.query["paid"])}},r=C,g=l(43736),o=(0,g.Z)(r,a,s,!1,null,"387ac848",null),n=o.exports},42851:function(e,t,l){l.d(t,{A:function(){return g},G:function(){return o}});l(99611);var a=l(24973),s=l.n(a),u=l(66154),i=l.n(u),C=l(750),r=l.n(C);l(41401);function g(e,t,l,a){r().getBinaryContent("file/学校创客专项资金使用申请表 (1).xlsx",((u,C)=>{if(u)return void console.error(u);const r=new(s().Workbook);r.xlsx.load(C).then((()=>{let s=r.getWorksheet(1);return s.getCell("G2").value=`项目类型: 个人创客 ${1==a?"√":"□"} 创客活动 ${0==a?"√":"□"} `,s.getCell("G3").value=`项目名称:${l}`,s.getCell("C7").value=e[0].budget,s.getCell("D7").value=e[0].havePaid,s.getCell("E7").value=e[0].thisApply,s.getCell("G7").value=e[0].remark,s.getCell("C8").value=e[1].budget,s.getCell("D8").value=e[1].havePaid,s.getCell("E8").value=e[1].thisApply,s.getCell("G8").value=e[1].remark,s.getCell("C9").value=e[2].budget,s.getCell("D9").value=e[2].havePaid,s.getCell("E9").value=e[2].thisApply,s.getCell("G9").value=e[2].remark,s.getCell("C10").value=e[3].budget,s.getCell("D10").value=e[3].havePaid,s.getCell("E10").value=e[3].thisApply,s.getCell("G10").value=e[3].remark,s.getCell("C13").value=e[4].budget,s.getCell("D13").value=e[4].havePaid,s.getCell("E13").value=e[4].thisApply,s.getCell("G13").value=e[4].remark,s.getCell("C14").value=e[5].budget,s.getCell("D14").value=e[5].havePaid,s.getCell("E14").value=e[5].thisApply,s.getCell("G14").value=e[5].remark,s.getCell("C15").value=e[6].budget,s.getCell("D15").value=e[6].havePaid,s.getCell("E15").value=e[6].thisApply,s.getCell("G15").value=e[6].remark,s.getCell("C16").value=e[7].budget,s.getCell("D16").value=e[7].havePaid,s.getCell("E16").value=e[7].thisApply,s.getCell("G16").value=e[7].remark,s.getCell("B18").value=t,s.getCell("B18").alignment={vertical:"top",horizontal:"left"},s.getCell("F7").value={formula:"C7-D7-E7",result:s.getCell("C7")-s.getCell("D7")-s.getCell("E7")},s.getCell("F8").value={formula:"C8-D8-E8",result:s.getCell("C8")-s.getCell("D8")-s.getCell("E8")},s.getCell("F9").value={formula:"C9-D9-E9",result:s.getCell("C9")-s.getCell("D9")-s.getCell("E9")},s.getCell("F10").value={formula:"C10-D10-E10",result:s.getCell("C10")-s.getCell("D10")-s.getCell("E10")},s.getCell("F11").value={formula:"C11-D11-E11",result:s.getCell("C11")-s.getCell("D11")-s.getCell("E11")},s.getCell("C6").value={formula:"SUM(C7:C11)",result:1*s.getCell("C7")+1*s.getCell("C8")+1*s.getCell("C9")+1*s.getCell("C10")+1*s.getCell("C11")},s.getCell("D6").value={formula:"SUM(D7:D11)",result:1*s.getCell("D7")+1*s.getCell("D8")+1*s.getCell("D9")+1*s.getCell("D10")+1*s.getCell("D11")},s.getCell("E6").value={formula:"SUM(E7:E11)",result:1*s.getCell("E7")+1*s.getCell("E8")+1*s.getCell("E9")+1*s.getCell("E10")+1*s.getCell("E11")},s.getCell("F6").value={formula:"C6-D6-E6",result:1*s.getCell("C6")-1*s.getCell("D6")-1*s.getCell("E6")},s.getCell("F13").value={formula:"C13-D13-E13",result:s.getCell("C13")-s.getCell("D13")-s.getCell("E13")},s.getCell("F14").value={formula:"C14-D14-E14",result:s.getCell("C14")-s.getCell("D14")-s.getCell("E14")},s.getCell("F15").value={formula:"C15-D15-E15",result:s.getCell("C15")-s.getCell("D15")-s.getCell("E15")},s.getCell("F16").value={formula:"C16-D16-E16",result:s.getCell("C16")-s.getCell("D16")-s.getCell("E16")},s.getCell("F17").value={formula:"C17-D17-E17",result:s.getCell("C17")-s.getCell("D17")-s.getCell("E17")},s.getCell("C12").value={formula:"SUM(C13:C17)",result:1*s.getCell("C13")+1*s.getCell("C14")+1*s.getCell("C15")+1*s.getCell("C16")+1*s.getCell("C17")},s.getCell("D12").value={formula:"SUM(D13:D17)",result:1*s.getCell("D13")+1*s.getCell("D14")+1*s.getCell("D15")+1*s.getCell("D16")+1*s.getCell("D17")},s.getCell("E12").value={formula:"SUM(E13:E17)",result:1*s.getCell("E13")+1*s.getCell("E14")+1*s.getCell("E15")+1*s.getCell("E16")+1*s.getCell("E17")},s.getCell("F12").value={formula:"C12-D12-E12",result:1*s.getCell("C12")-1*s.getCell("D12")-1*s.getCell("E12")},s.getCell("C5").value={formula:"SUM(C6+C12)",result:1*s.getCell("C6")+1*s.getCell("C12")},s.getCell("D5").value={formula:"SUM(D6+D12)",result:1*s.getCell("D6")+1*s.getCell("D12")},s.getCell("E5").value={formula:"SUM(E6+E12)",result:1*s.getCell("E6")+1*s.getCell("E12")},s.getCell("F5").value={formula:"SUM(F6+F12)",result:1*s.getCell("F6")+1*s.getCell("F12")},r.xlsx.writeBuffer()})).then((e=>{const t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});i().saveAs(t,"学校创客专项资金使用申请表.xlsx")}))}))}function o(e,t,l,a){r().getBinaryContent("file/附件 5 :学校创客专项资金使用申请表.xlsx",((u,C)=>{if(u)return void console.error(u);const r=new(s().Workbook);r.xlsx.load(C).then((()=>{let s=r.getWorksheet(1);return s.getCell("G2").value=`项目类型: 个人创客 ${1==a?"√":"□"} 创客活动 ${0==a?"√":"□"} `,s.getCell("G3").value=`项目名称:${l}`,s.getCell("C7").value=e[0].budget,s.getCell("D7").value=e[0].havePaid,s.getCell("E7").value=e[0].thisApply,s.getCell("F7").value=e[0].actualuse,s.getCell("H7").value=e[0].remark,s.getCell("C8").value=e[1].budget,s.getCell("D8").value=e[1].havePaid,s.getCell("E8").value=e[1].thisApply,s.getCell("F8").value=e[1].actualuse,s.getCell("H8").value=e[1].remark,s.getCell("C9").value=e[2].budget,s.getCell("D9").value=e[2].havePaid,s.getCell("E9").value=e[2].thisApply,s.getCell("F9").value=e[2].actualuse,s.getCell("H9").value=e[2].remark,s.getCell("C10").value=e[3].budget,s.getCell("D10").value=e[3].havePaid,s.getCell("E10").value=e[3].thisApply,s.getCell("F10").value=e[3].actualuse,s.getCell("H10").value=e[3].remark,s.getCell("C13").value=e[4].budget,s.getCell("D13").value=e[4].havePaid,s.getCell("E13").value=e[4].thisApply,s.getCell("F13").value=e[4].actualuse,s.getCell("H13").value=e[4].remark,s.getCell("C14").value=e[5].budget,s.getCell("D14").value=e[5].havePaid,s.getCell("E14").value=e[5].thisApply,s.getCell("F14").value=e[5].actualuse,s.getCell("H14").value=e[5].remark,s.getCell("C15").value=e[6].budget,s.getCell("D15").value=e[6].havePaid,s.getCell("E15").value=e[6].thisApply,s.getCell("F15").value=e[6].actualuse,s.getCell("H15").value=e[6].remark,s.getCell("C16").value=e[7].budget,s.getCell("D16").value=e[7].havePaid,s.getCell("E16").value=e[7].thisApply,s.getCell("F16").value=e[7].actualuse,s.getCell("H16").value=e[7].remark,s.getCell("B18").value=t,s.getCell("B18").alignment={vertical:"top",horizontal:"left"},s.getCell("G7").value={formula:"C7-D7-F7",result:s.getCell("C7")-s.getCell("D7")-s.getCell("F7")},s.getCell("G8").value={formula:"C8-D8-F8",result:s.getCell("C8")-s.getCell("D8")-s.getCell("F8")},s.getCell("G9").value={formula:"C9-D9-F9",result:s.getCell("C9")-s.getCell("D9")-s.getCell("F9")},s.getCell("G10").value={formula:"C10-D10-F10",result:s.getCell("C10")-s.getCell("D10")-s.getCell("F10")},s.getCell("G11").value={formula:"C11-D11-F11",result:s.getCell("C11")-s.getCell("D11")-s.getCell("F11")},s.getCell("C6").value={formula:"SUM(C7:C11)",result:1*s.getCell("C7")+1*s.getCell("C8")+1*s.getCell("C9")+1*s.getCell("C10")+1*s.getCell("C11")},s.getCell("D6").value={formula:"SUM(D7:D11)",result:1*s.getCell("D7")+1*s.getCell("D8")+1*s.getCell("D9")+1*s.getCell("D10")+1*s.getCell("D11")},s.getCell("E6").value={formula:"SUM(E7:E11)",result:1*s.getCell("E7")+1*s.getCell("E8")+1*s.getCell("E9")+1*s.getCell("E10")+1*s.getCell("E11")},s.getCell("F6").value={formula:"SUM(F7:F11)",result:1*s.getCell("F7")+1*s.getCell("F8")+1*s.getCell("F9")+1*s.getCell("F10")+1*s.getCell("F11")},s.getCell("G6").value={formula:"C6-D6-F6",result:1*s.getCell("C6")-1*s.getCell("D6")-1*s.getCell("F6")},s.getCell("G13").value={formula:"C13-D13-F13",result:s.getCell("C13")-s.getCell("D13")-s.getCell("F13")},s.getCell("G14").value={formula:"C14-D14-F14",result:s.getCell("C14")-s.getCell("D14")-s.getCell("F14")},s.getCell("G15").value={formula:"C15-D15-F15",result:s.getCell("C15")-s.getCell("D15")-s.getCell("F15")},s.getCell("G16").value={formula:"C16-D16-F16",result:s.getCell("C16")-s.getCell("D16")-s.getCell("F16")},s.getCell("G17").value={formula:"C17-D17-F17",result:s.getCell("C17")-s.getCell("D17")-s.getCell("F17")},s.getCell("C12").value={formula:"SUM(C13:C17)",result:1*s.getCell("C13")+1*s.getCell("C14")+1*s.getCell("C15")+1*s.getCell("C16")+1*s.getCell("C17")},s.getCell("D12").value={formula:"SUM(D13:D17)",result:1*s.getCell("D13")+1*s.getCell("D14")+1*s.getCell("D15")+1*s.getCell("D16")+1*s.getCell("D17")},s.getCell("E12").value={formula:"SUM(E13:E17)",result:1*s.getCell("E13")+1*s.getCell("E14")+1*s.getCell("E15")+1*s.getCell("E16")+1*s.getCell("E17")},s.getCell("F12").value={formula:"SUM(F13:F17)",result:1*s.getCell("F13")+1*s.getCell("F14")+1*s.getCell("F15")+1*s.getCell("F16")+1*s.getCell("F17")},s.getCell("G12").value={formula:"C12-D12-F12",result:1*s.getCell("C12")-1*s.getCell("D12")-1*s.getCell("F12")},s.getCell("C5").value={formula:"SUM(C6+C12)",result:1*s.getCell("C6")+1*s.getCell("C12")},s.getCell("D5").value={formula:"SUM(D6+D12)",result:1*s.getCell("D6")+1*s.getCell("D12")},s.getCell("E5").value={formula:"SUM(E6+E12)",result:1*s.getCell("E6")+1*s.getCell("E12")},s.getCell("F5").value={formula:"SUM(F6+F12)",result:1*s.getCell("F6")+1*s.getCell("F12")},s.getCell("G5").value={formula:"SUM(G6+G12)",result:1*s.getCell("G6")+1*s.getCell("G12")},r.xlsx.writeBuffer()})).then((e=>{const t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});i().saveAs(t,"学校创客专项资金使用申请表.xlsx")}))}))}},16079:function(e,t,l){l.d(t,{Z:function(){return i}});var a=l(36890),s=l(26125);const u={XM:"/getProjectNo",CX:"/getProjectNo",CY:"/getProjectNo",SJ:"/getProjectNo",HD:"/getActivityNo",ZJ:"/getFundNo"};function i(e="XM"){return new Promise(((t,l)=>{a.Z.get(s.Z.state.api+u[e],{uid:s.Z.state.userInfo.userid,type:e}).then((l=>{if(console.log(l["data"]),0==l["data"][0].length||null==l["data"][0][0]["No"])return t(`${e}0000001`);let a=l["data"][0][0]["No"],s=parseInt(a.slice(-7)),u=s+1,i=`${e}${u.toString().padStart(7,"0")}`;t(i)}))}))}}}]);
- //# sourceMappingURL=4008.b38dda77.js.map
|