From 83dbb84a938031d9c0d7fd2baced339bb84fedef Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 24 十月 2025 17:05:38 +0800
Subject: [PATCH] #
---
src/main/webapp/views/erpMaterialuse/materialuse.html | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 52 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/views/erpMaterialuse/materialuse.html b/src/main/webapp/views/erpMaterialuse/materialuse.html
index d4229a0..bda3ef1 100644
--- a/src/main/webapp/views/erpMaterialuse/materialuse.html
+++ b/src/main/webapp/views/erpMaterialuse/materialuse.html
@@ -174,6 +174,11 @@
data.datetime = null
data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1]
}
+ const loading = ElementPlus.ElLoading.service({
+ lock: true,
+ text: 'Loading',
+ background: 'rgba(0, 0, 0, 0.7)',
+ })
$.ajax({
url: "http://127.0.0.1:9090/mo/materialreceive/getList",
headers: {
@@ -184,9 +189,13 @@
contentType: 'application/json;charset=UTF-8',
method: 'GET',
success: function(res) {
+ loading.close()
if (res.code == 200) {
tableData.value = res.data
-
+ ElementPlus.ElMessage({
+ message: "鎷夊彇鏁版嵁瀹屾垚",
+ type: 'success'
+ });
} else if (res.code === 403) {
top.location.href = baseUrl + "/";
} else {
@@ -200,6 +209,13 @@
}
function fnCanelPrint(){
+ if (selectList.value.length === 0){
+ ElementPlus.ElMessage({
+ message: "璇峰厛閫夋嫨",
+ type: 'error'
+ });
+ return ;
+ }
const loading = ElementPlus.ElLoading.service({
lock: true,
text: 'Loading',
@@ -235,6 +251,13 @@
}
function fnCanelPrintRed(){
+ if (selectList.value.length === 0){
+ ElementPlus.ElMessage({
+ message: "璇峰厛閫夋嫨",
+ type: 'error'
+ });
+ return ;
+ }
const loading = ElementPlus.ElLoading.service({
lock: true,
text: 'Loading',
@@ -291,6 +314,13 @@
});
}
function fnPrint(izPrint) {
+ if (selectList.value.length === 0){
+ ElementPlus.ElMessage({
+ message: "璇峰厛閫夋嫨",
+ type: 'error'
+ });
+ return ;
+ }
ElementPlus.ElMessageBox.confirm('纭畾鎵撳嵃鍚�?')
.then(() => {
print(izPrint,0)
@@ -302,14 +332,35 @@
}
function fnPrintView(izPrint){
+ if (selectList.value.length === 0){
+ ElementPlus.ElMessage({
+ message: "璇峰厛閫夋嫨",
+ type: 'error'
+ });
+ return ;
+ }
print(izPrint,0)
}
function fnPrintRedView(izPrint) {
+ if (selectList.value.length === 0){
+ ElementPlus.ElMessage({
+ message: "璇峰厛閫夋嫨",
+ type: 'error'
+ });
+ return ;
+ }
print(izPrint,1);
}
function fnPrintRed(izPrint) {
+ if (selectList.value.length === 0){
+ ElementPlus.ElMessage({
+ message: "璇峰厛閫夋嫨",
+ type: 'error'
+ });
+ return ;
+ }
ElementPlus.ElMessageBox.confirm('纭畾绾㈠瓧鎵撳嵃鍚�?')
.then(() => {
print(izPrint,1);
--
Gitblit v1.9.1