123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- import {request} from "@/utils/request";
- //根据驿站查询公司
- export function getCompanyBySiteID(siteID: any) {
- return request<any>(
- {
- url: "companyService/company/getCompanyBySiteIDList",
- method: 'get',
- params: {siteID:siteID},
- },
- {
- isNew: true,
- },
- );
- }
- //获取所属驿站
- export function getSiteList(params: any) {
- return request<any>(
- {
- url: "companyService/company/getSiteList",
- method: 'get',
- params: params,
- },
- {
- isNew: true,
- },
- );
- }
- //获取县区
- export function getRegionList(params: any) {
- return request<any>(
- {
- url: "system/area/getCityList",
- method: 'get',
- params: params,
- },
- {
- isNew: true,
- },
- );
- }
- //获取街道
- export function getStreeList(params: any) {
- return request<any>(
- {
- url: "system/area/getAreaList",
- method: 'get',
- params: params,
- },
- {
- isNew: true,
- },
- );
- }
- //提交添加
- export function saveCompanyPost(data:any){
- return request(
- {
- url:'companyService/company/saveAppCompanyPost',
- method:'post',
- data
- }
- )
- }
- //获取企业信息
- export function getCompanyList(params:any){
- return request({
- url:'companyService/company/getList',
- method:'get',
- params
- },{
- isNew:true
- })
- }
- //获取企业岗位信息
- export function getCompanyPostList(params:any){
- return request({
- url:'companyService/post/getList',
- method:'get',
- params: params,
- },{
- isNew:true
- })
- }
- export function getCompanyById(id: string) {
- return request({
- url: 'companyService/company/getCompanyByID',
- method: 'get',
- params: {id}
- }, {
- isNew: true
- })
- }
- export function saveCompanyInfo(data: any) {
- return request<object>({
- url: 'companyService/company/save',
- method: 'post',
- data: data
- }, {
- isNew: true,
- })
- }
- export function getCurrentDate() {
- const now = new Date();
- const year = now.getFullYear();
- const month = (now.getMonth() + 1).toString().padStart(2, '0');
- const day = now.getDate().toString().padStart(2, '0');
- const currentDate = `${year}-${month}-${day}`;
- return currentDate;
- }
|