Commit 299898b5 authored by 鲁鑫's avatar 鲁鑫

采购申请审批任务标题修改

parent 942d5b43
...@@ -233,7 +233,7 @@ function initializeGrid() { ...@@ -233,7 +233,7 @@ function initializeGrid() {
updateHandler: showUpdateDialog, updateHandler: showUpdateDialog,
moveHandler: moveHandler, moveHandler: moveHandler,
deleteHandler: deleteHandler, deleteHandler: deleteHandler,
saveSortIDHandler: updateSequence, //saveSortIDHandler: updateSequence,
importProcUnit: { importProcUnit: {
id: 'importProcUnit', id: 'importProcUnit',
text: '导入流程环节', text: '导入流程环节',
...@@ -272,13 +272,13 @@ function initializeGrid() { ...@@ -272,13 +272,13 @@ function initializeGrid() {
type: "string", type: "string",
align: "left" align: "left"
}, },
{ // {
display: "排序号", name: "sequence", width: 60, minWidth: 60, type: "int", align: "left", // display: "排序号", name: "sequence", width: 60, minWidth: 60, type: "int", align: "left",
render: function (item) { // render: function (item) {
item.id = item.id; //只为了能够更新sequence // item.id = item.id; //只为了能够更新sequence
return UICtrl.sequenceRender(item); // return UICtrl.sequenceRender(item);
} // }
}, // },
{ {
display: "状态", name: "status", width: 60, minWidth: 60, type: "string", align: "left", display: "状态", name: "status", width: 60, minWidth: 60, type: "string", align: "left",
render: function (item) { render: function (item) {
...@@ -292,9 +292,9 @@ function initializeGrid() { ...@@ -292,9 +292,9 @@ function initializeGrid() {
parms: { parms: {
parentId: 1, inculdeProcUnit: 1 parentId: 1, inculdeProcUnit: 1
}, },
usePager: false, usePager: true,
sortName: "sequence", sortName: "sequence",
SortOrder: "asc", sortOrder: "asc",
toolbar: toolbarOptions, toolbar: toolbarOptions,
width: '99.8%', width: '99.8%',
height: '100%', height: '100%',
......
...@@ -409,8 +409,18 @@ public class ResourceSearchController { ...@@ -409,8 +409,18 @@ public class ResourceSearchController {
public Map<String, Object> getBankInfo(SDO sdo) throws IOException { public Map<String, Object> getBankInfo(SDO sdo) throws IOException {
String param = sdo.getString("paramValue"); String param = sdo.getString("paramValue");
String BANKS = sdo.getString("BANKS"); String BANKS = sdo.getString("BANKS");
String noContain = sdo.getString("noContain");
List<Map<String, String>> mapList = new ArrayList<>(); List<Map<String, String>> mapList = new ArrayList<>();
mapList = sapBankInfoApplication.getBankInfo(BANKS); mapList = sapBankInfoApplication.getBankInfo(BANKS);
if (StringUtil.isNotBlank(noContain)){//固定条件过滤,不包含
String[] split = noContain.split(",");
for (String s : split) {
mapList = mapList
.stream()
.filter(map -> map.values().stream().noneMatch(value->value.contains(s)))
.collect(Collectors.toList());
}
}
return sapDictionaryApplication.initEasySearchModel( mapList, param, sdo); return sapDictionaryApplication.initEasySearchModel( mapList, param, sdo);
} }
......
...@@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil; ...@@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.huigou.cache.DictUtil;
import com.huigou.cache.SystemCache; import com.huigou.cache.SystemCache;
import com.huigou.context.Operator; import com.huigou.context.Operator;
import com.huigou.context.OrgUnit; import com.huigou.context.OrgUnit;
...@@ -92,7 +93,25 @@ public class SapPurchaseApprovalApplicationImpl extends FlowBroker implements Sa ...@@ -92,7 +93,25 @@ public class SapPurchaseApprovalApplicationImpl extends FlowBroker implements Sa
return sapPurchaseApproval.getId(); return sapPurchaseApproval.getId();
} }
@Override
protected void setTaskDescription(DelegateTask delegateTask) {
String bizId = delegateTask.getExecution().getProcessBusinessKey();
delegateTask.setDescription(this.getApprovalSubjectName(bizId));
}
/**
* 获取任务标题
*
* @param bizId
* @return
*/
private String getApprovalSubjectName(String bizId) {
SapPurchaseApproval sapPurchaseApproval = this.sapPurchaseApprovalRepository.findOne(bizId);
//查询 单据日期
String fillinDateStr = DateUtil.getDateFormat("yyyy-MM-dd HH:mm:ss", sapPurchaseApproval.getFillinDate());
//设置标题
return String.format("%s-%s(%s)", sapPurchaseApproval.getBatxt(), sapPurchaseApproval.getBanfn(), fillinDateStr);
}
@Override @Override
protected Map<String, Object> getProcessBizParams(String bizId) { protected Map<String, Object> getProcessBizParams(String bizId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment