projectApplicationApplyMain.vue 11 KB

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