Bladeren bron

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

XMLWAN 5 jaren geleden
bovenliggende
commit
d6ee885f0e

+ 1 - 1
src/api/dialysis.js Bestand weergeven

@@ -158,7 +158,7 @@ export function postSoulution(params) {
158 158
     url: '/api/dialysis/soulution',
159 159
     method: 'Post',
160 160
     params: params,
161
-    headers:{"Permission":3},
161
+    headers:{"Permission":2},
162 162
 
163 163
   })
164 164
 }

+ 5 - 3
src/api/patient.js Bestand weergeven

@@ -62,7 +62,7 @@ export function createPatientDialysisSolution(id, solution,mode) {
62 62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
63 63
     method: 'post',
64 64
     data: solution,
65
-    headers:{"Permission":2},
65
+    headers:{"Permission":3},
66 66
 
67 67
 
68 68
   })
@@ -73,7 +73,7 @@ export function editPatientDialysisSolution(patient, id, solution,mode) {
73 73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
74 74
     method: 'put',
75 75
     data: solution,
76
-    headers:{"Permission":2},
76
+    headers:{"Permission":3},
77 77
 
78 78
   })
79 79
 }
@@ -317,7 +317,9 @@ export function UpdateDryWeightData(params) {
317 317
   return request({
318 318
     url: '/api/patient/updatedryweightdata',
319 319
     method: 'Post',
320
-    params: params
320
+    params: params,
321
+    headers:{"Permission":3},
322
+
321 323
   })
322 324
 }
323 325
 

+ 2 - 2
src/router/modules/stock.js Bestand weergeven

@@ -13,7 +13,7 @@ export default {
13 13
   },
