Browse Source

修改医嘱

csx 5 years ago
parent
commit
769b63076e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/pages/main/dialog/OrdersDialog.vue

+ 4 - 2
src/pages/main/dialog/OrdersDialog.vue View File

@@ -34,7 +34,7 @@
34 34
         <span
35 35
           v-if="currentSubAdvices.length <= 0"
36 36
           @click="modifyAdviceAction"
37
-          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
37
+          :class="{ forbid: current_group_index < 0 ||  (currentAdvices.length != 1  && current_select_object==1)  || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
38 38
         >修改</span>
39 39
         <span
40 40
           v-if="currentSubAdvices.length <= 0"
@@ -1223,6 +1223,9 @@
1223 1223
 
1224 1224
       },
1225 1225
       modifyAdviceAction: function () {
1226
+        if (this.currentAdvices.length != 1 && this.current_select_object==1){
1227
+          return
1228
+        }
1226 1229
         if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
1227 1230
           return
1228 1231
         }
@@ -1345,7 +1348,6 @@
1345 1348
       }, selectGroupAdviceAction: function (group_index, advice_index, advice, group) {
1346 1349
 
1347 1350
         if (this.current_group_index != -1 && this.current_group_index != group_index) { //选择其他组,将原来的组选择状态清除
1348
-          console.log("111111111")
1349 1351
           this.currentAdvices = []
1350 1352
           this.currentSubAdvices = []
1351 1353
           for (let i = 0; i < this.advice_groups.length; i++) {