From c0df58a6fb50ee32e7336b5901000549700ebc82 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期一, 16 三月 2026 15:02:59 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/wrkMast/wrkMast.js | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/wrkMast/wrkMast.js b/src/main/webapp/static/js/wrkMast/wrkMast.js
index 31007e4..bb926fb 100644
--- a/src/main/webapp/static/js/wrkMast/wrkMast.js
+++ b/src/main/webapp/static/js/wrkMast/wrkMast.js
@@ -17,8 +17,13 @@
{ key: "dualCrnNo", prop: "dualCrnNo", label: "鍙屽伐浣嶅爢鍨涙満", minWidth: 120, sortable: true, align: "center" },
{ key: "batch", prop: "batch", label: "鎵规", minWidth: 120, sortable: true },
{ key: "batchSeq", prop: "batchSeq", label: "鎵规搴忓垪", width: 100, sortable: true, align: "center" },
+ { key: "sendFailCount", prop: "sendFailCount", label: "澶辫触娆℃暟", width: 96, sortable: true, align: "center" },
+ { key: "errorTime$", prop: "errorTime$", label: "澶辫触鏃堕棿", minWidth: 168, sortable: true },
+ { key: "errorMemo", prop: "errorMemo", label: "澶辫触鍘熷洜", minWidth: 220, sortable: false, showOverflow: false },
{ key: "systemMsg", prop: "systemMsg", label: "绯荤粺娑堟伅", minWidth: 220, sortable: false, showOverflow: false }
];
+
+ var MANUAL_ROLLBACK_STATUSES = [6, 106, 506];
function cloneSearchForm() {
return {
@@ -237,7 +242,14 @@
}
if (command === "cancel") {
this.cancelTask(row);
+ return;
}
+ if (command === "manualRollback") {
+ this.manualRollbackTask(row);
+ }
+ },
+ canManualRollback: function (row) {
+ return !!row && MANUAL_ROLLBACK_STATUSES.indexOf(Number(row.wrkSts)) > -1;
},
completeTask: function (row) {
var vm = this;
@@ -301,6 +313,41 @@
});
}).catch(function () {});
},
+ manualRollbackTask: function (row) {
+ var vm = this;
+ if (!vm.canManualRollback(row)) {
+ vm.$message.warning("褰撳墠浠诲姟涓嶅浜庡緟浜哄伐鍥炴粴鐘舵��");
+ return;
+ }
+ vm.$confirm("纭畾鎵嬪姩鍥炴粴璇ヤ换鍔″悧锛熷洖婊氬悗浠诲姟浼氭仮澶嶄负寰呮墽琛岀姸鎬併��", "鎻愮ず", {
+ type: "warning",
+ confirmButtonText: "纭畾",
+ cancelButtonText: "鍙栨秷"
+ }).then(function () {
+ $.ajax({
+ url: baseUrl + "/openapi/manualRollbackTask",
+ contentType: "application/json",
+ headers: { token: localStorage.getItem("token") },
+ data: JSON.stringify({ wrkNo: row.wrkNo }),
+ method: "POST",
+ success: function (res) {
+ if (res.code === 200) {
+ vm.$message.success("浜哄伐鍥炴粴鎴愬姛");
+ vm.loadList();
+ return;
+ }
+ if (res.code === 403) {
+ top.location.href = baseUrl + "/";
+ return;
+ }
+ vm.$message.error(res.msg || "浜哄伐鍥炴粴澶辫触");
+ },
+ error: function () {
+ vm.$message.error("浜哄伐鍥炴粴澶辫触");
+ }
+ });
+ }).catch(function () {});
+ },
updateTableHeight: function () {
var viewport = window.innerHeight || document.documentElement.clientHeight || 860;
this.tableHeight = Math.max(340, viewport - (this.advancedVisible ? 276 : 222));
--
Gitblit v1.9.1