estimatePlan.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template>
  2. <div class="xqch-content01">
  3. <div style="width:100%;height:100px"></div>
  4. <!-- 方案评估信息区域 -->
  5. <div class="planEstimate-area" v-if="commonFunction.getUserConfig($store.state.userOwnMenus,400).available">
  6. <div class="planEstimate-title"></div>
  7. <div class="planEstimate-bottonArea">
  8. <!-- <el-button class="planAdjustBtn" size="small" type="primary" @click="conflictCheck">冲突情况检测</el-button> -->
  9. <el-button class="planAdjustBtn" size="small" type="text">冲突情况检测</el-button>
  10. </div>
  11. <div class="planEstimate-table">
  12. <xqchPlanEstimateTable :xqchPlanEstimateData="xqchPlanEstimateData"></xqchPlanEstimateTable>
  13. </div>
  14. </div>
  15. <!-- 筹划方案区域 -->
  16. <div class="CHplan-area" v-if="commonFunction.getUserConfig($store.state.userOwnMenus,401).available">
  17. <div class="CHplan-title"></div>
  18. <div class="CHplan-table">
  19. <xqchCHplanTable :xqchCHplanData="xqchCHplanData"></xqchCHplanTable>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import xqchPlanEstimateTable from '@/components/tables/xqch_planEstimateTableForEstimatePlan.vue'
  26. import xqchCHplanTable from '@/components/tables/xqch_CHplanTable.vue'
  27. import {getXQCHplanEstimate, getXQCHCHplan} from '@/api/xqchApi.js'
  28. export default {
  29. name: "estimatePlan",
  30. components: {xqchCHplanTable, xqchPlanEstimateTable},
  31. data() {
  32. return {
  33. xqchPlanEstimateData: [],
  34. xqchPlanEstimateVisible: false,
  35. xqchCHplanData: [],
  36. xqchCHplanVisible: false,
  37. }
  38. },
  39. watch: {
  40. $route(to) {
  41. if (to.name === 'xqchPage') {
  42. this.getTablePlanEstimateDataFromBackend();
  43. this.getTableCHPlanDataFromBackend();
  44. }
  45. }
  46. },
  47. mounted() {
  48. this.getTablePlanEstimateDataFromBackend();
  49. this.getTableCHPlanDataFromBackend();
  50. },
  51. methods: {
  52. conflictCheck() {
  53. // this.$router.push({name:'xqchPageMain'})
  54. this.$emit("sentConflictCheck", 1)
  55. },
  56. getTablePlanEstimateDataFromBackend() {
  57. getXQCHplanEstimate().then(res => {
  58. console.log("需求筹划第一页面,方案评估数据:", res.data);
  59. this.xqchPlanEstimateData = res.data;
  60. this.xqchPlanEstimateVisible = true;
  61. });
  62. },
  63. getTableCHPlanDataFromBackend() {
  64. getXQCHCHplan().then(res => {
  65. console.log("需求筹划第一页面,筹划方案数据:", res.data);
  66. this.xqchCHplanData = res.data;
  67. this.xqchCHplanVisible = true;
  68. });
  69. },
  70. },
  71. };
  72. </script>
  73. <style lang='scss' scoped>
  74. .xqch-content01 {
  75. width: 100%;
  76. height: 100%;
  77. color: #fff;
  78. .planEstimate-area {
  79. width: 690px;
  80. height: 300px;
  81. background: url('@/assets/ClipImage/dikuang/fanganpinggu.png');
  82. background-size: 100% 100%;
  83. position: relative;
  84. // margin: 124px auto 70px;
  85. margin: 0 auto 70px;
  86. .planEstimate-title {
  87. width: 690px;
  88. height: 38px;
  89. background: url('@/assets/ClipImage/biaoti/fanganpinggu.png');
  90. background-size: 100% 100%;
  91. position: absolute;
  92. top: -44px;
  93. display: flex;
  94. flex-direction: row-reverse;
  95. align-items: center;
  96. }
  97. .planEstimate-bottonArea {
  98. width: 680px;
  99. height: 40px;
  100. margin-left: 10px;
  101. display: flex;
  102. align-items: center;
  103. /deep/ .planAdjustBtn {
  104. height: 30px;
  105. width: 100px;
  106. background: #999;
  107. color: #ddd;
  108. }
  109. }
  110. .planEstimate-table {
  111. width: 690px;
  112. height: 260px;
  113. box-sizing: border-box;
  114. padding: 0 10px;
  115. }
  116. }
  117. .CHplan-area {
  118. width: 1510px;
  119. height: 300px;
  120. background: url('@/assets/ClipImage/dikuang/chouhuafangan.png');
  121. background-size: 100% 100%;
  122. position: relative;
  123. margin: 0 auto;
  124. .CHplan-title {
  125. width: 1510px;
  126. height: 38px;
  127. background: url('@/assets/ClipImage/biaoti/chouhuafangan.png');
  128. background-size: 100% 100%;
  129. position: absolute;
  130. top: -44px;
  131. }
  132. .CHplan-table {
  133. width: 1510px;
  134. height: 300px;
  135. box-sizing: border-box;
  136. padding: 10px;
  137. }
  138. }
  139. }
  140. </style>