\r\n\r\n\r\n\r\n\r\n\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!./newMarkerActivity.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!./newMarkerActivity.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./newMarkerActivity.vue?vue&type=template&id=07eb3b45&scoped=true\"\nimport script from \"./newMarkerActivity.vue?vue&type=script&lang=js\"\nexport * from \"./newMarkerActivity.vue?vue&type=script&lang=js\"\nimport style0 from \"./newMarkerActivity.vue?vue&type=style&index=0&id=07eb3b45&prod&lang=less&scoped=true\"\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 \"07eb3b45\",\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","total","staticStyle","on","saveDraft","_v","test","staticClass","submitHint","$event","_s","slot","applyActivity","staticRenderFns","components","markeractivityWord","data","applicationDate","getNowDate","associatedProjects","activityName","pro_leader","college","tel","activityTime","student","member","collage","work","activityPlan","expectations","eventAudience","fundingPlan","expenditureMothPlan","fund","device","Material","processing","Collaboration","APPRAISAL","entery","activities","Transaction","computed","num","i","Number","methods","cEmpty","checkPhone","$message","error","document","querySelector","scrollIntoView","behavior","length","console","log","getProjectNo","then","result","pram","uid","$store","state","userInfo","userid","aNo","tit","courseId","pLeader","mon","st","ct","JSON","stringify","chp","cid","ph","beg","f","appltTime","mp","t","ajax","post","api","success","localStorage","getItem","removeItem","type","$router","push","catch","err","saveData","setItem","info","params","jsonData","encodeURIComponent","res","getDraft","get","parse","json","mounted","window","addEventListener","activated","destroyed","removeEventListener","e","beforeRouteLeave","to","from","next","component","TYPE_NO","str","Promise","resolve","reject","store","LastNo","number","parseInt","slice","newNumber","newNo","toString","padStart"],"sourceRoot":""}