child.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <template>
  2. <div class="contrl">
  3. <div style="width: 95%;">
  4. <div class="title-div">
  5. <p>{{ projectStore.projectInfo.projectName }}</p>
  6. </div>
  7. <div class="createNew-div">
  8. <img src="../../../assets/icons/word.png" style="width: 32px; height: 32px; float: left;margin-top: 22px;" />
  9. <span style="margin-left: 10px;">新的报告</span>
  10. <img src="../../../assets/icons/plus.png" style="width: 32px; height: 32px;float: right;margin-top: 22px;" />
  11. </div>
  12. <div class="createNew-div" @click="getCalculateProgress()">
  13. <img src="../../../assets/icons/excel.png" style="width: 32px; height: 32px; float: left;margin-top: 22px;" />
  14. <span style="margin-left: 10px;">新的测算表</span>
  15. <img src="../../../assets/icons/plus.png" style="width: 32px; height: 32px;float: right;margin-top: 22px;" />
  16. </div>
  17. </div>
  18. <div class="example-list report-div">
  19. <el-card class="report-item no-border" shadow="never">
  20. <div class="report-icon">
  21. <img src="../../../assets/icons/word.png" style="width: 52px; height: 52px;" />
  22. </div>
  23. <div class="report-text">
  24. <span class="report-text-type">资产债权类报告</span>
  25. <span> 一 </span>
  26. <span class="report-text-name">遂宁市船山区五彩缤纷路132号134号 136号等船山区慈音路2号南瑞弗莱明戈 10栋2层1商业债权分析报告
  27. </span>
  28. <div style="margin-top: 5px;">
  29. <span>
  30. <el-icon>
  31. <Avatar />
  32. </el-icon>
  33. 恒丰银行成都分行</span>
  34. <span>
  35. <el-tag style="margin-left: 5px;">
  36. 债权
  37. </el-tag>
  38. <el-tag style="margin-left: 5px;" type="danger">
  39. 评估
  40. </el-tag>
  41. </span>
  42. <span style="float: right; color:darkgrey">
  43. 2024-10-16 12:10:09
  44. </span>
  45. </div>
  46. </div>
  47. <div class="report-button">
  48. <el-icon>
  49. <Download />
  50. </el-icon>
  51. </div>
  52. </el-card>
  53. <el-card class="report-item no-border" shadow="never">
  54. <div class="report-icon">
  55. <img src="../../../assets/icons/excel.png" style="width: 52px; height: 52px;" />
  56. </div>
  57. <div class="report-text">
  58. <span class="report-text-type">资产债权类测算表</span>
  59. <span> 一 </span>
  60. <span class="report-text-name">遂宁市船山区五彩缤纷路132号134号 136号等船山区慈音路2号南瑞弗莱明戈 10栋2层1商业债权评估明细表
  61. </span>
  62. <div style="margin-top: 5px;">
  63. <span>
  64. <el-icon>
  65. <Avatar />
  66. </el-icon>
  67. 恒丰银行成都分行</span>
  68. <span>
  69. <el-tag style="margin-left: 5px;">
  70. 债权
  71. </el-tag>
  72. <el-tag style="margin-left: 5px;" type="danger">
  73. 评估
  74. </el-tag>
  75. </span>
  76. <span style="float: right; color:darkgrey">
  77. 2024-10-16 12:10:09
  78. </span>
  79. </div>
  80. </div>
  81. <div class="report-button">
  82. <el-icon>
  83. <Download />
  84. </el-icon>
  85. </div>
  86. </el-card>
  87. </div>
  88. </div>
  89. </template>
  90. <script>
  91. import { mapStores } from 'pinia'
  92. import { assetsProjectInfo } from '@/stores/assetsProjectStore';
  93. import { getUnFinishedCalculateProgress } from '@/api/assetsCalculate';
  94. export default {
  95. name: 'assetsChild',
  96. data() {
  97. return {
  98. msg: 0,
  99. projectInfo: {},
  100. folderName: null
  101. }
  102. },
  103. computed: {
  104. ...mapStores(assetsProjectInfo),
  105. },
  106. created() {
  107. this.projectInfo = this.$route.query;
  108. },
  109. methods: {
  110. createNewCalculate() {
  111. this.$router.push({ path: '/home/assets/workbench/calculate/baseInfo', query: { 'projectId': this.projectInfo.projectId } })
  112. },
  113. nextFolder() {
  114. },
  115. // 获取未完成测算表的进度信息并保存到缓存
  116. getCalculateProgress() {
  117. getUnFinishedCalculateProgress(this.projectStore.projectInfo.id).then(res => {
  118. if (res.data) {
  119. // 根据不同进度跳转到不同步骤页面
  120. if (res.data.progress === 'BASE') {
  121. this.$router.push('/home/assets/workbench/calculate/importInfo')
  122. } else if (res.data.progress === 'IMPORT') {
  123. } else if (res.data.progress === 'GENERATE') {
  124. } else {
  125. }
  126. this.projectStore.setCalculateProgress(res.data);
  127. } else {
  128. // 为空说明没有未完成的测算,从头开始新建
  129. this.createNewCalculate();
  130. }
  131. })
  132. }
  133. },
  134. }
  135. </script>
  136. <style scoped>
  137. .base {
  138. min-height: calc(100vh - 80px);
  139. width: 100%;
  140. }
  141. .content {
  142. margin-left: 160px;
  143. margin-right: 160px;
  144. padding: 50px 20px 20px 20px;
  145. }
  146. .contrl {
  147. width: 70.9%;
  148. border-right: 1.5px #dae1eb solid;
  149. padding: 0px 20px 20px 0px;
  150. float: left;
  151. }
  152. .report-div {
  153. margin-top: 100px;
  154. min-height: 600px;
  155. }
  156. :deep(.el-tabs__active-bar) {
  157. background-color: #ff6154;
  158. }
  159. :deep(.el-tabs__item.is-active) {
  160. color: #ff6154;
  161. }
  162. :deep(.el-tabs__item:hover) {
  163. color: #ff6154;
  164. }
  165. .title-div {
  166. width: 500px;
  167. float: left;
  168. overflow-y: hidden;
  169. height: 80px;
  170. }
  171. .createNew-div {
  172. height: 80px;
  173. line-height: 80px;
  174. border: #dae1eb 1.5px solid;
  175. border-radius: 0.6em;
  176. width: 200px;
  177. float: right;
  178. padding-left: 10px;
  179. padding-right: 10px;
  180. margin-left: 20px;
  181. }
  182. .createNew-div:hover {
  183. cursor: pointer;
  184. background-color: #dae1eb;
  185. border: #dae1eb 1.5px solid;
  186. transition: 0.5s;
  187. }
  188. :deep(.el-tabs__nav-wrap:after) {
  189. background-color: white;
  190. }
  191. .null-div {
  192. width: 100%;
  193. height: 100%;
  194. text-align: center;
  195. margin-top: 20%;
  196. color: var(--vt-c-text-light-2);
  197. }
  198. .no-border {
  199. border: none;
  200. }
  201. .no-border:hover {
  202. cursor: pointer;
  203. }
  204. </style>