Browse Source

限制重复上报

duy 2 years ago
parent
commit
3510f144d0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/other/first-item.vue

+ 3 - 2
src/views/other/first-item.vue

@@ -408,7 +408,8 @@ const firstReportClick = () => {
     const rows = deepClone(tableSelectionKeys.value)
     const rows = deepClone(tableSelectionKeys.value)
     //判断是否满足条件
     //判断是否满足条件
     const result = rows.every(({status})=> {
     const result = rows.every(({status})=> {
-        return status === 2
+        // return status === 2
+        return status === 0 || status === 3
     })
     })
     //判断状态
     //判断状态
     if (result) {
     if (result) {
@@ -418,7 +419,7 @@ const firstReportClick = () => {
         getFirstExcelHtml()
         getFirstExcelHtml()
     } else {
     } else {
         tableFileData.value = []
         tableFileData.value = []
-        window.$message?.warning('只能选择已审批的数据进行上报')
+        window.$message?.warning('已上报的文件不能进行再次上报,若要重新上报,要先撤回之前的上报,再重新上报')
     }
     }
 }
 }
 const FirstReportDrawerClose = () => {
 const FirstReportDrawerClose = () => {