14 14
   children: [
15 15
     {
16
-      path: "/warehouseReceipt/",
16
+      path: "/stock/warehouseReceipt/",
17 17
       component: Layout,
18 18
       redirect: "/stock/in",
19 19
       name: "warehouseReceipt",
@@ -26,7 +26,7 @@ export default {
26 26
       }
27 27
     },
28 28
     {
29
-      path: "/warehouseReceiptOther/",
29
+      path: "/stock/warehouseReceiptOther/",
30 30
       component: Layout,
31 31
       redirect: "/stock/in/other",
32 32
       name: "warehouseReceiptOther",

+ 2 - 2
src/styles/sidebar.scss Bestand weergeven

@@ -26,7 +26,7 @@
26 26
     .scrollbar-wrapper {
27 27
       overflow-x: hidden !important;
28 28
       .el-scrollbar__view {
29
-        height: 100%;
29
+        height: 96%;
30 30
         .hamburger-container {
31 31
           padding: 20px 10px 10px 10px;
32 32
           color: #fff;
@@ -48,7 +48,7 @@
48 48
     }
49 49
     .el-menu {
50 50
       border: none;
51
-      min-height: 130%;
51
+      // min-height: 130%;
52 52
       width: 100% !important;
53 53
     }
54 54
   }

+ 2 - 1
src/views/layout/components/Navbar.vue Bestand weergeven

@@ -309,6 +309,7 @@ export default {
309 309
     justify-content: space-between;
310 310
     min-width: 200px;
311 311
     margin-right: 10px;
312
+    font-size: 14px;
312 313
     .right-menu {
313 314
       float: right;
314 315
       height: 100%;
@@ -519,7 +520,7 @@ export default {
519 520
 }
520 521
 .dropdownBox {
521 522
     .el-dropdown-link{
522
-      font-size: 18px;
523
+      font-size: 14px;
523 524
       color:#fff;
524 525
     }
525 526
   }

+ 8 - 0
src/views/layout/components/Sidebar/SidebarItem.vue Bestand weergeven

@@ -210,12 +210,20 @@ export default {
210 210
 .menu-wrapper{
211 211
   .el-menu-item{
212 212
    background-color:#1F2D3D !important;
213
+   color: #fff !important;
213 214
   }
214 215
   .el-menu{
215 216
     background-color:#1F2D3D !important;
216 217
   }
217 218
   .el-submenu__title{
218 219
     background-color:#1F2D3D !important;
220
+    color: #fff !important;
221
+  }
222
+  .router-link-exact-active{
223
+    color: rgb(64, 158, 255) !important;
224
+    .el-menu-item{
225
+      color: rgb(64, 158, 255) !important;
226
+    }
219 227
   }
220 228
 }
221 229
 

+ 48 - 2
src/views/layout/components/Sidebar/index.vue Bestand weergeven

@@ -37,7 +37,32 @@
37 37
         :index="index"
38 38
         @a="b"
39 39
       ></sidebar-item>
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>
48
+      <el-menu-item v-if="this.$store.getters.xt_user.scrm_role_exist" index="101">
49
+        <a :href="SCRMWebsit()">
50
+          <i class="icon iconfont icon-pengyou" style="margin-right:4px"></i>
51
+          <span
52
+            slot="title"
53
+          >SCRM</span>
54
+        </a>
55
+      </el-menu-item>
56
+      <el-menu-item v-if="this.$store.getters.xt_user.mall_role_exist" index="102">
57
+        <a :href="MircoMallWebsit()">
58
+          <i class="icon iconfont icon-service_fill" style="margin-right:4px"></i>
59
+          <span
60
+            slot="title"
61
+          >微商城</span>
62
+        </a>
63
+      </el-menu-item>
40 64
     </el-menu>
65
+    
41 66
   </el-scrollbar>
42 67
   <!-- <div class="mianLeft">
43 68
     <div class="logo">
@@ -109,10 +134,19 @@ export default {
109 134
       // this.index = index;
110 135
       // this.activeClass = index;
111 136
       this.$emit("callBackIndex", index, num);
112
-    }
137
+    },
138
+    CDMWebsit() {
139
+      return process.env.CDM_HOST;
140
+    },
141
+    SCRMWebsit() {
142
+      return process.env.SRCM_HOST;
143
+    },
144
+    MircoMallWebsit() {
145
+      return process.env.MIRCO_MALL_HOST;
146
+    },
113 147
   },
114 148
   created() {
115
-    console.log(1111111121121111111, this.permission_routers);
149
+    // console.log(1111111121121111111, this.permission_routers);
116 150
     // this.permission_routers.map(item => {
117 151
     //   console.log(item.children);
118 152
     // });
@@ -204,5 +238,17 @@ export default {
204 238
 <style lang="scss">
205 239
 .scrollbar-wrapper {
206 240
   background-color: #1F2D3D;
241
+  .el-menu{
242
+    background-color: #1F2D3D !important;
243
+  }
244
+  .el-menu-item{
245
+    height: 40px !important;
246
+    line-height: 40px !important;
247
+    background-color: #1F2D3D !important;
248
+    color: #fff !important;
249
+    i{
250
+      color: #fff;
251
+    }
252
+  }
207 253
 }
208 254
 </style>

+ 11 - 5
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Bestand weergeven

@@ -12,10 +12,6 @@
12 12
                    >
13 13
           新增医嘱
14 14
         </el-button>
15
-        <el-button round @click="openGroupFrom" :loading="deleLoading"
16
-                   disabled>新增医嘱
17
-        </el-button>
18
-
19 15
 
20 16
         <el-button v-if="currentRow != null" round
21 17
                    @click="execAdvice" :loading="deleLoading">执行医嘱
@@ -1028,6 +1024,7 @@
1028 1024
           cancelButtonText: '取消',
1029 1025
           type: 'warning'
1030 1026
         }).then(() => {
1027
+          console.log(this.currentRow)
1031 1028
           let mode ="4"
1032 1029
           if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id){
1033 1030
             mode = "5"
@@ -1065,7 +1062,13 @@
1065 1062
           type: 'warning'
1066 1063
         }).then(() => {
1067 1064
           this.deleLoading = true
1068
-          let mode = "4"
1065
+
1066
+
1067
+          let mode ="4"
1068
+          if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id) {
1069
+            mode = "5"
1070
+          }
1071
+
1069 1072
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1070 1073
             this.deleLoading = false
1071 1074
             if (response.data.state == 0) {
@@ -1100,6 +1103,9 @@
1100 1103
         }).then(() => {
1101 1104
           this.deleLoading = true
1102 1105
           let mode ="4"
1106
+          if(this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id) {
1107
+            mode = "5"
1108
+          }
1103 1109
           DeleteDoctorAdvice(this.currentRow.id,mode).then(response => {
1104 1110
             this.deleLoading = false
1105 1111
             if (response.data.state == 0) {

+ 21 - 19
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Bestand weergeven

@@ -651,31 +651,32 @@ export default {
651 651
                   }
652 652
                 }
653 653
               }
654
-            }
655
-          })
656
-
657
-          if (isChild) {
658
-            for (const index in this.groupForm.adviceNames) {
659
-              if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.parent_row) {
660
-                for (const j in this.groupForm.adviceNames[index].children) {
661
-                  if (this.groupForm.adviceNames[index].children[j].row_key == this.groupSelectRow.row_key) {
662
-                    this.groupForm.adviceNames[index].children.splice(j, 1)
663
-                    this.$set(this.groupForm.adviceNames, index, this.groupForm.adviceNames[index])
654
+              if (isChild) {
655
+                for (const index in this.groupForm.adviceNames) {
656
+                  if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.parent_row) {
657
+                    for (const j in this.groupForm.adviceNames[index].children) {
658
+                      if (this.groupForm.adviceNames[index].children[j].row_key == this.groupSelectRow.row_key) {
659
+                        this.groupForm.adviceNames[index].children.splice(j, 1)
660
+                        this.$set(this.groupForm.adviceNames, index, this.groupForm.adviceNames[index])
661
+                        this.toggleRowExpansion()
662
+                        break
663
+                      }
664
+                    }
665
+                  }
666
+                }
667
+              } else {
668
+                for (const index in this.groupForm.adviceNames) {
669
+                  if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.row_key) {
670
+                    this.groupForm.adviceNames.splice(index, 1)
664 671
                     this.toggleRowExpansion()
665 672
                     break
666 673
                   }
667 674
                 }
668 675
               }
669 676
             }
670
-          } else {
671
-            for (const index in this.groupForm.adviceNames) {
672
-              if (this.groupForm.adviceNames[index].row_key == this.groupSelectRow.row_key) {
673
-                this.groupForm.adviceNames.splice(index, 1)
674
-                this.toggleRowExpansion()
675
-                break
676
-              }
677
-            }
678
-          }
677
+          })
678
+
679
+
679 680
         }).catch(() => {
680 681
         })
