Commit c5656330 authored by 许珑标's avatar 许珑标

合同列表增加查询用工单位列表接口

parent e27e0243
......@@ -18,6 +18,15 @@ export function listAllOutContract(query) {
})
}
// 查询所有发薪合同的用工单位名称
export function allGroupNames(query) {
return request({
url: '/business/outContract/groupName/listAll',
method: 'get',
params: query
})
}
// 查询发薪合同详细
export function getOutContract(id) {
return request({
......
......@@ -148,7 +148,13 @@
<script>
import { listCompanyInfo } from "@/api/business/companyInfo";
import { listOutContract, delOutContract, addOutContract, updateOutContract } from "@/api/business/outContract";
import {
listOutContract,
delOutContract,
addOutContract,
updateOutContract,
allGroupNames
} from '@/api/business/outContract'
import { buildPayOutRecord } from '@/api/business/payOutRecord'
export default {
......@@ -245,6 +251,7 @@ export default {
},
mounted() {
this.getThemeList()
this.getAllGroupNames();
this.getList();
},
watch: {
......@@ -254,9 +261,15 @@ export default {
},
methods: {
getAllGroupNames(payerCompanyId) {
allGroupNames({payerCompanyId: payerCompanyId}).then(resp => {
})
},
// 节点单击事件
handleNodeClick(data) {
this.queryParams.payerCompanyId = data.id;
this.getAllGroupNames(data.id);
this.getList();
},
// 筛选节点
......@@ -446,4 +459,4 @@ export default {
width: calc(100% - 300px);
}
}
</style>
\ No newline at end of file
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment