|
@@ -32,7 +32,8 @@
|
|
@click="
|
|
@click="
|
|
() => {
|
|
() => {
|
|
formRef.resetFields();
|
|
formRef.resetFields();
|
|
- loadData();
|
|
|
|
|
|
+ showIndustryName = undifined;
|
|
|
|
+ onSearch();
|
|
}
|
|
}
|
|
">重置</a-button>
|
|
">重置</a-button>
|
|
<a style="font-size: 12px" @click="expand = !expand">
|
|
<a style="font-size: 12px" @click="expand = !expand">
|
|
@@ -79,7 +80,7 @@
|
|
ref="select"
|
|
ref="select"
|
|
v-model:value="searchParams.siteID"
|
|
v-model:value="searchParams.siteID"
|
|
:options="siteList"
|
|
:options="siteList"
|
|
- :field-names="{ label: 'siteName', value: 'siteID' }"
|
|
|
|
|
|
+ :field-names="{ label: 'name', value: 'value' }"
|
|
:allow-clear="true"
|
|
:allow-clear="true"
|
|
@change="loadData"
|
|
@change="loadData"
|
|
>
|
|
>
|
|
@@ -88,6 +89,26 @@
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
<a-row :gutter="24" v-show="expand">
|
|
<a-row :gutter="24" v-show="expand">
|
|
|
|
+ <a-col :span="6">
|
|
|
|
+ <a-form-item label="所属行业" :label-col="{span:6}" name="showIndustryName">
|
|
|
|
+ <a-cascader :load-data="loadLevelIndustryList" v-model:value="showIndustryName"
|
|
|
|
+ :options="industryList" change-on-select @change="industryChange">
|
|
|
|
+ </a-cascader>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="6">
|
|
|
|
+ <a-form-item label="经济类型" :label-col="{span:6}" name="companyTypeID">
|
|
|
|
+ <a-select
|
|
|
|
+ ref="select"
|
|
|
|
+ v-model:value="searchParams.companyTypeID"
|
|
|
|
+ :options="companyTypeList"
|
|
|
|
+ :field-names="{ label: 'name', value: 'value' }"
|
|
|
|
+ :allow-clear="true"
|
|
|
|
+ @change="loadData"
|
|
|
|
+ >
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
<a-col :span="6">
|
|
<a-col :span="6">
|
|
<a-form-item label="登记时间" :label-col="{span:6}">
|
|
<a-form-item label="登记时间" :label-col="{span:6}">
|
|
<a-range-picker v-model:value="createDate" :placeholder="['开始日期', '结束日期']" format="YYYY-MM-DD"
|
|
<a-range-picker v-model:value="createDate" :placeholder="['开始日期', '结束日期']" format="YYYY-MM-DD"
|
|
@@ -159,6 +180,7 @@ import type {ImportProps} from '@/components/basic/excel/importExcel/ImportProps
|
|
import PositionShowModal from './show.vue';
|
|
import PositionShowModal from './show.vue';
|
|
import {getSiteList} from "@/api/baseSettings/siteInfo";
|
|
import {getSiteList} from "@/api/baseSettings/siteInfo";
|
|
import ColumnsSetting from "@/components/common/ColumnsSetting.vue";
|
|
import ColumnsSetting from "@/components/common/ColumnsSetting.vue";
|
|
|
|
+import {getSysDictionaryList} from "@/api/system/dictionary";
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'CompanyList',
|
|
name: 'CompanyList',
|
|
@@ -177,7 +199,9 @@ export default defineComponent({
|
|
siteID: "",
|
|
siteID: "",
|
|
startDate: "",
|
|
startDate: "",
|
|
endDate: "",
|
|
endDate: "",
|
|
- postCountSorter: ""
|
|
|
|
|
|
+ postCountSorter: "",
|
|
|
|
+ companyTypeID:"",
|
|
|
|
+ industryID:"",
|
|
});
|
|
});
|
|
// 导出Excel查询参数
|
|
// 导出Excel查询参数
|
|
const exportSearchParams = computed(() => {
|
|
const exportSearchParams = computed(() => {
|
|
@@ -191,6 +215,7 @@ export default defineComponent({
|
|
loading: false
|
|
loading: false
|
|
});
|
|
});
|
|
const expand = ref(false);
|
|
const expand = ref(false);
|
|
|
|
+ const showIndustryName = ref([]);
|
|
const importOptions = ref<ImportProps>({
|
|
const importOptions = ref<ImportProps>({
|
|
title: '导入',
|
|
title: '导入',
|
|
url: 'companyService/company/importCompany',
|
|
url: 'companyService/company/importCompany',
|
|
@@ -244,62 +269,17 @@ export default defineComponent({
|
|
{title: '企业名称', dataIndex: 'companyName', key: 'companyName',width: 200, align: "center"},
|
|
{title: '企业名称', dataIndex: 'companyName', key: 'companyName',width: 200, align: "center"},
|
|
{title: '所属县区', dataIndex: 'regionName', key: 'regionName', width: 120, align: "center"},
|
|
{title: '所属县区', dataIndex: 'regionName', key: 'regionName', width: 120, align: "center"},
|
|
{title: '所属驿站', dataIndex: 'siteName', key: 'siteName', width: 200, align: "center"},
|
|
{title: '所属驿站', dataIndex: 'siteName', key: 'siteName', width: 200, align: "center"},
|
|
- {
|
|
|
|
- title: '企业状态',
|
|
|
|
- dataIndex: 'recordStatusName',
|
|
|
|
- key: 'recordStatusName',
|
|
|
|
- width: 120,
|
|
|
|
- align: "center",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '企业规模',
|
|
|
|
- dataIndex: 'companyModelType',
|
|
|
|
- key: 'companyModelType',
|
|
|
|
- width: 120,
|
|
|
|
- align: "center",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '当前岗位数量',
|
|
|
|
- dataIndex: 'postCount',
|
|
|
|
- key: 'postCount',
|
|
|
|
- width: 120,
|
|
|
|
- align: "center",
|
|
|
|
- sorter: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '所属街道',
|
|
|
|
- dataIndex: 'streetName',
|
|
|
|
- key: 'streetName',
|
|
|
|
- width: 120,
|
|
|
|
- align: "center",
|
|
|
|
- isDefaultClose: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '统一信用代码',
|
|
|
|
- dataIndex: 'companyCode',
|
|
|
|
- key: 'companyCode',
|
|
|
|
- width: 200,
|
|
|
|
- align: "center",
|
|
|
|
- isDefaultClose: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '参保人数',
|
|
|
|
- dataIndex: 'insuredCount',
|
|
|
|
- key: 'insuredCount',
|
|
|
|
- width: 100,
|
|
|
|
- align: "center",
|
|
|
|
- isDefaultClose: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '录入人',
|
|
|
|
- dataIndex: 'createUserName',
|
|
|
|
- key: 'createUserName',
|
|
|
|
- width: 120,
|
|
|
|
- align: "center",
|
|
|
|
- isDefaultClose: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '录入时间 ', dataIndex: 'createTime', key: 'createTime',width: 120, align: "center", customRender: (item) => {
|
|
|
|
|
|
+ {title: '企业状态', dataIndex: 'recordStatusName', key: 'recordStatusName', width: 120, align: "center",},
|
|
|
|
+ {title: '企业规模', dataIndex: 'companyModelType', key: 'companyModelType', width: 120, align: "center",},
|
|
|
|
+ {title: '当前岗位数量', dataIndex: 'postCount', key: 'postCount', width: 120, align: "center", sorter: true},
|
|
|
|
+ {title: '所属街道', dataIndex: 'streetName', key: 'streetName', width: 120, align: "center", isDefaultClose: true},
|
|
|
|
+ {title: '统一信用代码', dataIndex: 'companyCode', key: 'companyCode', width: 200, align: "center", isDefaultClose: true},
|
|
|
|
+ {title: '所属行业', dataIndex: 'showIndustryName', key: 'showIndustryName', width: 200, align: "center", isDefaultClose: true},
|
|
|
|
+ {title: '经济类型', dataIndex: 'companyTypeName', key: 'companyTypeName', width: 240, align: "center", isDefaultClose: true},
|
|
|
|
+ {title: '参保人数', dataIndex: 'insuredCount', key: 'insuredCount', width: 100, align: "center", isDefaultClose: true},
|
|
|
|
+ {title: '录入人', dataIndex: 'createUserName', key: 'createUserName', width: 120, align: "center", isDefaultClose: true},
|
|
|
|
+ {title: '录入时间 ', dataIndex: 'createTime', key: 'createTime',width: 120, align: "center",
|
|
|
|
+ customRender: (item) => {
|
|
return item.record.createTime == null ? "" : (dayjs(item.record.createTime).format('YYYY-MM-DD'))
|
|
return item.record.createTime == null ? "" : (dayjs(item.record.createTime).format('YYYY-MM-DD'))
|
|
}, isDefaultClose: true
|
|
}, isDefaultClose: true
|
|
},
|
|
},
|
|
@@ -316,10 +296,18 @@ export default defineComponent({
|
|
showTotal: total => getPaginationTotalTitle(total)
|
|
showTotal: total => getPaginationTotalTitle(total)
|
|
}));
|
|
}));
|
|
|
|
|
|
- const recordStatusList =ref<SelectProps['options']>([
|
|
|
|
- { value: 1, name: '在营' },
|
|
|
|
- { value: 0, name: '停业' },
|
|
|
|
- ]);
|
|
|
|
|
|
+ const recordStatusList =ref<SelectProps['options']>();
|
|
|
|
+ const companyTypeList =ref<SelectProps['options']>();
|
|
|
|
+ const industryList = ref<SelectProps["options"]>();
|
|
|
|
+
|
|
|
|
+ const getCompanyStatusList = async function () {
|
|
|
|
+ const data: any = await getSysDictionaryList("CompanyStatus");
|
|
|
|
+ recordStatusList.value = data;
|
|
|
|
+ }
|
|
|
|
+ const getCompanyTypeList = async function () {
|
|
|
|
+ const data: any = await getSysDictionaryList("CompanyType");
|
|
|
|
+ companyTypeList.value = data;
|
|
|
|
+ }
|
|
const regionList = ref<SelectProps['options']>();
|
|
const regionList = ref<SelectProps['options']>();
|
|
const streetList = ref<SelectProps['options']>();
|
|
const streetList = ref<SelectProps['options']>();
|
|
const dataList = ref([]);
|
|
const dataList = ref([]);
|
|
@@ -327,12 +315,55 @@ export default defineComponent({
|
|
const institutionEditModelRef = ref();
|
|
const institutionEditModelRef = ref();
|
|
const tabsViewStore = useTabsViewStore();
|
|
const tabsViewStore = useTabsViewStore();
|
|
|
|
|
|
|
|
+ const getFirstIndustryList = () => {
|
|
|
|
+ get("industry/getFirstIndustryList", null).then(data => {
|
|
|
|
+ industryList.value = (data as any[]).map((x) => {
|
|
|
|
+ return {
|
|
|
|
+ label: x.name,
|
|
|
|
+ value: x.code,
|
|
|
|
+ isLeaf: false,
|
|
|
|
+ tag: 'firstLevel'
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const loadLevelIndustryList = (selectedOptions) => {
|
|
|
|
+ let targetOption = selectedOptions[selectedOptions.length - 1];
|
|
|
|
+ if (targetOption) {
|
|
|
|
+ if (targetOption.tag == 'firstLevel') {
|
|
|
|
+ get("industry/getListByParentIndustryID", {parentIndustryID: targetOption.value}).then(data => {
|
|
|
|
+ targetOption.loading = false;
|
|
|
|
+ targetOption.children = (data as any[]).map((x) => {
|
|
|
|
+ return {
|
|
|
|
+ label: x.name,
|
|
|
|
+ value: x.code,
|
|
|
|
+ isLeaf: true,
|
|
|
|
+ tag: 'secondLevel'
|
|
|
|
+ };
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ function industryChange(value: any, selectedOptions: any) {
|
|
|
|
+ if(!value){
|
|
|
|
+ searchParams.industryID = "";
|
|
|
|
+ loadData();
|
|
|
|
+ }else{
|
|
|
|
+ if (value.length >= 2) {
|
|
|
|
+ showIndustryName.value = selectedOptions[1].label;
|
|
|
|
+ searchParams.industryID = selectedOptions[1].value;
|
|
|
|
+ loadData();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
const changeCity = () => {
|
|
const changeCity = () => {
|
|
if(searchParams.regionCode){
|
|
if(searchParams.regionCode){
|
|
get('system/area/getAreaList', {code: searchParams.regionCode}).then(data => {
|
|
get('system/area/getAreaList', {code: searchParams.regionCode}).then(data => {
|
|
- // console.log(data);
|
|
|
|
streetList.value = data;
|
|
streetList.value = data;
|
|
- // console.log(streetList.value);
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
loadData();
|
|
loadData();
|
|
@@ -340,7 +371,6 @@ export default defineComponent({
|
|
|
|
|
|
get('system/area/getCityList', {}).then(data => {
|
|
get('system/area/getCityList', {}).then(data => {
|
|
regionList.value = data;
|
|
regionList.value = data;
|
|
- // console.log(regionList.value);
|
|
|
|
});
|
|
});
|
|
|
|
|
|
// 获取驿站数据
|
|
// 获取驿站数据
|
|
@@ -355,6 +385,9 @@ export default defineComponent({
|
|
|
|
|
|
const loadData = async function () {
|
|
const loadData = async function () {
|
|
formState.loading = true;
|
|
formState.loading = true;
|
|
|
|
+ await getCompanyStatusList();
|
|
|
|
+ await getCompanyTypeList();
|
|
|
|
+ getFirstIndustryList();
|
|
const result: any = await getList(searchParams);
|
|
const result: any = await getList(searchParams);
|
|
dataList.value = result.list;
|
|
dataList.value = result.list;
|
|
formState.total = result.total;
|
|
formState.total = result.total;
|
|
@@ -377,6 +410,7 @@ export default defineComponent({
|
|
};
|
|
};
|
|
|
|
|
|
const onSearch = () => {
|
|
const onSearch = () => {
|
|
|
|
+ if(!showIndustryName.value) searchParams.industryID = "";
|
|
loadData();
|
|
loadData();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -443,15 +477,19 @@ export default defineComponent({
|
|
return {
|
|
return {
|
|
formRef,
|
|
formRef,
|
|
modalShowRef,
|
|
modalShowRef,
|
|
|
|
+ showIndustryName,
|
|
searchParams,
|
|
searchParams,
|
|
formState,
|
|
formState,
|
|
columns,
|
|
columns,
|
|
originalColumns,
|
|
originalColumns,
|
|
- columnsCheckSub,
|
|
|
|
pagination,
|
|
pagination,
|
|
dataList,
|
|
dataList,
|
|
expand,
|
|
expand,
|
|
institutionEditModelRef,
|
|
institutionEditModelRef,
|
|
|
|
+ industryList,
|
|
|
|
+ industryChange,
|
|
|
|
+ columnsCheckSub,
|
|
|
|
+ loadLevelIndustryList,
|
|
handleTableChange,
|
|
handleTableChange,
|
|
loadData,
|
|
loadData,
|
|
onSelectChange,
|
|
onSelectChange,
|
|
@@ -463,6 +501,7 @@ export default defineComponent({
|
|
onShowPosition,
|
|
onShowPosition,
|
|
importOptions,
|
|
importOptions,
|
|
recordStatusList,
|
|
recordStatusList,
|
|
|
|
+ companyTypeList,
|
|
regionList,
|
|
regionList,
|
|
streetList,
|
|
streetList,
|
|
onDetail,
|
|
onDetail,
|