Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

XMLWAN 5 years ago
parent
commit
3df3902afe

+ 1 - 0
.gitignore View File

1
+node_modules/

+ 7 - 7
src/views/layout/components/Sidebar/index.vue View File

38
         @a="b"
38
         @a="b"
39
       ></sidebar-item>
39
       ></sidebar-item>
40
      <el-menu-item v-if="this.$store.getters.xt_user.cdm_role_exist" index="100">
40
      <el-menu-item v-if="this.$store.getters.xt_user.cdm_role_exist" index="100">
41
-        <a :href="CDMWebsit()">
42
-          <i class="icon iconfont icon-manbing-xuanzhong" style="margin-right:4px"></i>
43
-          <span
44
-            slot="title"
45
-          >慢病管理</span>
46
-        </a>
47
-      </el-menu-item>
41
+      <a :href="CDMWebsit()">
42
+        <i class="icon iconfont icon-manbing-xuanzhong" style="margin-right:4px"></i>
43
+        <span
44
+          slot="title"
45
+        >慢病管理</span>
46
+      </a>
47
+    </el-menu-item>
48
       <el-menu-item v-if="this.$store.getters.xt_user.scrm_role_exist" index="101">
48
       <el-menu-item v-if="this.$store.getters.xt_user.scrm_role_exist" index="101">
49
         <a :href="SCRMWebsit()">
49
         <a :href="SCRMWebsit()">
50
           <i class="icon iconfont icon-pengyou" style="margin-right:4px"></i>
50
           <i class="icon iconfont icon-pengyou" style="margin-right:4px"></i>

+ 44 - 4
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

9
     >
9
     >
10
       <div class="txsj" v-show="showAdvicePanel">
10
       <div class="txsj" v-show="showAdvicePanel">
11
         <el-button round @click="openGroupFrom" :loading="deleLoading"
11
         <el-button round @click="openGroupFrom" :loading="deleLoading"
12
+        :disabled="!is_has_create"
12
                    >
13
                    >
13
           新增医嘱
14
           新增医嘱
14
         </el-button>
15
         </el-button>
15
 
16
 
16
-        <el-button v-if="currentRow != null" round
17
+        <el-button v-if="currentRow != null" round :disabled="!is_has_exce"
17
                    @click="execAdvice" :loading="deleLoading">执行医嘱
18
                    @click="execAdvice" :loading="deleLoading">执行医嘱
18
         </el-button>
19
         </el-button>
19
         <el-button v-else disabled round @click="execAdvice" :loading="deleLoading">执行医嘱</el-button>
20
         <el-button v-else disabled round @click="execAdvice" :loading="deleLoading">执行医嘱</el-button>
20
 
21
 
21
-        <el-button v-if="currentRow != null" round
22
+        <el-button v-if="currentRow != null" round :disabled="!is_has_check"
22
                    @click="checkAdvice" :loading="deleLoading">医嘱核对
23
                    @click="checkAdvice" :loading="deleLoading">医嘱核对
23
         </el-button>
24
         </el-button>
24
         <el-button v-else disabled round @click="checkAdvice" :loading="deleLoading">医嘱核对</el-button>
25
         <el-button v-else disabled round @click="checkAdvice" :loading="deleLoading">医嘱核对</el-button>
25
 
26
 
26
         <el-button
27
         <el-button
27
-          v-if="groupSelectRow != null"
28
+          v-if="groupSelectRow != null" :disabled="!is_has_modify && !is_has_modify_other"
28
           round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱
29
           round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱
29
         </el-button>
30
         </el-button>
30
         <el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
31
         <el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
31
 
32
 
32
 
33
 
33
         <el-button
34
         <el-button
34
-          v-if="groupSelectRow != null"
35
+          v-if="groupSelectRow != null" :disabled="!is_has_del && !is_has_del_other"
35
           round @click="openDeleteGroupAdvice" :loading="deleLoading">删除医嘱
36
           round @click="openDeleteGroupAdvice" :loading="deleLoading">删除医嘱
36
         </el-button>
37
         </el-button>
37
         <el-button v-else disabled round @click="openDeleteGroupAdvice" :loading="deleLoading">删除医嘱</el-button>
38
         <el-button v-else disabled round @click="openDeleteGroupAdvice" :loading="deleLoading">删除医嘱</el-button>
275
   } from '@/api/advice'
276
   } from '@/api/advice'
276
   import { getDataConfig } from '@/utils/data'
277
   import { getDataConfig } from '@/utils/data'
277
 
278
 
