Browse Source

修改医嘱相关权限

csx 5 years ago
parent
commit
638eeebea9

+ 9 - 3
src/pages/main/dialog/OrdersDialog.vue View File

@@ -34,19 +34,19 @@
34 34
         <span
35 35
           v-if="currentSubAdvices.length <= 0"
36 36
           @click="modifyAdviceAction"
37
-          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1 }"
37
+          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
38 38
         >修改</span>
39 39
         <span
40 40
           v-if="currentSubAdvices.length <= 0"
41 41
           @click="deleteAdviceAction"
42
-          :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0  }"
42
+          :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
43 43
         >删除</span>
44 44
 
45 45
         <span v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
46 46
         <span v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
47 47
       </div>
48 48
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
49
-       
49
+
50 50
         <div class="content clearfix">
51 51
           <div class="orderTable">
52 52
 
@@ -820,6 +820,9 @@
820 820
 
821 821
       },
822 822
       deleteAdviceAction: function () {
823
+        if (this.$store.getters.user.user.user_type == 3){
824
+          return
825
+        }
823 826
         if (this.current_select_object == 1) {
824 827
           if (this.currentAdvices.length <= 0) {
825 828
             return
@@ -1210,6 +1213,9 @@
1210 1213
 
1211 1214
       },
1212 1215
       modifyAdviceAction: function () {
1216
+        if (this.$store.getters.user.user.user_type == 3){
1217
+          return
1218
+        }
1213 1219
         if (this.current_group_index < 0) {
1214 1220
           return
1215 1221
         }

+ 1 - 2
src/pages/main/dialog/subMenu/multipleSubMenu.vue View File

@@ -214,8 +214,7 @@
214 214
       :show="is_show"
215 215
       v-on:menu-cancle="menuCancle"
216 216
       v-on:menu-comfirm="menuComfirm"
217
-      v-on:menu-empty="menuEmpty"
218
-      :propsForm="propForm"
217
+       :propsForm="propForm"
219 218
     ></new-check-box-sub-menu>
220 219
   </div>
221 220
 </template>