CompanyList.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <template>
  2. <a-card :bordered="false">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="searchQuery">
  6. <a-row :gutter="24">
  7. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8. <a-form-item label="客户编号">
  9. <j-input placeholder="请输入客户编号" v-model="queryParam.customerNo"></j-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  13. <a-form-item label="客户名称">
  14. <j-input placeholder="请输入客户名称" v-model="queryParam.customerName"></j-input>
  15. </a-form-item>
  16. </a-col>
  17. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  18. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  19. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  20. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  21. </span>
  22. </a-col>
  23. </a-row>
  24. </a-form>
  25. </div>
  26. <!-- table区域-begin -->
  27. <div>
  28. <a-table
  29. ref="table"
  30. size="middle"
  31. :scroll="{x:true}"
  32. bordered
  33. rowKey="id"
  34. :columns="columns"
  35. :dataSource="dataSource"
  36. :pagination="ipagination"
  37. :loading="loading"
  38. class="j-table-force-nowrap"
  39. @change="handleTableChange">
  40. <!-- 任务名称可点击 -->
  41. <template v-slot:customerNo="text, record">
  42. <a @click="showTaskList(record)">{{ text }}</a>
  43. </template>
  44. </a-table>
  45. </div>
  46. </a-card>
  47. </template>
  48. <script>
  49. import '@/assets/less/TableExpand.less'
  50. import {mixinDevice} from '@/utils/mixin'
  51. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  52. import SmsCheckWorkLogModal from '../smscheck/modules/SmsCheckWorkLogModal'
  53. import {getAction} from "@api/manage";
  54. export default {
  55. name: 'CompanyList',
  56. mixins: [JeecgListMixin],
  57. components: {
  58. SmsCheckWorkLogModal
  59. },
  60. props: {
  61. task: {
  62. type: Object,
  63. require: true
  64. }
  65. },
  66. data() {
  67. return {
  68. description: '行短公司列表',
  69. // 表头
  70. columns: [
  71. {
  72. title: '#',
  73. dataIndex: '',
  74. key: 'rowIndex',
  75. width: 60,
  76. align: "center",
  77. customRender: function (t, r, index) {
  78. return parseInt(index) + 1;
  79. }
  80. },
  81. {
  82. title: '客户编号',
  83. align: "center",
  84. dataIndex: 'customerNo',
  85. scopedSlots: {customRender: 'customerNo'},
  86. },
  87. /*{
  88. title: '客户名称',
  89. align: "center",
  90. dataIndex: 'customerName',
  91. customRender: function (text, record, index) {
  92. if (!text) {
  93. return '无'
  94. }
  95. return text
  96. }
  97. },*/
  98. {
  99. title: '入网时间',
  100. align: "center",
  101. dataIndex: 'networkAccessTime',
  102. customRender: function (text, record, index) {
  103. if (!text) {
  104. return '无'
  105. }
  106. return text
  107. }
  108. },
  109. /*{
  110. title: '服务号码',
  111. align: "center",
  112. dataIndex: 'smsNumber',
  113. customRender: function (text, record, index) {
  114. if (!text) {
  115. return '无'
  116. }
  117. return text
  118. }
  119. },*/
  120. ],
  121. url: {
  122. list: "/smsCheck/customerInfo/selectCompanyList"
  123. },
  124. dictOptions: {},
  125. superFieldList: [],
  126. dataSource1: {}
  127. }
  128. },
  129. created() {
  130. /*this.init()*/
  131. },
  132. methods: {
  133. init() {
  134. getAction("/smsCheck/customerInfo/selectCompanyList", this.queryParam).then(resp => {
  135. if (resp.success) {
  136. this.dataSource = resp.resultList
  137. }
  138. })
  139. },
  140. showTaskList(record) {
  141. let taskInfo = Object.assign({}, this.task);
  142. let info = {
  143. task: this.task,
  144. info: record
  145. };
  146. if (record.id != "1745149239635251202"){
  147. return
  148. }
  149. this.$emit("goTaskList", info)
  150. }
  151. }
  152. }
  153. </script>
  154. <style scoped>
  155. @import '~@assets/less/common.less';
  156. </style>