Browse Source

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

See999 5 years ago
parent
commit
f6ee638d04
1 changed files with 10 additions and 4 deletions
  1. 10 4
      src/pages/main/dialog/OrdersDialog.vue

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

42
           :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
42
           :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
43
         >删除</span>
43
         >删除</span>
44
 
44
 
45
-        <span v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
46
-        <span v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
45
+        <span :class="{ forbid:(this.$store.getters.user.user.user_type == 3 && !isPremission) }" v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
46
+        <span :class="{ forbid:(this.$store.getters.user.user.user_type == 3 && !isPremission) }" v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
47
       </div>
47
       </div>
48
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
48
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
49
 
49
 
781
         }
781
         }
782
         return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00'
782
         return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00'
783
       }, deleteSubAdviceAction: function () {
783
       }, deleteSubAdviceAction: function () {
784
+        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
785
+          return
786
+        }
784
         if (this.currentSubAdvices.length <= 0) {
787
         if (this.currentSubAdvices.length <= 0) {
785
           return
788
           return
786
         }
789
         }
820
 
823
 
821
       },
824
       },
822
       deleteAdviceAction: function () {
825
       deleteAdviceAction: function () {
823
-        if (this.$store.getters.user.user.user_type == 3){
826
+        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
824
           return
827
           return
825
         }
828
         }
826
         if (this.current_select_object == 1) {
829
         if (this.current_select_object == 1) {
1187
         this.current_advice_index = -1
1190
         this.current_advice_index = -1
1188
         this.current_advice = null
1191
         this.current_advice = null
1189
       }, modifySubdviceAction: function () {
1192
       }, modifySubdviceAction: function () {
1193
+        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
1194
+          return
1195
+        }
1190
         if (this.currentSubAdvices.length <= 0) {
1196
         if (this.currentSubAdvices.length <= 0) {
1191
           return
1197
           return
1192
         }
1198
         }
1213
 
1219
 
1214
       },
1220
       },
1215
       modifyAdviceAction: function () {
1221
       modifyAdviceAction: function () {
1216
-        if (this.$store.getters.user.user.user_type == 3){
1222
+        if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
1217
           return
1223
           return
1218
         }
1224
         }
1219
         if (this.current_group_index < 0) {
1225
         if (this.current_group_index < 0) {