complaintlog.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <div class="container">
  3. <fullscreen :fullscreen.sync="fullscreen" class="container-box">
  4. <div class="titbox">
  5. <h2>处理工单历史信息</h2>
  6. <div>
  7. <i class="el-icon-refresh" @click="iconCli(1)"></i>
  8. <i class="el-icon-full-screen" @click="iconCli(2)"></i>
  9. <!-- <i class="el-icon-folder-opened"></i>-->
  10. <!-- <i class="el-icon-view"></i>-->
  11. <!-- <i class="el-icon-more"></i>-->
  12. </div>
  13. </div>
  14. <div class="search">
  15. <mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch>
  16. </div>
  17. <div class="tabbox">
  18. <el-table height="calc(100% - 40px)" v-loading="loading" class="com-table" ref="multipleTable"
  19. :data="tableData" tooltip-effect="dark" size="small" border style="width: 100%">
  20. <el-table-column align="center" prop="complaintWOID" label="投诉处理工单编号" show-overflow-tooltip>
  21. </el-table-column>
  22. <el-table-column align="center" prop="complaintWONode" show-overflow-tooltip label="投诉处理工单环节">
  23. </el-table-column>
  24. <el-table-column prop="staffName" label="工单处理人" show-overflow-tooltip>
  25. <template slot-scope="scope">
  26. <span>{{$desensitization(scope.row.staffName,1)}}</span>
  27. </template>
  28. </el-table-column>
  29. <el-table-column align="center" prop="staffNO" label="工单处理人工号">
  30. </el-table-column>
  31. <el-table-column width="120" align="center" prop="bizCode" label="返回码">
  32. </el-table-column>
  33. <el-table-column align="center" prop="bizDesc" label="返回信息描述">
  34. </el-table-column>
  35. <el-table-column align="center" prop="feedbackTime" label="处理时间">
  36. </el-table-column>
  37. <el-table-column align="center" prop="rltSysNM" label="派转外系统名称">
  38. </el-table-column>
  39. </el-table>
  40. <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
  41. :total="total">
  42. </el-pagination>
  43. </div>
  44. </fullscreen>
  45. </div>
  46. </template>
  47. <script>
  48. import mySearch from "../../../components/search";
  49. export default {
  50. components: {
  51. mySearch,
  52. },
  53. data() {
  54. return {
  55. tableList: [],
  56. fullscreen: false,
  57. total: 0,
  58. pageSize: 1,
  59. tableData: [],
  60. searchList: [{
  61. type: "input",
  62. tit: "投诉单号",
  63. value: "",
  64. width: "100%",
  65. options: [],
  66. }, ],
  67. params: {
  68. complaintWOID: "",
  69. },
  70. loading: false,
  71. };
  72. },
  73. methods: {
  74. //搜索数据
  75. searchInfo(v) {
  76. this.params = {};
  77. v[0] ? (this.params.complaintWOID = v[0]) : "";
  78. this.getList(this.params, this.pageSize);
  79. },
  80. //获取列表
  81. getList(v, n) {
  82. this.loading = true;
  83. this.pageSize = n;
  84. this.$http({
  85. url: "/compvis/cpv/complaintWoQuery",
  86. method: "post",
  87. headers: {
  88. "Content-Type": "application/json",
  89. page: '{"pageNo":"' + n + '","pageSize":"10"}',
  90. },
  91. data: v,
  92. }).then((res) => {
  93. this.loading = false;
  94. this.tableData = res.data.data;
  95. this.total = res.data.totalRecord;
  96. });
  97. },
  98. //功能栏
  99. iconCli(v) {
  100. if (v === 1) {
  101. this.getList(this.params, this.pageSize);
  102. }
  103. if (v === 2) {
  104. this.fullscreen = !this.fullscreen;
  105. }
  106. },
  107. // 分页
  108. currchange(v) {
  109. this.pageSize = v;
  110. this.getList(this.params, this.pageSize);
  111. },
  112. },
  113. mounted() {
  114. if (this.$route.params.complaintWOID) {
  115. this.searchList[0].value = this.$route.params.complaintWOID;
  116. this.params.complaintWOID = this.$route.params.complaintWOID;
  117. } else {
  118. this.searchList[0].value = "";
  119. this.params.complaintWOID = "";
  120. }
  121. this.getList(this.params, this.pageSize);
  122. },
  123. created() {},
  124. watch: {
  125. $route(to, from) {
  126. if (from.name == "complaintQuery" && this.$route.params.complaintWOID) {
  127. this.searchList[0].value = this.$route.params.complaintWOID;
  128. this.params.complaintWOID = this.$route.params.complaintWOID;
  129. this.getList(this.params, this.pageSize);
  130. } else {
  131. this.searchList[0].value = "";
  132. this.params.complaintWOID = "";
  133. }
  134. },
  135. },
  136. };
  137. </script>
  138. <style>
  139. .el-input__suffix {
  140. cursor: pointer;
  141. }
  142. </style>
  143. <style scoped lang="scss">
  144. .titbox {
  145. div {
  146. float: right;
  147. i {
  148. font-size: 22px;
  149. margin-left: 20px;
  150. cursor: pointer;
  151. }
  152. }
  153. }
  154. .tabbox {
  155. margin-top: 15px;
  156. }
  157. .pageBox {
  158. text-align: right;
  159. margin-top: 10px;
  160. }
  161. </style>