complaintFeedback.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <template>
  2. <div class="container">
  3. <fullscreen :fullscreen.sync="fullscreen" class="container-box">
  4. <div class="titbox">
  5. <h2 class="font-ui">投诉处理工单反馈</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
  19. height="calc(100% - 40px)"
  20. v-loading="loading"
  21. class="com-table"
  22. ref="multipleTable"
  23. :data="tableData"
  24. tooltip-effect="dark"
  25. size="small"
  26. border
  27. style="width: 100%"
  28. >
  29. <el-table-column
  30. align="center"
  31. prop="bizCode"
  32. label="返回码"
  33. show-overflow-tooltip
  34. >
  35. </el-table-column>
  36. <el-table-column
  37. align="center"
  38. prop="bizDesc"
  39. show-overflow-tooltip
  40. label="返回信息描述"
  41. >
  42. </el-table-column>
  43. </el-table>
  44. <el-pagination
  45. class="pageBox"
  46. @current-change="currchange"
  47. layout="prev, pager, next"
  48. background
  49. :total="total"
  50. >
  51. </el-pagination>
  52. </div>
  53. </fullscreen>
  54. </div>
  55. </template>
  56. <script>
  57. import mySearch from "../../../components/search";
  58. export default {
  59. components: {
  60. mySearch,
  61. },
  62. data() {
  63. return {
  64. fullscreen: false,
  65. total: 0,
  66. pageSize: 1,
  67. tableData: [],
  68. searchList: [
  69. {
  70. type: "input",
  71. tit: "投诉单号",
  72. value: "",
  73. width: "32%",
  74. options: [],
  75. },
  76. {
  77. type: "input",
  78. tit: "处理人",
  79. value: "",
  80. width: "32%",
  81. options: [],
  82. },
  83. {
  84. type: "input",
  85. tit: "处理人工号",
  86. value: "",
  87. width: "32%",
  88. options: [],
  89. },
  90. {
  91. type: "datetime",
  92. tit: "处理时间",
  93. value: "",
  94. width: "32%",
  95. options: [],
  96. },
  97. {
  98. type: "input",
  99. tit: "处理内容",
  100. value: "",
  101. width: "32%",
  102. options: [],
  103. },
  104. ],
  105. params: {
  106. complaintWOID: "",
  107. handleTime: "",
  108. rspDescription: "",
  109. staffNO: "",
  110. staffName: "",
  111. },
  112. loading: false,
  113. };
  114. },
  115. methods: {
  116. //搜索数据
  117. searchInfo(v) {
  118. this.params = {};
  119. v[0] ? (this.params.complaintWOID = v[0]) : "";
  120. this.getList(this.params, this.pageSize);
  121. },
  122. //获取列表
  123. getList(v, n) {
  124. this.loading = true;
  125. this.pageSize = n;
  126. this.$http({
  127. url: "/compvis/cpv/complaintWoFeedback",
  128. method: "post",
  129. headers: {
  130. "Content-Type": "application/json",
  131. page: '{"pageNo":"' + n + '","pageSize":"10"}',
  132. },
  133. data: v,
  134. }).then((res) => {
  135. this.loading = false;
  136. this.tableData = res.data.data;
  137. this.total = res.data.totalRecord;
  138. });
  139. },
  140. //功能栏
  141. iconCli(v) {
  142. if (v === 1) {
  143. this.getList(this.params, this.pageSize);
  144. }
  145. if (v === 2) {
  146. this.fullscreen = !this.fullscreen;
  147. }
  148. },
  149. // 分页
  150. currchange(v) {
  151. this.pageSize = v;
  152. this.getList(this.params, this.pageSize);
  153. },
  154. },
  155. mounted() {
  156. if (this.$route.params.complaintWOID) {
  157. this.searchList[0].value = this.$route.params.complaintWOID;
  158. this.searchList[2].value = this.$route.params.staffNO;
  159. this.searchList[3].value = this.$route.params.handleTime;
  160. this.params.complaintWOID = this.$route.params.complaintWOID;
  161. this.params.handleTime = this.$route.params.handleTime;
  162. this.params.staffNO = this.$route.params.staffNO;
  163. this.getList(this.params, this.pageSize);
  164. } else {
  165. this.searchList[0].value = "";
  166. this.searchList[2].value = "";
  167. this.searchList[3].value = "";
  168. this.params.complaintWOID = "";
  169. this.params.handleTime = "";
  170. this.params.staffNO = "";
  171. }
  172. this.getList(this.params, this.pageSize);
  173. },
  174. created() {},
  175. watch: {
  176. $route(to, from) {
  177. if (from.name == "complaintQuery" && this.$route.params.complaintWOID) {
  178. this.searchList[0].value = this.$route.params.complaintWOID;
  179. this.searchList[2].value = this.$route.params.staffNO;
  180. this.searchList[3].value = this.$route.params.handleTime;
  181. this.params.complaintWOID = this.$route.params.complaintWOID;
  182. this.params.handleTime = this.$route.params.handleTime;
  183. this.params.staffNO = this.$route.params.staffNO;
  184. this.getList(this.params, this.pageSize);
  185. } else {
  186. this.searchList[0].value = "";
  187. this.searchList[2].value = "";
  188. this.searchList[3].value = "";
  189. this.params.complaintWOID = "";
  190. this.params.handleTime = "";
  191. this.params.staffNO = "";
  192. }
  193. },
  194. },
  195. };
  196. </script>
  197. <style>
  198. .el-input__suffix {
  199. cursor: pointer;
  200. }
  201. </style>
  202. <style scoped lang="scss">
  203. .titbox {
  204. div {
  205. float: right;
  206. i {
  207. font-size: 22px;
  208. margin-left: 20px;
  209. cursor: pointer;
  210. }
  211. }
  212. }
  213. .tabbox {
  214. margin-top: 15px;
  215. }
  216. .pageBox {
  217. text-align: right;
  218. margin-top: 10px;
  219. }
  220. </style>