CustomerList.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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.cardNo"></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.cardName"></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:cardNo="text, record" >
  42. <a @click="goDetails(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: 'cardNo',
  85. scopedSlots: {customRender: 'cardNo'}
  86. }, {
  87. title: '客户名称',
  88. align: "center",
  89. dataIndex: 'cardName'
  90. }, {
  91. title: '新办手机号',
  92. align: "center",
  93. dataIndex: 'newPhone'
  94. }, {
  95. title: '创建人工号',
  96. align: "center",
  97. sorter: (a, b) =>a.createBy.localeCompare(b.createBy),
  98. dataIndex: 'createBy'
  99. }
  100. // , {
  101. // title: '创建时间',
  102. // align: "center",
  103. // sorter:(a, b) => { return a.createTime>= b.createTime? 1 : -1 },
  104. // dataIndex: 'createTime'
  105. // }
  106. ],
  107. url: {
  108. list: "/smsCheck/customerInfo/selectCustomerList"
  109. },
  110. dictOptions:{},
  111. superFieldList:[],
  112. dataSource1:{}
  113. }
  114. },
  115. created() {
  116. /*this.init()*/
  117. },
  118. methods: {
  119. init(){
  120. getAction(this.url,this.queryParam).then(resp=>{
  121. if (resp.success){
  122. this.dataSource=resp.resultList
  123. }
  124. })
  125. },
  126. goDetails(record){
  127. let info = {
  128. info: record
  129. };
  130. this.$emit("goDetails",info)
  131. }
  132. }
  133. }
  134. </script>
  135. <style scoped>
  136. @import '~@assets/less/common.less';
  137. </style>