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6C,KAAAI,cACA,OAAAjD,SAAA6C,KAAAK,UACA,OAAAlD,SAAA6C,KAAAM,OACA,OAAAnD,SAAA6C,KAAAO,WACA,OAAApD,SAAA6C,KAAAQ,WAEA,GAEAiE,UAQA,KAAAL,WACAM,OAAAC,iBAAA,yBAAAZ,YAEA,EAEAa,iBAAAC,EAAAC,EAAAC,GAEA,KAAApH,YAAA,KAAAoG,WACAgB,GACA,GC5bqS,I,WCQjSC,GAAY,OACd,EACA1I,EACA0B,GACA,EACA,KACA,KACA,MAIF,EAAegH,EAAiB,O,kFChBhC,MAAMC,EAAU,CACZ,GAAK,gBACP,GAAK,gBACL,GAAK,gBACL,GAAK,gBACH,GAAK,iBACL,GAAK,cAGM,SAAS3D,EAAa4D,EAAI,MACrC,OAAO,IAAIC,SAAQ,CAACC,EAAQC,KACxBlC,EAAAA,EAAAA,IAASmC,EAAAA,EAAAA,MAAAA,IAAgBL,EAAQC,GAAK,CAClCxD,IAAI4D,EAAAA,EAAAA,MAAAA,SAAAA,OACV5B,KAAKwB,IACA3D,MAAK4C,IAEJ,GADA/C,QAAQC,IAAI8C,EAAI,SACU,GAAvBA,EAAI,QAAQ,GAAGhD,QAAoC,MAAzBgD,EAAI,QAAQ,GAAG,GAAG,MAAY,OAAOiB,EAAS,GAAEF,YAC7E,IAAIK,EAASpB,EAAI,QAAQ,GAAG,GAAG,MAC3BqB,EAASC,SAASF,EAAOG,OAAO,IAChCC,EAAYH,EAAO,EACnBI,EAAS,GAAEV,IAAMS,EAAUE,WAAWC,SAAS,EAAE,OACrDV,EAAQQ,EAAM,GAChB,GAEV,C","sources":["webpack://scproject/./src/views/projectApply/MakerSpaceApply.vue","webpack://scproject/src/views/projectApply/MakerSpaceApply.vue","webpack://scproject/./src/views/projectApply/MakerSpaceApply.vue?f3e9","webpack://scproject/./src/views/projectApply/MakerSpaceApply.vue?ac0f","webpack://scproject/./src/components/tool/getProjectNo.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"id\":\"MakerSpaceApply\"}},[_vm._m(0),_c('hr'),_c('MakerSpaceWord',{attrs:{\"wordData\":_vm.wordData,\"reversedMessage\":_vm.reversedMessage}}),_c('div',{staticStyle:{\"position\":\"fixed\",\"bottom\":\"5%\",\"right\":\"2%\"}},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveDraft}},[_vm._v(\"保存草稿\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.test}},[_vm._v(\"提交项目\")])],1),_c('el-dialog',{staticClass:\"pageSubmitData\",attrs:{\"title\":\"提示\",\"visible\":_vm.submitHint,\"width\":\"600px\"},on:{\"update:visible\":function($event){_vm.submitHint=$event}}},[_c('div',{staticClass:\"deleteContent\"},[_vm._v(\" 确定提交“\"+_vm._s(_vm.wordData[\"projectName\"])+\"”项目吗? \")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{staticClass:\"AllDialogBtn\",attrs:{\"type\":\"primary\"},on:{\"click\":_vm.applyProject}},[_vm._v(\"确认提交\")]),_c('el-button',{staticClass:\"AllDialogBtn\",on:{\"click\":function($event){_vm.submitHint = false}}},[_vm._v(\"取消\")])],1)])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pAHeader\"},[_c('div',{staticClass:\"pAHeader1\"},[_vm._v(\"创客空间申请\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\r\n <!-- 项目立项申请 -->\r\n <div id=\"MakerSpaceApply\" v-loading=\"loading\">\r\n <div class=\"pAHeader\">\r\n <div class=\"pAHeader1\">创客空间申请</div>\r\n </div>\r\n <hr />\r\n <MakerSpaceWord :wordData=\"wordData\" :reversedMessage=\"reversedMessage\" />\r\n\r\n <div style=\"position: fixed; bottom: 5%; right: 2%\">\r\n\t\t\t<el-button @click=\"saveDraft\" type=\"primary\">保存草稿</el-button>\r\n <el-button @click=\"test\" type=\"primary\">提交项目</el-button>\r\n </div>\r\n <el-dialog\r\n title=\"提示\"\r\n :visible.sync=\"submitHint\"\r\n width=\"600px\"\r\n class=\"pageSubmitData\"\r\n >\r\n <div class=\"deleteContent\">\r\n 确定提交“{{ wordData[\"projectName\"] }}”项目吗?\r\n </div>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"applyProject\" class=\"AllDialogBtn\"\r\n >确认提交</el-button\r\n >\r\n <el-button @click=\"submitHint = false\" class=\"AllDialogBtn\"\r\n >取消</el-button\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { getNowDate } from \"@/components/tool/Date.js\";\r\nimport getProjectNo from \"@/components/tool/getProjectNo\";\r\nimport MakerSpaceWord from \"./components/MakerSpaceWord.vue\";\r\nexport default {\r\n components: { MakerSpaceWord },\r\n data() {\r\n return {\r\n wordData: {\r\n applicationDate: getNowDate(1), //申请日期\r\n projectName: \"\", //项目名称\r\n college: \"\", //所在学院\r\n begin_at: \"\", //项目开始时间\r\n state: \"\", //项目状态\r\n plannedEnd_at: \"\", //计划完成时间\r\n pro_leader: \"\", //项目负责人\r\n lead_leader: \"\", //学院牵头领导\r\n teacher: [\r\n {\r\n name: \"\",\r\n speciality: \"\",\r\n title: \"\",\r\n education: \"\",\r\n section: \"\",\r\n work: \"\",\r\n },\r\n ], //教师组//name:姓名 speciality:专业 title:职称 education:学历 section:所在教研室 work:项目组角色分工\r\n student: [{ name: \"\", class: \"\", age: \"\", work: \"\" }], //学生组//name:姓名 class:班级 age:年龄 work:项目组任务分工\r\n brief: \"\", //项目简介\r\n Construction: \"\", //建设内容\r\n ProjectBasis: \"\", //立项依据\r\n development: \"\", //创客空间物理环境、制度建设及软件设施建设情况\r\n studio: \"\", //学生创客工作室建设情况\r\n studentTeam: \"\", //学生创客团队(人才)培养预期成果、数量\r\n studentActivities: \"\", //学生创客活动组织实施情况\r\n Transforming: \"\", //学生创客团队孵化、转化创业项目情况\r\n condition: \"\", //立 项基 础及条 件\r\n total: \"\",\r\n fund: {\r\n device: \"\",\r\n Material: \"\",\r\n processing: \"\",\r\n Collaboration: \"\",\r\n APPRAISAL: \"\",\r\n entery: \"\",\r\n activities: \"\",\r\n Transaction: \"\",\r\n }, //预算经费\r\n //total:总经费\r\n //小型仪器设备费:device deviceRemarks\r\n //材料费:Material MaterialRemarks\r\n //测试化验加工费:processing processingRemarks\r\n //项目协作费:Collaboration CollaborationRemarks\r\n //项目成果鉴定费:APPRAISAL APPRAISALRemarks\r\n //参展参赛费:entery enteryRemarks\r\n //创客交流活动费:activities activitiesRemarks\r\n //知识产权事务费:Transaction TransactionRemarks\r\n },\r\n loading: false,\r\n submitHint: false,\r\n };\r\n },\r\n methods: {\r\n test() {\r\n //项目提交\r\n //检查各个字段\r\n const cEmpty = /^\\s*$/g;\r\n for (let i in this.wordData) {\r\n switch (i) {\r\n case \"projectName\":\r\n if (cEmpty.test(this.wordData[i])) {\r\n this.$message.error(\"请输入项目名称\");\r\n document\r\n .querySelector(\"#one\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return false;\r\n }\r\n break;\r\n case \"college\":\r\n if (cEmpty.test(this.wordData[i])) {\r\n this.$message.error(\"请选择所在学院\");\r\n document\r\n .querySelector(\"#one\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return false;\r\n }\r\n break;\r\n case \"state\":\r\n if (cEmpty.test(this.wordData[i])) {\r\n this.$message.error(\"请选择项目状态\");\r\n document\r\n .querySelector(\"#two\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return false;\r\n }\r\n break;\r\n case \"begin_at\":\r\n if (cEmpty.test(this.wordData[i])) {\r\n this.$message.error(\"请选择项目开始时间\");\r\n document\r\n .querySelector(\"#three\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return false;\r\n }\r\n break;\r\n case \"plannedEnd_at\":\r\n if (cEmpty.test(this.wordData[i])) {\r\n this.$message.error(\"请选择计划完成时间\");\r\n document\r\n .querySelector(\"#three\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return false;\r\n }\r\n break;\r\n case \"pro_leader\":\r\n if (cEmpty.test(this.wordData[i])) {\r\n this.$message.error(\"请输入项目负责人\");\r\n document\r\n .querySelector(\"#four\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return false;\r\n }\r\n break;\r\n case \"lead_leader\":\r\n if (cEmpty.test(this.wordData[i])) {\r\n this.$message.error(\"请输入学院牵头领导\");\r\n document\r\n .querySelector(\"#four\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return false;\r\n }\r\n break;\r\n // case \"teacher\":\r\n // if (this.wordData[i].length < 3) {\r\n // this.$message.error(\"教师团队应3人以上\");\r\n // document\r\n // .querySelector(\"#five\")\r\n // .scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // } else {\r\n // let num = 0;\r\n // this.wordData[i].forEach((item) => {\r\n // if (cEmpty.test(item[\"name\"])) num++;\r\n // });\r\n // if (num > 0) {\r\n // this.$message.error(\"教师姓名请不要留空\");\r\n // document\r\n // .querySelector(\"#five\")\r\n // .scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // // }\r\n // break;\r\n // case \"student\":\r\n // if (this.wordData[i].length < 5) {\r\n // this.$message.error(\"学生团队应5人以上\");\r\n // document\r\n // .querySelector(\"#six\")\r\n // .scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // } else {\r\n // let num1 = 0;\r\n // this.wordData[i].forEach((item) => {\r\n // if (cEmpty.test(item[\"name\"])) num1++;\r\n // });\r\n // if (num1 > 0) {\r\n // this.$message.error(\"学生姓名请不要留空\");\r\n // document\r\n // .querySelector(\"#six\")\r\n // .scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // // }\r\n // break;\r\n case \"fund\":\r\n let sum = 0;\r\n for (let i in this.wordData[\"fund\"]) {\r\n sum += this.wordData[\"fund\"][i] * 1;\r\n }\r\n if (sum <= 0) {\r\n document\r\n .querySelector(\"#fund\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return this.$message.error(\"请输入预算经费\");\r\n }\r\n break;\r\n case \"brief\":\r\n if (this.wordData[i].length > 300 || this.wordData[i].length == 0) {\r\n this.$message.error(\"请填写项目简介,字数在300字以内\");\r\n document\r\n .querySelector(\"#brief\")\r\n .scrollIntoView({ behavior: \"smooth\" });\r\n return false;\r\n }\r\n break;\r\n //#region\r\n // case \"brief\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写项目简介\");\r\n // document.querySelector('#seven').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }else{\r\n // if(this.wordData[i].length<200||this.wordData>300){\r\n // this.$message.error(\"项目简介需要200-300字\")\r\n // document.querySelector('#seven').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // }\r\n // break;\r\n // case \"Construction\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写建设内容\");\r\n // document.querySelector('#eight').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // break;\r\n // case \"ProjectBasis\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写立项依据\");\r\n // document.querySelector('#nine').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // break;\r\n // case \"development\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写创客空间物理环境、制度建设及软件设施建设情况\");\r\n // document.querySelector('#ten').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // break;\r\n // case \"studio\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写学生创客工作室建设情况\");\r\n // document.querySelector('#eleven').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // break;\r\n // case \"studentTeam\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写学生创客团队(人才)培养预期成果、数量\");\r\n // document.querySelector('#twelve').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // break;\r\n // case \"studentActivities\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写学生创客活动组织实施情况\");\r\n // document.querySelector('#thirteen').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // break;\r\n // case \"Transforming\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写学生创客团队孵化、转化创业项目情况\");\r\n // document.querySelector('#fourteen').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // break;\r\n // case \"condition\":\r\n // if(cEmpty.test(this.wordData[i])){\r\n // this.$message.error(\"请填写基础条件\");\r\n // document.querySelector('#fifteen').scrollIntoView({ behavior: \"smooth\" });\r\n // return false;\r\n // }\r\n // break\r\n //#endregion\r\n }\r\n }\r\n this.wordData[\"total\"] =\r\n this.wordData.fund.device * 1 +\r\n this.wordData.fund.Material * 1 +\r\n this.wordData.fund.processing * 1 +\r\n this.wordData.fund.Collaboration * 1 +\r\n this.wordData.fund.APPRAISAL * 1 +\r\n this.wordData.fund.entery * 1 +\r\n this.wordData.fund.activities * 1 +\r\n this.wordData.fund.Transaction * 1;\r\n console.log(this.wordData[\"total\"]);\r\n\r\n this.submitHint = true;\r\n },\r\n applyProject() {\r\n //先获取编号\r\n getProjectNo(\"XM\").then((result) => {\r\n let pram = {\r\n uid: this.$store.state.userInfo.userid, //用户ID\r\n pNo: result, //项目编号\r\n tit: encodeURIComponent(this.wordData[\"projectName\"]), //项目名称\r\n bf: encodeURIComponent(this.wordData[\"brief\"]), //项目简介\r\n pLeader: encodeURIComponent(this.wordData[\"pro_leader\"]), //项目负责人\r\n lLeader: encodeURIComponent(this.wordData[\"lead_leader\"]), //学院牵头领导,\r\n cid: this.wordData[\"college\"], //学院ID,\r\n ct: encodeURIComponent(JSON.stringify(this.wordData[\"teacher\"])), //教师组,\r\n cs: encodeURIComponent(JSON.stringify(this.wordData[\"student\"])), //学生组,\r\n f: this.wordData[\"total\"], //总经费\r\n chp: encodeURIComponent(JSON.stringify({\r\n Construction: this.wordData[\"Construction\"], //建设内容\r\n ProjectBasis: this.wordData[\"ProjectBasis\"], //立项依据\r\n development: this.wordData[\"development\"], //创客空间物理环境、制度建设及软件设施建设情况\r\n studio: this.wordData[\"studio\"], //学生创客工作室建设情况\r\n studentTeam: this.wordData[\"studentTeam\"], //学生创客团队(人才)培养预期成果、数量\r\n studentActivities: this.wordData[\"studentActivities\"], //学生创客活动组织实施情况\r\n Transforming: this.wordData[\"Transforming\"], //学生创客团队孵化、转化创业项目情况\r\n condition: this.wordData[\"condition\"], //立 项基 础及条 件\r\n })), //项目详细\r\n tid: \"5f7a66d5-c206-11ed-a4cd-509a4c5b67cf\", //特色创客空间建设项目分类ID\r\n tName: this.wordData[\"state\"], //项目状态\r\n mon: encodeURIComponent(JSON.stringify(this.wordData[\"fund\"])), //预算经费\r\n planEnd: this.wordData[\"plannedEnd_at\"], //计划完成时间,\r\n beh: this.wordData[\"begin_at\"], //项目开始时间,\r\n apply: this.wordData[\"applicationDate\"], //申请日期\r\n members:\r\n this.wordData[\"student\"].filter(i=>i.name!='').length + this.wordData[\"teacher\"].filter(i=>i.name!='').length,\r\n };\r\n // return console.log(pram);\r\n this.ajax\r\n .post(this.$store.state.api + \"/MakerSpaceWordApply\", pram)\r\n .then(async (result) => {\r\n console.log(result);\r\n if (result[\"data\"] == 1) {\r\n this.$message.success(\"项目提交成功\");\r\n //提交项目成功,查看sessionStore是否有数据,有则删\r\n if (localStorage.getItem(`MakerSpaceApplyData${this.$store.state.userInfo.userid}`))localStorage.removeItem(`MakerSpaceApplyData${this.$store.state.userInfo.userid}`);\r\n\t\t\t\t\t\t\tawait this.ajax.post(this.$store.state.api+\"/delDraft\",{userid:this.$store.state.userInfo.userid,type:1})\r\n this.$router.push(\"/projectApplication\");\r\n } else {\r\n this.$message.error(\"项目提交失败\");\r\n }\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n });\r\n },\r\n saveData() {\r\n localStorage.setItem(\r\n `MakerSpaceApplyData${this.$store.state.userInfo.userid}`,\r\n JSON.stringify(this.wordData)\r\n );\r\n },\r\n\t\t// 保存草稿\r\n\t\tsaveDraft(){\r\n\t\t\tif(this.loading)return;\r\n\t\t\tthis.loading = true;\r\n\t\t\tlet params = {\r\n\t\t\t\tuserid:this.$store.state.userInfo.userid,\r\n\t\t\t\ttype:1,\r\n\t\t\t\tjsonData:encodeURIComponent(JSON.stringify(this.wordData))\r\n\t\t\t}\r\n\t\t\tthis.ajax.post(this.$store.state.api + \"/saveDraft\",params).then(res=>{\r\n\t\t\t\tif(res.data==1){\r\n\t\t\t\t\tthis.$message.success(\"保存成功\")\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.$message.error(\"保存失败\")\r\n\t\t\t\t}\r\n\t\t\t\tthis.loading = false;\r\n\t\t\t})\r\n\t\t},\r\n\t\t//获取草稿\r\n\t\tgetDraft(){\r\n\t\t\tif(this.loading)return;\r\n\t\t\tthis.loading = true;\r\n\t\t\tlet params = {\r\n\t\t\t\tuserid:this.$store.state.userInfo.userid,\r\n\t\t\t\ttype:1,\r\n\t\t\t}\r\n\t\t\tthis.ajax.get(this.$store.state.api + \"/getDraft\",params).then(res=>{\r\n\t\t\t\tif(res.data[0].length){\r\n\t\t\t\t\tthis.wordData = JSON.parse(res.data[0][0].json)\r\n\t\t\t\t// }else{\r\n\t\t\t\t// \tif (localStorage.getItem(`MakerSpaceApplyData${this.$store.state.userInfo.userid}`))\r\n \t// \tthis.wordData = JSON.parse(\r\n \t// \t localStorage.getItem(`MakerSpaceApplyData${this.$store.state.userInfo.userid}`)\r\n \t// \t);\r\n\t\t\t\t}\r\n\t\t\t\tthis.loading = false;\r\n\t\t\t})\r\n\t\t}\r\n },\r\n computed: {\r\n reversedMessage: function () {\r\n return (\r\n this.wordData.fund.device * 1 +\r\n this.wordData.fund.Material * 1 +\r\n this.wordData.fund.processing * 1 +\r\n this.wordData.fund.Collaboration * 1 +\r\n this.wordData.fund.APPRAISAL * 1 +\r\n this.wordData.fund.entery * 1 +\r\n this.wordData.fund.activities * 1 +\r\n this.wordData.fund.Transaction * 1\r\n );\r\n },\r\n },\r\n mounted() {\r\n //跳转到此页面立刻获取数据\r\n // this.getData(); //获取表格数据\r\n // this.applyProject();\r\n //判断,如果sessionStore里有MakerSpaceApplyData这个字段,则存到this.wordData里\r\n // if (localStorage.getItem(\"MakerSpaceApplyData\")) {\r\n // this.wordData = JSON.parse(localStorage.getItem(\"MakerSpaceApplyData\"));\r\n // }\r\n\t\tthis.getDraft();\r\n window.addEventListener(\"beforeunload\", () => this.saveData());\r\n\r\n },\r\n \r\n beforeRouteLeave(to, from, next) {\r\n //判断,如果还没提交然后切换页面了,则把数据存到sessionStore里;\r\n if (!this.submitHint)this.saveData()\r\n next();\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"less\">\r\n#MakerSpaceApply {\r\n display: flex;\r\n flex-direction: column;\r\n // align-items: flex-end;\r\n // justify-content: flex-end;\r\n position: relative;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MakerSpaceApply.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./MakerSpaceApply.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./MakerSpaceApply.vue?vue&type=template&id=a3595346\"\nimport script from \"./MakerSpaceApply.vue?vue&type=script&lang=js\"\nexport * from \"./MakerSpaceApply.vue?vue&type=script&lang=js\"\nimport style0 from \"./MakerSpaceApply.vue?vue&type=style&index=0&id=a3595346&prod&lang=less\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ajax from '@/api/userApi'\r\nimport store from '@/config/config' //vuex\r\n\r\nconst TYPE_NO = {\r\n \"XM\":\"/getProjectNo\",\r\n\t\t\"CX\":\"/getProjectNo\",\r\n\t\t\"CY\":\"/getProjectNo\",\r\n\t\t\"SJ\":\"/getProjectNo\",\r\n \"HD\":\"/getActivityNo\",\r\n 'ZJ':\"/getFundNo\",\r\n}\r\n\r\nexport default function getProjectNo(str=\"XM\"){\r\n return new Promise((resolve,reject)=>{\r\n ajax.get(store.state.api+TYPE_NO[str],{\r\n uid:store.state.userInfo.userid,\r\n\t\t\t\t\t\ttype:str\r\n }).then(res=>{\r\n console.log(res['data'])\r\n if(res['data'][0].length==0||res['data'][0][0]['No']==null)return resolve(`${str}0000001`)\r\n let LastNo = res['data'][0][0]['No']\r\n let number = parseInt(LastNo.slice(-7));\r\n let newNumber = number+1;\r\n let newNo = `${str}${newNumber.toString().padStart(7,\"0\")}`;\r\n resolve(newNo);\r\n })\r\n })\r\n}"],"names":["render","_vm","this","_c","_self","directives","name","rawName","value","loading","expression","attrs","_m","wordData","reversedMessage","staticStyle","on","saveDraft","_v","test","staticClass","submitHint","$event","_s","slot","applyProject","staticRenderFns","components","MakerSpaceWord","data","applicationDate","getNowDate","projectName","college","begin_at","state","plannedEnd_at","pro_leader","lead_leader","teacher","speciality","title","education","section","work","student","class","age","brief","Construction","ProjectBasis","development","studio","studentTeam","studentActivities","Transforming","condition","total","fund","device","Material","processing","Collaboration","APPRAISAL","entery","activities","Transaction","methods","cEmpty","i","$message","error","document","querySelector","scrollIntoView","behavior","sum","length","console","log","getProjectNo","then","result","pram","uid","$store","userInfo","userid","pNo","tit","encodeURIComponent","bf","pLeader","lLeader","cid","ct","JSON","stringify","cs","f","chp","tid","tName","mon","planEnd","beh","apply","members","filter","ajax","post","api","success","localStorage","getItem","removeItem","type","$router","push","catch","err","saveData","setItem","params","jsonData","res","getDraft","get","parse","json","computed","mounted","window","addEventListener","beforeRouteLeave","to","from","next","component","TYPE_NO","str","Promise","resolve","reject","store","LastNo","number","parseInt","slice","newNumber","newNo","toString","padStart"],"sourceRoot":""}