ProjectManagementFund2.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. <template>
  2. <div class="ProjectManagementFund2">
  3. <div class="right">
  4. <div class="vfpHeader">
  5. <div class="titleOne">预算经费</div>
  6. <el-button type="primary" @click="back">返回</el-button>
  7. </div>
  8. <hr>
  9. <!-- 跳转导航开始 -->
  10. <div class="AppBar">
  11. <div @click="content">项目资金使用详情</div>
  12. <div @click="remark" class="AppBarActive">资金申报明细</div>
  13. </div>
  14. <!-- 跳转导航结束 -->
  15. <!-- 表格开始 -->
  16. <el-table
  17. ref="multipleTable"
  18. :data="tableData"
  19. tooltip-effect="dark"
  20. stripe
  21. class="fontSize"
  22. style="height: 500px;"
  23. :header-cell-style="{ background: '#f2f2f2',color:'#000' }"
  24. @selection-change="handleSelectionChange">
  25. <el-table-column
  26. prop="projectName"
  27. align="center"
  28. label="活动名称"
  29. >
  30. </el-table-column>
  31. <el-table-column
  32. prop="projectPerson"
  33. align="center"
  34. label="负责人"
  35. >
  36. </el-table-column>
  37. <el-table-column
  38. prop="relevancy"
  39. align="center"
  40. label="项目类型"
  41. >
  42. </el-table-column>
  43. <el-table-column
  44. prop="budget"
  45. align="center"
  46. label="申请经费(元)"
  47. >
  48. </el-table-column>
  49. <el-table-column
  50. prop="dept"
  51. align="center"
  52. label="所在部门"
  53. >
  54. </el-table-column>
  55. <el-table-column
  56. prop="date"
  57. align="center"
  58. label="申请时间"
  59. >
  60. </el-table-column>
  61. <el-table-column
  62. prop="operation"
  63. label="操作"
  64. align="center"
  65. width="250px"
  66. >
  67. <template #default="scope">
  68. <div class="operations">
  69. <!-- <el-button type="primary" > -->
  70. <el-button type="primary" class="bt1" @click="MADetails(scope)" size="mini" >查看详情</el-button>
  71. <el-button type="primary" class="bt1" size="mini">表单查看</el-button>
  72. <!-- </el-button> -->
  73. </div>
  74. </template>
  75. </el-table-column>
  76. </el-table>
  77. <!-- 表格结束 -->
  78. <div class="pmFund1Footer">
  79. <el-pagination
  80. background
  81. layout="prev, pager, next"
  82. :total="1">
  83. </el-pagination>
  84. </div>
  85. </div>
  86. <!-- 查看详情对话框开始 -->
  87. <el-dialog
  88. title="创客资金申请"
  89. :visible.sync="fundDetail"
  90. width="900px"
  91. class="projectApplicationfundAddDialog2"
  92. :before-close="init">
  93. <hr>
  94. <div style="display: flex;align-items: center;flex-wrap: wrap;">
  95. <div class="deleteContent1">
  96. <div class="dagSpan">项目名称</div>
  97. <el-select v-model="values.projectName" transfer="true" :popper-append-to-body="false"
  98. style="width: 70%;" placeholder="请选择">
  99. <el-option
  100. v-for="item in projectNameOptions"
  101. :key="item.value"
  102. :label="item.label"
  103. :value="item.value">
  104. </el-option>
  105. </el-select>
  106. </div>
  107. <div class="deleteContent1">
  108. <div class="dagSpan">项目类型</div>
  109. <el-select v-model="values.projectType" placeholder="请选择">
  110. <el-option
  111. v-for="item in projectTypeOptions"
  112. :key="item.value"
  113. :label="item.label"
  114. :value="item.value">
  115. </el-option>
  116. </el-select>
  117. </div>
  118. </div>
  119. <div class="dagRemark">
  120. 经费支出支出类别(单位:元)
  121. </div>
  122. <!-- 支出类别(单位:元)第一部分开始 -->
  123. <div class="dagInpS">
  124. <div class="dagInpS1">
  125. <div class="dagSpan">直接经费</div>
  126. <el-select v-model="values.fund"
  127. transfer="true" :popper-append-to-body="false"
  128. placeholder="请选择">
  129. <el-option
  130. v-for="item in fundOptions"
  131. :key="item.value"
  132. :label="item.label"
  133. :value="item.value">
  134. </el-option>
  135. </el-select>
  136. </div>
  137. <div class="dagInpS1">
  138. <div class="dagSpan">预算</div>
  139. <el-input v-model="datas.budget1" placeholder="请输入内容"></el-input>
  140. </div>
  141. <div class="dagInpS1">
  142. <div class="dagSpan">已支付</div>
  143. <el-input v-model="datas.Paid1" placeholder="请输入内容"></el-input>
  144. </div>
  145. <div class="dagInpS1">
  146. <div class="dagSpan">余额</div>
  147. <el-input v-model="datas.balance1" placeholder="请输入内容"></el-input>
  148. </div>
  149. </div>
  150. <div class="dagInpS2">
  151. <div class="dagSpan2">事由</div>
  152. <el-input
  153. type="textarea"
  154. :rows="3"
  155. resize="none"
  156. placeholder="请输入内容"
  157. v-model="datas.reason1">
  158. </el-input>
  159. </div>
  160. <!-- 支出类别(单位:元)第一部分结束-->
  161. <!-- 支出类别(单位:元)第二部分开始 -->
  162. <div class="dagInpS">
  163. <div class="dagInpS1">
  164. <div class="dagSpan" style="width: 70px;">其他</div>
  165. <el-input v-model="datas.rests" style="width: 200px;" placeholder="请输入内容"></el-input>
  166. </div>
  167. <div class="dagInpS1">
  168. <div class="dagSpan">预算</div>
  169. <el-input v-model="datas.budget2" placeholder="请输入内容"></el-input>
  170. </div>
  171. <div class="dagInpS1">
  172. <div class="dagSpan">已支付</div>
  173. <el-input v-model="datas.Paid2" placeholder="请输入内容"></el-input>
  174. </div>
  175. <div class="dagInpS1">
  176. <div class="dagSpan">余额</div>
  177. <el-input v-model="datas.balance2" placeholder="请输入内容"></el-input>
  178. </div>
  179. </div>
  180. <div class="dagInpS2">
  181. <div class="dagSpan2">事由</div>
  182. <el-input
  183. type="textarea"
  184. :rows="3"
  185. resize="none"
  186. class="textArea"
  187. placeholder="请输入内容"
  188. v-model="datas.reason2">
  189. </el-input>
  190. </div>
  191. <!-- 支出类别(单位:元)第二部分结束-->
  192. <span slot="footer" class="dialog-footer">
  193. <el-button type="primary" @click="init" style="font-size:16px" size="small">生成表单</el-button>
  194. <el-button type="primary" @click="init" style="font-size:16px" size="small">返回</el-button>
  195. </span>
  196. </el-dialog>
  197. <!-- 查看详情对话框结束 -->
  198. </div>
  199. </template>
  200. <script>
  201. export default {
  202. data() {
  203. return {
  204. fundDetail:false,
  205. projectNameOptions:[
  206. {
  207. value: '1',
  208. label: '北京烤鸭'
  209. },
  210. {
  211. value: '2',
  212. label: '胡辣汤'
  213. },
  214. ],
  215. projectTypeOptions:[
  216. {
  217. value: '1',
  218. label: '军事'
  219. },
  220. {
  221. value: '2',
  222. label: '饮食'
  223. },
  224. ],
  225. fundOptions:[
  226. {
  227. value: '1',
  228. label: '10000'
  229. },
  230. {
  231. value: '饮食',
  232. label: '100000000'
  233. },
  234. ],
  235. values:{
  236. projectName:'',
  237. projectType:'',
  238. fund:''
  239. },
  240. tableData:[{
  241. projectName:'陆地游泳辅助器',
  242. projectPerson:'王多鱼',
  243. relevancy:'西虹市',
  244. budget:'200万',
  245. date:'2022年-11月-12日',
  246. tel:'16625153432',
  247. status:'已审核',
  248. dept:'中德制造'
  249. },
  250. {
  251. projectName:'北极运冰',
  252. projectPerson:'王多鱼',
  253. relevancy:'西虹市',
  254. budget:'500万',
  255. date:'2022年-11月-12日',
  256. tel:'16625153432',
  257. status:'已审核',
  258. dept:'中德制造'
  259. }
  260. ],
  261. datas:{
  262. budget1:'', //预算
  263. budget2:'',
  264. Paid1:'', //已支付
  265. Paid2:'',
  266. balance1:'', //余额
  267. balance2:'',
  268. reason1:'',
  269. reason2:'',
  270. rests:"",
  271. }
  272. }
  273. },
  274. methods:{
  275. init(){
  276. this.fundDetail=false;
  277. },
  278. content(){
  279. // alert('111')
  280. this.$router.push('/ProjectManagementFund1')
  281. },
  282. remark(){
  283. this.$router.push('/ProjectManagementFund2')
  284. },
  285. MADetails(){
  286. this.fundDetail=true;
  287. },
  288. handleSelectionChange(){
  289. },
  290. }
  291. }
  292. </script>
  293. <style lang="less">
  294. .ProjectManagementFund2{
  295. .right{
  296. width: 100%;
  297. }
  298. .pmFund1Footer{ //分页
  299. width: 400px;
  300. float: right;
  301. margin-top: 30px;
  302. }
  303. .projectApplicationfundAddDialog2{
  304. .el-header {
  305. background-color: #3d67bc;
  306. color: #333;
  307. text-align: center;
  308. display: flex;
  309. justify-content: space-between;
  310. align-items: center;
  311. }
  312. .el-select-dropdown__item{
  313. text-align: left;
  314. }
  315. .el-dialog__title{
  316. font-size: 22px;
  317. }
  318. font-size: 16px !important;
  319. .el-dialog__header{
  320. display: flex;
  321. font-weight: bold;
  322. justify-content: flex-start;
  323. }
  324. .el-dialog__body{
  325. padding-top: 0px;
  326. }
  327. .dagSpan{
  328. min-width: 65px;
  329. max-width: 65px;
  330. display: flex;
  331. justify-content:flex-end;
  332. margin-right: 9px;
  333. align-items: center;
  334. font-size: 16px;
  335. }
  336. .deleteContent1{
  337. width: 55%;
  338. margin-bottom: 10px;
  339. display: flex;
  340. }
  341. .dagRemark{
  342. display: flex;
  343. margin: 20px 0px;
  344. font-size: 16px;
  345. font-weight: 550;
  346. }
  347. .dagInpS{
  348. // width: 100%;
  349. display: flex;
  350. font-size: 16px;
  351. justify-content: space-between;
  352. .dagInpS1{
  353. display: flex;
  354. min-width: 23%;
  355. max-width: 23%;
  356. font-size: 16px;
  357. }
  358. .dagInpS1:nth-child(1){
  359. min-width: 30%;
  360. max-width: 30%;
  361. .dagSpan{
  362. font-size: 16px;
  363. display: inline-block;
  364. text-align: justify;
  365. text-justify:distribute-all-lines;
  366. text-align-last: justify;
  367. transform: translate(0,22%);
  368. }
  369. }
  370. .dagInpSf1:nth-child(n+2) .dagSpan{
  371. font-size: 16px;
  372. min-width: 50px;
  373. max-width: 50px;
  374. }
  375. }
  376. .dagInpS2{
  377. margin:20px 0 20px 0;
  378. display: flex;
  379. font-size: 16px;
  380. .dagSpan2{
  381. font-size: 16px;
  382. max-width: 65px;
  383. min-width: 65px;
  384. margin-right: 10px;
  385. // text-align: right;
  386. display: inline-block;
  387. text-align: justify;
  388. text-justify:distribute-all-lines;
  389. text-align-last: justify;
  390. }
  391. }
  392. }
  393. .newWidth{
  394. width: 150px;
  395. }
  396. }
  397. </style>