From 8bfe1168a42d4e3750a15b0c0fb0a7629d6cf91c Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 01 四月 2026 17:46:53 +0800
Subject: [PATCH] #日志清理与手动操作权限
---
src/main/webapp/static/js/wrkMast/wrkMast.js | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 53 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/static/js/wrkMast/wrkMast.js b/src/main/webapp/static/js/wrkMast/wrkMast.js
index bb926fb..a2811c7 100644
--- a/src/main/webapp/static/js/wrkMast/wrkMast.js
+++ b/src/main/webapp/static/js/wrkMast/wrkMast.js
@@ -20,7 +20,7 @@
{ 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 }
+ { key: "systemMsg", prop: "systemMsg", label: "绯荤粺娑堟伅", minWidth: 320, sortable: false, showOverflow: false }
];
var MANUAL_ROLLBACK_STATUSES = [6, 106, 506];
@@ -30,10 +30,13 @@
condition: "",
wrk_no: "",
wms_wrk_no: "",
+ io_type: "",
+ wrk_sts: "",
loc_no: "",
source_loc_no: "",
crn_no: "",
- dual_crn_no: ""
+ dual_crn_no: "",
+ barcode: ""
};
}
@@ -70,6 +73,10 @@
pageTotal: 0,
tableHeight: 520,
searchForm: cloneSearchForm(),
+ filterOptions: {
+ ioTypes: [],
+ wrkStatuses: []
+ },
sortState: {
prop: "",
order: ""
@@ -91,6 +98,7 @@
}
},
created: function () {
+ this.loadFilterOptions();
this.loadList();
},
mounted: function () {
@@ -105,6 +113,47 @@
}
},
methods: {
+ loadFilterOptions: function () {
+ var vm = this;
+ [
+ {
+ field: "wrkStatuses",
+ url: baseUrl + "/basWrkStatus/list/auth",
+ valueField: "wrkSts",
+ labelField: "wrkDesc"
+ },
+ {
+ field: "ioTypes",
+ url: baseUrl + "/basWrkIotype/list/auth",
+ valueField: "ioType",
+ labelField: "ioDesc"
+ }
+ ].forEach(function (config) {
+ $.ajax({
+ url: config.url,
+ headers: { token: localStorage.getItem("token") },
+ method: "GET",
+ data: {
+ curr: 1,
+ limit: 200
+ },
+ success: function (res) {
+ if (res.code === 200) {
+ vm.$set(vm.filterOptions, config.field, ((res.data && res.data.records) || []).map(function (item) {
+ return {
+ value: item[config.valueField],
+ label: item[config.labelField]
+ };
+ }));
+ return;
+ }
+ if (res.code === 403) {
+ top.location.href = baseUrl + "/";
+ }
+ }
+ });
+ });
+ },
displayCellValue: function (row, column) {
var value;
if (!row || !column) {
@@ -259,7 +308,7 @@
cancelButtonText: "鍙栨秷"
}).then(function () {
$.ajax({
- url: baseUrl + "/openapi/completeTask",
+ url: baseUrl + "/wrkMast/complete/auth",
contentType: "application/json",
headers: { token: localStorage.getItem("token") },
data: JSON.stringify({ wrkNo: row.wrkNo }),
@@ -290,7 +339,7 @@
cancelButtonText: "鍙栨秷"
}).then(function () {
$.ajax({
- url: baseUrl + "/openapi/cancelTask",
+ url: baseUrl + "/wrkMast/cancel/auth",
contentType: "application/json",
headers: { token: localStorage.getItem("token") },
data: JSON.stringify({ wrkNo: row.wrkNo }),
--
Gitblit v1.9.1