Sfoglia il codice sorgente

内审,发送催办

tianxinyu 6 mesi fa
parent
commit
3e9791e02e
1 ha cambiato i file con 17 aggiunte e 7 eliminazioni
  1. 17 7
      src/views/system/jbdScan/goods/neishenzhuangtai.vue

+ 17 - 7
src/views/system/jbdScan/goods/neishenzhuangtai.vue

@@ -332,6 +332,18 @@ export default {
                 })
                 return
             }
+
+            if (
+                this.selectCheckData.filter((t) => t.shi_fou_guo_shen_ === '已完成').length > 0
+            ) {
+                this.$message({
+                    showClose: true,
+                    message: '选中的数据中存在已完成数据,请检查!',
+                    type: 'warning'
+                })
+                return
+            }
+
             for (const item of this.selectCheckData) {
                 if (item.shi_fou_guo_shen_ !== '已完成') {
                     receiverId += item.nei_shen_yuan_ + ','
@@ -356,13 +368,11 @@ export default {
                 subject: '请在规定时间内完成' + '内审检查表编制内容,以免影响后续进度'
             }
             this_.$common.sendMsg(msage).then(res => {
-                if (receiverId) {
-                    this_.$message({
-                        duration: 3000,
-                        message: '已成功向未完成编制内审检查表的内审员发送催办信息',
-                        type: 'success'
-                    })
-                }
+                this_.$message({
+                    duration: 3000,
+                    message: '已成功向未完成编制内审检查表的内审员发送催办信息',
+                    type: 'success'
+                })
             })
         },
         // 内审核查完成率仪表盘