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

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

parent e27e0243
...@@ -18,6 +18,15 @@ export function listAllOutContract(query) { ...@@ -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) { export function getOutContract(id) {
return request({ return request({
......
...@@ -148,7 +148,13 @@ ...@@ -148,7 +148,13 @@
<script> <script>
import { listCompanyInfo } from "@/api/business/companyInfo"; 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' import { buildPayOutRecord } from '@/api/business/payOutRecord'
export default { export default {
...@@ -245,6 +251,7 @@ export default { ...@@ -245,6 +251,7 @@ export default {
}, },
mounted() { mounted() {
this.getThemeList() this.getThemeList()
this.getAllGroupNames();
this.getList(); this.getList();
}, },
watch: { watch: {
...@@ -254,9 +261,15 @@ export default { ...@@ -254,9 +261,15 @@ export default {
}, },
methods: { methods: {
getAllGroupNames(payerCompanyId) {
allGroupNames({payerCompanyId: payerCompanyId}).then(resp => {
})
},
// 节点单击事件 // 节点单击事件
handleNodeClick(data) { handleNodeClick(data) {
this.queryParams.payerCompanyId = data.id; this.queryParams.payerCompanyId = data.id;
this.getAllGroupNames(data.id);
this.getList(); this.getList();
}, },
// 筛选节点 // 筛选节点
......
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