ProjectManagementFundDetail.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <!-- 项目管理 项目资金使用情况 -->
  3. <div class="ProjectManagementFundDetail" v-loading="loading">
  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="state=0" class="AppBarActive">项目资金使用详情<div v-if="state==0" class='pr1TitBass'></div></div>
  12. <div @click="state=1">资金申报明细<div v-if="state==1" class='pr1TitBass'></div></div>
  13. </div>
  14. <div id="ShowArea">
  15. <fundDetail v-if="state==0"/>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import fundDetail from './components/FundDetail.vue'
  21. export default {
  22. components:{fundDetail},
  23. data() {
  24. return {
  25. state:0,
  26. loading:false,
  27. }
  28. },
  29. methods:{
  30. // getData(){ //初始化完成获取基本数据进行填充
  31. // this.loading = true;
  32. // let param={
  33. // uid:this.$store.state.userInfo.userid,
  34. // pid:this.$route.query['pid']
  35. // }
  36. // this.ajax
  37. // .get(this.$store.state.api+'/GetProjectDetailMessage',param)
  38. // .then(res=>{
  39. // let data = res.data[0][0]
  40. // let fund = JSON.parse(data['money'])
  41. // this.tableData = fund['tableData']
  42. // this.tableData2 = fund['tableData2']
  43. // this.allFund = data['fund']
  44. // this.tableData2.forEach((e)=>{
  45. // this.useFund=this.useFund+e.fund
  46. // })
  47. // this.useFund=this.useFund / 10000
  48. // this.remainFund=this.allFund - this.useFund
  49. // this.loading = false;
  50. // },err=>{
  51. // console.log(err);
  52. // })
  53. // },
  54. back(){
  55. this.$router.push('/ProjectManagement')
  56. }
  57. },
  58. mounted(){
  59. // this.getData()
  60. }
  61. }
  62. </script>
  63. <style lang="less">
  64. .ProjectManagementFundDetail{
  65. width: 100%;
  66. height: 100%;
  67. #ShowArea{
  68. width: 100%;
  69. }
  70. }
  71. </style>