From 539d1ce6b955d5d56b21d97590a2a684c400f64a Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期三, 11 一月 2023 09:55:16 +0800
Subject: [PATCH] 细节调节

---
 src/views/padSunmaryProcedure/padWord.vue |   41 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 34 insertions(+), 7 deletions(-)

diff --git a/src/views/padSunmaryProcedure/padWord.vue b/src/views/padSunmaryProcedure/padWord.vue
index e76e486..876b22c 100644
--- a/src/views/padSunmaryProcedure/padWord.vue
+++ b/src/views/padSunmaryProcedure/padWord.vue
@@ -24,15 +24,15 @@
                @tab-click="handleClick">
         <el-tab-pane label="璋冩煡璇㈤棶绗斿綍"
                      name="first">
-          <BiLu v-if="activeName == 'first'"></BiLu>
+          <BiLu v-if="activeName == 'first'" @isKeep1="isKeep1"></BiLu>
         </el-tab-pane>
         <el-tab-pane label="璐d护闄愭湡鏀规閫氱煡涔�"
                      name="second">
-          <GaiZheng v-if="activeName == 'second'">璐d护闄愭湡鏀规閫氱煡涔�</GaiZheng>
+          <GaiZheng v-if="activeName == 'second'" @isKeep2="isKeep2">璐d护闄愭湡鏀规閫氱煡涔�</GaiZheng>
         </el-tab-pane>
         <el-tab-pane label="澶勭綒鍐冲畾涔�"
                      name="third">
-          <JueDingShu v-if="activeName == 'third'">澶勭綒鍐冲畾涔�</JueDingShu>
+          <JueDingShu v-if="activeName == 'third'" @isKeep3="isKeep3">澶勭綒鍐冲畾涔�</JueDingShu>
         </el-tab-pane>
       </el-tabs>
     </div>
@@ -80,6 +80,16 @@
     this.screenHeight = document.body.clientHeight
   },
   methods: {
+      isKeep1(val) {
+          //this.isSubmit = val
+          this.$store.commit('SET_IsCANSUBMIT1',val)
+      },
+      isKeep2(val) {
+          this.$store.commit('SET_IsCANSUBMIT2',val)
+      },
+      isKeep3(val) {
+          this.$store.commit('SET_IsCANSUBMIT3',val)
+      },
     //杩斿洖妗堜欢鍒楄〃
     goHome() {
       this.$router.push({
@@ -93,9 +103,20 @@
     },
     //鎻愪氦锛堝幓瀹℃牳锛�
     submit() {
-      submitcase({ id: this.id }).then((res) => {
-        this.goHome()
-      })
+      if(this.$store.state.user.isCanSubmit1 && this.$store.state.user.isCanSubmit2 && this.$store.state.user.isCanSubmit3) {
+          submitcase({ id: this.id }).then((res) => {
+              return
+              console.log(res,'res-----')
+              if(res.data.code == 0) {
+                  this.$message.success('鎻愪氦鎴愬姛')
+                  this.goHome()
+              }
+          })
+      }else {
+          this.$message.warning('璇峰厛淇濆瓨鍐嶆彁浜�')
+          return false
+      }
+
     },
     //鐐瑰嚮閫夐」鍗℃晥鏋�
     handleClick(tab, event) {
@@ -106,8 +127,14 @@
 </script>
 
 <style lang="scss">
+  .el-message,.el-message--warning{
+    z-index: 99999!important;
+  }
+  .el-input.is-disabled .el-input__inner,.el-range-editor.is-disabled input{
+    color: #303133;
+  }
 .tagsContainer {
-  height: 95%;
+  height: 92%;
   overflow: scroll;
   .el-tabs {
     .el-tabs__header {

--
Gitblit v1.9.1