Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH
This commit is contained in:
+201
-8
@@ -4007,6 +4007,14 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<String> paramsCollectManifestIdList = configDataList.stream().map(ParamsConfigDataEO::getParamsCollectManifestId).distinct().collect(Collectors.toList());
|
||||||
|
for (String paramsCollectManifestId : paramsCollectManifestIdList) {
|
||||||
|
// 删除之前的参数项
|
||||||
|
QueryWrapper<ParamsConfigDataEO> targetConfigDataRemoveWrap = new QueryWrapper<>();
|
||||||
|
targetConfigDataRemoveWrap.lambda().eq(ParamsConfigDataEO::getParamsCollectManifestId, paramsCollectManifestId);
|
||||||
|
this.paramsConfigDataEOService.remove(targetConfigDataRemoveWrap);
|
||||||
|
}
|
||||||
|
|
||||||
// 批量新增参数项
|
// 批量新增参数项
|
||||||
Boolean isSuccess = paramsConfigDataEOService.saveOrUpdateBatch(configDataList);
|
Boolean isSuccess = paramsConfigDataEOService.saveOrUpdateBatch(configDataList);
|
||||||
|
|
||||||
@@ -5416,7 +5424,7 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
|
|
||||||
} else if (ControlTypeEnum.TEXT_PULL_SINGLE.getValue().equals(controlType)) {
|
} else if (ControlTypeEnum.TEXT_PULL_SINGLE.getValue().equals(controlType)) {
|
||||||
// 校验必填
|
// 校验必填
|
||||||
if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
/*if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
||||||
} else {
|
} else {
|
||||||
@@ -5462,11 +5470,41 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
// 处理禅道66949 问题,导入的时候将必填校验去掉,填写人在提交的时候还有必填校验。
|
||||||
|
if (StringUtils.isNotEmpty(value)) {
|
||||||
|
if (countChar(value, "#") != 1) {
|
||||||
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
|
errorMsg += configMap.get(key) + "格式不正确;";
|
||||||
|
} else {
|
||||||
|
errorMsg += configMap.get(key) + " format is incorrect; ";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
|
} else {
|
||||||
|
if (value.split("#").length > 1) {
|
||||||
|
resultMap = validatePull(configMap.get(key), controlValues, value.split("#")[1], isMust, true, cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setPullData(value.split("#")[1]);
|
||||||
|
|
||||||
|
resultMap = validateText(configMap.get(key), controlVerify, value.split("#")[0], ParamsIsMustEnum.NO.getValue(), "1000", cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setTextData(value.split("#")[0]);
|
||||||
|
|
||||||
|
} else if (value.split("#").length == 1 && value.endsWith("#")) {
|
||||||
|
resultMap = validateText(configMap.get(key), controlVerify, value.split("#")[0], ParamsIsMustEnum.NO.getValue(), "1000", cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setTextData(value.split("#")[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (ControlTypeEnum.TEXT_PULL_MORE.getValue().equals(controlType)) {
|
} else if (ControlTypeEnum.TEXT_PULL_MORE.getValue().equals(controlType)) {
|
||||||
// 校验必填
|
// 校验必填
|
||||||
if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
/*if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
||||||
} else {
|
} else {
|
||||||
@@ -5511,11 +5549,39 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
// 处理禅道66949 问题,导入的时候将必填校验去掉,填写人在提交的时候还有必填校验。
|
||||||
|
if (StringUtils.isNotEmpty(value)) {
|
||||||
|
if (countChar(value, "#") != 1) {
|
||||||
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
|
errorMsg += configMap.get(key) + "格式不正确;";
|
||||||
|
} else {
|
||||||
|
errorMsg += configMap.get(key) + " format is incorrect; ";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
|
} else {
|
||||||
|
if (value.split("#").length > 1) {
|
||||||
|
resultMap = validatePull(configMap.get(key), controlValues, value.split("#")[1], isMust, false, cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setPullData(value.split("#")[1]);
|
||||||
|
|
||||||
|
resultMap = validateText(configMap.get(key), controlVerify, value.split("#")[0], ParamsIsMustEnum.NO.getValue(), "1000", cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setTextData(value.split("#")[0]);
|
||||||
|
} else if (value.split("#").length == 1 && value.endsWith("#")) {
|
||||||
|
resultMap = validateText(configMap.get(key), controlVerify, value.split("#")[0], ParamsIsMustEnum.NO.getValue(), "1000", cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setTextData(value.split("#")[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (ControlTypeEnum.TEXT_FILE.getValue().equals(controlType)) {
|
} else if (ControlTypeEnum.TEXT_FILE.getValue().equals(controlType)) {
|
||||||
// 校验必填
|
// 校验必填
|
||||||
if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
/*if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
||||||
} else {
|
} else {
|
||||||
@@ -5551,11 +5617,40 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
// 处理禅道66949 问题,导入的时候将必填校验去掉,填写人在提交的时候还有必填校验。
|
||||||
|
if (StringUtils.isNotEmpty(value)) {
|
||||||
|
if (countChar(value, "#") != 1) {
|
||||||
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
|
errorMsg += configMap.get(key) + "格式不正确;";
|
||||||
|
} else {
|
||||||
|
errorMsg += configMap.get(key) + " format is incorrect; ";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
|
} else {
|
||||||
|
if (value.split("#").length > 1) {
|
||||||
|
resultMap = validateText(configMap.get(key), controlVerify, value.split("#")[0], isMust, "1000", cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setTextData(value.split("#")[0]);
|
||||||
|
|
||||||
|
resultMap = validateFile(configMap.get(key), unzipfilepath, value.split("#")[1], ParamsIsMustEnum.NO.getValue(), cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setFileConnectId(value.split("#")[1]);
|
||||||
|
} else if (value.split("#").length == 1 && value.endsWith("#")) {
|
||||||
|
resultMap = validateText(configMap.get(key), controlVerify, value.split("#")[0], isMust, "1000", cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setTextData(value.split("#")[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (ControlTypeEnum.PULL_SINGLE_FILE.getValue().equals(controlType)) {
|
} else if (ControlTypeEnum.PULL_SINGLE_FILE.getValue().equals(controlType)) {
|
||||||
// 校验必填
|
// 校验必填
|
||||||
if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
/*if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
||||||
} else {
|
} else {
|
||||||
@@ -5590,11 +5685,40 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
// 处理禅道66949 问题,导入的时候将必填校验去掉,填写人在提交的时候还有必填校验。
|
||||||
|
if (StringUtils.isNotEmpty(value)) {
|
||||||
|
if (countChar(value, "#") != 1) {
|
||||||
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
|
errorMsg += configMap.get(key) + "格式不正确;";
|
||||||
|
} else {
|
||||||
|
errorMsg += configMap.get(key) + " format is incorrect; ";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
|
} else {
|
||||||
|
if (value.split("#").length > 1) {
|
||||||
|
resultMap = validatePull(configMap.get(key), controlValues, value.split("#")[0], isMust, true, cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setPullData(value.split("#")[0]);
|
||||||
|
|
||||||
|
resultMap = validateFile(configMap.get(key), unzipfilepath, value.split("#")[1], ParamsIsMustEnum.NO.getValue(), cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setFileConnectId(value.split("#")[1]);
|
||||||
|
} else if (value.split("#").length == 1 && value.endsWith("#")) {
|
||||||
|
resultMap = validatePull(configMap.get(key), controlValues, value.split("#")[0], isMust, true, cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setPullData(value.split("#")[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (ControlTypeEnum.PULL_MORE_FILE.getValue().equals(controlType)) {
|
} else if (ControlTypeEnum.PULL_MORE_FILE.getValue().equals(controlType)) {
|
||||||
// 校验必填
|
// 校验必填
|
||||||
if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
/*if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
||||||
} else {
|
} else {
|
||||||
@@ -5630,11 +5754,40 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
// 处理禅道66949 问题,导入的时候将必填校验去掉,填写人在提交的时候还有必填校验。
|
||||||
|
if (StringUtils.isNotEmpty(value)) {
|
||||||
|
if (countChar(value, "#") != 1) {
|
||||||
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
|
errorMsg += configMap.get(key) + "格式不正确;";
|
||||||
|
} else {
|
||||||
|
errorMsg += configMap.get(key) + " format is incorrect; ";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
|
} else {
|
||||||
|
if (value.split("#").length > 1) {
|
||||||
|
resultMap = validatePull(configMap.get(key), controlValues, value.split("#")[0], isMust, false, cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setPullData(value.split("#")[0]);
|
||||||
|
|
||||||
|
resultMap = validateFile(configMap.get(key), unzipfilepath, value.split("#")[1], ParamsIsMustEnum.NO.getValue(), cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setFileConnectId(value.split("#")[1]);
|
||||||
|
} else if (value.split("#").length == 1 && value.endsWith("#")) {
|
||||||
|
resultMap = validatePull(configMap.get(key), controlValues, value.split("#")[0], isMust, false, cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setPullData(value.split("#")[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (ControlTypeEnum.TEXT_PULL_SINGLE_FILE.getValue().equals(controlType)) {
|
} else if (ControlTypeEnum.TEXT_PULL_SINGLE_FILE.getValue().equals(controlType)) {
|
||||||
// 校验必填
|
// 校验必填
|
||||||
if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
/*if (ParamsIsMustEnum.YES.getValue().equals(isMust) && StringUtils.isEmpty(value)) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
errorMsg += configMap.get(key) + "为必填项,不能为空;";
|
||||||
} else {
|
} else {
|
||||||
@@ -5689,6 +5842,42 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}*/
|
||||||
|
|
||||||
|
// 处理禅道66949 问题,导入的时候将必填校验去掉,填写人在提交的时候还有必填校验。
|
||||||
|
if (StringUtils.isNotEmpty(value)) {
|
||||||
|
if (countChar(value, "#") != 2) {
|
||||||
|
if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
|
errorMsg += configMap.get(key) + "格式不正确;";
|
||||||
|
} else {
|
||||||
|
errorMsg += configMap.get(key) + " format is incorrect; ";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
|
} else {
|
||||||
|
if (value.split("#").length > 1) {
|
||||||
|
resultMap = validatePull(configMap.get(key), controlValues, value.split("#")[1], isMust, true, cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setPullData(value.split("#")[1]);
|
||||||
|
|
||||||
|
resultMap = validateText(configMap.get(key), controlVerify, value.split("#")[0], ParamsIsMustEnum.NO.getValue(), "1000", cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setTextData(value.split("#")[0]);
|
||||||
|
|
||||||
|
if (!value.endsWith("#")) { //3
|
||||||
|
resultMap = validateFile(configMap.get(key), unzipfilepath, value.split("#")[2], ParamsIsMustEnum.NO.getValue(), cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setFileConnectId(value.split("#")[2]);
|
||||||
|
}
|
||||||
|
} else if (value.split("#").length == 1 && value.endsWith("#")) {
|
||||||
|
resultMap = validateText(configMap.get(key), controlVerify, value.split("#")[0], ParamsIsMustEnum.NO.getValue(), "1000", cut);
|
||||||
|
errorMsg += (String) resultMap.get("errorMsg");
|
||||||
|
countError += (int) resultMap.get("countError");
|
||||||
|
configDataEO.setTextData(value.split("#")[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -5701,7 +5890,11 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl<ParamsCollec
|
|||||||
countError++;
|
countError++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotEmpty(configDataEO.getId())) {
|
/*if (StringUtils.isNotEmpty(configDataEO.getId())) {
|
||||||
|
configDataList.add(configDataEO);
|
||||||
|
}*/
|
||||||
|
// 如果表格里的参数不为空,则进行添加。
|
||||||
|
if(StringUtils.isNotBlank(value)){
|
||||||
configDataList.add(configDataEO);
|
configDataList.add(configDataEO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+51
-19
@@ -5076,6 +5076,13 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
public void exportTemplate(Map<String, Object> map, HttpServletResponse response, HttpServletRequest request) {
|
public void exportTemplate(Map<String, Object> map, HttpServletResponse response, HttpServletRequest request) {
|
||||||
OutputStream os = null;
|
OutputStream os = null;
|
||||||
HSSFWorkbook workbook = new HSSFWorkbook();
|
HSSFWorkbook workbook = new HSSFWorkbook();
|
||||||
|
String cut = (String) map.get("cut");
|
||||||
|
String sheetName = "";
|
||||||
|
if(StringUtils.equals(cut,CutEnum.CN.getValue())){
|
||||||
|
sheetName = "文档库导入模板";
|
||||||
|
}else {
|
||||||
|
sheetName = "Document LibraryImport Template";
|
||||||
|
}
|
||||||
String fileOriName = "文档库导入模板.xls";
|
String fileOriName = "文档库导入模板.xls";
|
||||||
String filePath = uploadpath + File.separator + fileOriName;
|
String filePath = uploadpath + File.separator + fileOriName;
|
||||||
try {
|
try {
|
||||||
@@ -5086,7 +5093,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
nowFile.delete();
|
nowFile.delete();
|
||||||
}
|
}
|
||||||
nowFile.mkdirs();
|
nowFile.mkdirs();
|
||||||
HSSFSheet sheet = workbook.createSheet("文档库导入模板");
|
HSSFSheet sheet = workbook.createSheet(sheetName);
|
||||||
sheet.setDefaultColumnWidth(16);//列宽
|
sheet.setDefaultColumnWidth(16);//列宽
|
||||||
HSSFCellStyle cellStyle = workbook.createCellStyle();
|
HSSFCellStyle cellStyle = workbook.createCellStyle();
|
||||||
cellStyle.setWrapText(true);//自动换行
|
cellStyle.setWrapText(true);//自动换行
|
||||||
@@ -5269,10 +5276,10 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
if(CutEnum.CN.getValue().equals(cut)){
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
String tree = "分阶段实施详情字段,多行之间使用#号分隔,列之间使用<p>标签分隔,示例:法规编号/条款<p>新车型<p>2000-10-10<p>备注#";
|
String tree = "分阶段实施详情字段,多行之间使用#号分隔,列之间使用<n>标签分隔,示例:法规编号/条款<n>新车型<n>2000-10-10<n>备注#";
|
||||||
sbTwo.append(count++ + "." + tree);
|
sbTwo.append(count++ + "." + tree);
|
||||||
}else{
|
}else{
|
||||||
String tree = "For the field of phased implementation details, separate rows with # signs and columns with <p> labels. Example: Regulation Number/Articles <p> New model <p>2000-10-10<p> Remarks";
|
String tree = "For the field of phased implementation details, separate rows with # signs and columns with <n> labels. Example: Regulation Number/Articles <n> New model <n>2000-10-10<n> Remarks";
|
||||||
sbTwo.append(count++ + "." + tree);
|
sbTwo.append(count++ + "." + tree);
|
||||||
}
|
}
|
||||||
List<String> list = new LinkedList<>();
|
List<String> list = new LinkedList<>();
|
||||||
@@ -5960,14 +5967,21 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
List<String> phasedImplDetailsList = Arrays.asList(value.split("#"));
|
List<String> phasedImplDetailsList = Arrays.asList(value.split("#"));
|
||||||
for (String phasedImplDetails : phasedImplDetailsList) {
|
for (String phasedImplDetails : phasedImplDetailsList) {
|
||||||
PhasedImplementationDetailsEO phasedImplementationDetailsEO = new PhasedImplementationDetailsEO();
|
PhasedImplementationDetailsEO phasedImplementationDetailsEO = new PhasedImplementationDetailsEO();
|
||||||
String[] phasedImplDetailsArr = phasedImplDetails.split("<p>");
|
String[] phasedImplDetailsArr = phasedImplDetails.split("<n>");
|
||||||
if(phasedImplDetailsArr.length >= 1){
|
if(phasedImplDetailsArr.length >= 1){
|
||||||
String standNumberOrClause = phasedImplDetailsArr[0];
|
String standNumberOrClause = phasedImplDetailsArr[0];
|
||||||
if (StringUtils.isNotBlank(standNumberOrClause) && standNumberOrClause.length() > 100) {
|
if(StringUtils.isEmpty(standNumberOrClause)){
|
||||||
if(CutEnum.CN.getValue().equals(cut)){
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
errorMsg += "分阶段实施详情-法规编号/条款不能超过" + 100 + "个字符, ";
|
errorMsg += "分阶段实施详情-法规编号/条款不能为空, ";
|
||||||
}else{
|
}else{
|
||||||
errorMsg += "Details of the phased implementation standNumberOrClause Can not be more than " + 100 + " char, ";
|
errorMsg += "Phased Implementation Details - Regulation No./clause cannot be empty,";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
|
} else if (StringUtils.isNotBlank(standNumberOrClause) && standNumberOrClause.length() > 200) {
|
||||||
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
|
errorMsg += "分阶段实施详情-法规编号/条款不能超过" + 200 + "个字符, ";
|
||||||
|
}else{
|
||||||
|
errorMsg += "Phased Implementation Details - Regulation No./clause Can not be more than " + 200 + " char, ";
|
||||||
}
|
}
|
||||||
countError++;
|
countError++;
|
||||||
}else {
|
}else {
|
||||||
@@ -5976,6 +5990,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
}
|
}
|
||||||
if(phasedImplDetailsArr.length >= 2){
|
if(phasedImplDetailsArr.length >= 2){
|
||||||
String implementationTypeName = phasedImplDetailsArr[1];
|
String implementationTypeName = phasedImplDetailsArr[1];
|
||||||
|
|
||||||
if(StringUtils.isNotEmpty(implementationTypeName)){
|
if(StringUtils.isNotEmpty(implementationTypeName)){
|
||||||
String[] implementationTypeNameArr = implementationTypeName.split(",");
|
String[] implementationTypeNameArr = implementationTypeName.split(",");
|
||||||
ImplementationTypeEnum[] implementationTypeEnums = ImplementationTypeEnum.values();
|
ImplementationTypeEnum[] implementationTypeEnums = ImplementationTypeEnum.values();
|
||||||
@@ -5993,30 +6008,47 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
if(CutEnum.CN.getValue().equals(cut)){
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
errorMsg += "分阶段实施详情-实施类型填写有误,填写值为'新车型 或 在产车', ";
|
errorMsg += "分阶段实施详情-实施类型填写有误,填写值为'新车型 或 在产车', ";
|
||||||
}else{
|
}else{
|
||||||
errorMsg += "Details of the phased implementation implementationType The value is set to 'New car model or Car in production', ";
|
errorMsg += "Phased Implementation Details - implementationType The value is set to 'New car model or Car in production', ";
|
||||||
}
|
}
|
||||||
countError++;
|
countError++;
|
||||||
}else {
|
}else {
|
||||||
phasedImplementationDetailsEO.setImplementationType(implementationTypeList.stream().collect(Collectors.joining(",")));
|
phasedImplementationDetailsEO.setImplementationType(implementationTypeList.stream().collect(Collectors.joining(",")));
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
|
errorMsg += "分阶段实施详情-实施类型不能为空, ";
|
||||||
|
}else{
|
||||||
|
errorMsg += "Phased Implementation Details - Implementation Type cannot be empty,";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(phasedImplDetailsArr.length >= 3){
|
if(phasedImplDetailsArr.length >= 3){
|
||||||
Date implementationDate = null;
|
String implementationDateStr = phasedImplDetailsArr[2];
|
||||||
try {
|
if(StringUtils.isEmpty(implementationDateStr)){
|
||||||
implementationDate = DateUtils.parseDate(phasedImplDetailsArr[2], "yyyy-MM-dd");
|
|
||||||
} catch (ParseException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
if(implementationDate == null){
|
|
||||||
if(CutEnum.CN.getValue().equals(cut)){
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
errorMsg += "分阶段实施详情-实施日期格式错误,正确格式为'yyyy-MM-dd', ";
|
errorMsg += "分阶段实施详情-实施日期不能为空, ";
|
||||||
}else{
|
}else{
|
||||||
errorMsg += "Details of the phased implementation implementationDate format is incorrect. The correct format is 'yyyy-MM-dd', ";
|
errorMsg += "Phased Implementation Details - Implementation Date cannot be empty,";
|
||||||
}
|
}
|
||||||
countError++;
|
countError++;
|
||||||
}else {
|
}else {
|
||||||
phasedImplementationDetailsEO.setImplementationDate(implementationDate);
|
Date implementationDate = null;
|
||||||
|
try {
|
||||||
|
implementationDate = DateUtils.parseDate(phasedImplDetailsArr[2], "yyyy-MM-dd");
|
||||||
|
} catch (ParseException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
if(implementationDate == null){
|
||||||
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
|
errorMsg += "分阶段实施详情-实施日期格式错误,正确格式为'yyyy-MM-dd', ";
|
||||||
|
}else{
|
||||||
|
errorMsg += "Phased Implementation Details - implementationDate format is incorrect. The correct format is 'yyyy-MM-dd', ";
|
||||||
|
}
|
||||||
|
countError++;
|
||||||
|
}else {
|
||||||
|
phasedImplementationDetailsEO.setImplementationDate(implementationDate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(phasedImplDetailsArr.length >= 4){
|
if(phasedImplDetailsArr.length >= 4){
|
||||||
@@ -6025,7 +6057,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
if(CutEnum.CN.getValue().equals(cut)){
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
errorMsg += "分阶段实施详情-备注不能超过" + 1000 + "个字符, ";
|
errorMsg += "分阶段实施详情-备注不能超过" + 1000 + "个字符, ";
|
||||||
}else{
|
}else{
|
||||||
errorMsg += "Details of the phased implementation ramarks Can not be more than " + 1000 + " char, ";
|
errorMsg += "Phased Implementation Details - ramarks Can not be more than " + 1000 + " char, ";
|
||||||
}
|
}
|
||||||
countError++;
|
countError++;
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
+2
-1
@@ -3,6 +3,7 @@ package com.jero.modules.ota.entity;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
@@ -99,6 +100,6 @@ public class OtaBaCxAqcs implements Serializable {
|
|||||||
private java.lang.String zmcl;
|
private java.lang.String zmcl;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private List<AttachmentEO> zmclList;
|
private List<AttachmentEO> zmclList = new ArrayList<>();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -3,6 +3,7 @@ package com.jero.modules.ota.entity;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
@@ -125,6 +126,6 @@ public class OtaBaCxZxsjyq implements Serializable {
|
|||||||
private java.lang.String zmcl;
|
private java.lang.String zmcl;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private List<AttachmentEO> zmclList;
|
private List<AttachmentEO> zmclList = new ArrayList<>();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ public enum OtaTitleEnum {
|
|||||||
SJSBAQ("sjsbaq", "升级失败安全状态", "2"),
|
SJSBAQ("sjsbaq", "升级失败安全状态", "2"),
|
||||||
SJGG("sjgg", "升级公告", "2"),
|
SJGG("sjgg", "升级公告", "2"),
|
||||||
SJZT("sjzt", "升级结果状态", "2"),
|
SJZT("sjzt", "升级结果状态", "2"),
|
||||||
ZMCL("zmcl", "证明材料", "0"),
|
|
||||||
|
|
||||||
BHJZ("bhjz", "保护机制", "protection_mechanism"),
|
BHJZ("bhjz", "保护机制", "protection_mechanism"),
|
||||||
FSXJZ("fsxjz", "防失效机制", "fail_safe_mechanism"),
|
FSXJZ("fsxjz", "防失效机制", "fail_safe_mechanism"),
|
||||||
|
|||||||
+30
@@ -76,6 +76,7 @@ public class OtaBaCxAqcsServiceImpl extends ServiceImpl<OtaBaCxAqcsMapper, OtaBa
|
|||||||
otaBaCxAqcs.setCreateTime(now);
|
otaBaCxAqcs.setCreateTime(now);
|
||||||
}
|
}
|
||||||
otaBaCxAqcs.setUpdateTime(now);
|
otaBaCxAqcs.setUpdateTime(now);
|
||||||
|
otaBaCxAqcs.setZmcl("");
|
||||||
if (null != otaBaCxAqcs.getZmclList() && otaBaCxAqcs.getZmclList().size() > 0) {
|
if (null != otaBaCxAqcs.getZmclList() && otaBaCxAqcs.getZmclList().size() > 0) {
|
||||||
JSONArray obj = new JSONArray();
|
JSONArray obj = new JSONArray();
|
||||||
for (AttachmentEO aeo : otaBaCxAqcs.getZmclList()) {
|
for (AttachmentEO aeo : otaBaCxAqcs.getZmclList()) {
|
||||||
@@ -83,12 +84,41 @@ public class OtaBaCxAqcsServiceImpl extends ServiceImpl<OtaBaCxAqcsMapper, OtaBa
|
|||||||
}
|
}
|
||||||
otaBaCxAqcs.setZmcl(obj.toString());
|
otaBaCxAqcs.setZmcl(obj.toString());
|
||||||
}
|
}
|
||||||
|
if (ObjectUtils.isNotEmpty(otaBaCxAqcsOld) && StringUtils.isNotEmpty(otaBaCxAqcsOld.getZmcl())) {
|
||||||
|
List<AttachmentEO> aeoList = JSONArray.parseArray(otaBaCxAqcsOld.getZmcl(), AttachmentEO.class);
|
||||||
|
otaBaCxAqcsOld.setZmclList(aeoList);
|
||||||
|
}
|
||||||
saveOrUpdate(otaBaCxAqcs);
|
saveOrUpdate(otaBaCxAqcs);
|
||||||
ComparisonUtil cu = new ComparisonUtil();
|
ComparisonUtil cu = new ComparisonUtil();
|
||||||
if (ObjectUtils.isEmpty(otaBaCxAqcsOld)) {
|
if (ObjectUtils.isEmpty(otaBaCxAqcsOld)) {
|
||||||
otaBaCxAqcsOld = new OtaBaCxAqcs();
|
otaBaCxAqcsOld = new OtaBaCxAqcs();
|
||||||
}
|
}
|
||||||
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaCxAqcs.getOtaId(), OtaModuleEnum.CX_AQCS, otaBaCxAqcsOld, otaBaCxAqcs, sysDictService);
|
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaCxAqcs.getOtaId(), OtaModuleEnum.CX_AQCS, otaBaCxAqcsOld, otaBaCxAqcs, sysDictService);
|
||||||
|
|
||||||
|
for (AttachmentEO aeoNew : otaBaCxAqcs.getZmclList()) {
|
||||||
|
boolean flag = true;
|
||||||
|
for (AttachmentEO aeoOld : otaBaCxAqcsOld.getZmclList()) {
|
||||||
|
if (aeoNew.getId().equals(aeoOld.getId())) {
|
||||||
|
flag = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (flag) {
|
||||||
|
reList.add(cu.addAttRecord(otaBaCxAqcs.getOtaId(), OtaModuleEnum.CX_AQCS, "证明材料", aeoNew.getFileName()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (AttachmentEO aeoOld : otaBaCxAqcsOld.getZmclList()) {
|
||||||
|
boolean flag = true;
|
||||||
|
for (AttachmentEO aeoNew : otaBaCxAqcs.getZmclList()) {
|
||||||
|
if (aeoOld.getId().equals(aeoNew.getId())) {
|
||||||
|
flag = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (flag) {
|
||||||
|
reList.add(cu.delAttRecord(otaBaCxAqcs.getOtaId(), OtaModuleEnum.CX_AQCS, "证明材料", aeoOld.getFileName()));
|
||||||
|
}
|
||||||
|
}
|
||||||
otaBaCxTxjlService.saveBatch(reList);
|
otaBaCxTxjlService.saveBatch(reList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+31
@@ -81,6 +81,7 @@ public class OtaBaCxZxsjyqServiceImpl extends ServiceImpl<OtaBaCxZxsjyqMapper, O
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
otaBaCxZxsjyq.setUpdateTime(now);
|
otaBaCxZxsjyq.setUpdateTime(now);
|
||||||
|
otaBaCxZxsjyq.setZmcl("");
|
||||||
if (null != otaBaCxZxsjyq.getZmclList() && otaBaCxZxsjyq.getZmclList().size() > 0) {
|
if (null != otaBaCxZxsjyq.getZmclList() && otaBaCxZxsjyq.getZmclList().size() > 0) {
|
||||||
JSONArray obj = new JSONArray();
|
JSONArray obj = new JSONArray();
|
||||||
for (AttachmentEO aeo : otaBaCxZxsjyq.getZmclList()) {
|
for (AttachmentEO aeo : otaBaCxZxsjyq.getZmclList()) {
|
||||||
@@ -88,12 +89,42 @@ public class OtaBaCxZxsjyqServiceImpl extends ServiceImpl<OtaBaCxZxsjyqMapper, O
|
|||||||
}
|
}
|
||||||
otaBaCxZxsjyq.setZmcl(obj.toString());
|
otaBaCxZxsjyq.setZmcl(obj.toString());
|
||||||
}
|
}
|
||||||
|
if (ObjectUtils.isNotEmpty(otaBaCxZxsjyqOld) && StringUtils.isNotEmpty(otaBaCxZxsjyqOld.getZmcl())) {
|
||||||
|
List<AttachmentEO> aeoList = JSONArray.parseArray(otaBaCxZxsjyqOld.getZmcl(), AttachmentEO.class);
|
||||||
|
otaBaCxZxsjyqOld.setZmclList(aeoList);
|
||||||
|
}
|
||||||
saveOrUpdate(otaBaCxZxsjyq);
|
saveOrUpdate(otaBaCxZxsjyq);
|
||||||
|
|
||||||
ComparisonUtil cu = new ComparisonUtil();
|
ComparisonUtil cu = new ComparisonUtil();
|
||||||
if (ObjectUtils.isEmpty(otaBaCxZxsjyqOld)) {
|
if (ObjectUtils.isEmpty(otaBaCxZxsjyqOld)) {
|
||||||
otaBaCxZxsjyqOld = new OtaBaCxZxsjyq();
|
otaBaCxZxsjyqOld = new OtaBaCxZxsjyq();
|
||||||
}
|
}
|
||||||
|
|
||||||
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaCxZxsjyq.getOtaId(), OtaModuleEnum.CX_ZXSJYQ, otaBaCxZxsjyqOld, otaBaCxZxsjyq, sysDictService);
|
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaCxZxsjyq.getOtaId(), OtaModuleEnum.CX_ZXSJYQ, otaBaCxZxsjyqOld, otaBaCxZxsjyq, sysDictService);
|
||||||
|
for (AttachmentEO aeoNew : otaBaCxZxsjyq.getZmclList()) {
|
||||||
|
boolean flag = true;
|
||||||
|
for (AttachmentEO aeoOld : otaBaCxZxsjyqOld.getZmclList()) {
|
||||||
|
if (aeoNew.getId().equals(aeoOld.getId())) {
|
||||||
|
flag = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (flag) {
|
||||||
|
reList.add(cu.addAttRecord(otaBaCxZxsjyq.getOtaId(), OtaModuleEnum.CX_ZXSJYQ, "证明材料", aeoNew.getFileName()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (AttachmentEO aeoOld : otaBaCxZxsjyqOld.getZmclList()) {
|
||||||
|
boolean flag = true;
|
||||||
|
for (AttachmentEO aeoNew : otaBaCxZxsjyq.getZmclList()) {
|
||||||
|
if (aeoOld.getId().equals(aeoNew.getId())) {
|
||||||
|
flag = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (flag) {
|
||||||
|
reList.add(cu.delAttRecord(otaBaCxZxsjyq.getOtaId(), OtaModuleEnum.CX_ZXSJYQ, "证明材料", aeoOld.getFileName()));
|
||||||
|
}
|
||||||
|
}
|
||||||
otaBaCxTxjlService.saveBatch(reList);
|
otaBaCxTxjlService.saveBatch(reList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+13
@@ -22,6 +22,19 @@ public class ComparisonUtil<T> {
|
|||||||
public ComparisonUtil() {
|
public ComparisonUtil() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public OtaBaCxTxjl addAttRecord(String otaId, OtaModuleEnum otaModuleEnum, String title, String attName) {
|
||||||
|
String content = title + "中添加了附件:'" + attName;
|
||||||
|
OtaBaCxTxjl jl = new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content);
|
||||||
|
return jl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OtaBaCxTxjl delAttRecord(String otaId, OtaModuleEnum otaModuleEnum, String title, String attName) {
|
||||||
|
String content = title + "中删除了附件:'" + attName;
|
||||||
|
OtaBaCxTxjl jl = new OtaBaCxTxjl(otaId, otaModuleEnum.getName(), content);
|
||||||
|
return jl;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对比字段并添加到记录
|
* 对比字段并添加到记录
|
||||||
*/
|
*/
|
||||||
|
|||||||
+8
-3
@@ -3854,6 +3854,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
// 没有引用的数据 检验项目集合,给到前端进行展示。
|
// 没有引用的数据 检验项目集合,给到前端进行展示。
|
||||||
List<String> noCiteInspectionItem = new ArrayList<>();
|
List<String> noCiteInspectionItem = new ArrayList<>();
|
||||||
for (ProjectCertificationInventoryEO projectCertificationInventoryEO : projectCertificationInventoryEOList) {
|
for (ProjectCertificationInventoryEO projectCertificationInventoryEO : projectCertificationInventoryEOList) {
|
||||||
|
String deliveryResult = "";
|
||||||
for (ProjectCertificationInventoryEO citeProjectCertificationInventoryEO : citeProjectCertificationInventoryEOList) {
|
for (ProjectCertificationInventoryEO citeProjectCertificationInventoryEO : citeProjectCertificationInventoryEOList) {
|
||||||
// 匹配数据 类别、检验项目、配置项、标准编号、交付物类型完全一致,并且数据的状态为 审查完成
|
// 匹配数据 类别、检验项目、配置项、标准编号、交付物类型完全一致,并且数据的状态为 审查完成
|
||||||
boolean flag = (
|
boolean flag = (
|
||||||
@@ -3863,13 +3864,17 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
&& StringUtils.equals(projectCertificationInventoryEO.getSerialNumber(),citeProjectCertificationInventoryEO.getSerialNumber())
|
&& StringUtils.equals(projectCertificationInventoryEO.getSerialNumber(),citeProjectCertificationInventoryEO.getSerialNumber())
|
||||||
&& StringUtils.equals(projectCertificationInventoryEO.getDeliverableType(),citeProjectCertificationInventoryEO.getDeliverableType())
|
&& StringUtils.equals(projectCertificationInventoryEO.getDeliverableType(),citeProjectCertificationInventoryEO.getDeliverableType())
|
||||||
);
|
);
|
||||||
|
|
||||||
if(flag){
|
if(flag){
|
||||||
projectCertificationInventoryEO.setDeliveryResult(citeProjectCertificationInventoryEO.getDeliveryResult());
|
deliveryResult = citeProjectCertificationInventoryEO.getDeliveryResult();
|
||||||
break;
|
break;
|
||||||
}else {
|
|
||||||
noCiteInspectionItem.add(projectCertificationInventoryEO.getInspectionItem());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(StringUtils.isNotBlank(deliveryResult)){
|
||||||
|
projectCertificationInventoryEO.setDeliveryResult(deliveryResult);
|
||||||
|
}else {
|
||||||
|
noCiteInspectionItem.add(projectCertificationInventoryEO.getInspectionItem());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updateBatchById(projectCertificationInventoryEOList);
|
this.updateBatchById(projectCertificationInventoryEOList);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
<a-input class="box-input inputWid"
|
<a-input class="box-input inputWid"
|
||||||
:disabled="itemval.isLock == '1' ? true: false"
|
:disabled="itemval.isLock == '1' ? true: false"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||||
@input="onInput"
|
@input="onInput(itemval.dataValue,item,index1)"
|
||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
v-model="itemval.dataValue"/>
|
v-model="itemval.dataValue"/>
|
||||||
@@ -283,7 +283,7 @@
|
|||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
:disabled="itemval.isLock == '1' ? true: false"
|
:disabled="itemval.isLock == '1' ? true: false"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||||
@input="onInput"
|
@input="onInput(itemval.dataValue,item,index1)"
|
||||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
v-model="itemval.dataValue"/>
|
v-model="itemval.dataValue"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -405,7 +405,7 @@
|
|||||||
<div v-else-if="itemval.controlVerify == '2'">
|
<div v-else-if="itemval.controlVerify == '2'">
|
||||||
<a-input class="box-input inputWid"
|
<a-input class="box-input inputWid"
|
||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
@input="onInput"
|
@input="onInput(itemval.dataValue,item,index1)"
|
||||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
:disabled="itemval.isLock == '1' ? true: false"
|
:disabled="itemval.isLock == '1' ? true: false"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||||
@@ -516,7 +516,7 @@
|
|||||||
<a-input class="box-input inputWid"
|
<a-input class="box-input inputWid"
|
||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
:disabled="itemval.isLock == '1' ? true: false"
|
:disabled="itemval.isLock == '1' ? true: false"
|
||||||
@input="onInput"
|
@input="onInput(itemval.dataValue,item,index1)"
|
||||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||||
v-model="itemval.dataValue"/>
|
v-model="itemval.dataValue"/>
|
||||||
@@ -730,7 +730,7 @@
|
|||||||
:disabled="itemval.isLock == '1' ? true: false"
|
:disabled="itemval.isLock == '1' ? true: false"
|
||||||
:maxLength="1000"
|
:maxLength="1000"
|
||||||
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
:placeholder="$t('pleaseEnter')+$t('chinese')"
|
||||||
@input="onInput"
|
@input="onInput(itemval.dataValue,item,index1)"
|
||||||
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\u4E00-\u9FA5]/g,''))"
|
||||||
v-model="itemval.dataValue"/>
|
v-model="itemval.dataValue"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -917,14 +917,14 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onInput(r) {
|
onInput(r, item, index) {
|
||||||
let value = r.target.value
|
let value = r.replace(/[^\u4e00-\u9fa5]/g, '')
|
||||||
r.target.value = value.replace(/[^\u4e00-\u9fa5]/g, '')
|
this.detailDate.paramsConfigData[item][index].dataValue = value
|
||||||
this.detailDateList.forEach((item) => {
|
// this.detailDateList.forEach((item) => {
|
||||||
if (item.controlVerify == '2') {
|
// if (item.controlVerify == '2') {
|
||||||
item.dataValue = r.target.value
|
// item.dataValue = value
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
uploadSuccess(data) {
|
uploadSuccess(data) {
|
||||||
let attIdList = []
|
let attIdList = []
|
||||||
|
|||||||
+11
-4
@@ -111,7 +111,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text-add">
|
<div class="box-title-text-add">
|
||||||
<div class="title-text-add">
|
<div class="title-text-add">
|
||||||
<span class="title-text-text" :title="$t('Vehicledynamictype')">{{$t('Vehicledynamictype')}}</span>
|
<span class="title-text-text plus2" :title="$t('Vehicledynamictype')">{{$t('Vehicledynamictype')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" style="width: 38%">
|
<a-form-model-item class="itemModel" style="width: 38%">
|
||||||
<!-- <j-dict-select-tag class="box-input"
|
<!-- <j-dict-select-tag class="box-input"
|
||||||
@@ -274,9 +274,12 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
this.selectListPc=[]
|
this.selectListPc=[]
|
||||||
res.result.forEach(item=>{
|
res.result.forEach(item=>{
|
||||||
let obj={}
|
if(item.ggpc !="" && item.ggpc !=null){
|
||||||
obj=item
|
let obj={}
|
||||||
this.selectListPc.push(obj)
|
obj=item
|
||||||
|
this.selectListPc.push(obj)
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -395,6 +398,10 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
line-height: 1.4 !important;
|
line-height: 1.4 !important;
|
||||||
}
|
}
|
||||||
|
.plus2{
|
||||||
|
word-break: break-all;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
.Required {
|
.Required {
|
||||||
color: red;
|
color: red;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
|
|||||||
@@ -281,7 +281,6 @@ import { message } from 'ant-design-vue'
|
|||||||
localStorage.removeItem('otaIdT')
|
localStorage.removeItem('otaIdT')
|
||||||
localStorage.setItem('otaIdT',value)
|
localStorage.setItem('otaIdT',value)
|
||||||
|
|
||||||
this.$forceUpdate()
|
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
// 模板下载
|
// 模板下载
|
||||||
|
|||||||
+44
-27
@@ -15,81 +15,81 @@
|
|||||||
<div style='width: 400px'>
|
<div style='width: 400px'>
|
||||||
<span class='content-text' style='background: #f3f6f6;line-height: 50px;text-align: center;color: #191E29;font-weight: bold'>{{$t('componentname')}}</span>
|
<span class='content-text' style='background: #f3f6f6;line-height: 50px;text-align: center;color: #191E29;font-weight: bold'>{{$t('componentname')}}</span>
|
||||||
<span class='radio-text' :title="$t('networksecurityrequirements')">
|
<span class='radio-text' :title="$t('networksecurityrequirements')">
|
||||||
{{$t('networksecurityrequirements')}}
|
{{$t('networksecurityrequirements')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='radio-text' :title="$t('millimeterwaveradar')">
|
<span class='radio-text' :title="$t('millimeterwaveradar')">
|
||||||
{{$t('millimeterwaveradar')}}
|
{{$t('millimeterwaveradar')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='radio-text' :title="$t('ultrasonicradar')">
|
<span class='radio-text' :title="$t('ultrasonicradar')">
|
||||||
{{$t('ultrasonicradar')}}
|
{{$t('ultrasonicradar')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-box'>
|
<span class='text-box'>
|
||||||
<span class='text-text' :title="$t('camera')">
|
<span class='text-text' :title="$t('camera')">
|
||||||
{{$t('camera')}}
|
{{$t('camera')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-two' :title="$t('asternimage')">
|
<span class='text-text-two' :title="$t('asternimage')">
|
||||||
{{$t('asternimage')}}
|
{{$t('asternimage')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-two' :title="$t('Monocularbinocularmultiocular')">
|
<span class='text-text-two' :title="$t('Monocularbinocularmultiocular')">
|
||||||
{{$t('Monocularbinocularmultiocular')}}
|
{{$t('Monocularbinocularmultiocular')}}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span class='text-box'>
|
<span class='text-box'>
|
||||||
<span class='text-text' :title="$t('driverattentionmonitoringsystem')">
|
<span class='text-text' :title="$t('driverattentionmonitoringsystem')">
|
||||||
{{$t('driverattentionmonitoringsystem')}}
|
{{$t('driverattentionmonitoringsystem')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-two' :title="$t('driversurveillancecamera')">
|
<span class='text-text-two' :title="$t('driversurveillancecamera')">
|
||||||
{{$t('driversurveillancecamera')}}
|
{{$t('driversurveillancecamera')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-two' :title="$t('drivermonitoringinfraredsensor')">
|
<span class='text-text-two' :title="$t('drivermonitoringinfraredsensor')">
|
||||||
{{$t('drivermonitoringinfraredsensor')}}
|
{{$t('drivermonitoringinfraredsensor')}}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span class='text-box-two' >
|
<span class='text-box-two' >
|
||||||
<span class='text-text' style='height: 450px;line-height: 450px' :title="$t('positioningandnavigationsystem')">
|
<span class='text-text' style='height: 450px;line-height: 20px' :title="$t('positioningandnavigationsystem')">
|
||||||
{{$t('positioningandnavigationsystem')}}
|
{{$t('positioningandnavigationsystem')}}
|
||||||
</span>
|
</span>
|
||||||
<span style="padding: 5px" class='text-text-three' :title="$t('vehiclesatellitepositioningequipment')">
|
<span style="padding: 10px" class='text-text-three' :title="$t('vehiclesatellitepositioningequipment')">
|
||||||
{{$t('vehiclesatellitepositioningequipment')}}
|
{{$t('vehiclesatellitepositioningequipment')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-three' :title="$t('inertialnavigationsystem')">
|
<span class='text-text-three' :title="$t('inertialnavigationsystem')">
|
||||||
{{$t('inertialnavigationsystem')}}
|
{{$t('inertialnavigationsystem')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-three' :title="$t('wheelspeedmeter')">
|
<span class='text-text-three' :title="$t('wheelspeedmeter')">
|
||||||
{{$t('wheelspeedmeter')}}
|
{{$t('wheelspeedmeter')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-three' :title="$t('highprecisionmap')">
|
<span class='text-text-three' :title="$t('highprecisionmap')">
|
||||||
{{$t('highprecisionmap')}}
|
{{$t('highprecisionmap')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-text-five' :title="$t('electronicfence')">
|
<span class='text-text-five' :title="$t('electronicfence')">
|
||||||
{{$t('electronicfence')}}
|
{{$t('electronicfence')}}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span class='text-box-three' :title="$t('vehiclecommunicationsystem')">
|
<span class='text-box-three' :title="$t('vehiclecommunicationsystem')">
|
||||||
{{$t('vehiclecommunicationsystem')}}
|
{{$t('vehiclecommunicationsystem')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-box-four'>
|
<span class='text-box-four'>
|
||||||
<span style="padding: 10px" class='four-text-text' :title="$t('signalingdevices')">
|
<span style="padding: 10px" class='four-text-text' :title="$t('signalingdevices')">
|
||||||
{{$t('signalingdevices')}}
|
{{$t('signalingdevices')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='four-text' :title="$t('driverassistancefunctioncontrols')">
|
<span class='four-text' :title="$t('driverassistancefunctioncontrols')">
|
||||||
{{$t('driverassistancefunctioncontrols')}}
|
{{$t('driverassistancefunctioncontrols')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='four-text' :title="$t('drivingassistancefunctionindicatorsignaldevice')">
|
<span class='four-text' :title="$t('drivingassistancefunctionindicatorsignaldevice')">
|
||||||
{{$t('drivingassistancefunctionindicatorsignaldevice')}}
|
{{$t('drivingassistancefunctionindicatorsignaldevice')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='four-text' :title="$t('steerinwheelreleaseindicatorsignaldevice')">
|
<span class='four-text' :title="$t('steerinwheelreleaseindicatorsignaldevice')">
|
||||||
{{$t('steerinwheelreleaseindicatorsignaldevice')}}
|
{{$t('steerinwheelreleaseindicatorsignaldevice')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='four-text' :title="$t('driverattentionindicatorsignaldevice')">
|
<span class='four-text' :title="$t('driverattentionindicatorsignaldevice')">
|
||||||
{{$t('driverattentionindicatorsignaldevice')}}
|
{{$t('driverattentionindicatorsignaldevice')}}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span class='text-box-five' :title="$t('automaticDrivingDataRecordingSystem')">
|
<span class='text-box-five' :title="$t('automaticDrivingDataRecordingSystem')">
|
||||||
{{$t('automaticDrivingDataRecordingSystem')}}
|
{{$t('automaticDrivingDataRecordingSystem')}}
|
||||||
</span>
|
</span>
|
||||||
<span class='text-box-five' :title="$t('eventdatarecordingsystem')">
|
<span class='text-box-five' :title="$t('eventdatarecordingsystem')">
|
||||||
{{$t('eventdatarecordingsystem')}}
|
{{$t('eventdatarecordingsystem')}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style='width: 300px'>
|
<div style='width: 300px'>
|
||||||
@@ -1067,6 +1067,7 @@ button{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
line-height: 200px;
|
line-height: 200px;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.radio-text-two{
|
.radio-text-two{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -1076,6 +1077,9 @@ button{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
line-height: 100px;
|
line-height: 100px;
|
||||||
|
padding: 10px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.radio-text-three{
|
.radio-text-three{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -1085,6 +1089,9 @@ button{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
|
padding: 10px;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
.radio-text-four{
|
.radio-text-four{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -1094,6 +1101,7 @@ button{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
line-height: 250px;
|
line-height: 250px;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.radio-text-five{
|
.radio-text-five{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -1103,6 +1111,7 @@ button{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
line-height: 150px;
|
line-height: 150px;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.text-box{
|
.text-box{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -1131,6 +1140,7 @@ button{
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: left;
|
justify-content: left;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.text-text-two{
|
.text-text-two{
|
||||||
/*display: inline-block;*/
|
/*display: inline-block;*/
|
||||||
@@ -1144,6 +1154,7 @@ button{
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: left;
|
justify-content: left;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.text-text-three{
|
.text-text-three{
|
||||||
/*display: inline-block;*/
|
/*display: inline-block;*/
|
||||||
@@ -1156,6 +1167,7 @@ button{
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: left;
|
justify-content: left;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.text-text-five{
|
.text-text-five{
|
||||||
/*display: inline-block;*/
|
/*display: inline-block;*/
|
||||||
@@ -1168,6 +1180,7 @@ button{
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: left;
|
justify-content: left;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.text-box-three{
|
.text-box-three{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -1177,6 +1190,7 @@ button{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
line-height: 250px;
|
line-height: 250px;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.text-box-four{
|
.text-box-four{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -1218,7 +1232,10 @@ button{
|
|||||||
border-right: none;
|
border-right: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
line-height: 100px;
|
line-height: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
span{
|
span{
|
||||||
/* overflow: hidden; /*超出部分隐藏*/
|
/* overflow: hidden; /*超出部分隐藏*/
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ export default {
|
|||||||
localStorage.removeItem('otaIdT')
|
localStorage.removeItem('otaIdT')
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/vehicleinformation',
|
path: '/vehicleinformation',
|
||||||
query: {}
|
query: { type:1}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
viewProcessClick(row) {
|
viewProcessClick(row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user