Browse Source

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

XMLWAN 5 years ago
parent
commit
d6ee885f0e

+ 1 - 1
src/api/dialysis.js View File

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

+ 5 - 3
src/api/patient.js View File

62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
62
     url: '/api/patients/dialysissolution/create?patient=' + id +"&mode="+mode,
63
     method: 'post',
63
     method: 'post',
64
     data: solution,
64
     data: solution,
65
-    headers:{"Permission":2},
65
+    headers:{"Permission":3},
66
 
66
 
67
 
67
 
68
   })
68
   })
73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
73
     url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id+"&mode="+mode,
74
     method: 'put',
74
     method: 'put',
75
     data: solution,
75
     data: solution,
76
-    headers:{"Permission":2},
76
+    headers:{"Permission":3},
77
 
77
 
78
   })
78
   })
79
 }
79
 }
317
   return request({
317
   return request({
318
     url: '/api/patient/updatedryweightdata',
318
     url: '/api/patient/updatedryweightdata',
319
     method: 'Post',
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 View File

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

+ 2 - 2
src/styles/sidebar.scss View File

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

+ 2 - 1
src/views/layout/components/Navbar.vue View File

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

+ 8 - 0
src/views/layout/components/Sidebar/SidebarItem.vue View File

210
 .menu-wrapper{
210
 .menu-wrapper{
211
   .el-menu-item{
211
   .el-menu-item{
212
    background-color:#1F2D3D !important;
212
    background-color:#1F2D3D !important;
213
+   color: #fff !important;
213
   }
214
   }
214
   .el-menu{
215
   .el-menu{
215
     background-color:#1F2D3D !important;
216
     background-color:#1F2D3D !important;
216
   }
217
   }
217
   .el-submenu__title{
218
   .el-submenu__title{
218
     background-color:#1F2D3D !important;
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 View File

37
         :index="index"
37
         :index="index"
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">
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
     </el-menu>
64
     </el-menu>
65
+    
41
   </el-scrollbar>
66
   </el-scrollbar>
42
   <!-- <div class="mianLeft">
67
   <!-- <div class="mianLeft">
43
     <div class="logo">
68
     <div class="logo">
109
       // this.index = index;
134
       // this.index = index;
110
       // this.activeClass = index;
135
       // this.activeClass = index;
111
       this.$emit("callBackIndex", index, num);
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
   created() {
148
   created() {
115
-    console.log(1111111121121111111, this.permission_routers);
149
+    // console.log(1111111121121111111, this.permission_routers);
116
     // this.permission_routers.map(item => {
150
     // this.permission_routers.map(item => {
117
     //   console.log(item.children);
151
     //   console.log(item.children);
118
     // });
152
     // });
204
 <style lang="scss">
238
 <style lang="scss">
205
 .scrollbar-wrapper {
239
 .scrollbar-wrapper {
206
   background-color: #1F2D3D;
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
 </style>
254
 </style>

+ 11 - 5
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

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

+ 21 - 19
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

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
                     this.toggleRowExpansion()
671
                     this.toggleRowExpansion()
665
                     break
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
         }).catch(() => {
680
         }).catch(() => {
680
         })
681
         })
681
       },
682
       },
1706
           return false
1707
           return false
1707
         }
1708
         }
1708
 
1709
 
1710
+        console.log(groups[0].advice_doctor)
1709
         this.adminusername = this.getXuserName(groups[0].advice_doctor)
1711
         this.adminusername = this.getXuserName(groups[0].advice_doctor)
1710
         this.groupForm = {
1712
         this.groupForm = {
1711
           advice_type: groups[0].advice_type,
1713
           advice_type: groups[0].advice_type,

+ 3 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

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

+ 5 - 1
src/xt_pages/user/dryWeight.vue View File

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