279
+  import request from '@/utils/request'
280
+
278
   export default {
281
   export default {
279
     name: 'DoctorAdviceDialog',
282
     name: 'DoctorAdviceDialog',
280
     props: {
283
     props: {
304
     },
307
     },
305
     data() {
308
     data() {
306
       return {
309
       return {
310
+        is_has_create:true,
311
+        is_has_exce:true,
312
+        is_has_check:true,
313
+        is_has_modify_exce:true,
314
+        is_has_modify:true,
315
+        is_has_modify_other:true,
316
+        is_has_del:true,
317
+        is_has_del_other:true,
307
         tempArr: [],
318
         tempArr: [],
308
         execTimeDialogVisible: false,
319
         execTimeDialogVisible: false,
309
         currentBoxClass: 'current-box-class',
320
         currentBoxClass: 'current-box-class',
1228
       },
1239
       },
1229
       show() {
1240
       show() {
1230
         this.isVisibility = true
1241
         this.isVisibility = true
1242
+        this.getPermission()
1231
       },
1243
       },
1232
       hide() {
1244
       hide() {
1233
         this.isVisibility = false
1245
         this.isVisibility = false
1363
         } else { // 是子药
1375
         } else { // 是子药
1364
           return row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc
1376
           return row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc
1365
         }
1377
         }
1378
+      },
1379
+      getPermission() {
1380
+        request.get("/api/func_per/get", {
1381
+          params: {
1382
+            create_url: "/api/patients/advice/creategroup?mode=1",
1383
+            modify_url: "/api/patients/advice/edit?mode=2",
1384
+            modify_other_url: "/api/patients/advice/edit?mode=3",
1385
+            del_url: "/api/patients/advice/delete?mode=4",
1386
+            del_other_url: "/api/patients/advice/delete?mode=5",
1387
+            exce_url: "/api/patients/advice/exec?mode=6",
1388
+            check_url: "/api/patients/advice/check?mode=7",
1389
+            module: 4
1390
+          }
1391
+        }).then(res => {
1392
+          console.log(res)
1393
+          if (res.data.state == 0) {
1394
+            this.hasPermission = false
1395
+          } else if (res.data.state == 1) {
1396
+            this.is_has_create = res.data.data.is_has_create
1397
+            this.is_has_exce = res.data.data.is_has_exce
1398
+            this.is_has_check = res.data.data.is_has_check
1399
+            this.is_has_modify = res.data.data.is_has_modify
1400
+            this.is_has_modify_other = res.data.data.is_has_modify_other
1401
+            this.is_has_modify_exce = res.data.data.is_has_modify_exce
1402
+            this.is_has_del = res.data.data.is_has_del
1403
+            this.is_has_del_other = res.data.data.is_has_del_other
1404
+          }
1405
+        })
1366
       }
1406
       }
1367
 
1407
 
1368
     },
1408
     },

+ 38 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

9
     >
9
     >
10
       <div v-show="edit == false">
10
       <div v-show="edit == false">
11
         <div class="txsj">
11
         <div class="txsj">
12
-          <el-button round @click="newRecordAction">新增监测</el-button>
13
-          <el-button round @click="modifyRecordAction">修改监测</el-button>
14
-          <el-button round @click="deleteRecordAction">删除监测</el-button>
12
+          <el-button round :disabled="!is_has_create" @click="newRecordAction">新增监测</el-button>
13
+          <el-button round :disabled="!is_has_modify && !is_has_modify_other" @click="modifyRecordAction">修改监测</el-button>
14
+          <el-button round :disabled="!is_has_del && !is_has_del_other" @click="deleteRecordAction">删除监测</el-button>
15
         </div>
15
         </div>
16
         <el-table
16
         <el-table
17
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
17
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
593
 } from "@/api/dialysis_record";
593
 } from "@/api/dialysis_record";
594
 import store from "@/store";
594
 import store from "@/store";
595
 
595
 
596
+import request from '@/utils/request'
597
+
596
 export default {
598
 export default {
597
   name: "MonitorDialog",
599
   name: "MonitorDialog",
598
   data() {
600
   data() {
599
     return {
601
     return {
602
+      is_has_create:true,
603
+      is_has_modify:true,
604
+      is_has_modify_other:true,
605
+      is_has_del:true,
606
+      is_has_del_other:true,
600
       visible: false,
607
       visible: false,
601
       edit: false,
608
       edit: false,
602
       current_row_class: "current-box-class",
609
       current_row_class: "current-box-class",
701
       this.cancelEditAction();
708
       this.cancelEditAction();
702
     },
709
     },
703
     show() {
710
     show() {
711
+      this.getPermission()
704
       this.visible = true;
712
       this.visible = true;
705
     },
713
     },
706
     hide() {
714
     hide() {
1159
           });
1167
           });
1160
         })
1168
         })
1161
         .catch(() => {});
1169
         .catch(() => {});
1162
-    }
1170
+    },
1171
+    getPermission() {
1172
+        request.get("/api/func_per/get", {
1173
+          params: {
1174
+            create_url: "/api/dislysis/monitor/edit?mode=1",
1175
+            modify_url: "/api/dislysis/monitor/edit?mode=2",
1176
+            modify_other_url: "/api/dislysis/monitor/edit?mode=3",
1177
+            del_url: "/api/dialysis/monitor/del?mode=4",
1178
+            del_other_url: "/api/dialysis/monitor/del?mode=5",
1179
+            module: 7
1180
+          }
1181
+        }).then(res => {
1182
+          console.log(res)
1183
+          if (res.data.state == 0) {
1184
+            this.hasPermission = false
1185
+          } else if (res.data.state == 1) {
1186
+            this.is_has_create = res.data.data.is_has_create
1187
+            this.is_has_exce = res.data.data.is_has_exce
1188
+            this.is_has_check = res.data.data.is_has_check
1189
+            this.is_has_modify = res.data.data.is_has_modify
1190
+            this.is_has_modify_other = res.data.data.is_has_modify_other
1191
+            this.is_has_modify_exce = res.data.data.is_has_modify_exce
1192
+            this.is_has_del = res.data.data.is_has_del
1193
+            this.is_has_del_other = res.data.data.is_has_del_other
1194
+          }
1195
+        })
1196
+      }
1163
   }
1197
   }
1164
 };
1198
 };
1165
 </script>
1199
 </script>