Merge remote-tracking branch 'origin/master'

This commit is contained in:
lijiaqi 2023-02-21 17:22:48 +08:00
commit 22ec35aae4
232 changed files with 757 additions and 224 deletions

View File

@ -47,6 +47,14 @@ public class ArgsConst {
* 附件所属内设机构 * 附件所属内设机构
*/ */
public static final String ORGANIZATION = "organization"; public static final String ORGANIZATION = "organization";
/**
* 登记
*/
public static final String RECRUITMENT = "recruitment";
/**
* 送审
*/
public static final String PERSONNEL_INDICATORS = "personnel_indicators";
/** /**
* 附件所属董监 * 附件所属董监
*/ */

View File

@ -62,4 +62,23 @@ public class AuditController extends BaseController {
} }
return AjaxResult.fail().msg("审批状态错误"); return AjaxResult.fail().msg("审批状态错误");
} }
@PostMapping("submitDirectorsSupervisorsAudit")
@ApiOperation(value = "董监任免申报审批 同意/拒绝")
public AjaxResult submitDirectorsSupervisorsAudit(@RequestBody AuditRequest auditRequest) {
if ("2".equals(auditRequest.getStatus()) || "3".equals(auditRequest.getStatus())) {
return auditService.submitDirectorsSupervisorsAudit(auditRequest);
}
return AjaxResult.fail().msg("审批状态错误");
}
@PostMapping("submitRecruitmentAudit")
@ApiOperation(value = "人员招聘登记审批 同意/拒绝")
public AjaxResult submitRecruitmentAudit(@RequestBody AuditRequest auditRequest) {
if ("2".equals(auditRequest.getStatus()) || "3".equals(auditRequest.getStatus())) {
return auditService.submitRecruitmentAudit(auditRequest);
}
return AjaxResult.fail().msg("审批状态错误");
}
} }

View File

@ -3,6 +3,7 @@ package com.ydool.staff.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiSupport; import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import com.ydool.common.base.BaseController; import com.ydool.common.base.BaseController;
import com.ydool.common.constant.ArgsConst;
import com.ydool.common.constant.UrlConstant; import com.ydool.common.constant.UrlConstant;
import com.ydool.common.data.dto.AjaxResult; import com.ydool.common.data.dto.AjaxResult;
import com.ydool.staff.dto.DirectorsSupervisorsDto; import com.ydool.staff.dto.DirectorsSupervisorsDto;
@ -63,4 +64,11 @@ public class DirectorsSupervisorsController extends BaseController {
public AjaxResult deleteDirectorsSupervisors(@RequestBody IdsRequest ids) { public AjaxResult deleteDirectorsSupervisors(@RequestBody IdsRequest ids) {
return directorsSupervisorsService.deleteDirectorsSupervisors(ids); return directorsSupervisorsService.deleteDirectorsSupervisors(ids);
} }
@GetMapping("/submitDirectorsSupervisors")
@ApiOperation(value = "董监任免申报送审")
@ApiImplicitParams({@ApiImplicitParam(value = "董监id", name = "id")})
public AjaxResult submitDirectorsSupervisors(String id) {
return directorsSupervisorsService.submitDirectorsSupervisors(id, ArgsConst.DIRECTORS);
}
} }

View File

@ -6,6 +6,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import com.github.xiaoymin.knife4j.annotations.DynamicParameter; import com.github.xiaoymin.knife4j.annotations.DynamicParameter;
import com.github.xiaoymin.knife4j.annotations.DynamicResponseParameters; import com.github.xiaoymin.knife4j.annotations.DynamicResponseParameters;
import com.ydool.common.base.BaseController; import com.ydool.common.base.BaseController;
import com.ydool.common.constant.ArgsConst;
import com.ydool.common.constant.UrlConstant; import com.ydool.common.constant.UrlConstant;
import com.ydool.common.data.dto.AjaxResult; import com.ydool.common.data.dto.AjaxResult;
import com.ydool.staff.entity.Organization; import com.ydool.staff.entity.Organization;
@ -42,4 +43,18 @@ public class OrganizationController extends BaseController {
public AjaxResult deleteOrganization(@RequestBody IdsRequest id) { public AjaxResult deleteOrganization(@RequestBody IdsRequest id) {
return organizationService.deleteOrganization(id); return organizationService.deleteOrganization(id);
} }
@GetMapping("/submitRecruitment")
@ApiOperation(value = "人员招聘登记送审")
@ApiImplicitParams({@ApiImplicitParam(value = "登记id", name = "id")})
public AjaxResult submitRecruitment(String id) {
return organizationService.submitRecruitment(id, ArgsConst.RECRUITMENT);
}
@GetMapping("/submitPersonnelIndicators")
@ApiOperation(value = "人员指标申报送审")
@ApiImplicitParams({@ApiImplicitParam(value = "申报id", name = "id")})
public AjaxResult submitPersonnelIndicators(String id) {
return organizationService.submitPersonnelIndicators(id, ArgsConst.PERSONNEL_INDICATORS);
}
} }

View File

@ -9,6 +9,7 @@ import com.ydool.staff.dto.PersonnelUpdateDto;
import com.ydool.staff.entity.SelectRequest; import com.ydool.staff.entity.SelectRequest;
import com.ydool.staff.excel.ExcelPersonnel; import com.ydool.staff.excel.ExcelPersonnel;
import com.ydool.staff.request.ChangeRequest; import com.ydool.staff.request.ChangeRequest;
import com.ydool.staff.request.GiveAuditRequest;
import com.ydool.staff.request.PersonnelDeleteRequest; import com.ydool.staff.request.PersonnelDeleteRequest;
import com.ydool.staff.request.PersonnelRequest; import com.ydool.staff.request.PersonnelRequest;
import com.ydool.staff.request.PersonnelUpdateRequest; import com.ydool.staff.request.PersonnelUpdateRequest;
@ -60,9 +61,12 @@ public class PersonnelController extends BaseController {
@GetMapping("getById") @GetMapping("getById")
@ApiOperation(value = "查询一条",response = PersonnelUpdateDto.class) @ApiOperation(value = "查询一条",response = PersonnelUpdateDto.class)
@ApiImplicitParam(name = "id",value = "id" ) @ApiImplicitParams({
public AjaxResult getById(String id){ @ApiImplicitParam(name = "id",value = "id" ),
return personnelService.getById(id); @ApiImplicitParam(name = "type",value = "类型修改传update审批传audit" ),
})
public AjaxResult getById(String id,String type){
return personnelService.getById(id,type);
} }
@PostMapping(value = "savePersonnel") @PostMapping(value = "savePersonnel")
@ -114,12 +118,8 @@ public class PersonnelController extends BaseController {
@PostMapping(value = "giveAudit") @PostMapping(value = "giveAudit")
@ApiOperation(value = "送审") @ApiOperation(value = "送审")
@ApiImplicitParams({ public AjaxResult giveAudit(@RequestBody GiveAuditRequest request){
@ApiImplicitParam(name = "id",value = "人员id") , return personnelService.giveAudit(request);
@ApiImplicitParam(name = "type",value = "人员类型personnel人员 change变更")
})
public AjaxResult giveAudit(String id,String type){
return personnelService.giveAudit(id,type);
} }

View File

@ -9,6 +9,7 @@ import com.ydool.common.constant.UrlConstant;
import com.ydool.common.data.dto.AjaxResult; import com.ydool.common.data.dto.AjaxResult;
import com.ydool.staff.dto.EnterpriseIndicatorsExportDto; import com.ydool.staff.dto.EnterpriseIndicatorsExportDto;
import com.ydool.staff.dto.PersonnelReportExportDto; import com.ydool.staff.dto.PersonnelReportExportDto;
import com.ydool.staff.dto.PersonnelStatementDto;
import com.ydool.staff.excel.EnterpriseIndicatorsExportVO; import com.ydool.staff.excel.EnterpriseIndicatorsExportVO;
import com.ydool.staff.excel.PersonnelReportExportVO; import com.ydool.staff.excel.PersonnelReportExportVO;
import com.ydool.staff.service.ICompanyNameService; import com.ydool.staff.service.ICompanyNameService;
@ -16,9 +17,13 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
/** /**
@ -35,7 +40,7 @@ import javax.servlet.http.HttpServletResponse;
@ApiSupport(order = 20) @ApiSupport(order = 20)
public class PersonnelReportController extends BaseController { public class PersonnelReportController extends BaseController {
@Autowired @Resource
ICompanyNameService companyNameService; ICompanyNameService companyNameService;
@GetMapping("/personnelReport") @GetMapping("/personnelReport")
@ -67,4 +72,11 @@ public class PersonnelReportController extends BaseController {
public void exportEnterpriseIndicators(@RequestBody EnterpriseIndicatorsExportDto enterpriseIndicatorsExportVO, HttpServletResponse response) { public void exportEnterpriseIndicators(@RequestBody EnterpriseIndicatorsExportDto enterpriseIndicatorsExportVO, HttpServletResponse response) {
companyNameService.exportEnterpriseIndicators(enterpriseIndicatorsExportVO, response); companyNameService.exportEnterpriseIndicators(enterpriseIndicatorsExportVO, response);
} }
@GetMapping("perStatement")
@ApiOperation(value = "人事信息报表",response = PersonnelStatementDto.class)
@ApiImplicitParam(name = "id",value = "企业id")
public AjaxResult perStatement(String id) {
return companyNameService.perStatement(id);
}
} }

View File

@ -1,9 +1,6 @@
package com.ydool.staff.dto; package com.ydool.staff.dto;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.ydool.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@ -42,6 +39,9 @@ public class PersonnelDto {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private LocalDateTime createdAt; private LocalDateTime createdAt;
@ApiModelProperty(value = "审批状态 0 未审批 1 待审批2已通过3已拒绝")
private Integer auditState;
} }

View File

@ -0,0 +1,39 @@
package com.ydool.staff.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author msh
* @version 1.0
* @date 2023/2/20 13:59
*/
@Data
public class PersonnelStatementDto {
@ApiModelProperty(value = "主管部门名称")
private String competentDeptName;
@ApiModelProperty(value = "统一社会信用代码")
private String socialCreditCode;
@ApiModelProperty(value = "国有企业名称")
private String competent;
@ApiModelProperty(value = "注册资本")
private Integer capital;
@ApiModelProperty(value = "内设机构数")
private Integer mechanismNum;
@ApiModelProperty(value = "用工计划数")
private Integer EmploymentNum;
@ApiModelProperty(value = "现用工人数")
private Integer num;
@ApiModelProperty(value = "其中:用工计划数")
private Integer thereIntoNum;
@ApiModelProperty(value = "董监人数")
private Integer supervisorsNum;
}

View File

@ -19,6 +19,9 @@ public class PersonnelUpdateDto {
@ApiModelProperty(value = "id") @ApiModelProperty(value = "id")
private String id; private String id;
@ApiModelProperty(value = "变更前id")
private String beforeId;
@ApiModelProperty(value = "统一社会信用代码") @ApiModelProperty(value = "统一社会信用代码")
private String socialCreditCode; private String socialCreditCode;

View File

@ -61,6 +61,15 @@ public class Organization extends BaseEntity{
@ApiModelProperty(value = "单据状态") @ApiModelProperty(value = "单据状态")
private String documentStatus; private String documentStatus;
@ApiModelProperty(value = "审批状态 0 未审批 1 待审批2已通过3已拒绝\n")
private Integer auditState;
@ApiModelProperty(value = "初审意见")
private String firstTrial;
@ApiModelProperty(value = "终审意见")
private String lastInstance;
@ApiModelProperty(value = "修改人") @ApiModelProperty(value = "修改人")
@TableField(exist = false) @TableField(exist = false)
private String updatedName; private String updatedName;

View File

@ -26,4 +26,8 @@ public class AuditRequest {
@ApiModelProperty(value = "审批意见") @ApiModelProperty(value = "审批意见")
private String auditOpinion; private String auditOpinion;
@ApiModelProperty(value = "人员类型personnel人员 change变更")
private String type;
} }

View File

@ -0,0 +1,22 @@
package com.ydool.staff.request;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author msh
* @version 1.0
* @date 2023/2/21 10:01
*/
@Data
public class GiveAuditRequest {
@ApiModelProperty(value = "ids")
private String[] ids;
@ApiModelProperty(value = "人员类型personnel 变更change")
private String type;
@ApiModelProperty(value = "修改数据")
private PersonnelUpdateRequest request;
}

View File

@ -20,5 +20,8 @@ public interface IAuditService {
Integer saveAuditLog(String personnelId,String approverId,String auditSate); Integer saveAuditLog(String personnelId,String approverId,String auditSate);
AjaxResult submitDirectorsSupervisorsAudit(AuditRequest auditRequest);
AjaxResult submitRecruitmentAudit(AuditRequest auditRequest);
} }

View File

@ -3,8 +3,6 @@ package com.ydool.staff.service;
import com.ydool.common.data.dto.AjaxResult; import com.ydool.common.data.dto.AjaxResult;
import com.ydool.staff.dto.EnterpriseIndicatorsExportDto; import com.ydool.staff.dto.EnterpriseIndicatorsExportDto;
import com.ydool.staff.dto.PersonnelReportExportDto; import com.ydool.staff.dto.PersonnelReportExportDto;
import com.ydool.staff.excel.EnterpriseIndicatorsExportVO;
import com.ydool.staff.excel.PersonnelReportExportVO;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@ -31,5 +29,7 @@ public interface ICompanyNameService {
AjaxResult getEnterpriseIndicators(String companyId, String hireDate); AjaxResult getEnterpriseIndicators(String companyId, String hireDate);
void exportEnterpriseIndicators(EnterpriseIndicatorsExportDto enterpriseIndicatorsExportVO, HttpServletResponse response); void exportEnterpriseIndicators(EnterpriseIndicatorsExportDto enterpriseIndicatorsExportVO, HttpServletResponse response);
AjaxResult perStatement(String id);
} }

View File

@ -28,5 +28,7 @@ public interface IDirectorsSupervisorsService {
AjaxResult selectDirectorsSupervisorsById(String id); AjaxResult selectDirectorsSupervisorsById(String id);
AjaxResult selectDirectorsSupervisorsFile(Page<Attachment> page, String id); AjaxResult selectDirectorsSupervisorsFile(Page<Attachment> page, String id);
AjaxResult submitDirectorsSupervisors(String id, String directors);
} }

View File

