BasicSalary.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. <a-select v-model="queryParam.organization">
  10. <a-select-option value="all">所有</a-select-option>
  11. <a-select-option value="Apparel Group">Apparel Group</a-select-option>
  12. <a-select-option value="宁波森语">宁波森语</a-select-option>
  13. <a-select-option value="马菲羊">马菲羊</a-select-option>
  14. </a-select>
  15. </a-form-item>
  16. </a-col>
  17. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  18. <a-form-item label="部门">
  19. <j-search-select-tag v-model="queryParam.deptName" placeholder="请选择部门"
  20. dict="sys_depart,depart_name,depart_name,org_type='3' or org_code='TBD' order by org_code"/>
  21. </a-form-item>
  22. </a-col>
  23. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  24. <a-form-item label="姓名">
  25. <a-input placeholder="请输入" v-model="queryParam.name" />
  26. </a-form-item>
  27. </a-col>
  28. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  29. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  30. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  31. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  32. </span>
  33. </a-col>
  34. </a-row>
  35. </a-form>
  36. </div>
  37. <!-- 操作按钮区域 -->
  38. <a-table
  39. ref="table"
  40. size="middle"
  41. bordered
  42. rowKey="id"
  43. :columns="columns"
  44. :dataSource="dataSource"
  45. :pagination="ipagination"
  46. :scroll="{x: 1000}"
  47. :loading="loading"
  48. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  49. @change="handleTableChange">
  50. <span slot="basicSalary" slot-scope="text, record">
  51. <a>record.basicSalary</a>
  52. <!-- <a >333333</a> -->
  53. </span>
  54. </a-table>
  55. </div>
  56. <!-- table区域-end -->
  57. <!-- 表单区域 -->
  58. <ChangeBasicSalary ref="ChangeBasicSalary"></ChangeBasicSalary>
  59. </a-card>
  60. </template>
  61. <script>
  62. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  63. import { getAction } from '@/api/manage'
  64. import moment from 'moment'
  65. import ChangeBasicSalary from './modules/ChangeBasicSalary.vue'
  66. import JSearchSelectTag from '@/components/dict/JSearchSelectTag'
  67. export default {
  68. name: "BasicSalary",
  69. mixins: [JeecgListMixin],
  70. components: {
  71. moment,
  72. ChangeBasicSalary,
  73. JSearchSelectTag
  74. },
  75. data () {
  76. return {
  77. description: '基本薪资',
  78. DateTime:[],
  79. selectedRowKeys:[],
  80. selectedRows:[],
  81. // 表头
  82. columns: [
  83. {
  84. title: '序号',
  85. width: 80,
  86. align:"center",
  87. dataIndex: 'index',
  88. customRender:function (t, r, index) {
  89. return parseInt(index)+1;
  90. }
  91. },
  92. {
  93. title: '编号',
  94. align:"center",
  95. dataIndex: 'number'
  96. },
  97. {
  98. title: '部门',
  99. align:"center",
  100. dataIndex: 'deptName'
  101. },
  102. {
  103. title: '姓名',
  104. align:"center",
  105. dataIndex: 'name'
  106. },
  107. {
  108. title: '组织',
  109. align:"center",
  110. dataIndex: 'organization'
  111. },
  112. {
  113. title: '工资卡号',
  114. align:"center",
  115. dataIndex: 'salaryCardNumber'
  116. },
  117. {
  118. title: '基本薪资',
  119. align:"center",
  120. dataIndex: 'basicSalary',
  121. scopedSlots: { customRender: 'basicSalary' } ,
  122. customCell: this.handleBasicSalary,
  123. },
  124. {
  125. title: '最后变更时间',
  126. align:"center",
  127. dataIndex: 'lastChangeTime'
  128. },
  129. ],
  130. queryParam:{},
  131. dataSource:[{}],
  132. // 请求参数
  133. // url: {
  134. // },
  135. }
  136. },
  137. computed: {},
  138. created () {
  139. this.getTableList()
  140. },
  141. methods: {
  142. getTableList(){
  143. },
  144. handleBasicSalary(){
  145. return {
  146. on: {
  147. dblclick: event => {
  148. this.$refs.ChangeBasicSalary.visible = true
  149. }
  150. }
  151. }
  152. },
  153. searchQuery(){
  154. },
  155. searchReset(){
  156. },
  157. onSelectChange(selectedRowKeys, selectionRows) {
  158. this.selectedRowKeys = selectedRowKeys;
  159. this.selectedRows = selectionRows;
  160. },
  161. handleTableChange(pagination, filters, sorter) {
  162. this.queryParam.pageNo = pagination.current
  163. this.queryParam.pageSize = pagination.pageSize
  164. this.getTableList()
  165. },
  166. }
  167. }
  168. </script>
  169. <style scoped>
  170. @import '~@assets/less/common.less'
  171. </style>