瀏覽代碼

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

See999 5 年之前
父節點
當前提交
35c3616002
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 4 2
      src/pages/main/dialog/OrdersDialog.vue
  2. 0 1
      src/pages/main/dialog/PrescriptionDialog.vue

+ 4 - 2
src/pages/main/dialog/OrdersDialog.vue 查看文件

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

+ 0 - 1
src/pages/main/dialog/PrescriptionDialog.vue 查看文件

1086
               this.zhiShow = true
1086
               this.zhiShow = true
1087
               this.totalShow = true
1087
               this.totalShow = true
1088
               this.huShow = true
1088
               this.huShow = true
1089
-              console.log("a")
1090
             }
1089
             }
1091
           }
1090
           }
1092
         }
1091
         }