合并分支 'master' 到 'fix_bug_first_stage'
Master 查看合并请求 laws-nio/laws-weilai!94
This commit is contained in:
@@ -384,4 +384,37 @@ ALTER TABLE `laws_technology_evaluation_result`
|
|||||||
-- 用户表 删除索引 2022-07-14 已同步
|
-- 用户表 删除索引 2022-07-14 已同步
|
||||||
ALTER TABLE `laws_weilai`.`sys_user`
|
ALTER TABLE `laws_weilai`.`sys_user`
|
||||||
DROP INDEX `uniq_sys_user_phone`,
|
DROP INDEX `uniq_sys_user_phone`,
|
||||||
DROP INDEX `uniq_sys_user_email`;
|
DROP INDEX `uniq_sys_user_email`;
|
||||||
|
|
||||||
|
-- 参数项清单 修改字段长度 2022-07-17
|
||||||
|
ALTER TABLE `laws_weilai`.`params_info`
|
||||||
|
MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `is_must`,
|
||||||
|
MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `duty_territory`;
|
||||||
|
|
||||||
|
ALTER TABLE `laws_weilai`.`cert_category_params_info`
|
||||||
|
MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `params_number`,
|
||||||
|
MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `params_name`;
|
||||||
|
|
||||||
|
ALTER TABLE `laws_weilai`.`params_info_publish`
|
||||||
|
MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `is_must`,
|
||||||
|
MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `duty_territory`;
|
||||||
|
|
||||||
|
ALTER TABLE `laws_weilai`.`cert_category_params_info_publish`
|
||||||
|
MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `params_number`,
|
||||||
|
MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `params_name`;
|
||||||
|
|
||||||
|
ALTER TABLE `laws_weilai`.`params_collect_manifest`
|
||||||
|
MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `is_must`,
|
||||||
|
MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `duty_territory`;
|
||||||
|
|
||||||
|
ALTER TABLE `laws_weilai`.`params_collect_manifest_history`
|
||||||
|
MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `is_must`,
|
||||||
|
MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `params_batch`;
|
||||||
|
|
||||||
|
ALTER TABLE `laws_weilai`.`params_report_detail`
|
||||||
|
MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `is_must`,
|
||||||
|
MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `duty_territory`;
|
||||||
|
|
||||||
|
ALTER TABLE `laws_weilai`.`report_cert_category_params_info`
|
||||||
|
MODIFY COLUMN `params_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称' AFTER `params_number`,
|
||||||
|
MODIFY COLUMN `description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数说明' AFTER `params_name`;
|
||||||
+3
@@ -1,6 +1,8 @@
|
|||||||
package com.jero.modules.cert.collect.entity;
|
package com.jero.modules.cert.collect.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
@@ -119,6 +121,7 @@ public class ParamsCollectManifestBaseEO implements Serializable {
|
|||||||
/**工程接口人*/
|
/**工程接口人*/
|
||||||
@Excel(name = "工程接口人", width = 15)
|
@Excel(name = "工程接口人", width = 15)
|
||||||
@ApiModelProperty(value = "工程接口人")
|
@ApiModelProperty(value = "工程接口人")
|
||||||
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||||
private String sdt;
|
private String sdt;
|
||||||
|
|
||||||
/**填写人*/
|
/**填写人*/
|
||||||
|
|||||||
+6
@@ -1226,8 +1226,14 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
SysUser sysUser = sysUserService.getById(sdtId);
|
SysUser sysUser = sysUserService.getById(sdtId);
|
||||||
if (ObjectUtil.isNotEmpty(sysUser)) {
|
if (ObjectUtil.isNotEmpty(sysUser)) {
|
||||||
updateEO.setSdt(sysUser.getUsername()); // 设置工程接口人
|
updateEO.setSdt(sysUser.getUsername()); // 设置工程接口人
|
||||||
|
} else {
|
||||||
|
updateEO.setSdt(null); // 设置工程接口人
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
updateEO.setSdt(null); // 设置工程接口人
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
updateEO.setSdt(null); // 设置工程接口人
|
||||||
}
|
}
|
||||||
|
|
||||||
return updateById(updateEO);
|
return updateById(updateEO);
|
||||||
|
|||||||
+19
-19
@@ -98,12 +98,12 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
String nioNumber = paramsInfoEO.getNioNumber();
|
String nioNumber = paramsInfoEO.getNioNumber();
|
||||||
String paramsTemplateId = paramsInfoEO.getParamsTemplateId();
|
String paramsTemplateId = paramsInfoEO.getParamsTemplateId();
|
||||||
// 校验nio编号 格式:字母数字横杠(-)
|
// 校验nio编号 格式:字母数字横杠(-)
|
||||||
String nioNumberRegex = "^[A-Za-z0-9-]+$";
|
String nioNumberRegex = "^[A-Za-z0-9-/. ]+$";
|
||||||
if (!nioNumber.matches(nioNumberRegex)) {
|
if (!nioNumber.matches(nioNumberRegex)) {
|
||||||
if (CutEnum.CN.getValue().equals(paramsInfoEO.getCut())) {
|
if (CutEnum.CN.getValue().equals(paramsInfoEO.getCut())) {
|
||||||
throw new JeroBootException("NIO编号格式错误,仅能为字母,数字,横杠(-)!");
|
throw new JeroBootException("NIO编号格式错误,仅能为字母,数字,横杠(-),小数点(.),左斜杠,空格!");
|
||||||
} else {
|
} else {
|
||||||
throw new JeroBootException("NIO number formatting errors, can only letters, numbers, dash (-)!");
|
throw new JeroBootException("NIO number formatting errors, can only letters,numbers,dash (-),dot (.),left slash,spaces!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -176,12 +176,12 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
String paramsTemplateId = paramsInfoEO.getParamsTemplateId();
|
String paramsTemplateId = paramsInfoEO.getParamsTemplateId();
|
||||||
|
|
||||||
// 校验nio编号 格式:字母数字横杠(-)
|
// 校验nio编号 格式:字母数字横杠(-)
|
||||||
String nioNumberRegex = "^[A-Za-z0-9-]+$";
|
String nioNumberRegex = "^[A-Za-z0-9-/. ]+$";
|
||||||
if (!nioNumber.matches(nioNumberRegex)) {
|
if (!nioNumber.matches(nioNumberRegex)) {
|
||||||
if (CutEnum.CN.getValue().equals(paramsInfoEO.getCut())) {
|
if (CutEnum.CN.getValue().equals(paramsInfoEO.getCut())) {
|
||||||
throw new JeroBootException("NIO编号格式错误,仅能为字母,数字,横杠(-)!");
|
throw new JeroBootException("NIO编号格式错误,仅能为字母,数字,横杠(-),小数点(.),左斜杠,空格!");
|
||||||
} else {
|
} else {
|
||||||
throw new JeroBootException("NIO number formatting errors, can only letters, numbers, dash (-)!");
|
throw new JeroBootException("NIO number formatting errors, can only letters,numbers,dash (-),dot (.),left slash,spaces!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1134,12 +1134,12 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
countError += (int)resultMap.get("countError");
|
countError += (int)resultMap.get("countError");
|
||||||
if (StringUtils.isNotEmpty(dto.getNioNumber())) {
|
if (StringUtils.isNotEmpty(dto.getNioNumber())) {
|
||||||
// 校验nio编号 格式:字母数字横杠(-)
|
// 校验nio编号 格式:字母数字横杠(-)
|
||||||
String nioNumberRegex = "^[A-Za-z0-9-]+$";
|
String nioNumberRegex = "^[A-Za-z0-9-/. ]+$";
|
||||||
if (!nioNumber.matches(nioNumberRegex)) {
|
if (!nioNumber.matches(nioNumberRegex)) {
|
||||||
if(CutEnum.CN.getValue().equals(cut)) {
|
if(CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += "NIO编号格式错误,仅能为字母,数字,横杠(-);";
|
errorMsg += "NIO编号格式错误,仅能为字母,数字,横杠(-),小数点(.),左斜杠,空格;";
|
||||||
} else {
|
} else {
|
||||||
errorMsg += "NIO number formatting errors, can only letters, numbers, dash (-);";
|
errorMsg += "NIO number formatting errors, can only letters, numbers, dash (-),dot (.),left slash,spaces;";
|
||||||
}
|
}
|
||||||
countError++;
|
countError++;
|
||||||
}
|
}
|
||||||
@@ -1172,7 +1172,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
|
|
||||||
// 参数名称
|
// 参数名称
|
||||||
String paramsName = dto.getParamsName();
|
String paramsName = dto.getParamsName();
|
||||||
resultMap = validateMustAndLength(paramsName, "参数名称", "Params Name", IsMustEnum.YES.getValue(), "30", false, cut);
|
resultMap = validateMustAndLength(paramsName, "参数名称", "Params Name", IsMustEnum.YES.getValue(), "100", false, cut);
|
||||||
errorMsg += (String)resultMap.get("errorMsg");
|
errorMsg += (String)resultMap.get("errorMsg");
|
||||||
countError += (int)resultMap.get("countError");
|
countError += (int)resultMap.get("countError");
|
||||||
|
|
||||||
@@ -1211,7 +1211,7 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
|
|
||||||
// 参数说明
|
// 参数说明
|
||||||
String description = dto.getDescription();
|
String description = dto.getDescription();
|
||||||
resultMap = validateMustAndLength(description,"参数说明", "Description", IsMustEnum.NO.getValue(),"1000",false,cut);
|
resultMap = validateMustAndLength(description,"参数说明", "Description", IsMustEnum.NO.getValue(),"2000",false,cut);
|
||||||
errorMsg += (String)resultMap.get("errorMsg");
|
errorMsg += (String)resultMap.get("errorMsg");
|
||||||
countError += (int)resultMap.get("countError");
|
countError += (int)resultMap.get("countError");
|
||||||
|
|
||||||
@@ -1389,12 +1389,12 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
countError += (int)resultMap.get("countError");
|
countError += (int)resultMap.get("countError");
|
||||||
if (StringUtils.isNotEmpty(ccDto.getNioNumber())) {
|
if (StringUtils.isNotEmpty(ccDto.getNioNumber())) {
|
||||||
// 校验nio编号 格式:字母数字横杠(-)
|
// 校验nio编号 格式:字母数字横杠(-)
|
||||||
String nioNumberRegex = "^[A-Za-z0-9-]+$";
|
String nioNumberRegex = "^[A-Za-z0-9-/. ]+$";
|
||||||
if (!nioNumber.matches(nioNumberRegex)) {
|
if (!nioNumber.matches(nioNumberRegex)) {
|
||||||
if(CutEnum.CN.getValue().equals(cut)) {
|
if(CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += "nio编号格式错误,仅能为字母,数字,横杠(-);";
|
errorMsg += "nio编号格式错误,仅能为字母,数字,横杠(-),小数点(.),左斜杠,空格;";
|
||||||
} else {
|
} else {
|
||||||
errorMsg += "NIO number formatting errors, can only letters, numbers, dash (-);";
|
errorMsg += "NIO number formatting errors, can only letters, numbers, dash (-),dot (.),left slash,spaces;";
|
||||||
}
|
}
|
||||||
countError++;
|
countError++;
|
||||||
}
|
}
|
||||||
@@ -1420,24 +1420,24 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl<ParamsInfoEOMapper, Par
|
|||||||
countError += (int)resultMap.get("countError");
|
countError += (int)resultMap.get("countError");
|
||||||
if (StringUtils.isNotEmpty(ccDto.getParamsNumber())) {
|
if (StringUtils.isNotEmpty(ccDto.getParamsNumber())) {
|
||||||
// 校验编号 格式:字母数字横杠(-)
|
// 校验编号 格式:字母数字横杠(-)
|
||||||
String numberRegex = "^[A-Za-z0-9-]+$";
|
String numberRegex = "^[A-Za-z0-9-/. ]+$";
|
||||||
if (!paramsNumber.matches(numberRegex)) {
|
if (!paramsNumber.matches(numberRegex)) {
|
||||||
if(CutEnum.CN.getValue().equals(cut)) {
|
if(CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += "编号格式错误,仅能为字母,数字,横杠(-);";
|
errorMsg += "编号格式错误,仅能为字母,数字,横杠(-),小数点(.),左斜杠,空格;";
|
||||||
} else {
|
} else {
|
||||||
errorMsg += "Number formatting errors, can only letters, numbers, dash (-);";
|
errorMsg += "Number formatting errors, can only letters, numbers, dash (-),dot (.),left slash,spaces;";
|
||||||
}
|
}
|
||||||
countError++;
|
countError++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 参数名称
|
// 参数名称
|
||||||
String paramsName = ccDto.getParamsName();
|
String paramsName = ccDto.getParamsName();
|
||||||
resultMap = validateMustAndLength(paramsName, "参数名称", "Params Name", IsMustEnum.YES.getValue(),"30", false, cut);
|
resultMap = validateMustAndLength(paramsName, "参数名称", "Params Name", IsMustEnum.YES.getValue(),"100", false, cut);
|
||||||
errorMsg += (String)resultMap.get("errorMsg");
|
errorMsg += (String)resultMap.get("errorMsg");
|
||||||
countError += (int)resultMap.get("countError");
|
countError += (int)resultMap.get("countError");
|
||||||
// 参数说明
|
// 参数说明
|
||||||
String description = ccDto.getDescription();
|
String description = ccDto.getDescription();
|
||||||
resultMap = validateMustAndLength(description, "参数说明", "Description", IsMustEnum.NO.getValue(),"1000", false, cut);
|
resultMap = validateMustAndLength(description, "参数说明", "Description", IsMustEnum.NO.getValue(),"2000", false, cut);
|
||||||
errorMsg += (String)resultMap.get("errorMsg");
|
errorMsg += (String)resultMap.get("errorMsg");
|
||||||
countError += (int)resultMap.get("countError");
|
countError += (int)resultMap.get("countError");
|
||||||
|
|
||||||
|
|||||||
+8
-6
@@ -159,6 +159,13 @@ public class SyncDataServiceImpl implements ISyncDataService{
|
|||||||
//people获取用户信息Map
|
//people获取用户信息Map
|
||||||
Map<String, PPEmployee> PPEmployeeMap=new HashMap<String,PPEmployee>();
|
Map<String, PPEmployee> PPEmployeeMap=new HashMap<String,PPEmployee>();
|
||||||
|
|
||||||
|
//此处获取全部pp用户信息
|
||||||
|
List<SysUser> sysUserList = sysUserService.getPPEmployeeList();
|
||||||
|
// log.info("查询到的用户信息结果集为:"+JSONObject.toJSONString(userEOList));
|
||||||
|
for(SysUser user:sysUserList){
|
||||||
|
localUserMap.put(user.getThirdId(),user);
|
||||||
|
}
|
||||||
|
|
||||||
String path = "/people/v1/employee/all-info";
|
String path = "/people/v1/employee/all-info";
|
||||||
String queryStr = "app_id=" + appId + "&hash_type=sha256&offset=0&limit=100";
|
String queryStr = "app_id=" + appId + "&hash_type=sha256&offset=0&limit=100";
|
||||||
String response = getResultDataOfGet(path, queryStr);
|
String response = getResultDataOfGet(path, queryStr);
|
||||||
@@ -195,13 +202,8 @@ public class SyncDataServiceImpl implements ISyncDataService{
|
|||||||
}
|
}
|
||||||
// 处理同步过来的数据id不同,username相同的情况 creation_time不能为空
|
// 处理同步过来的数据id不同,username相同的情况 creation_time不能为空
|
||||||
// ppEmployeeList.sort(Comparator.comparing(PPEmployee::getCreation_time).reversed());
|
// ppEmployeeList.sort(Comparator.comparing(PPEmployee::getCreation_time).reversed());
|
||||||
|
ppEmployeeList = ppEmployeeList.stream().distinct().collect(Collectors.toList()); // 去重
|
||||||
|
|
||||||
//此处获取全部pp用户信息
|
|
||||||
List<SysUser> sysUserList = sysUserService.getPPEmployeeList();
|
|
||||||
// log.info("查询到的用户信息结果集为:"+JSONObject.toJSONString(userEOList));
|
|
||||||
for(SysUser user:sysUserList){
|
|
||||||
localUserMap.put(user.getThirdId(),user);
|
|
||||||
}
|
|
||||||
// log.info("将用户信息集合转换为的用户MAP为:"+JSONObject.toJSONString(localUserMap));
|
// log.info("将用户信息集合转换为的用户MAP为:"+JSONObject.toJSONString(localUserMap));
|
||||||
log.info("开始更新数据库信息");
|
log.info("开始更新数据库信息");
|
||||||
for(PPEmployee ppEmployee:ppEmployeeList){
|
for(PPEmployee ppEmployee:ppEmployeeList){
|
||||||
|
|||||||
+3
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||||
import com.jero.modules.document.entity.OSSFileForDocumentLibrary;
|
import com.jero.modules.document.entity.OSSFileForDocumentLibrary;
|
||||||
|
import com.jero.modules.document.vo.QueryConditionVO;
|
||||||
import com.jero.modules.oss.entity.OSSFile;
|
import com.jero.modules.oss.entity.OSSFile;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
@@ -220,4 +221,6 @@ public interface IBussDocumentLibraryEOService extends IService<BussDocumentLibr
|
|||||||
void isModifyForOcrAndSplit(Map<String, Object> parameter);
|
void isModifyForOcrAndSplit(Map<String, Object> parameter);
|
||||||
|
|
||||||
String getTitle(String id,String cut);
|
String getTitle(String id,String cut);
|
||||||
|
|
||||||
|
String sqlJoint(List<QueryConditionVO> queryConditionVOList);
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -5813,8 +5813,8 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
|
|
||||||
|
|
||||||
//高级搜索条件拼接
|
//高级搜索条件拼接
|
||||||
|
@Override
|
||||||
private String sqlJoint(List<QueryConditionVO> queryConditionVOList){
|
public String sqlJoint(List<QueryConditionVO> queryConditionVOList){
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
if(queryConditionVOList.size() != 0){
|
if(queryConditionVOList.size() != 0){
|
||||||
int count =0;
|
int count =0;
|
||||||
|
|||||||
+8
@@ -210,4 +210,12 @@ public class LawsTechnologyEvaluationEOController extends JeroController<LawsTec
|
|||||||
List<Map<String,Object>> result = this.lawsTechnologyEvaluationEOService.importItemExcel(file,cut,request);
|
List<Map<String,Object>> result = this.lawsTechnologyEvaluationEOService.importItemExcel(file,cut,request);
|
||||||
return Result.OK(result);
|
return Result.OK(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value="根据id查询明细数据", notes="根据id查询明细数据")
|
||||||
|
@PostMapping(value = "/queryPageDummyById")
|
||||||
|
@ResponseBody
|
||||||
|
public Result<?> queryPageDummyById(@RequestBody Map<String,Object> parameter) {
|
||||||
|
List<Map<String, Object>> result = this.lawsTechnologyEvaluationEOService.queryPageDummyById(parameter);
|
||||||
|
return Result.OK(result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -122,6 +122,8 @@ public class LawsTechnologyEvaluationItemResultEO implements Serializable {
|
|||||||
@Excel(name = "评估人id", width = 15)
|
@Excel(name = "评估人id", width = 15)
|
||||||
@ApiModelProperty(value = "评估人id")
|
@ApiModelProperty(value = "评估人id")
|
||||||
private java.lang.String evaluatorId;
|
private java.lang.String evaluatorId;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private java.lang.String evaluatorName;
|
||||||
|
|
||||||
/**流程实例id*/
|
/**流程实例id*/
|
||||||
@Excel(name = "流程实例id", width = 15)
|
@Excel(name = "流程实例id", width = 15)
|
||||||
|
|||||||
+2
@@ -86,4 +86,6 @@ public interface ILawsTechnologyEvaluationEOService extends IService<LawsTechnol
|
|||||||
void exportItemTemplate(String cut, HttpServletResponse response, HttpServletRequest request);
|
void exportItemTemplate(String cut, HttpServletResponse response, HttpServletRequest request);
|
||||||
|
|
||||||
List<Map<String,Object>> importItemExcel(MultipartFile file, String cut, HttpServletRequest request)throws Exception;
|
List<Map<String,Object>> importItemExcel(MultipartFile file, String cut, HttpServletRequest request)throws Exception;
|
||||||
|
|
||||||
|
List<Map<String, Object>> queryPageDummyById(Map<String, Object> parameter);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -209,7 +209,7 @@ public class LawsTechnologyEvaluationComplianceResultEOServiceImpl extends Servi
|
|||||||
|
|
||||||
for (int i = 0; i < exportData.size(); i++){
|
for (int i = 0; i < exportData.size(); i++){
|
||||||
//使用评估人的名字命名sheet页
|
//使用评估人的名字命名sheet页
|
||||||
HSSFSheet sheet = workbook.createSheet(exportData.get(i).getCreateBy() + " " + sheetName);
|
HSSFSheet sheet = workbook.createSheet(exportData.get(i).getCreateBy() + " " + sheetName + "" + (i + 1));
|
||||||
|
|
||||||
CellStyle titleCellStyle = workbook.createCellStyle();
|
CellStyle titleCellStyle = workbook.createCellStyle();
|
||||||
titleCellStyle.setAlignment(HorizontalAlignment.CENTER);//垂直居中
|
titleCellStyle.setAlignment(HorizontalAlignment.CENTER);//垂直居中
|
||||||
|
|||||||
+67
-3
@@ -28,12 +28,9 @@ import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
|
|||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFRichTextString;
|
|
||||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
import org.apache.poi.ss.usermodel.*;
|
import org.apache.poi.ss.usermodel.*;
|
||||||
import org.apache.poi.ss.util.CellRangeAddress;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@@ -401,6 +398,73 @@ public class LawsTechnologyEvaluationEOServiceImpl extends ServiceImpl<LawsTechn
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Map<String, Object>> queryPageDummyById(Map<String, Object> parameter) {
|
||||||
|
String cut = (String) parameter.get("cut");//中英文切换标识
|
||||||
|
String id = (String) parameter.get("id");
|
||||||
|
//文档库字段
|
||||||
|
List<OnlCgformField> fieldList = onlCgformFieldService.getFieldList(ModuleEnum.DOCUMENT_LIBRARY.getValue());
|
||||||
|
|
||||||
|
List<String> fileFieldStrList = fieldList.stream()
|
||||||
|
.filter(e -> FieldTypeEnum.FILE.getValue().equals(e.getFieldShowType())).map(OnlCgformField::getDbFieldName)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
List<Map<String, Object>> result = this.bussDocumentLibraryEOMapper.queryListByIds(id);
|
||||||
|
|
||||||
|
//树形数据字典
|
||||||
|
List<SysCategory> categoryList = this.sysCategoryService.list();
|
||||||
|
//过滤出树形字段
|
||||||
|
List<OnlCgformField> treeFieldList = fieldList.stream()
|
||||||
|
.filter(e -> FieldTypeEnum.TREE.getValue().equals(e.getFieldShowType()))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
//数据字典
|
||||||
|
List<SysDictItem> sysDictItems = this.sysDictItemServiceImpl.selectItemsAll();
|
||||||
|
//下拉选处理数据字典
|
||||||
|
for (Map record : result) {
|
||||||
|
Map<String, Object> record1 = (Map) record;
|
||||||
|
String technology_territory = (String)record1.get("technology_territory");
|
||||||
|
|
||||||
|
List<String> connectIdList = new ArrayList<>();
|
||||||
|
|
||||||
|
for (Map.Entry<String, Object> entry : record1.entrySet()) {
|
||||||
|
//下拉选处理数据字典
|
||||||
|
this.bussDocumentLibraryEOService.dictItem(sysDictItems, entry, cut, fieldList,null);
|
||||||
|
this.bussDocumentLibraryEOService.treeDictItem(categoryList, entry, treeFieldList, cut,null);
|
||||||
|
if(fileFieldStrList.contains(entry.getKey())){
|
||||||
|
if(entry.getValue()!=null){
|
||||||
|
connectIdList.add(entry.getValue().toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
record1.put("technology_territory_id",technology_territory);
|
||||||
|
|
||||||
|
if(CollectionUtils.isNotEmpty(connectIdList)){
|
||||||
|
//根据id查询当前文档库数据是否有拆分数据。
|
||||||
|
QueryWrapper<SarFileSplitInfoEO> splitInfoEOQueryWrapper = new QueryWrapper<>();
|
||||||
|
splitInfoEOQueryWrapper.lambda().in(SarFileSplitInfoEO::getConnectId,connectIdList);
|
||||||
|
List<SarFileSplitInfoEO> sarFileSplitInfoList = new ArrayList<>();
|
||||||
|
|
||||||
|
List<SarFileSplitInfoEO> sarFileSplitInfoListTemp = sarFileSplitInfoService.list(splitInfoEOQueryWrapper);
|
||||||
|
if (CollectionUtils.isNotEmpty(sarFileSplitInfoListTemp)){
|
||||||
|
sarFileSplitInfoListTemp.forEach(splitInfo -> {
|
||||||
|
//查询出已回传的数据
|
||||||
|
String flag = ""; // 1 已回传 0未回传。
|
||||||
|
if(StringUtils.isNotEmpty(splitInfo.getFileId())){
|
||||||
|
flag = "1";
|
||||||
|
sarFileSplitInfoList.add(splitInfo);
|
||||||
|
}else {
|
||||||
|
flag = "0";
|
||||||
|
}
|
||||||
|
splitInfo.setFlag(flag);
|
||||||
|
});
|
||||||
|
record1.put("sarFileSplitInfoList",sarFileSplitInfoList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
private String getTreeName(String cut, List<SysCategory> categoryList, List<String> technologyTerritoryList) {
|
private String getTreeName(String cut, List<SysCategory> categoryList, List<String> technologyTerritoryList) {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
for (String technologyTerritory : technologyTerritoryList) {
|
for (String technologyTerritory : technologyTerritoryList) {
|
||||||
|
|||||||
+57
-3
@@ -20,7 +20,17 @@ import com.jero.modules.oss.entity.OSSFile;
|
|||||||
import com.jero.modules.oss.service.IOSSFileService;
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import com.jero.modules.project.enums.OperatorTypeEnum;
|
import com.jero.modules.project.enums.OperatorTypeEnum;
|
||||||
import com.jero.modules.project.enums.RequestSourceEnum;
|
import com.jero.modules.project.enums.RequestSourceEnum;
|
||||||
|
import com.jero.modules.split.dto.FileSpiltValTableExportDto;
|
||||||
|
import com.jero.modules.split.dto.FileSplitValExportDto;
|
||||||
|
import com.jero.modules.split.dto.FileSplitValImgExportDto;
|
||||||
|
import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||||
|
import com.jero.modules.split.page.SarFileSplitItemsEOPage;
|
||||||
|
import com.jero.modules.split.page.SarFileSplitItemsValEOPage;
|
||||||
|
import com.jero.modules.split.service.IFileSplitItemsEOService;
|
||||||
|
import com.jero.modules.split.service.ISarFileSplitItemsValEOService;
|
||||||
import com.jero.modules.system.entity.SysCategory;
|
import com.jero.modules.system.entity.SysCategory;
|
||||||
|
import com.jero.modules.system.entity.SysUser;
|
||||||
|
import com.jero.modules.system.service.ISysUserService;
|
||||||
import com.jero.modules.system.service.impl.SysCategoryServiceImpl;
|
import com.jero.modules.system.service.impl.SysCategoryServiceImpl;
|
||||||
import com.jero.modules.system.util.PDFUtils;
|
import com.jero.modules.system.util.PDFUtils;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
@@ -62,6 +72,12 @@ public class LawsTechnologyEvaluationItemResultEOServiceImpl extends ServiceImpl
|
|||||||
private SysCategoryServiceImpl sysCategoryService;
|
private SysCategoryServiceImpl sysCategoryService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IOSSFileService iOSSFileService;
|
private IOSSFileService iOSSFileService;
|
||||||
|
@Autowired
|
||||||
|
private ISysUserService sysUserService;
|
||||||
|
@Autowired
|
||||||
|
private IFileSplitItemsEOService fileSplitItemsEOService;
|
||||||
|
@Autowired
|
||||||
|
private ISarFileSplitItemsValEOService sarFileSplitItemsValEOService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
@@ -190,6 +206,13 @@ public class LawsTechnologyEvaluationItemResultEOServiceImpl extends ServiceImpl
|
|||||||
@Override
|
@Override
|
||||||
public void disposeData(List<LawsTechnologyEvaluationItemResultEO> datas, String cut) {
|
public void disposeData(List<LawsTechnologyEvaluationItemResultEO> datas, String cut) {
|
||||||
if(CollectionUtils.isNotEmpty(datas)){
|
if(CollectionUtils.isNotEmpty(datas)){
|
||||||
|
List<String> evaluatorIdList = datas.stream().map(LawsTechnologyEvaluationItemResultEO::getEvaluatorId).distinct().collect(Collectors.toList());
|
||||||
|
|
||||||
|
List<SysUser> sysUserList = new ArrayList<>();
|
||||||
|
if(CollectionUtils.isNotEmpty(evaluatorIdList)){
|
||||||
|
sysUserList = this.sysUserService.querySysUserListByIdList(evaluatorIdList);
|
||||||
|
}
|
||||||
|
|
||||||
List<SysCategory> categoryList = sysCategoryService.list();
|
List<SysCategory> categoryList = sysCategoryService.list();
|
||||||
for (LawsTechnologyEvaluationItemResultEO data : datas) {
|
for (LawsTechnologyEvaluationItemResultEO data : datas) {
|
||||||
String evaluationMethods = data.getEvaluationMethods();
|
String evaluationMethods = data.getEvaluationMethods();
|
||||||
@@ -205,6 +228,19 @@ public class LawsTechnologyEvaluationItemResultEOServiceImpl extends ServiceImpl
|
|||||||
String accessoryFileName = accessoryFileList.stream().map(OSSFile::getFileName).collect(Collectors.joining(","));
|
String accessoryFileName = accessoryFileList.stream().map(OSSFile::getFileName).collect(Collectors.joining(","));
|
||||||
data.setAccessoryFileName(accessoryFileName);
|
data.setAccessoryFileName(accessoryFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(StringUtils.isNotEmpty(data.getEvaluatorId())){
|
||||||
|
if(CollectionUtils.isNotEmpty(sysUserList)){
|
||||||
|
String evaluatorNames = sysUserList.stream().filter(sysUser -> {
|
||||||
|
boolean flag = false;
|
||||||
|
if(StringUtils.equals(sysUser.getId(),data.getEvaluatorId())){
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
return flag;
|
||||||
|
}).map(SysUser::getUsername).collect(Collectors.joining(","));
|
||||||
|
data.setEvaluatorName(evaluatorNames);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -252,7 +288,7 @@ public class LawsTechnologyEvaluationItemResultEOServiceImpl extends ServiceImpl
|
|||||||
|
|
||||||
//创建表头
|
//创建表头
|
||||||
String[] titleArr = title.split(",");
|
String[] titleArr = title.split(",");
|
||||||
for (int i=0; i<=5; i++){
|
for (int i=0; i<=10; i++){
|
||||||
sheet.setColumnWidth(i,4000);
|
sheet.setColumnWidth(i,4000);
|
||||||
Cell cell = firstRow.createCell(i);
|
Cell cell = firstRow.createCell(i);
|
||||||
cell.setCellStyle(titleCellStyle);
|
cell.setCellStyle(titleCellStyle);
|
||||||
@@ -261,12 +297,30 @@ public class LawsTechnologyEvaluationItemResultEOServiceImpl extends ServiceImpl
|
|||||||
|
|
||||||
//设置导出数据
|
//设置导出数据
|
||||||
if(CollectionUtils.isNotEmpty(exportData)) {
|
if(CollectionUtils.isNotEmpty(exportData)) {
|
||||||
|
List<FileSpiltValTableExportDto> allTableList = new ArrayList<>(); // 存储表格数据
|
||||||
|
List<FileSplitValImgExportDto> allImgList = new ArrayList<>(); // 存储文件数据
|
||||||
|
SarFileSplitItemsEOPage page = new SarFileSplitItemsEOPage();
|
||||||
|
|
||||||
for (int dataIndex = 0; dataIndex < exportData.size(); dataIndex++) {
|
for (int dataIndex = 0; dataIndex < exportData.size(); dataIndex++) {
|
||||||
Row dataRow = sheet.createRow(dataIndex + 1);
|
Row dataRow = sheet.createRow(dataIndex + 1);
|
||||||
dataRow.createCell(0).setCellValue(exportData.get(dataIndex).getItemNum());
|
dataRow.createCell(0).setCellValue(exportData.get(dataIndex).getItemNum());
|
||||||
dataRow.createCell(1).setCellValue(exportData.get(dataIndex).getItemName());
|
dataRow.createCell(1).setCellValue(exportData.get(dataIndex).getItemName());
|
||||||
dataRow.createCell(2).setCellValue(exportData.get(dataIndex).getItemContent());
|
|
||||||
dataRow.createCell(3).setCellValue(exportData.get(dataIndex).getCreateBy());
|
String itemContent = exportData.get(dataIndex).getItemContent();
|
||||||
|
|
||||||
|
if(StringUtils.isNotEmpty(exportData.get(dataIndex).getItemId())){
|
||||||
|
SarFileSplitItemsValEOPage valEOPage = new SarFileSplitItemsValEOPage();
|
||||||
|
valEOPage.setItemId(exportData.get(dataIndex).getItemId());
|
||||||
|
valEOPage.setOrderBy("DISPLAY_SEQ,ID");
|
||||||
|
List<SarFileSplitItemsValEO> getValList = this.sarFileSplitItemsValEOService.queryByList(valEOPage);
|
||||||
|
List<FileSplitValExportDto> valContentList = this.fileSplitItemsEOService.combineItemValInfo(getValList,allTableList,allImgList,page); //TODO
|
||||||
|
if(CollectionUtils.isNotEmpty(valContentList)){
|
||||||
|
itemContent = valContentList.get(0).getValContent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dataRow.createCell(2).setCellValue(itemContent);
|
||||||
|
dataRow.createCell(3).setCellValue(exportData.get(dataIndex).getEvaluatorName());
|
||||||
dataRow.createCell(4).setCellValue(exportData.get(dataIndex).getEvaluationMethodsName());
|
dataRow.createCell(4).setCellValue(exportData.get(dataIndex).getEvaluationMethodsName());
|
||||||
dataRow.createCell(5).setCellValue(exportData.get(dataIndex).getTechnicalFileName());
|
dataRow.createCell(5).setCellValue(exportData.get(dataIndex).getTechnicalFileName());
|
||||||
dataRow.createCell(6).setCellValue(exportData.get(dataIndex).getSection());
|
dataRow.createCell(6).setCellValue(exportData.get(dataIndex).getSection());
|
||||||
|
|||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
package com.jero.modules.project.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.jero.common.api.vo.Result;
|
||||||
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
|
import com.jero.modules.project.service.ILawsComplianceBoardService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import net.sf.json.JSONObject;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Api(tags="法规符合性看板")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/project/lawsComplianceBoard")
|
||||||
|
@Slf4j
|
||||||
|
public class LawsComplianceBoardController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ILawsComplianceBoardService lawsComplianceBoardService;
|
||||||
|
|
||||||
|
@AutoLog(value = "项目库-法规符合性看板列表分页查询")
|
||||||
|
@ApiOperation(value="项目库-法规符合性看板列表分页查询", notes="项目库-法规符合性看板列表分页查询")
|
||||||
|
@GetMapping(value = "/page")
|
||||||
|
public JSONObject queryPageList(@RequestParam Map<String,Object> params){
|
||||||
|
IPage infoPage = this.lawsComplianceBoardService.queryPageList(params);
|
||||||
|
Result<IPage> ok = Result.OK(infoPage);
|
||||||
|
JSONObject jsonResult = JSONObject.fromObject(ok);
|
||||||
|
return jsonResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
@AutoLog(value = "项目库-法规符合性看板-查询符合性结果列表")
|
||||||
|
@ApiOperation(value="项目库-法规符合性看板-查询符合性结果列表", notes="项目库-法规符合性看板-查询符合性结果列表")
|
||||||
|
@GetMapping(value = "/queryComplianceResultList")
|
||||||
|
public Result<?> queryComplianceResultList(@RequestParam Map<String,Object> params){
|
||||||
|
JSONObject result = this.lawsComplianceBoardService.queryComplianceResultList(params);
|
||||||
|
return Result.OK(result);
|
||||||
|
}
|
||||||
|
}
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
package com.jero.modules.project.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public interface LawsComplianceBoardMapper {
|
||||||
|
/**
|
||||||
|
* 查询出 启动过 设计、prehomo、验证符合性、法规技术评估、法规意见收集其中一个流程 的数据
|
||||||
|
* @param page
|
||||||
|
* @param params
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
IPage queryPageList(IPage page, @Param("params") Map<String, Object> params);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目库-法规符合性看板-查询符合性结果列表
|
||||||
|
* @param params
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<Map<String, Object>> queryComplianceResultList(@Param("params") Map<String, Object> params);
|
||||||
|
}
|
||||||
+65
@@ -0,0 +1,65 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.jero.modules.project.mapper.LawsComplianceBoardMapper">
|
||||||
|
|
||||||
|
<select id="queryPageList" resultType="hashMap">
|
||||||
|
SELECT
|
||||||
|
bdl.id as "id",
|
||||||
|
bdl.serial_number as "serialNumber",
|
||||||
|
bdl.title as "title",
|
||||||
|
bdl.technology_territory as "technologyTerritory",
|
||||||
|
bdl.state as "state",
|
||||||
|
bdl.create_time as "createTime"
|
||||||
|
FROM
|
||||||
|
buss_document_library bdl
|
||||||
|
LEFT JOIN project_laws_inventory pli ON ( pli.stand_id = bdl.id )
|
||||||
|
LEFT JOIN project_task_inventory pti ON ( pli.id = pti.project_laws_inventory_id )
|
||||||
|
WHERE
|
||||||
|
(
|
||||||
|
bdl.id IN ( SELECT DISTINCT stand_id FROM laws_opinion_gather)
|
||||||
|
OR bdl.id IN ( SELECT DISTINCT stand_id FROM laws_technology_evaluation)
|
||||||
|
or pti.design_p_id IS NOT NULL
|
||||||
|
OR pti.prehomo_p_id IS NOT NULL
|
||||||
|
OR pti.verify_p_id IS NOT NULL
|
||||||
|
)
|
||||||
|
${params.condition}
|
||||||
|
GROUP BY bdl.id
|
||||||
|
order by bdl.create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="queryComplianceResultList" resultType="hashMap">
|
||||||
|
SELECT
|
||||||
|
pli.stand_id as "standId",
|
||||||
|
pli.id as "id",
|
||||||
|
pli.serial_number as "serialNumber",
|
||||||
|
pli.title as "title",
|
||||||
|
pli.project_library_id as "projectLibraryId",
|
||||||
|
pni.project_name as "projectName",
|
||||||
|
pyni.year_name as "yearName",
|
||||||
|
pti.design_status as "designStatus",
|
||||||
|
pti.design_p_id as "designPId",
|
||||||
|
pti.prehomo_status as "prehomoStatsu",
|
||||||
|
pti.prehomo_p_id as "prehomoPId",
|
||||||
|
pti.verify_status as "verifyStatus",
|
||||||
|
pti.verify_p_id as "verifyPId",
|
||||||
|
pli.duty_territory as "dutyTerritory"
|
||||||
|
FROM
|
||||||
|
project_laws_inventory pli
|
||||||
|
LEFT JOIN project_task_inventory pti ON ( pli.id = pti.project_laws_inventory_id )
|
||||||
|
LEFT JOIN project_library_base plb ON ( plb.id = pli.project_library_id )
|
||||||
|
LEFT JOIN project_name_info pni ON ( pni.id = plb.project_name_id )
|
||||||
|
LEFT JOIN project_year_name_info pyni ON ( pyni.id = plb.year_name_id )
|
||||||
|
WHERE
|
||||||
|
pli.stand_id = #{params.id}
|
||||||
|
AND( pti.design_p_id IS NOT NULL OR pti.prehomo_p_id IS NOT NULL OR pti.verify_p_id IS NOT NULL )
|
||||||
|
<if test="params.dutyTerritory != null params.dutyTerritory != '' ">
|
||||||
|
and pli.duty_territory like CONCAT(CONCAT('%',#{params.dutyTerritory}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="params.projectNameId != null params.projectNameId != '' ">
|
||||||
|
and pni.id like CONCAT(CONCAT('%',#{params.projectNameId}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="params.projectName != null params.projectName != '' ">
|
||||||
|
and pni.project_name like CONCAT(CONCAT('%',#{params.projectName}),'%')
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
package com.jero.modules.project.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.jero.common.api.vo.Result;
|
||||||
|
import net.sf.json.JSONObject;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public interface ILawsComplianceBoardService {
|
||||||
|
IPage queryPageList(Map<String, Object> params);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目库-法规符合性看板-查询符合性结果列表
|
||||||
|
* @param params
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
JSONObject queryComplianceResultList(Map<String, Object> params);
|
||||||
|
}
|
||||||
+201
@@ -0,0 +1,201 @@
|
|||||||
|
package com.jero.modules.project.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.jero.modules.document.enums.FieldTypeEnum;
|
||||||
|
import com.jero.modules.document.service.IBussDocumentLibraryEOService;
|
||||||
|
import com.jero.modules.document.vo.QueryConditionVO;
|
||||||
|
import com.jero.modules.lawsOpinionGather.entity.LawsOpinionGatherEO;
|
||||||
|
import com.jero.modules.lawsOpinionGather.service.ILawsOpinionGatherEOService;
|
||||||
|
import com.jero.modules.lawsTechnologyEvaluation.entity.LawsTechnologyEvaluationEO;
|
||||||
|
import com.jero.modules.lawsTechnologyEvaluation.service.ILawsTechnologyEvaluationEOService;
|
||||||
|
import com.jero.modules.project.mapper.LawsComplianceBoardMapper;
|
||||||
|
import com.jero.modules.project.service.ILawsComplianceBoardService;
|
||||||
|
import com.jero.modules.system.util.StringUtils;
|
||||||
|
import net.sf.json.JSONObject;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Propagation;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||||
|
public class LawsComplianceBoardServiceImpl implements ILawsComplianceBoardService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private LawsComplianceBoardMapper lawsComplianceBoardMapper;
|
||||||
|
@Autowired
|
||||||
|
private ILawsOpinionGatherEOService lawsOpinionGatherEOService;
|
||||||
|
@Autowired
|
||||||
|
private ILawsTechnologyEvaluationEOService lawsTechnologyEvaluationEOService;
|
||||||
|
@Autowired
|
||||||
|
private IBussDocumentLibraryEOService bussDocumentLibraryEOService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage queryPageList(Map<String, Object> params) {
|
||||||
|
int pageNo = Integer.parseInt(params.get("pageNo").toString());
|
||||||
|
int pageSize = Integer.parseInt(params.get("pageSize").toString());
|
||||||
|
|
||||||
|
//封装查询条件(包含高级搜索)
|
||||||
|
String condition = this.getConditionStr(params);
|
||||||
|
params.put("condition",condition);
|
||||||
|
IPage page = new Page(pageNo, pageSize);
|
||||||
|
IPage infoPage = this.lawsComplianceBoardMapper.queryPageList(page, params);
|
||||||
|
List records = infoPage.getRecords();
|
||||||
|
this.disposeData(records);
|
||||||
|
return infoPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void disposeData(List datas){
|
||||||
|
if (CollectionUtils.isNotEmpty(datas)) {
|
||||||
|
for (Object data : datas) {
|
||||||
|
Map<String,Object> dataMap = (Map<String, Object>) data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONObject queryComplianceResultList(Map<String, Object> params) {
|
||||||
|
JSONObject result = new JSONObject();
|
||||||
|
String id = (String) params.get("id");
|
||||||
|
String cut = (String) params.get("cut");
|
||||||
|
List<Map<String,Object>> cmplianceResultList = this.lawsComplianceBoardMapper.queryComplianceResultList(params);
|
||||||
|
result.put("cmplianceResultList",cmplianceResultList);
|
||||||
|
|
||||||
|
//查询当前数据是否有法规意见收集流程数据
|
||||||
|
QueryWrapper<LawsOpinionGatherEO> opinionGatherEOQueryWrapper = new QueryWrapper<>();
|
||||||
|
opinionGatherEOQueryWrapper.lambda().eq(LawsOpinionGatherEO::getStandId,id);
|
||||||
|
int opinionGatherCount = this.lawsOpinionGatherEOService.count(opinionGatherEOQueryWrapper);
|
||||||
|
result.put("opinionGather",opinionGatherCount);
|
||||||
|
|
||||||
|
//查询当前数据是否有法规技术评估流程数据
|
||||||
|
QueryWrapper<LawsTechnologyEvaluationEO> evaluationEOQueryWrapper = new QueryWrapper<>();
|
||||||
|
evaluationEOQueryWrapper.lambda().eq(LawsTechnologyEvaluationEO::getStandId,id);
|
||||||
|
int evaluationCount = this.lawsTechnologyEvaluationEOService.count(evaluationEOQueryWrapper);
|
||||||
|
result.put("technologyEvaluation",evaluationCount);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public String getConditionStr(Map<String, Object> parameter) {
|
||||||
|
String cut = (String) parameter.get("cut");
|
||||||
|
String flag = String.valueOf(parameter.get("flag"));
|
||||||
|
//查询条件
|
||||||
|
StringBuilder conditionSb = new StringBuilder("");
|
||||||
|
|
||||||
|
//过滤查询条件字段类型使用
|
||||||
|
List<Map<String, Object>> mapList = this.bussDocumentLibraryEOService.queryCondition("1", cut, null);
|
||||||
|
|
||||||
|
//查询条件处理
|
||||||
|
for (Map.Entry<String, Object> entry : parameter.entrySet()) {
|
||||||
|
String key = entry.getKey();
|
||||||
|
if (!"pageNo".equals(key) && !"pageSize".equals(key)) {
|
||||||
|
String value = "";
|
||||||
|
if(ObjectUtils.isNotEmpty(entry.getValue())){
|
||||||
|
value = StringUtils.valueOf(entry.getValue());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(value)) {
|
||||||
|
for (Map<String, Object> map : mapList) {
|
||||||
|
String fieldName = (String) map.get("db_field_name");//字段
|
||||||
|
if (key.equals(fieldName)) {
|
||||||
|
//字段类型(判断是输入框还是下拉,等等)
|
||||||
|
String fieldType = (String) map.get("field_show_type");//字段类型
|
||||||
|
if (FieldTypeEnum.TEXT_STRING.getValue().equals(fieldType) || FieldTypeEnum.TEXT_NUMBER.getValue().equals(fieldType)) {
|
||||||
|
//输入框 LIKE CONCAT("%", '/%', "%") ESCAPE '/'
|
||||||
|
if (value.contains("%")) {
|
||||||
|
value = value.replace("%", "/%");
|
||||||
|
}
|
||||||
|
conditionSb.append(" and " + key + " like concat(concat('%','" + value + "'),'%') ESCAPE '/'");
|
||||||
|
} else if (FieldTypeEnum.PULL_SINGLE.getValue().equals(fieldType)
|
||||||
|
|| FieldTypeEnum.PULL_MORE.getValue().equals(fieldType)
|
||||||
|
|| FieldTypeEnum.TREE.getValue().equals(fieldType)) {
|
||||||
|
StringBuilder valueSb = new StringBuilder();
|
||||||
|
StringBuilder condition = new StringBuilder();
|
||||||
|
for (String valueTemp : value.split(",")) {
|
||||||
|
valueSb.append("'" + valueTemp + "',");
|
||||||
|
condition.append(" or " + key + " like concat(concat('%','" + valueTemp + "'),'%')");
|
||||||
|
}
|
||||||
|
condition.append(")");
|
||||||
|
String substring = valueSb.substring(0, valueSb.length() - 1);
|
||||||
|
//下拉单选或下拉多选
|
||||||
|
conditionSb.append(" and (" + key + " in(" + substring + ")" + condition.toString());
|
||||||
|
|
||||||
|
} else if (FieldTypeEnum.DATE_SINGLE.getValue().equals(fieldType)) {
|
||||||
|
//日期(区分单日期还时间范围)
|
||||||
|
if (value.contains(",")) {
|
||||||
|
conditionSb.append(" and " + "date_format(" + key + ",'%Y-%m-%d') >= '" + value.split(",")[0] + "'"
|
||||||
|
+ " and " + "date_format(" + key + ",'%Y-%m-%d') <= '" + value.split(",")[1] + "'");
|
||||||
|
} else {
|
||||||
|
conditionSb.append(" and " + "date_format(" + key + ",'%Y-%m-%d') = '" + value + "'");
|
||||||
|
}
|
||||||
|
} else if (FieldTypeEnum.PERSON.getValue().equals(fieldType)) {
|
||||||
|
//输入框 LIKE CONCAT("%", '/%', "%") ESCAPE '/'
|
||||||
|
if (value.contains("%")) {
|
||||||
|
value = value.replace("%", "/%");
|
||||||
|
}
|
||||||
|
conditionSb.append(" and " + key + " like concat(concat('%','" + value + "'),'%') ESCAPE '/'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//处理法规预警模块预警时间查询条件 flag = 0(新车实施日期), flag = 1(在产车实施日期)
|
||||||
|
String warnTime = (String) parameter.get("WarnTime");
|
||||||
|
if(StringUtils.isNotBlank(warnTime)){
|
||||||
|
if("0".equals(flag)){
|
||||||
|
//日期(区分单日期还时间范围)
|
||||||
|
if (warnTime.contains(",")) {
|
||||||
|
conditionSb.append(" and " + "date_format(" + "xin1_che1_xing2_shi2_shi1_ri4_qi1" + ",'%Y-%m-%d') >= '" + warnTime.split(",")[0] + "'"
|
||||||
|
+ " and " + "date_format(" + "xin1_che1_xing2_shi2_shi1_ri4_qi1" + ",'%Y-%m-%d') <= '" + warnTime.split(",")[1] + "'");
|
||||||
|
} else {
|
||||||
|
conditionSb.append(" and " + "date_format(" + "xin1_che1_xing2_shi2_shi1_ri4_qi1" + ",'%Y-%m-%d') = '" + warnTime + "'");
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
//日期(区分单日期还时间范围)
|
||||||
|
if (warnTime.contains(",")) {
|
||||||
|
conditionSb.append(" and " + "date_format(" + "implement_time" + ",'%Y-%m-%d') >= '" + warnTime.split(",")[0] + "'"
|
||||||
|
+ " and " + "date_format(" + "implement_time" + ",'%Y-%m-%d') <= '" + warnTime.split(",")[1] + "'");
|
||||||
|
} else {
|
||||||
|
conditionSb.append(" and " + "date_format(" + "implement_time" + ",'%Y-%m-%d') = '" + warnTime + "'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//高级搜索 queryConditionVOList List<QueryConditionVO>
|
||||||
|
if(ObjectUtils.isNotEmpty(parameter.get("queryConditionVOList"))){
|
||||||
|
String queryConditionVOListStr = (String) parameter.get("queryConditionVOList");
|
||||||
|
List<QueryConditionVO> queryConditionVOList = com.alibaba.fastjson.JSONObject.parseArray(queryConditionVOListStr, QueryConditionVO.class);
|
||||||
|
if(ObjectUtils.isNotEmpty(queryConditionVOList)){
|
||||||
|
String queryCondition = this.bussDocumentLibraryEOService.sqlJoint(queryConditionVOList);
|
||||||
|
if(StringUtils.isNotBlank(queryCondition)){
|
||||||
|
conditionSb.append(" and " + queryCondition);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//处理列表表头排序
|
||||||
|
/*if (StringUtils.isNotBlank((String) parameter.get("orderByField"))) {
|
||||||
|
conditionSb.append(" order by " + (String) parameter.get("orderByField"));
|
||||||
|
if ("1".equals((String) parameter.get("orderBy"))) {
|
||||||
|
conditionSb.append(" asc");//正序
|
||||||
|
} else if ("2".equals((String) parameter.get("orderBy"))) {
|
||||||
|
conditionSb.append(" desc");//倒序
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
conditionSb.append(" order by create_time desc");
|
||||||
|
}*/
|
||||||
|
String condition = conditionSb.toString();
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
}
|
||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -56,12 +56,12 @@ module.exports = {
|
|||||||
no: 'No',
|
no: 'No',
|
||||||
click: 'Click',
|
click: 'Click',
|
||||||
add: 'Add',
|
add: 'Add',
|
||||||
FilterMatching: 'Filter Condition Matching',
|
FilterMatching: 'Filter Conditions',
|
||||||
AllMatching: '(All conditions require matching)',
|
AllMatching: '(Meet All Conditions)',
|
||||||
AnyOneMatches: '(Any one of the conditions matches)',
|
AnyOneMatches: '(Any one of the conditions matches)',
|
||||||
SelectQueryField: 'Select Search Field',
|
SelectQueryField: 'Select Search Field',
|
||||||
matchRules: 'Matching Rules',
|
matchRules: 'Matching Rules',
|
||||||
beEqualTo: 'Be Equal To',
|
beEqualTo: 'Equal to',
|
||||||
contain: 'Contain',
|
contain: 'Contain',
|
||||||
withStart: 'With Start',
|
withStart: 'With Start',
|
||||||
withEnd: 'With Ending',
|
withEnd: 'With Ending',
|
||||||
@@ -77,7 +77,7 @@ module.exports = {
|
|||||||
notOnlyRz: 'No',
|
notOnlyRz: 'No',
|
||||||
EnterValue: 'Please Enter A Value',
|
EnterValue: 'Please Enter A Value',
|
||||||
SavedQuery: 'Saved Search',
|
SavedQuery: 'Saved Search',
|
||||||
NoQueriesSaved: 'No Queries Were Saved',
|
NoQueriesSaved: 'No Search Saved',
|
||||||
SavedName: 'Saved Name',
|
SavedName: 'Saved Name',
|
||||||
CannotQueryEmpty: 'Cannot search empty condition',
|
CannotQueryEmpty: 'Cannot search empty condition',
|
||||||
EmptyCannotSaved: 'Empty condition cannot be saved',
|
EmptyCannotSaved: 'Empty condition cannot be saved',
|
||||||
@@ -87,7 +87,7 @@ module.exports = {
|
|||||||
SavedSuccessfully: 'Saved Successfully',
|
SavedSuccessfully: 'Saved Successfully',
|
||||||
DeleteQuery: 'Delete current Search?',
|
DeleteQuery: 'Delete current Search?',
|
||||||
VersionNotSupported: 'Version Not Supported',
|
VersionNotSupported: 'Version Not Supported',
|
||||||
SaveQueryCriteria: 'Save Search criteria',
|
SaveQueryCriteria: 'Save Search Conditions',
|
||||||
roleName: 'Role Name',
|
roleName: 'Role Name',
|
||||||
newRole: 'New Role',
|
newRole: 'New Role',
|
||||||
RoleManagement: 'Role Management',
|
RoleManagement: 'Role Management',
|
||||||
@@ -152,8 +152,8 @@ module.exports = {
|
|||||||
DepartmentRole: 'Department Role',
|
DepartmentRole: 'Department Role',
|
||||||
DictionaryName: 'Dictionary Name',
|
DictionaryName: 'Dictionary Name',
|
||||||
enterDictionary: 'Please enter a dictionary name',
|
enterDictionary: 'Please enter a dictionary name',
|
||||||
DictionaryNumber: 'Dictionary Number',
|
DictionaryNumber: 'Dictionary NO.',
|
||||||
enterDictionaryNumber: 'Please enter the dictionary number',
|
enterDictionaryNumber: 'Please enter the dictionary no.',
|
||||||
DictionaryInformation: 'Dictionary Information',
|
DictionaryInformation: 'Dictionary Information',
|
||||||
RefreshCache: 'Refresh Cache',
|
RefreshCache: 'Refresh Cache',
|
||||||
recycleBin: 'Recycle Bin',
|
recycleBin: 'Recycle Bin',
|
||||||
@@ -179,7 +179,7 @@ module.exports = {
|
|||||||
ConventionalExport:'Conventional Export',
|
ConventionalExport:'Conventional Export',
|
||||||
CustomExport:'Custom Export',
|
CustomExport:'Custom Export',
|
||||||
CustomTemplateName:'Custom template name',
|
CustomTemplateName:'Custom template name',
|
||||||
assembly: 'Assembly',
|
assembly: 'Component',
|
||||||
route: 'Route',
|
route: 'Route',
|
||||||
AddSubmenu: 'Add Submenu',
|
AddSubmenu: 'Add Submenu',
|
||||||
NoPicture: 'No Picture',
|
NoPicture: 'No Picture',
|
||||||
@@ -257,9 +257,9 @@ module.exports = {
|
|||||||
selectParentMenu: 'Please select parent menu',
|
selectParentMenu: 'Please select parent menu',
|
||||||
MenuPath: 'Menu Route',
|
MenuPath: 'Menu Route',
|
||||||
enterMenuPath: 'Please enter the menu path',
|
enterMenuPath: 'Please enter the menu path',
|
||||||
FrontAssembly: 'Front End Assembly',
|
FrontAssembly: 'Front-end Component',
|
||||||
enterFrontComponents: 'Please enter front-end components',
|
enterFrontComponents: 'Please enter front-end components',
|
||||||
DefaultJumpAddress: 'Default Jump Address',
|
DefaultJumpAddress: 'Default Redirection Address',
|
||||||
enterRoutingParameters: 'Please enter routing parameters',
|
enterRoutingParameters: 'Please enter routing parameters',
|
||||||
AuthorizationID: ' Authorization ID',
|
AuthorizationID: ' Authorization ID',
|
||||||
enterAuthorizationID: 'Please enter the authorization ID, such as:',
|
enterAuthorizationID: 'Please enter the authorization ID, such as:',
|
||||||
@@ -271,9 +271,9 @@ module.exports = {
|
|||||||
ClickSelectIcon: 'Click the select icon',
|
ClickSelectIcon: 'Click the select icon',
|
||||||
enterMenuSort: 'Please enter menu sort',
|
enterMenuSort: 'Please enter menu sort',
|
||||||
RouteMenu: 'Route Menu',
|
RouteMenu: 'Route Menu',
|
||||||
HideRoute: 'Hide Route',
|
HideRoute: 'Hidden Route',
|
||||||
CacheRoute: 'Cache Route',
|
CacheRoute: 'Cache Route',
|
||||||
AggregateRouting: 'Aggregate Routing',
|
AggregateRouting: 'Aggregated Route',
|
||||||
OpenMode: 'Open Mode',
|
OpenMode: 'Open Mode',
|
||||||
external: 'External',
|
external: 'External',
|
||||||
inside: 'Inside',
|
inside: 'Inside',
|
||||||
@@ -352,24 +352,24 @@ module.exports = {
|
|||||||
dataExport: 'Data Export',
|
dataExport: 'Data Export',
|
||||||
exportWithFile: 'Export With File',
|
exportWithFile: 'Export With File',
|
||||||
Push: 'Push',
|
Push: 'Push',
|
||||||
templateDownload: 'Template Download',
|
templateDownload: 'Download Template',
|
||||||
textInformation: 'Document Files',
|
textInformation: 'Document Files',
|
||||||
relatedInformation: 'Relevant Information',
|
relatedInformation: 'Relevant Information',
|
||||||
RetrieveFiles: 'Select Stored File',
|
RetrieveFiles: 'Select Stored File',
|
||||||
SplitText: 'Split Stored File',
|
SplitText: 'Split Library File',
|
||||||
ImportResults: 'Import Split Results',
|
ImportResults: 'Import Split Results',
|
||||||
copy: 'Copy',
|
copy: 'Copy',
|
||||||
TemplateDownload: 'Template Download',
|
TemplateDownload: 'Download Template',
|
||||||
MergerClause: 'Merger Clause',
|
MergerClause: 'Merge Item',
|
||||||
BatchSetting: 'Batch Setting',
|
BatchSetting: 'Batch Set',
|
||||||
BatchCancel: 'Batch Cancel Collection',
|
BatchCancel: 'Batch Cancel Collection',
|
||||||
SubscriptionManagement: 'Select Tech Fields',
|
SubscriptionManagement: 'Select Tech Fields',
|
||||||
BatchCancellation: 'Cancel By Batch',
|
BatchCancellation: 'Batch Delete',
|
||||||
clickUpload: 'Click To Upload',
|
clickUpload: 'Click To Upload',
|
||||||
viewUploadedFiles: 'View Uploaded Files',
|
viewUploadedFiles: 'View Uploaded Files',
|
||||||
standardSelection: 'Standard Selection',
|
standardSelection: 'Standard Selection',
|
||||||
Collection: 'Add To Collection',
|
Collection: 'Add To Collection',
|
||||||
CancelCollection: 'Cancel From Collection',
|
CancelCollection: 'Delete Collection',
|
||||||
deleteLib: 'Delete',
|
deleteLib: 'Delete',
|
||||||
subscribe: 'Subscribe',
|
subscribe: 'Subscribe',
|
||||||
CancelSubscribe: 'Unsubscribe',
|
CancelSubscribe: 'Unsubscribe',
|
||||||
@@ -381,10 +381,10 @@ module.exports = {
|
|||||||
ConfirmBatchDeletion: 'Confirm Batch Deletion ? ',
|
ConfirmBatchDeletion: 'Confirm Batch Deletion ? ',
|
||||||
download: 'Download',
|
download: 'Download',
|
||||||
UpdateLog: 'Change Log',
|
UpdateLog: 'Change Log',
|
||||||
DocumentSplitting: 'Document Splitting',
|
DocumentSplitting: 'Doc Splitting',
|
||||||
DocumentTranslation: 'Document Translation',
|
DocumentTranslation: 'Doc Translation',
|
||||||
DocumentComparison: 'Document Comparison',
|
DocumentComparison: 'Doc Comparison',
|
||||||
KnowledgeDatabase: 'Knowledge Q & a Database',
|
KnowledgeDatabase: 'Q&A Knowledge',
|
||||||
StandardDetails: 'Standard Details',
|
StandardDetails: 'Standard Details',
|
||||||
whole: 'Whole',
|
whole: 'Whole',
|
||||||
DocumentLibrary: 'Document Library',
|
DocumentLibrary: 'Document Library',
|
||||||
@@ -405,7 +405,7 @@ module.exports = {
|
|||||||
InputBoxType: 'Input Box Type',
|
InputBoxType: 'Input Box Type',
|
||||||
DropDownType: 'Drop Down Type',
|
DropDownType: 'Drop Down Type',
|
||||||
ExhibitionAreaManagement: 'Display Area Management',
|
ExhibitionAreaManagement: 'Display Area Management',
|
||||||
NewLabelItem: 'Add Tag Item',
|
NewLabelItem: 'Newly Added Tag Item',
|
||||||
editLabelItem: 'Edit Tag Item',
|
editLabelItem: 'Edit Tag Item',
|
||||||
NodeQuickLookup: 'Node Quick Lookup',
|
NodeQuickLookup: 'Node Quick Lookup',
|
||||||
AreAllLabelsRead: 'Are All Labels Read',
|
AreAllLabelsRead: 'Are All Labels Read',
|
||||||
@@ -422,7 +422,7 @@ module.exports = {
|
|||||||
SeeMore: 'See More',
|
SeeMore: 'See More',
|
||||||
OperationSuccessful: 'Operation Successful',
|
OperationSuccessful: 'Operation Successful',
|
||||||
OperationFailed: 'Operation Failed',
|
OperationFailed: 'Operation Failed',
|
||||||
PersonnelSelection: 'Personnel Selection',
|
PersonnelSelection: 'Select ',
|
||||||
EmployeeNumber: 'Employee ID',
|
EmployeeNumber: 'Employee ID',
|
||||||
EmployeeType: 'Employee Type',
|
EmployeeType: 'Employee Type',
|
||||||
LabeItemName: 'Label Item Name',
|
LabeItemName: 'Label Item Name',
|
||||||
@@ -474,7 +474,7 @@ module.exports = {
|
|||||||
away: 'Less',
|
away: 'Less',
|
||||||
toDoProcess: 'To Do',
|
toDoProcess: 'To Do',
|
||||||
processDone: 'Completed',
|
processDone: 'Completed',
|
||||||
sentProcess: 'Initiated Process',
|
sentProcess: 'Initiated',
|
||||||
monitoringProcess: 'Monitor',
|
monitoringProcess: 'Monitor',
|
||||||
ConfirmDeployment: 'Confirm Deployment?',
|
ConfirmDeployment: 'Confirm Deployment?',
|
||||||
terminationProcess: 'Termination Process',
|
terminationProcess: 'Termination Process',
|
||||||
@@ -499,11 +499,11 @@ module.exports = {
|
|||||||
ProcessName: 'Process Name',
|
ProcessName: 'Process Name',
|
||||||
ProcessType: 'Process Type',
|
ProcessType: 'Process Type',
|
||||||
AddProcess: 'Add Process',
|
AddProcess: 'Add Process',
|
||||||
RelatedItems: 'Relevant Items',
|
RelatedItems: 'Relevant Project',
|
||||||
Sponsor: 'Initiator',
|
Sponsor: 'Initiator',
|
||||||
CurrentProcessor: 'Current Processor',
|
CurrentProcessor: 'Current Processor',
|
||||||
LastProcessor: 'Last Processor',
|
LastProcessor: 'Last Processor',
|
||||||
ProcessingTime: 'Complete Date',
|
ProcessingTime: 'Operation Time',
|
||||||
cutoffTime: 'Due Date',
|
cutoffTime: 'Due Date',
|
||||||
ProcessStatus: 'Process Status',
|
ProcessStatus: 'Process Status',
|
||||||
CompletionTime: 'Completion Time',
|
CompletionTime: 'Completion Time',
|
||||||
@@ -530,8 +530,8 @@ module.exports = {
|
|||||||
newClause: 'New Clause',
|
newClause: 'New Clause',
|
||||||
clauseNo: 'Item No.',
|
clauseNo: 'Item No.',
|
||||||
functionalAreas: 'Functional Areas',
|
functionalAreas: 'Functional Areas',
|
||||||
technicalField: 'Technical Field',
|
technicalField: 'Tech field',
|
||||||
InformationCategory: 'Information Category',
|
informationCategory: 'Info Type',
|
||||||
contentValidity: 'Content Validity',
|
contentValidity: 'Content Validity',
|
||||||
content: 'Content',
|
content: 'Content',
|
||||||
Add: 'Add',
|
Add: 'Add',
|
||||||
@@ -586,7 +586,7 @@ module.exports = {
|
|||||||
listStatus: 'List Status',
|
listStatus: 'List Status',
|
||||||
creater: 'Creater',
|
creater: 'Creater',
|
||||||
withdraw: 'Withdraw',
|
withdraw: 'Withdraw',
|
||||||
maintenanceList: 'Maintain List',
|
maintenanceList: 'Maintain',
|
||||||
instructionForUse: 'Instruction',
|
instructionForUse: 'Instruction',
|
||||||
subtitle: 'Sub-Title',
|
subtitle: 'Sub-Title',
|
||||||
scopeOfApplication: 'Scope',
|
scopeOfApplication: 'Scope',
|
||||||
@@ -600,14 +600,14 @@ module.exports = {
|
|||||||
personLiable: 'Assignee',
|
personLiable: 'Assignee',
|
||||||
PrehomoConfirmation: 'Pre-Homo Confirmation',
|
PrehomoConfirmation: 'Pre-Homo Confirmation',
|
||||||
verificationAndConformityconfirmation: 'Validation Compliance Check',
|
verificationAndConformityconfirmation: 'Validation Compliance Check',
|
||||||
StandardImplementationDate: 'Standard Implementation Date',
|
StandardImplementationDate: 'New Type Execution Date',
|
||||||
regulatoryEngineer: 'Regulation Engineer',
|
regulatoryEngineer: 'Regulation Engineer',
|
||||||
certifiedEngineer: 'Homologation Engineer',
|
certifiedEngineer: 'Homologation Engineer',
|
||||||
regulatoryEngineerOrcertifiedEngineer: 'Regulation Engineer Or Homologation Engineer',
|
regulatoryEngineerOrcertifiedEngineer: 'Regulation Engineer Or Homologation Engineer',
|
||||||
engineeringInterfacePerson: 'Engineering Interface',
|
engineeringInterfacePerson: 'Engineering Interface',
|
||||||
typeOfDeliverables: 'Deliverable Type',
|
typeOfDeliverables: 'Deliverable Type',
|
||||||
deliverableTemplate: 'Deliverable Template',
|
deliverableTemplate: 'Deliverable Template',
|
||||||
entryName: 'Name',
|
entryName: 'Project',
|
||||||
targetMarket: 'Target Market',
|
targetMarket: 'Target Market',
|
||||||
projectStatus: 'Status',
|
projectStatus: 'Status',
|
||||||
StudioEngineer: 'R&H Studio',
|
StudioEngineer: 'R&H Studio',
|
||||||
@@ -631,7 +631,7 @@ module.exports = {
|
|||||||
certificationProgramTime: 'Certification Program Time',
|
certificationProgramTime: 'Certification Program Time',
|
||||||
ArchitecturePlatform: 'Architecture Platform',
|
ArchitecturePlatform: 'Architecture Platform',
|
||||||
ModelPlatform: 'Model Platform',
|
ModelPlatform: 'Model Platform',
|
||||||
ListOfRelevantPersonnel: 'Personal List',
|
ListOfRelevantPersonnel: 'Related Personnel',
|
||||||
DeliverableStatus: 'Deliverable Status',
|
DeliverableStatus: 'Deliverable Status',
|
||||||
CurrentStatusOfTheProject: 'Project Current State',
|
CurrentStatusOfTheProject: 'Project Current State',
|
||||||
CurrentStatus: 'Current Status',
|
CurrentStatus: 'Current Status',
|
||||||
@@ -671,7 +671,7 @@ module.exports = {
|
|||||||
initiateListConfirmation: 'Initiate List Confirmation',
|
initiateListConfirmation: 'Initiate List Confirmation',
|
||||||
initiateTaskConfirmation: 'Initiate Task Confirmation',
|
initiateTaskConfirmation: 'Initiate Task Confirmation',
|
||||||
alteration: 'Change',
|
alteration: 'Change',
|
||||||
fixedPlate: 'Baseline',
|
fixedPlate: 'Fix the version ',
|
||||||
taskAffirmStatus: 'Task Confirmation Status',
|
taskAffirmStatus: 'Task Confirmation Status',
|
||||||
taskAffirm: 'Task Confirmation',
|
taskAffirm: 'Task Confirmation',
|
||||||
listConfirmationStatus: 'List Confirmation Status',
|
listConfirmationStatus: 'List Confirmation Status',
|
||||||
@@ -690,7 +690,7 @@ module.exports = {
|
|||||||
bringInRelevantPersonnel: 'Bring In Relevant Personnel',
|
bringInRelevantPersonnel: 'Bring In Relevant Personnel',
|
||||||
confirmBringInRelevantPersonnel: 'Confirm Bring in relevant personnel',
|
confirmBringInRelevantPersonnel: 'Confirm Bring in relevant personnel',
|
||||||
problemType: 'Issue Type',
|
problemType: 'Issue Type',
|
||||||
projectDetails: 'Project Details',
|
projectDetails: 'Project Info',
|
||||||
listOfRegulations: 'Regulation List',
|
listOfRegulations: 'Regulation List',
|
||||||
taskList: 'Task List',
|
taskList: 'Task List',
|
||||||
TaskParameterCollection: 'Task Parameter Collection',
|
TaskParameterCollection: 'Task Parameter Collection',
|
||||||
@@ -712,8 +712,8 @@ module.exports = {
|
|||||||
|
|
||||||
confirmationOfRegulationsList: 'Regulation List Confirmation',
|
confirmationOfRegulationsList: 'Regulation List Confirmation',
|
||||||
regulatoryTaskConfirmation: 'Regulation Task Confirmation',
|
regulatoryTaskConfirmation: 'Regulation Task Confirmation',
|
||||||
certificationStart: 'Homologation Start',
|
certificationStart: 'Homo KO',
|
||||||
certificationEnd: 'Homologation End',
|
certificationEnd: 'Homo Completion',
|
||||||
directoryName: 'Catalogue Name',
|
directoryName: 'Catalogue Name',
|
||||||
batch: 'Batch',
|
batch: 'Batch',
|
||||||
uploadTime: 'Upload Time',
|
uploadTime: 'Upload Time',
|
||||||
@@ -785,7 +785,7 @@ module.exports = {
|
|||||||
copyParamDetailList: 'Copy Parameter List',
|
copyParamDetailList: 'Copy Parameter List',
|
||||||
collectionCompletionTime: 'Collection Completion Time',
|
collectionCompletionTime: 'Collection Completion Time',
|
||||||
parameterTemplateName: 'Parameter Template Name',
|
parameterTemplateName: 'Parameter Template Name',
|
||||||
onlyThree: 'Only letters, numbers and horizontal bars (-) can be entered',
|
onlyThree: 'Only letters, numbers, dashes (-), and decimal points (.) can be entered. , left slash, space six kinds of content ',
|
||||||
templateName: 'Template Name',
|
templateName: 'Template Name',
|
||||||
pleaseSelectData: 'Please Select Data',
|
pleaseSelectData: 'Please Select Data',
|
||||||
templateCopy: 'Template Copy',
|
templateCopy: 'Template Copy',
|
||||||
@@ -844,8 +844,8 @@ module.exports = {
|
|||||||
completedTime: 'Completed Time',
|
completedTime: 'Completed Time',
|
||||||
replyFromProjectContactPerson: 'Assignee Reply',
|
replyFromProjectContactPerson: 'Assignee Reply',
|
||||||
answer: 'Answer',
|
answer: 'Answer',
|
||||||
distributionEngineer: 'Distribution Engineer',
|
distributionEngineer: 'Dispatch to Engineer',
|
||||||
reminderHandling: 'Reminder handling',
|
reminderHandling: 'Reminder',
|
||||||
addFeedback: 'Add Feedback',
|
addFeedback: 'Add Feedback',
|
||||||
engineer: 'Engineer',
|
engineer: 'Engineer',
|
||||||
engineeringConfirmationDetails: 'Engineering Confirmation Details',
|
engineeringConfirmationDetails: 'Engineering Confirmation Details',
|
||||||
@@ -914,13 +914,13 @@ module.exports = {
|
|||||||
noData: 'No Data',
|
noData: 'No Data',
|
||||||
confirmOperation: 'Confirm Operation',
|
confirmOperation: 'Confirm Operation',
|
||||||
sponsorReview: 'Sponsor Review',
|
sponsorReview: 'Sponsor Review',
|
||||||
fillInProjectDelivery: 'Fill in project delivery',
|
fillInProjectDelivery: 'Engineering Delivery',
|
||||||
Resubmit: 'Resubmit',
|
Resubmit: 'Resubmit',
|
||||||
Quantity: 'Quantity',
|
Quantity: 'Quantity',
|
||||||
pleaseConfirmationResults: 'Please select the compliance status according to the engineering confirmation results',
|
pleaseConfirmationResults: 'Please select the compliance status based on the engineer confirmation result.',
|
||||||
pleaseReviewTask: 'Please add the engineering confirmation Information for this review task',
|
pleaseReviewTask: 'Please add engineering confirmation to this review task.',
|
||||||
pleaseWillBeReturned: 'Please reconfirm the project confirmation results and the review results of the responsible person. If they meet the requirements, they will be submitted, otherwise they will be returned',
|
pleaseWillBeReturned: 'Please double confirm the engineering result and owner review result. Submit if it is in accordance with the requirements and reject if it\'s not.',
|
||||||
pleaseSubmitStatus: 'Please submit the data confirmed by the project in the confirmation status',
|
pleaseSubmitStatus: 'Please confirm all engineer data before submission.',
|
||||||
modelName: 'Model Name',
|
modelName: 'Model Name',
|
||||||
modelYear: 'Model Year',
|
modelYear: 'Model Year',
|
||||||
NoteConfirmTheChange: 'Note: after the change, the list will be in the status of not being reviewed, which will start from the internal review, and the historical data will be discarded Confirm the change',
|
NoteConfirmTheChange: 'Note: after the change, the list will be in the status of not being reviewed, which will start from the internal review, and the historical data will be discarded Confirm the change',
|
||||||
@@ -932,12 +932,12 @@ module.exports = {
|
|||||||
engineerReply: 'Engineer reply',
|
engineerReply: 'Engineer reply',
|
||||||
catalogFile: 'Catalogue File',
|
catalogFile: 'Catalogue File',
|
||||||
testScheme: 'Test Scheme',
|
testScheme: 'Test Scheme',
|
||||||
testReportLocation: 'Report Location',
|
testReportLocation: 'Find Report',
|
||||||
explain: 'Comment',
|
explain: 'Illustration',
|
||||||
dataCannotEmpty: 'Data Cannot Empty',
|
dataCannotEmpty: 'Data Cannot Empty',
|
||||||
documentDynamics: 'Document Update',
|
documentDynamics: 'Document Updates',
|
||||||
theNumberAgain: 'The number already exists and cannot be added again',
|
theNumberAgain: 'The number already exists and cannot be added again',
|
||||||
myList: 'My to-do List',
|
myList: 'My To-do List',
|
||||||
myNews: 'My Message',
|
myNews: 'My Message',
|
||||||
monthlyReportRegulations: 'Regulation Monthly Report',
|
monthlyReportRegulations: 'Regulation Monthly Report',
|
||||||
Pending: 'Pending',
|
Pending: 'Pending',
|
||||||
@@ -1047,7 +1047,7 @@ module.exports = {
|
|||||||
ParameterNo: 'Number',
|
ParameterNo: 'Number',
|
||||||
NRequired: 'Is Must',
|
NRequired: 'Is Must',
|
||||||
NParameterName: 'Params Name',
|
NParameterName: 'Params Name',
|
||||||
NtechnicalField: 'Technical Field',
|
NtechnicalField: 'Tech field',
|
||||||
NparameterBatch: 'Params Batch',
|
NparameterBatch: 'Params Batch',
|
||||||
NareaOfResponsibility: 'Duty Territory',
|
NareaOfResponsibility: 'Duty Territory',
|
||||||
NParameterDescription: 'Description',
|
NParameterDescription: 'Description',
|
||||||
|
|||||||
@@ -800,7 +800,7 @@ module.exports = {
|
|||||||
copyParamDetailList: '复制参数清单',
|
copyParamDetailList: '复制参数清单',
|
||||||
collectionCompletionTime: '收集完成时间',
|
collectionCompletionTime: '收集完成时间',
|
||||||
parameterTemplateName: '参数模板名称',
|
parameterTemplateName: '参数模板名称',
|
||||||
onlyThree: '只能输入字母,数字,横杠(-)三种内容',
|
onlyThree: '只能输入字母,数字,横杠(-),小数点(.),左斜杠,空格六种内容',
|
||||||
templateName: '模板名称',
|
templateName: '模板名称',
|
||||||
pleaseSelectData: '请选择数据',
|
pleaseSelectData: '请选择数据',
|
||||||
templateCopy: '模板复制',
|
templateCopy: '模板复制',
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
@cancel="cancel">
|
@cancel="cancel">
|
||||||
<a-form-model
|
<a-form-model
|
||||||
class='tag-module'
|
class='tag-module'
|
||||||
ref='ruleForm'
|
ref='ruleFormOne'
|
||||||
:model='Dateline'
|
:model='Dateline'
|
||||||
:rules='rules'
|
:rules='rules'
|
||||||
:label-col='labelCol'
|
:label-col='labelCol'
|
||||||
@@ -136,6 +136,7 @@
|
|||||||
<!-- </a-select-option>-->
|
<!-- </a-select-option>-->
|
||||||
<!-- </a-select>-->
|
<!-- </a-select>-->
|
||||||
<j-dict-select-tag class="box-input" v-model="Dateline.queryzr"
|
<j-dict-select-tag class="box-input" v-model="Dateline.queryzr"
|
||||||
|
@input="handleInput('queryzr')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
|
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false" :dictCode="'duty_territory'"/>
|
:triggerChange="false" :dictCode="'duty_territory'"/>
|
||||||
@@ -146,7 +147,7 @@
|
|||||||
<div class="imports-footer">
|
<div class="imports-footer">
|
||||||
<div class="imports-footer-wrap">
|
<div class="imports-footer-wrap">
|
||||||
|
|
||||||
<a-button class="imports-btn imports-sub" type="primary" @click="handleSubmitzr">{{$t('preservation')}}
|
<a-button class="imports-btn imports-sub" :loading="confirmLoading" type="primary" @click="handleSubmitzr">{{$t('preservation')}}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button class="imports-btn" type="primary" @click="cancel">{{$t('cancel')}}</a-button>
|
<a-button class="imports-btn" type="primary" @click="cancel">{{$t('cancel')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -278,6 +279,7 @@
|
|||||||
indeterminate: false,
|
indeterminate: false,
|
||||||
columns: [],
|
columns: [],
|
||||||
content: [],
|
content: [],
|
||||||
|
confirmLoading:false,
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
selectedRowrowValue: [],
|
selectedRowrowValue: [],
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
@@ -348,6 +350,12 @@
|
|||||||
return 'rowClassRed'
|
return 'rowClassRed'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
handleInput(value) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.Dateline = { ...this.Dateline }
|
||||||
|
this.$refs.ruleFormOne.validateField([value])
|
||||||
|
})
|
||||||
|
},
|
||||||
pageOnChange(page, pageSize) {
|
pageOnChange(page, pageSize) {
|
||||||
this.pageNo = page
|
this.pageNo = page
|
||||||
this.$emit('handlePreservation')
|
this.$emit('handlePreservation')
|
||||||
@@ -415,8 +423,9 @@
|
|||||||
handleSubmitzr(record) {
|
handleSubmitzr(record) {
|
||||||
let _this = this
|
let _this = this
|
||||||
let param = { dutyTerritory: this.Dateline.queryzr, ids: this.getquerySdtId,paramsManifestId: this.$route.query.id, }
|
let param = { dutyTerritory: this.Dateline.queryzr, ids: this.getquerySdtId,paramsManifestId: this.$route.query.id, }
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleFormOne.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.confirmLoading = true
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/params/collectManifest/updateDutyTerritory',
|
url: '/jero-boot/params/collectManifest/updateDutyTerritory',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@@ -442,8 +451,10 @@
|
|||||||
} else {
|
} else {
|
||||||
_this.$message.warning(_this.$t('operationFailed'))
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
|
this.confirmLoading = false
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
this.confirmLoading = false
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -494,7 +505,7 @@
|
|||||||
},
|
},
|
||||||
cancel(){
|
cancel(){
|
||||||
this.areaVisiblezr = false
|
this.areaVisiblezr = false
|
||||||
this.$refs['ruleForm'].resetFields()
|
this.$refs['ruleFormOne'].resetFields()
|
||||||
},
|
},
|
||||||
// 点击工程接口人的详情人员 有权限
|
// 点击工程接口人的详情人员 有权限
|
||||||
areaOfResponsibility(record) {
|
areaOfResponsibility(record) {
|
||||||
@@ -513,7 +524,7 @@
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.Dateline = { ...this.Dateline }
|
this.Dateline = { ...this.Dateline }
|
||||||
this.getquerySdtId = record.id
|
this.getquerySdtId = record.id
|
||||||
this.$refs.ruleForm.clearValidate()
|
this.$refs.ruleFormOne.clearValidate()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
dataValueTobeinitiated() {
|
dataValueTobeinitiated() {
|
||||||
|
|||||||
+3
-3
@@ -35,10 +35,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<PersonnelSelection class="box-input"
|
<PersonnelSelection class="box-input"
|
||||||
:personneQuery="queryParam"
|
:personneQuery="queryParam"
|
||||||
:query="{db_field_name:'evaluators',db_field_txt:$t('Assessor')}"
|
:query="{db_field_name:'evaluatorId',db_field_txt:$t('Assessor')}"
|
||||||
:isInput="true"
|
:isInput="true"
|
||||||
@change="PersonnelSelectionChange"
|
@change="PersonnelSelectionChange"
|
||||||
v-model="queryParam.evaluatorsName"/>
|
v-model="queryParam.evaluatorIdName"/>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('Assessor'),
|
title: this.$t('Assessor'),
|
||||||
dataIndex: 'Assessor',
|
dataIndex: 'evaluatorName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 160
|
width: 160
|
||||||
|
|||||||
+8
-8
@@ -347,15 +347,15 @@
|
|||||||
id: this.formInline.standId
|
id: this.formInline.standId
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let url = ''
|
// let url = ''
|
||||||
if (this.isTrue) {
|
// if (this.isTrue) {
|
||||||
url = this.url.addModelListOne
|
// url = this.url.addModelListOne
|
||||||
} else {
|
// } else {
|
||||||
url = this.url.addModelList
|
// url = this.url.addModelList
|
||||||
}
|
// }
|
||||||
postAction(url, query).then((res) => {
|
postAction('/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/queryPageDummyById', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
let content = res.result.records || []
|
let content = res.result || []
|
||||||
this.selectedRowKeysRecord.push({
|
this.selectedRowKeysRecord.push({
|
||||||
standId: content[0].id,
|
standId: content[0].id,
|
||||||
serialNumber: content[0].serial_number,
|
serialNumber: content[0].serial_number,
|
||||||
|
|||||||
+1
-1
@@ -275,7 +275,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title-text {
|
.title-text {
|
||||||
width: 33px;
|
width: 73px;
|
||||||
color: #000F16;
|
color: #000F16;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -382,6 +382,7 @@
|
|||||||
id: row.id,
|
id: row.id,
|
||||||
processBackground: row.processBackground,
|
processBackground: row.processBackground,
|
||||||
serialNumber: row.serialNumber,
|
serialNumber: row.serialNumber,
|
||||||
|
lawsTechnologyEvaluationId:row.id,
|
||||||
standId: row.standId,
|
standId: row.standId,
|
||||||
remark:row.remark
|
remark:row.remark
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ export default {
|
|||||||
{ required: true, message: this.$t('PleaseEnter')+this.$t('NiONumber'), trigger: 'blur' },
|
{ required: true, message: this.$t('PleaseEnter')+this.$t('NiONumber'), trigger: 'blur' },
|
||||||
{ min:1, max: 15, message: this.$t('cantExeed')+'15'+this.$t('characters'), trigger: 'blur' },
|
{ min:1, max: 15, message: this.$t('cantExeed')+'15'+this.$t('characters'), trigger: 'blur' },
|
||||||
{
|
{
|
||||||
pattern: /^[0-9a-zA-Z-]{1,}$/,
|
pattern: /^[0-9a-zA-Z-/. ]{1,}$/,
|
||||||
message: this.$t('onlyThree'),
|
message: this.$t('onlyThree'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
@@ -385,11 +385,11 @@ export default {
|
|||||||
// { required: true, message: this.$t('pleaseSelect')+this.$t('certificationCategory'), type: 'array', trigger: 'change' },
|
// { required: true, message: this.$t('pleaseSelect')+this.$t('certificationCategory'), type: 'array', trigger: 'change' },
|
||||||
],
|
],
|
||||||
isMust: [
|
isMust: [
|
||||||
{ required: true, message: this.$t('pleaseSelect')+this.$t('Required'), trigger: 'change' },
|
{ required: true, message: this.$t('PleaseEnter')+this.$t('Required'), trigger: 'change' },
|
||||||
],
|
],
|
||||||
paramsName: [
|
paramsName: [
|
||||||
{ required: true, message: this.$t('pleaseSelect')+this.$t('ParameterName'), trigger: 'blur' },
|
{ required: true, message: this.$t('pleaseSelect')+this.$t('ParameterName'), trigger: 'blur' },
|
||||||
{ min:1, max: 30, message: this.$t('cantExeed')+'30'+this.$t('characters'), trigger: 'blur' },
|
{ min:1, max: 100, message: this.$t('cantExeed')+'100'+this.$t('characters'), trigger: 'blur' },
|
||||||
],
|
],
|
||||||
technologyTerritory: [
|
technologyTerritory: [
|
||||||
{ required: true, message: this.$t('pleaseSelect')+this.$t('technicalField'), trigger: 'change' },
|
{ required: true, message: this.$t('pleaseSelect')+this.$t('technicalField'), trigger: 'change' },
|
||||||
@@ -401,7 +401,7 @@ export default {
|
|||||||
{ required: true, message: this.$t('PleaseSelect')+this.$t('areaOfResponsibility'), trigger: 'change' },
|
{ required: true, message: this.$t('PleaseSelect')+this.$t('areaOfResponsibility'), trigger: 'change' },
|
||||||
],
|
],
|
||||||
description: [
|
description: [
|
||||||
{ min:1, max: 1000, message: this.$t('cantExeed')+'1000'+this.$t('characters'), trigger: 'blur' },
|
{ min:1, max: 2000, message: this.$t('cantExeed')+'2000'+this.$t('characters'), trigger: 'blur' },
|
||||||
],
|
],
|
||||||
controlType: [
|
controlType: [
|
||||||
{ required: true, message: this.$t('pleaseSelect')+this.$t('controlType'), trigger: 'change' },
|
{ required: true, message: this.$t('pleaseSelect')+this.$t('controlType'), trigger: 'change' },
|
||||||
@@ -669,7 +669,7 @@ export default {
|
|||||||
}
|
}
|
||||||
let falg = 1
|
let falg = 1
|
||||||
this.contentList.forEach((item,index) => {
|
this.contentList.forEach((item,index) => {
|
||||||
let reg = /^[0-9a-zA-Z-]{1,}$/
|
let reg = /^[0-9a-zA-Z-/. ]{1,}$/
|
||||||
// 编号的限制
|
// 编号的限制
|
||||||
if(item.paramsNumber == '' || item.paramsNumber === undefined) {
|
if(item.paramsNumber == '' || item.paramsNumber === undefined) {
|
||||||
this.$message.warning(this.$t('standard')+this.$t('cannotEmpty'))
|
this.$message.warning(this.$t('standard')+this.$t('cannotEmpty'))
|
||||||
@@ -689,15 +689,15 @@ export default {
|
|||||||
this.$message.warning(this.$t('ParameterName')+this.$t('cannotEmpty'))
|
this.$message.warning(this.$t('ParameterName')+this.$t('cannotEmpty'))
|
||||||
falg = 0
|
falg = 0
|
||||||
return
|
return
|
||||||
} else if(item.paramsName.length > 30){
|
} else if(item.paramsName.length > 100){
|
||||||
this.$message.warning(this.$t('ParameterName')+this.$t('cantExeed')+'30'+this.$t('Characters'))
|
this.$message.warning(this.$t('ParameterName')+this.$t('cantExeed')+'100'+this.$t('Characters'))
|
||||||
falg = 0
|
falg = 0
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(item.description !== undefined && item.description !== null){
|
if(item.description !== undefined && item.description !== null){
|
||||||
// 参数说明的限制
|
// 参数说明的限制
|
||||||
if(item.description.length > 1000){
|
if(item.description.length > 2000){
|
||||||
this.$message.warning(this.$t('ParameterDescription')+this.$t('cantExeed')+'1000'+this.$t('Characters'))
|
this.$message.warning(this.$t('ParameterDescription')+this.$t('cantExeed')+'2000'+this.$t('Characters'))
|
||||||
falg = 0
|
falg = 0
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,13 +170,11 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '10%',
|
|
||||||
dataIndex: 'standard'
|
dataIndex: 'standard'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '10%',
|
|
||||||
dataIndex: 'title'
|
dataIndex: 'title'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -184,11 +182,11 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'status'
|
dataIndex: 'status'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: this.$t('category'),
|
// title: this.$t('category'),
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
dataIndex: 'category'
|
// dataIndex: 'category'
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: this.$t('technicalField'),
|
title: this.$t('technicalField'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ module.exports = {
|
|||||||
target: 'http://localhost:8080', //请求本地 jero-boot后台项目
|
target: 'http://localhost:8080', //请求本地 jero-boot后台项目
|
||||||
// target: 'http://10.10.10.46:8101', //请求本地 jero-boot后台项目
|
// target: 'http://10.10.10.46:8101', //请求本地 jero-boot后台项目
|
||||||
// target: 'http://10.0.1.25:8080',
|
// target: 'http://10.0.1.25:8080',
|
||||||
|
// target: 'http://10.0.1.5:8080',
|
||||||
ws: false,
|
ws: false,
|
||||||
changeOrigin: true
|
changeOrigin: true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user