terminateList.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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="selectTerminatedPage">
  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-select v-model="listQuery.principalId" filterable placeholder="项目负责人(可搜索)"
  12. style=" width: 200px;margin-left: 10px;float: left;">
  13. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id"></el-option>
  14. </el-select>
  15. <el-select v-model="listQuery.clientManagerId" filterable placeholder="客户经理(可搜索)"
  16. style=" width: 200px;margin-left: 10px;float: left;">
  17. <el-option v-for="(u, id) in allUsers" :label="u.name" :value="u.id"></el-option>
  18. </el-select>
  19. <el-select v-model="listQuery.assetsBusinessGener" filterable placeholder="业务类型"
  20. style=" width: 200px;margin-left: 10px;float: left;">
  21. <el-option v-for="(s, value) in assetsBusinessGeners" :label="s.label" :value="s.value"></el-option>
  22. </el-select>
  23. <el-select v-model="listQuery.departmentId" filterable placeholder="接单部门"
  24. style=" width: 200px;margin-left: 10px;float: left;">
  25. <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id"></el-option>
  26. </el-select>
  27. <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList"
  28. round>搜索
  29. </el-button>
  30. <el-button class="filter-item" style="float: left;" round type="success" @click="resetParams()">重置
  31. </el-button>
  32. </template>
  33. <parentTable ref="table" v-loading="listLoading" :data="pageData.records" slot="table" style="width: 100%;">
  34. <el-table-column label="项目编号" align="center" width="150">
  35. <template slot-scope="{row}">
  36. <span>{{ row.orderId }}</span>
  37. </template>
  38. </el-table-column>
  39. <el-table-column label="项目名称" align="center" width="300">
  40. <template slot-scope="{row}">
  41. <span>{{ row.reportName || row.statementName || row.name }}</span>
  42. </template>
  43. </el-table-column>
  44. <el-table-column label="业务类型" align="center" width="150">
  45. <template slot-scope="{row}">
  46. <span>{{ row.assetsBusinessGener }}</span>
  47. </template>
  48. </el-table-column>
  49. <el-table-column label="意见书号" align="center" width="250">
  50. <template slot-scope="{row}">
  51. <span>{{ row.statementNo == null ? '-' : row.statementNo }}</span>
  52. </template>
  53. </el-table-column>
  54. <el-table-column label="报告号" align="center" width="250">
  55. <template slot-scope="{row}">
  56. <span>{{ row.reportNo == null ? '-' : row.reportNo }}</span>
  57. </template>
  58. </el-table-column>
  59. <el-table-column label="业务类型" align="center" width="150">
  60. <template slot-scope="{row}">
  61. <span>{{ row.assetsBusinessGener }}</span>
  62. </template>
  63. </el-table-column>
  64. <el-table-column label="客户名称" align="center" width="150">
  65. <template slot-scope="{row}">
  66. <span>{{ row.customerName }}</span>
  67. </template>
  68. </el-table-column>
  69. <el-table-column label="业务来源" align="center" width="150">
  70. <template slot-scope="{row}">
  71. <span>{{ row.customerSubName }}</span>
  72. </template>
  73. </el-table-column>
  74. <el-table-column label="委托人" align="center" width="150">
  75. <template slot-scope="{row}">
  76. <span>{{ row.bailor == null ? '-' : row.bailor }}</span>
  77. </template>
  78. </el-table-column>
  79. <el-table-column label="委托人联系电话" align="center" width="150">
  80. <template slot-scope="{row}">
  81. <span>{{ row.bailorContactTel == null ? '-' : row.bailorContactTel }}</span>
  82. </template>
  83. </el-table-column>
  84. <el-table-column label="项目负责人" align="center" width="150">
  85. <template slot-scope="{row}">
  86. <span>{{ row.principalName }}</span>
  87. </template>
  88. </el-table-column>
  89. <el-table-column label="客户经理" align="center" width="150">
  90. <template slot-scope="{row}">
  91. <span>{{ row.clientManagerName }}</span>
  92. </template>
  93. </el-table-column>
  94. <el-table-column label="下单时间" align="center" width="200">
  95. <template slot-scope="{row}">
  96. <span>{{ row.created }}</span>
  97. </template>
  98. </el-table-column>
  99. <el-table-column label="终止原因" align="center" width="150">
  100. <template slot-scope="{row}">
  101. <span>{{ row.comment == null ? '-' : row.comment }}</span>
  102. </template>
  103. </el-table-column>
  104. <el-table-column label="操作" align="center" width="200" fixed="right">
  105. <template slot-scope="{row}">
  106. <el-button type="text" @click="orderDetail(row)">查看</el-button>
  107. <el-button type="text" @click="toAddAssetsOrder(row)">重新下单</el-button>
  108. </template>
  109. </el-table-column>
  110. </parentTable>
  111. </y-page-list-layout>
  112. </div>
  113. </template>
  114. <script>
  115. import YPageListLayout from '@/components/YPageListLayout'
  116. import Breadcrumb from '@/components/Breadcrumb'
  117. import PermissionButton from '@/components/PermissionButton/PermissionButton'
  118. export default {
  119. name: 'AssetsTerminateList',
  120. components: {
  121. Breadcrumb,
  122. YPageListLayout,
  123. PermissionButton,
  124. },
  125. data() {
  126. return {
  127. pageData: { records: [] },
  128. listLoading: false,
  129. listQuery: {
  130. page: 1,
  131. size: 10,
  132. current: 1,
  133. // 节点code
  134. nodeCode: null,
  135. // 客户经理id
  136. clientManagerId: null,
  137. // 项目负责人id
  138. principalId: null,
  139. // 业务类型
  140. assetsBusinessGener: null,
  141. // 关键字
  142. keyWord: null,
  143. departmentId: null
  144. },
  145. // 接单部门
  146. allotDepartment: [],
  147. // 用户下拉列表
  148. allUsers: [],
  149. // 业务类型下拉列表
  150. assetsBusinessGeners: [
  151. {
  152. value: '单项资产',
  153. label: '单项资产'
  154. }, {
  155. value: '整体资产',
  156. label: '整体资产'
  157. }, {
  158. value: '无形资产',
  159. label: '无形资产'
  160. }, {
  161. value: '债权',
  162. label: '债权'
  163. }, {
  164. value: '其他',
  165. label: '其他'
  166. }
  167. ]
  168. }
  169. },
  170. created() {
  171. // 获取用户下拉列表
  172. this.getAllUser();
  173. // 获取分单部门
  174. this.getAllotDepartment();
  175. // 获取资产业务订单
  176. this.selectTerminatedPage();
  177. },
  178. methods: {
  179. // 无条件分页查询
  180. selectTerminatedPage() {
  181. this.$api.assets.selectTerminatedPage(this.listQuery).then(res => {
  182. if (res.code === 200) {
  183. this.pageData = res.data;
  184. }
  185. })
  186. },
  187. // 条件查询
  188. searchList() {
  189. // 重置分页
  190. this.listQuery.page = 1
  191. this.listQuery.size = 10
  192. this.selectTerminatedPage()
  193. },
  194. // 重置搜索条件
  195. resetParams() {
  196. this.$router.push({ query: {} });
  197. this.listQuery = {
  198. current: 1,
  199. size: 10,
  200. }
  201. this.selectTerminatedPage();
  202. },
  203. // 获取所有用户下拉列表
  204. getAllUser() {
  205. this.$api.user.simpleAll().then(res => {
  206. if (res.code === 200) {
  207. this.allUsers = res.data;
  208. }
  209. })
  210. },
  211. getNodes() {
  212. this.$api.workNode.enum().then(res => {
  213. if (res.code === 200) {
  214. this.nodes = res.data
  215. }
  216. })
  217. },
  218. orderDetail(row) {
  219. const newRow = {
  220. assetsId: row.assetsId,
  221. statementNo: row.statementNo,
  222. reportNo: row.reportNo,
  223. }
  224. this.$router.push({
  225. path: "/assets/orderDetail",
  226. query: {
  227. row: JSON.stringify(newRow),
  228. back: '/assets/allList',
  229. couldEdit: false,
  230. couldBack: false,
  231. disabledStatus: true
  232. }
  233. })
  234. },
  235. toAddAssetsOrder(row) {
  236. this.$router.push({
  237. path: "/assets/addOrder",
  238. query: {
  239. row: JSON.stringify(row),
  240. back: '/assets/terminateList',
  241. couldEdit: true,
  242. couldBack: true,
  243. disabledStatus: false,
  244. reorder: true
  245. }
  246. })
  247. },
  248. // 获取部门下拉列表
  249. getAllotDepartment() {
  250. this.$api.department.allot('ASSETS_BUSINESS').then(res => {
  251. if (res.code === 200) {
  252. this.allotDepartment = res.data;
  253. }
  254. })
  255. }
  256. }
  257. }
  258. </script>
  259. <style lang="scss" scoped></style>