681 682
       },
@@ -1706,6 +1707,7 @@ export default {
1706 1707
           return false
1707 1708
         }
1708 1709
 
1710
+        console.log(groups[0].advice_doctor)
1709 1711
         this.adminusername = this.getXuserName(groups[0].advice_doctor)
1710 1712
         this.groupForm = {
1711 1713
           advice_type: groups[0].advice_type,

+ 3 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

@@ -1058,6 +1058,7 @@
1058 1058
             const ParamsQuery = this.dialysisPrescription
1059 1059
             ParamsQuery['patient'] = this.patient.id
1060 1060
             ParamsQuery['record_date'] = this.record_date
1061
+            ParamsQuery['mode'] = 1
1061 1062
             postSoulution(ParamsQuery).then(response => {
1062 1063
               if (response.data.state == 0) {
1063 1064
                 this.$message.error(response.data.msg)
@@ -1160,6 +1161,8 @@
1160 1161
             const ParamsQuery = this.dialysisPrescription
1161 1162
             ParamsQuery['patient'] = this.patient.id
1162 1163
             ParamsQuery['record_date'] = this.record_date
1164
+            ParamsQuery['mode'] = 1
1165
+
1163 1166
             postSoulution(ParamsQuery).then(response => {
1164 1167
               if (response.data.state == 0) {
1165 1168
                 this.$message.error(response.data.msg)

+ 5 - 1
src/xt_pages/user/dryWeight.vue Bestand weergeven

@@ -159,7 +159,8 @@
159 159
           doctors: this.dryWeightForm.doctors,
160 160
           remarks: this.dryWeightForm.remarks,
161 161
           patient_id: this.patientID,
162
-          dryweight: this.dryweight
162
+          dryweight: this.dryweight,
163
+          mode : "1"
163 164
         }
164 165
 
165 166
         this.$refs[formName].validate((valid) => {
@@ -172,6 +173,9 @@
172 173
                 const id = this.$route.params && this.$route.params.id
173 174
                 this.getAllData(id)
174 175
                 this.getDryWeightData(id)
176
+              }else{
177
+                this.$message.error(response.data.msg)
178
+                return false
175 179
               }
176 180
             })
177 181
           }