|
@@ -23,7 +23,7 @@
|
|
|
</a-col>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<a-form-item label="姓名">
|
|
|
- <a-input placeholder="请输入" v-model="formState.name" />
|
|
|
+ <a-input placeholder="请输入" v-model="queryParam.name" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
@@ -38,23 +38,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
|
- <div class="table-operator">
|
|
|
- <a-button @click="createMonthlyPayroll" type="primary" icon="plus">生成月度工资单</a-button>
|
|
|
- <a-button @click="createOvertimePayroll" type="primary" icon="plus">生成加班工资单</a-button>
|
|
|
- <a-button @click="createLeavePayroll" type="primary" icon="plus">生成年休工资单</a-button>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- table区域-begin -->
|
|
|
- <div>
|
|
|
- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
|
- <i class="anticon anticon-info-circle ant-alert-icon"></i>
|
|
|
- <span>已选择</span>
|
|
|
- <a style="font-weight: 600">
|
|
|
- {{ selectedRowKeys.length }}
|
|
|
- </a>
|
|
|
- <span>项</span>
|
|
|
- <a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
|
- </div>
|
|
|
+
|
|
|
|
|
|
<a-table
|
|
|
ref="table"
|
|
@@ -68,20 +52,16 @@
|
|
|
:loading="loading"
|
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
|
|
@change="handleTableChange">
|
|
|
- <span slot="operation" slot-scope="text, record">
|
|
|
- <a @click="handleDetail(record)" >查看详情</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
- <a @click="handleDownload(record)" >下载</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
- <a @click="handleexport(record)" >导出</a>
|
|
|
-
|
|
|
+ <span slot="basicSalary" slot-scope="text, record">
|
|
|
+ <!-- <a @click="handleBasicSalary(record)" >record.basicSalary</a> -->
|
|
|
+ <a @click="handleBasicSalary(record)" >333333</a>
|
|
|
</span>
|
|
|
</a-table>
|
|
|
</div>
|
|
|
<!-- table区域-end -->
|
|
|
|
|
|
<!-- 表单区域 -->
|
|
|
- <PayrollDetail ref="PayrollDetail"></PayrollDetail>
|
|
|
+ <ChangeBasicSalary ref="ChangeBasicSalary"></ChangeBasicSalary>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -90,13 +70,15 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import { getAction } from '@/api/manage'
|
|
|
import moment from 'moment'
|
|
|
- import PayrollDetail from './modules/PayrollDetail.vue'
|
|
|
+ import ChangeBasicSalary from './modules/ChangeBasicSalary.vue'
|
|
|
+ import JSearchSelectTag from '@/components/dict/JSearchSelectTag'
|
|
|
export default {
|
|
|
name: "BasicSalary",
|
|
|
mixins: [JeecgListMixin],
|
|
|
components: {
|
|
|
moment,
|
|
|
- PayrollDetail
|
|
|
+ ChangeBasicSalary,
|
|
|
+ JSearchSelectTag
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -110,7 +92,10 @@
|
|
|
title: '序号',
|
|
|
width: 80,
|
|
|
align:"center",
|
|
|
- dataIndex: 'code'
|
|
|
+ dataIndex: 'code',
|
|
|
+ customRender:function (t, r, index) {
|
|
|
+ return parseInt(index)+1;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '编号',
|
|
@@ -140,7 +125,8 @@
|
|
|
{
|
|
|
title: '基本薪资',
|
|
|
align:"center",
|
|
|
- dataIndex: 'basicSalary'
|
|
|
+ dataIndex: 'basicSalary',
|
|
|
+ scopedSlots: { customRender: 'basicSalary' }
|
|
|
},
|
|
|
{
|
|
|
title: '最后变更时间',
|
|
@@ -164,28 +150,14 @@
|
|
|
getTableList(){
|
|
|
|
|
|
},
|
|
|
- createMonthlyPayroll(){
|
|
|
-
|
|
|
- },
|
|
|
- createOvertimePayroll(){
|
|
|
-
|
|
|
+ handleBasicSalary(){
|
|
|
+ this.$refs.ChangeBasicSalary.visible = true
|
|
|
},
|
|
|
searchQuery(){
|
|
|
|
|
|
},
|
|
|
searchReset(){
|
|
|
|
|
|
- },
|
|
|
- createLeavePayroll(){
|
|
|
-
|
|
|
- },
|
|
|
- handleDetail(record){
|
|
|
- },
|
|
|
- handleDownload(record){
|
|
|
-
|
|
|
- },
|
|
|
- handleexport(record){
|
|
|
-
|
|
|
},
|
|
|
onSelectChange(selectedRowKeys, selectionRows) {
|
|
|
this.selectedRowKeys = selectedRowKeys;
|