|
@@ -551,7 +551,7 @@ public class ExcelTabController extends BladeController {
|
|
|
.attr("maxlength", filedLength);
|
|
|
if(element.html().indexOf("el-input") >= 0){
|
|
|
String mousedown = "$event" + "," + "'" + attrInfo + "'";
|
|
|
- element.children().get(0).attr("@mousedown.left", "inputLeftClick("+mousedown+")");
|
|
|
+ element.children().get(0).attr("@mouseup.left", "inputLeftClick("+mousedown+")");
|
|
|
}
|
|
|
} else {
|
|
|
element.children().get(0).attr("placeholder", lastName)
|
|
@@ -1075,7 +1075,7 @@ public class ExcelTabController extends BladeController {
|
|
|
ExctabCell exctabCell = new ExctabCell();
|
|
|
if ((textInfo.indexOf("年") >= 0 && textInfo.indexOf("月") >= 0 && textInfo.indexOf("日") >= 0) || inputText.indexOf("日期") >= 0) {
|
|
|
if (inputText.indexOf("日期") >= 0) {
|
|
|
- data.empty().append("<el-date-picker type='date' @keyDowns='dateKeydown' format='YYYY年MM月DD日' value-format='YYYY年MM月DD日' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder='" + inputText + "'> </el-date-picker>");
|
|
|
+ data.empty().append("<el-date-picker type='date' @keyDowns='dateKeydown' format='YYYY年MM月DD日' value-format='YYYY年MM月DD日' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder='" + inputText + "'> </el-date-picker>");
|
|
|
} else if (textInfo.indexOf("年") >= 0 && textInfo.indexOf("月") >= 0 && textInfo.indexOf("日") >= 0) {
|
|
|
if (inputText.indexOf("专业监理工程师") >= 0) {
|
|
|
inputText = "专业监理工程师_年月日";
|
|
@@ -1085,7 +1085,7 @@ public class ExcelTabController extends BladeController {
|
|
|
inputText = "年月日";
|
|
|
}
|
|
|
}
|
|
|
- data.empty().append("<el-date-picker @keyDowns='dateKeydown' type='date' format='YYYY年MM月DD日' value-format='YYYY年MM月DD日' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder='年月日'> </el-date-picker>");
|
|
|
+ data.empty().append("<el-date-picker @keyDowns='dateKeydown' type='date' format='YYYY年MM月DD日' value-format='YYYY年MM月DD日' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder='年月日'> </el-date-picker>");
|
|
|
exctabCell.setTextInfo(inputText);
|
|
|
exctabCell.setExctabId(excelId);
|
|
|
exctabCell.setIsDeleted(0);
|
|
@@ -1122,32 +1122,32 @@ public class ExcelTabController extends BladeController {
|
|
|
objs.add(jsonObject);
|
|
|
}
|
|
|
|
|
|
- String checkbox = "<hc-form-checkbox-group @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' :objs='" + objs + "' @change='checkboxGroupChange' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " placeholder=''> </hc-form-checkbox-group>";
|
|
|
+ String checkbox = "<hc-form-checkbox-group @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' :objs='" + objs + "' @change='checkboxGroupChange' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " placeholder=''> </hc-form-checkbox-group>";
|
|
|
data.empty().append(checkbox);
|
|
|
|
|
|
} else {
|
|
|
if (index_state) { // 区域内
|
|
|
if (rowspan >= 1) {
|
|
|
- data.empty().append("<el-input type='textarea' @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' :rows=" + rowspan * 2 + " placeholder=''> </el-input>");
|
|
|
+ data.empty().append("<el-input type='textarea' @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' :rows=" + rowspan * 2 + " placeholder=''> </el-input>");
|
|
|
} else {
|
|
|
- data.empty().append("<el-input type='text' @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder=''> </el-input>");
|
|
|
+ data.empty().append("<el-input type='text' @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder=''> </el-input>");
|
|
|
}
|
|
|
} else { // 区域外
|
|
|
if (j == 0) {
|
|
|
if (colspan == maxCol && i >= 1) {
|
|
|
if (rowspan >= 1) {
|
|
|
- data.empty().append("<el-input @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' type='textarea' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' :rows=" + rowspan * 2 + " placeholder=''> </el-input>");
|
|
|
+ data.empty().append("<el-input @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' type='textarea' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' :rows=" + rowspan * 2 + " placeholder=''> </el-input>");
|
|
|
} else {
|
|
|
- data.empty().append("<el-input @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' type='text' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder=''> </el-input>");
|
|
|
+ data.empty().append("<el-input @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' type='text' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder=''> </el-input>");
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
Element bforData = tds.get(j - 1);
|
|
|
if (!bforData.text().isEmpty() || bforData.html().indexOf("hc-form-checkbox-group") >= 0) {
|
|
|
if (rowspan >= 1) {
|
|
|
- data.empty().append("<el-input @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' type='textarea' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' :rows=" + rowspan * 2 + " placeholder=''> </el-input>");
|
|
|
+ data.empty().append("<el-input @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' type='textarea' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' :rows=" + rowspan * 2 + " placeholder=''> </el-input>");
|
|
|
} else {
|
|
|
- data.empty().append("<el-input @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' type='text' @contextmenu.prevent.native='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder=''> </el-input>");
|
|
|
+ data.empty().append("<el-input @keydown.shift.up='keyupShiftUp' @keydown.shift.down='keyupShiftDown' @keydown.shift.left='keyupShiftLeft' @keydown.shift.right='keyupShiftRight' type='text' @contextmenu.prevent.native='contextmenuClick("+parm+")' @mouseup.right='RightClick(" + parm + ")' trIndex=" + i + " tdIndex=" + j + " x1=" + x1 + " x2=" + x2 + " y1=" + y1 + " y2=" + y2 + " style='width:100%;height:100%;' placeholder=''> </el-input>");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1605,7 +1605,7 @@ public class ExcelTabController extends BladeController {
|
|
|
@ApiOperation(value = "填报页面数据保存", notes = "填报页面数据保存")
|
|
|
public R<String> saveBussData(@Valid @RequestBody JSONObject dataInfo, BladeUser bladeUser) throws Exception {
|
|
|
JSONArray dataArray = new JSONArray();
|
|
|
-
|
|
|
+ System.out.println("1=" + DateUtil.formatDateTime(DateUtil.now()));
|
|
|
if (dataInfo.containsKey("dataInfo")) { // 节点保存
|
|
|
JSONObject jsonObject = dataInfo.getJSONObject("dataInfo");
|
|
|
dataArray = jsonObject.getJSONArray("orderList");
|
|
@@ -1631,23 +1631,7 @@ public class ExcelTabController extends BladeController {
|
|
|
groupIds += "," + jsonObject.getString("tabGroupId");
|
|
|
;
|
|
|
}
|
|
|
- /*
|
|
|
- if (StringUtils.isNotEmpty(groupIds)) {
|
|
|
- List<WbsTreeContract> wbsTreeContractList = this.wbsTreeContractService.getBaseMapper().selectList(
|
|
|
- Wrappers.<WbsTreeContract>lambdaQuery()
|
|
|
- .in(WbsTreeContract::getTabGroupId, groupIds)
|
|
|
- .notIn(WbsTreeContract::getPKeyId, pkeyIds)
|
|
|
- .eq(WbsTreeContract::getIsDeleted, BladeConstant.DB_NOT_DELETED)
|
|
|
- );
|
|
|
- if (wbsTreeContractList != null && wbsTreeContractList.size() >= 1) {
|
|
|
- for (WbsTreeContract data : wbsTreeContractList) {
|
|
|
- R bussDataInfo = this.excelTabService.getBussDataInfo(data.getPKeyId(),1);
|
|
|
- Object data1 = bussDataInfo.getData();
|
|
|
- dataArray.add(data1);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- */
|
|
|
+ System.out.println("2=" + DateUtil.formatDateTime(DateUtil.now()));
|
|
|
/*全加载,或者可以优化成依赖加载*/
|
|
|
List<TableInfo> tableInfoList = this.excelTabService.getTableInfoList(dataArray);
|
|
|
if (tableInfoList != null) {
|
|
@@ -1692,15 +1676,18 @@ public class ExcelTabController extends BladeController {
|
|
|
if (!info.isSuccess()) {
|
|
|
return info;
|
|
|
}
|
|
|
-
|
|
|
+ System.out.println("3=" + DateUtil.formatDateTime(DateUtil.now()));
|
|
|
//单个 pdf加载
|
|
|
for (TableInfo tableInfo : tableInfoList) {
|
|
|
- excelTabService.getBussPdfInfo(Long.parseLong(tableInfo.getPkeyId()));
|
|
|
- }
|
|
|
+ if(!tableInfo.isToBeUpdated()){
|
|
|
+ excelTabService.getBussPdfInfo(Long.parseLong(tableInfo.getPkeyId()));
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
+ System.out.println("4=" + DateUtil.formatDateTime(DateUtil.now()));
|
|
|
// 合并pdf加载
|
|
|
excelTabService.getBussPdfs(nodeid, classify, contractId, projectId);
|
|
|
-
|
|
|
+ System.out.println("5=" + DateUtil.formatDateTime(DateUtil.now()));
|
|
|
return R.data("操作成功");
|
|
|
}
|
|
|
|
|
@@ -2957,4 +2944,22 @@ public class ExcelTabController extends BladeController {
|
|
|
}
|
|
|
return R.data(res);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 手动修改合同tree 节点错乱问题
|
|
|
+ */
|
|
|
+ @GetMapping("/asyContrantById")
|
|
|
+ @ApiOperationSupport(order = 37)
|
|
|
+ @ApiOperation(value = "修改合同tree", notes = "修改合同tree")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "contractId", value = "contractId", required = true)
|
|
|
+ })
|
|
|
+ public R getHtmlBussCols(String contractId){
|
|
|
+ excelTabService.updateContractById(contractId);
|
|
|
+
|
|
|
+
|
|
|
+ return R.data("成功");
|
|
|
+ }
|
|
|
+
|
|
|
}
|