@ -21,5 +21,8 @@ public interface IOrganizationService {
AjaxResult deleteOrganization(IdsRequest id); AjaxResult deleteOrganization(IdsRequest id);
AjaxResult submitRecruitment(String id, String type);
AjaxResult submitPersonnelIndicators(String id, String type);
} }

View File

@ -1,5 +1,7 @@
package com.ydool.staff.service; package com.ydool.staff.service;
import com.ydool.staff.entity.PersonnelMiddle;
/** /**
* <p> * <p>
* 人员修改中间表 服务类 * 人员修改中间表 服务类
@ -10,5 +12,6 @@ package com.ydool.staff.service;
*/ */
public interface IPersonnelMiddleService { public interface IPersonnelMiddleService {
Boolean savePer(PersonnelMiddle middle);
} }

View File

@ -2,14 +2,17 @@ package com.ydool.staff.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ydool.common.data.dto.AjaxResult; import com.ydool.common.data.dto.AjaxResult;
import com.ydool.staff.dto.AttachmentDto;
import com.ydool.staff.entity.SelectRequest; import com.ydool.staff.entity.SelectRequest;
import com.ydool.staff.request.ChangeRequest; import com.ydool.staff.request.ChangeRequest;
import com.ydool.staff.request.GiveAuditRequest;
import com.ydool.staff.request.PersonnelDeleteRequest; import com.ydool.staff.request.PersonnelDeleteRequest;
import com.ydool.staff.request.PersonnelRequest; import com.ydool.staff.request.PersonnelRequest;
import com.ydool.staff.request.PersonnelUpdateRequest; import com.ydool.staff.request.PersonnelUpdateRequest;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* <p> * <p>
@ -26,7 +29,7 @@ public interface IPersonnelService {
*/ */
AjaxResult personnelList(Page page , SelectRequest request, String orderBy,String column); AjaxResult personnelList(Page page , SelectRequest request, String orderBy,String column);
AjaxResult getById(String id); AjaxResult getById(String id,String type);
AjaxResult personnelByExchangeList(); AjaxResult personnelByExchangeList();
/** /**
@ -64,6 +67,9 @@ public interface IPersonnelService {
AjaxResult getEntityParam(); AjaxResult getEntityParam();
AjaxResult giveAudit(String id, String type); AjaxResult giveAudit(GiveAuditRequest request);
List<AttachmentDto> nameAndPath(String file, String id);
} }

View File

@ -8,20 +8,16 @@ import com.ydool.common.base.BaseService;
import com.ydool.common.cache.ConfigCache; import com.ydool.common.cache.ConfigCache;
import com.ydool.common.constant.ArgsConst; import com.ydool.common.constant.ArgsConst;
import com.ydool.common.data.dto.AjaxResult; import com.ydool.common.data.dto.AjaxResult;
import com.ydool.staff.entity.Audit; import com.ydool.staff.entity.*;
import com.ydool.staff.entity.AuditLog; import com.ydool.staff.mapper.*;
import com.ydool.staff.entity.Personnel;
import com.ydool.staff.entity.PersonnelMiddle;
import com.ydool.staff.mapper.AuditLogMapper;
import com.ydool.staff.mapper.AuditMapper;
import com.ydool.staff.mapper.PersonnelMapper;
import com.ydool.staff.mapper.PersonnelMiddleMapper;
import com.ydool.staff.request.AuditRequest; import com.ydool.staff.request.AuditRequest;
import com.ydool.staff.service.IAuditService; import com.ydool.staff.service.IAuditService;
import com.ydool.staff.service.IPersonnelService;
import com.ydool.system.entity.Config; import com.ydool.system.entity.Config;
import com.ydool.system.entity.User; import com.ydool.system.entity.User;
import com.ydool.system.mapper.ConfigMapper; import com.ydool.system.mapper.ConfigMapper;
import com.ydool.system.mapper.UserMapper; import com.ydool.system.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -46,10 +42,20 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
@Resource @Resource
private AuditLogMapper auditLogMapper; private AuditLogMapper auditLogMapper;
@Resource
private IPersonnelService personnelService;
@Resource
private AuditMapper auditMapper;
@Resource @Resource
private PersonnelMapper personnelMapper; private PersonnelMapper personnelMapper;
@Resource @Resource
private PersonnelMiddleMapper personnelMiddleMapper; private PersonnelMiddleMapper personnelMiddleMapper;
@Autowired
DirectorsSupervisorsMapper directorsSupervisorsMapper;
@Autowired
OrganizationMapper organizationMapper;
@Override @Override
public AjaxResult getAuditList(Page page) { public AjaxResult getAuditList(Page page) {
@ -63,16 +69,19 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
String loginId = (String) StpUtil.getLoginId(); String loginId = (String) StpUtil.getLoginId();
Audit one = getOne(new LambdaQueryWrapper<Audit>() Audit one = getOne(new LambdaQueryWrapper<Audit>()
.eq(Audit::getPersonnelId, auditRequest.getPersonnelId()) .eq(Audit::getPersonnelId, auditRequest.getPersonnelId())
.eq(Audit::getAuditOrder, ArgsConst.WAITING).eq(Audit::getApprover, loginId)); .eq(Audit::getPerType,auditRequest.getType())
if (ObjectUtil.isEmpty(one)){ .eq(Audit::getApprover, loginId));
if (ArgsConst.WAITING.equals(one.getAuditState())){
return AjaxResult.fail().msg("该用户不能审批!"); return AjaxResult.fail().msg("该用户不能审批!");
} }
if (ArgsConst.PASS.equals(one.getAuditState())){
return AjaxResult.fail().msg("用户已审批,请勿重复操作!");
}
List<Audit> list = list(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId())); List<Audit> list = list(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId()));
//同意 //同意
if ("2".equals(auditRequest.getStatus())){ if ("2".equals(auditRequest.getStatus())){
for (Audit audit : list) { for (Audit audit : list) {
User byId = userMapper.selectById(audit.getAuditOrder()); User byId = userMapper.selectById(audit.getApprover());
Config director = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR)); Config director = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
if (byId.getLoginName().equals(director.getParamValue())){ if (byId.getLoginName().equals(director.getParamValue())){
one.setAuditOrder(ArgsConst.PASS); one.setAuditOrder(ArgsConst.PASS);
@ -96,37 +105,39 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般终审通过"); saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般终审通过");
Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId()); Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId());
PersonnelMiddle middle = personnelMiddleMapper.selectOne(new LambdaQueryWrapper<PersonnelMiddle>().eq(PersonnelMiddle::getBeforeId, personnel.getId()).eq(PersonnelMiddle::getState, "1")); PersonnelMiddle middle = personnelMiddleMapper.selectOne(new LambdaQueryWrapper<PersonnelMiddle>().eq(PersonnelMiddle::getBeforeId, personnel.getId()).eq(PersonnelMiddle::getState, "1"));
System.out.println("middle = " + middle); Personnel personnelOne = personnelMapper.selectById(middle.getAfterId());
Personnel personnel1 = personnelMapper.selectById(middle.getAfterId()); String id = personnelOne.getId();
String id = personnel1.getId(); personnelOne.setState("2");
personnel1.setState("2"); personnelOne.setId(personnel.getId());
personnel1.setId(personnel.getId());
personnel.setId(id); personnel.setId(id);
personnel.setState("0"); personnel.setState("0");
personnelMapper.updateById(personnel1); middle.setState("0");
personnelMapper.updateById(personnelOne);
personnelMapper.updateById(personnel); personnelMapper.updateById(personnel);
personnelMiddleMapper.updateById(middle);
} }
return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!"); return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!");
} }
} }
} }
//拒绝 //拒绝
for (Audit audit : list) { for (Audit audit : list) {
List<Audit> auditList = list(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId()));
User byId = userMapper.selectById(audit.getAuditOrder()); User byId = userMapper.selectById(audit.getAuditOrder());
Config director = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR)); Config director = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
PersonnelMiddle middle = personnelMiddleMapper.selectOne(new LambdaQueryWrapper<PersonnelMiddle>().eq(PersonnelMiddle::getBeforeId, auditRequest.getPersonnelId()).eq(PersonnelMiddle::getState, "1"));
Personnel afterPersonnel = personnelMapper.selectById(middle.getAfterId());
Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId());
if (byId.getLoginName().equals(director.getParamValue())){ if (byId.getLoginName().equals(director.getParamValue())){
one.setAuditOrder(ArgsConst.REJECT); one.setAuditOrder(ArgsConst.REJECT);
one.setOpinion(audit.getOpinion()); one.setOpinion(audit.getOpinion());
boolean update = updateById(one); boolean update = updateById(one);
if (update){ if (update){
saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般初审拒绝"); saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般初审拒绝");
Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId()); updateByPer(afterPersonnel.getId(),personnel);
personnel.setAuditState(3); for (Audit auditOne : auditList) {
personnel.setAlterationSign("2"); delete(auditOne.getId());
personnelMapper.updateById(personnel); }
} }
return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!"); return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!");
} }
@ -137,18 +148,18 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
boolean update = updateById(one); boolean update = updateById(one);
if (update){ if (update){
saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般终审拒绝"); saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般终审拒绝");
Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId()); updateByPer(afterPersonnel.getId(),personnel);
personnel.setAuditState(3); for (Audit auditOne : auditList) {
personnel.setAlterationSign("2"); delete(auditOne.getId());
personnelMapper.updateById(personnel); }
} }
return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!"); return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!");
} }
} }
return null; return null;
} }
@Override
public Integer saveAuditLog(String personnelId,String approverId,String auditSate){ public Integer saveAuditLog(String personnelId,String approverId,String auditSate){
AuditLog auditLog = new AuditLog(); AuditLog auditLog = new AuditLog();
auditLog.setPersonnelId(personnelId); auditLog.setPersonnelId(personnelId);
@ -157,5 +168,172 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
return auditLogMapper.insert(auditLog); return auditLogMapper.insert(auditLog);
} }
public void updateByPer(String afterId,Personnel personnel){
delete(afterId);
personnel.setAuditState(0);
personnel.setAlterationSign("0");
personnelMapper.updateById(personnel);
}
/**
* 招聘登记
* @param auditRequest
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public AjaxResult submitRecruitmentAudit(AuditRequest auditRequest) {
Organization recruitment = organizationMapper.selectById(auditRequest.getPersonnelId());
if (3 == recruitment.getAuditState()) {
return AjaxResult.fail().msg("已拒绝请勿重复审批!");
}
String loginId = StpUtil.getLoginIdAsString();
Audit one = getOne(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId()).eq(Audit::getAuditOrder, ArgsConst.WAITING).eq(Audit::getApprover, loginId));
if (ObjectUtil.isNull(one)) {
return AjaxResult.fail().msg("该用户不能审批!");
}
// 人事部负责人
Config director = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
// 领导
Config leadership = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP));
// 同意
if ("2".equals(auditRequest.getStatus())) {
User byId = userMapper.selectById(one.getApprover());
// 人事初审批同意
if (director.getParamValue().equals(byId.getLoginName())) {
one.setAuditOrder(ArgsConst.FIRST);
one.setAuditState(ArgsConst.PASS);
boolean update = updateById(one);
if (update) {
Audit one1 = getOne(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId()).eq(Audit::getAuditOrder, ArgsConst.LAST));
one1.setAuditOrder(ArgsConst.WAITING);
updateById(one1);
recruitment.setFirstTrial(auditRequest.getAuditOpinion());
organizationMapper.updateById(recruitment);
}
return update ? AjaxResult.ok().msg("人事审批成功!") : AjaxResult.fail().msg("人事审批失败!");
}
// 领导终审批同意
if (leadership.getParamValue().equals(byId.getLoginName())) {
one.setAuditOrder(ArgsConst.LAST);
one.setAuditState(ArgsConst.PASS);
boolean update = updateById(one);
if (update) {
recruitment.setAuditState(2);
recruitment.setLastInstance(auditRequest.getAuditOpinion());
organizationMapper.updateById(recruitment);
}
return update ? AjaxResult.ok().msg("领导审批成功!") : AjaxResult.fail().msg("领导审批失败!");
}
} else {
// 人事初审批拒绝
User byId = userMapper.selectById(one.getApprover());
if (director.getParamValue().equals(byId.getLoginName())) {
one.setAuditOrder(ArgsConst.FIRST);
one.setAuditState(ArgsConst.REJECT);
boolean update = updateById(one);
if (update) {
recruitment.setAuditState(3);
recruitment.setFirstTrial(auditRequest.getAuditOpinion());
organizationMapper.updateById(recruitment);
}
return update ? AjaxResult.ok().msg("人事审批拒绝!") : AjaxResult.fail().msg("人事审批失败!");
}
// 领导终审批拒绝
if (leadership.getParamValue().equals(byId.getLoginName())) {
one.setAuditOrder(ArgsConst.LAST);
one.setAuditState(ArgsConst.REJECT);
boolean update = updateById(one);
if (update) {
recruitment.setAuditState(3);
recruitment.setLastInstance(auditRequest.getAuditOpinion());
organizationMapper.updateById(recruitment);
}
return update ? AjaxResult.ok().msg("领导审批拒绝!") : AjaxResult.fail().msg("领导审批失败!");
}
}
return null;
}
/**
* 董监审批
*
* @param auditRequest
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public AjaxResult submitDirectorsSupervisorsAudit(AuditRequest auditRequest) {
DirectorsSupervisors recruitment = directorsSupervisorsMapper.selectById(auditRequest.getPersonnelId());
if (3 == recruitment.getAuditState()) {
return AjaxResult.fail().msg("审批已拒绝请勿重复操作!");
}
String loginId = StpUtil.getLoginIdAsString();
Audit audit = getOne(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId()).eq(Audit::getAuditOrder, ArgsConst.WAITING).eq(Audit::getApprover, loginId));
if (ObjectUtil.isNull(audit)) {
return AjaxResult.fail().msg("该用户不能审批!");
}
// 人事部负责人
Config director = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
// 领导
Config leadership = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP));
User byId = userMapper.selectById(audit.getApprover());
if ("2".equals(auditRequest.getStatus())) {
// 人事初审批同意
if (director.getParamValue().equals(byId.getLoginName())) {
audit.setAuditOrder(ArgsConst.FIRST);
audit.setAuditState(ArgsConst.PASS);
boolean update = updateById(audit);
if (update) {
Audit one1 = getOne(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId()).eq(Audit::getAuditOrder, ArgsConst.LAST));
one1.setAuditOrder(ArgsConst.WAITING);
updateById(one1);
recruitment.setFirstTrial(auditRequest.getAuditOpinion());
directorsSupervisorsMapper.updateById(recruitment);
}
return update ? AjaxResult.ok().msg("人事审批成功!") : AjaxResult.fail().msg("人事审批失败!");
}
// 领导终审批同意
if (leadership.getParamValue().equals(byId.getLoginName())) {
audit.setAuditOrder(ArgsConst.LAST);
audit.setAuditState(ArgsConst.PASS);
boolean update = updateById(audit);
if (update) {
recruitment.setAuditState(2);
recruitment.setLastInstance(auditRequest.getAuditOpinion());
directorsSupervisorsMapper.updateById(recruitment);
}
return update ? AjaxResult.ok().msg("领导审批成功!") : AjaxResult.fail().msg("领导审批失败!");
}
} else {
// 人事初审批拒绝
if (director.getParamValue().equals(byId.getLoginName())) {
audit.setAuditOrder(ArgsConst.FIRST);
audit.setAuditState(ArgsConst.REJECT);
boolean update = updateById(audit);
if (update) {
recruitment.setAuditState(3);
recruitment.setFirstTrial(auditRequest.getAuditOpinion());
directorsSupervisorsMapper.updateById(recruitment);
}
return update ? AjaxResult.ok().msg("人事审批拒绝!") : AjaxResult.fail().msg("人事审批失败!");
}
// 领导终审批拒绝
if (leadership.getParamValue().equals(byId.getLoginName())) {
audit.setAuditOrder(ArgsConst.LAST);
audit.setAuditState(ArgsConst.REJECT);
boolean update = updateById(audit);
if (update) {
recruitment.setAuditState(3);
recruitment.setLastInstance(auditRequest.getAuditOpinion());
directorsSupervisorsMapper.updateById(recruitment);
}
return update ? AjaxResult.ok().msg("领导审批拒绝!") : AjaxResult.fail().msg("领导审批失败!");
}
}
return null;
}
} }

View File

@ -2,6 +2,7 @@ package com.ydool.staff.service.impl;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.extra.spring.SpringUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.yulichang.query.MPJQueryWrapper; import com.github.yulichang.query.MPJQueryWrapper;
import com.ydool.common.base.BaseService; import com.ydool.common.base.BaseService;
@ -9,13 +10,15 @@ import com.ydool.common.data.dto.AjaxResult;
import com.ydool.common.utils.EasyExcelAlibabaUtil; import com.ydool.common.utils.EasyExcelAlibabaUtil;
import com.ydool.staff.dto.EnterpriseIndicatorsExportDto; import com.ydool.staff.dto.EnterpriseIndicatorsExportDto;
import com.ydool.staff.dto.PersonnelReportExportDto; import com.ydool.staff.dto.PersonnelReportExportDto;
import com.ydool.staff.dto.PersonnelStatementDto;
import com.ydool.staff.entity.CompanyName; import com.ydool.staff.entity.CompanyName;
import com.ydool.staff.entity.DirectorsSupervisors;
import com.ydool.staff.entity.Personnel; import com.ydool.staff.entity.Personnel;
import com.ydool.staff.entity.Recruitment; import com.ydool.staff.entity.Recruitment;
import com.ydool.staff.excel.EnterpriseIndicatorsExportVO; import com.ydool.staff.excel.EnterpriseIndicatorsExportVO;
import com.ydool.staff.excel.ExcelPersonnel;
import com.ydool.staff.excel.PersonnelReportExportVO; import com.ydool.staff.excel.PersonnelReportExportVO;
import com.ydool.staff.mapper.CompanyNameMapper; import com.ydool.staff.mapper.CompanyNameMapper;
import com.ydool.staff.mapper.DirectorsSupervisorsMapper;
import com.ydool.staff.mapper.PersonnelMapper; import com.ydool.staff.mapper.PersonnelMapper;
import com.ydool.staff.mapper.RecruitmentMapper; import com.ydool.staff.mapper.RecruitmentMapper;
import com.ydool.staff.request.CompanyNameRequest; import com.ydool.staff.request.CompanyNameRequest;
@ -24,6 +27,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -44,6 +48,8 @@ public class CompanyNameServiceImpl extends BaseService<CompanyNameMapper, Compa
RecruitmentMapper recruitmentMapper; RecruitmentMapper recruitmentMapper;
@Autowired @Autowired
PersonnelMapper personnelMapper; PersonnelMapper personnelMapper;
@Resource
private DirectorsSupervisorsMapper directorsSupervisorsMapper;
@Override @Override
public AjaxResult companyList() { public AjaxResult companyList() {
@ -116,6 +122,24 @@ public class CompanyNameServiceImpl extends BaseService<CompanyNameMapper, Compa
EasyExcelAlibabaUtil.download(EnterpriseIndicatorsExportVO.class, enterpriseIndicatorsExportVO.getEnterpriseIndicatorsExportVO(), "国有企业指标人数.xlsx"); EasyExcelAlibabaUtil.download(EnterpriseIndicatorsExportVO.class, enterpriseIndicatorsExportVO.getEnterpriseIndicatorsExportVO(), "国有企业指标人数.xlsx");
} }
@Override
public AjaxResult perStatement(String id) {
CompanyNameMapper companyNameMapper = SpringUtil.getBean(CompanyNameMapper.class);
PersonnelStatementDto statementDto = new PersonnelStatementDto();
CompanyName companyName = companyNameMapper.selectById(id);
Integer count = directorsSupervisorsMapper.selectCount(new LambdaQueryWrapper<DirectorsSupervisors>().eq(DirectorsSupervisors::getOrganizationId, companyName.getId()));
statementDto.setSupervisorsNum(count);
statementDto.setCompetentDeptName("县发展和改革局");
statementDto.setSocialCreditCode(companyName.getCreditCode());
statementDto.setCompetent(companyName.getCompanyName());
statementDto.setCapital(100);
statementDto.setMechanismNum(5);
statementDto.setEmploymentNum(16);
statementDto.setNum(1);
statementDto.setThereIntoNum(0);
return AjaxResult.ok().data(statementDto);
}
} }

View File

@ -1,5 +1,6 @@
package com.ydool.staff.service.impl; package com.ydool.staff.service.impl;
import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.IdcardUtil; import cn.hutool.core.util.IdcardUtil;
@ -7,6 +8,7 @@ import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ydool.common.cache.ConfigCache;
import com.ydool.common.constant.ArgsConst; import com.ydool.common.constant.ArgsConst;
import com.ydool.common.data.dto.AjaxResult; import com.ydool.common.data.dto.AjaxResult;
import com.ydool.staff.dto.AttachmentDto; import com.ydool.staff.dto.AttachmentDto;
@ -20,7 +22,12 @@ import com.ydool.staff.mapper.AttachmentMapper;
import com.ydool.staff.mapper.AuditMapper; import com.ydool.staff.mapper.AuditMapper;
import com.ydool.staff.mapper.CompanyNameMapper; import com.ydool.staff.mapper.CompanyNameMapper;
import com.ydool.staff.mapper.DirectorsSupervisorsMapper; import com.ydool.staff.mapper.DirectorsSupervisorsMapper;
import com.ydool.staff.service.IAuditService;
import com.ydool.staff.service.IDirectorsSupervisorsService; import com.ydool.staff.service.IDirectorsSupervisorsService;
import com.ydool.system.entity.Config;
import com.ydool.system.entity.User;
import com.ydool.system.mapper.ConfigMapper;
import com.ydool.system.mapper.UserMapper;
import com.ydool.system.request.IdsRequest; import com.ydool.system.request.IdsRequest;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -30,6 +37,7 @@ import org.thymeleaf.util.StringUtils;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
@ -51,6 +59,12 @@ public class DirectorsSupervisorsServiceImpl extends BaseService<DirectorsSuperv
CompanyNameMapper companyNameMapper; CompanyNameMapper companyNameMapper;
@Autowired @Autowired
AuditMapper auditMapper; AuditMapper auditMapper;
@Autowired
IAuditService auditService;
@Autowired
UserMapper userMapper;
@Autowired
ConfigMapper configMapper;
@Override @Override
public AjaxResult selectDirectorsSupervisorsList(Page<DirectorsSupervisors> page, DirectorsSupervisorsDto directorsSupervisorsDto) { public AjaxResult selectDirectorsSupervisorsList(Page<DirectorsSupervisors> page, DirectorsSupervisorsDto directorsSupervisorsDto) {
@ -133,5 +147,40 @@ public class DirectorsSupervisorsServiceImpl extends BaseService<DirectorsSuperv
Page<Attachment> attachmentPage = attachmentMapper.selectPage(page, new LambdaQueryWrapper<Attachment>().eq(Attachment::getTargetId, id).eq(Attachment::getTargetType, ArgsConst.DIRECTORS)); Page<Attachment> attachmentPage = attachmentMapper.selectPage(page, new LambdaQueryWrapper<Attachment>().eq(Attachment::getTargetId, id).eq(Attachment::getTargetType, ArgsConst.DIRECTORS));
return AjaxResult.ok().data(attachmentPage); return AjaxResult.ok().data(attachmentPage);
} }
@Override
public AjaxResult submitDirectorsSupervisors(String id, String type) {
String loginId = StpUtil.getLoginIdAsString();
DirectorsSupervisors directorsSupervisors = get(id);
if (1 == directorsSupervisors.getAuditState()) {
return AjaxResult.fail().msg("该数据已送审,请勿重复操作!");
}
for (int i = 0; i <= 2; i++) {
Audit audit = new Audit();
audit.setPersonnelId(id);
audit.setPerType(type);
if (i == 0) {
audit.setAuditState(ArgsConst.SUBMIT);
audit.setAuditOrder(ArgsConst.GIVE_AUDIT);
audit.setApprover(loginId);
audit.setApproverTime(new Date());
} else if (i == 1) {
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
audit.setAuditOrder(ArgsConst.WAITING);
audit.setApprover(userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue())).getId());
audit.setApproverTime(new Date());
} else if (i == 2) {
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP));
audit.setAuditOrder(ArgsConst.LAST);
audit.setApprover(userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue())).getId());
audit.setApproverTime(new Date());
}
auditMapper.insert(audit);
}
directorsSupervisors.setAuditState(1);
updateById(directorsSupervisors);
Integer a = auditService.saveAuditLog(id, loginId, "送审");
return a > 0 ? AjaxResult.ok().msg("送审成功!") : AjaxResult.fail().msg("送审失败!");
}
} }

View File

@ -1,21 +1,30 @@
package com.ydool.staff.service.impl; package com.ydool.staff.service.impl;
import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ydool.common.cache.ConfigCache;
import com.ydool.common.constant.ArgsConst;
import com.ydool.common.data.dto.AjaxResult; import com.ydool.common.data.dto.AjaxResult;
import com.ydool.staff.entity.*; import com.ydool.staff.entity.*;
import com.ydool.common.base.BaseService; import com.ydool.common.base.BaseService;
import com.ydool.staff.mapper.*; import com.ydool.staff.mapper.*;
import com.ydool.staff.request.OrganizationSearch; import com.ydool.staff.request.OrganizationSearch;
import com.ydool.staff.service.IAuditService;
import com.ydool.staff.service.IOrganizationService; import com.ydool.staff.service.IOrganizationService;
import com.ydool.system.entity.Config;
import com.ydool.system.entity.User;
import com.ydool.system.mapper.ConfigMapper;
import com.ydool.system.mapper.UserMapper;
import com.ydool.system.request.IdsRequest; import com.ydool.system.request.IdsRequest;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
@ -37,6 +46,14 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
PersonnelIndicatorsMapper personnelIndicatorsMapper; PersonnelIndicatorsMapper personnelIndicatorsMapper;
@Autowired @Autowired
RecruitmentMapper recruitmentMapper; RecruitmentMapper recruitmentMapper;
@Autowired
AuditMapper auditMapper;
@Autowired
ConfigMapper configMapper;
@Autowired
UserMapper userMapper;
@Autowired
IAuditService auditService;
@Override @Override
public AjaxResult selectOrganizationList(Page<Organization> page, OrganizationSearch organizationSearch) { public AjaxResult selectOrganizationList(Page<Organization> page, OrganizationSearch organizationSearch) {
@ -70,5 +87,74 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
return AjaxResult.fail().msg("删除失败!"); return AjaxResult.fail().msg("删除失败!");
} }
} }
/**
* 人员招聘登记
* @param id
* @param type
* @return
*/
@Override
public AjaxResult submitRecruitment(String id, String type) {
String loginId = StpUtil.getLoginIdAsString();
Organization organization = get(id);
if (1 == organization.getAuditState()) {
return AjaxResult.fail().msg("该数据已送审,请勿重复操作!");
}
extracted(id, type, loginId);
organization.setAuditState(1);
updateById(organization);
Integer i = auditService.saveAuditLog(id, loginId, "送审");
return i > 0 ? AjaxResult.ok().msg("送审成功!") : AjaxResult.ok().msg("送审失败!");
}
private void extracted(String id, String type, String loginId) {
for (int i = 0; i <= 2; i++) {
Audit audit = new Audit();
audit.setPersonnelId(id);
audit.setPerType(type);
if (i == 0) {
// 未审批
audit.setAuditState(ArgsConst.SUBMIT);
audit.setAuditOrder(ArgsConst.GIVE_AUDIT);
audit.setApprover(loginId);
audit.setApproverTime(new Date());
} else if (i == 1) {
// 待审批 人事部负责人
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
audit.setAuditOrder(ArgsConst.WAITING);
audit.setApprover(userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue())).getId());
audit.setApproverTime(new Date());
} else if (i == 2) {
// 领导
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP));
audit.setAuditOrder(ArgsConst.LAST);
audit.setApprover(userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue())).getId());
audit.setApproverTime(new Date());
}
auditMapper.insert(audit);
}
}
/**
* 人员指标申报
* @param id
* @param type
* @return
*/
@Override
public AjaxResult submitPersonnelIndicators(String id, String type) {
String loginId = StpUtil.getLoginIdAsString();
PersonnelIndicators organization = personnelIndicatorsMapper.selectById(id);
if (1 == organization.getAuditState()) {
return AjaxResult.fail().msg("该数据已送审,请勿重复操作!");
}
extracted(id, type, loginId);
organization.setAuditState(1);
personnelIndicatorsMapper.updateById(organization);
Integer i = auditService.saveAuditLog(id, loginId, "送审");
return i > 0 ? AjaxResult.ok().msg("送审成功!") : AjaxResult.ok().msg("送审失败!");
}
} }

