repertoryList.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <div class="app-container">
  3. <div class="title-container">
  4. <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
  5. </div>
  6. <y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="selectRepertoryPage">
  7. <template slot="left">
  8. <el-input style="margin-left: 20px;width: 300px;float: left;" class="filter-item"
  9. v-model="listQuery.keyWord" placeholder="项目编号/报告号/项目名称/业务来源" clearable>
  10. </el-input>
  11. <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList"
  12. round>搜索
  13. </el-button>
  14. <el-button class="filter-item" style="float: left;" round type="success" @click="resetParams()">重置
  15. </el-button>
  16. </template>
  17. <parentTable ref="table" v-loading="listLoading" :data="pageData.records" slot="table" style="width: 100%;">
  18. <el-table-column label="项目编号" align="center" width="150">
  19. <template slot-scope="{row}">
  20. <span>{{ row.orderId }}</span>
  21. </template>
  22. </el-table-column>
  23. <el-table-column label="项目名称" align="center" width="150">
  24. <template slot-scope="{row}">
  25. <span>{{ row.orderName }}</span>
  26. </template>
  27. </el-table-column>
  28. <el-table-column label="报告号" align="center" width="150">
  29. <template slot-scope="{row}">
  30. <span>{{ row.reportNo }}</span>
  31. </template>
  32. </el-table-column>
  33. <el-table-column label="评估目的" align="center" width="150">
  34. <template slot-scope="{row}">
  35. <span>{{ row.purposeName }}</span>
  36. </template>
  37. </el-table-column>
  38. <el-table-column label="评估方法" align="center" width="150">
  39. <template slot-scope="{row}">
  40. <span>{{ row.methodName }}</span>
  41. </template>
  42. </el-table-column>
  43. <el-table-column label="评估作业开始日" align="center" width="150">
  44. <template slot-scope="{row}">
  45. <span>{{ row.startTime }}</span>
  46. </template>
  47. </el-table-column>
  48. <el-table-column label="估价作业结束日" align="center" width="150">
  49. <template slot-scope="{row}">
  50. <span>{{ row.endTime }}</span>
  51. </template>
  52. </el-table-column>
  53. <el-table-column label="估价时点" align="center" width="150">
  54. <template slot-scope="{row}">
  55. <span>{{ row.valuationBasisDate }}</span>
  56. </template>
  57. </el-table-column>
  58. <el-table-column label="评估总值(万元)" align="center" width="150">
  59. <template slot-scope="{row}">
  60. <span>{{ row.evaluateAmount }}</span>
  61. </template>
  62. </el-table-column>
  63. <el-table-column label="评估单价(元)" align="center" width="150">
  64. <template slot-scope="{row}">
  65. <span>{{ row.evaluatePrice }}</span>
  66. </template>
  67. </el-table-column>
  68. <el-table-column label="评估部门" align="center" width="150">
  69. <template slot-scope="{row}">
  70. <span>{{ row.evaluateDepartment }}</span>
  71. </template>
  72. </el-table-column>
  73. <el-table-column label="市场部门" align="center" width="150">
  74. <template slot-scope="{row}">
  75. <span>{{ row.marketDepartment }}</span>
  76. </template>
  77. </el-table-column>
  78. </parentTable>
  79. </y-page-list-layout>
  80. </div>
  81. </template>
  82. <script>
  83. import YPageListLayout from '@/components/YPageListLayout'
  84. import Breadcrumb from '@/components/Breadcrumb'
  85. import PermissionButton from '@/components/PermissionButton/PermissionButton'
  86. export default {
  87. name: 'RepertoryList',
  88. components: {
  89. Breadcrumb,
  90. YPageListLayout,
  91. PermissionButton,
  92. },
  93. data() {
  94. return {
  95. pageData: { records: [] },
  96. listLoading: false,
  97. listQuery: {
  98. page: 1,
  99. size: 10,
  100. current: 1,
  101. // 节点code
  102. nodeCode: null,
  103. // 客户经理id
  104. clientManagerId: null,
  105. // 项目负责人id
  106. principalId: null,
  107. // 业务类型
  108. assetsBusinessGener: null,
  109. // 关键字
  110. keyWord: null
  111. },
  112. // 用户下拉列表
  113. allUsers: [],
  114. // 业务类型下拉列表
  115. assetsBusinessGeners: [
  116. {
  117. value: '单项资产',
  118. label: '单项资产'
  119. }, {
  120. value: '整体资产',
  121. label: '整体资产'
  122. }, {
  123. value: '无形资产',
  124. label: '无形资产'
  125. }, {
  126. value: '债权',
  127. label: '债权'
  128. }, {
  129. value: '其他',
  130. label: '其他'
  131. }
  132. ]
  133. }
  134. },
  135. created() {
  136. // 获取资产业务订单
  137. this.selectRepertoryPage();
  138. },
  139. methods: {
  140. // 无条件分页查询
  141. selectRepertoryPage() {
  142. this.$api.assets.selectRepertoryPage(this.listQuery).then(res => {
  143. if (res.code === 200) {
  144. this.pageData = res.data;
  145. }
  146. })
  147. },
  148. // 条件查询
  149. searchList() {
  150. // 重置分页
  151. this.listQuery.page = 1
  152. this.listQuery.size = 10
  153. this.selectRepertoryPage()
  154. },
  155. // 重置搜索条件
  156. resetParams() {
  157. this.$router.push({ query: {} });
  158. this.listQuery = {
  159. current: 1,
  160. size: 10,
  161. }
  162. this.selectRepertoryPage();
  163. }
  164. }
  165. }
  166. </script>
  167. <style lang="scss" scoped></style>