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/erpReceiving/erpReceiving.html |   39 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 38 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/views/erpReceiving/erpReceiving.html b/src/main/webapp/views/erpReceiving/erpReceiving.html
index 24b886e..dd479be 100644
--- a/src/main/webapp/views/erpReceiving/erpReceiving.html
+++ b/src/main/webapp/views/erpReceiving/erpReceiving.html
@@ -144,6 +144,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: {
@@ -154,9 +159,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 {
@@ -170,6 +179,13 @@
                 }
 
                 function tongbu(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',
@@ -205,6 +221,13 @@
                 }
 
                 function caneltongbu1(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',
@@ -240,6 +263,13 @@
                 }
 
                 function tongbureturn(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',
@@ -275,6 +305,13 @@
                 }
 
                 function caneltongbureturn(){
+                    if (selectList.value.length === 0){
+                        ElementPlus.ElMessage({
+                            message: "璇峰厛閫夋嫨",
+                            type: 'error'
+                        });
+                        return ;
+                    }
                     const loading = ElementPlus.ElLoading.service({
                         lock: true,
                         text: 'Loading',

--
Gitblit v1.9.1