View File

@ -16,6 +16,8 @@ import org.springframework.stereotype.Service;
*/ */
@Service @Service
public class PersonnelMiddleServiceImpl extends BaseService<PersonnelMiddleMapper, PersonnelMiddle> implements IPersonnelMiddleService { public class PersonnelMiddleServiceImpl extends BaseService<PersonnelMiddleMapper, PersonnelMiddle> implements IPersonnelMiddleService {
public Boolean savePer(PersonnelMiddle middle){
return save(middle);
}
} }

View File

@ -38,11 +38,13 @@ import com.ydool.staff.mapper.PersonnelMapper;
import com.ydool.staff.mapper.PersonnelMiddleMapper; import com.ydool.staff.mapper.PersonnelMiddleMapper;
import com.ydool.staff.request.AttachmentRequest; import com.ydool.staff.request.AttachmentRequest;
import com.ydool.staff.request.ChangeRequest; import com.ydool.staff.request.ChangeRequest;
import com.ydool.staff.request.GiveAuditRequest;
import com.ydool.staff.request.PersonnelDeleteRequest; import com.ydool.staff.request.PersonnelDeleteRequest;
import com.ydool.staff.request.PersonnelRequest; import com.ydool.staff.request.PersonnelRequest;
import com.ydool.staff.request.PersonnelUpdateRequest; import com.ydool.staff.request.PersonnelUpdateRequest;
import com.ydool.staff.service.IAttachmentService; import com.ydool.staff.service.IAttachmentService;
import com.ydool.staff.service.IAuditService; import com.ydool.staff.service.IAuditService;
import com.ydool.staff.service.IPersonnelMiddleService;
import com.ydool.staff.service.IPersonnelService; import com.ydool.staff.service.IPersonnelService;
import com.ydool.system.entity.Config; import com.ydool.system.entity.Config;
import com.ydool.system.entity.Dept; import com.ydool.system.entity.Dept;
@ -104,6 +106,8 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
@Resource @Resource
private ConfigMapper configMapper; private ConfigMapper configMapper;
@Resource @Resource
private IPersonnelMiddleService personnelMiddleService;
@Resource
private PersonnelMiddleMapper personnelMiddleMapper; private PersonnelMiddleMapper personnelMiddleMapper;
@ -134,28 +138,36 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
return AjaxResult.ok().data(personnelPage); return AjaxResult.ok().data(personnelPage);
} }
public AjaxResult getById(String id) { public AjaxResult getById(String id,String type) {
if (StrUtil.isNotBlank(id)) { if (StrUtil.isBlank(id)) {
Personnel personnel = personnelMapper.selectById(id); return AjaxResult.fail().msg("id不能为空查询失败");
PersonnelUpdateDto personnelUpdateDto = BeanUtil.copyProperties(personnel, PersonnelUpdateDto.class);
List<Audit> list = auditMapper.selectList(new LambdaQueryWrapper<Audit>()
.eq(Audit::getPersonnelId, personnel.getId())
.eq(Audit::getApprover,StpUtil.getLoginIdAsString()));
for (Audit audit : list) {
if (ArgsConst.WAITING.equals(audit.getAuditOrder())){
personnelUpdateDto.setAuditBtn(true);
}
}
personnelUpdateDto.setCardFiles(nameAndPath(personnel.getCardFile(), personnel.getId()));
personnelUpdateDto.setEngageFiles(nameAndPath(personnel.getEngageFile(), personnel.getId()));
personnelUpdateDto.setEducationFiles(nameAndPath(personnel.getEducationFile(), personnel.getId()));
personnelUpdateDto.setJobTitleFiles(nameAndPath(personnel.getJobTitleFile(), personnel.getId()));
personnelUpdateDto.setAuditFiles(nameAndPath(personnel.getAuditFile(), personnel.getId()));
return AjaxResult.ok().data(personnelUpdateDto);
} }
return AjaxResult.fail().msg("查询失败!"); Personnel personnel = new Personnel();
if (type.equals(ArgsConst.UPDATE)){
BeanUtil.copyProperties(personnelMapper.selectById(id),personnel);
}else {
PersonnelMiddle middle = personnelMiddleMapper.selectOne(new LambdaQueryWrapper<PersonnelMiddle>()
.eq(PersonnelMiddle::getBeforeId, id).eq(PersonnelMiddle::getState, "1"));
BeanUtil.copyProperties(personnelMapper.selectById(middle.getAfterId()),personnel);
}
if (ObjectUtil.isEmpty(personnel))return AjaxResult.fail().msg("该人员不存在!");
PersonnelUpdateDto personnelUpdateDto = BeanUtil.copyProperties(personnel, PersonnelUpdateDto.class);
Audit audit = auditMapper.selectOne(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId,id)
.eq(Audit::getPerType,ArgsConst.PERSONNEL)
.eq(Audit::getApprover, StpUtil.getLoginIdAsString())
.eq(Audit::getAuditOrder, ArgsConst.WAITING));
if (ObjectUtil.isNotEmpty(audit)){
personnelUpdateDto.setAuditBtn(true);
}
personnelUpdateDto.setBeforeId(id);
personnelUpdateDto.setCardFiles(nameAndPath(personnel.getCardFile(), personnel.getId()));
personnelUpdateDto.setEngageFiles(nameAndPath(personnel.getEngageFile(), personnel.getId()));
personnelUpdateDto.setEducationFiles(nameAndPath(personnel.getEducationFile(), personnel.getId()));
personnelUpdateDto.setJobTitleFiles(nameAndPath(personnel.getJobTitleFile(), personnel.getId()));
personnelUpdateDto.setAuditFiles(nameAndPath(personnel.getAuditFile(), personnel.getId()));
return AjaxResult.ok().data(personnelUpdateDto);
} }
@ -238,7 +250,7 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
per.setState("1"); per.setState("1");
save(per); save(per);
middle.setAfterId(per.getId()); middle.setAfterId(per.getId());
personnelMiddleMapper.insert(middle); personnelMiddleService.savePer(middle);
saveAttachment(cardFile, ArgsConst.CARD_FILE, updateRequest.getId(), ArgsConst.UPDATE); saveAttachment(cardFile, ArgsConst.CARD_FILE, updateRequest.getId(), ArgsConst.UPDATE);
saveAttachment(educationFile, ArgsConst.EDUCATION_FILE, updateRequest.getId(), ArgsConst.UPDATE); saveAttachment(educationFile, ArgsConst.EDUCATION_FILE, updateRequest.getId(), ArgsConst.UPDATE);
saveAttachment(auditFile, ArgsConst.AUDIT_FILE, updateRequest.getId(), ArgsConst.UPDATE); saveAttachment(auditFile, ArgsConst.AUDIT_FILE, updateRequest.getId(), ArgsConst.UPDATE);
@ -287,7 +299,7 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
per.setState("1"); per.setState("1");
save(per); save(per);
middle.setAfterId(per.getId()); middle.setAfterId(per.getId());
personnelMiddleMapper.insert(middle); personnelMiddleService.savePer(middle);
saveAttachment(cardFiles, ArgsConst.CARD_FILE, request.getId(), ArgsConst.UPDATE); saveAttachment(cardFiles, ArgsConst.CARD_FILE, request.getId(), ArgsConst.UPDATE);
saveAttachment(jobTitleFiles, ArgsConst.JOBTITLE_FILE, request.getId(), ArgsConst.UPDATE); saveAttachment(jobTitleFiles, ArgsConst.JOBTITLE_FILE, request.getId(), ArgsConst.UPDATE);
saveAttachment(engageFiles, ArgsConst.ENGAGE_FILE, request.getId(), ArgsConst.UPDATE); saveAttachment(engageFiles, ArgsConst.ENGAGE_FILE, request.getId(), ArgsConst.UPDATE);
@ -493,40 +505,57 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public AjaxResult giveAudit(String id, String type) { public AjaxResult giveAudit(GiveAuditRequest request) {
String loginId = (String) StpUtil.getLoginId(); String loginId = (String) StpUtil.getLoginId();
if ("1".equals(get(id).getAuditState())) { String[] ids = request.getIds();
return AjaxResult.fail().msg("该数据已送审,请勿重复操作!"); if (ObjectUtil.isNotEmpty(request)){
updatePersonnel(request.getRequest());
} }
for(int i=0;i<2;i++ ){ for (String id : ids) {
Audit audit = new Audit(); Personnel personnel1 = get(id);
audit.setPersonnelId(id); System.out.println("personnel1 = " + personnel1);
audit.setPerType(type); if (1==(personnel1.getAuditState())) {
if(i==0){ return AjaxResult.fail().msg("该数据已送审,请勿重复操作!");
audit.setAuditState(ArgsConst.SUBMIT);
audit.setAuditOrder(ArgsConst.GIVE_AUDIT);
audit.setApprover(loginId);
audit.setApproverTime(new Date());
}else if(i==1){
audit.setAuditOrder(ArgsConst.FIRST);
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
audit.setAuditOrder(ArgsConst.WAITING);
User user = userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue()));
audit.setApprover(user.getId());
}else {
audit.setAuditOrder(ArgsConst.LAST);
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP));
User user = userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue()));
audit.setApprover(user.getId());
} }
auditMapper.insert(audit); if ("0".equals(personnel1.getAlterationSign())){
return AjaxResult.fail().msg("变更数据未保存,不能送审!");
}
for(int i=0;i<=2;i++ ){
Audit audit = new Audit();
audit.setPersonnelId(id);
audit.setPerType(request.getType());
if(i==0){
audit.setAuditState(ArgsConst.SUBMIT);
audit.setAuditOrder(ArgsConst.GIVE_AUDIT);
audit.setApprover(loginId);
audit.setApproverTime(new Date());
}else if(i==1){
audit.setAuditOrder(ArgsConst.FIRST);
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
audit.setAuditOrder(ArgsConst.WAITING);
User user = userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue()));
audit.setApprover(user.getId());
}else {
audit.setAuditOrder(ArgsConst.LAST);
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP));
User user = userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue()));
audit.setApprover(user.getId());
}
auditMapper.insert(audit);
}
Personnel personnel = get(id);
personnel.setAuditState(1);
updateById(personnel);
auditService.saveAuditLog(id, loginId, "一般送审提交");
} }
Personnel personnel = get(id); if (ids.length==1){
personnel.setAuditState(1); return AjaxResult.ok().msg("送审成功!");
personnel.setAlterationSign("1"); }
updateById(personnel); return AjaxResult.ok().msg("批量送审成功!");
Integer a = auditService.saveAuditLog(id, loginId, "一般送审提交");
return a>0 ? AjaxResult.ok().msg("送审成功!") : AjaxResult.fail().msg("送审失败!");
} }
public PersonnelFailMsgVO checkPersonnelExportVO(PersonnelExportVO personnelExportVO) { public PersonnelFailMsgVO checkPersonnelExportVO(PersonnelExportVO personnelExportVO) {

View File

@ -0,0 +1 @@
import{f as c,h as C,ag as a,o as h,R as k,S as e,a as y,d as l,W as d}from"./@vue-799d75fe.js";const A={class:"dialog-footer"},N={__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(V,{emit:p}){const s=V,u=c(!1),o=c({status:"2"}),m=()=>{u.value=!1,o.value={status:"2"},p("update:modelValue",!1)},v=()=>{m(),p("handleApprove",o.value)};return C(()=>s.modelValue,r=>{console.log(r,"newValue"),s.modelValue&&(u.value=s.modelValue)}),(r,t)=>{const b=a("el-input"),_=a("el-form-item"),i=a("el-radio"),g=a("el-radio-group"),w=a("el-form"),f=a("el-button"),x=a("el-dialog");return h(),k(x,{modelValue:u.value,"onUpdate:modelValue":t[2]||(t[2]=n=>u.value=n),title:"审批",width:"26%","before-close":m},{footer:e(()=>[y("span",A,[l(f,{onClick:m},{default:e(()=>[d("取消")]),_:1}),l(f,{type:"primary",onClick:v},{default:e(()=>[d(" 确认 ")]),_:1})])]),default:e(()=>[l(w,{model:o.value},{default:e(()=>[l(_,{label:"审批意见"},{default:e(()=>[l(b,{modelValue:o.value.auditOpinion,"onUpdate:modelValue":t[0]||(t[0]=n=>o.value.auditOpinion=n),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(_,{label:"审批状态"},{default:e(()=>[l(g,{modelValue:o.value.status,"onUpdate:modelValue":t[1]||(t[1]=n=>o.value.status=n)},{default:e(()=>[l(i,{label:"2"},{default:e(()=>[d("同意")]),_:1}),l(i,{label:"1"},{default:e(()=>[d("拒绝")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}};export{N as default};

View File

@ -0,0 +1 @@
System.register(["./@vue-legacy-6c3c82af.js"],(function(e,l){"use strict";var a,u,t,o,d,n,r,s,m;return{setters:[e=>{a=e.f,u=e.h,t=e.ag,o=e.o,d=e.R,n=e.S,r=e.a,s=e.d,m=e.W}],execute:function(){const l={class:"dialog-footer"};e("default",{__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(e,{emit:i}){const p=e,f=a(!1),v=a({status:"2"}),V=()=>{f.value=!1,v.value={status:"2"},i("update:modelValue",!1)},c=()=>{V(),i("handleApprove",v.value)};return u((()=>p.modelValue),(e=>{console.log(e,"newValue"),p.modelValue&&(f.value=p.modelValue)})),(e,a)=>{const u=t("el-input"),i=t("el-form-item"),p=t("el-radio"),_=t("el-radio-group"),g=t("el-form"),b=t("el-button"),y=t("el-dialog");return o(),d(y,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=e=>f.value=e),title:"审批",width:"26%","before-close":V},{footer:n((()=>[r("span",l,[s(b,{onClick:V},{default:n((()=>[m("取消")])),_:1}),s(b,{type:"primary",onClick:c},{default:n((()=>[m(" 确认 ")])),_:1})])])),default:n((()=>[s(g,{model:v.value},{default:n((()=>[s(i,{label:"审批意见"},{default:n((()=>[s(u,{modelValue:v.value.auditOpinion,"onUpdate:modelValue":a[0]||(a[0]=e=>v.value.auditOpinion=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),s(i,{label:"审批状态"},{default:n((()=>[s(_,{modelValue:v.value.status,"onUpdate:modelValue":a[1]||(a[1]=e=>v.value.status=e)},{default:n((()=>[s(p,{label:"2"},{default:n((()=>[m("同意")])),_:1}),s(p,{label:"1"},{default:n((()=>[m("拒绝")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])}}})}}}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{h as v}from"./index-949b5609.js";import{c as g}from"./lodash.clonedeep-89ac42ac.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as d,o as m,c as b,d as s,S as l,a as j,W as _,F as A,a6 as F,R as M,X as q}from"./@vue-799d75fe.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const z={class:"export"},G={class:"dialog-footer"},O={__name:"Export",props:{dialogVisible:[Boolean]},emits:["update:dialogVisible"],setup(k,{emit:x}){const C=k,p=r(!1),n=r([]),V=r({academy:"毕业院校",alterationSign:"变更标志",annualSalary:"年薪",birthday:"出生日期",companyName:"企业名称",contractModality:"合同形式",education:"学历",finalTrialRemark:"终审意见",firstTrialRemark:"初审意见",freshGraduate:"是否应届毕业生",gender:"性别",hireDate:"入职时间",hireType:"录用方式",jobTitle:"专业技术职称",nation:"民族",numberId:"身份证号",personnelCharacter:"人员性质",personnelType:"人员类型",politicsStatus:"政治面貌",position:"岗位职务",presentDept:"所在部门",qualification:"执业资格证书",receipts:"单据状态",recruitNumber:"人员招聘单号",remark:"备注",resignationTime:"离职时间",retirementTime:"退休时间",socialCreditCode:"统一社会信用代码",specialty:"专业",txfpEndTime:"退休返聘结束时间",txfpStartTime:"退休返聘开始时间",userName:"姓名",workState:"工作状态"}),c=r(),u=r(!1),o=r([]),f=()=>{p.value=!1,x("update:dialogVisible",!1),o.value=g(n.value),c.value=!1,u.value=!1},y=e=>{f(),e()},T=()=>{console.log(o.value),v.export("/api/person/export",{ids:o.value}).then(e=>{const t=window.URL.createObjectURL(e.data),i=document.createElement("a");i.download=decodeURIComponent(e.headers["content-disposition"].split(";")[1].split("=")[1]),i.href=t,i.click()})},w=e=>{o.value=e?n.value:[],u.value=!1},S=e=>{const t=e.length;c.value=t===n.value.length,u.value=t>0&&t<n.value.length};I(()=>C.dialogVisible,e=>{p.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(n.value=e.data,o.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=d("el-checkbox"),B=d("el-checkbox-group"),D=d("el-form"),h=d("el-button"),N=d("el-dialog");return m(),b("div",z,[s(N,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=a=>p.value=a),title:"导出选项",width:"36%","before-close":y},{footer:l(()=>[j("span",G,[s(h,{onClick:T},{default:l(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:l(()=>[_("关闭")]),_:1})])]),default:l(()=>[s(D,null,{default:l(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=a=>c.value=a),label:"全选",class:"is-checked-all",size:"large",indeterminate:u.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=a=>o.value=a),onChange:S},{default:l(()=>[(m(!0),b(A,null,F(n.value,(a,R)=>(m(),M(i,{class:"el-checkbox-width",label:a,key:R},{default:l(()=>[_(q(V.value[a]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},pe=U(O,[["__scopeId","data-v-e0be88eb"]]);export{pe as default};

View File

@ -0,0 +1 @@
import{h as v}from"./index-f4a3d251.js";import{c as g}from"./lodash.clonedeep-89ac42ac.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as d,o as m,c as b,d as s,S as l,a as j,W as _,F as A,a6 as F,R as M,X as q}from"./@vue-799d75fe.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const z={class:"export"},G={class:"dialog-footer"},O={__name:"Export",props:{dialogVisible:[Boolean]},emits:["update:dialogVisible"],setup(k,{emit:x}){const C=k,p=r(!1),n=r([]),V=r({academy:"毕业院校",alterationSign:"变更标志",annualSalary:"年薪",birthday:"出生日期",companyName:"企业名称",contractModality:"合同形式",education:"学历",finalTrialRemark:"终审意见",firstTrialRemark:"初审意见",freshGraduate:"是否应届毕业生",gender:"性别",hireDate:"入职时间",hireType:"录用方式",jobTitle:"专业技术职称",nation:"民族",numberId:"身份证号",personnelCharacter:"人员性质",personnelType:"人员类型",politicsStatus:"政治面貌",position:"岗位职务",presentDept:"所在部门",qualification:"执业资格证书",receipts:"单据状态",recruitNumber:"人员招聘单号",remark:"备注",resignationTime:"离职时间",retirementTime:"退休时间",socialCreditCode:"统一社会信用代码",specialty:"专业",txfpEndTime:"退休返聘结束时间",txfpStartTime:"退休返聘开始时间",userName:"姓名",workState:"工作状态"}),c=r(),u=r(!1),o=r([]),f=()=>{p.value=!1,x("update:dialogVisible",!1),o.value=g(n.value),c.value=!1,u.value=!1},y=e=>{f(),e()},T=()=>{console.log(o.value),v.export("/api/person/export",{ids:o.value}).then(e=>{const t=window.URL.createObjectURL(e.data),i=document.createElement("a");i.download=decodeURIComponent(e.headers["content-disposition"].split(";")[1].split("=")[1]),i.href=t,i.click()})},w=e=>{o.value=e?n.value:[],u.value=!1},S=e=>{const t=e.length;c.value=t===n.value.length,u.value=t>0&&t<n.value.length};I(()=>C.dialogVisible,e=>{p.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(n.value=e.data,o.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=d("el-checkbox"),B=d("el-checkbox-group"),D=d("el-form"),h=d("el-button"),N=d("el-dialog");return m(),b("div",z,[s(N,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=a=>p.value=a),title:"导出选项",width:"36%","before-close":y},{footer:l(()=>[j("span",G,[s(h,{onClick:T},{default:l(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:l(()=>[_("关闭")]),_:1})])]),default:l(()=>[s(D,null,{default:l(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=a=>c.value=a),label:"全选",class:"is-checked-all",size:"large",indeterminate:u.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=a=>o.value=a),onChange:S},{default:l(()=>[(m(!0),b(A,null,F(n.value,(a,R)=>(m(),M(i,{class:"el-checkbox-width",label:a,key:R},{default:l(()=>[_(q(V.value[a]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},ue=U(O,[["__scopeId","data-v-e0be88eb"]]);export{ue as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import"./index-949b5609.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as V}from"./_plugin-vue_export-helper-c27b6911.js";import{f as b,a0 as u,ag as a,o as s,c as _,d as e,S as o,F as g,a6 as v}from"./@vue-799d75fe.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const x={class:"tab-content"},F={__name:"Log",setup(w){const d=b(),t=u({name:""}),i=u({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]});return(y,l)=>{const n=a("el-input"),r=a("el-form-item"),p=a("el-col"),f=a("el-row"),c=a("el-form");return s(),_("div",x,[e(c,{ref_key:"ruleFormRef",ref:d,model:t,rules:i,"label-width":"208px"},{default:o(()=>[(s(),_(g,null,v(5,L=>e(f,null,{default:o(()=>[e(p,{span:8},{default:o(()=>[e(r,{label:"处理人:",prop:"name"},{default:o(()=>[e(n,{modelValue:t.name,"onUpdate:modelValue":l[0]||(l[0]=m=>t.name=m)},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:8},{default:o(()=>[e(r,{label:"处理时间:",prop:"name"},{default:o(()=>[e(n,{modelValue:t.name,"onUpdate:modelValue":l[1]||(l[1]=m=>t.name=m)},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:8},{default:o(()=>[e(r,{label:"处理状态:",prop:"name"},{default:o(()=>[e(n,{modelValue:t.name,"onUpdate:modelValue":l[2]||(l[2]=m=>t.name=m)},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:24},{default:o(()=>[e(r,{label:"处理意见"},{default:o(()=>[e(n,{modelValue:t.name,"onUpdate:modelValue":l[3]||(l[3]=m=>t.name=m)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})),64))]),_:1},8,["model","rules"])])}}},T=V(F,[["__scopeId","data-v-3b78c5bf"]]);export{T as default};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{h as g}from"./index-f4a3d251.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as y}from"./_plugin-vue_export-helper-c27b6911.js";import{a as x}from"./vue-router-e054bd6d.js";import{f as S,k as b,ag as _,o as i,c as m,R as u,V as k,F as L,a6 as w,S as o,d as c,a as t,X as r,ax as B,ay as I}from"./@vue-799d75fe.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const l=e=>(B("data-v-01c0cb66"),e=e(),I(),e),V={class:"tab-content"},C={class:"item-container"},N=l(()=>t("div",null,"处理人:",-1)),q={class:"item-container"},D=l(()=>t("div",null,"处理时间:",-1)),F={class:"item-container"},R=l(()=>t("div",null,"处理状态:",-1)),A={class:"item-container"},E=l(()=>t("div",null,"处理意见:",-1)),M={__name:"Log",setup(e){const d=x(),p=S([]),v=()=>{console.log(d.query.id),g.get(`/api/alteration/audtiLog?id=${d.query.id}`).then(a=>{console.log(a),a.code===200&&(p.value=a.data)})};return b(()=>{v()}),(a,X)=>{const h=_("el-empty"),s=_("el-col"),f=_("el-row");return i(),m("div",V,[p.value.length===0?(i(),u(h,{key:0,description:"暂无"})):k("",!0),(i(!0),m(L,null,w(p.value,n=>(i(),u(f,null,{default:o(()=>[c(s,{span:8},{default:o(()=>[t("div",C,[N,t("div",null,r(n.approver),1)])]),_:2},1024),c(s,{span:8},{default:o(()=>[t("div",q,[D,t("div",null,r(n.createdAt),1)])]),_:2},1024),c(s,{span:8},{default:o(()=>[t("div",F,[R,t("div",null,r(n.auditState),1)])]),_:2},1024),c(s,{span:24},{default:o(()=>[t("div",A,[E,t("div",null,r(n.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},rt=y(M,[["__scopeId","data-v-01c0cb66"]]);export{rt as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
System.register(["./@vue-legacy-6c3c82af.js","./NodeType-legacy-0acf3669.js","./optionConfig-legacy-708250f5.js","./approver-legacy-8f8c47f3.js","./@icon-park-legacy-af6e216d.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,i,a,s,r,p,c,f,u,v,m,y,I,k,g,w,h,j,A,C,b;return{setters:[e=>{o=e.a0,l=e.aq,n=e.o,d=e.c,i=e.a,a=e.$,s=e.T,r=e.Y,p=e.d,c=e.u,f=e.M,u=e.X,v=e.aj,m=e.R,y=e.F,I=e.a6},e=>{k=e.default},e=>{g=e.r,w=e.t},e=>{h=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},z={key:0,class:"text"},N={class:"span"},E=i("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:M}){const T=e,O=h(),R=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),V=(e,t)=>{M("addApprover",T.nodeItem,t)},_=()=>{M("addCondition",T.nodeItem,"add")},B=()=>{M("removeApprover",T.nodeItem,T.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[i("div",x,[i("div",q,[i("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=a((e=>R.activeIndex=T.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=a((e=>R.activeIndex=-1),["self"]))},[s(i("div",{class:"y-flow-node-del",onClick:B},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,T.nodeItem.nodeId==R.activeIndex]]),i("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=T.nodeItem,O.changeApprover(t),void O.toggleApproverVisible(!0);var t})},[i("div",{class:f(["y-flow-node-head",["approver"===T.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[i("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=a((e=>{return t=T.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[T.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>T.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=T.nodeItem,o=!1,t.title||(t.title="审批节点"),O.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,T.nodeItem.title],[g]]):(n(),d("div",z,[i("span",N,u(T.nodeItem.title||T.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===T.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,i("div",L,[(n(!0),d(y,null,I(T.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),i("div",W,[p(k,{branchItem:T.nodeItem,onAddApprover:V,onChangeCondition:_},null,8,["branchItem"])])],32)])])])}}})}}})); System.register(["./@vue-legacy-6c3c82af.js","./NodeType-legacy-0acf3669.js","./optionConfig-legacy-708250f5.js","./approver-legacy-8f8c47f3.js","./@icon-park-legacy-af6e216d.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,i,a,s,r,p,c,f,u,v,m,y,I,k,g,h,w,j,A,C,b;return{setters:[e=>{o=e.a0,l=e.aq,n=e.o,d=e.c,i=e.a,a=e.$,s=e.T,r=e.Y,p=e.d,c=e.u,f=e.M,u=e.X,v=e.aj,m=e.R,y=e.F,I=e.a6},e=>{k=e.default},e=>{g=e.r,h=e.t},e=>{w=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},N={key:0,class:"text"},z={class:"span"},E=i("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:M}){const T=e,O=w(),P=o({roleArray:g,typeArray:h,defaultRole:"未知",activeIndex:-1}),R=(e,t)=>{M("addApprover",T.nodeItem,t)},V=()=>{M("addCondition",T.nodeItem,"add")},_=()=>{M("removeApprover",T.nodeItem,T.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[i("div",x,[i("div",q,[i("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=a((e=>P.activeIndex=T.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=a((e=>P.activeIndex=-1),["self"]))},[s(i("div",{class:"y-flow-node-del",onClick:_},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,T.nodeItem.nodeId==P.activeIndex]]),i("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=T.nodeItem,O.changeApprover(t),void O.toggleApproverVisible(!0);var t})},[i("div",{class:f(["y-flow-node-head",["approver"===T.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[i("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=a((e=>{return t=T.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[T.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>T.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=T.nodeItem,o=!1,t.title||(t.title="审批节点"),O.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,T.nodeItem.title],[g]]):(n(),d("div",N,[i("span",z,u(T.nodeItem.title||T.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===T.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,i("div",L,[(n(!0),d(y,null,I(T.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),i("div",W,[p(k,{branchItem:T.nodeItem,onAddApprover:R,onChangeCondition:V},null,8,["branchItem"])])],32)])])])}}})}}}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{h as c}from"./index-f4a3d251.js";import{a as n}from"./vue-router-e054bd6d.js";import{_ as m}from"./_plugin-vue_export-helper-c27b6911.js";import{f as s,ag as l,o as _,c as d,d as e,S as u}from"./@vue-799d75fe.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const b={class:"tab-content"},f={__name:"Record",setup(h){const p=n(),a=s([]);return(()=>{let r=p.query.id;c.get(`/api/alteration/alterationPage?id=${r}`).then(o=>{o.code==200&&(console.log(o,"clearSearchclearSearch"),a.value=o.data)})})(),(r,o)=>{const t=l("el-table-column"),i=l("el-table");return _(),d("div",b,[e(i,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:u(()=>[e(t,{type:"index",width:"80",align:"center",label:"序号"}),e(t,{prop:"details",label:"变更内容"}),e(t,{prop:"beforeChange",label:"变更前"}),e(t,{prop:"afterChange",label:"变更后"}),e(t,{prop:"createdName",label:"变更人"}),e(t,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},G=m(f,[["__scopeId","data-v-5ee21545"]]);export{G as default};

View File

@ -1 +0,0 @@
import{h as i}from"./index-949b5609.js";import{a as n}from"./vue-router-e054bd6d.js";import{_ as m}from"./_plugin-vue_export-helper-c27b6911.js";import{f as s,ag as l,o as _,c as d,d as e,S as u}from"./@vue-799d75fe.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const b={class:"tab-content"},f={__name:"Record",setup(h){const p=n(),a=s([]);return(()=>{let r=p.query.id;i.get(`/api/alteration/alterationPage?id=${r}`).then(o=>{o.code==200&&(console.log(o,"clearSearchclearSearch"),a.value=o.data)})})(),(r,o)=>{const t=l("el-table-column"),c=l("el-table");return _(),d("div",b,[e(c,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:u(()=>[e(t,{type:"index",width:"80",align:"center",label:"序号"}),e(t,{prop:"details",label:"变更内容"}),e(t,{prop:"beforeChange",label:"变更前"}),e(t,{prop:"afterChange",label:"变更后"}),e(t,{prop:"createdName",label:"变更人"}),e(t,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},z=m(f,[["__scopeId","data-v-5ee21545"]]);export{z as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import"./index-949b5609.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import{l as _,o as s,c as n,a as i,F as u,a6 as m,L as p,O as v,u as f,M as b,X as y}from"./@vue-799d75fe.js";const h={class:"entDeclaration"},k={class:"entDeclaration-nav"},g=["onClick"],x={class:"entDeclaration-main"},A={__name:"Tab",props:{tabList:{type:Array,required:!0,default:()=>[]},isActive:{type:String,default:""}},emits:["clickItem"],setup(t,{emit:o}){const r=t,c=_(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(u,null,m(t.tabList,(a,l)=>(s(),n("div",{style:v({zIndex:f(c)(l)}),class:b(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},y(a),15,g))),256))]),i("main",x,[p(e.$slots,"default",{isActive:t.isActive},void 0,!0)])]))}},F=d(A,[["__scopeId","data-v-441b1381"]]);export{F as T}; import"./index-f4a3d251.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import{l as _,o as s,c as n,a as i,F as u,a6 as m,L as p,O as v,u as f,M as b,X as y}from"./@vue-799d75fe.js";const h={class:"entDeclaration"},k={class:"entDeclaration-nav"},g=["onClick"],x={class:"entDeclaration-main"},A={__name:"Tab",props:{tabList:{type:Array,required:!0,default:()=>[]},isActive:{type:String,default:""}},emits:["clickItem"],setup(t,{emit:o}){const r=t,c=_(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(u,null,m(t.tabList,(a,l)=>(s(),n("div",{style:v({zIndex:f(c)(l)}),class:b(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},y(a),15,g))),256))]),i("main",x,[p(e.$slots,"default",{isActive:t.isActive},void 0,!0)])]))}},F=d(A,[["__scopeId","data-v-441b1381"]]);export{F as T};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{f as _,h as N,ag as r,o as i,c as n,d as p,S as d,W as S,T as A,Y as L,a as h,F as z,a6 as R,V as v,$ as b,X as T,R as $}from"./@vue-799d75fe.js";import{h as y}from"./index-f4a3d251.js";import{c as k}from"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const E={class:"upload"},I={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(C,{emit:c}){const a=C;_([]);const t=_([]),g=e=>!0,m=e=>k(e),w=e=>k(e);N(()=>a.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(a.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=w(a.modelValue)},{immediate:!0});const x=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{console.log(o,"res"),o.code==200&&(t.value.push({name:o.data.name,path:o.data.path,size:s.size,suffix:o.data.suffix}),c("update:modelValue",m(t.value)),console.log(a.modelValue,t.value))})},F=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},V=e=>{y.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(s=>{const l=window.URL.createObjectURL(s),o=document.createElement("a");o.download=e.name,o.href=l,o.click()})};return(e,s)=>{const l=r("el-button"),o=r("el-upload"),B=r("CircleCloseFilled"),U=r("el-icon");return i(),n("div",E,[p(o,{"show-file-list":!1,"before-upload":g,"http-request":x,disabled:a.disabled},{default:d(()=>[p(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[S("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),A(h("span",I,"未选择任何文件",512),[[L,t.value.length===0]]),t.value.length>0?(i(!0),n(z,{key:0},R(t.value,(u,f)=>(i(),n("span",{class:"fileBox",key:f,onClick:b(D=>V(u),["stop"])},[h("span",null,T(u.name),1),a.disabled?v("",!0):(i(),$(U,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>F(f),["stop"])},{default:d(()=>[p(B)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},me=q(M,[["__scopeId","data-v-c84f6ff9"]]);export{me as default};

View File

@ -1 +0,0 @@
import{f as _,h as N,ag as r,o as i,c as n,d as p,S as d,W as S,T as A,Y as L,a as h,F as z,a6 as R,V as v,$ as b,X as T,R as $}from"./@vue-799d75fe.js";import{h as y}from"./index-949b5609.js";import{c as k}from"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const E={class:"upload"},I={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(C,{emit:c}){const a=C;_([]);const t=_([]),g=e=>!0,m=e=>k(e),w=e=>k(e);N(()=>a.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(a.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=w(a.modelValue)},{immediate:!0});const x=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{console.log(o,"res"),o.code==200&&(t.value.push({name:o.data.name,path:o.data.path,size:s.size,suffix:o.data.suffix}),c("update:modelValue",m(t.value)),console.log(a.modelValue,t.value))})},F=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},V=e=>{y.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(s=>{const l=window.URL.createObjectURL(s),o=document.createElement("a");o.download=e.name,o.href=l,o.click()})};return(e,s)=>{const l=r("el-button"),o=r("el-upload"),B=r("CircleCloseFilled"),U=r("el-icon");return i(),n("div",E,[p(o,{"show-file-list":!1,"before-upload":g,"http-request":x,disabled:a.disabled},{default:d(()=>[p(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[S("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),A(h("span",I,"未选择任何文件",512),[[L,t.value.length===0]]),t.value.length>0?(i(!0),n(z,{key:0},R(t.value,(u,f)=>(i(),n("span",{class:"fileBox",key:f,onClick:b(D=>V(u),["stop"])},[h("span",null,T(u.name),1),a.disabled?v("",!0):(i(),$(U,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>F(f),["stop"])},{default:d(()=>[p(B)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},ce=q(M,[["__scopeId","data-v-c84f6ff9"]]);export{ce as default};

View File

@ -0,0 +1 @@
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-91658d53.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./_plugin-vue_export-helper-legacy-762b7923.js","./vue-router-legacy-68eee699.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-165258b0.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@element-plus-legacy-109f3c36.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-a850f6c1.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js","./js-cookie-legacy-c7672909.js"],(function(e,l){"use strict";var a,s,t,n,o,u,d,c,i,p,r,y,g,m,f,j,v,h,_,b;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,d=e.S,c=e.W,i=e.T,p=e.Y,r=e.a,y=e.F,g=e.a6,m=e.V,f=e.$,j=e.X,v=e.R},e=>{h=e.h},e=>{_=e.c},null,e=>{b=e._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"upload"},k={class:"empty"},w=["onClick"],x={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:b}){const x=e;a([]);const V=a([]),C=e=>!0,z=e=>_(e);s((()=>x.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==x.type||Array.isArray(e)||"string"!=typeof e)?void(V.value=(l=x.modelValue,_(l))):V.value=[];var l}),{immediate:!0});const F=e=>{let l=e.file;const a=new FormData;a.append("file",l),h.post("/api/attachment/upload",a).then((e=>{console.log(e,"res"),200==e.code&&(V.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(V.value)),console.log(x.modelValue,V.value))}))};return(e,a)=>{const s=t("el-button"),_=t("el-upload"),U=t("CircleCloseFilled"),B=t("el-icon");return n(),o("div",l,[u(_,{"show-file-list":!1,"before-upload":C,"http-request":F,disabled:x.disabled},{default:d((()=>[u(s,{type:"primary",plain:"",disabled:x.disabled},{default:d((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(r("span",k,"未选择任何文件",512),[[p,0===V.value.length]]),V.value.length>0?(n(!0),o(y,{key:0},g(V.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:f((l=>(e=>{h.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),s=document.createElement("a");s.download=e.name,s.href=a,s.click()}))})(e)),["stop"])},[r("span",null,j(e.name),1),x.disabled?m("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:f((e=>(e=>{V.value.splice(e,1),b("update:modelValue",z(V.value))})(l)),["stop"])},{default:d((()=>[u(U)])),_:2},1032,["onClick"]))],8,w)))),128)):m("",!0)])}}};e("default",b(x,[["__scopeId","data-v-c84f6ff9"]]))}}}));

View File

@ -1 +0,0 @@
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-b670dc3e.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./_plugin-vue_export-helper-legacy-762b7923.js","./vue-router-legacy-68eee699.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./element-plus-legacy-173ee141.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@element-plus-legacy-ca5ac6d2.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-a850f6c1.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,s,t,n,o,u,d,c,i,p,r,y,m,g,f,j,v,h,_,b;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,d=e.S,c=e.W,i=e.T,p=e.Y,r=e.a,y=e.F,m=e.a6,g=e.V,f=e.$,j=e.X,v=e.R},e=>{h=e.h},e=>{_=e.c},null,e=>{b=e._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"upload"},k={class:"empty"},x=["onClick"],w={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:b}){const w=e;a([]);const V=a([]),C=e=>!0,z=e=>_(e);s((()=>w.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==w.type||Array.isArray(e)||"string"!=typeof e)?void(V.value=(l=w.modelValue,_(l))):V.value=[];var l}),{immediate:!0});const F=e=>{let l=e.file;const a=new FormData;a.append("file",l),h.post("/api/attachment/upload",a).then((e=>{console.log(e,"res"),200==e.code&&(V.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(V.value)),console.log(w.modelValue,V.value))}))};return(e,a)=>{const s=t("el-button"),_=t("el-upload"),U=t("CircleCloseFilled"),B=t("el-icon");return n(),o("div",l,[u(_,{"show-file-list":!1,"before-upload":C,"http-request":F,disabled:w.disabled},{default:d((()=>[u(s,{type:"primary",plain:"",disabled:w.disabled},{default:d((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(r("span",k,"未选择任何文件",512),[[p,0===V.value.length]]),V.value.length>0?(n(!0),o(y,{key:0},m(V.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:f((l=>(e=>{h.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),s=document.createElement("a");s.download=e.name,s.href=a,s.click()}))})(e)),["stop"])},[r("span",null,j(e.name),1),w.disabled?g("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:f((e=>(e=>{V.value.splice(e,1),b("update:modelValue",z(V.value))})(l)),["stop"])},{default:d((()=>[u(U)])),_:2},1032,["onClick"]))],8,x)))),128)):g("",!0)])}}};e("default",b(w,[["__scopeId","data-v-c84f6ff9"]]))}}}));

View File

@ -1 +0,0 @@
import{_ as B}from"./TableBody-72eaca06.js";import{y as F}from"./yd_diaInput-c56a0aca.js";import{h as n}from"./index-949b5609.js";import{E as i}from"./element-plus-69b549ae.js";import{f as c,a0 as p,k as L,o as x,c as A,d as y,P as E}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-4d69b6da.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P={class:"example"},le={__name:"department",setup(q){const u=c(!1),d=p({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=p({value:!1,changeValue:e=>{l.value=e}}),h=p([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),b=c({code:"",name:"",pid:"",remarks:"",sortNo:0}),f=c({type:"create",name:"新增",id:""}),v=c({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),r=p({column:void 0,orderBy:void 0,value:void 0}),g=()=>{n.get("/api/dept/tree").then(e=>{e.code==200&&(console.log("res",e),h[0].options=e.data.data)})},s=()=>{d.tableType.tableLoading=!0,n.get("/api/dept/list",r).then(e=>{e.code==200&&(d.tableData=e.data,d.tableType.tableLoading=!1)}).catch(()=>{d.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(console.log(e,t),e){case"create":w();break;case"edit":console.log(e,t),T(t);break;case"delete":N(t);break;case"sort":V(t);break;case"search":H(t);break}},N=e=>{const t=e.map(a=>a.id);console.log(t[0]),n.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(i({message:"删除成功",type:"success"}),s(),g()):i({message:a.message,type:"error"})})},_=(e,t,a)=>{if(console.log(e,t,a),e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),n.post("/api/dept/save",o).then(m=>{console.log(m),m.code==200?(i({message:m.message,type:"success"}),l.value=!1,s(),g()):i.error(m.message)})}else e==="edit"&&(n.put(`/api/dept/edit?id=${a}`,t).then(o=>{o.code==200?(i({message:o.message,type:"success"}),l.value=!1,s()):i.error(o.message)}),console.log(a))},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},u.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;u.value=!1,n.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(console.log(a),l.value=!0,b.value={paramKey:a.data.paramKey,paramValue:a.data.paramValue,remarks:a.data.remarks,sortNo:a.data.sortNo,code:a.data.data.code,name:a.data.data.name,pid:a.data.data.pid==0?"":a.data.data.pid,remarks:a.data.data.remarks,sortNo:a.data.data.sortNo},f.value={type:"edit",name:"编辑",id:t})})},H=e=>{console.log(e.value),r.value=e.value,s()},V=e=>{e.name===""?(r.orderBy=void 0,r.column=void 0):(r.orderBy=e.sortType,r.column=e.name),s()};return L(()=>{s(),g()}),(e,t)=>(x(),A("div",P,[y(B,E(d,{onHandleTableHeader:k}),null,16),y(F,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:u.value,buttonName:f.value,ruleForm:b.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{le as default};

View File

@ -0,0 +1 @@
import{_ as B}from"./TableBody-89177887.js";import{y as F}from"./yd_diaInput-82ae4ab0.js";import{h as n}from"./index-f4a3d251.js";import{E as i}from"./element-plus-596887fa.js";import{f as c,a0 as p,k as L,o as x,c as A,d as y,P as E}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-38db6609.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P={class:"example"},re={__name:"department",setup(q){const u=c(!1),d=p({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=p({value:!1,changeValue:e=>{l.value=e}}),h=p([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),b=c({code:"",name:"",pid:"",remarks:"",sortNo:0}),f=c({type:"create",name:"新增",id:""}),v=c({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),r=p({column:void 0,orderBy:void 0,value:void 0}),g=()=>{n.get("/api/dept/tree").then(e=>{e.code==200&&(console.log("res",e),h[0].options=e.data.data)})},s=()=>{d.tableType.tableLoading=!0,n.get("/api/dept/list",r).then(e=>{e.code==200&&(d.tableData=e.data,d.tableType.tableLoading=!1)}).catch(()=>{d.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(console.log(e,t),e){case"create":w();break;case"edit":console.log(e,t),T(t);break;case"delete":N(t);break;case"sort":V(t);break;case"search":H(t);break}},N=e=>{const t=e.map(a=>a.id);console.log(t[0]),n.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(i({message:"删除成功",type:"success"}),s(),g()):i({message:a.message,type:"error"})})},_=(e,t,a)=>{if(console.log(e,t,a),e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),n.post("/api/dept/save",o).then(m=>{console.log(m),m.code==200?(i({message:m.message,type:"success"}),l.value=!1,s(),g()):i.error(m.message)})}else e==="edit"&&(n.put(`/api/dept/edit?id=${a}`,t).then(o=>{o.code==200?(i({message:o.message,type:"success"}),l.value=!1,s()):i.error(o.message)}),console.log(a))},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},u.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;u.value=!1,n.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(console.log(a),l.value=!0,b.value={paramKey:a.data.paramKey,paramValue:a.data.paramValue,remarks:a.data.remarks,sortNo:a.data.sortNo,code:a.data.data.code,name:a.data.data.name,pid:a.data.data.pid==0?"":a.data.data.pid,remarks:a.data.data.remarks,sortNo:a.data.data.sortNo},f.value={type:"edit",name:"编辑",id:t})})},H=e=>{console.log(e.value),r.value=e.value,s()},V=e=>{e.name===""?(r.orderBy=void 0,r.column=void 0):(r.orderBy=e.sortType,r.column=e.name),s()};return L(()=>{s(),g()}),(e,t)=>(x(),A("div",P,[y(B,E(d,{onHandleTableHeader:k}),null,16),y(F,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:u.value,buttonName:f.value,ruleForm:b.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{re as default};

View File

@ -0,0 +1 @@
System.register(["./TableBody-legacy-268e4388.js","./yd_diaInput-legacy-27ceea99.js","./index-legacy-91658d53.js","./element-plus-legacy-165258b0.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-109f3c36.js","./lodash.clonedeep-legacy-930370dc.js","./dayjs-legacy-a850f6c1.js","./vue-router-legacy-68eee699.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,o,s,r,d,n,c,u,i,p;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{s=e.E},e=>{r=e.f,d=e.a0,n=e.k,c=e.o,u=e.c,i=e.d,p=e.P},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"department",setup(e){const m=r(!1),g=d({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),y=d({value:!1,changeValue:e=>{y.value=e}}),b=d([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),v=r({code:"",name:"",pid:"",remarks:"",sortNo:0}),h=r({type:"create",name:"新增",id:""}),j=r({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),k=d({column:void 0,orderBy:void 0,value:void 0}),w=()=>{o.get("/api/dept/tree").then((e=>{200==e.code&&(console.log("res",e),b[0].options=e.data.data)}))},N=()=>{g.tableType.tableLoading=!0,o.get("/api/dept/list",k).then((e=>{200==e.code&&(g.tableData=e.data,g.tableType.tableLoading=!1)})).catch((()=>{g.tableType.tableLoading=!1}))},T=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":H();break;case"edit":console.log(e,a),_(a);break;case"delete":f(a);break;case"sort":V(a);break;case"search":L(a)}},f=e=>{const a=e.map((e=>e.id));console.log(a[0]),o.delete("/api/dept/remove",{params:{id:a[0]}}).then((e=>{200==e.code?(s({message:"删除成功",type:"success"}),N(),w()):s({message:e.message,type:"error"})}))},x=(e,a,l)=>{if(console.log(e,a,l),"create"===e){let e={...a};""===a.pid&&(e={...e,pid:0}),o.post("/api/dept/save",e).then((e=>{console.log(e),200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N(),w()):s.error(e.message)}))}else"edit"===e&&(o.put(`/api/dept/edit?id=${l}`,a).then((e=>{200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N()):s.error(e.message)})),console.log(l))},H=()=>{y.value=!0,h.value={type:"create",name:"新增",id:""},m.value=!1,v.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},_=e=>{const a=e[0].id;m.value=!1,o.get("/api/dept/detail",{id:a}).then((e=>{200===e.code&&(console.log(e),y.value=!0,v.value={paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo,code:e.data.data.code,name:e.data.data.name,pid:0==e.data.data.pid?"":e.data.data.pid,remarks:e.data.data.remarks,sortNo:e.data.data.sortNo},h.value={type:"edit",name:"编辑",id:a})}))},L=e=>{console.log(e.value),k.value=e.value,N()},V=e=>{""===e.name?(k.orderBy=void 0,k.column=void 0):(k.orderBy=e.sortType,k.column=e.name),N()};return n((()=>{N(),w()})),(e,o)=>(c(),u("div",a,[i(l,p(g,{onHandleTableHeader:T}),null,16),i(t,{inputArray:b,onHandleFrom:x,dialogVisible:y,control:m.value,buttonName:h.value,ruleForm:v.value,rules:j.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}})}}}));

View File

@ -1 +0,0 @@
System.register(["./TableBody-legacy-f6947b01.js","./yd_diaInput-legacy-82a34261.js","./index-legacy-b670dc3e.js","./element-plus-legacy-173ee141.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-ca5ac6d2.js","./lodash.clonedeep-legacy-930370dc.js","./dayjs-legacy-a850f6c1.js","./vue-router-legacy-68eee699.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,o,s,r,d,n,c,i,u,p;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{s=e.E},e=>{r=e.f,d=e.a0,n=e.k,c=e.o,i=e.c,u=e.d,p=e.P},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"department",setup(e){const m=r(!1),g=d({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),y=d({value:!1,changeValue:e=>{y.value=e}}),b=d([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),v=r({code:"",name:"",pid:"",remarks:"",sortNo:0}),h=r({type:"create",name:"新增",id:""}),j=r({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),k=d({column:void 0,orderBy:void 0,value:void 0}),w=()=>{o.get("/api/dept/tree").then((e=>{200==e.code&&(console.log("res",e),b[0].options=e.data.data)}))},N=()=>{g.tableType.tableLoading=!0,o.get("/api/dept/list",k).then((e=>{200==e.code&&(g.tableData=e.data,g.tableType.tableLoading=!1)})).catch((()=>{g.tableType.tableLoading=!1}))},T=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":H();break;case"edit":console.log(e,a),_(a);break;case"delete":f(a);break;case"sort":V(a);break;case"search":L(a)}},f=e=>{const a=e.map((e=>e.id));console.log(a[0]),o.delete("/api/dept/remove",{params:{id:a[0]}}).then((e=>{200==e.code?(s({message:"删除成功",type:"success"}),N(),w()):s({message:e.message,type:"error"})}))},x=(e,a,l)=>{if(console.log(e,a,l),"create"===e){let e={...a};""===a.pid&&(e={...e,pid:0}),o.post("/api/dept/save",e).then((e=>{console.log(e),200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N(),w()):s.error(e.message)}))}else"edit"===e&&(o.put(`/api/dept/edit?id=${l}`,a).then((e=>{200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N()):s.error(e.message)})),console.log(l))},H=()=>{y.value=!0,h.value={type:"create",name:"新增",id:""},m.value=!1,v.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},_=e=>{const a=e[0].id;m.value=!1,o.get("/api/dept/detail",{id:a}).then((e=>{200===e.code&&(console.log(e),y.value=!0,v.value={paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo,code:e.data.data.code,name:e.data.data.name,pid:0==e.data.data.pid?"":e.data.data.pid,remarks:e.data.data.remarks,sortNo:e.data.data.sortNo},h.value={type:"edit",name:"编辑",id:a})}))},L=e=>{console.log(e.value),k.value=e.value,N()},V=e=>{""===e.name?(k.orderBy=void 0,k.column=void 0):(k.orderBy=e.sortType,k.column=e.name),N()};return n((()=>{N(),w()})),(e,o)=>(c(),i("div",a,[u(l,p(g,{onHandleTableHeader:T}),null,16),u(t,{inputArray:b,onHandleFrom:x,dialogVisible:y,control:m.value,buttonName:h.value,ruleForm:v.value,rules:j.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}})}}}));

View File

@ -0,0 +1 @@
import{_ as P}from"./TableBody-89177887.js";import{y as S}from"./yd_diaInput-82ae4ab0.js";import{h as g}from"./index-f4a3d251.js";import{u as V}from"./vue-router-e054bd6d.js";import{c as v}from"./lodash.clonedeep-89ac42ac.js";import{u as H}from"./useDictData-fee7cc16.js";import{E as L}from"./element-plus-596887fa.js";import{f as n,a0 as u,k as F,o as B,c as E,d as f,P as R}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-38db6609.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./dayjs-9729b6d9.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const O={class:"example"},me={__name:"desTarget",setup($){const i=V(),y=n(!1),p=n(),t=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增登记",icon:"Plus",permission:"rsgl:ryzbsb:create"},{type:"custom",name:"view",title:"查看",icon:"View",isOpen:"single"},"delete"]},{buttons:[{name:"mixInput",options:[{label:"审批单号",value:"approvalNumber"},{label:"企业名称",value:"companyName"}]},"advanced"]},{delete:"rsgl:ryzbsb:delete"}],tableList:[{name:"companyId",label:"企业名称",show:!0,width:200},{name:"approvalNumber",label:"审批单号",show:!0},{name:"checkNumber",label:"原核定用工指标人数",show:!0},{name:"activeStaff",label:"现在职人数(指标内)",show:!0},{name:"thisApprovalNumber",label:"本次核准后总指标人数",show:!0},{name:"createdId",label:"填报人",show:!0},{name:"createdAt",label:"填报时间",show:!0},{name:"",label:"初审人",show:!0},{name:"",label:"初审时间",show:!0},{name:"",label:"国资会审人",show:!0},{name:"",label:"国资会审时间",show:!0},{name:"",label:"编办会审人",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),r=u({value:!1,changeValue:e=>{r.value=e}}),d=u([{type:"input",title:"企业名称",model:"companyName",placeholder:"请输入",control:!1,row:24},{type:"input",title:"审批单号",model:"approvalNumber",placeholder:"请输入",control:!1,row:24},{type:"select",title:"单据状态",model:"documentStatus",control:!1,row:24,placeholder:"请选择",options:[]},{type:"datetime",title:"填报开始时间",model:"createdAt",control:!1,row:24,placeholder:"请选择"},{type:"datetime",title:"填报结束时间",model:"updatedAt",control:!1,row:24,placeholder:"请选择"}]),c={type:"personnel_indicators",current:t.pagination.current,size:t.pagination.pageSize},o=n({...c}),m=n({}),b=n({}),l=()=>{t.tableType.tableLoading=!0,g.get("/api/organization/selectOrganizationPersonnelIndicatorsList",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},w=({type:e,data:a})=>{switch(e){case"create":N();break;case"submission":console.log(e,a);break;case"edit":console.log(e,a),A(a);break;case"delete":console.log(e,a),k(a);break;case"advanced":console.log(e,a),I();break;case"accessory":console.log(e,a);break;case"view":console.log(e,a),T(a);break;case"mixInput":console.log(e,a),M(a);break}},_=e=>{console.log(e),console.log(e),t.pagination.current=e,o.value.current=e,l()},k=e=>{const a=e.map(s=>s.id);g.post("/api/organization/deleteOrganizationAndPersonnelIndicators",{ids:a}).then(s=>{s.code==200&&(L({message:"删除成功",type:"success"}),l())})},x=(e,a,s)=>{o.value={...o.value,...a},p.value.clearMixInput(),r.value=!1,l()},I=()=>{r.value=!0,b.value={type:"adsearch",name:"查询",id:""},m.value={approvalNumber:"",companyName:"",updatedAt:"",createdAt:"",documentStatus:""}},N=()=>{i.push("/grain/des-target-add?type=create")},T=e=>{i.push(`/grain/des-target-add?type=check&id=${e[0].id}`)},A=e=>{const a=e[0].id;i.push(`/grain/des-target-add?type=edit&id=${a}`)},M=e=>{if(console.log(e.seachMixSelect.value,e.seachMixInput.value),e.seachMixSelect.value===""||e.seachMixInput.value===""){o.value=v(c),l();return}o.value=v(c),o.value[e.seachMixSelect.value]=e.seachMixInput.value,l()};let h=n({}),z=["t_dict_invoices_state"];const D=()=>{H(z).then(e=>{h.value=e,d[2].options=h.value.t_dict_invoices_state})};return F(()=>{l(),D()}),(e,a)=>(B(),E("div",O,[f(P,R(t,{onHandleTableHeader:w,onHandleTablePagination:_,ref_key:"TableBodyRef",ref:p}),null,16),f(S,{inputArray:d,onHandleFrom:x,dialogVisible:r,control:y.value,buttonName:b.value,ruleForm:m.value,diawidth:24},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}};export{me as default};

View File

@ -1 +0,0 @@
import{_ as P}from"./TableBody-72eaca06.js";import{y as S}from"./yd_diaInput-c56a0aca.js";import{h as g}from"./index-949b5609.js";import{u as V}from"./vue-router-e054bd6d.js";import{c as v}from"./lodash.clonedeep-89ac42ac.js";import{u as H}from"./useDictData-28662aa5.js";import{E as L}from"./element-plus-69b549ae.js";import{f as n,a0 as u,k as F,o as B,c as E,d as f,P as R}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-4d69b6da.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./dayjs-9729b6d9.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const O={class:"example"},de={__name:"desTarget",setup($){const i=V(),y=n(!1),p=n(),t=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增登记",icon:"Plus",permission:"rsgl:ryzbsb:create"},{type:"custom",name:"view",title:"查看",icon:"View",isOpen:"single"},"delete"]},{buttons:[{name:"mixInput",options:[{label:"审批单号",value:"approvalNumber"},{label:"企业名称",value:"companyName"}]},"advanced"]},{delete:"rsgl:ryzbsb:delete"}],tableList:[{name:"companyId",label:"企业名称",show:!0,width:200},{name:"approvalNumber",label:"审批单号",show:!0},{name:"checkNumber",label:"原核定用工指标人数",show:!0},{name:"activeStaff",label:"现在职人数(指标内)",show:!0},{name:"thisApprovalNumber",label:"本次核准后总指标人数",show:!0},{name:"createdId",label:"填报人",show:!0},{name:"createdAt",label:"填报时间",show:!0},{name:"",label:"初审人",show:!0},{name:"",label:"初审时间",show:!0},{name:"",label:"国资会审人",show:!0},{name:"",label:"国资会审时间",show:!0},{name:"",label:"编办会审人",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),r=u({value:!1,changeValue:e=>{r.value=e}}),d=u([{type:"input",title:"企业名称",model:"companyName",placeholder:"请输入",control:!1,row:24},{type:"input",title:"审批单号",model:"approvalNumber",placeholder:"请输入",control:!1,row:24},{type:"select",title:"单据状态",model:"documentStatus",control:!1,row:24,placeholder:"请选择",options:[]},{type:"datetime",title:"填报开始时间",model:"createdAt",control:!1,row:24,placeholder:"请选择"},{type:"datetime",title:"填报结束时间",model:"updatedAt",control:!1,row:24,placeholder:"请选择"}]),c={type:"personnel_indicators",current:t.pagination.current,size:t.pagination.pageSize},o=n({...c}),m=n({}),b=n({}),l=()=>{t.tableType.tableLoading=!0,g.get("/api/organization/selectOrganizationPersonnelIndicatorsList",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},w=({type:e,data:a})=>{switch(e){case"create":N();break;case"submission":console.log(e,a);break;case"edit":console.log(e,a),A(a);break;case"delete":console.log(e,a),k(a);break;case"advanced":console.log(e,a),I();break;case"accessory":console.log(e,a);break;case"view":console.log(e,a),T(a);break;case"mixInput":console.log(e,a),M(a);break}},_=e=>{console.log(e),console.log(e),t.pagination.current=e,o.value.current=e,l()},k=e=>{const a=e.map(s=>s.id);g.post("/api/organization/deleteOrganizationAndPersonnelIndicators",{ids:a}).then(s=>{s.code==200&&(L({message:"删除成功",type:"success"}),l())})},x=(e,a,s)=>{o.value={...o.value,...a},p.value.clearMixInput(),r.value=!1,l()},I=()=>{r.value=!0,b.value={type:"adsearch",name:"查询",id:""},m.value={approvalNumber:"",companyName:"",updatedAt:"",createdAt:"",documentStatus:""}},N=()=>{i.push("/grain/des-target-add?type=create")},T=e=>{i.push(`/grain/des-target-add?type=check&id=${e[0].id}`)},A=e=>{const a=e[0].id;i.push(`/grain/des-target-add?type=edit&id=${a}`)},M=e=>{if(console.log(e.seachMixSelect.value,e.seachMixInput.value),e.seachMixSelect.value===""||e.seachMixInput.value===""){o.value=v(c),l();return}o.value=v(c),o.value[e.seachMixSelect.value]=e.seachMixInput.value,l()};let h=n({}),z=["t_dict_invoices_state"];const D=()=>{H(z).then(e=>{h.value=e,d[2].options=h.value.t_dict_invoices_state})};return F(()=>{l(),D()}),(e,a)=>(B(),E("div",O,[f(P,R(t,{onHandleTableHeader:w,onHandleTablePagination:_,ref_key:"TableBodyRef",ref:p}),null,16),f(S,{inputArray:d,onHandleFrom:x,dialogVisible:r,control:y.value,buttonName:b.value,ruleForm:m.value,diawidth:24},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}};export{de as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
System.register(["./TableBody-legacy-f6947b01.js","./yd_diaInput-legacy-82a34261.js","./index-legacy-b670dc3e.js","./vue-router-legacy-68eee699.js","./lodash.clonedeep-legacy-930370dc.js","./useDictData-legacy-5dee6fcc.js","./element-plus-legacy-173ee141.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-ca5ac6d2.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./dayjs-legacy-a850f6c1.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,n,o,s,c,i,r,u,d,p,g,m,y;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{n=e.h},e=>{o=e.u},e=>{s=e.c},e=>{c=e.u},e=>{i=e.E},e=>{r=e.f,u=e.a0,d=e.k,p=e.o,g=e.c,m=e.d,y=e.P},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"desTarget",setup(e){const b=o(),v=r(!1),h=r(),j=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增登记",icon:"Plus",permission:"rsgl:ryzbsb:create"},{type:"custom",name:"view",title:"查看",icon:"View",isOpen:"single"},"delete"]},{buttons:[{name:"mixInput",options:[{label:"审批单号",value:"approvalNumber"},{label:"企业名称",value:"companyName"}]},"advanced"]},{delete:"rsgl:ryzbsb:delete"}],tableList:[{name:"companyId",label:"企业名称",show:!0,width:200},{name:"approvalNumber",label:"审批单号",show:!0},{name:"checkNumber",label:"原核定用工指标人数",show:!0},{name:"activeStaff",label:"现在职人数(指标内)",show:!0},{name:"thisApprovalNumber",label:"本次核准后总指标人数",show:!0},{name:"createdId",label:"填报人",show:!0},{name:"createdAt",label:"填报时间",show:!0},{name:"",label:"初审人",show:!0},{name:"",label:"初审时间",show:!0},{name:"",label:"国资会审人",show:!0},{name:"",label:"国资会审时间",show:!0},{name:"",label:"编办会审人",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),w=u({value:!1,changeValue:e=>{w.value=e}}),x=u([{type:"input",title:"企业名称",model:"companyName",placeholder:"请输入",control:!1,row:24},{type:"input",title:"审批单号",model:"approvalNumber",placeholder:"请输入",control:!1,row:24},{type:"select",title:"单据状态",model:"documentStatus",control:!1,row:24,placeholder:"请选择",options:[]},{type:"datetime",title:"填报开始时间",model:"createdAt",control:!1,row:24,placeholder:"请选择"},{type:"datetime",title:"填报结束时间",model:"updatedAt",control:!1,row:24,placeholder:"请选择"}]),_={type:"personnel_indicators",current:j.pagination.current,size:j.pagination.pageSize},f=r({..._}),k=r({}),I=r({}),z=()=>{j.tableType.tableLoading=!0,n.get("/api/organization/selectOrganizationPersonnelIndicatorsList",f.value).then((e=>{200==e.code&&(j.tableData=e.data.records,j.tableType.tableLoading=!1,j.pagination.total=e.data.total)})).catch((()=>{j.tableType.tableLoading=!1}))},N=({type:e,data:a})=>{switch(e){case"create":L();break;case"submission":case"accessory":console.log(e,a);break;case"edit":console.log(e,a),P(a);break;case"delete":console.log(e,a),S(a);break;case"advanced":console.log(e,a),M();break;case"view":console.log(e,a),H(a);break;case"mixInput":console.log(e,a),D(a)}},A=e=>{console.log(e),console.log(e),j.pagination.current=e,f.value.current=e,z()},S=e=>{const a=e.map((e=>e.id));n.post("/api/organization/deleteOrganizationAndPersonnelIndicators",{ids:a}).then((e=>{200==e.code&&(i({message:"删除成功",type:"success"}),z())}))},T=(e,a,l)=>{f.value={...f.value,...a},h.value.clearMixInput(),w.value=!1,z()},M=()=>{w.value=!0,I.value={type:"adsearch",name:"查询",id:""},k.value={approvalNumber:"",companyName:"",updatedAt:"",createdAt:"",documentStatus:""}},L=()=>{b.push("/grain/des-target-add?type=create")},H=e=>{b.push(`/grain/des-target-add?type=check&id=${e[0].id}`)},P=e=>{const a=e[0].id;b.push(`/grain/des-target-add?type=edit&id=${a}`)},D=e=>{if(console.log(e.seachMixSelect.value,e.seachMixInput.value),""===e.seachMixSelect.value||""===e.seachMixInput.value)return f.value=s(_),void z();f.value=s(_),f.value[e.seachMixSelect.value]=e.seachMixInput.value,z()};let V=r({}),F=["t_dict_invoices_state"];return d((()=>{z(),c(F).then((e=>{V.value=e,x[2].options=V.value.t_dict_invoices_state}))})),(e,n)=>(p(),g("div",a,[m(l,y(j,{onHandleTableHeader:N,onHandleTablePagination:A,ref_key:"TableBodyRef",ref:h}),null,16),m(t,{inputArray:x,onHandleFrom:T,dialogVisible:w,control:v.value,buttonName:I.value,ruleForm:k.value,diawidth:24},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}})}}}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import E from"./Upload-d1966acd.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a0 as g,n as P,ag as s,o as R,c as H,d as e,S as t,W as p,a as b}from"./@vue-799d75fe.js";import"./index-f4a3d251.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */const T={class:"ParMain"},j={class:"tab-content"},A={class:"dialog-footer"},D={__name:"details",setup(I){const _=o(4),c=o(100),v=o(!1),y=o(!1),k=o(!1),f=o(0);o("");const h=o(),m=g({name:""}),C=g({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]}),i=o(!1),x=[{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件一号"},{name:"池武丹",lastname:"李四",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件二号"},{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件三号"}],u=()=>{i.value=!0},V=n=>{console.log(`${n} items per page`)},z=n=>{console.log(`current page: ${n}`)};return P(()=>{f.value=window.innerHeight-320}),(n,a)=>{const r=s("el-table-column"),d=s("el-button"),q=s("el-table"),w=s("el-pagination"),F=s("el-form-item"),U=s("el-col"),S=s("el-row"),$=s("el-form"),B=s("el-dialog");return R(),H("div",T,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(r,{prop:"qiye",label:"附件名称",sortable:""}),e(r,{prop:"status",label:"文件类型",sortable:""}),e(r,{prop:"name",label:"上传人",sortable:""}),e(r,{prop:"lastname",label:"最后修改人",sortable:""}),e(r,{prop:"address",label:"最后修改日期",sortable:""}),e(r,{fixed:"right",label:"操作"},{default:t(()=>[e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[p("附件")]),_:1})]),_:1})]),_:1},8,["height"]),e(w,{style:{"margin-top":"100px"},"current-page":_.value,"onUpdate:current-page":a[0]||(a[0]=l=>_.value=l),"page-size":c.value,"onUpdate:page-size":a[1]||(a[1]=l=>c.value=l),"page-sizes":[100,200,300,400],small:v.value,disabled:k.value,background:y.value,layout:"->,total, prev, pager, next, jumper",total:400,onSizeChange:V,onCurrentChange:z},null,8,["current-page","page-size","small","disabled","background"]),e(B,{modelValue:i.value,"onUpdate:modelValue":a[5]||(a[5]=l=>i.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(d,{type:"primary",onClick:a[3]||(a[3]=l=>i.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(d,{onClick:a[4]||(a[4]=l=>i.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e($,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:n.disabledVal,"hide-required-asterisk":n.hideRequired},{default:t(()=>[e(S,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(E,{modelValue:m.name,"onUpdate:modelValue":a[2]||(a[2]=l=>m.name=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","hide-required-asterisk"])])]),_:1},8,["modelValue"])])}}},_e=N(D,[["__scopeId","data-v-41b38f3f"]]);export{_e as default};

View File

@ -1 +0,0 @@
import E from"./Upload-f518731f.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a0 as g,n as P,ag as s,o as R,c as H,d as e,S as t,W as p,a as b}from"./@vue-799d75fe.js";import"./index-949b5609.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */const T={class:"ParMain"},j={class:"tab-content"},A={class:"dialog-footer"},D={__name:"details",setup(I){const _=o(4),c=o(100),v=o(!1),y=o(!1),k=o(!1),f=o(0);o("");const h=o(),m=g({name:""}),C=g({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]}),i=o(!1),x=[{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件一号"},{name:"池武丹",lastname:"李四",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件二号"},{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件三号"}],u=()=>{i.value=!0},V=n=>{console.log(`${n} items per page`)},z=n=>{console.log(`current page: ${n}`)};return P(()=>{f.value=window.innerHeight-320}),(n,a)=>{const r=s("el-table-column"),d=s("el-button"),q=s("el-table"),w=s("el-pagination"),F=s("el-form-item"),U=s("el-col"),S=s("el-row"),$=s("el-form"),B=s("el-dialog");return R(),H("div",T,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(r,{prop:"qiye",label:"附件名称",sortable:""}),e(r,{prop:"status",label:"文件类型",sortable:""}),e(r,{prop:"name",label:"上传人",sortable:""}),e(r,{prop:"lastname",label:"最后修改人",sortable:""}),e(r,{prop:"address",label:"最后修改日期",sortable:""}),e(r,{fixed:"right",label:"操作"},{default:t(()=>[e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[p("附件")]),_:1})]),_:1})]),_:1},8,["height"]),e(w,{style:{"margin-top":"100px"},"current-page":_.value,"onUpdate:current-page":a[0]||(a[0]=l=>_.value=l),"page-size":c.value,"onUpdate:page-size":a[1]||(a[1]=l=>c.value=l),"page-sizes":[100,200,300,400],small:v.value,disabled:k.value,background:y.value,layout:"->,total, prev, pager, next, jumper",total:400,onSizeChange:V,onCurrentChange:z},null,8,["current-page","page-size","small","disabled","background"]),e(B,{modelValue:i.value,"onUpdate:modelValue":a[5]||(a[5]=l=>i.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(d,{type:"primary",onClick:a[3]||(a[3]=l=>i.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(d,{onClick:a[4]||(a[4]=l=>i.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e($,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:n.disabledVal,"hide-required-asterisk":n.hideRequired},{default:t(()=>[e(S,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(E,{modelValue:m.name,"onUpdate:modelValue":a[2]||(a[2]=l=>m.name=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","hide-required-asterisk"])])]),_:1},8,["modelValue"])])}}},ue=N(D,[["__scopeId","data-v-41b38f3f"]]);export{ue as default};

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More