CompanyList.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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:customerName="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. },
  86. {
  87. title:'客户名称',
  88. align:"center",
  89. dataIndex: 'customerName',
  90. scopedSlots: { customRender: 'customerName' }
  91. },
  92. {
  93. title:'入网时间',
  94. align:"center",
  95. dataIndex: 'networkAccessTime',
  96. },
  97. {
  98. title:'客户经理',
  99. align:"center",
  100. dataIndex: 'accountManager',
  101. },
  102. {
  103. title:'经理电话',
  104. align:"center",
  105. dataIndex: 'accountManagerPhone',
  106. },
  107. ],
  108. url: {
  109. list: "/smsCheck/customerInfo/selectCompanyList"
  110. },
  111. dictOptions:{},
  112. superFieldList:[],
  113. dataSource1:{}
  114. }
  115. },
  116. created() {
  117. /*this.init()*/
  118. },
  119. methods: {
  120. init(){
  121. getAction("/smsCheck/customerInfo/selectCompanyList",this.queryParam).then(resp=>{
  122. if (resp.success){
  123. this.dataSource=resp.resultList
  124. }
  125. })
  126. },
  127. showTaskList(record){
  128. let taskInfo = Object.assign({}, this.task);
  129. let info = {
  130. task: this.task,
  131. info: record
  132. };
  133. this.$emit("goTaskList",info)
  134. }
  135. }
  136. }
  137. </script>
  138. <style scoped>
  139. @import '~@assets/less/common.less';
  140. </style>