Browse Source

提示信息增加

duy 2 tháng trước cách đây
mục cha
commit
b4b69be30d

+ 1 - 1
package.json

@@ -25,7 +25,7 @@
         "dayjs": "^1.11.13",
         "echarts": "^5.5.1",
         "element-plus": "^2.8.5",
-        "hc-vue3-ui": "^4.6.5",
+        "hc-vue3-ui": "^4.7.4",
         "js-base64": "^3.7.7",
         "js-cookie": "^3.0.5",
         "js-fast-way": "^0.5.7",

+ 1 - 1
src/views/transfer/components/table-classify.vue

@@ -259,7 +259,7 @@ const onSubmitReportClick = async () => {
     })
     const res = getArrValue(data)
     reportData.value = res
-    if (res.length >= 0) {
+    if (res.length > 0) {
         pdfDateId.value = res[0].id
         curPdf.value = res[0].tableUrl
         tableTitle.value = res[0].tableTitle

+ 1 - 1
src/views/transfer/components/table-collect.vue

@@ -304,7 +304,7 @@ const onSubmitReportClick = async () => {
     })
     const res = getArrValue(data)
     reportData.value = res
-    if (res.length >= 0) {
+    if (res.length > 0) {
         pdfDateId.value = res[0].id
         curPdf.value = res[0].tableUrl
         tableTitle.value = res[0].tableTitle

+ 5 - 1
src/views/transfer/initial-expert.vue

@@ -272,6 +272,8 @@ const writingConclusionClick = async () => {
 
 
 
+    } else {
+        window.$message?.error(msg)
     }
 }
 
@@ -314,7 +316,7 @@ const onSubmitReportClick = async () => {
     })
     const res = getArrValue(data)
     reportData.value = res
-    if (res.length >= 0) {
+    if (res.length > 0) {
         pdfDateId.value = res[0].id
         curPdf.value = res[0].tableUrl
         tableTitle.value = res[0].tableTitle
@@ -353,6 +355,8 @@ const previewClick = async ()=>{
             window.$message?.warning('文件不存在')
         }
 
+    } else {
+        window.$message?.error(msg)
     }
 }
 //查看验收报告

+ 4 - 0
src/views/transfer/preliminary-examination.vue

@@ -109,6 +109,7 @@ import TableOpinion from './components/examination/table-opinion.vue'
 import initialgApi from '~api/initial/initial'
 import { getArrValue, getObjValue } from 'js-fast-way'
 
+
 //变量
 const router = useRouter()
 const useAppState = useAppStore()
@@ -284,6 +285,9 @@ const writingConclusion = async () => {
         
        
      
+    } else {
+        window.$message.error(msg)
+
     }
 }
 

+ 1 - 1
src/views/transfer/write-report.vue

@@ -178,7 +178,7 @@ const onSubmitReportClick = async () => {
     })
     const res = getArrValue(data)
     reportData.value = res
-    if (res.length >= 0) {
+    if (res.length > 0) {
         pdfDateId.value = res[0].id
         curPdf.value = res[0].tableUrl
         tableTitle.value = res[0].tableTitle

+ 4 - 4
yarn.lock

@@ -2164,10 +2164,10 @@ has-flag@^4.0.0:
   resolved "http://219.151.181.73:9000/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
   integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
 
-hc-vue3-ui@^4.6.5:
-  version "4.6.5"
-  resolved "http://219.151.181.73:9000/hc-vue3-ui/-/hc-vue3-ui-4.6.5.tgz#f1529c1878853806321a9c9196dfc52f6dd64873"
-  integrity sha512-M20Y4jccipfdEJi5h0ywL6xvdvH1W94vlQBPlJrzzmTXhZgiOFticxp4h4uOjWKmg9b2/mKFfHMf7z/pBLgn9g==
+hc-vue3-ui@^4.7.4:
+  version "4.7.4"
+  resolved "http://219.151.181.73:9000/hc-vue3-ui/-/hc-vue3-ui-4.7.4.tgz#2677da438263aa1d3e935d5880b3aa4df9c6d9b6"
+  integrity sha512-yi9ibC3gFgyeN5h0DtwG5CUvaPVN/m74nu8LuX13y0LYDFgYJGjZ8RY7dfoswqmoXMDJe2ndho7NeE06sKc12w==
   dependencies:
     axios "^1.7.7"
     dayjs "^1.11.13"