xujunjie 3 anni fa
parent
commit
d2354f4578

+ 8 - 1
src/pages/PurchaseAdmin/PurchaseList/Detail/Index.js

@@ -844,8 +844,15 @@ function Detail(props) {
     dispatch({
       type: 'detail/submitNextNode',
       payload: values,
-      callback: () => {
+      callback: (newVersion) => {
         setCommitAuditVisible(false);
+        // 更新version
+        localStorage.excelId = newVersion.id;
+        setVersion({
+          ...version,
+          flow_id: newVersion.flow_id,
+          id: newVersion.id,
+        });
         // 更新flow流程图
         dispatch({
           type: 'xflow/queryBoomFlowDetail',

+ 3 - 1
src/pages/PurchaseAdmin/PurchaseList/Detail/models/detail.js

@@ -207,7 +207,9 @@ export default {
           payload: {
             project_id: payload.project_id,
           },
-          callback,
+          callback:() => {
+            callback(response.data)
+          },
         });
       }
     },

+ 1 - 0
src/pages/PurchaseAdmin/PurchaseList/Index.js

@@ -17,6 +17,7 @@ function LayoutDetail(props) {
     fontSize: 20,
     verticalAlign: 'middle',
     marginRight: 60,
+    width: 120,
   };
   useEffect(() => {
     // 查询用户信息