sasp-flow-render 1.1.14 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sasp-flow-render",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -344,7 +344,7 @@ export default {
344
344
  if (operateMap && operateMap.isPassCondition === 0 && !operateObj.nextNodeName) {
345
345
  Object.assign(operateMap, {nextNodeName: "会签中...等待其他人处理完毕"});
346
346
  }else {
347
- if (operateMap && operateMap.hasOwnProperty('isPassCondition')) {
347
+ if (operateMap && operateMap.hasOwnProperty('isPassCondition') && operateMap['isPassCondition'] === "1") {
348
348
  delete operateMap.isPassCondition;
349
349
  }
350
350
  }
@@ -446,11 +446,18 @@ export default {
446
446
  },
447
447
 
448
448
  newBatchDealSelectable(row, index) {
449
- // console.log('是否禁用勾选', row, index);
450
449
  let flag = true;
451
450
  flag = (row.nextDealUsers.userArr || []).length > 0;
452
- return !row.isLoading;
453
- // return (!row.isLoading && flag) || row.isEndNode;
451
+ // 当isPassCondition为0时,此时下一步没有处理人也没有处理节点,所以即使没有处理人也可以直接下一步
452
+ // 当isPassCondition为1时,此时会签通过,下一步需要处理人,与正常节点条件一致
453
+ if(row.nextDealUsers.isPassCondition === "0"){
454
+ flag = true;
455
+ }
456
+ // 结束节点也不需要处理人
457
+ if(row.isEndNode){
458
+ flag = true;
459
+ }
460
+ return !row.isLoading && flag; // 当此行加载完之后,同时满足初会签和结束节点下一步处理人不为空时,可执行下一步
454
461
  },
455
462
 
456
463
  taskNodeChange(val) {
@@ -409,7 +409,10 @@
409
409
  item.actorUserName = "系统处理";
410
410
  }
411
411
  if(item.canceled){
412
- item.nodeInstStatusName = "多人处理他人通过后自动完成";
412
+ item.nodeInstStatusName = "系统自动完成";
413
+ if(item.activityId.indexOf("Activity_draft") > -1){ // 恢复流程
414
+ item.nodeInstStatusName = "流程恢复自动完成";
415
+ }
413
416
  }
414
417
  }else{
415
418
  item.nodeInstStatus = "0";