Prechádzať zdrojové kódy

🐞 fix(【drp-采购订单维护】): 增加提交操作完成之后刷新页面

勾选多条采购订单,其中包含能提交成功和失败的订单,点采购订单维护-批量提交按钮。 ①提交成功的订单在oa生成待办,drp单据状态还是自由态,再次点提交,oa系统系统就会增加一条待办。导致出现待办重复问题 ②提交失败的订单oa没有待办,drp单据状态为自由态。失败的不会出现oa待办重复  dev环境复现单据-能提交成功单据为:PO20240705000726 提交失败单据为:PO20240705000725

20240705180
002390 11 mesiacov pred
rodič
commit
2fb9d2bde4

+ 5 - 3
src/views/purchase/purchase-order/index.vue

@@ -338,9 +338,10 @@ export default {
             checkAmount: true,
           });
 
-          if (code == 200) {
-            _this.handleRefreshList();
-          } else if (code == 10000) {
+          // if (code == 200) {
+          //   _this.handleRefreshList();
+          // } else
+          if (code == 10000) {
             _this.$alert(
               "<div style='overflow: auto;overflow-x: hidden;max-height: 65vh;padding: 10px 20px 0;'>" +
                 msg +
@@ -379,6 +380,7 @@ export default {
         } catch (error) {
         } finally {
           this.loading = false;
+          _this.handleRefreshList();
         }
       });
     },