update
This commit is contained in:
parent
b77ca6025e
commit
cdb83e844d
|
@ -27,9 +27,9 @@ public class Generator {
|
|||
|
||||
public static void main(String[] args) {
|
||||
//表名
|
||||
String tableName = "t_lc_leave";
|
||||
String tableName = "t_integrated_meeting_user";
|
||||
//表前缀
|
||||
String tablePrefix = "t_lc_";
|
||||
String tablePrefix = "t_integrated_";
|
||||
//作者—
|
||||
String author = "zhouyuan";
|
||||
|
||||
|
@ -66,7 +66,7 @@ public class Generator {
|
|||
|
||||
//包配置
|
||||
PackageConfig pc = new PackageConfig();
|
||||
pc.setParent("com.ydool.staff");
|
||||
pc.setParent("com.ydool.integrated");
|
||||
pc.setEntity("entity");
|
||||
pc.setServiceImpl("service");
|
||||
pc.setMapper("mapper");
|
||||
|
|
|
@ -10,6 +10,7 @@ import com.ydool.common.data.dto.AjaxResult;
|
|||
import com.ydool.integrated.dto.MeetingDto;
|
||||
import com.ydool.integrated.service.MeetingService;
|
||||
import com.ydool.integrated.vo.IdsVo;
|
||||
import com.ydool.integrated.vo.MeetingUserVo;
|
||||
import com.ydool.integrated.vo.MeetingVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
|
@ -21,7 +22,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
|
||||
@RestController
|
||||
@RequestMapping(UrlConstant.MEETING)
|
||||
@Api(tags = "会议管理", value = "会议管理")
|
||||
@Api(tags = "三重一大", value = "三重一大")
|
||||
@ApiSupport(order = 5)
|
||||
public class MeetingController extends BaseController {
|
||||
|
||||
|
@ -42,20 +43,20 @@ public class MeetingController extends BaseController {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param id
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@PutMapping(value = "edit")
|
||||
@ApiOperation(value = "编辑")
|
||||
@ApiImplicitParam(name = "id", value = "Id")
|
||||
@ApiOperationSupport(order = 2)
|
||||
public AjaxResult editMeeting(String id, @Validated @RequestBody MeetingVo vo) {
|
||||
return meetingService.edit(id, vo);
|
||||
}
|
||||
// /**
|
||||
// * 编辑
|
||||
// *
|
||||
// * @param id
|
||||
// * @param vo
|
||||
// * @return
|
||||
// */
|
||||
// @PutMapping(value = "edit")
|
||||
// @ApiOperation(value = "编辑")
|
||||
// @ApiImplicitParam(name = "id", value = "Id")
|
||||
// @ApiOperationSupport(order = 2)
|
||||
// public AjaxResult editMeeting(String id, @Validated @RequestBody MeetingVo vo) {
|
||||
// return meetingService.edit(id, vo);
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
|
@ -72,18 +73,18 @@ public class MeetingController extends BaseController {
|
|||
return meetingService.remove(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@PutMapping(value = "removeBatch")
|
||||
@ApiOperation(value = "批量删除")
|
||||
@ApiOperationSupport(order = 4)
|
||||
public AjaxResult removeMeetings(@Validated @RequestBody IdsVo vo) {
|
||||
return meetingService.removeBatch(vo);
|
||||
}
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param vo
|
||||
// * @return
|
||||
// */
|
||||
// @PutMapping(value = "removeBatch")
|
||||
// @ApiOperation(value = "批量删除")
|
||||
// @ApiOperationSupport(order = 4)
|
||||
// public AjaxResult removeMeetings(@Validated @RequestBody IdsVo vo) {
|
||||
// return meetingService.removeBatch(vo);
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
|
@ -129,4 +130,16 @@ public class MeetingController extends BaseController {
|
|||
public AjaxResult MeetingPages(String value, String column, String orderBy) {
|
||||
return meetingService.pageList(getPage(), value, column, orderBy);
|
||||
}
|
||||
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation(value = "结束投票")
|
||||
public AjaxResult endVote(@PathVariable("id") String id) {
|
||||
return meetingService.endVote(id);
|
||||
}
|
||||
|
||||
@PutMapping("/vote")
|
||||
@ApiOperation(value = "投票")
|
||||
public AjaxResult vote(@Validated @RequestBody MeetingUserVo vo) {
|
||||
return meetingService.vote(vo);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,20 +1,54 @@
|
|||
package com.ydool.integrated.dto;
|
||||
|
||||
import com.ydool.integrated.entity.Meeting;
|
||||
import com.ydool.system.entity.User;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class MeetingDto extends Meeting {
|
||||
@ApiModelProperty(value = "参会人员")
|
||||
private String userList;
|
||||
|
||||
@ApiModelProperty(value = "应该参会人员列表")
|
||||
private List<MeetingUserDto> userList;
|
||||
|
||||
@ApiModelProperty(value = "实际参会人员列表")
|
||||
private List<MeetingUserDto> actualUserList;
|
||||
|
||||
@ApiModelProperty(value = "未参会人员列表")
|
||||
private List<MeetingUserDto> notUserList;
|
||||
|
||||
@ApiModelProperty(value = "不同意见情况")
|
||||
private String disagree;
|
||||
|
||||
@ApiModelProperty(value = "赞成票数")
|
||||
private Integer agreeNum;
|
||||
|
||||
@ApiModelProperty(value = "反对票数")
|
||||
private Integer disagreeNum;
|
||||
|
||||
@ApiModelProperty(value = "弃权票数")
|
||||
private Integer abstainNum;
|
||||
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createdName;
|
||||
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updatedName;
|
||||
|
||||
@ApiModelProperty(value = "会议主持人")
|
||||
private String conductorName;
|
||||
|
||||
@ApiModelProperty(value = "提议人")
|
||||
private List<String> proposerNames;
|
||||
|
||||
@ApiModelProperty(value = "议题类型")
|
||||
private List<String> titleTypeNames;
|
||||
|
||||
@ApiModelProperty(value = "提前告知天数")
|
||||
private String daysOfAdvanceNoticeName;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package com.ydool.integrated.dto;
|
||||
|
||||
import com.ydool.integrated.entity.MeetingUser;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class MeetingUserDto extends MeetingUser {
|
||||
|
||||
@ApiModelProperty(value = "参会人员姓名")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty(value = "参会人员决策结果")
|
||||
private String voteResultName;
|
||||
|
||||
}
|
|
@ -1,12 +1,8 @@
|
|||
package com.ydool.integrated.entity;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ydool.common.base.BaseEntity;
|
||||
import java.util.Date;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
@ -14,44 +10,58 @@ import lombok.EqualsAndHashCode;
|
|||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 会议管理(Meeting)表实体类
|
||||
* <p>
|
||||
* 三重一大
|
||||
* </p>
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2023-06-15 09:34:39
|
||||
* @author zhouyuan
|
||||
* @since 2023-08-24
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@TableName("t_integrated_meeting")
|
||||
@ApiModel(value="Meeting对象", description="会议管理")
|
||||
public class Meeting extends BaseEntity implements Serializable {
|
||||
@ApiModel(value="Meeting对象", description="三重一大")
|
||||
public class Meeting extends BaseEntity{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "会议主题")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "参加人员")
|
||||
private String userIds;
|
||||
@ApiModelProperty(value = "议题类型")
|
||||
private String titleType;
|
||||
|
||||
@ApiModelProperty(value = "会议内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "相关附件")
|
||||
private String files;
|
||||
@ApiModelProperty(value = "会议主持人")
|
||||
private String conductor;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 表示返回时间类型
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 表示接收时间类型
|
||||
private LocalDateTime startTime;
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 表示返回时间类型
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 表示接收时间类型
|
||||
private LocalDateTime endTime;
|
||||
private Date endTime;
|
||||
|
||||
}
|
||||
@ApiModelProperty(value = "提议人")
|
||||
private String proposer;
|
||||
|
||||
@ApiModelProperty(value = "提前告知天数")
|
||||
private String daysOfAdvanceNotice;
|
||||
|
||||
@ApiModelProperty(value = "纪检人员是否参加")
|
||||
private Boolean isRegulatoryPersonnelJoin;
|
||||
|
||||
@ApiModelProperty(value = "决策内容")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
|
||||
@ApiModelProperty(value = "是否结束投票")
|
||||
private Boolean isEndVote;
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
package com.ydool.integrated.entity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ydool.common.base.BaseEntity;
|
||||
import java.util.Date;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 三重一大参会人员表
|
||||
* </p>
|
||||
*
|
||||
* @author zhouyuan
|
||||
* @since 2023-08-24
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@TableName("t_integrated_meeting_user")
|
||||
@ApiModel(value="MeetingUser对象", description="三重一大参会人员表")
|
||||
public class MeetingUser extends BaseEntity{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "三重一大")
|
||||
private String meetingId;
|
||||
|
||||
@ApiModelProperty(value = "参会人员")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty(value = "意见")
|
||||
private String voteSuggest;
|
||||
|
||||
@ApiModelProperty(value = "决策时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 表示返回时间类型
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 表示接收时间类型
|
||||
private Date voteTime;
|
||||
|
||||
@ApiModelProperty(value = "决策结果")
|
||||
private String voteResult;
|
||||
|
||||
@ApiModelProperty(value = "决策状态")
|
||||
private Boolean voteStatus;
|
||||
|
||||
}
|
|
@ -1,16 +1,16 @@
|
|||
package com.ydool.integrated.mapper;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.ydool.integrated.entity.Meeting;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 会议管理 Mapper 接口
|
||||
* 三重一大 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhouyuan
|
||||
* @since 2023-05-06
|
||||
* @since 2023-08-24
|
||||
*/
|
||||
@Mapper
|
||||
public interface MeetingMapper extends MPJBaseMapper<Meeting> {
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package com.ydool.integrated.mapper;
|
||||
|
||||
import com.ydool.integrated.entity.MeetingUser;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 三重一大参会人员表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author zhouyuan
|
||||
* @since 2023-08-24
|
||||
*/
|
||||
@Mapper
|
||||
public interface MeetingUserMapper extends MPJBaseMapper<MeetingUser> {
|
||||
|
||||
}
|
|
@ -1,21 +1,26 @@
|
|||
package com.ydool.integrated.service;
|
||||
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ydool.common.base.BaseService;
|
||||
import com.ydool.common.data.dto.AjaxResult;
|
||||
import com.ydool.integrated.entity.Meeting;
|
||||
import com.ydool.integrated.entity.MeetingUser;
|
||||
import com.ydool.integrated.mapper.MeetingMapper;
|
||||
import com.ydool.integrated.vo.IdsVo;
|
||||
import com.ydool.integrated.vo.MeetingUserVo;
|
||||
import com.ydool.integrated.vo.MeetingVo;
|
||||
import com.ydool.integrated.wrapper.MeetingWrapper;
|
||||
import com.ydool.oa.workFlow.data.entity.WorkFlowNotice;
|
||||
import com.ydool.oa.workFlow.service.WorkFlowNoticeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -29,6 +34,12 @@ import java.util.List;
|
|||
@Service
|
||||
public class MeetingService extends BaseService<MeetingMapper, Meeting> {
|
||||
|
||||
@Autowired
|
||||
private MeetingUserService meetingUserService;
|
||||
|
||||
@Autowired
|
||||
private WorkFlowNoticeService workFlowNoticeService;
|
||||
|
||||
/**
|
||||
* 校验
|
||||
*
|
||||
|
@ -37,7 +48,7 @@ public class MeetingService extends BaseService<MeetingMapper, Meeting> {
|
|||
* @return
|
||||
*/
|
||||
private String check(String id, MeetingVo vo) {
|
||||
List<String> userIds = JSONUtil.toList(vo.getUserIds(), String.class);
|
||||
List<String> userIds = vo.getAttendPerson();
|
||||
if (CollUtil.isEmpty(userIds)) return "参加人员不能为空";
|
||||
return null;
|
||||
}
|
||||
|
@ -53,27 +64,48 @@ public class MeetingService extends BaseService<MeetingMapper, Meeting> {
|
|||
String message = check("", vo);
|
||||
if (StrUtil.isNotBlank(message)) return AjaxResult.fail(message);
|
||||
Meeting meeting = BeanUtil.copyProperties(vo, Meeting.class);
|
||||
meeting.setIsEndVote(false);
|
||||
boolean flag = save(meeting);
|
||||
// 保存参加人员
|
||||
List<MeetingUser> meetingUserList = CollUtil.newArrayList();
|
||||
List<WorkFlowNotice> workFlowNoticeList = CollUtil.newArrayList();
|
||||
vo.getAttendPerson().forEach(userId -> {
|
||||
MeetingUser meetingUser = new MeetingUser();
|
||||
meetingUser.setMeetingId(meeting.getId());
|
||||
meetingUser.setUserId(userId);
|
||||
meetingUser.setVoteStatus(false);
|
||||
meetingUserList.add(meetingUser);
|
||||
WorkFlowNotice workFlowNotice = new WorkFlowNotice();
|
||||
workFlowNotice.setUserId(userId);
|
||||
workFlowNotice.setFlowId(meeting.getId());
|
||||
workFlowNotice.setFlowType("meeting");
|
||||
workFlowNotice.setTitle(meeting.getTitle() + "三重一大通知");
|
||||
workFlowNotice.setStatus(false);
|
||||
workFlowNoticeList.add(workFlowNotice);
|
||||
});
|
||||
flag = meetingUserService.saveBatch(meetingUserList);
|
||||
//通知参加人员
|
||||
flag = workFlowNoticeService.saveBatch(workFlowNoticeList);
|
||||
return flag ? AjaxResult.ok().msg("保存成功") : AjaxResult.fail("保存失败");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param id
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public AjaxResult edit(String id, MeetingVo vo) {
|
||||
if (StrUtil.isBlank(id)) return AjaxResult.fail("id不能为空");
|
||||
String message = check(id, vo);
|
||||
if (StrUtil.isNotBlank(message)) return AjaxResult.fail(message);
|
||||
Meeting meeting = getById(id);
|
||||
if (ObjectUtil.isNull(meeting)) return AjaxResult.fail("该数据不存在");
|
||||
BeanUtil.copyProperties(vo, meeting);
|
||||
boolean flag = updateById(meeting);
|
||||
return flag ? AjaxResult.ok().msg("编辑成功") : AjaxResult.fail("编辑失败");
|
||||
}
|
||||
// /**
|
||||
// * 编辑
|
||||
// *
|
||||
// * @param id
|
||||
// * @param vo
|
||||
// * @return
|
||||
// */
|
||||
// public AjaxResult edit(String id, MeetingVo vo) {
|
||||
// if (StrUtil.isBlank(id)) return AjaxResult.fail("id不能为空");
|
||||
// String message = check(id, vo);
|
||||
// if (StrUtil.isNotBlank(message)) return AjaxResult.fail(message);
|
||||
// Meeting meeting = getById(id);
|
||||
// if (ObjectUtil.isNull(meeting)) return AjaxResult.fail("该数据不存在");
|
||||
// BeanUtil.copyProperties(vo, meeting);
|
||||
// boolean flag = updateById(meeting);
|
||||
// return flag ? AjaxResult.ok().msg("编辑成功") : AjaxResult.fail("编辑失败");
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
|
@ -86,28 +118,75 @@ public class MeetingService extends BaseService<MeetingMapper, Meeting> {
|
|||
if (StrUtil.isBlank(id)) return AjaxResult.fail("id不能为空");
|
||||
Meeting meeting = getById(id);
|
||||
if (ObjectUtil.isNull(meeting)) return AjaxResult.fail("该数据不存在");
|
||||
return removeById(id) ? AjaxResult.ok().msg("删除成功") : AjaxResult.fail("删除失败");
|
||||
if (meeting.getIsEndVote()) return AjaxResult.fail("该会议已结束投票,不能删除");
|
||||
boolean flag = removeById(id);
|
||||
// 删除参加人员
|
||||
QueryWrapper<MeetingUser> qw = new QueryWrapper<>();
|
||||
qw.lambda().eq(MeetingUser::getMeetingId, id);
|
||||
flag = meetingUserService.remove(qw);
|
||||
// 删除通知
|
||||
QueryWrapper<WorkFlowNotice> qw1 = new QueryWrapper<>();
|
||||
qw1.lambda().eq(WorkFlowNotice::getFlowId, id).eq(WorkFlowNotice::getFlowType, "meeting");
|
||||
flag = workFlowNoticeService.remove(qw1);
|
||||
return flag ? AjaxResult.ok().msg("删除成功") : AjaxResult.fail("删除失败");
|
||||
}
|
||||
|
||||
/**
|
||||
* 结束投票
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public AjaxResult endVote(String id) {
|
||||
if (StrUtil.isBlank(id)) return AjaxResult.fail("id不能为空");
|
||||
Meeting meeting = getById(id);
|
||||
if (ObjectUtil.isNull(meeting)) return AjaxResult.fail("该数据不存在");
|
||||
if (meeting.getIsEndVote()) return AjaxResult.fail("该会议已结束投票");
|
||||
meeting.setIsEndVote(true);
|
||||
boolean flag = updateById(meeting);
|
||||
return flag ? AjaxResult.ok().msg("结束投票成功") : AjaxResult.fail("结束投票失败");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* 投票
|
||||
*
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public AjaxResult removeBatch(IdsVo vo) {
|
||||
List<String> idList = vo.getIds();
|
||||
if (CollUtil.isEmpty(idList)) {
|
||||
return AjaxResult.fail("Id集合不能为空");
|
||||
}
|
||||
List<Meeting> meetingList = listByIds(idList);
|
||||
if (CollUtil.isEmpty(meetingList)) {
|
||||
return AjaxResult.fail("该数据集合全部不存在");
|
||||
}
|
||||
return removeByIds(idList) ? AjaxResult.ok().msg("批量删除成功") : AjaxResult.fail("批量删除失败");
|
||||
public AjaxResult vote(MeetingUserVo vo) {
|
||||
Meeting meeting = getById(vo.getMeetingId());
|
||||
if (ObjectUtil.isNull(meeting)) return AjaxResult.fail("该数据不存在");
|
||||
if (meeting.getIsEndVote()) return AjaxResult.fail("该会议已结束投票");
|
||||
MeetingUser meetingUser = meetingUserService.getOne(new QueryWrapper<MeetingUser>().lambda().eq(MeetingUser::getMeetingId, vo.getMeetingId()).eq(MeetingUser::getUserId, StpUtil.getLoginIdAsString()));
|
||||
if (ObjectUtil.isNull(meetingUser)) return AjaxResult.fail("你不是参加人员");
|
||||
if (meetingUser.getVoteStatus()) return AjaxResult.fail("你已投票");
|
||||
meetingUser.setVoteStatus(true);
|
||||
meetingUser.setVoteResult(vo.getVoteResult());
|
||||
meetingUser.setVoteSuggest(vo.getVoteSuggest());
|
||||
meetingUser.setVoteTime(new Date(System.currentTimeMillis()));
|
||||
boolean flag = meetingUserService.updateById(meetingUser);
|
||||
return flag ? AjaxResult.ok().msg("投票成功") : AjaxResult.fail("投票失败");
|
||||
}
|
||||
|
||||
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param vo
|
||||
// * @return
|
||||
// */
|
||||
// public AjaxResult removeBatch(IdsVo vo) {
|
||||
// List<String> idList = vo.getIds();
|
||||
// if (CollUtil.isEmpty(idList)) {
|
||||
// return AjaxResult.fail("Id集合不能为空");
|
||||
// }
|
||||
// List<Meeting> meetingList = listByIds(idList);
|
||||
// if (CollUtil.isEmpty(meetingList)) {
|
||||
// return AjaxResult.fail("该数据集合全部不存在");
|
||||
// }
|
||||
// return removeByIds(idList) ? AjaxResult.ok().msg("批量删除成功") : AjaxResult.fail("批量删除失败");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
package com.ydool.integrated.service;
|
||||
|
||||
import com.ydool.common.base.BaseService;
|
||||
import com.ydool.integrated.entity.MeetingUser;
|
||||
import com.ydool.integrated.mapper.MeetingUserMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 三重一大参会人员表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zhouyuan
|
||||
* @since 2023-08-24
|
||||
*/
|
||||
@Service
|
||||
public class MeetingUserService extends BaseService<MeetingUserMapper, MeetingUser> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package com.ydool.integrated.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
@Data
|
||||
public class MeetingUserVo {
|
||||
|
||||
@ApiModelProperty(value = "三重一大")
|
||||
@NotBlank(message = "三重一大不能为空")
|
||||
private String meetingId;
|
||||
|
||||
@ApiModelProperty(value = "意见")
|
||||
private String voteSuggest;
|
||||
|
||||
@ApiModelProperty(value = "决策结果")
|
||||
@NotBlank(message = "决策结果不能为空")
|
||||
private String voteResult;
|
||||
}
|
|
@ -7,37 +7,59 @@ import org.springframework.format.annotation.DateTimeFormat;
|
|||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class MeetingVo {
|
||||
public class MeetingVo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "会议主题", required = true)
|
||||
@ApiModelProperty(value = "会议主题")
|
||||
@NotBlank(message = "会议主题不能为空")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "参加人员", required = true)
|
||||
@NotBlank(message = "参加人员 为空请传[]")
|
||||
private String userIds;
|
||||
@ApiModelProperty(value = "议题类型,按照字典表填写给我value值,多选用[]存放")
|
||||
@NotBlank(message = "议题类型不能为空")
|
||||
private String titleType;
|
||||
|
||||
@ApiModelProperty(value = "会议内容")
|
||||
@NotBlank(message = "会议内容不能为空")
|
||||
private String content;
|
||||
@ApiModelProperty(value = "会议主持人")
|
||||
@NotBlank(message = "会议主持人不能为空")
|
||||
private String conductor;
|
||||
|
||||
@ApiModelProperty(value = "相关附件 为空请传[]", required = true)
|
||||
@NotBlank(message = "相关附件 为空请传[]")
|
||||
private String files;
|
||||
|
||||
@ApiModelProperty(value = "开始时间", required = true)
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 表示返回时间类型
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 表示接收时间类型
|
||||
@NotNull(message = "开始时间不能为空")
|
||||
private LocalDateTime startTime;
|
||||
private Date startTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间", required = true)
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 表示返回时间类型
|
||||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 表示接收时间类型
|
||||
@NotNull(message = "结束时间不能为空")
|
||||
private LocalDateTime endTime;
|
||||
private Date endTime;
|
||||
|
||||
@ApiModelProperty(value = "提议人,多选用[]存放")
|
||||
@NotBlank(message = "提议人不能为空")
|
||||
private String proposer;
|
||||
|
||||
@ApiModelProperty(value = "提前告知天数,按照字典表填写给我value值")
|
||||
@NotBlank(message = "提前告知天数不能为空")
|
||||
private String daysOfAdvanceNotice;
|
||||
|
||||
@ApiModelProperty(value = "纪检人员是否参加")
|
||||
@NotNull(message = "纪检人员是否参加不能为空")
|
||||
private Boolean isRegulatoryPersonnelJoin;
|
||||
|
||||
@ApiModelProperty(value = "决策内容")
|
||||
@NotBlank(message = "决策内容不能为空")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
|
||||
@ApiModelProperty(value = "参会人员")
|
||||
@NotNull(message = "参会人员不能为空")
|
||||
private List<String> attendPerson;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
package com.ydool.integrated.wrapper;
|
||||
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.extra.spring.SpringUtil;
|
||||
import com.ydool.common.base.BaseWrapper;
|
||||
import com.ydool.integrated.dto.MeetingUserDto;
|
||||
import com.ydool.integrated.entity.MeetingUser;
|
||||
import com.ydool.system.entity.User;
|
||||
import com.ydool.system.service.impl.DictDataServiceImpl;
|
||||
import com.ydool.system.service.impl.UserServiceImpl;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.mapstruct.AfterMapping;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.MappingTarget;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
@Mapper
|
||||
public interface MeetingUserWrapper extends BaseWrapper<MeetingUser, MeetingUserDto> {
|
||||
MeetingUserWrapper INSTANCE = Mappers.getMapper(MeetingUserWrapper.class);
|
||||
|
||||
@AfterMapping
|
||||
default void setOtherField(@Param("obj") MeetingUser obj, @MappingTarget @Param("dto") MeetingUserDto dto) {
|
||||
UserServiceImpl userService = SpringUtil.getBean(UserServiceImpl.class);
|
||||
User user = userService.getById(obj.getUserId());
|
||||
if (ObjUtil.isNotNull(user)) {
|
||||
dto.setUserName(user.getUserName());
|
||||
}
|
||||
DictDataServiceImpl dictDataService = SpringUtil.getBean(DictDataServiceImpl.class);
|
||||
String voteResultName = dictDataService.getDictLabel("t_dict_vote_result", obj.getVoteResult());
|
||||
if (StrUtil.isNotBlank(voteResultName)) {
|
||||
dto.setVoteResultName(voteResultName);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,12 +2,19 @@ package com.ydool.integrated.wrapper;
|
|||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.extra.spring.SpringUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ydool.common.base.BaseWrapper;
|
||||
import com.ydool.integrated.dto.MeetingDto;
|
||||
import com.ydool.integrated.dto.MeetingUserDto;
|
||||
import com.ydool.integrated.entity.Meeting;
|
||||
import com.ydool.integrated.entity.MeetingUser;
|
||||
import com.ydool.integrated.service.MeetingUserService;
|
||||
import com.ydool.system.entity.DictData;
|
||||
import com.ydool.system.entity.User;
|
||||
import com.ydool.system.service.impl.DictDataServiceImpl;
|
||||
import com.ydool.system.service.impl.UserServiceImpl;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.mapstruct.AfterMapping;
|
||||
|
@ -16,6 +23,7 @@ import org.mapstruct.MappingTarget;
|
|||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Mapper
|
||||
public interface MeetingWrapper extends BaseWrapper<Meeting, MeetingDto> {
|
||||
|
@ -23,6 +31,9 @@ public interface MeetingWrapper extends BaseWrapper<Meeting, MeetingDto> {
|
|||
|
||||
@AfterMapping
|
||||
default void setOtherField(@Param("obj") Meeting obj, @MappingTarget @Param("dto") MeetingDto dto) {
|
||||
dto.setAgreeNum(0);
|
||||
dto.setDisagreeNum(0);
|
||||
dto.setAbstainNum(0);
|
||||
UserServiceImpl userService = SpringUtil.getBean(UserServiceImpl.class);
|
||||
User createdUser = userService.getById(obj.getCreatedId());
|
||||
if (ObjUtil.isNotNull(createdUser)) {
|
||||
|
@ -32,13 +43,68 @@ public interface MeetingWrapper extends BaseWrapper<Meeting, MeetingDto> {
|
|||
if (ObjUtil.isNotNull(updatedUser)) {
|
||||
dto.setUpdatedName(updatedUser.getUserName());
|
||||
}
|
||||
|
||||
List<String> userIds = JSONUtil.toList(obj.getUserIds(), String.class);
|
||||
if (CollUtil.isNotEmpty(userIds)) {
|
||||
List<User> users = userService.listByIds(userIds);
|
||||
if (CollUtil.isNotEmpty(users)) {
|
||||
dto.setUserList(JSONUtil.toJsonStr(users));
|
||||
User conductorUser = userService.getById(obj.getConductor());
|
||||
if (ObjUtil.isNotNull(conductorUser)) {
|
||||
dto.setConductorName(conductorUser.getUserName());
|
||||
}
|
||||
List<String> proposerIds = JSONUtil.toList(JSONUtil.parseArray(obj.getProposer()), String.class);
|
||||
if (CollUtil.isNotEmpty(proposerIds)) {
|
||||
List<User> proposerUsers = userService.listByIds(proposerIds);
|
||||
if (CollUtil.isNotEmpty(proposerUsers)) {
|
||||
dto.setProposerNames(CollUtil.getFieldValues(proposerUsers, "userName", String.class));
|
||||
}
|
||||
}
|
||||
|
||||
DictDataServiceImpl dictDataService = SpringUtil.getBean(DictDataServiceImpl.class);
|
||||
List<String> titleTypes = JSONUtil.toList(JSONUtil.parseArray(obj.getTitleType()), String.class);
|
||||
if (CollUtil.isNotEmpty(titleTypes)) {
|
||||
List<DictData> titleTypeList = dictDataService.list(new QueryWrapper<DictData>().lambda()
|
||||
.eq(DictData::getDataType, "t_dict_title_type")
|
||||
.in(DictData::getValue, titleTypes)
|
||||
);
|
||||
if (CollUtil.isNotEmpty(titleTypeList)) {
|
||||
dto.setTitleTypeNames(CollUtil.getFieldValues(titleTypeList, "label", String.class));
|
||||
}
|
||||
}
|
||||
String daysOfAdvanceNotice = dictDataService.getDictLabel("t_dict_days_of_advance_notice", obj.getDaysOfAdvanceNotice());
|
||||
if (StrUtil.isNotBlank(daysOfAdvanceNotice)) {
|
||||
dto.setDaysOfAdvanceNoticeName(daysOfAdvanceNotice);
|
||||
}
|
||||
|
||||
MeetingUserService meetingUserService = SpringUtil.getBean(MeetingUserService.class);
|
||||
List<MeetingUser> meetingUserList = meetingUserService.list(new QueryWrapper<MeetingUser>()
|
||||
.lambda()
|
||||
.eq(MeetingUser::getMeetingId, obj.getId())
|
||||
);
|
||||
if (CollUtil.isNotEmpty(meetingUserList)) {
|
||||
dto.setUserList(MeetingUserWrapper.INSTANCE.toDto(meetingUserList));
|
||||
List<MeetingUser> actualUserList = meetingUserList.stream().filter(MeetingUser::getVoteStatus).collect(Collectors.toList());
|
||||
dto.setActualUserList(MeetingUserWrapper.INSTANCE.toDto(actualUserList));
|
||||
List<MeetingUser> notUserList = meetingUserList.stream().filter(meetingUser -> !meetingUser.getVoteStatus()).collect(Collectors.toList());
|
||||
dto.setNotUserList(MeetingUserWrapper.INSTANCE.toDto(notUserList));
|
||||
List<MeetingUserDto> meetingUserDtoList = dto.getActualUserList();
|
||||
if (CollUtil.isNotEmpty(meetingUserDtoList)) {
|
||||
meetingUserDtoList.forEach(meetingUserDto -> {
|
||||
if (StrUtil.isNotBlank(meetingUserDto.getVoteResultName())) {
|
||||
switch (meetingUserDto.getVoteResultName()) {
|
||||
case "赞同":
|
||||
dto.setAgreeNum(dto.getAgreeNum() + 1);
|
||||
break;
|
||||
case "反对":
|
||||
dto.setDisagreeNum(dto.getDisagreeNum() + 1);
|
||||
dto.setDisagree(StrUtil.isNotBlank(dto.getDisagree()) ? dto.getDisagree() + "<br/>" + meetingUserDto.getUserName() + ": " + meetingUserDto.getVoteSuggest() : meetingUserDto.getUserName() + ": " + meetingUserDto.getVoteSuggest());
|
||||
break;
|
||||
case "弃权":
|
||||
dto.setAbstainNum(dto.getAbstainNum() + 1);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -205,5 +205,15 @@ public class DictDataServiceImpl extends BaseService<DictDataMapper, DictData> i
|
|||
if (ObjectUtil.isNotNull(dictData)) return "字典标签不允许重复";
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getDictLabel(String type, String value) {
|
||||
DictData dictData = getOne(new QueryWrapper<DictData>().lambda()
|
||||
.eq(DictData::getDataType, type)
|
||||
.eq(DictData::getValue, value)
|
||||
.last("limit 1")
|
||||
);
|
||||
if (ObjectUtil.isNull(dictData)) return "";
|
||||
return dictData.getLabel();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
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
|
@ -1 +1 @@
|
|||
import{f as g,h,ag as v,o as n,S as D,T as w,a as e,U as _,Z as V,Y as r,c,a7 as b,F as k,a0 as B}from"./@vue-5dd246aa.js";import{h as x}from"./index-a7249baf.js";import{_ as C}from"./_plugin-vue_export-helper-c27b6911.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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={class:"notification-detail"},y=["innerHTML"],T={class:"notification-detail-files"},U=["onClick"],F={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{}},emits:["update:dialogVisible"],setup(a,{emit:m}){const d=a,l=g(!1),p=o=>{x.downloadFile("/api/alteration/download",{params:{fileName:o.name,path:o.path},responseType:"blob"}).then(i=>{const s=window.URL.createObjectURL(i),t=document.createElement("a");t.download=o.name,t.href=s,t.click()})},u=o=>{m("update:dialogVisible",!1),o()};return h(()=>d.dialogVisible,()=>{d.dialogVisible&&(l.value=!0)},{immediate:!0}),(o,i)=>{const s=v("el-dialog");return n(),D(s,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=t=>l.value=t),title:"通知查看",width:"60%","before-close":u},{default:w(()=>[e("div",L,[_(e("div",{class:"notification-time"},r(a.dialogData.updatedAt),513),[[V,a.dialogData.updatedAt]]),e("h3",null,r(a.dialogData.title),1),e("div",{innerHTML:a.dialogData.content,class:"notification-detail-content"},null,8,y),e("div",T,[(n(!0),c(k,null,b(a.dialogData.files,(t,f)=>(n(),c("span",{class:"fileBox",key:f,onClick:B(M=>p(t),["stop"])},[e("span",null,r(t.name),1)],8,U))),128))])])]),_:1},8,["modelValue"])}}},lt=C(F,[["__scopeId","data-v-f20c7488"]]);export{lt as default};
|
||||
import{f as g,h,ag as v,o as n,S as D,T as w,a as e,U as _,Z as V,Y as r,c,a7 as b,F as k,a0 as B}from"./@vue-5dd246aa.js";import{h as x}from"./index-34e93722.js";import{_ as C}from"./_plugin-vue_export-helper-c27b6911.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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={class:"notification-detail"},y=["innerHTML"],T={class:"notification-detail-files"},U=["onClick"],F={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{}},emits:["update:dialogVisible"],setup(a,{emit:m}){const d=a,l=g(!1),p=o=>{x.downloadFile("/api/alteration/download",{params:{fileName:o.name,path:o.path},responseType:"blob"}).then(i=>{const s=window.URL.createObjectURL(i),t=document.createElement("a");t.download=o.name,t.href=s,t.click()})},u=o=>{m("update:dialogVisible",!1),o()};return h(()=>d.dialogVisible,()=>{d.dialogVisible&&(l.value=!0)},{immediate:!0}),(o,i)=>{const s=v("el-dialog");return n(),D(s,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=t=>l.value=t),title:"通知查看",width:"60%","before-close":u},{default:w(()=>[e("div",L,[_(e("div",{class:"notification-time"},r(a.dialogData.updatedAt),513),[[V,a.dialogData.updatedAt]]),e("h3",null,r(a.dialogData.title),1),e("div",{innerHTML:a.dialogData.content,class:"notification-detail-content"},null,8,y),e("div",T,[(n(!0),c(k,null,b(a.dialogData.files,(t,f)=>(n(),c("span",{class:"fileBox",key:f,onClick:B(M=>p(t),["stop"])},[e("span",null,r(t.name),1)],8,U))),128))])])]),_:1},8,["modelValue"])}}},lt=C(F,[["__scopeId","data-v-f20c7488"]]);export{lt as default};
|
|
@ -1 +1 @@
|
|||
System.register(["./@vue-legacy-4de3d5b5.js","./index-legacy-df0795e1.js","./_plugin-vue_export-helper-legacy-762b7923.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./vue-router-legacy-1e8e1d15.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-efe0366d.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@element-plus-legacy-bb874362.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.js","./core-js-legacy-b197ddf1.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(l,e){"use strict";var a,n,t,i,s,o,c,u,d,g,y,j,r,p,m,f;return{setters:[l=>{a=l.f,n=l.h,t=l.ag,i=l.o,s=l.S,o=l.T,c=l.a,u=l.U,d=l.Z,g=l.Y,y=l.c,j=l.a7,r=l.F,p=l.a0},l=>{m=l.h},l=>{f=l._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const e={class:"notification-detail"},v=["innerHTML"],h={class:"notification-detail-files"},b=["onClick"],w={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{}},emits:["update:dialogVisible"],setup(l,{emit:f}){const w=l,D=a(!1),V=l=>{f("update:dialogVisible",!1),l()};return n((()=>w.dialogVisible),(()=>{w.dialogVisible&&(D.value=!0)}),{immediate:!0}),(a,n)=>{const f=t("el-dialog");return i(),s(f,{modelValue:D.value,"onUpdate:modelValue":n[0]||(n[0]=l=>D.value=l),title:"通知查看",width:"60%","before-close":V},{default:o((()=>[c("div",e,[u(c("div",{class:"notification-time"},g(l.dialogData.updatedAt),513),[[d,l.dialogData.updatedAt]]),c("h3",null,g(l.dialogData.title),1),c("div",{innerHTML:l.dialogData.content,class:"notification-detail-content"},null,8,v),c("div",h,[(i(!0),y(r,null,j(l.dialogData.files,((l,e)=>(i(),y("span",{class:"fileBox",key:e,onClick:p((e=>(l=>{m.downloadFile("/api/alteration/download",{params:{fileName:l.name,path:l.path},responseType:"blob"}).then((e=>{const a=window.URL.createObjectURL(e),n=document.createElement("a");n.download=l.name,n.href=a,n.click()}))})(l)),["stop"])},[c("span",null,g(l.name),1)],8,b)))),128))])])])),_:1},8,["modelValue"])}}};l("default",f(w,[["__scopeId","data-v-f20c7488"]]))}}}));
|
||||
System.register(["./@vue-legacy-4de3d5b5.js","./index-legacy-5d2946de.js","./_plugin-vue_export-helper-legacy-762b7923.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./vue-router-legacy-1e8e1d15.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-efe0366d.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@element-plus-legacy-bb874362.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.js","./core-js-legacy-b197ddf1.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(l,e){"use strict";var a,n,t,i,s,o,c,u,d,g,y,j,r,p,m,f;return{setters:[l=>{a=l.f,n=l.h,t=l.ag,i=l.o,s=l.S,o=l.T,c=l.a,u=l.U,d=l.Z,g=l.Y,y=l.c,j=l.a7,r=l.F,p=l.a0},l=>{m=l.h},l=>{f=l._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const e={class:"notification-detail"},v=["innerHTML"],h={class:"notification-detail-files"},b=["onClick"],w={__name:"DetailDialog",props:{dialogVisible:{type:Boolean},dialogData:{}},emits:["update:dialogVisible"],setup(l,{emit:f}){const w=l,D=a(!1),V=l=>{f("update:dialogVisible",!1),l()};return n((()=>w.dialogVisible),(()=>{w.dialogVisible&&(D.value=!0)}),{immediate:!0}),(a,n)=>{const f=t("el-dialog");return i(),s(f,{modelValue:D.value,"onUpdate:modelValue":n[0]||(n[0]=l=>D.value=l),title:"通知查看",width:"60%","before-close":V},{default:o((()=>[c("div",e,[u(c("div",{class:"notification-time"},g(l.dialogData.updatedAt),513),[[d,l.dialogData.updatedAt]]),c("h3",null,g(l.dialogData.title),1),c("div",{innerHTML:l.dialogData.content,class:"notification-detail-content"},null,8,v),c("div",h,[(i(!0),y(r,null,j(l.dialogData.files,((l,e)=>(i(),y("span",{class:"fileBox",key:e,onClick:p((e=>(l=>{m.downloadFile("/api/alteration/download",{params:{fileName:l.name,path:l.path},responseType:"blob"}).then((e=>{const a=window.URL.createObjectURL(e),n=document.createElement("a");n.download=l.name,n.href=a,n.click()}))})(l)),["stop"])},[c("span",null,g(l.name),1)],8,b)))),128))])])])),_:1},8,["modelValue"])}}};l("default",f(w,[["__scopeId","data-v-f20c7488"]]))}}}));
|
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
|
@ -1 +1 @@
|
|||
import T from"./Upload-307df2df.js";import{h as _}from"./index-a7249baf.js";import{c as $}from"./lodash.clonedeep-2f114c62.js";import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import{E as f}from"./element-plus-a215fcb5.js";import{l as v,f as p,a1 as J,k as M,ag as d,o as x,S as D,T as o,a as g,X as C,W as j,d as t,u as b,O as z}from"./@vue-5dd246aa.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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:"tab-content"},P={class:"dialog-footer"},W={__name:"DocumentDialog",emits:["init"],setup(X,{expose:U,emit:V}){const c=v(()=>!["create","edit"].includes(u.value));v(()=>u==="create"),v(()=>u==="edit");const k=p();let N={files:[],remarks:void 0,serialNumber:"",title:""};const l=p({...N}),F=J({title:[{required:!0,message:"请输入标题",trigger:"blur"}],serialNumber:[{required:!0,message:"请输入编号",trigger:"blur"}],files:[{required:!0,message:"请上传文件",trigger:"blur"}]}),r=p(!1),u=p(""),y=p(""),S=(i,e)=>{i==="create"?(r.value=!r.value,u.value="create",l.value=$(N)):(i==="edit"||i==="check")&&_.get("/api/document/detail",{id:e}).then(s=>{r.value=!r.value,l.value={files:JSON.parse(s.data.files),remarks:s.data.remarks,serialNumber:s.data.serialNumber,title:s.data.title},y.value=e,u.value=i})},q=async i=>{i&&await i.validate(async(e,s)=>{if(e){let m={...l.value,files:JSON.stringify(l.value.files)};if(u.value==="create"){let n=await _.post("/api/document/save",m);n.code==200?(f({message:"新增成功",type:"success"}),r.value=!1,V("init")):f.error(n.message)}else{let n=await _.put(`/api/document/edit?id=${y.value}`,m);n.code==200?(f({message:"修改成功",type:"success"}),r.value=!1,V("init")):f.error(n.message)}}})};return M(()=>{}),U({changeDialog:S}),(i,e)=>{const s=d("el-input"),m=d("el-form-item"),n=d("el-col"),B=d("el-row"),O=d("el-form"),w=d("el-button"),R=d("el-dialog");return x(),D(R,{modelValue:r.value,"onUpdate:modelValue":e[6]||(e[6]=a=>r.value=a),title:"文件管理",width:"60%"},{footer:o(()=>[g("span",P,[g("div",null,[u.value!="check"?(x(),D(w,{key:0,type:"primary",onClick:e[4]||(e[4]=a=>q(k.value))},{default:o(()=>[C("保存")]),_:1})):j("",!0),t(w,{onClick:e[5]||(e[5]=a=>r.value=!1)},{default:o(()=>[C("关闭")]),_:1})])])]),default:o(()=>[g("div",E,[t(O,{ref_key:"ruleFormRef",ref:k,model:l.value,rules:F,"label-width":"180px",disabled:b(c),class:z(b(c)?"el-form-diabled":"")},{default:o(()=>[t(B,null,{default:o(()=>[t(n,{span:24},{default:o(()=>[t(m,{label:"标题:",prop:"title"},{default:o(()=>[t(s,{modelValue:l.value.title,"onUpdate:modelValue":e[0]||(e[0]=a=>l.value.title=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"编号:",prop:"serialNumber"},{default:o(()=>[t(s,{modelValue:l.value.serialNumber,"onUpdate:modelValue":e[1]||(e[1]=a=>l.value.serialNumber=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"备注:",prop:"remarks"},{default:o(()=>[t(s,{modelValue:l.value.remarks,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value.remarks=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"相关附件:",class:"form-item-upload",prop:"files"},{default:o(()=>[t(T,{modelValue:l.value.files,"onUpdate:modelValue":e[3]||(e[3]=a=>l.value.files=a),disabled:b(c)},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},ke=I(W,[["__scopeId","data-v-a8454a5e"]]);export{ke as default};
|
||||
import T from"./Upload-196c300d.js";import{h as _}from"./index-34e93722.js";import{c as $}from"./lodash.clonedeep-2f114c62.js";import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import{E as f}from"./element-plus-a215fcb5.js";import{l as v,f as p,a1 as J,k as M,ag as d,o as x,S as D,T as o,a as g,X as C,W as j,d as t,u as b,O as z}from"./@vue-5dd246aa.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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:"tab-content"},P={class:"dialog-footer"},W={__name:"DocumentDialog",emits:["init"],setup(X,{expose:U,emit:V}){const c=v(()=>!["create","edit"].includes(u.value));v(()=>u==="create"),v(()=>u==="edit");const k=p();let N={files:[],remarks:void 0,serialNumber:"",title:""};const l=p({...N}),F=J({title:[{required:!0,message:"请输入标题",trigger:"blur"}],serialNumber:[{required:!0,message:"请输入编号",trigger:"blur"}],files:[{required:!0,message:"请上传文件",trigger:"blur"}]}),r=p(!1),u=p(""),y=p(""),S=(i,e)=>{i==="create"?(r.value=!r.value,u.value="create",l.value=$(N)):(i==="edit"||i==="check")&&_.get("/api/document/detail",{id:e}).then(s=>{r.value=!r.value,l.value={files:JSON.parse(s.data.files),remarks:s.data.remarks,serialNumber:s.data.serialNumber,title:s.data.title},y.value=e,u.value=i})},q=async i=>{i&&await i.validate(async(e,s)=>{if(e){let m={...l.value,files:JSON.stringify(l.value.files)};if(u.value==="create"){let n=await _.post("/api/document/save",m);n.code==200?(f({message:"新增成功",type:"success"}),r.value=!1,V("init")):f.error(n.message)}else{let n=await _.put(`/api/document/edit?id=${y.value}`,m);n.code==200?(f({message:"修改成功",type:"success"}),r.value=!1,V("init")):f.error(n.message)}}})};return M(()=>{}),U({changeDialog:S}),(i,e)=>{const s=d("el-input"),m=d("el-form-item"),n=d("el-col"),B=d("el-row"),O=d("el-form"),w=d("el-button"),R=d("el-dialog");return x(),D(R,{modelValue:r.value,"onUpdate:modelValue":e[6]||(e[6]=a=>r.value=a),title:"文件管理",width:"60%"},{footer:o(()=>[g("span",P,[g("div",null,[u.value!="check"?(x(),D(w,{key:0,type:"primary",onClick:e[4]||(e[4]=a=>q(k.value))},{default:o(()=>[C("保存")]),_:1})):j("",!0),t(w,{onClick:e[5]||(e[5]=a=>r.value=!1)},{default:o(()=>[C("关闭")]),_:1})])])]),default:o(()=>[g("div",E,[t(O,{ref_key:"ruleFormRef",ref:k,model:l.value,rules:F,"label-width":"180px",disabled:b(c),class:z(b(c)?"el-form-diabled":"")},{default:o(()=>[t(B,null,{default:o(()=>[t(n,{span:24},{default:o(()=>[t(m,{label:"标题:",prop:"title"},{default:o(()=>[t(s,{modelValue:l.value.title,"onUpdate:modelValue":e[0]||(e[0]=a=>l.value.title=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"编号:",prop:"serialNumber"},{default:o(()=>[t(s,{modelValue:l.value.serialNumber,"onUpdate:modelValue":e[1]||(e[1]=a=>l.value.serialNumber=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"备注:",prop:"remarks"},{default:o(()=>[t(s,{modelValue:l.value.remarks,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value.remarks=a)},null,8,["modelValue"])]),_:1}),t(m,{label:"相关附件:",class:"form-item-upload",prop:"files"},{default:o(()=>[t(T,{modelValue:l.value.files,"onUpdate:modelValue":e[3]||(e[3]=a=>l.value.files=a),disabled:b(c)},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},ke=I(W,[["__scopeId","data-v-a8454a5e"]]);export{ke as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{h as v}from"./index-a7249baf.js";import{c as g}from"./lodash.clonedeep-2f114c62.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as p,o as u,c as b,d as s,T as a,a as j,X as _,F as A,a7 as F,S as M,Y as q}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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,d=r(!1),l=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(),m=r(!1),n=r([]),f=()=>{d.value=!1,x("update:dialogVisible",!1),n.value=g(l.value),c.value=!1,m.value=!1},y=e=>{f(),e()},T=()=>{v.export("/api/person/export",{ids:n.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=>{n.value=e?l.value:[],m.value=!1},S=e=>{const t=e.length;c.value=t===l.value.length,m.value=t>0&&t<l.value.length};I(()=>C.dialogVisible,e=>{d.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(l.value=e.data,n.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=p("el-checkbox"),B=p("el-checkbox-group"),D=p("el-form"),h=p("el-button"),N=p("el-dialog");return u(),b("div",z,[s(N,{modelValue:d.value,"onUpdate:modelValue":t[2]||(t[2]=o=>d.value=o),title:"导出选项",width:"36%","before-close":y},{footer:a(()=>[j("span",G,[s(h,{onClick:T},{default:a(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:a(()=>[_("关闭")]),_:1})])]),default:a(()=>[s(D,null,{default:a(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=o=>c.value=o),label:"全选",class:"is-checked-all",size:"large",indeterminate:m.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=o=>n.value=o),onChange:S},{default:a(()=>[(u(!0),b(A,null,F(l.value,(o,U)=>(u(),M(i,{class:"el-checkbox-width",label:o,key:U},{default:a(()=>[_(q(V.value[o]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},ve=R(O,[["__scopeId","data-v-e0be88eb"]]);export{ve as default};
|
||||
import{h as v}from"./index-34e93722.js";import{c as g}from"./lodash.clonedeep-2f114c62.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as p,o as u,c as b,d as s,T as a,a as j,X as _,F as A,a7 as F,S as M,Y as q}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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,d=r(!1),l=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(),m=r(!1),n=r([]),f=()=>{d.value=!1,x("update:dialogVisible",!1),n.value=g(l.value),c.value=!1,m.value=!1},y=e=>{f(),e()},T=()=>{v.export("/api/person/export",{ids:n.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=>{n.value=e?l.value:[],m.value=!1},S=e=>{const t=e.length;c.value=t===l.value.length,m.value=t>0&&t<l.value.length};I(()=>C.dialogVisible,e=>{d.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(l.value=e.data,n.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=p("el-checkbox"),B=p("el-checkbox-group"),D=p("el-form"),h=p("el-button"),N=p("el-dialog");return u(),b("div",z,[s(N,{modelValue:d.value,"onUpdate:modelValue":t[2]||(t[2]=o=>d.value=o),title:"导出选项",width:"36%","before-close":y},{footer:a(()=>[j("span",G,[s(h,{onClick:T},{default:a(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:a(()=>[_("关闭")]),_:1})])]),default:a(()=>[s(D,null,{default:a(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=o=>c.value=o),label:"全选",class:"is-checked-all",size:"large",indeterminate:m.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=o=>n.value=o),onChange:S},{default:a(()=>[(u(!0),b(A,null,F(l.value,(o,U)=>(u(),M(i,{class:"el-checkbox-width",label:o,key:U},{default:a(()=>[_(q(V.value[o]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},ve=R(O,[["__scopeId","data-v-e0be88eb"]]);export{ve as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{h as v}from"./index-a7249baf.js";import{c as X}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";import{t as G}from"./tools-0351b48a.js";import{E as D}from"./element-plus-a215fcb5.js";import{l as y,f as i,a1 as H,k as J,ag as r,o as f,S as g,T as a,a as k,X as C,W as R,d as s,u,O as T,c as K,a7 as Q,F as Y}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./core-js-c6c47c20.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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:"tab-content"},ee={class:"dialog-footer"},te={__name:"FoodDialog",emits:["init"],setup(oe,{expose:B,emit:N}){const U=G.data.get("identity"),V=y(()=>!["create","edit","rk","ck"].includes(d.value));y(()=>d.value==="create");const _=y(()=>d.value==="ck"||d.value==="rk"),I=i();let F={deptId:void 0,foodTypeId:void 0,amount:0};const l=i({...F}),q=H({foodTypeId:[{required:!0,message:"请输入粮食类型",trigger:"blur"}],amount:[{required:!0,message:"请输入库存",trigger:"blur"}],deptId:[{required:!0,message:"请输入粮仓类型",trigger:"blur"}]}),n=i(!1),d=i(""),E=i(""),z=(t,e)=>{t==="create"?(n.value=!n.value,d.value="create",l.value=X(F)):(t==="rk"||t==="ck"||t==="check")&&v.get("/api/foodReserves/detail",{id:e}).then(p=>{n.value=!n.value,l.value={deptId:p.data.deptId,foodTypeId:p.data.foodTypeId,amount:t==="check"?p.data.amount:0},E.value=e,d.value=t})},L=async t=>{t&&await t.validate(async(e,p)=>{if(e){let m={...l.value},b={create:"add",rk:"warehousing",ck:"out_of_stock"};m.operationType=b[d.value];let c=await v.post("/api/foodReserves/operation",m);c.code==200?(D({message:c.message,type:"success"}),n.value=!1,N("init")):D.error(c.message)}})},h=i([]),M=()=>{v.get("/api/foodType/page",{size:999999,current:1}).then(t=>{t.code==200&&(h.value=t.data.records)})},w=i([]),P=()=>{v.get("/api/dept/tree").then(t=>{t.code==200&&(w.value=t.data.data)})};return J(()=>{M(),P()}),B({changeDialog:z}),(t,e)=>{const p=r("el-tree-select"),m=r("el-form-item"),b=r("el-option"),c=r("el-select"),S=r("el-input"),$=r("el-col"),j=r("el-row"),O=r("el-form"),x=r("el-button"),W=r("el-dialog");return f(),g(W,{modelValue:n.value,"onUpdate:modelValue":e[5]||(e[5]=o=>n.value=o),title:"粮食库存",width:"40%"},{footer:a(()=>[k("span",ee,[k("div",null,[d.value!="check"?(f(),g(x,{key:0,type:"primary",onClick:e[3]||(e[3]=o=>L(I.value))},{default:a(()=>[C("保存")]),_:1})):R("",!0),s(x,{onClick:e[4]||(e[4]=o=>n.value=!1)},{default:a(()=>[C("关闭")]),_:1})])])]),default:a(()=>[k("div",Z,[s(O,{ref_key:"ruleFormRef",ref:I,model:l.value,rules:q,"label-width":"180px",disabled:u(V),class:T(u(V)?"el-form-diabled":"")},{default:a(()=>[s(j,null,{default:a(()=>[s($,{span:24},{default:a(()=>[u(U).isLeader?(f(),g(m,{key:0,label:"粮仓类型:",prop:"deptId",class:T(u(_)?"form-item-diabled":"")},{default:a(()=>[s(p,{modelValue:l.value.deptId,"onUpdate:modelValue":e[0]||(e[0]=o=>l.value.deptId=o),data:w.value,clearable:"","check-strictly":"",placeholder:"请选择","render-after-expand":!1,disabled:u(_)},null,8,["modelValue","data","disabled"])]),_:1},8,["class"])):R("",!0),s(m,{label:"粮食类型:",prop:"foodTypeId",class:T(u(_)?"form-item-diabled":"")},{default:a(()=>[s(c,{modelValue:l.value.foodTypeId,"onUpdate:modelValue":e[1]||(e[1]=o=>l.value.foodTypeId=o),placeholder:"请选择",disabled:u(_)},{default:a(()=>[(f(!0),K(Y,null,Q(h.value,o=>(f(),g(b,{label:o.type,value:o.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"]),s(m,{label:d.value=="create"?"库存:":"变更库存:",prop:"amount"},{default:a(()=>[s(S,{modelValue:l.value.amount,"onUpdate:modelValue":e[2]||(e[2]=o=>l.value.amount=o),type:"number",oninput:"value=value.replace(/^0+(\\d)|[^\\d]+/g,'')",min:"0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},Be=A(te,[["__scopeId","data-v-9f2db06e"]]);export{Be as default};
|
||||
import{h as v}from"./index-34e93722.js";import{c as X}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";import{t as G}from"./tools-0351b48a.js";import{E as D}from"./element-plus-a215fcb5.js";import{l as y,f as i,a1 as H,k as J,ag as r,o as f,S as g,T as a,a as k,X as C,W as R,d as s,u,O as T,c as K,a7 as Q,F as Y}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./core-js-c6c47c20.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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:"tab-content"},ee={class:"dialog-footer"},te={__name:"FoodDialog",emits:["init"],setup(oe,{expose:B,emit:N}){const U=G.data.get("identity"),V=y(()=>!["create","edit","rk","ck"].includes(d.value));y(()=>d.value==="create");const _=y(()=>d.value==="ck"||d.value==="rk"),I=i();let F={deptId:void 0,foodTypeId:void 0,amount:0};const l=i({...F}),q=H({foodTypeId:[{required:!0,message:"请输入粮食类型",trigger:"blur"}],amount:[{required:!0,message:"请输入库存",trigger:"blur"}],deptId:[{required:!0,message:"请输入粮仓类型",trigger:"blur"}]}),n=i(!1),d=i(""),E=i(""),z=(t,e)=>{t==="create"?(n.value=!n.value,d.value="create",l.value=X(F)):(t==="rk"||t==="ck"||t==="check")&&v.get("/api/foodReserves/detail",{id:e}).then(p=>{n.value=!n.value,l.value={deptId:p.data.deptId,foodTypeId:p.data.foodTypeId,amount:t==="check"?p.data.amount:0},E.value=e,d.value=t})},L=async t=>{t&&await t.validate(async(e,p)=>{if(e){let m={...l.value},b={create:"add",rk:"warehousing",ck:"out_of_stock"};m.operationType=b[d.value];let c=await v.post("/api/foodReserves/operation",m);c.code==200?(D({message:c.message,type:"success"}),n.value=!1,N("init")):D.error(c.message)}})},h=i([]),M=()=>{v.get("/api/foodType/page",{size:999999,current:1}).then(t=>{t.code==200&&(h.value=t.data.records)})},w=i([]),P=()=>{v.get("/api/dept/tree").then(t=>{t.code==200&&(w.value=t.data.data)})};return J(()=>{M(),P()}),B({changeDialog:z}),(t,e)=>{const p=r("el-tree-select"),m=r("el-form-item"),b=r("el-option"),c=r("el-select"),S=r("el-input"),$=r("el-col"),j=r("el-row"),O=r("el-form"),x=r("el-button"),W=r("el-dialog");return f(),g(W,{modelValue:n.value,"onUpdate:modelValue":e[5]||(e[5]=o=>n.value=o),title:"粮食库存",width:"40%"},{footer:a(()=>[k("span",ee,[k("div",null,[d.value!="check"?(f(),g(x,{key:0,type:"primary",onClick:e[3]||(e[3]=o=>L(I.value))},{default:a(()=>[C("保存")]),_:1})):R("",!0),s(x,{onClick:e[4]||(e[4]=o=>n.value=!1)},{default:a(()=>[C("关闭")]),_:1})])])]),default:a(()=>[k("div",Z,[s(O,{ref_key:"ruleFormRef",ref:I,model:l.value,rules:q,"label-width":"180px",disabled:u(V),class:T(u(V)?"el-form-diabled":"")},{default:a(()=>[s(j,null,{default:a(()=>[s($,{span:24},{default:a(()=>[u(U).isLeader?(f(),g(m,{key:0,label:"粮仓类型:",prop:"deptId",class:T(u(_)?"form-item-diabled":"")},{default:a(()=>[s(p,{modelValue:l.value.deptId,"onUpdate:modelValue":e[0]||(e[0]=o=>l.value.deptId=o),data:w.value,clearable:"","check-strictly":"",placeholder:"请选择","render-after-expand":!1,disabled:u(_)},null,8,["modelValue","data","disabled"])]),_:1},8,["class"])):R("",!0),s(m,{label:"粮食类型:",prop:"foodTypeId",class:T(u(_)?"form-item-diabled":"")},{default:a(()=>[s(c,{modelValue:l.value.foodTypeId,"onUpdate:modelValue":e[1]||(e[1]=o=>l.value.foodTypeId=o),placeholder:"请选择",disabled:u(_)},{default:a(()=>[(f(!0),K(Y,null,Q(h.value,o=>(f(),g(b,{label:o.type,value:o.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"]),s(m,{label:d.value=="create"?"库存:":"变更库存:",prop:"amount"},{default:a(()=>[s(S,{modelValue:l.value.amount,"onUpdate:modelValue":e[2]||(e[2]=o=>l.value.amount=o),type:"number",oninput:"value=value.replace(/^0+(\\d)|[^\\d]+/g,'')",min:"0"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},Be=A(te,[["__scopeId","data-v-9f2db06e"]]);export{Be as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{h as f}from"./index-a7249baf.js";import{c as M}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as S}from"./_plugin-vue_export-helper-c27b6911.js";import{E as c}from"./element-plus-a215fcb5.js";import{l as _,f as p,a1 as U,k as j,ag as s,o as T,S as x,T as l,a as v,X as F,W as q,d as n,u as C,O as z}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./core-js-c6c47c20.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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:"tab-content"},O={class:"dialog-footer"},P={__name:"FoodTypeDialog",emits:["init"],setup(W,{expose:h,emit:g}){const y=_(()=>!["create","edit"].includes(a.value));_(()=>a.value==="create"),_(()=>a.value==="edit");const b=p();let V={type:""};const i=p({...V}),D=U({type:[{required:!0,message:"请输入粮食类型",trigger:"blur"}]}),t=p(!1),a=p(""),k=p(""),N=(o,e)=>{o==="create"?(t.value=!t.value,a.value="create",i.value=M(V)):(o==="edit"||o==="check")&&f.get("/api/foodType/detail",{id:e}).then(m=>{t.value=!t.value,i.value={type:m.data.type},k.value=e,a.value=o})},B=async o=>{o&&await o.validate(async(e,m)=>{if(e){let d={...i.value};if(a.value==="create"){let r=await f.post("/api/foodType/save",d);r.code==200?(c({message:"新增成功",type:"success"}),t.value=!1,g("init")):c.error(r.message)}else{let r=await f.put(`/api/foodType/edit?id=${k.value}`,d);r.code==200?(c({message:"修改成功",type:"success"}),t.value=!1,g("init")):c.error(r.message)}}})};return j(()=>{}),h({changeDialog:N}),(o,e)=>{const m=s("el-input"),d=s("el-form-item"),r=s("el-col"),R=s("el-row"),$=s("el-form"),w=s("el-button"),I=s("el-dialog");return T(),x(I,{modelValue:t.value,"onUpdate:modelValue":e[3]||(e[3]=u=>t.value=u),title:"粮食类型",width:"40%"},{footer:l(()=>[v("span",O,[v("div",null,[a.value!="check"?(T(),x(w,{key:0,type:"primary",onClick:e[1]||(e[1]=u=>B(b.value))},{default:l(()=>[F("保存")]),_:1})):q("",!0),n(w,{onClick:e[2]||(e[2]=u=>t.value=!1)},{default:l(()=>[F("关闭")]),_:1})])])]),default:l(()=>[v("div",E,[n($,{ref_key:"ruleFormRef",ref:b,model:i.value,rules:D,"label-width":"180px",disabled:C(y),class:z(C(y)?"el-form-diabled":"")},{default:l(()=>[n(R,null,{default:l(()=>[n(r,{span:24},{default:l(()=>[n(d,{label:"粮食类型:",prop:"type"},{default:l(()=>[n(m,{modelValue:i.value.type,"onUpdate:modelValue":e[0]||(e[0]=u=>i.value.type=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},ye=S(P,[["__scopeId","data-v-82a014d8"]]);export{ye as default};
|
||||
import{h as f}from"./index-34e93722.js";import{c as M}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as S}from"./_plugin-vue_export-helper-c27b6911.js";import{E as c}from"./element-plus-a215fcb5.js";import{l as _,f as p,a1 as U,k as j,ag as s,o as T,S as x,T as l,a as v,X as F,W as q,d as n,u as C,O as z}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./core-js-c6c47c20.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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:"tab-content"},O={class:"dialog-footer"},P={__name:"FoodTypeDialog",emits:["init"],setup(W,{expose:h,emit:g}){const y=_(()=>!["create","edit"].includes(a.value));_(()=>a.value==="create"),_(()=>a.value==="edit");const b=p();let V={type:""};const i=p({...V}),D=U({type:[{required:!0,message:"请输入粮食类型",trigger:"blur"}]}),t=p(!1),a=p(""),k=p(""),N=(o,e)=>{o==="create"?(t.value=!t.value,a.value="create",i.value=M(V)):(o==="edit"||o==="check")&&f.get("/api/foodType/detail",{id:e}).then(m=>{t.value=!t.value,i.value={type:m.data.type},k.value=e,a.value=o})},B=async o=>{o&&await o.validate(async(e,m)=>{if(e){let d={...i.value};if(a.value==="create"){let r=await f.post("/api/foodType/save",d);r.code==200?(c({message:"新增成功",type:"success"}),t.value=!1,g("init")):c.error(r.message)}else{let r=await f.put(`/api/foodType/edit?id=${k.value}`,d);r.code==200?(c({message:"修改成功",type:"success"}),t.value=!1,g("init")):c.error(r.message)}}})};return j(()=>{}),h({changeDialog:N}),(o,e)=>{const m=s("el-input"),d=s("el-form-item"),r=s("el-col"),R=s("el-row"),$=s("el-form"),w=s("el-button"),I=s("el-dialog");return T(),x(I,{modelValue:t.value,"onUpdate:modelValue":e[3]||(e[3]=u=>t.value=u),title:"粮食类型",width:"40%"},{footer:l(()=>[v("span",O,[v("div",null,[a.value!="check"?(T(),x(w,{key:0,type:"primary",onClick:e[1]||(e[1]=u=>B(b.value))},{default:l(()=>[F("保存")]),_:1})):q("",!0),n(w,{onClick:e[2]||(e[2]=u=>t.value=!1)},{default:l(()=>[F("关闭")]),_:1})])])]),default:l(()=>[v("div",E,[n($,{ref_key:"ruleFormRef",ref:b,model:i.value,rules:D,"label-width":"180px",disabled:C(y),class:z(C(y)?"el-form-diabled":"")},{default:l(()=>[n(R,null,{default:l(()=>[n(r,{span:24},{default:l(()=>[n(d,{label:"粮食类型:",prop:"type"},{default:l(()=>[n(m,{modelValue:i.value.type,"onUpdate:modelValue":e[0]||(e[0]=u=>i.value.type=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","class"])])]),_:1},8,["modelValue"])}}},ye=S(P,[["__scopeId","data-v-82a014d8"]]);export{ye 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
|
@ -0,0 +1 @@
|
|||
import{f as v,h as y,ag as u,o,S as V,T as s,d as t,a as b,Y as r,P as g,c as d,W as N}from"./@vue-5dd246aa.js";const h={key:0,style:{color:"#67c23a"}},R={key:1,style:{color:"#f56c6c"}},k={key:2,style:{color:"#909399"}},x={__name:"ListDialog",props:{ReportLogData:{type:Array,default:()=>[]},modelValue:{}},emits:["update:modelValue"],setup(c,{emit:_}){const n=c,l=v(!1),p=()=>{l.value=!1,_("update:modelValue",!1)};return y(()=>n.modelValue,i=>{n.modelValue&&(l.value=n.modelValue)}),(i,m)=>{const a=u("el-table-column"),w=u("el-table"),f=u("el-drawer");return o(),V(f,{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=e=>l.value=e),title:"决策列表","before-close":p,class:"report-drawer"},{default:s(()=>[t(w,{data:c.ReportLogData,stripe:"",border:"",style:{width:"100%"}},{default:s(()=>[t(a,{type:"index",width:"50"}),t(a,{prop:"userName",label:"参会人员姓名"}),t(a,{prop:"voteTime",label:"决策时间",width:"170"}),t(a,{label:"是否决策"},{default:s(e=>[b("span",{style:g({color:e.row.voteStatus?"#67c23a":"#f56c6c"})},r(e.row.voteStatus?"是":"否"),5)]),_:1}),t(a,{label:"决策状态"},{default:s(e=>[e.row.voteResultName=="赞同"?(o(),d("span",h,r(e.row.voteResultName),1)):e.row.voteResultName=="反对"?(o(),d("span",R,r(e.row.voteResultName),1)):e.row.voteResultName=="弃权"?(o(),d("span",k,r(e.row.voteResultName),1)):N("",!0)]),_:1}),t(a,{prop:"voteSuggest",label:"建议"})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}};export{x as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{h as y}from"./index-a7249baf.js";import"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as k}from"./_plugin-vue_export-helper-c27b6911.js";import{a as x}from"./vue-router-ab2ba79f.js";import{f as S,k as b,ag as _,o as s,c as u,S as h,W as L,F as w,a7 as B,T as e,d as i,a as t,Y as r,ax as I,ay as q}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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 p=o=>(I("data-v-706b4881"),o=o(),q(),o),C={class:"tab-content"},N={class:"item-container"},T=p(()=>t("div",null,"处理人:",-1)),V={class:"item-container"},D=p(()=>t("div",null,"处理时间:",-1)),F={class:"item-container"},$=p(()=>t("div",null,"处理状态:",-1)),A={class:"item-container"},E=p(()=>t("div",null,"处理意见:",-1)),M={__name:"Log",setup(o){const d=x(),c=S([]),v=()=>{let m={edit:"personnel",change:"change",approve:"personnel",approve_change:"change",check:"personnel",check_change:"change"};y.get(`/api/alteration/audtiLog?id=${d.query.id}&personnelType=${m[d.query.type]}`).then(l=>{l.code===200&&(c.value=l.data)})};return b(()=>{v()}),(m,l)=>{const g=_("el-empty"),n=_("el-col"),f=_("el-row");return s(),u("div",C,[c.value.length===0?(s(),h(g,{key:0,description:"暂无"})):L("",!0),(s(!0),u(w,null,B(c.value,a=>(s(),h(f,null,{default:e(()=>[i(n,{span:8},{default:e(()=>[t("div",N,[T,t("div",null,r(a.approver),1)])]),_:2},1024),i(n,{span:8},{default:e(()=>[t("div",V,[D,t("div",null,r(a.createdAt),1)])]),_:2},1024),i(n,{span:8},{default:e(()=>[t("div",F,[$,t("div",null,r(a.auditState),1)])]),_:2},1024),i(n,{span:24},{default:e(()=>[t("div",A,[E,t("div",null,r(a.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},mt=k(M,[["__scopeId","data-v-706b4881"]]);export{mt as default};
|
||||
import{h as y}from"./index-34e93722.js";import"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as k}from"./_plugin-vue_export-helper-c27b6911.js";import{a as x}from"./vue-router-ab2ba79f.js";import{f as S,k as b,ag as _,o as s,c as u,S as h,W as L,F as w,a7 as B,T as e,d as i,a as t,Y as r,ax as I,ay as q}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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 p=o=>(I("data-v-706b4881"),o=o(),q(),o),C={class:"tab-content"},N={class:"item-container"},T=p(()=>t("div",null,"处理人:",-1)),V={class:"item-container"},D=p(()=>t("div",null,"处理时间:",-1)),F={class:"item-container"},$=p(()=>t("div",null,"处理状态:",-1)),A={class:"item-container"},E=p(()=>t("div",null,"处理意见:",-1)),M={__name:"Log",setup(o){const d=x(),c=S([]),v=()=>{let m={edit:"personnel",change:"change",approve:"personnel",approve_change:"change",check:"personnel",check_change:"change"};y.get(`/api/alteration/audtiLog?id=${d.query.id}&personnelType=${m[d.query.type]}`).then(l=>{l.code===200&&(c.value=l.data)})};return b(()=>{v()}),(m,l)=>{const g=_("el-empty"),n=_("el-col"),f=_("el-row");return s(),u("div",C,[c.value.length===0?(s(),h(g,{key:0,description:"暂无"})):L("",!0),(s(!0),u(w,null,B(c.value,a=>(s(),h(f,null,{default:e(()=>[i(n,{span:8},{default:e(()=>[t("div",N,[T,t("div",null,r(a.approver),1)])]),_:2},1024),i(n,{span:8},{default:e(()=>[t("div",V,[D,t("div",null,r(a.createdAt),1)])]),_:2},1024),i(n,{span:8},{default:e(()=>[t("div",F,[$,t("div",null,r(a.auditState),1)])]),_:2},1024),i(n,{span:24},{default:e(()=>[t("div",A,[E,t("div",null,r(a.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},mt=k(M,[["__scopeId","data-v-706b4881"]]);export{mt as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{_}from"./TableBody-6182b74b.js";import{h as c}from"./index-a7249baf.js";import{u as D}from"./vue-router-ab2ba79f.js";import w from"./FoodDialog-504b0172.js";import{t as x}from"./tools-0351b48a.js";import{E as m}from"./element-plus-a215fcb5.js";import{f as i,a1 as R,k as B,o as H,c as I,d as p,Q as L}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-ba666efa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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"},ce={__name:"Manage",setup(N){const d=x.data.get("identity");D();const s=i(),u=i(),t=R({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lskcgl:create"},{type:"custom",name:"customCK",title:"出库",icon:"Upload",isOpen:"single",permission:"gxcc:lskcgl:ck"},{type:"custom",name:"customRK",title:"入库",icon:"Download",isOpen:"single",permission:"gxcc:lskcgl:rk"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lskcgl:check"},{type:"popconfirm",name:"customDelete",title:"删除",icon:"Delete",isOpen:"single",permission:"gxcc:lskcgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓类型",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"amount",label:"库存",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),g={current:t.pagination.current,size:t.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o=i({...g}),n=()=>{t.tableType.tableLoading=!0,c.get("/api/foodReserves/page",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})},f=({type:e,data:a})=>{switch(e){case"create":T();break;case"check":h(a);break;case"customCK":r(a,"ck");break;case"customRK":r(a,"rk");break;case"sort":v(a);break;case"search":y(a);break;case"customDelete":k(a);break}},b=e=>{t.pagination.current=e,o.value.current=e,n()},h=e=>{const a=e[0].id;s.value.changeDialog("check",a)},k=e=>{let a={deptId:d.isLeader?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};c.post("/api/foodReserves/operation",a).then(l=>{l.code==200?(m({message:"删除成功",type:"success"}),n()):m({message:l.message,type:"success"})})},y=e=>{o.value.value=e.value,n()},v=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),n()},T=()=>{s.value.changeDialog("create")},r=(e,a)=>{const l=e[0].id;s.value.changeDialog(a,l)};return B(()=>{n()}),(e,a)=>(H(),I("div",P,[p(_,L(t,{onHandleTableHeader:f,onHandleTablePagination:b,ref_key:"TableBodyRef",ref:u}),null,16),p(w,{ref_key:"formDialog",ref:s,onInit:n},null,512)]))}};export{ce as default};
|
||||
import{_}from"./TableBody-6182b74b.js";import{h as c}from"./index-34e93722.js";import{u as D}from"./vue-router-ab2ba79f.js";import w from"./FoodDialog-3662cbd2.js";import{t as x}from"./tools-0351b48a.js";import{E as m}from"./element-plus-a215fcb5.js";import{f as i,a1 as R,k as B,o as H,c as I,d as p,Q as L}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-ba666efa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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"},ce={__name:"Manage",setup(N){const d=x.data.get("identity");D();const s=i(),u=i(),t=R({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lskcgl:create"},{type:"custom",name:"customCK",title:"出库",icon:"Upload",isOpen:"single",permission:"gxcc:lskcgl:ck"},{type:"custom",name:"customRK",title:"入库",icon:"Download",isOpen:"single",permission:"gxcc:lskcgl:rk"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lskcgl:check"},{type:"popconfirm",name:"customDelete",title:"删除",icon:"Delete",isOpen:"single",permission:"gxcc:lskcgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓类型",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"amount",label:"库存",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),g={current:t.pagination.current,size:t.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o=i({...g}),n=()=>{t.tableType.tableLoading=!0,c.get("/api/foodReserves/page",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})},f=({type:e,data:a})=>{switch(e){case"create":T();break;case"check":h(a);break;case"customCK":r(a,"ck");break;case"customRK":r(a,"rk");break;case"sort":v(a);break;case"search":y(a);break;case"customDelete":k(a);break}},b=e=>{t.pagination.current=e,o.value.current=e,n()},h=e=>{const a=e[0].id;s.value.changeDialog("check",a)},k=e=>{let a={deptId:d.isLeader?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};c.post("/api/foodReserves/operation",a).then(l=>{l.code==200?(m({message:"删除成功",type:"success"}),n()):m({message:l.message,type:"success"})})},y=e=>{o.value.value=e.value,n()},v=e=>{e.name===""?(o.value.orderBy=void 0,o.value.column=void 0):(o.value.orderBy=e.sortType,o.value.column=e.name),n()},T=()=>{s.value.changeDialog("create")},r=(e,a)=>{const l=e[0].id;s.value.changeDialog(a,l)};return B(()=>{n()}),(e,a)=>(H(),I("div",P,[p(_,L(t,{onHandleTableHeader:f,onHandleTablePagination:b,ref_key:"TableBodyRef",ref:u}),null,16),p(w,{ref_key:"formDialog",ref:s,onInit:n},null,512)]))}};export{ce as default};
|
|
@ -1 +1 @@
|
|||
System.register(["./TableBody-legacy-7e2c1d77.js","./index-legacy-df0795e1.js","./vue-router-legacy-1e8e1d15.js","./FoodDialog-legacy-c5dc2d6f.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-efe0366d.js","./@vue-legacy-4de3d5b5.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-bb874362.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./lodash.clonedeep-legacy-81abd881.js","./core-js-legacy-b197ddf1.js","./Upload.vue_vue_type_style_index_0_scoped_f028b45f_lang-legacy-8f32230c.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.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,s,t,o,n,c,i,u,g,d,r,p,y;return{setters:[e=>{l=e._},e=>{s=e.h},e=>{t=e.u},e=>{o=e.default},e=>{n=e.t},e=>{c=e.E},e=>{i=e.f,u=e.a1,g=e.k,d=e.o,r=e.c,p=e.d,y=e.Q},null,null,null,null,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:"Manage",setup(e){const m=n.data.get("identity");t();const b=i(),j=i(),v=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lskcgl:create"},{type:"custom",name:"customCK",title:"出库",icon:"Upload",isOpen:"single",permission:"gxcc:lskcgl:ck"},{type:"custom",name:"customRK",title:"入库",icon:"Download",isOpen:"single",permission:"gxcc:lskcgl:rk"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lskcgl:check"},{type:"popconfirm",name:"customDelete",title:"删除",icon:"Delete",isOpen:"single",permission:"gxcc:lskcgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓类型",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"amount",label:"库存",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),h={current:v.pagination.current,size:v.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},f=i({...h}),k=()=>{v.tableType.tableLoading=!0,s.get("/api/foodReserves/page",f.value).then((e=>{200==e.code&&(v.tableData=e.data.records,v.tableType.tableLoading=!1,v.pagination.total=e.data.total)})).catch((()=>{v.tableType.tableLoading=!1}))},_=({type:e,data:a})=>{switch(e){case"create":L();break;case"check":w(a);break;case"customCK":B(a,"ck");break;case"customRK":B(a,"rk");break;case"sort":I(a);break;case"search":D(a);break;case"customDelete":x(a)}},T=e=>{console.log(e),v.pagination.current=e,f.value.current=e,k()},w=e=>{const a=e[0].id;b.value.changeDialog("check",a)},x=e=>{console.log(e[0]);let a={deptId:m.isLeader?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};s.post("/api/foodReserves/operation",a).then((e=>{200==e.code?(c({message:"删除成功",type:"success"}),k()):c({message:e.message,type:"success"})}))},D=e=>{console.log(e.value),f.value.value=e.value,k()},I=e=>{""===e.name?(f.value.orderBy=void 0,f.value.column=void 0):(f.value.orderBy=e.sortType,f.value.column=e.name),k()},L=()=>{b.value.changeDialog("create")},B=(e,a)=>{const l=e[0].id;b.value.changeDialog(a,l)};return g((()=>{k()})),(e,s)=>(d(),r("div",a,[p(l,y(v,{onHandleTableHeader:_,onHandleTablePagination:T,ref_key:"TableBodyRef",ref:j}),null,16),p(o,{ref_key:"formDialog",ref:b,onInit:k},null,512)]))}})}}}));
|
||||
System.register(["./TableBody-legacy-7e2c1d77.js","./index-legacy-5d2946de.js","./vue-router-legacy-1e8e1d15.js","./FoodDialog-legacy-ee4b83a8.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-efe0366d.js","./@vue-legacy-4de3d5b5.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-bb874362.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./lodash.clonedeep-legacy-81abd881.js","./core-js-legacy-b197ddf1.js","./Upload.vue_vue_type_style_index_0_scoped_f028b45f_lang-legacy-8f32230c.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.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,o,n,c,i,u,g,d,r,p,y;return{setters:[e=>{a=e._},e=>{s=e.h},e=>{t=e.u},e=>{o=e.default},e=>{n=e.t},e=>{c=e.E},e=>{i=e.f,u=e.a1,g=e.k,d=e.o,r=e.c,p=e.d,y=e.Q},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"example"};e("default",{__name:"Manage",setup(e){const m=n.data.get("identity");t();const b=i(),j=i(),v=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增",icon:"Plus",isOpen:"custom",disabled:!1,permission:"gxcc:lskcgl:create"},{type:"custom",name:"customCK",title:"出库",icon:"Upload",isOpen:"single",permission:"gxcc:lskcgl:ck"},{type:"custom",name:"customRK",title:"入库",icon:"Download",isOpen:"single",permission:"gxcc:lskcgl:rk"},{type:"custom",name:"check",title:"查看",icon:"View",isOpen:"single",permission:"gxcc:lskcgl:check"},{type:"popconfirm",name:"customDelete",title:"删除",icon:"Delete",isOpen:"single",permission:"gxcc:lskcgl:delete"}]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓类型",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"amount",label:"库存",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),h={current:v.pagination.current,size:v.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},f=i({...h}),k=()=>{v.tableType.tableLoading=!0,s.get("/api/foodReserves/page",f.value).then((e=>{200==e.code&&(v.tableData=e.data.records,v.tableType.tableLoading=!1,v.pagination.total=e.data.total)})).catch((()=>{v.tableType.tableLoading=!1}))},_=({type:e,data:l})=>{switch(e){case"create":L();break;case"check":w(l);break;case"customCK":B(l,"ck");break;case"customRK":B(l,"rk");break;case"sort":I(l);break;case"search":D(l);break;case"customDelete":x(l)}},T=e=>{console.log(e),v.pagination.current=e,f.value.current=e,k()},w=e=>{const l=e[0].id;b.value.changeDialog("check",l)},x=e=>{console.log(e[0]);let l={deptId:m.isLeader?e[0].deptId:void 0,foodTypeId:e[0].foodTypeId,operationType:"delete",amount:0};s.post("/api/foodReserves/operation",l).then((e=>{200==e.code?(c({message:"删除成功",type:"success"}),k()):c({message:e.message,type:"success"})}))},D=e=>{console.log(e.value),f.value.value=e.value,k()},I=e=>{""===e.name?(f.value.orderBy=void 0,f.value.column=void 0):(f.value.orderBy=e.sortType,f.value.column=e.name),k()},L=()=>{b.value.changeDialog("create")},B=(e,l)=>{const a=e[0].id;b.value.changeDialog(l,a)};return g((()=>{k()})),(e,s)=>(d(),r("div",l,[p(a,y(v,{onHandleTableHeader:_,onHandleTablePagination:T,ref_key:"TableBodyRef",ref:j}),null,16),p(o,{ref_key:"formDialog",ref:b,onInit:k},null,512)]))}})}}}));
|
|
@ -1 +1 @@
|
|||
System.register(["./@vue-legacy-4de3d5b5.js","./NodeType-legacy-d825d152.js","./optionConfig-legacy-708250f5.js","./approver-legacy-55837739.js","./@icon-park-legacy-d73df4b1.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,a,d,i,s,r,p,c,f,u,v,m,y,I,k,g,w,h,j,A,C,b;return{setters:[e=>{o=e.a1,l=e.aq,n=e.o,a=e.c,d=e.a,i=e.a0,s=e.U,r=e.Z,p=e.d,c=e.u,f=e.O,u=e.Y,v=e.aj,m=e.S,y=e.F,I=e.a7},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"},N={key:0,class:"text"},z={class:"span"},E=d("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:O}){const B=e,M=h(),S=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),T=(e,t)=>{O("addApprover",B.nodeItem,t)},U=()=>{O("addCondition",B.nodeItem,"add")},V=()=>{O("removeApprover",B.nodeItem,B.parentNode)};return(e,o)=>{const g=l("focus");return n(),a("div",t,[d("div",x,[d("div",q,[d("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=i((e=>S.activeIndex=B.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=i((e=>S.activeIndex=-1),["self"]))},[s(d("div",{class:"y-flow-node-del",onClick:V},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,B.nodeItem.nodeId==S.activeIndex]]),d("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=B.nodeItem,M.changeApprover(t),void M.toggleApproverVisible(!0);var t})},[d("div",{class:f(["y-flow-node-head",["approver"===B.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[d("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=i((e=>{return t=B.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[B.nodeItem.titleEdit?s((n(),a("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>B.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=B.nodeItem,o=!1,t.title||(t.title="审批节点"),M.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,B.nodeItem.title],[g]]):(n(),a("div",N,[d("span",z,u(B.nodeItem.title||B.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===B.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,d("div",L,[(n(!0),a(y,null,I(B.nodeItem.properties.persons,((e,t)=>(n(),a("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),d("div",W,[p(k,{branchItem:B.nodeItem,onAddApprover:T,onChangeCondition:U},null,8,["branchItem"])])],32)])])])}}})}}}));
|
||||
System.register(["./@vue-legacy-4de3d5b5.js","./NodeType-legacy-d825d152.js","./optionConfig-legacy-708250f5.js","./approver-legacy-55837739.js","./@icon-park-legacy-d73df4b1.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,a,i,s,r,p,c,f,u,v,m,y,I,k,g,w,h,j,A,C,b;return{setters:[e=>{o=e.a1,l=e.aq,n=e.o,d=e.c,a=e.a,i=e.a0,s=e.U,r=e.Z,p=e.d,c=e.u,f=e.O,u=e.Y,v=e.aj,m=e.S,y=e.F,I=e.a7},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"},N={key:0,class:"text"},z={class:"span"},E=a("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:O}){const B=e,M=h(),S=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),T=(e,t)=>{O("addApprover",B.nodeItem,t)},U=()=>{O("addCondition",B.nodeItem,"add")},V=()=>{O("removeApprover",B.nodeItem,B.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[a("div",x,[a("div",q,[a("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=i((e=>S.activeIndex=B.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=i((e=>S.activeIndex=-1),["self"]))},[s(a("div",{class:"y-flow-node-del",onClick:V},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,B.nodeItem.nodeId==S.activeIndex]]),a("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=B.nodeItem,M.changeApprover(t),void M.toggleApproverVisible(!0);var t})},[a("div",{class:f(["y-flow-node-head",["approver"===B.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[a("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=i((e=>{return t=B.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[B.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>B.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=B.nodeItem,o=!1,t.title||(t.title="审批节点"),M.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,B.nodeItem.title],[g]]):(n(),d("div",N,[a("span",z,u(B.nodeItem.title||B.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===B.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,a("div",L,[(n(!0),d(y,null,I(B.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),a("div",W,[p(k,{branchItem:B.nodeItem,onAddApprover:T,onChangeCondition:U},null,8,["branchItem"])])],32)])])])}}})}}}));
|
|
@ -1 +1 @@
|
|||
import{_ as $}from"./index-53b59d75.js";import B from"./Upload-307df2df.js";import{U as J}from"./index-ed57d27c.js";import P from"./DetailDialog-358fa029.js";import{u as R,a as h}from"./vue-router-ab2ba79f.js";import{h as b}from"./index-a7249baf.js";import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";import{E as p}from"./element-plus-a215fcb5.js";import{l as U,f as n,k as E,ag as d,o as q,c as M,d as l,a as _,T as r,X as m,S as T,W as j,ax as W,ay as X}from"./@vue-5dd246aa.js";import"./@wangeditor-61a2cfac.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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";/* empty css */const F=f=>(W("data-v-01d5663e"),f=f(),X(),f),z={class:"card"},G=F(()=>_("div",{class:"line"},null,-1)),H={class:"page-content"},K=F(()=>_("p",{class:"page-content-title"},"通知新增",-1)),L={class:"bottom-item"},Q={__name:"PageForm",setup(f){const w=R(),i=h();U(()=>!["create","edit"].includes(i.query.type)),U(()=>i.query.type==="create"),U(()=>i.query.type==="edit");const V=n(),t=n({userIds:[],content:"",files:[],title:"",isUrgent:!1}),x=n({title:[{required:!0,message:"请输入",trigger:"blur"}],isUrgent:[{required:!0,message:"请选择",trigger:"blur"}]}),g=n(!1),I=n({}),N=()=>{g.value=!0,I.value={...t.value}},k=()=>{w.go(-1)},S=async u=>{u&&await u.validate(async(e,c)=>{if(e){if(!t.value.content)return p.warning("请填写通知内容");let o={...t.value,files:JSON.stringify(t.value.files),userIds:JSON.stringify(t.value.userIds)};if(i.query.type==="create"){let s=await b.post("/api/notice/save",o);s.code==200?(p({message:s.message,type:"success"}),k()):p.error(s.message)}else if(i.query.type==="edit"){let s=await b.put(`/api/notice/edit?id=${i.query.id}`,o);s.code==200?(p({message:s.message,type:"success"}),k()):p.error(s.message)}}})},v=n(!1),C=()=>{var u,e;if(((u=i.query)==null?void 0:u.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let c=i.query.id;b.get(`/api/notice/detail?id=${c}`).then(o=>{o.code==200&&(t.value={userIds:JSON.parse(o.data.userIds),content:o.data.content,files:JSON.parse(o.data.files),title:o.data.title,updatedAt:o.data.updatedAt,isUrgent:o.data.isUrgent},v.value=!0)})}else v.value=!0};return E(()=>{C()}),(u,e)=>{const c=d("el-input"),o=d("el-form-item"),s=d("el-radio"),D=d("el-radio-group"),y=d("el-button"),O=d("el-form");return q(),M("div",z,[l($,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=a=>t.value.content=a)},null,8,["value"]),G,_("div",H,[K,l(O,{ref_key:"ruleFormRef",ref:V,"label-position":"top",model:t.value,rules:x.value,"label-width":"120px","status-icon":""},{default:r(()=>[l(o,{label:"标题",prop:"title"},{default:r(()=>[l(c,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=a=>t.value.title=a)},null,8,["modelValue"])]),_:1}),l(o,{label:"是否紧急",prop:"isUrgent"},{default:r(()=>[l(D,{modelValue:t.value.isUrgent,"onUpdate:modelValue":e[2]||(e[2]=a=>t.value.isUrgent=a)},{default:r(()=>[l(s,{label:!0},{default:r(()=>[m("是")]),_:1}),l(s,{label:!1,style:{"margin-left":"30px"}},{default:r(()=>[m("否")]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(o,{label:"接收人:不选默认全体",prop:"userIds"},{default:r(()=>[v.value?(q(),T(J,{key:0,userIds:t.value.userIds,"onUpdate:userIds":e[3]||(e[3]=a=>t.value.userIds=a)},null,8,["userIds"])):j("",!0)]),_:1}),l(o,{label:"附件",prop:"files"},{default:r(()=>[l(B,{modelValue:t.value.files,"onUpdate:modelValue":e[4]||(e[4]=a=>t.value.files=a),type:"create",disabled:!1},null,8,["modelValue"])]),_:1}),_("div",L,[l(y,{type:"primary",onClick:N},{default:r(()=>[m(" 预览内容 ")]),_:1}),l(y,{type:"primary",onClick:e[5]||(e[5]=a=>S(V.value))},{default:r(()=>[m(" 保存 ")]),_:1}),l(y,{onClick:e[6]||(e[6]=a=>u.$router.back())},{default:r(()=>[m(" 返回 ")]),_:1})])]),_:1},8,["model","rules"])]),l(P,{dialogVisible:g.value,"onUpdate:dialogVisible":e[7]||(e[7]=a=>g.value=a),dialogData:I.value},null,8,["dialogVisible","dialogData"])])}}},Oe=A(Q,[["__scopeId","data-v-01d5663e"]]);export{Oe as default};
|
||||
import{_ as $}from"./index-20aff87d.js";import B from"./Upload-196c300d.js";import{U as J}from"./index-40d96d06.js";import P from"./DetailDialog-efa8aa7d.js";import{u as R,a as h}from"./vue-router-ab2ba79f.js";import{h as b}from"./index-34e93722.js";import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";import{E as p}from"./element-plus-a215fcb5.js";import{l as U,f as n,k as E,ag as d,o as q,c as M,d as l,a as _,T as r,X as m,S as T,W as j,ax as W,ay as X}from"./@vue-5dd246aa.js";import"./@wangeditor-61a2cfac.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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";/* empty css */const F=f=>(W("data-v-01d5663e"),f=f(),X(),f),z={class:"card"},G=F(()=>_("div",{class:"line"},null,-1)),H={class:"page-content"},K=F(()=>_("p",{class:"page-content-title"},"通知新增",-1)),L={class:"bottom-item"},Q={__name:"PageForm",setup(f){const w=R(),i=h();U(()=>!["create","edit"].includes(i.query.type)),U(()=>i.query.type==="create"),U(()=>i.query.type==="edit");const V=n(),t=n({userIds:[],content:"",files:[],title:"",isUrgent:!1}),x=n({title:[{required:!0,message:"请输入",trigger:"blur"}],isUrgent:[{required:!0,message:"请选择",trigger:"blur"}]}),g=n(!1),I=n({}),N=()=>{g.value=!0,I.value={...t.value}},k=()=>{w.go(-1)},S=async u=>{u&&await u.validate(async(e,c)=>{if(e){if(!t.value.content)return p.warning("请填写通知内容");let o={...t.value,files:JSON.stringify(t.value.files),userIds:JSON.stringify(t.value.userIds)};if(i.query.type==="create"){let s=await b.post("/api/notice/save",o);s.code==200?(p({message:s.message,type:"success"}),k()):p.error(s.message)}else if(i.query.type==="edit"){let s=await b.put(`/api/notice/edit?id=${i.query.id}`,o);s.code==200?(p({message:s.message,type:"success"}),k()):p.error(s.message)}}})},v=n(!1),C=()=>{var u,e;if(((u=i.query)==null?void 0:u.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let c=i.query.id;b.get(`/api/notice/detail?id=${c}`).then(o=>{o.code==200&&(t.value={userIds:JSON.parse(o.data.userIds),content:o.data.content,files:JSON.parse(o.data.files),title:o.data.title,updatedAt:o.data.updatedAt,isUrgent:o.data.isUrgent},v.value=!0)})}else v.value=!0};return E(()=>{C()}),(u,e)=>{const c=d("el-input"),o=d("el-form-item"),s=d("el-radio"),D=d("el-radio-group"),y=d("el-button"),O=d("el-form");return q(),M("div",z,[l($,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=a=>t.value.content=a)},null,8,["value"]),G,_("div",H,[K,l(O,{ref_key:"ruleFormRef",ref:V,"label-position":"top",model:t.value,rules:x.value,"label-width":"120px","status-icon":""},{default:r(()=>[l(o,{label:"标题",prop:"title"},{default:r(()=>[l(c,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=a=>t.value.title=a)},null,8,["modelValue"])]),_:1}),l(o,{label:"是否紧急",prop:"isUrgent"},{default:r(()=>[l(D,{modelValue:t.value.isUrgent,"onUpdate:modelValue":e[2]||(e[2]=a=>t.value.isUrgent=a)},{default:r(()=>[l(s,{label:!0},{default:r(()=>[m("是")]),_:1}),l(s,{label:!1,style:{"margin-left":"30px"}},{default:r(()=>[m("否")]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(o,{label:"接收人:不选默认全体",prop:"userIds"},{default:r(()=>[v.value?(q(),T(J,{key:0,userIds:t.value.userIds,"onUpdate:userIds":e[3]||(e[3]=a=>t.value.userIds=a)},null,8,["userIds"])):j("",!0)]),_:1}),l(o,{label:"附件",prop:"files"},{default:r(()=>[l(B,{modelValue:t.value.files,"onUpdate:modelValue":e[4]||(e[4]=a=>t.value.files=a),type:"create",disabled:!1},null,8,["modelValue"])]),_:1}),_("div",L,[l(y,{type:"primary",onClick:N},{default:r(()=>[m(" 预览内容 ")]),_:1}),l(y,{type:"primary",onClick:e[5]||(e[5]=a=>S(V.value))},{default:r(()=>[m(" 保存 ")]),_:1}),l(y,{onClick:e[6]||(e[6]=a=>u.$router.back())},{default:r(()=>[m(" 返回 ")]),_:1})])]),_:1},8,["model","rules"])]),l(P,{dialogVisible:g.value,"onUpdate:dialogVisible":e[7]||(e[7]=a=>g.value=a),dialogData:I.value},null,8,["dialogVisible","dialogData"])])}}},Oe=A(Q,[["__scopeId","data-v-01d5663e"]]);export{Oe as default};
|
|
@ -1 +1 @@
|
|||
import{_ as P}from"./index-53b59d75.js";import S from"./Upload-307df2df.js";import{u as U,a as I}from"./vue-router-ab2ba79f.js";import{h as g}from"./index-a7249baf.js";/* empty css */import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import B from"./DetailDialog-358fa029.js";import{E as u}from"./element-plus-a215fcb5.js";import{l as y,f as p,k as A,ag as c,o as E,c as J,d as a,u as b,a as f,T as n,X as V,ax as M,ay as O}from"./@vue-5dd246aa.js";import"./@wangeditor-61a2cfac.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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 w=d=>(M("data-v-0e5e611e"),d=d(),O(),d),T={class:"card"},j=w(()=>f("div",{class:"line"},null,-1)),X={class:"page-content"},z=w(()=>f("p",{class:"page-content-title"},"制度新增",-1)),G={class:"bottom-item"},H={__name:"PageForm",setup(d){const x=U(),i=I(),_=y(()=>!["create","edit"].includes(i.query.type));y(()=>i.query.type==="create"),y(()=>i.query.type==="edit");const F=p(),t=p({content:"",files:[],title:""}),D=p({title:[{required:!0,message:"请输入",trigger:"blur"}]}),v=p(!1),q=p({}),h=()=>{v.value=!0,q.value={...t.value}},k=()=>{x.go(-1)},$=async r=>{r&&await r.validate(async(e,m)=>{if(e){if(!t.value.content)return u.warning("请填写内容");let o={...t.value,files:JSON.stringify(t.value.files)};if(i.query.type==="create"){let l=await g.post("/api/institution/save",o);l.code==200?(u({message:l.message,type:"success"}),k()):u.error(l.message)}else if(i.query.type==="edit"){let l=await g.put(`/api/institution/edit?id=${i.query.id}`,o);l.code==200?(u({message:l.message,type:"success"}),k()):u.error(l.message)}}})},C=()=>{var r,e;if(((r=i.query)==null?void 0:r.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let m=i.query.id;g.get(`/api/institution/detail?id=${m}`).then(o=>{o.code==200&&(t.value={content:o.data.content,files:JSON.parse(o.data.files),title:o.data.title,updatedAt:o.data.updatedAt})})}};return A(()=>{C()}),(r,e)=>{const m=c("el-input"),o=c("el-form-item"),l=c("el-button"),N=c("el-form");return E(),J("div",T,[a(P,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=s=>t.value.content=s),disabled:b(_)},null,8,["value","disabled"]),j,f("div",X,[z,a(N,{ref_key:"ruleFormRef",ref:F,"label-position":"top",model:t.value,rules:D.value,"label-width":"120px",disabled:b(_),"status-icon":""},{default:n(()=>[a(o,{label:"标题",prop:"title"},{default:n(()=>[a(m,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=s=>t.value.title=s)},null,8,["modelValue"])]),_:1}),a(o,{label:"附件",prop:"files"},{default:n(()=>[a(S,{modelValue:t.value.files,"onUpdate:modelValue":e[2]||(e[2]=s=>t.value.files=s),type:"create",disabled:b(_)},null,8,["modelValue","disabled"])]),_:1}),f("div",G,[a(l,{type:"primary",onClick:h},{default:n(()=>[V(" 预览内容 ")]),_:1}),a(l,{type:"primary",onClick:e[3]||(e[3]=s=>$(F.value))},{default:n(()=>[V(" 保存 ")]),_:1}),a(l,{onClick:e[4]||(e[4]=s=>r.$router.back())},{default:n(()=>[V(" 返回 ")]),_:1})])]),_:1},8,["model","rules","disabled"])]),a(B,{dialogVisible:v.value,"onUpdate:dialogVisible":e[5]||(e[5]=s=>v.value=s),dialogData:q.value},null,8,["dialogVisible","dialogData"])])}}},he=R(H,[["__scopeId","data-v-0e5e611e"]]);export{he as default};
|
||||
import{_ as P}from"./index-20aff87d.js";import S from"./Upload-196c300d.js";import{u as U,a as I}from"./vue-router-ab2ba79f.js";import{h as g}from"./index-34e93722.js";/* empty css */import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import B from"./DetailDialog-efa8aa7d.js";import{E as u}from"./element-plus-a215fcb5.js";import{l as y,f as p,k as A,ag as c,o as E,c as J,d as a,u as b,a as f,T as n,X as V,ax as M,ay as O}from"./@vue-5dd246aa.js";import"./@wangeditor-61a2cfac.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.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 w=d=>(M("data-v-0e5e611e"),d=d(),O(),d),T={class:"card"},j=w(()=>f("div",{class:"line"},null,-1)),X={class:"page-content"},z=w(()=>f("p",{class:"page-content-title"},"制度新增",-1)),G={class:"bottom-item"},H={__name:"PageForm",setup(d){const x=U(),i=I(),_=y(()=>!["create","edit"].includes(i.query.type));y(()=>i.query.type==="create"),y(()=>i.query.type==="edit");const F=p(),t=p({content:"",files:[],title:""}),D=p({title:[{required:!0,message:"请输入",trigger:"blur"}]}),v=p(!1),q=p({}),h=()=>{v.value=!0,q.value={...t.value}},k=()=>{x.go(-1)},$=async r=>{r&&await r.validate(async(e,m)=>{if(e){if(!t.value.content)return u.warning("请填写内容");let o={...t.value,files:JSON.stringify(t.value.files)};if(i.query.type==="create"){let l=await g.post("/api/institution/save",o);l.code==200?(u({message:l.message,type:"success"}),k()):u.error(l.message)}else if(i.query.type==="edit"){let l=await g.put(`/api/institution/edit?id=${i.query.id}`,o);l.code==200?(u({message:l.message,type:"success"}),k()):u.error(l.message)}}})},C=()=>{var r,e;if(((r=i.query)==null?void 0:r.type)==="check"||((e=i.query)==null?void 0:e.type)==="edit"){let m=i.query.id;g.get(`/api/institution/detail?id=${m}`).then(o=>{o.code==200&&(t.value={content:o.data.content,files:JSON.parse(o.data.files),title:o.data.title,updatedAt:o.data.updatedAt})})}};return A(()=>{C()}),(r,e)=>{const m=c("el-input"),o=c("el-form-item"),l=c("el-button"),N=c("el-form");return E(),J("div",T,[a(P,{height:"60vh",value:t.value.content,"onUpdate:value":e[0]||(e[0]=s=>t.value.content=s),disabled:b(_)},null,8,["value","disabled"]),j,f("div",X,[z,a(N,{ref_key:"ruleFormRef",ref:F,"label-position":"top",model:t.value,rules:D.value,"label-width":"120px",disabled:b(_),"status-icon":""},{default:n(()=>[a(o,{label:"标题",prop:"title"},{default:n(()=>[a(m,{modelValue:t.value.title,"onUpdate:modelValue":e[1]||(e[1]=s=>t.value.title=s)},null,8,["modelValue"])]),_:1}),a(o,{label:"附件",prop:"files"},{default:n(()=>[a(S,{modelValue:t.value.files,"onUpdate:modelValue":e[2]||(e[2]=s=>t.value.files=s),type:"create",disabled:b(_)},null,8,["modelValue","disabled"])]),_:1}),f("div",G,[a(l,{type:"primary",onClick:h},{default:n(()=>[V(" 预览内容 ")]),_:1}),a(l,{type:"primary",onClick:e[3]||(e[3]=s=>$(F.value))},{default:n(()=>[V(" 保存 ")]),_:1}),a(l,{onClick:e[4]||(e[4]=s=>r.$router.back())},{default:n(()=>[V(" 返回 ")]),_:1})])]),_:1},8,["model","rules","disabled"])]),a(B,{dialogVisible:v.value,"onUpdate:dialogVisible":e[5]||(e[5]=s=>v.value=s),dialogData:q.value},null,8,["dialogVisible","dialogData"])])}}},he=R(H,[["__scopeId","data-v-0e5e611e"]]);export{he 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
|
@ -1 +1 @@
|
|||
import{h as l}from"./index-a7249baf.js";import{a as i}from"./vue-router-ab2ba79f.js";import{_ as s}from"./_plugin-vue_export-helper-c27b6911.js";import{f as m,ag as n,o as _,c as d,d as t,T as h}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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 u={class:"tab-content"},f={__name:"Record",setup(g){const o=i(),a=m([]);return(()=>{let r=o.query.id,p={edit:"personnel",change:"change",approve:"personnel",approve_change:"change",check:"personnel",check_change:"change"};l.get(`/api/alteration/alterationPage?id=${r}&personnelType=${p[o.query.type]}`).then(e=>{e.code==200&&(a.value=e.data)})})(),(r,p)=>{const e=n("el-table-column"),c=n("el-table");return _(),d("div",u,[t(c,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:h(()=>[t(e,{type:"index",width:"80",align:"center",label:"序号"}),t(e,{prop:"details",label:"变更内容"}),t(e,{prop:"beforeChange",label:"变更前"}),t(e,{prop:"afterChange",label:"变更后"}),t(e,{prop:"createdName",label:"变更人"}),t(e,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},L=s(f,[["__scopeId","data-v-c5496df1"]]);export{L as default};
|
||||
import{h as l}from"./index-34e93722.js";import{a as i}from"./vue-router-ab2ba79f.js";import{_ as s}from"./_plugin-vue_export-helper-c27b6911.js";import{f as m,ag as n,o as _,c as d,d as t,T as h}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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 u={class:"tab-content"},f={__name:"Record",setup(g){const o=i(),a=m([]);return(()=>{let r=o.query.id,p={edit:"personnel",change:"change",approve:"personnel",approve_change:"change",check:"personnel",check_change:"change"};l.get(`/api/alteration/alterationPage?id=${r}&personnelType=${p[o.query.type]}`).then(e=>{e.code==200&&(a.value=e.data)})})(),(r,p)=>{const e=n("el-table-column"),c=n("el-table");return _(),d("div",u,[t(c,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:h(()=>[t(e,{type:"index",width:"80",align:"center",label:"序号"}),t(e,{prop:"details",label:"变更内容"}),t(e,{prop:"beforeChange",label:"变更前"}),t(e,{prop:"afterChange",label:"变更后"}),t(e,{prop:"createdName",label:"变更人"}),t(e,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},L=s(f,[["__scopeId","data-v-c5496df1"]]);export{L as default};
|
|
@ -1 +1 @@
|
|||
import{_ as R}from"./TableBody-6182b74b.js";import{h as m}from"./index-a7249baf.js";import C from"./FoodDialog-504b0172.js";import{t as D}from"./tools-0351b48a.js";import{f as r,a1 as N,k as I,ag as i,o as s,c as p,d,T as b,u as P,S as f,W as S,F as A,a7 as z,Q as F}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash.clonedeep-2f114c62.js";/* empty css */const q={class:"example"},ve={__name:"Record",setup(U){const g=D.data.get("identity"),u=r(),h=r(),o=N({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},tableHeader:[{buttons:[]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓类型",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"type",label:"操作",show:!0},{name:"amount",label:"变更库存",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),v={current:o.pagination.current,size:o.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0,type:void 0,deptId:void 0},a=r({...v}),l=()=>{o.tableType.tableLoading=!0,m.get("/api/foodReservesLog/page",a.value).then(e=>{e.code==200&&(o.tableData=e.data.records,o.tableType.tableLoading=!1,o.pagination.total=e.data.total)}).catch(()=>{o.tableType.tableLoading=!1})},_=({type:e,data:t})=>{switch(e){case"check":k(t);break;case"sort":w(t);break;case"search":T(t);break}},y=e=>{o.pagination.current=e,a.value.current=e,l()},k=e=>{const t=e[0].id;u.value.changeDialog("check",t)},T=e=>{a.value.value=e.value,l()},w=e=>{e.name===""?(a.value.orderBy=void 0,a.value.column=void 0):(a.value.orderBy=e.sortType,a.value.column=e.name),l()},B=r([{name:"新增",value:"add"},{name:"删除",value:"delete"},{name:"入库",value:"warehousing"},{name:"出库",value:"out_of_stock"}]),c=r([]),L=()=>{m.get("/api/dept/tree").then(e=>{e.code==200&&(c.value=e.data.data)})};return I(()=>{l(),L()}),(e,t)=>{const V=i("el-tree-select"),x=i("el-option"),H=i("el-select");return s(),p("div",q,[d(R,F(o,{onHandleTableHeader:_,onHandleTablePagination:y,ref_key:"TableBodyRef",ref:h}),{TableHeaderRight:b(({selectData:E})=>[P(g).isLeader?(s(),f(V,{key:0,modelValue:a.value.deptId,"onUpdate:modelValue":t[0]||(t[0]=n=>a.value.deptId=n),data:c.value,clearable:"","check-strictly":"",placeholder:"请选择粮仓类型","render-after-expand":!1,class:"status-select",onChange:l},null,8,["modelValue","data"])):S("",!0),d(H,{modelValue:a.value.type,"onUpdate:modelValue":t[1]||(t[1]=n=>a.value.type=n),placeholder:"请选择操作类型",onChange:l,clearable:"",class:"status-select"},{default:b(()=>[(s(!0),p(A,null,z(B.value,n=>(s(),f(x,{key:n.value,label:n.name,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},16),d(C,{ref_key:"formDialog",ref:u,onInit:l},null,512)])}}};export{ve as default};
|
||||
import{_ as R}from"./TableBody-6182b74b.js";import{h as m}from"./index-34e93722.js";import C from"./FoodDialog-3662cbd2.js";import{t as D}from"./tools-0351b48a.js";import{f as r,a1 as N,k as I,ag as i,o as s,c as p,d,T as b,u as P,S as f,W as S,F as A,a7 as z,Q as F}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash.clonedeep-2f114c62.js";/* empty css */const q={class:"example"},ve={__name:"Record",setup(U){const g=D.data.get("identity"),u=r(),h=r(),o=N({tableType:{selection:!0,tableLoading:!1,tableIndex:!1,changeHeight:302},tableHeader:[{buttons:[]},{buttons:[{name:"sort",options:[{label:"创建时间",value:"createdAt"},{label:"更新时间",value:"updatedAt"}]},"search"]}],tableList:[{name:"deptName",label:"粮仓类型",show:!0},{name:"foodTypeName",label:"粮食类型",show:!0},{name:"type",label:"操作",show:!0},{name:"amount",label:"变更库存",show:!0},{name:"createdName",label:"创建人",show:!0},{name:"createdAt",label:"创建时间",show:!0},{name:"updatedName",label:"更新人",show:!0},{name:"updatedAt",label:"更新时间",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),v={current:o.pagination.current,size:o.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0,type:void 0,deptId:void 0},a=r({...v}),l=()=>{o.tableType.tableLoading=!0,m.get("/api/foodReservesLog/page",a.value).then(e=>{e.code==200&&(o.tableData=e.data.records,o.tableType.tableLoading=!1,o.pagination.total=e.data.total)}).catch(()=>{o.tableType.tableLoading=!1})},_=({type:e,data:t})=>{switch(e){case"check":k(t);break;case"sort":w(t);break;case"search":T(t);break}},y=e=>{o.pagination.current=e,a.value.current=e,l()},k=e=>{const t=e[0].id;u.value.changeDialog("check",t)},T=e=>{a.value.value=e.value,l()},w=e=>{e.name===""?(a.value.orderBy=void 0,a.value.column=void 0):(a.value.orderBy=e.sortType,a.value.column=e.name),l()},B=r([{name:"新增",value:"add"},{name:"删除",value:"delete"},{name:"入库",value:"warehousing"},{name:"出库",value:"out_of_stock"}]),c=r([]),L=()=>{m.get("/api/dept/tree").then(e=>{e.code==200&&(c.value=e.data.data)})};return I(()=>{l(),L()}),(e,t)=>{const V=i("el-tree-select"),x=i("el-option"),H=i("el-select");return s(),p("div",q,[d(R,F(o,{onHandleTableHeader:_,onHandleTablePagination:y,ref_key:"TableBodyRef",ref:h}),{TableHeaderRight:b(({selectData:E})=>[P(g).isLeader?(s(),f(V,{key:0,modelValue:a.value.deptId,"onUpdate:modelValue":t[0]||(t[0]=n=>a.value.deptId=n),data:c.value,clearable:"","check-strictly":"",placeholder:"请选择粮仓类型","render-after-expand":!1,class:"status-select",onChange:l},null,8,["modelValue","data"])):S("",!0),d(H,{modelValue:a.value.type,"onUpdate:modelValue":t[1]||(t[1]=n=>a.value.type=n),placeholder:"请选择操作类型",onChange:l,clearable:"",class:"status-select"},{default:b(()=>[(s(!0),p(A,null,z(B.value,n=>(s(),f(x,{key:n.value,label:n.name,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},16),d(C,{ref_key:"formDialog",ref:u,onInit:l},null,512)])}}};export{ve as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{u as U}from"./useDictData-d11253f2.js";import{f as c,h as A,ag as d,o as r,S as k,T as e,a as B,d as a,X as n,c as V,F as g,W as D,a7 as N,u as T,Y as E,M as F}from"./@vue-5dd246aa.js";const P={class:"dialog-footer"},M={__name:"ReportDialog",props:{ReportDialogData:{type:Object,default:()=>({title:"审批",type:"approve",data:{}})},modelValue:{}},emits:["update:modelValue","handleApprove"],setup(s,{emit:y}){const u=s,p=c(!1),l=c({}),f=()=>{p.value=!1,y("update:modelValue",!1)},w=()=>{y("handleApprove",l.value),f()};let v=c({});return A(()=>u.modelValue,b=>{u.modelValue&&(p.value=u.modelValue,u.ReportDialogData.type=="custom"?l.value=u.ReportDialogData.data:u.ReportDialogData.type=="approve"?l.value={status:"PASS"}:u.ReportDialogData.type=="decide"&&U(["t_dict_vote_result"]).then(i=>{v.value=i,l.value={voteResult:v.value.t_dict_vote_result[0].value}}))}),(b,o)=>{const i=d("el-input"),m=d("el-form-item"),_=d("el-radio"),R=d("el-radio-group"),x=d("el-form"),S=d("el-button"),C=d("el-dialog");return r(),k(C,{modelValue:p.value,"onUpdate:modelValue":o[4]||(o[4]=t=>p.value=t),title:s.ReportDialogData.title,width:"26%","before-close":f},{footer:e(()=>[B("span",P,[a(S,{onClick:f},{default:e(()=>[n("取消")]),_:1}),a(S,{type:"primary",onClick:w},{default:e(()=>[n(" 确认 ")]),_:1})])]),default:e(()=>[a(x,{model:l.value},{default:e(()=>[s.ReportDialogData.type=="approve"?(r(),V(g,{key:0},[a(m,{label:"审批意见"},{default:e(()=>[a(i,{modelValue:l.value.remarks,"onUpdate:modelValue":o[0]||(o[0]=t=>l.value.remarks=t),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),a(m,{label:"审批状态"},{default:e(()=>[a(R,{modelValue:l.value.status,"onUpdate:modelValue":o[1]||(o[1]=t=>l.value.status=t)},{default:e(()=>[a(_,{label:"PASS"},{default:e(()=>[n("同意")]),_:1}),a(_,{label:"REFUSE"},{default:e(()=>[n("拒绝")]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)):D("",!0),s.ReportDialogData.type=="decide"?(r(),V(g,{key:1},[a(m,{label:"决策意见"},{default:e(()=>[a(i,{modelValue:l.value.voteSuggest,"onUpdate:modelValue":o[2]||(o[2]=t=>l.value.voteSuggest=t),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),a(m,{label:"决策结果"},{default:e(()=>[a(R,{modelValue:l.value.voteResult,"onUpdate:modelValue":o[3]||(o[3]=t=>l.value.voteResult=t)},{default:e(()=>[(r(!0),V(g,null,N(T(v).t_dict_vote_result,(t,h)=>(r(),k(_,{label:t.value},{default:e(()=>[n(E(t.label),1)]),_:2},1032,["label"]))),256))]),_:1},8,["modelValue"])]),_:1})],64)):D("",!0),s.ReportDialogData.type=="custom"?F(b.$slots,"default",{key:2}):D("",!0)]),_:3},8,["model"])]),_:3},8,["modelValue","title"])}}};export{M as _};
|
|
@ -0,0 +1 @@
|
|||
System.register(["./useDictData-legacy-2e2cbf8d.js","./@vue-legacy-4de3d5b5.js"],(function(e,l){"use strict";var a,t,o,u,d,r,p,s,v,i,m,n,c,_,g,f,V;return{setters:[e=>{a=e.u},e=>{t=e.f,o=e.h,u=e.ag,d=e.o,r=e.S,p=e.T,s=e.a,v=e.d,i=e.X,m=e.c,n=e.F,c=e.W,_=e.a7,g=e.u,f=e.Y,V=e.M}],execute:function(){const l={class:"dialog-footer"};e("_",{__name:"ReportDialog",props:{ReportDialogData:{type:Object,default:()=>({title:"审批",type:"approve",data:{}})},modelValue:{}},emits:["update:modelValue","handleApprove"],setup(e,{emit:D}){const y=e,R=t(!1),b=t({}),S=()=>{R.value=!1,D("update:modelValue",!1)},k=()=>{D("handleApprove",b.value),S()};let U=t({});return o((()=>y.modelValue),(e=>{console.log(e,"newValue"),y.modelValue&&(R.value=y.modelValue,"custom"==y.ReportDialogData.type?b.value=y.ReportDialogData.data:"approve"==y.ReportDialogData.type?(console.log(124),b.value={status:"PASS"}):"decide"==y.ReportDialogData.type&&a(["t_dict_vote_result"]).then((e=>{U.value=e,console.log(U.value),b.value={voteResult:U.value.t_dict_vote_result[0].value}})))})),(a,t)=>{const o=u("el-input"),D=u("el-form-item"),y=u("el-radio"),h=u("el-radio-group"),w=u("el-form"),A=u("el-button"),j=u("el-dialog");return d(),r(j,{modelValue:R.value,"onUpdate:modelValue":t[4]||(t[4]=e=>R.value=e),title:e.ReportDialogData.title,width:"26%","before-close":S},{footer:p((()=>[s("span",l,[v(A,{onClick:S},{default:p((()=>[i("取消")])),_:1}),v(A,{type:"primary",onClick:k},{default:p((()=>[i(" 确认 ")])),_:1})])])),default:p((()=>[v(w,{model:b.value},{default:p((()=>["approve"==e.ReportDialogData.type?(d(),m(n,{key:0},[v(D,{label:"审批意见"},{default:p((()=>[v(o,{modelValue:b.value.remarks,"onUpdate:modelValue":t[0]||(t[0]=e=>b.value.remarks=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),v(D,{label:"审批状态"},{default:p((()=>[v(h,{modelValue:b.value.status,"onUpdate:modelValue":t[1]||(t[1]=e=>b.value.status=e)},{default:p((()=>[v(y,{label:"PASS"},{default:p((()=>[i("同意")])),_:1}),v(y,{label:"REFUSE"},{default:p((()=>[i("拒绝")])),_:1})])),_:1},8,["modelValue"])])),_:1})],64)):c("",!0),"decide"==e.ReportDialogData.type?(d(),m(n,{key:1},[v(D,{label:"决策意见"},{default:p((()=>[v(o,{modelValue:b.value.voteSuggest,"onUpdate:modelValue":t[2]||(t[2]=e=>b.value.voteSuggest=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),v(D,{label:"决策结果"},{default:p((()=>[v(h,{modelValue:b.value.voteResult,"onUpdate:modelValue":t[3]||(t[3]=e=>b.value.voteResult=e)},{default:p((()=>[(d(!0),m(n,null,_(g(U).t_dict_vote_result,((e,l)=>(d(),r(y,{label:e.value},{default:p((()=>[i(f(e.label),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue"])])),_:1})],64)):c("",!0),"custom"==e.ReportDialogData.type?V(a.$slots,"default",{key:2}):c("",!0)])),_:3},8,["model"])])),_:3},8,["modelValue","title"])}}})}}}));
|
|
@ -1 +0,0 @@
|
|||
import{E as C}from"./jspdf-28a20e90.js";import{h as N}from"./@nidi-d5f71d77.js";import{f as y,h as R,ag as m,o as g,S as k,T as o,a as L,d as e,X as V,c as w,F as P,W as D,M as A,Y as v}from"./@vue-5dd246aa.js";function q(d,_,t){return new Promise(function(n,s){document.querySelector(`#${d}`).classList.add("derive"),N(document.querySelector(`#${d}`),{allowTaint:!1,taintTest:!1,logging:!1,useCORS:!0,dpi:window.devicePixelRatio*4,scale:4}).then(a=>{for(var p=new C(t,"mm","a4"),u=a.getContext("2d"),r=t=="p"?190:272,f=t=="p"?272:190,l=Math.floor(f*a.width/r),i=0;i<a.height;){var c=document.createElement("canvas");c.width=a.width,c.height=Math.min(l,a.height-i),c.getContext("2d").putImageData(u.getImageData(0,i,a.width,Math.min(l,a.height-i)),0,0),p.addImage(c.toDataURL("image/jpeg",1),"JPEG",10,10,r,Math.min(f,r*c.height/c.width)),i+=l,i<a.height&&p.addPage()}p.save(_+".pdf"),document.querySelector(`#${d}`).classList.remove("derive"),n()})})}const E={class:"dialog-footer"},F={__name:"ReportDialog",props:{ReportDialogData:{type:Object,default:()=>({title:"审批",type:"approve",data:{}})},modelValue:{}},emits:["update:modelValue","handleApprove"],setup(d,{emit:_}){const t=d,n=y(!1),s=y({}),a=()=>{n.value=!1,_("update:modelValue",!1)},p=()=>{_("handleApprove",s.value),a()};return R(()=>t.modelValue,u=>{t.modelValue&&(n.value=t.modelValue,t.ReportDialogData.type=="custom"?s.value=t.ReportDialogData.data:t.ReportDialogData.type=="approve"&&(s.value={status:"PASS"}))}),(u,r)=>{const f=m("el-input"),l=m("el-form-item"),i=m("el-radio"),c=m("el-radio-group"),S=m("el-form"),b=m("el-button"),x=m("el-dialog");return g(),k(x,{modelValue:n.value,"onUpdate:modelValue":r[2]||(r[2]=h=>n.value=h),title:"审批",width:"26%","before-close":a},{footer:o(()=>[L("span",E,[e(b,{onClick:a},{default:o(()=>[V("取消")]),_:1}),e(b,{type:"primary",onClick:p},{default:o(()=>[V(" 确认 ")]),_:1})])]),default:o(()=>[e(S,{model:s.value},{default:o(()=>[d.ReportDialogData.type=="approve"?(g(),w(P,{key:0},[e(l,{label:"审批意见"},{default:o(()=>[e(f,{modelValue:s.value.remarks,"onUpdate:modelValue":r[0]||(r[0]=h=>s.value.remarks=h),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),e(l,{label:"审批状态"},{default:o(()=>[e(c,{modelValue:s.value.status,"onUpdate:modelValue":r[1]||(r[1]=h=>s.value.status=h)},{default:o(()=>[e(i,{label:"PASS"},{default:o(()=>[V("同意")]),_:1}),e(i,{label:"REFUSE"},{default:o(()=>[V("拒绝")]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)):D("",!0),d.ReportDialogData.type=="custom"?A(u.$slots,"default",{key:1}):D("",!0)]),_:3},8,["model"])]),_:3},8,["modelValue"])}}};const U={key:0,style:{color:"#67c23a"}},$={key:1,style:{color:"#f56c6c"}},M={key:2},I={__name:"ReportLog",props:{ReportLogData:{type:Array,default:()=>[]},modelValue:{}},emits:["update:modelValue"],setup(d,{emit:_}){const t=d,n=y(!1),s=()=>{n.value=!1,_("update:modelValue",!1)};return R(()=>t.modelValue,a=>{t.modelValue&&(n.value=t.modelValue)}),(a,p)=>{const u=m("el-table-column"),r=m("el-table"),f=m("el-drawer");return g(),k(f,{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=l=>n.value=l),title:"日志","before-close":s,class:"report-drawer"},{default:o(()=>[e(r,{data:d.ReportLogData,stripe:"",border:"",style:{width:"100%"}},{default:o(()=>[e(u,{type:"index",width:"50"}),e(u,{prop:"createdName",label:"操作人"}),e(u,{prop:"createdAt",label:"时间"}),e(u,{label:"状态"},{default:o(l=>[l.row.statusName=="通过"?(g(),w("span",U,v(l.row.statusName),1)):l.row.statusName=="驳回"?(g(),w("span",$,v(l.row.statusName),1)):(g(),w("span",M,v(l.row.statusName),1))]),_:1}),e(u,{prop:"remarks",label:"建议"})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}};export{F as _,I as a,q as h};
|
|
@ -0,0 +1 @@
|
|||
import"./ReportLog.vue_vue_type_style_index_0_lang-362bb1e5.js";import{f as V,h as b,ag as r,o,S as y,T as n,d as a,c as d,Y as u}from"./@vue-5dd246aa.js";const h={key:0,style:{color:"#67c23a"}},k={key:1,style:{color:"#f56c6c"}},N={key:2},x={__name:"ReportLog",props:{ReportLogData:{type:Array,default:()=>[]},modelValue:{}},emits:["update:modelValue"],setup(c,{emit:p}){const s=c,l=V(!1),_=()=>{l.value=!1,p("update:modelValue",!1)};return b(()=>s.modelValue,i=>{s.modelValue&&(l.value=s.modelValue)}),(i,m)=>{const t=r("el-table-column"),w=r("el-table"),f=r("el-drawer");return o(),y(f,{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=e=>l.value=e),title:"日志","before-close":_,class:"report-drawer"},{default:n(()=>[a(w,{data:c.ReportLogData,stripe:"",border:"",style:{width:"100%"}},{default:n(()=>[a(t,{type:"index",width:"50"}),a(t,{prop:"createdName",label:"操作人"}),a(t,{prop:"createdAt",label:"时间"}),a(t,{label:"状态"},{default:n(e=>[e.row.statusName=="通过"?(o(),d("span",h,u(e.row.statusName),1)):e.row.statusName=="驳回"?(o(),d("span",k,u(e.row.statusName),1)):(o(),d("span",N,u(e.row.statusName),1))]),_:1}),a(t,{prop:"remarks",label:"建议"})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}};export{x as _};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
System.register(["./ReportLog.vue_vue_type_style_index_0_lang-legacy-efeab05e.js","./@vue-legacy-4de3d5b5.js"],(function(e,a){"use strict";var t,l,o,r,u,s,d,p,n;return{setters:[null,e=>{t=e.f,l=e.h,o=e.ag,r=e.o,u=e.S,s=e.T,d=e.d,p=e.c,n=e.Y}],execute:function(){const a={key:0,style:{color:"#67c23a"}},c={key:1,style:{color:"#f56c6c"}},m={key:2};e("_",{__name:"ReportLog",props:{ReportLogData:{type:Array,default:()=>[]},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:y}){const i=e,_=t(!1),g=()=>{_.value=!1,y("update:modelValue",!1)};return l((()=>i.modelValue),(e=>{console.log(e,"newValue"),i.modelValue&&(_.value=i.modelValue)})),(t,l)=>{const y=o("el-table-column"),i=o("el-table"),w=o("el-drawer");return r(),u(w,{modelValue:_.value,"onUpdate:modelValue":l[0]||(l[0]=e=>_.value=e),title:"日志","before-close":g,class:"report-drawer"},{default:s((()=>[d(i,{data:e.ReportLogData,stripe:"",border:"",style:{width:"100%"}},{default:s((()=>[d(y,{type:"index",width:"50"}),d(y,{prop:"createdName",label:"操作人"}),d(y,{prop:"createdAt",label:"时间"}),d(y,{label:"状态"},{default:s((e=>["通过"==e.row.statusName?(r(),p("span",a,n(e.row.statusName),1)):"驳回"==e.row.statusName?(r(),p("span",c,n(e.row.statusName),1)):(r(),p("span",m,n(e.row.statusName),1))])),_:1}),d(y,{prop:"remarks",label:"建议"})])),_:1},8,["data"])])),_:1},8,["modelValue"])}}})}}}));
|
|
@ -0,0 +1 @@
|
|||
import{E as u}from"./jspdf-28a20e90.js";import{h as s}from"./@nidi-d5f71d77.js";function _(h,n,o){return new Promise(function(l,c){document.querySelector(`#${h}`).classList.add("derive"),s(document.querySelector(`#${h}`),{allowTaint:!1,taintTest:!1,logging:!1,useCORS:!0,dpi:window.devicePixelRatio*4,scale:4}).then(e=>{for(var r=new u(o,"mm","a4"),g=e.getContext("2d"),d=o=="p"?190:272,m=o=="p"?272:190,a=Math.floor(m*e.width/d),t=0;t<e.height;){var i=document.createElement("canvas");i.width=e.width,i.height=Math.min(a,e.height-t),i.getContext("2d").putImageData(g.getImageData(0,t,e.width,Math.min(a,e.height-t)),0,0),r.addImage(i.toDataURL("image/jpeg",1),"JPEG",10,10,d,Math.min(m,d*i.height/i.width)),t+=a,t<e.height&&r.addPage()}r.save(n+".pdf"),document.querySelector(`#${h}`).classList.remove("derive"),l()})})}export{_ as h};
|
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
|
@ -1 +1 @@
|
|||
import"./index-a7249baf.js";import"./lodash.clonedeep-2f114c62.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,a7 as m,M as p,P as v,u as f,O as b,Y as y}from"./@vue-5dd246aa.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-02b21280"]]);export{F as T};
|
||||
import"./index-34e93722.js";import"./lodash.clonedeep-2f114c62.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,a7 as m,M as p,P as v,u as f,O as b,Y as y}from"./@vue-5dd246aa.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-02b21280"]]);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
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
|
@ -1 +1 @@
|
|||
import{f as _,h as L,ag as r,o as i,c as p,d as n,T as d,X as N,U as S,Z as A,a as h,F as z,a7 as T,W as v,a0 as b,Y as q,S as E}from"./@vue-5dd246aa.js";import{h as y}from"./index-a7249baf.js";import{c as k}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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 R={class:"upload"},$={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(w,{emit:c}){const a=w;_([]);const t=_([]),C=e=>!0,m=e=>k(e),g=e=>k(e);L(()=>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=g(a.modelValue)},{immediate:!0});const F=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{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)))})},x=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},B=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"),U=r("CircleCloseFilled"),V=r("el-icon");return i(),p("div",R,[n(o,{multiple:"","show-file-list":!1,"before-upload":C,"http-request":F,disabled:a.disabled},{default:d(()=>[n(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[N("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),S(h("span",$,"未选择任何文件",512),[[A,t.value.length===0]]),t.value.length>0?(i(!0),p(z,{key:0},T(t.value,(u,f)=>(i(),p("span",{class:"fileBox",key:f,onClick:b(D=>B(u),["stop"])},[h("span",null,q(u.name),1),a.disabled?v("",!0):(i(),E(V,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>x(f),["stop"])},{default:d(()=>[n(U)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},ve=I(M,[["__scopeId","data-v-f028b45f"]]);export{ve as default};
|
||||
import{f as _,h as L,ag as r,o as i,c as p,d as n,T as d,X as N,U as S,Z as A,a as h,F as z,a7 as T,W as v,a0 as b,Y as q,S as E}from"./@vue-5dd246aa.js";import{h as y}from"./index-34e93722.js";import{c as k}from"./lodash.clonedeep-2f114c62.js";/* empty css */import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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 R={class:"upload"},$={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(w,{emit:c}){const a=w;_([]);const t=_([]),C=e=>!0,m=e=>k(e),g=e=>k(e);L(()=>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=g(a.modelValue)},{immediate:!0});const F=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{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)))})},x=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},B=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"),U=r("CircleCloseFilled"),V=r("el-icon");return i(),p("div",R,[n(o,{multiple:"","show-file-list":!1,"before-upload":C,"http-request":F,disabled:a.disabled},{default:d(()=>[n(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[N("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),S(h("span",$,"未选择任何文件",512),[[A,t.value.length===0]]),t.value.length>0?(i(!0),p(z,{key:0},T(t.value,(u,f)=>(i(),p("span",{class:"fileBox",key:f,onClick:b(D=>B(u),["stop"])},[h("span",null,q(u.name),1),a.disabled?v("",!0):(i(),E(V,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>x(f),["stop"])},{default:d(()=>[n(U)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},ve=I(M,[["__scopeId","data-v-f028b45f"]]);export{ve as default};
|
|
@ -1 +1 @@
|
|||
System.register(["./@vue-legacy-4de3d5b5.js","./index-legacy-df0795e1.js","./lodash.clonedeep-legacy-81abd881.js","./Upload.vue_vue_type_style_index_0_scoped_f028b45f_lang-legacy-8f32230c.js","./_plugin-vue_export-helper-legacy-762b7923.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./vue-router-legacy-1e8e1d15.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-efe0366d.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@element-plus-legacy-bb874362.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.js","./core-js-legacy-b197ddf1.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,c,d,i,p,y,r,g,m,j,f,v,h,_,b;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,c=e.T,d=e.X,i=e.U,p=e.Z,y=e.a,r=e.F,g=e.a7,m=e.W,j=e.a0,f=e.Y,v=e.S},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,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 C=a([]),V=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(C.value=(l=x.modelValue,_(l))):C.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&&(C.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(C.value)),console.log(x.modelValue,C.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(_,{multiple:"","show-file-list":!1,"before-upload":V,"http-request":F,disabled:x.disabled},{default:c((()=>[u(s,{type:"primary",plain:"",disabled:x.disabled},{default:c((()=>[d("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(y("span",k,"未选择任何文件",512),[[p,0===C.value.length]]),C.value.length>0?(n(!0),o(r,{key:0},g(C.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:j((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"])},[y("span",null,f(e.name),1),x.disabled?m("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:j((e=>(e=>{C.value.splice(e,1),b("update:modelValue",z(C.value))})(l)),["stop"])},{default:c((()=>[u(U)])),_:2},1032,["onClick"]))],8,w)))),128)):m("",!0)])}}};e("default",b(x,[["__scopeId","data-v-f028b45f"]]))}}}));
|
||||
System.register(["./@vue-legacy-4de3d5b5.js","./index-legacy-5d2946de.js","./lodash.clonedeep-legacy-81abd881.js","./Upload.vue_vue_type_style_index_0_scoped_f028b45f_lang-legacy-8f32230c.js","./_plugin-vue_export-helper-legacy-762b7923.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./vue-router-legacy-1e8e1d15.js","./tools-legacy-fa9cbc87.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-efe0366d.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@element-plus-legacy-bb874362.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.js","./core-js-legacy-b197ddf1.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,c,d,i,p,y,r,g,m,j,f,v,h,_,b;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,c=e.T,d=e.X,i=e.U,p=e.Z,y=e.a,r=e.F,g=e.a7,m=e.W,j=e.a0,f=e.Y,v=e.S},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,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 C=a([]),V=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(C.value=(l=x.modelValue,_(l))):C.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&&(C.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(C.value)),console.log(x.modelValue,C.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(_,{multiple:"","show-file-list":!1,"before-upload":V,"http-request":F,disabled:x.disabled},{default:c((()=>[u(s,{type:"primary",plain:"",disabled:x.disabled},{default:c((()=>[d("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(y("span",k,"未选择任何文件",512),[[p,0===C.value.length]]),C.value.length>0?(n(!0),o(r,{key:0},g(C.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:j((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"])},[y("span",null,f(e.name),1),x.disabled?m("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:j((e=>(e=>{C.value.splice(e,1),b("update:modelValue",z(C.value))})(l)),["stop"])},{default:c((()=>[u(U)])),_:2},1032,["onClick"]))],8,w)))),128)):m("",!0)])}}};e("default",b(x,[["__scopeId","data-v-f028b45f"]]))}}}));
|
|
@ -1 +1 @@
|
|||
import{u as b}from"./vue-router-ab2ba79f.js";import{h,a as k}from"./index-a7249baf.js";import{t as x}from"./tools-0351b48a.js";import{E as c}from"./element-plus-a215fcb5.js";import{f as u,ag as t,o as C,S as y,T as s,a as F,d as r,X as g}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const re={__name:"change_password",setup(U){const m=b(),i=u(!0),p=u(null),P=u({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(d,e,a)=>{e!==o.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),o=u({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),_=()=>{p.value.validate(d=>{if(d)h.put("/api/auth/editPassword",{newPassword:o.value.newPassword,oldPassword:o.value.oldPassword}).then(e=>{e.code===200?(x.data.clear("user"),k("token"),c({message:e.message,type:"success"}),m.push("/grain/login")):c({message:e.message,type:"error"})});else return!1})},w=d=>{m.go(-1)};return(d,e)=>{const a=t("el-input"),n=t("el-form-item"),v=t("el-form"),f=t("el-button"),V=t("el-dialog");return C(),y(V,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=l=>i.value=l),title:"修改密码",width:"350px","before-close":w},{footer:s(()=>[F("span",null,[r(f,{type:"primary",onClick:_},{default:s(()=>[g("保存")]),_:1}),r(f,{onClick:w},{default:s(()=>[g("关闭")]),_:1})])]),default:s(()=>[r(v,{ref_key:"ruleFormRef",ref:p,model:o.value,rules:P.value,"label-width":"100px"},{default:s(()=>[r(n,{label:"旧密码",prop:"oldPassword"},{default:s(()=>[r(a,{modelValue:o.value.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.oldPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码",prop:"newPassword"},{default:s(()=>[r(a,{modelValue:o.value.newPassword,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.newPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码确认",prop:"confirmPassword"},{default:s(()=>[r(a,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.confirmPassword=l),"show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}};export{re as default};
|
||||
import{u as b}from"./vue-router-ab2ba79f.js";import{h,a as k}from"./index-34e93722.js";import{t as x}from"./tools-0351b48a.js";import{E as c}from"./element-plus-a215fcb5.js";import{f as u,ag as t,o as C,S as y,T as s,a as F,d as r,X as g}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const re={__name:"change_password",setup(U){const m=b(),i=u(!0),p=u(null),P=u({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(d,e,a)=>{e!==o.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),o=u({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),_=()=>{p.value.validate(d=>{if(d)h.put("/api/auth/editPassword",{newPassword:o.value.newPassword,oldPassword:o.value.oldPassword}).then(e=>{e.code===200?(x.data.clear("user"),k("token"),c({message:e.message,type:"success"}),m.push("/grain/login")):c({message:e.message,type:"error"})});else return!1})},w=d=>{m.go(-1)};return(d,e)=>{const a=t("el-input"),n=t("el-form-item"),v=t("el-form"),f=t("el-button"),V=t("el-dialog");return C(),y(V,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=l=>i.value=l),title:"修改密码",width:"350px","before-close":w},{footer:s(()=>[F("span",null,[r(f,{type:"primary",onClick:_},{default:s(()=>[g("保存")]),_:1}),r(f,{onClick:w},{default:s(()=>[g("关闭")]),_:1})])]),default:s(()=>[r(v,{ref_key:"ruleFormRef",ref:p,model:o.value,rules:P.value,"label-width":"100px"},{default:s(()=>[r(n,{label:"旧密码",prop:"oldPassword"},{default:s(()=>[r(a,{modelValue:o.value.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.oldPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码",prop:"newPassword"},{default:s(()=>[r(a,{modelValue:o.value.newPassword,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.newPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码确认",prop:"confirmPassword"},{default:s(()=>[r(a,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.confirmPassword=l),"show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}};export{re as default};
|
|
@ -1 +1 @@
|
|||
System.register(["./vue-router-legacy-1e8e1d15.js","./index-legacy-df0795e1.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-efe0366d.js","./@vue-legacy-4de3d5b5.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./_plugin-vue_export-helper-legacy-762b7923.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@element-plus-legacy-bb874362.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.js","./core-js-legacy-b197ddf1.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,o,r,u,d,n,t,c,g,i,m,w;return{setters:[e=>{a=e.u},e=>{s=e.h,o=e.a},e=>{r=e.t},e=>{u=e.E},e=>{d=e.f,n=e.ag,t=e.o,c=e.S,g=e.T,i=e.a,m=e.d,w=e.X},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"change_password",setup(e){const l=a(),p=d(!0),y=d(null),j=d({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(e,l,a)=>{console.log(f.newPassword),console.log(l),l!==f.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),f=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),v=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/api/auth/editPassword",{newPassword:f.value.newPassword,oldPassword:f.value.oldPassword}).then((e=>{200===e.code?(r.data.clear("user"),o("token"),u({message:e.message,type:"success"}),l.push("/grain/login")):u({message:e.message,type:"error"})}))}))},P=e=>{l.go(-1)};return(e,l)=>{const a=n("el-input"),s=n("el-form-item"),o=n("el-form"),r=n("el-button"),u=n("el-dialog");return t(),c(u,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=e=>p.value=e),title:"修改密码",width:"350px","before-close":P},{footer:g((()=>[i("span",null,[m(r,{type:"primary",onClick:v},{default:g((()=>[w("保存")])),_:1}),m(r,{onClick:P},{default:g((()=>[w("关闭")])),_:1})])])),default:g((()=>[m(o,{ref_key:"ruleFormRef",ref:y,model:f.value,rules:j.value,"label-width":"100px"},{default:g((()=>[m(s,{label:"旧密码",prop:"oldPassword"},{default:g((()=>[m(a,{modelValue:f.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>f.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码",prop:"newPassword"},{default:g((()=>[m(a,{modelValue:f.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>f.value.newPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码确认",prop:"confirmPassword"},{default:g((()=>[m(a,{modelValue:f.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>f.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}}));
|
||||
System.register(["./vue-router-legacy-1e8e1d15.js","./index-legacy-5d2946de.js","./tools-legacy-fa9cbc87.js","./element-plus-legacy-efe0366d.js","./@vue-legacy-4de3d5b5.js","./jspdf-legacy-62dde53b.js","./@babel-legacy-633f46ed.js","./fflate-legacy-e1443086.js","./pinia-legacy-99326f0e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./_plugin-vue_export-helper-legacy-762b7923.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-c8e81244.js","./@element-plus-legacy-bb874362.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-b8c949e6.js","./core-js-legacy-b197ddf1.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,o,r,u,d,n,t,c,g,i,m,w;return{setters:[e=>{a=e.u},e=>{s=e.h,o=e.a},e=>{r=e.t},e=>{u=e.E},e=>{d=e.f,n=e.ag,t=e.o,c=e.S,g=e.T,i=e.a,m=e.d,w=e.X},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"change_password",setup(e){const l=a(),p=d(!0),y=d(null),j=d({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(e,l,a)=>{console.log(f.newPassword),console.log(l),l!==f.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),f=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),v=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/api/auth/editPassword",{newPassword:f.value.newPassword,oldPassword:f.value.oldPassword}).then((e=>{200===e.code?(r.data.clear("user"),o("token"),u({message:e.message,type:"success"}),l.push("/grain/login")):u({message:e.message,type:"error"})}))}))},P=e=>{l.go(-1)};return(e,l)=>{const a=n("el-input"),s=n("el-form-item"),o=n("el-form"),r=n("el-button"),u=n("el-dialog");return t(),c(u,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=e=>p.value=e),title:"修改密码",width:"350px","before-close":P},{footer:g((()=>[i("span",null,[m(r,{type:"primary",onClick:v},{default:g((()=>[w("保存")])),_:1}),m(r,{onClick:P},{default:g((()=>[w("关闭")])),_:1})])])),default:g((()=>[m(o,{ref_key:"ruleFormRef",ref:y,model:f.value,rules:j.value,"label-width":"100px"},{default:g((()=>[m(s,{label:"旧密码",prop:"oldPassword"},{default:g((()=>[m(a,{modelValue:f.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>f.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码",prop:"newPassword"},{default:g((()=>[m(a,{modelValue:f.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>f.value.newPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),m(s,{label:"新密码确认",prop:"confirmPassword"},{default:g((()=>[m(a,{modelValue:f.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>f.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}}));
|
|
@ -1 +1 @@
|
|||
import{_ as V}from"./TableBody-6182b74b.js";import{y as x}from"./yd_diaInput-fffea40f.js";import{h as i}from"./index-a7249baf.js";import{E as n}from"./element-plus-a215fcb5.js";import{f as p,a1 as u,k as B,o as E,c as F,d as y,Q as L}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-ba666efa.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";import"./index-b6b1a4f1.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const q={class:"example"},ue={__name:"department",setup(A){const c=p(!1),m=u({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isExpand:!0,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:"userName",label:"部门负责人",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=u({value:!1,changeValue:e=>{l.value=e}}),h=u([{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},{type:"userRadioOption",title:"部门负责人",control:!1,placeholder:"请选择部门负责人",model:"userId",userName:"userName",row:24}]),b=p({code:"",name:"",pid:"",remarks:"",sortNo:0,userId:"",userName:""}),f=p({type:"create",name:"新增",id:""}),N=p({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}],userId:[{required:!0,message:"请输入部门负责人"}]}),s=u({column:"sortNo",orderBy:"asc",value:void 0}),g=()=>{i.get("/api/dept/tree").then(e=>{e.code==200&&(h[0].options=e.data.data)})},d=()=>{m.tableType.tableLoading=!0,i.get("/api/dept/list",s).then(e=>{e.code==200&&(m.tableData=e.data,m.tableType.tableLoading=!1)}).catch(()=>{m.tableType.tableLoading=!1})},v=({type:e,data:t})=>{switch(e){case"create":w();break;case"edit":T(t);break;case"delete":k(t);break;case"sort":H(t);break;case"search":I(t);break}},k=e=>{const t=e.map(a=>a.id);i.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(n({message:"删除成功",type:"success"}),d(),g()):n({message:a.message,type:"error"})})},_=(e,t,a)=>{if(e==="create"){let o={...t,userName:void 0};t.pid===""&&(o={...o,pid:0}),i.post("/api/dept/save",o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,d(),g()):n.error(r.message)})}else if(e==="edit"){let o={...t,userName:void 0};t.pid===""&&(o={...o,pid:0}),i.put(`/api/dept/edit?id=${a}`,o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,d()):n.error(r.message)})}},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},c.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0,userId:"",userName:""}},T=e=>{const t=e[0].id;c.value=!1,i.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(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,userId:a.data.data.userId,userName:a.data.data.userName},f.value={type:"edit",name:"编辑",id:t})})},I=e=>{s.value=e.value,d()},H=e=>{e.name===""?(s.orderBy=void 0,s.column=void 0):(s.orderBy=e.sortType,s.column=e.name),d()};return B(()=>{d(),g()}),(e,t)=>(E(),F("div",q,[y(V,L(m,{onHandleTableHeader:v}),null,16),y(x,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:c.value,buttonName:f.value,ruleForm:b.value,rules:N.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{ue as default};
|
||||
import{_ as V}from"./TableBody-6182b74b.js";import{y as x}from"./yd_diaInput-08e8854d.js";import{h as i}from"./index-34e93722.js";import{E as n}from"./element-plus-a215fcb5.js";import{f as p,a1 as u,k as B,o as E,c as F,d as y,Q as L}from"./@vue-5dd246aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-ba666efa.js";import"./lodash.clonedeep-2f114c62.js";import"./core-js-c6c47c20.js";import"./index-991dd003.js";/* empty css */import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const q={class:"example"},ue={__name:"department",setup(A){const c=p(!1),m=u({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isExpand:!0,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:"userName",label:"部门负责人",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=u({value:!1,changeValue:e=>{l.value=e}}),h=u([{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},{type:"userRadioOption",title:"部门负责人",control:!1,placeholder:"请选择部门负责人",model:"userId",userName:"userName",row:24}]),b=p({code:"",name:"",pid:"",remarks:"",sortNo:0,userId:"",userName:""}),f=p({type:"create",name:"新增",id:""}),N=p({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}],userId:[{required:!0,message:"请输入部门负责人"}]}),s=u({column:"sortNo",orderBy:"asc",value:void 0}),g=()=>{i.get("/api/dept/tree").then(e=>{e.code==200&&(h[0].options=e.data.data)})},d=()=>{m.tableType.tableLoading=!0,i.get("/api/dept/list",s).then(e=>{e.code==200&&(m.tableData=e.data,m.tableType.tableLoading=!1)}).catch(()=>{m.tableType.tableLoading=!1})},v=({type:e,data:t})=>{switch(e){case"create":w();break;case"edit":T(t);break;case"delete":k(t);break;case"sort":H(t);break;case"search":I(t);break}},k=e=>{const t=e.map(a=>a.id);i.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(n({message:"删除成功",type:"success"}),d(),g()):n({message:a.message,type:"error"})})},_=(e,t,a)=>{if(e==="create"){let o={...t,userName:void 0};t.pid===""&&(o={...o,pid:0}),i.post("/api/dept/save",o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,d(),g()):n.error(r.message)})}else if(e==="edit"){let o={...t,userName:void 0};t.pid===""&&(o={...o,pid:0}),i.put(`/api/dept/edit?id=${a}`,o).then(r=>{r.code==200?(n({message:r.message,type:"success"}),l.value=!1,d()):n.error(r.message)})}},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},c.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0,userId:"",userName:""}},T=e=>{const t=e[0].id;c.value=!1,i.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(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,userId:a.data.data.userId,userName:a.data.data.userName},f.value={type:"edit",name:"编辑",id:t})})},I=e=>{s.value=e.value,d()},H=e=>{e.name===""?(s.orderBy=void 0,s.column=void 0):(s.orderBy=e.sortType,s.column=e.name),d()};return B(()=>{d(),g()}),(e,t)=>(E(),F("div",q,[y(V,L(m,{onHandleTableHeader:v}),null,16),y(x,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:c.value,buttonName:f.value,ruleForm:b.value,rules:N.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import N from"./Upload-307df2df.js";import{_ as P}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a1 as g,n as R,ag as r,o as S,c as T,d as e,T as t,X as p,a as b}from"./@vue-5dd246aa.js";import"./index-a7249baf.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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-2f114c62.js";/* empty css */const H={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"}]}),n=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=()=>{n.value=!0},V=d=>{},z=d=>{};return R(()=>{f.value=window.innerHeight-320}),(d,a)=>{const s=r("el-table-column"),i=r("el-button"),q=r("el-table"),w=r("el-pagination"),F=r("el-form-item"),U=r("el-col"),$=r("el-row"),B=r("el-form"),E=r("el-dialog");return S(),T("div",H,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(s,{prop:"qiye",label:"附件名称",sortable:""}),e(s,{prop:"status",label:"文件类型",sortable:""}),e(s,{prop:"name",label:"上传人",sortable:""}),e(s,{prop:"lastname",label:"最后修改人",sortable:""}),e(s,{prop:"address",label:"最后修改日期",sortable:""}),e(s,{fixed:"right",label:"操作"},{default:t(()=>[e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(i,{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(E,{modelValue:n.value,"onUpdate:modelValue":a[5]||(a[5]=l=>n.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(i,{type:"primary",onClick:a[3]||(a[3]=l=>n.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(i,{onClick:a[4]||(a[4]=l=>n.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e(B,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:d.disabledVal,"hide-required-asterisk":d.hideRequired},{default:t(()=>[e($,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(N,{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"])])}}},ve=P(D,[["__scopeId","data-v-41b38f3f"]]);export{ve as default};
|
||||
import N from"./Upload-196c300d.js";import{_ as P}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a1 as g,n as R,ag as r,o as S,c as T,d as e,T as t,X as p,a as b}from"./@vue-5dd246aa.js";import"./index-34e93722.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./vue-router-ab2ba79f.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-a215fcb5.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.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-2f114c62.js";/* empty css */const H={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"}]}),n=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=()=>{n.value=!0},V=d=>{},z=d=>{};return R(()=>{f.value=window.innerHeight-320}),(d,a)=>{const s=r("el-table-column"),i=r("el-button"),q=r("el-table"),w=r("el-pagination"),F=r("el-form-item"),U=r("el-col"),$=r("el-row"),B=r("el-form"),E=r("el-dialog");return S(),T("div",H,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(s,{prop:"qiye",label:"附件名称",sortable:""}),e(s,{prop:"status",label:"文件类型",sortable:""}),e(s,{prop:"name",label:"上传人",sortable:""}),e(s,{prop:"lastname",label:"最后修改人",sortable:""}),e(s,{prop:"address",label:"最后修改日期",sortable:""}),e(s,{fixed:"right",label:"操作"},{default:t(()=>[e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(i,{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(E,{modelValue:n.value,"onUpdate:modelValue":a[5]||(a[5]=l=>n.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(i,{type:"primary",onClick:a[3]||(a[3]=l=>n.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(i,{onClick:a[4]||(a[4]=l=>n.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e(B,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:d.disabledVal,"hide-required-asterisk":d.hideRequired},{default:t(()=>[e($,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(N,{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"])])}}},ve=P(D,[["__scopeId","data-v-41b38f3f"]]);export{ve as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{a as T,u as j}from"./vue-router-ab2ba79f.js";import{h as x}from"./index-a7249baf.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import{E as B}from"./element-plus-a215fcb5.js";import{f as p,a1 as D,n as F,ag as u,aq as N,o as C,c as R,U as S,S as V,T as l,d as o,a as _,Y as g,u as A,X as k}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const H={class:"ParMain"},M={__name:"detailsIndex",setup(O){const f=T();p(f.query.type),j();const L=p(!1),h=p(0),c=p(!1),v=p([]),r=D({current:1,size:12,id:f.query.id}),y=p(0),m=()=>{c.value=!0,r.type=f.query.type,x.get("/api/alteration/selectOrganizationFileList",r).then(n=>{n.code==200&&(v.value=n.data.records,y.value=n.data.total,c.value=!1)}).catch(()=>{c.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const b=(n,e)=>{if(n==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(a=>{const i=window.URL.createObjectURL(a),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(n==="preview"){const a=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(a||i||s||w){const d=document.createElement("a");d.href=e.path,d.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=n=>{r.current=n,m()},E=n=>{r.current=n,m()};return F(()=>{h.value=window.innerHeight-320}),(n,e)=>{const a=u("el-table-column"),i=u("el-button"),s=u("el-table"),w=u("el-pagination"),d=N("loading");return C(),R("div",H,[S((C(),V(s,{data:v.value,"default-sort":{prop:"date",order:"descending"},height:h.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:l(()=>[o(a,{label:"序号",type:"index",width:"100",align:"center"}),o(a,{prop:"name",label:"附件名称"}),o(a,{label:"附件类型"},{default:l(t=>[_("span",null,g(A(z)[t.row.targetType]),1)]),_:1}),o(a,{label:"文件类型"},{default:l(t=>[_("span",null,g(t.row.suffix),1)]),_:1}),o(a,{prop:"createdId",label:"上传人"}),o(a,{label:"上传时间"},{default:l(t=>[_("span",null,g(t.row.createdAt.split(" ")[0]),1)]),_:1}),o(a,{prop:"updatedId",label:"最后修改人"}),o(a,{label:"最后修改日期"},{default:l(t=>[_("span",null,g(t.row.updatedAt.split(" ")[0]),1)]),_:1}),o(a,{fixed:"right",label:"操作",width:"120"},{default:l(t=>[o(i,{link:"",type:"primary",size:"large",onClick:I=>b("preview",t.row)},{default:l(()=>[k("预览")]),_:2},1032,["onClick"]),o(i,{link:"",type:"primary",size:"large",onClick:I=>b("download",t.row)},{default:l(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[d,c.value]]),o(w,{style:{"margin-top":"100px"},"current-page":r.current,"onUpdate:current-page":e[0]||(e[0]=t=>r.current=t),"page-size":r.size,"onUpdate:page-size":e[1]||(e[1]=t=>r.size=t),background:L.value,layout:"->,total, prev, pager, next, jumper",total:y.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},me=U(M,[["__scopeId","data-v-56ff1069"]]);export{me as default};
|
||||
import{a as T,u as j}from"./vue-router-ab2ba79f.js";import{h as x}from"./index-34e93722.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import{E as B}from"./element-plus-a215fcb5.js";import{f as p,a1 as D,n as F,ag as u,aq as N,o as C,c as R,U as S,S as V,T as l,d as o,a as _,Y as g,u as A,X as k}from"./@vue-5dd246aa.js";import"./jspdf-28a20e90.js";import"./@babel-5a4b8c9a.js";import"./fflate-8981c52c.js";import"./tools-0351b48a.js";import"./pinia-6e226388.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-77cc1d99.js";import"./@element-plus-ba666efa.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-88f1e3c5.js";import"./core-js-c6c47c20.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const H={class:"ParMain"},M={__name:"detailsIndex",setup(O){const f=T();p(f.query.type),j();const L=p(!1),h=p(0),c=p(!1),v=p([]),r=D({current:1,size:12,id:f.query.id}),y=p(0),m=()=>{c.value=!0,r.type=f.query.type,x.get("/api/alteration/selectOrganizationFileList",r).then(n=>{n.code==200&&(v.value=n.data.records,y.value=n.data.total,c.value=!1)}).catch(()=>{c.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const b=(n,e)=>{if(n==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(a=>{const i=window.URL.createObjectURL(a),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(n==="preview"){const a=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(a||i||s||w){const d=document.createElement("a");d.href=e.path,d.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=n=>{r.current=n,m()},E=n=>{r.current=n,m()};return F(()=>{h.value=window.innerHeight-320}),(n,e)=>{const a=u("el-table-column"),i=u("el-button"),s=u("el-table"),w=u("el-pagination"),d=N("loading");return C(),R("div",H,[S((C(),V(s,{data:v.value,"default-sort":{prop:"date",order:"descending"},height:h.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:l(()=>[o(a,{label:"序号",type:"index",width:"100",align:"center"}),o(a,{prop:"name",label:"附件名称"}),o(a,{label:"附件类型"},{default:l(t=>[_("span",null,g(A(z)[t.row.targetType]),1)]),_:1}),o(a,{label:"文件类型"},{default:l(t=>[_("span",null,g(t.row.suffix),1)]),_:1}),o(a,{prop:"createdId",label:"上传人"}),o(a,{label:"上传时间"},{default:l(t=>[_("span",null,g(t.row.createdAt.split(" ")[0]),1)]),_:1}),o(a,{prop:"updatedId",label:"最后修改人"}),o(a,{label:"最后修改日期"},{default:l(t=>[_("span",null,g(t.row.updatedAt.split(" ")[0]),1)]),_:1}),o(a,{fixed:"right",label:"操作",width:"120"},{default:l(t=>[o(i,{link:"",type:"primary",size:"large",onClick:I=>b("preview",t.row)},{default:l(()=>[k("预览")]),_:2},1032,["onClick"]),o(i,{link:"",type:"primary",size:"large",onClick:I=>b("download",t.row)},{default:l(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[d,c.value]]),o(w,{style:{"margin-top":"100px"},"current-page":r.current,"onUpdate:current-page":e[0]||(e[0]=t=>r.current=t),"page-size":r.size,"onUpdate:page-size":e[1]||(e[1]=t=>r.size=t),background:L.value,layout:"->,total, prev, pager, next, jumper",total:y.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},me=U(M,[["__scopeId","data-v-56ff1069"]]);export{me 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
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
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue