Bladeren bron

默认设置审批流

Renxy 2 jaren geleden
bovenliggende
commit
1881f08352
2 gewijzigde bestanden met toevoegingen van 42 en 2 verwijderingen
  1. 4 2
      src/components/Flow/config-toolbar.ts
  2. 38 0
      src/pages/PurchaseAdmin/PurchaseList/Flow/FlowDetail.json

+ 4 - 2
src/components/Flow/config-toolbar.ts

@@ -215,8 +215,10 @@ namespace NSToolbarConfig {
                   x: item.x,
                   y: item.y,
                   zIndex: item.zIndex,
-                  flowID: item.flow_id,
-                  count: item.count,
+                  flow_id: item.flow_id || 0,
+                  node_type: item.name == 'custom-circle' ? 1 : 0,
+                  count: 0,
+                  // count: item.count,
                 };
               });
               // graphData.edges = []

+ 38 - 0
src/pages/PurchaseAdmin/PurchaseList/Flow/FlowDetail.json

@@ -5,6 +5,8 @@
       "id": "41561012",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "BOM-1",
       "width": 120,
       "height": 50,
@@ -26,6 +28,8 @@
       "id": "975bf288",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 5,
+      "node_type": 1,
       "label": "方案总审",
       "width": 90,
       "height": 90,
@@ -47,6 +51,8 @@
       "id": "5764f3ce",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "投标清单",
       "width": 120,
       "height": 50,
@@ -68,6 +74,8 @@
       "id": "5359e23c",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 9,
+      "node_type": 1,
       "label": "三级审批2",
       "width": 90,
       "height": 90,
@@ -89,6 +97,8 @@
       "id": "c28a18d3",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "采购执行",
       "width": 120,
       "height": 50,
@@ -110,6 +120,8 @@
       "id": "5216c5dc",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "采购合同",
       "width": 120,
       "height": 50,
@@ -131,6 +143,8 @@
       "id": "8c1f18d0",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "预算",
       "width": 120,
       "height": 50,
@@ -152,6 +166,8 @@
       "id": "1aed14d1",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "初版PSR",
       "width": 120,
       "height": 50,
@@ -173,6 +189,8 @@
       "id": "4651130e",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 2,
+      "node_type": 1,
       "label": "PSR审批",
       "width": 90,
       "height": 90,
@@ -194,6 +212,8 @@
       "id": "a48131e0",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "合同清单",
       "width": 120,
       "height": 50,
@@ -215,6 +235,8 @@
       "id": "b57b57c8",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "终版PSR",
       "width": 120,
       "height": 50,
@@ -236,6 +258,8 @@
       "id": "3631eae9",
       "renderKey": "custom-rect",
       "name": "custom-rect",
+      "flow_id": 0,
+      "node_type": 0,
       "label": "采购清单",
       "width": 120,
       "height": 50,
@@ -257,6 +281,8 @@
       "id": "3fb8d302",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 7,
+      "node_type": 1,
       "label": "事业部",
       "width": 90,
       "height": 90,
@@ -278,6 +304,8 @@
       "id": "399bddb7",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 8,
+      "node_type": 1,
       "label": "三级审批1",
       "width": 90,
       "height": 90,
@@ -299,6 +327,8 @@
       "id": "2427bf29",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 3,
+      "node_type": 1,
       "label": "工艺分部经理",
       "width": 90,
       "height": 90,
@@ -320,6 +350,8 @@
       "id": "be25fe75",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 4,
+      "node_type": 1,
       "label": "电气分部经理",
       "width": 90,
       "height": 90,
@@ -341,6 +373,8 @@
       "id": "node-186a9d31-0bd3-4b36-b61f-6b5380c824db",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 3,
+      "node_type": 1,
       "label": "工艺分部经理",
       "width": 90,
       "height": 90,
@@ -362,6 +396,8 @@
       "id": "node-c5171e2d-1cd8-4019-83dc-9f2ed0cab6e8",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 4,
+      "node_type": 1,
       "label": "电气分部经理",
       "width": 90,
       "height": 90,
@@ -383,6 +419,8 @@
       "id": "node-2b3fc359-de49-4f9d-adb5-4eb70b6ba862",
       "renderKey": "custom-circle",
       "name": "custom-circle",
+      "flow_id": 5,
+      "node_type": 1,
       "label": "方案总审",
       "width": 90,
       "height": 90,