NomMarkerWord.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. <template>
  2. <div id="MarkeractivityWord">
  3. <div id="title">
  4. <div class="school">深圳技师学院</div>
  5. <div class="wordTitle">创客专项资金及项目申请表(个人创客)</div>
  6. <div class="date">申请日期:{{wordData.applicationDate}}</div>
  7. </div>
  8. <table border="1" cellspacing="0" class="table">
  9. <tr id="two">
  10. <td colspan="4">活动名称</td>
  11. <td colspan="5">
  12. <el-input
  13. type="textarea"
  14. autosize
  15. resize="none"
  16. placeholder="请输入活动名称"
  17. v-model="wordData['activityName']">
  18. </el-input>
  19. </td>
  20. <td colspan="3">预算经费</td>
  21. <td @click="goto('#fund')" colspan="4" v-text="total">
  22. </td>
  23. </tr>
  24. <tr id="three">
  25. <td colspan="4">项目负责人</td><td colspan="3">
  26. <el-input
  27. type="textarea"
  28. autosize
  29. resize="none"
  30. placeholder="请输入负责人"
  31. v-model="wordData['pro_leader']">
  32. </el-input>
  33. </td><td colspan="2">所在部门</td><td colspan="3">
  34. <el-select v-model="wordData['college']" style="width: 100%;" placeholder="请选择所在学院">
  35. <el-option
  36. v-for="item in DepartmentData"
  37. :key="item.id"
  38. :label="item.name"
  39. :value="item.id">
  40. </el-option>
  41. </el-select>
  42. </td><td colspan="2">联系电话</td><td colspan="3">
  43. <el-input
  44. type="textarea"
  45. autosize
  46. resize="none"
  47. placeholder="请输入联系电话"
  48. v-model="wordData['tel']">
  49. </el-input>
  50. </td>
  51. </tr>
  52. <tr id="four">
  53. <td colspan="4">活动时间</td>
  54. <td colspan="5">
  55. <el-date-picker
  56. v-model="wordData['activityTime']"
  57. type="daterange"
  58. value-format="yyyy-MM-dd HH:mm:ss"
  59. range-separator="至"
  60. prefix-icon="none"
  61. start-placeholder="项目起始时间"
  62. end-placeholder="项目完成时间">
  63. </el-date-picker>
  64. </td>
  65. <td colspan="3">参与学生人数</td><td colspan="5">
  66. <el-input
  67. type="number"
  68. autosize
  69. :min="0"
  70. style="width: 100%;"
  71. resize="none"
  72. placeholder="请输入参与学生人数"
  73. v-model.number="wordData['student']">
  74. </el-input>
  75. </td>
  76. </tr>
  77. <tr id="five">
  78. <td colspan="2" :rowspan="wordData['member'].length+1"><p>活</p> <p>动</p> <p>指</p> <p>导</p> <p>老</p> <p>师</p></td><td colspan="2">姓名</td><td colspan="3">工作单位/部门</td><td colspan="9">项目分工</td>
  79. </tr>
  80. <tr v-for="(item,index) in wordData['member']" :key="index+'b'">
  81. <td colspan="2" style="border-left: none;">
  82. <el-input
  83. type="textarea"
  84. autosize
  85. resize="none"
  86. placeholder="请输入姓名"
  87. v-model="item['name']">
  88. </el-input>
  89. </td><td colspan="3">
  90. <el-input
  91. type="textarea"
  92. autosize
  93. resize="none"
  94. placeholder="请输入工作单位/部门"
  95. v-model="item['collage']">
  96. </el-input>
  97. </td><td colspan="10">
  98. <el-input
  99. type="textarea"
  100. autosize
  101. resize="none"
  102. placeholder="请输入项目分工"
  103. v-model="item['work']">
  104. </el-input>
  105. </td>
  106. <div class="operate">
  107. <el-button @click="addPerson" v-if="wordData['member'].length-1==index" type="primary" size="mini">添加</el-button>
  108. <el-button @click="DelPerson(index)" type="primary" size="mini">删除</el-button>
  109. </div>
  110. </tr>
  111. <tr class="textLeft" id="six">
  112. <td colspan="2"><p>活动</p><br> <p>计划</p></td><td style="text-align: left;" colspan="15">
  113. <el-input
  114. type="textarea"
  115. :rows="12"
  116. style="width: 100%;"
  117. resize="none"
  118. v-model="wordData['activityPlan']">
  119. </el-input>
  120. </td>
  121. </tr>
  122. <tr class="textLeft" id="seven">
  123. <td colspan="2"><p>预期</p><br><p>目标</p> </td><td colspan="15" style="text-align: left;">
  124. <el-input
  125. type="textarea"
  126. :rows="10"
  127. style="width: 100%;"
  128. resize="none"
  129. v-model="wordData['expectations']">
  130. </el-input>
  131. </td>
  132. </tr>
  133. <tr class="textLeft" id="nine">
  134. <td colspan="2"><p>活动受</p><br> <p>众面</p></td><td style="text-align: left;" colspan="15">
  135. <p>参与学生范围:</p>
  136. <el-input
  137. type="textarea"
  138. :rows="12"
  139. style="width: 100%;"
  140. resize="none"
  141. v-model="wordData['eventAudience']">
  142. </el-input>
  143. </td>
  144. </tr>
  145. <tr class="textLeft" id="ten">
  146. <td colspan="2"><p>经费</p><br><p>支出</p> <br><p>计划</p></td><td colspan="15" style="text-align: left;">
  147. <el-input
  148. type="textarea"
  149. :rows="10"
  150. style="width: 100%;"
  151. resize="none"
  152. v-model="wordData['fundingPlan']">
  153. </el-input>
  154. </td>
  155. </tr>
  156. <tr id="fund">
  157. <td rowspan="14"><p>预</p> <p>算</p> <p>经</p> <p>费</p></td>
  158. </tr>
  159. <tr>
  160. <td rowspan="4" style="border-left: none;">总经费</td><td rowspan="4" colspan="2" >{{total}}元</td>
  161. </tr>
  162. <tr>
  163. <td colspan="12" style="border-left: none;">经费月支出计划 (元)</td>
  164. </tr>
  165. <tr>
  166. <td style="border-left: none;">第1个月</td><td>第2个月</td><td>第3个月</td><td>第4个月</td><td>第5个月</td><td>第6个月</td><td>第7个月</td><td>第8个月</td><td>第9个月</td><td>第10个月</td><td>第11个月</td><td>第12个月</td>
  167. </tr>
  168. <tr>
  169. <td v-for="(item,index) in wordData['expenditureMothPlan']" :key="index" style="border-left: none;">
  170. <el-input
  171. type="number"
  172. autosize
  173. min="0"
  174. style="width: 100%;"
  175. resize="none"
  176. v-model.number="wordData['expenditureMothPlan'][index]"
  177. @input="checkExpenditureMothPlan(index)">
  178. </el-input>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td colspan="4" style="border-left: none;">支出类别</td><td colspan="4">支出项目</td><td colspan="2">金额(元)</td><td colspan="5">备注</td>
  183. </tr>
  184. <tr>
  185. <td rowspan="4" colspan="4" style="border-left: none;">直接经费</td>
  186. <td colspan="4">小型仪器设备费</td>
  187. <td colspan="2">
  188. <el-input
  189. type="number"
  190. autosize
  191. resize="none"
  192. placeholder="小型仪器设备费"
  193. v-model.number="wordData['fund']['device']"
  194. @change="checkProjectFund('device')"
  195. ></el-input>
  196. </td>
  197. <td colspan="5">
  198. 项目开展所需的小型专用仪器设备、工具、配件购置或租赁费用。
  199. </td>
  200. </tr>
  201. <tr>
  202. <td colspan="4" style="border-left: none;">材料费</td>
  203. <td colspan="2">
  204. <el-input
  205. type="number"
  206. autosize
  207. resize="none"
  208. placeholder="材料费"
  209. v-model.number="wordData['fund']['Material']"
  210. @change="checkProjectFund('Material')"></el-input>
  211. </td>
  212. <td colspan="5">项目开展需消耗的各种原材料、辅助材料等低值易耗品的采购费用。</td>
  213. </tr>
  214. <tr>
  215. <td colspan="4" style="border-left: none;">测试化验加工费</td>
  216. <td colspan="2">
  217. <el-input
  218. type="number"
  219. autosize
  220. resize="none"
  221. placeholder="测试化验加工费"
  222. @change="checkProjectFund('processing')"
  223. v-model.number="wordData['fund']['processing']"></el-input>
  224. </td>
  225. <td colspan="5">项目开展过程中支付给外单位的检验、测试、化验、计算、分析及加工费等费用。</td>
  226. </tr>
  227. <tr>
  228. <td colspan="4" style="border-left: none;">项目协作费</td>
  229. <td colspan="2">
  230. <el-input
  231. type="number"
  232. autosize
  233. resize="none"
  234. placeholder="项目协作费"
  235. @change="checkProjectFund('Collaboration')"
  236. v-model.number="wordData['fund']['Collaboration']"></el-input>
  237. </td>
  238. <td colspan="5">按合同规定支付给协作单位的费用</td>
  239. </tr>
  240. <tr>
  241. <td rowspan="4" colspan="4" style="border-left: none;">间接经费</td>
  242. <td colspan="4">项目成果鉴定费</td>
  243. <td colspan="2">
  244. <el-input
  245. type="number"
  246. autosize
  247. resize="none"
  248. placeholder="项目成果鉴定费"
  249. @change="checkProjectFund('APPRAISAL')"
  250. v-model.number="wordData['fund']['APPRAISAL']"></el-input>
  251. </td>
  252. <td colspan="5">学术会务费、评审费、鉴定费、成果集制作费等费用。</td>
  253. </tr>
  254. <tr>
  255. <td colspan="4" style="border-left: none;">参展参赛费</td>
  256. <td colspan="2">
  257. <el-input
  258. type="number"
  259. autosize
  260. resize="none"
  261. placeholder="参展参赛费"
  262. @change="checkProjectFund('entery')"
  263. v-model.number="wordData['fund']['entery']"></el-input>
  264. </td>
  265. <td colspan="5">参加创客展会、竞赛等所需的报名费、展位费、布展费、宣传推广费及差旅费等费用。</td>
  266. </tr>
  267. <tr>
  268. <td colspan="4" style="border-left: none;">创客交流活动费</td>
  269. <td colspan="2">
  270. <el-input
  271. type="number"
  272. autosize
  273. resize="none"
  274. placeholder="创客交流活动费"
  275. @change="checkProjectFund('activities')"
  276. v-model.number="wordData['fund']['activities']"></el-input>
  277. </td>
  278. <td colspan="5">创客交流活动中支付给校外专家的指导费、咨询费、授课费等费用。</td>
  279. </tr>
  280. <tr>
  281. <td colspan="4" style="border-left: none;">知识产权事务费</td>
  282. <td colspan="2">
  283. <el-input
  284. type="number"
  285. autosize
  286. resize="none"
  287. placeholder="知识产权事务费"
  288. @change="checkProjectFund('Transaction')"
  289. v-model.number="wordData['fund']['Transaction']">
  290. </el-input>
  291. </td>
  292. <td colspan="5">论文版面费、专利及其他知识产权事务等费用。</td>
  293. </tr>
  294. <tr class="textLeft">
  295. <td><p>所在部</p> <p>门意见</p></td><td colspan="15" style="height: 200px;">
  296. <div style="text-align: right;font-size: 18px;width: 80%;margin-bottom: 20px;">负责人签章:</div>
  297. <div style="text-align: right;font-size: 18px;width: 90%;">年&nbsp;&nbsp;&nbsp; 月 &nbsp;&nbsp;&nbsp;日</div>
  298. </td>
  299. </tr>
  300. <tr>
  301. <td v-for="(item,index) in 16" :key="index+'c'" style="border: none;"></td>
  302. </tr>
  303. </table>
  304. <div class="notes">
  305. <span>备注:</span>
  306. <span>如表格不够可顺延或另附页。</span>
  307. </div>
  308. </div>
  309. </template>
  310. <script>
  311. export default {
  312. props:['wordData','total'],
  313. data() {
  314. return {
  315. allFund:0,
  316. DepartmentData:[],
  317. }
  318. },
  319. methods: {
  320. getText(value) { //电话验证
  321. let verify = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/; //获取正则表达式 存放到verify变量中
  322. let result = verify.test(value.trim()); //判断输入框内容是否符合 正则表达式
  323. if(!result) return this.$message.error('请输入正确联系号码格式')
  324. },
  325. addPerson(){ //添加学生
  326. this.wordData['member'].push({name:"",collage:"",work:""});
  327. },
  328. DelPerson(index){ //删除学生
  329. this.wordData['member'].splice(index,1)
  330. },
  331. getProjectDepartmentData(){ //获取项目立项申请基础信息页面所在部门数据
  332. this.ajax.get(this.$store.state.api+'/SelectAllDepartment',{
  333. uid:this.$store.state.userInfo.userid
  334. }).then(res=>{
  335. this.DepartmentData = res.data[0]
  336. },err=>{
  337. console.log(err);
  338. })
  339. },
  340. checkExpenditureMothPlan(index){
  341. let count = 0;
  342. this.wordData['expenditureMothPlan'].forEach(item=>count+=Number(item))
  343. if(count>this.total){
  344. this.$message.error("总经费月支出计划不能大于总经费");
  345. this.wordData['expenditureMothPlan'][index]=0;
  346. }
  347. },
  348. goto(str){
  349. document.querySelector(str).scrollIntoView({ behavior: "smooth" });
  350. },
  351. },
  352. computed:{ //经费总合
  353. },
  354. mounted(){
  355. this.getProjectDepartmentData();
  356. }
  357. };
  358. </script>
  359. <style lang="less" scoped>
  360. #MarkeractivityWord{
  361. width: 100%;
  362. display: flex;
  363. flex-direction: column;
  364. align-items: center;
  365. background-color: #ffff;
  366. margin: 0;
  367. padding: 40px 100px;
  368. box-sizing:border-box;
  369. #title{
  370. width: 100%;
  371. display: flex;
  372. flex-direction: column;
  373. align-items: center;
  374. position: relative;
  375. // margin-top: 40px;
  376. .school{
  377. font-size: 2.5em;
  378. font-weight: 500;
  379. letter-spacing: 20px;
  380. }
  381. .wordTitle{
  382. font-size: 2em;
  383. letter-spacing: .15em;
  384. margin-bottom:40px ;
  385. }
  386. .date{
  387. font-size: 1em;
  388. position: absolute;
  389. bottom: 0;
  390. right: 100px;
  391. font-weight: bold;
  392. }
  393. }
  394. .table{
  395. border: none;
  396. border-top: solid 1px black;
  397. tr{
  398. position: relative;
  399. td{
  400. border: none;
  401. border-bottom: solid 1px black;
  402. border-right: solid 1px black;
  403. height: 50px;
  404. text-align: center;
  405. line-height: 30px;
  406. width: 80px;
  407. &:nth-child(1){
  408. border-left: solid 1px black;
  409. }
  410. p{
  411. font-weight: 600;
  412. }
  413. :deep(.el-select .el-input .el-select__caret){
  414. display: none;
  415. font-family:Arial,"Microsoft Yahe","微软雅黑";
  416. }
  417. :deep(.el-textarea__inner){
  418. // padding: 0;
  419. border: none ;
  420. border-radius: 0px;
  421. text-align: center;
  422. font-size: 16px;
  423. font-family:Arial,"Microsoft Yahe","微软雅黑";
  424. }
  425. :deep(.el-input__inner){
  426. border: none ;
  427. font-family:Arial,"Microsoft Yahe","微软雅黑";
  428. &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{
  429. -webkit-appearance: none !important;
  430. }
  431. &[type='number'] {
  432. -moz-appearance: textfield;
  433. }
  434. border-radius: 0px;
  435. text-align: center;
  436. font-size: 16px;
  437. }
  438. }
  439. }
  440. .textLeft{
  441. :deep(.el-textarea__inner){
  442. // padding: 0;
  443. border: none ;
  444. border-radius: 0px;
  445. text-align: left !important;
  446. font-size: 16px;
  447. }
  448. }
  449. }
  450. .notes{
  451. width: 100%;
  452. display: flex;
  453. flex-direction:column;
  454. }
  455. }
  456. .operate{
  457. right:-85px;
  458. width:85px;
  459. height: 50px;
  460. display:flex;
  461. justify-content:space-between;
  462. align-items:center;
  463. position:absolute;
  464. .el-button{
  465. max-width:10px;
  466. display:flex;
  467. justify-content:center;
  468. align-items:center;
  469. margin-left:10px;
  470. }
  471. }
  472. </style>