projectApplicationApplyMain.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. <template>
  2. <!-- 项目立项申请表单区域 -->
  3. <div class="projectApplicationApplyPAapply core_dialogue">
  4. <!-- 上方导航区开始 -->
  5. <div class="PAheader">
  6. <div class="PAheaderBlock" :style="{opacity: status!=0?0.8:1}" @click="status=0">
  7. <img src="@/assets/vector/first.png" class="vector" alt="">
  8. 立项基础信息
  9. </div>
  10. <div class="PAheaderBlock" :style="{opacity: status!=1?0.8:1}" @click="status=1">
  11. <img src="@/assets/vector/second.png" class="vector" alt="">
  12. 项目内容
  13. </div>
  14. <div class="PAheaderBlock" :style="{opacity: status!=2?0.8:1}" @click="status=2">
  15. <img src="@/assets/vector/fouth.png" class="vector" alt="">
  16. 预算经费
  17. </div>
  18. </div>
  19. <!-- 上方导航区结束-->
  20. <!--下方内容区开始-->
  21. <div class="Main_area">
  22. <projectApplicationApply :data="projectApplicationApply1" :next="next" :addPerson="addPerson" :back="back" v-show="status==0"/>
  23. <projectApplicationApply2 :data="projectApplicationApply2" :next="next" :back="back" v-show="status==1"/>
  24. <projectApplicationApply3 :data="projectApplicationApply3" :next="next" :addFundDetail="addFundDetail" :back="back" :submitBtn="submitBtn" v-show="status==2"/>
  25. </div>
  26. <!--下方内容区结束-->
  27. <!-- 提交对话框开始 -->
  28. <el-dialog
  29. title="提示"
  30. :visible.sync="submitHint"
  31. width="600px"
  32. class="projectApplicationfundAddDialog"
  33. style="top: 120px;"
  34. :before-close="init">
  35. <div class="addDialogLogo">LOGO</div>
  36. <div class="deleteContent">确定提交“×××”项目立项?</div>
  37. <span slot="footer" class="dialog-footer">
  38. <el-button type="primary" @click="init" class="btn5">确认提交</el-button>
  39. <el-button @click="init" class="btn5" style="background:#cccccc" size="small">取消</el-button>
  40. </span>
  41. </el-dialog>
  42. <!-- 提交对话框结束 -->
  43. </div>
  44. </template>
  45. <script>
  46. // 引入项目详情三个页面
  47. import projectApplicationApply from './projectApplicationApply.vue';
  48. import projectApplicationApply2 from './projectApplicationApply2.vue';
  49. import projectApplicationApply3 from './projectApplicationApply3.vue';
  50. export default {
  51. // 进行注册使用
  52. components:{projectApplicationApply,projectApplicationApply2,projectApplicationApply3},
  53. data() {
  54. return {
  55. status:0,
  56. submitHint:false,
  57. projectApplicationApply1:{ //立项基础信息
  58. select:{
  59. projectName:'人工智能分链机器',
  60. person:'',
  61. Data:'2023-3-2',
  62. value:"中德学院",
  63. fund:'300000',
  64. tel:'',
  65. value1:"2023-11-12"
  66. },
  67. options: [{
  68. value: '选项1',
  69. label: '中德学院'
  70. },
  71. {
  72. value: '选项2',
  73. label: '中德学院'
  74. },
  75. ],
  76. textarea:'每周星期四为活动时间',
  77. Member:{
  78. name:'伯邑考',
  79. Class:'21通信',
  80. phone:'1234567898'
  81. },
  82. tableData:[{
  83. Name:'徐晓慧',
  84. Class:'22电子通信G5',
  85. tel:'13751177411',
  86. },
  87. {
  88. Name:'张扬',
  89. Class:'22电子通信G5',
  90. tel:'13751177411',
  91. },
  92. ],
  93. },
  94. projectApplicationApply2:{ //项目内容
  95. contentOne:'',
  96. contentTwo:'',
  97. contentThree:'',
  98. contentFour:'',
  99. contentFive:'',
  100. },
  101. projectApplicationApply3:{ //预算经费
  102. fund:"1000",
  103. // 经费月支出计划
  104. tableData:[{
  105. projectName:'-',
  106. date:'2022年11月12日',
  107. size:'50k'
  108. },
  109. ],
  110. // 经费明细
  111. tableData2:[{
  112. sort:'人工智能设备购买',
  113. Fund:'20000.00',
  114. projectName:'项目协作费用',
  115. remark:'拨款多多益善'
  116. },
  117. ],
  118. //对话框
  119. dialog:{
  120. textarea:'',
  121. fund:'300000',
  122. content:'',
  123. value: '', //下拉框
  124. disburseProject:'Al智能生活',
  125. sort:'',
  126. type:'智能家居',
  127. projectName:'Al智能生活',
  128. nameOptions: [
  129. {
  130. value: '1',
  131. label: '疯狂星期四'
  132. },
  133. {
  134. value: '2',
  135. label: '鱼稻共生'
  136. },
  137. {
  138. value: '3',
  139. label: '锻造钢铁'
  140. },
  141. ],
  142. typeOptions: [
  143. {
  144. value: '1',
  145. label: '第一产业'
  146. },
  147. {
  148. value: '2',
  149. label: '第二产业'
  150. },
  151. {
  152. value: '3',
  153. label: '第三产业'
  154. },
  155. ],
  156. },
  157. }
  158. }
  159. },
  160. methods:{
  161. addPerson(){ //添加人员
  162. this.projectApplicationApply1.addMemberDialog=false;
  163. let { name: Name, Class: Class, phone:tel } = this.projectApplicationApply1.Member;
  164. let data={Name,Class,tel};
  165. this.projectApplicationApply1.tableData.push(data);
  166. },
  167. addFundDetail(){
  168. let p=this.projectApplicationApply3;
  169. let data={
  170. Fund:p.dialog.fund,
  171. projectName:p.dialog.projectName,
  172. sort:p.dialog.type,
  173. remark:p.dialog.textarea
  174. }
  175. p.tableData2.push(data)
  176. },
  177. next(){
  178. if(this.status>=2)return;
  179. this.status++;
  180. },
  181. back(){
  182. if(this.status==0)return;
  183. this.status--;
  184. },
  185. submitBtn(){
  186. console.log("提交啦");
  187. console.log(this.projectApplicationApply1,this.projectApplicationApply2,this.projectApplicationApply3);
  188. this.submitHint = true;
  189. },
  190. init(){
  191. //重置
  192. this.projectApplicationApply1.addMemberDialog=false
  193. // this.dialogVisible=false;
  194. this.submitHint=false;
  195. // this.dialogVisible2=false;
  196. },
  197. },
  198. created(){
  199. // this.value=(this.options[0].value)
  200. }
  201. }
  202. </script>
  203. <style lang="less">
  204. .projectApplicationApplyPAapply{
  205. width: 100vw;
  206. background: #e6eaf0;
  207. display: flex;
  208. flex-direction: column;
  209. align-items: center;
  210. .pAHeader3{ //返回键
  211. position: absolute;
  212. right: 0px;
  213. top: 5px;
  214. cursor: pointer;
  215. }
  216. // 顶部导航区
  217. .vector{ //矢量图大小
  218. height: 50%;
  219. margin-top: 5px;
  220. }
  221. .Main_area{ //宽度
  222. width: 95%;
  223. min-height: 80%;
  224. margin-bottom: 20px;
  225. }
  226. // 顶部导航区
  227. // 顶部导航区开始
  228. .PAheader{
  229. width: 90%;
  230. height: 70px;
  231. position: relative;
  232. top: 15px;
  233. border-radius: 5px;
  234. background: #ffffff;
  235. display: flex;
  236. justify-content: center;
  237. align-items: center;
  238. .PAheaderBlock{
  239. background: #4a83d0;
  240. width: 16%;
  241. height: 80%;
  242. border-radius: 10px;
  243. display: flex;
  244. justify-content: center;
  245. align-items: center;
  246. color: #fff;
  247. font-size: 18px;
  248. cursor: pointer;
  249. }
  250. .PAheaderBlock:nth-of-type(2){
  251. margin: 10%;
  252. }
  253. }
  254. // 顶部导航区结束
  255. //提交对话框开始
  256. .projectApplicationfundAddDialog{
  257. .el-dialog__header{
  258. border-radius: 10px 10px 0 0;
  259. }
  260. .el-dialog{
  261. border-radius:10px ;
  262. }
  263. .deleteContent{
  264. width: 100%;
  265. text-align: center;
  266. font-size: 22px;
  267. color: #000;
  268. }
  269. .addDialogLogo{
  270. width: 60px;
  271. height: 30px;
  272. line-height: 30px;
  273. background: #f2f2f2;
  274. position: absolute;
  275. left: 10px;
  276. top: 10px;
  277. text-align: center;
  278. }
  279. .el-dialog__header{
  280. background: #32455b;
  281. }
  282. .el-dialog__title{
  283. // text-align: center;
  284. margin-left:250px;
  285. font-size: 22px;
  286. color:rgb(246, 247, 246);
  287. }
  288. .addDialogMid{
  289. box-sizing: border-box;
  290. padding:0 60px 0 10px;
  291. .addDialogTit{
  292. display: flex;
  293. span{
  294. width: 80px;
  295. line-height: 40px;
  296. text-align: left;
  297. }
  298. }
  299. .addDialogTit1{
  300. display: flex;
  301. justify-content: space-between;
  302. margin-bottom: 15px;
  303. }
  304. .addDialogTit2{
  305. margin-top: 10px;
  306. font-size: 18px;
  307. color: #000;
  308. text-indent: 2em;
  309. }
  310. .addDialogCon{
  311. margin-top: 20px;
  312. }
  313. }
  314. .dialog-footer{
  315. display: flex;
  316. justify-content: center;
  317. .btn5{
  318. height: 40px;
  319. font-size: 16px;
  320. background: #0e72e6;
  321. width: 200px;
  322. }
  323. }
  324. }
  325. //提交对话框结束
  326. .right{
  327. width: 83%;
  328. background: #fff;
  329. box-sizing: border-box;
  330. padding: 15px 20px;
  331. min-height: 740px;
  332. margin-bottom: 60px;
  333. border-radius: 5px;
  334. }
  335. // 左边栏开始
  336. .left{
  337. width: 10%;
  338. min-width: 110px;
  339. height: 740px;
  340. background: #32455b;
  341. display: flex;
  342. justify-content: center;
  343. margin-right: 2%;
  344. box-sizing: border-box;
  345. padding: 0 10px;
  346. border-radius: 5px;
  347. .leftTits{
  348. display: flex;
  349. flex-direction: column;
  350. margin: 50px 0 0 10px;
  351. div{
  352. width: 97px;
  353. color: #fff;
  354. cursor: pointer;
  355. margin-bottom: 30px;
  356. p{
  357. white-space: nowrap;
  358. overflow: hidden;
  359. text-overflow:ellipsis;
  360. }
  361. }
  362. }
  363. div:hover{
  364. color: #ccc;
  365. }
  366. .sx{
  367. margin-top: 53.5px;
  368. margin-left: 8px;
  369. width: 1px;
  370. height: 400px;
  371. background: #84888d;
  372. .qiu{
  373. width: 10px;
  374. height: 10px;
  375. background: #fff;
  376. border-radius: 50px;
  377. margin-left: -4.5px;
  378. }
  379. }
  380. }
  381. // 左边栏结束
  382. }
  383. </style>