Browse Source

新分支

28169 1 year ago
parent
commit
70562f4728

+ 8 - 0
src/store/modules/globalConfig.js View File

@@ -179,6 +179,14 @@ const global_config = {
179 179
       {
180 180
         id: 10,
181 181
         name: '无业'
182
+      },
183
+      {
184
+        id: 11,
185
+        name: '灵活就业人员'
186
+      },
187
+      {
188
+        id: 12,
189
+        name: '退休人员'
182 190
       }
183 191
     ],
184 192
     induction_options: [ // 诱导期

+ 1 - 1
src/xt_pages/data/components/editInspection.vue View File

@@ -337,7 +337,7 @@
337 337
                 this.$message.success('保存成功')
338 338
                 this.visible = false
339 339
                 this.projectList = []
340
-                // this.$parent.getlist()
340
+                this.$parent.getlist()
341 341
               }
342 342
             })
343 343
           }

+ 1 - 0
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

@@ -685,6 +685,7 @@
685 685
                    }
686 686
 
687 687
                  }
688
+                 console.log("list--------------------",list)
688 689
                  this.list = list
689 690
                }
690 691
              }

+ 11 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

@@ -239,6 +239,12 @@
239 239
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
240 240
                       </div>
241 241
                     </div>
242
+                    <div class="inline_block" style="flex:4;" v-if="org_id == 10081">
243
+                      穿刺点:
244
+                      <div class="under_line" style="min-width: 120px;text-align: center">
245
+                        {{ predialysis.point_puncture ? predialysis.point_puncture : "/" }}
246
+                      </div>
247
+                    </div>
242 248
                   </div>
243 249
                   <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
244 250
                     <div class="inline_block" style="flex:1;">
@@ -911,6 +917,8 @@
911 917
                         {{ afterdialysis.catheter ? afterdialysis.catheter : "/" }}
912 918
                       </div>
913 919
                     </div>
920
+
921
+                    
914 922
                   </div>
915 923
 
916 924
                   <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
@@ -1177,7 +1185,8 @@ export default {
1177 1185
         zongliang_unit: "mg",
1178 1186
         gaimingcheng_unit: "",
1179 1187
         gaijiliang_unit: ""
1180
-      }
1188
+      },
1189
+      org_id:0,
1181 1190
     };
1182 1191
   },
1183 1192
   methods: {
@@ -1964,6 +1973,7 @@ export default {
1964 1973
     }
1965 1974
   },
1966 1975
   created() {
1976
+    this.org_id = this.$store.getters.xt_user.org.id;
1967 1977
     this.way_arr = getDataConfig("hemodialysis", "way");
1968 1978
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
1969 1979
     this.appetite_arr = getDataConfig("hemodialysis", "appetite");

+ 8 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -3493,12 +3493,19 @@ export default {
3493 3493
         if (response.data.state == 1) {
3494 3494
           var team = response.data.data.team
3495 3495
           this.tabPrjectTeam = team
3496
-          this.allTabPrjectTeam = team
3496
+          this.allTabPrjectTeam = team.sort(this.compare("sort"))
3497 3497
 
3498 3498
           this.projectList = team
3499 3499
         }
3500 3500
       })
3501 3501
     },
3502
+    compare (property) {
3503
+        return function (a, b) {
3504
+            var value1 = a[property]
3505
+            var value2 = b[property]
3506
+            return value1 - value2
3507
+        }
3508
+     },
3502 3509
     selectTeam(row) {
3503 3510
       console.log(row)
3504 3511
       // var arr = []

+ 9 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -3514,13 +3514,21 @@
3514 3514
         getAllProjectTeam().then(response => {
3515 3515
           if (response.data.state == 1) {
3516 3516
             var team = response.data.data.team
3517
-            this.tabPrjectTeam = team
3517
+            
3518
+            this.tabPrjectTeam = team.sort(this.compare("sort"))
3518 3519
             this.allTabPrjectTeam = team
3519 3520
 
3520 3521
             this.projectList = team
3521 3522
           }
3522 3523
         })
3523 3524
       },
3525
+      compare (property) {
3526
+        return function (a, b) {
3527
+            var value1 = a[property]
3528
+            var value2 = b[property]
3529
+            return value1 - value2
3530
+        }
3531
+      },
3524 3532
       selectTeam(row) {
3525 3533
         console.log(row)
3526 3534
         // var arr = []

+ 92 - 80
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -1754,19 +1754,21 @@ export default {
1754 1754
               //   tempAddition.push(obj)
1755 1755
               // }
1756 1756
 
1757
-              var preTime = ''
1758
-
1759
-              if (prescription.pre_time == 0) {
1760
-                if (this.schedule.schedule_type == 1) {
1761
-                  preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1762
-                } else if (this.schedule.schedule_type == 2) {
1763
-                  preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
1764
-                } else if (this.schedule.schedule_type == 3) {
1765
-                  preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
1757
+              var preTime = nowTime
1758
+
1759
+              if (this.$store.getters.xt_user.org.id != 9919){
1760
+                if (prescription.pre_time == 0) {
1761
+                  if (this.schedule.schedule_type == 1) {
1762
+                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1763
+                  } else if (this.schedule.schedule_type == 2) {
1764
+                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
1765
+                  } else if (this.schedule.schedule_type == 3) {
1766
+                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
1767
+                  }
1768
+                  // preTime = nowTime
1769
+                } else {
1770
+                  preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
1766 1771
                 }
1767
-                // preTime = nowTime
1768
-              } else {
1769
-                preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
1770 1772
               }
1771 1773
               console.log("is_medicine")
1772 1774
               console.log(is_medicine)
@@ -1904,13 +1906,15 @@ export default {
1904 1906
                   }
1905 1907
                   tempProject.push(obj)
1906 1908
                 }
1907
-
1908
-                if (this.schedule.schedule_type == 1) {
1909
-                  var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1910
-                } else if (this.schedule.schedule_type == 2) {
1911
-                  var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
1912
-                } else if (this.schedule.schedule_type == 3) {
1913
-                  var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
1909
+                var preTime = nowTime
1910
+                if (this.$store.getters.xt_user.org.id != 9919) {
1911
+                  if (this.schedule.schedule_type == 1) {
1912
+                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1913
+                  } else if (this.schedule.schedule_type == 2) {
1914
+                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
1915
+                  } else if (this.schedule.schedule_type == 3) {
1916
+                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
1917
+                  }
1914 1918
                 }
1915 1919
 
1916 1920
                 let index = i + 1
@@ -2133,7 +2137,7 @@ export default {
2133 2137
                     let tempAdvice = []
2134 2138
                     let tempProject = []
2135 2139
                     let tempAddition = []
2136
-                    var is_medicine  = false
2140
+                    var is_medicine = false
2137 2141
                     //药品
2138 2142
                     for (let b = 0; b < prescription.advices.length; b++) {
2139 2143
                       let obj = {
@@ -2156,11 +2160,9 @@ export default {
2156 2160
                         execution_state: prescription.advices[b].execution_state,
2157 2161
                         is_medicine: prescription.advices[b].is_medicine,
2158 2162
 
2159
-
2160
-
2161 2163
                       }
2162 2164
                       tempAdvice.push(obj)
2163
-                      if (prescription.advices[b].is_medicine == 1){
2165
+                      if (prescription.advices[b].is_medicine == 1) {
2164 2166
                         is_medicine = true
2165 2167
                       }
2166 2168
                     }
@@ -2214,21 +2216,22 @@ export default {
2214 2216
                     //   tempAddition.push(obj)
2215 2217
                     // }
2216 2218
 
2217
-                    var preTime = ''
2218
-
2219
-                    if (prescription.pre_time == 0) {
2220
-                      // preTime = nowTime
2221
-                      if (this.schedule.schedule_type == 1) {
2222
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2223
-                      } else if (this.schedule.schedule_type == 2) {
2224
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2225
-                      } else if (this.schedule.schedule_type == 3) {
2226
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2219
+                    var preTime = nowTime
2220
+                    if (this.$store.getters.xt_user.org.id != 9919) {
2221
+                      if (prescription.pre_time == 0) {
2222
+                        if (this.schedule.schedule_type == 1) {
2223
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2224
+                        } else if (this.schedule.schedule_type == 2) {
2225
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2226
+                        } else if (this.schedule.schedule_type == 3) {
2227
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2228
+                        }
2229
+                      } else {
2230
+                        preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2227 2231
                       }
2228
-                    } else {
2229
-                      preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2230 2232
                     }
2231 2233
 
2234
+
2232 2235
                     let index = i + 1
2233 2236
                     let obj = {
2234 2237
                       id: prescription.id,
@@ -2364,14 +2367,16 @@ export default {
2364 2367
                         tempProject.push(obj)
2365 2368
                       }
2366 2369
 
2367
-                      // var preTime = nowTime
2368
-                      var preTime = ''
2369
-                      if (this.schedule.schedule_type == 1) {
2370
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2371
-                      } else if (this.schedule.schedule_type == 2) {
2372
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2373
-                      } else if (this.schedule.schedule_type == 3) {
2374
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2370
+                      var preTime = nowTime
2371
+                      // var preTime = ''
2372
+                      if(this.org_id != 9919 ) {
2373
+                        if (this.schedule.schedule_type == 1) {
2374
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2375
+                        } else if (this.schedule.schedule_type == 2) {
2376
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2377
+                        } else if (this.schedule.schedule_type == 3) {
2378
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2379
+                        }
2375 2380
                       }
2376 2381
 
2377 2382
                       let index = i + 1
@@ -3870,19 +3875,20 @@ export default {
3870 3875
                     //   tempAddition.push(obj)
3871 3876
                     // }
3872 3877
 
3873
-                    var preTime = ''
3878
+                    var preTime = nowTime
3874 3879
 
3875
-                    if (prescription.pre_time == 0) {
3876
-                      // preTime = nowTime
3877
-                      if (this.schedule.schedule_type == 1) {
3878
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
3879
-                      } else if (this.schedule.schedule_type == 2) {
3880
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
3881
-                      } else if (this.schedule.schedule_type == 3) {
3882
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
3880
+                    if(this.org_id != 9919 ) {
3881
+                      if (prescription.pre_time == 0) {
3882
+                        if (this.schedule.schedule_type == 1) {
3883
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
3884
+                        } else if (this.schedule.schedule_type == 2) {
3885
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
3886
+                        } else if (this.schedule.schedule_type == 3) {
3887
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
3888
+                        }
3889
+                      } else {
3890
+                        preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
3883 3891
                       }
3884
-                    } else {
3885
-                      preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
3886 3892
                     }
3887 3893
 
3888 3894
                     let index = i + 1
@@ -4018,13 +4024,15 @@ export default {
4018 4024
                       }
4019 4025
 
4020 4026
                       // var preTime = nowTime
4021
-                      var preTime = ''
4022
-                      if (this.schedule.schedule_type == 1) {
4023
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4024
-                      } else if (this.schedule.schedule_type == 2) {
4025
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4026
-                      } else if (this.schedule.schedule_type == 3) {
4027
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4027
+                      var preTime = nowTime
4028
+                      if(this.org_id != 9919 ) {
4029
+                        if (this.schedule.schedule_type == 1) {
4030
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4031
+                        } else if (this.schedule.schedule_type == 2) {
4032
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4033
+                        } else if (this.schedule.schedule_type == 3) {
4034
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4035
+                        }
4028 4036
                       }
4029 4037
 
4030 4038
                       let index = i + 1
@@ -4498,19 +4506,21 @@ export default {
4498 4506
                     //   tempAddition.push(obj)
4499 4507
                     // }
4500 4508
 
4501
-                    var preTime = ''
4509
+                    var preTime = nowTime
4502 4510
 
4503
-                    if (prescription.pre_time == 0) {
4504
-                      // preTime = nowTime
4505
-                      if (this.schedule.schedule_type == 1) {
4506
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4507
-                      } else if (this.schedule.schedule_type == 2) {
4508
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4509
-                      } else if (this.schedule.schedule_type == 3) {
4510
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4511
+                    if(this.org_id != 9919) {
4512
+                      if (prescription.pre_time == 0) {
4513
+                        // preTime = nowTime
4514
+                        if (this.schedule.schedule_type == 1) {
4515
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4516
+                        } else if (this.schedule.schedule_type == 2) {
4517
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4518
+                        } else if (this.schedule.schedule_type == 3) {
4519
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4520
+                        }
4521
+                      } else {
4522
+                        preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4511 4523
                       }
4512
-                    } else {
4513
-                      preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4514 4524
                     }
4515 4525
 
4516 4526
                     let index = i + 1
@@ -4646,14 +4656,16 @@ export default {
4646 4656
                         tempProject.push(obj)
4647 4657
                       }
4648 4658
 
4649
-                      // var preTime = nowTime
4650
-                      var preTime = ''
4651
-                      if (this.schedule.schedule_type == 1) {
4652
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4653
-                      } else if (this.schedule.schedule_type == 2) {
4654
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4655
-                      } else if (this.schedule.schedule_type == 3) {
4656
-                        preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4659
+                      var preTime = nowTime
4660
+                      // var preTime = ''
4661
+                      if(this.org_id != 9919 ) {
4662
+                        if (this.schedule.schedule_type == 1) {
4663
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4664
+                        } else if (this.schedule.schedule_type == 2) {
4665
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4666
+                        } else if (this.schedule.schedule_type == 3) {
4667
+                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4668
+                        }
4657 4669
                       }
4658 4670
 
4659 4671
                       let index = i + 1

+ 8 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

@@ -1801,11 +1801,18 @@
1801 1801
           if (response.data.state == 1) {
1802 1802
             var team = response.data.data.team
1803 1803
             console.log('team2222', team)
1804
-            this.tabPrjectTeam = team
1804
+            this.tabPrjectTeam = team.sort(this.compare("sort"))
1805 1805
             this.projectList = team
1806 1806
           }
1807 1807
         })
1808 1808
       },
1809
+      compare (property) {
1810
+        return function (a, b) {
1811
+            var value1 = a[property]
1812
+            var value2 = b[property]
1813
+            return value1 - value2
1814
+        }
1815
+      },
1809 1816
       changevalue(val) {
1810 1817
 
1811 1818
         this.$forceUpdate()

+ 2 - 2
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

@@ -56,7 +56,7 @@
56 56
       >
57 57
       <!--  -->
58 58
       </printThree>
59
-      <printFour
59
+      <!-- <printFour
60 60
         v-if="org_id == 10138 || org_id == 10278 || org_id == 0"
61 61
         ref="printFour"
62 62
         v-bind:childResponse="childResponse"
@@ -65,7 +65,7 @@
65 65
         :history="history"
66 66
         :patientid="patientid"
67 67
       >
68
-      </printFour>
68
+      </printFour> -->
69 69
     </div>
70 70
   </div>
71 71
 </template>

+ 98 - 97
src/xt_pages/user/components/PatientDetail.vue View File

@@ -206,6 +206,102 @@
206 206
                 ></el-input>
207 207
               </el-form-item>
208 208
             </el-col>
209
+            
210
+        
211
+            <el-col :span="6">
212
+              <el-form-item
213
+                label="本院首次透析 : "
214
+                prop="is_hospital_first_dialysis"
215
+              >
216
+                <el-radio-group v-model="form.is_hospital_first_dialysis">
217
+                  <el-radio
218
+                    v-for="item in isHospitalFirstDialysisOptions"
219
+                    :key="item.value"
220
+                    :label="item.value"
221
+                    :value="item.value"
222
+                    disabled
223
+                    >{{ item.label }}</el-radio
224
+                  >
225
+                </el-radio-group>
226
+              </el-form-item>
227
+            </el-col>
228
+            <el-col :span="6">
229
+              <el-form-item
230
+                label="系统前透析次数 : "
231
+                prop="first_dialysis_hospital"
232
+              >
233
+                <el-input v-model="form.user_sys_before_count" disabled></el-input>
234
+              </el-form-item>
235
+            </el-col>
236
+            <el-col :span="6">
237
+              <el-form-item label="首次诊治日期 : ">
238
+                <el-date-picker
239
+                  v-model="form.first_treatment_date"
240
+                  type="date"
241
+                  disabled
242
+                  format="yyyy-MM-dd"
243
+                  value-format="yyyy-MM-dd"
244
+                ></el-date-picker>
245
+              </el-form-item>
246
+            </el-col>
247
+            <el-col :span="6">
248
+              <el-form-item label="上家透析医院 : " prop="first_dialysis_hospital">
249
+                <el-input
250
+                  v-model="form.first_dialysis_hospital"
251
+                  disabled
252
+                ></el-input>
253
+              </el-form-item>
254
+            </el-col>
255
+            <el-col :span="24">
256
+              <el-form-item label="透析之前情况 : " prop="predialysis_condition">
257
+                <el-checkbox-group v-model="form.predialysis_condition">
258
+                  <el-checkbox
259
+                    v-for="item in predialysisConditionOptions"
260
+                    :label="item.label"
261
+                    :key="item.value"
262
+                    :value="item.label"
263
+                    disabled
264
+                    >{{ item.label }}</el-checkbox
265
+                  >
266
+                </el-checkbox-group>
267
+              </el-form-item> </el-col
268
+            ><el-col :span="6">
269
+              <el-form-item
270
+                label="本院前透析频率 : "
271
+                prop="pre_hospital_dialysis_frequency"
272
+              >
273
+                <el-input
274
+                  v-model="form.pre_hospital_dialysis_frequency"
275
+                  disabled
276
+                ></el-input>
277
+              </el-form-item>
278
+            </el-col>
279
+            <el-col :span="6">
280
+              <el-form-item
281
+                label="本院前透析次数 : "
282
+                prop="pre_hospital_dialysis_times"
283
+              >
284
+                <el-input
285
+                  v-model="form.pre_hospital_dialysis_times"
286
+                  disabled
287
+                ></el-input>
288
+              </el-form-item>
289
+            </el-col>
290
+            <el-col :span="6">
291
+              <el-form-item
292
+                label="本院首次透析 : "
293
+                prop="hospital_first_dialysis_date"
294
+              >
295
+                <el-date-picker
296
+                  v-model="form.hospital_first_dialysis_date"
297
+                  type="date"
298
+                  format="yyyy-MM-dd"
299
+                  value-format="yyyy-MM-dd"
300
+                  disabled
301
+                ></el-date-picker>
302
+              </el-form-item>
303
+            </el-col>
304
+   
209 305
             <el-col :span="8" style="height: 59px">
210 306
               <el-form-item
211 307
                 label="患者来源 : "
@@ -678,7 +774,7 @@
678 774
           </el-form-item>
679 775
         </el-col>
680 776
 
681
-        <el-col :span="24">
777
+        <!-- <el-col :span="24">
682 778
           <el-form-item label="慢性病 : " prop="diseases">
683 779
             <el-checkbox-group v-model="form.diseases">
684 780
               <el-checkbox
@@ -691,104 +787,9 @@
691 787
               >
692 788
             </el-checkbox-group>
693 789
           </el-form-item>
694
-        </el-col>
790
+        </el-col> -->
695 791
       </el-row>
696 792
 
697
-      <div v-show="!treat_info_fold">
698
-        <el-col :span="6">
699
-          <el-form-item
700
-            label="本院首次透析 : "
701
-            prop="is_hospital_first_dialysis"
702
-          >
703
-            <el-radio-group v-model="form.is_hospital_first_dialysis">
704
-              <el-radio
705
-                v-for="item in isHospitalFirstDialysisOptions"
706
-                :key="item.value"
707
-                :label="item.value"
708
-                :value="item.value"
709
-                disabled
710
-                >{{ item.label }}</el-radio
711
-              >
712
-            </el-radio-group>
713
-          </el-form-item>
714
-        </el-col>
715
-        <el-col :span="6">
716
-          <el-form-item
717
-            label="系统前透析次数 : "
718
-            prop="first_dialysis_hospital"
719
-          >
720
-            <el-input v-model="form.user_sys_before_count" disabled></el-input>
721
-          </el-form-item>
722
-        </el-col>
723
-        <el-col :span="6">
724
-          <el-form-item label="首次诊治日期 : ">
725
-            <el-date-picker
726
-              v-model="form.first_treatment_date"
727
-              type="date"
728
-              disabled
729
-              format="yyyy-MM-dd"
730
-              value-format="yyyy-MM-dd"
731
-            ></el-date-picker>
732
-          </el-form-item>
733
-        </el-col>
734
-        <el-col :span="6">
735
-          <el-form-item label="首次透析医院 : " prop="first_dialysis_hospital">
736
-            <el-input
737
-              v-model="form.first_dialysis_hospital"
738
-              disabled
739
-            ></el-input>
740
-          </el-form-item>
741
-        </el-col>
742
-        <el-col :span="24">
743
-          <el-form-item label="透析之前情况 : " prop="predialysis_condition">
744
-            <el-checkbox-group v-model="form.predialysis_condition">
745
-              <el-checkbox
746
-                v-for="item in predialysisConditionOptions"
747
-                :label="item.label"
748
-                :key="item.value"
749
-                :value="item.label"
750
-                disabled
751
-                >{{ item.label }}</el-checkbox
752
-              >
753
-            </el-checkbox-group>
754
-          </el-form-item> </el-col
755
-        ><el-col :span="6">
756
-          <el-form-item
757
-            label="本院前透析频率 : "
758
-            prop="pre_hospital_dialysis_frequency"
759
-          >
760
-            <el-input
761
-              v-model="form.pre_hospital_dialysis_frequency"
762
-              disabled
763
-            ></el-input>
764
-          </el-form-item>
765
-        </el-col>
766
-        <el-col :span="6">
767
-          <el-form-item
768
-            label="本院前透析次数 : "
769
-            prop="pre_hospital_dialysis_times"
770
-          >
771
-            <el-input
772
-              v-model="form.pre_hospital_dialysis_times"
773
-              disabled
774
-            ></el-input>
775
-          </el-form-item>
776
-        </el-col>
777
-        <el-col :span="6">
778
-          <el-form-item
779
-            label="本院首次透析 : "
780
-            prop="hospital_first_dialysis_date"
781
-          >
782
-            <el-date-picker
783
-              v-model="form.hospital_first_dialysis_date"
784
-              type="date"
785
-              format="yyyy-MM-dd"
786
-              value-format="yyyy-MM-dd"
787
-              disabled
788
-            ></el-date-picker>
789
-          </el-form-item>
790
-        </el-col>
791
-      </div>
792 793
       <el-col :span="24">
793 794
         <el-form-item>
794 795
           <el-button type="text" @click="treat_info_fold = !treat_info_fold"

+ 127 - 107
src/xt_pages/user/components/PatientForm.vue View File

@@ -217,7 +217,7 @@
217 217
                 </el-form-item>
218 218
               </el-col>
219 219
 
220
-              <el-col :span="6" :style="isEdit ? 'width:380px' : ''">
220
+              <el-col :span="6" :style="isEdit ? 'width:380px' : ''" v-if="org_id!=0 && org_id!=10138 && org_id!=10278">
221 221
                 <el-form-item
222 222
                   label="首次肾脏治疗时间:"
223 223
                   prop="firstDialysisDate"
@@ -231,6 +231,21 @@
231 231
                   ></el-date-picker>
232 232
                 </el-form-item>
233 233
               </el-col>
234
+
235
+              <el-col :span="6" :style="isEdit ? 'width:380px' : ''" v-if="org_id==0||org_id == 10138 || org_id == 10278">
236
+                <el-form-item
237
+                  label="首次进入本院时间:"
238
+                  prop="firstDialysisDate"
239
+                  label-width="150px"
240
+                >
241
+                  <el-date-picker
242
+                    v-model="form.firstDialysisDate"
243
+                    type="date"
244
+                    format="yyyy-MM-dd"
245
+                    value-format="yyyy-MM-dd"
246
+                  ></el-date-picker>
247
+                </el-form-item>
248
+              </el-col>
234 249
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
235 250
                 <el-form-item
236 251
                   label="本人电话 : "
@@ -257,6 +272,100 @@
257 272
                 </el-form-item>
258 273
               </el-col>
259 274
 
275
+             
276
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
277
+              <el-form-item
278
+                label="本院首次透析 : "
279
+                prop="is_hospital_first_dialysis"
280
+              >
281
+                <el-radio-group v-model="form.is_hospital_first_dialysis">
282
+                  <el-radio
283
+                    v-for="item in isHospitalFirstDialysisOptions"
284
+                    :key="item.value"
285
+                    :label="item.value"
286
+                    :value="item.value"
287
+                    >{{ item.label }}</el-radio
288
+                  >
289
+                </el-radio-group>
290
+              </el-form-item>
291
+            </el-col>
292
+
293
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
294
+              <el-form-item
295
+                label="系统前透析次数 : "
296
+                prop="user_sys_before_count"
297
+              >
298
+                <el-input v-model="form.user_sys_before_count"></el-input>
299
+              </el-form-item>
300
+            </el-col>
301
+
302
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
303
+              <el-form-item label="首次透析时间 : ">
304
+                <el-date-picker
305
+                  v-model="form.first_treatment_date"
306
+                  type="date"
307
+                  format="yyyy-MM-dd"
308
+                  value-format="yyyy-MM-dd"
309
+                ></el-date-picker>
310
+              </el-form-item>
311
+            </el-col>
312
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
313
+              <el-form-item
314
+                label="上家透析医院 : "
315
+                prop="first_dialysis_hospital"
316
+              >
317
+                <el-input v-model="form.first_dialysis_hospital"></el-input>
318
+              </el-form-item>
319
+            </el-col>
320
+            <el-col :span="24">
321
+              <el-form-item
322
+                label="透析之前情况 : "
323
+                prop="predialysis_condition"
324
+              >
325
+                <el-checkbox-group v-model="form.predialysis_condition">
326
+                  <el-checkbox
327
+                    v-for="item in predialysisConditionOptions"
328
+                    :label="item.label"
329
+                    :key="item.value"
330
+                    :value="item.label"
331
+                    >{{ item.label }}</el-checkbox
332
+                  >
333
+                </el-checkbox-group>
334
+              </el-form-item>
335
+            </el-col>
336
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
337
+              <el-form-item
338
+                label="本院前透析频率 : "
339
+                prop="pre_hospital_dialysis_frequency"
340
+              >
341
+                <el-input
342
+                  v-model="form.pre_hospital_dialysis_frequency"
343
+                ></el-input>
344
+              </el-form-item>
345
+            </el-col>
346
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
347
+              <el-form-item
348
+                label="本院前透析次数 : "
349
+                prop="pre_hospital_dialysis_times"
350
+              >
351
+                <el-input v-model="form.pre_hospital_dialysis_times"></el-input>
352
+              </el-form-item>
353
+            </el-col>
354
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
355
+              <el-form-item
356
+                label="本院首次透析 : "
357
+                prop="hospital_first_dialysis_date"
358
+              >
359
+                <el-date-picker
360
+                  v-model="form.hospital_first_dialysis_date"
361
+                  type="date"
362
+                  format="yyyy-MM-dd"
363
+                  value-format="yyyy-MM-dd"
364
+                ></el-date-picker>
365
+              </el-form-item>
366
+            </el-col>
367
+         
368
+
260 369
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
261 370
                 <el-form-item
262 371
                   label="患者来源 : "
@@ -778,7 +887,7 @@
778 887
           <!--</el-checkbox-group>-->
779 888
           <!--</el-form-item>-->
780 889
           <!--</el-col>-->
781
-          <el-col :span="24">
890
+          <!-- <el-col :span="24">
782 891
             <el-form-item label="慢性病 : " prop="diseases">
783 892
               <el-checkbox-group v-model="form.diseases">
784 893
                 <el-checkbox
@@ -790,102 +899,10 @@
790 899
                 >
791 900
               </el-checkbox-group>
792 901
             </el-form-item>
793
-          </el-col>
794
-
795
-          <div v-show="!treat_info_fold">
796
-            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
797
-              <el-form-item
798
-                label="本院首次透析 : "
799
-                prop="is_hospital_first_dialysis"
800
-              >
801
-                <el-radio-group v-model="form.is_hospital_first_dialysis">
802
-                  <el-radio
803
-                    v-for="item in isHospitalFirstDialysisOptions"
804
-                    :key="item.value"
805
-                    :label="item.value"
806
-                    :value="item.value"
807
-                    >{{ item.label }}</el-radio
808
-                  >
809
-                </el-radio-group>
810
-              </el-form-item>
811
-            </el-col>
902
+          </el-col> -->
812 903
 
813
-            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
814
-              <el-form-item
815
-                label="系统前透析次数 : "
816
-                prop="user_sys_before_count"
817
-              >
818
-                <el-input v-model="form.user_sys_before_count"></el-input>
819
-              </el-form-item>
820
-            </el-col>
821
-
822
-            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
823
-              <el-form-item label="首次透析时间 : ">
824
-                <el-date-picker
825
-                  v-model="form.first_treatment_date"
826
-                  type="date"
827
-                  format="yyyy-MM-dd"
828
-                  value-format="yyyy-MM-dd"
829
-                ></el-date-picker>
830
-              </el-form-item>
831
-            </el-col>
832
-            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
833
-              <el-form-item
834
-                label="首次透析医院 : "
835
-                prop="first_dialysis_hospital"
836
-              >
837
-                <el-input v-model="form.first_dialysis_hospital"></el-input>
838
-              </el-form-item>
839
-            </el-col>
840
-            <el-col :span="24">
841
-              <el-form-item
842
-                label="透析之前情况 : "
843
-                prop="predialysis_condition"
844
-              >
845
-                <el-checkbox-group v-model="form.predialysis_condition">
846
-                  <el-checkbox
847
-                    v-for="item in predialysisConditionOptions"
848
-                    :label="item.label"
849
-                    :key="item.value"
850
-                    :value="item.label"
851
-                    >{{ item.label }}</el-checkbox
852
-                  >
853
-                </el-checkbox-group>
854
-              </el-form-item>
855
-            </el-col>
856
-            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
857
-              <el-form-item
858
-                label="本院前透析频率 : "
859
-                prop="pre_hospital_dialysis_frequency"
860
-              >
861
-                <el-input
862
-                  v-model="form.pre_hospital_dialysis_frequency"
863
-                ></el-input>
864
-              </el-form-item>
865
-            </el-col>
866
-            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
867
-              <el-form-item
868
-                label="本院前透析次数 : "
869
-                prop="pre_hospital_dialysis_times"
870
-              >
871
-                <el-input v-model="form.pre_hospital_dialysis_times"></el-input>
872
-              </el-form-item>
873
-            </el-col>
874
-            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
875
-              <el-form-item
876
-                label="本院首次透析 : "
877
-                prop="hospital_first_dialysis_date"
878
-              >
879
-                <el-date-picker
880
-                  v-model="form.hospital_first_dialysis_date"
881
-                  type="date"
882
-                  format="yyyy-MM-dd"
883
-                  value-format="yyyy-MM-dd"
884
-                ></el-date-picker>
885
-              </el-form-item>
886
-            </el-col>
887
-          </div>
888
-          <el-col :span="24">
904
+       
905
+          <!-- <el-col :span="24">
889 906
             <el-form-item>
890 907
               <el-button
891 908
                 type="text"
@@ -895,7 +912,7 @@
895 912
                 <i class="el-icon--right" :class="treat_fold_icon"></i>
896 913
               </el-button>
897 914
             </el-form-item>
898
-          </el-col>
915
+          </el-col> -->
899 916
 
900 917
           <el-col :span="24">
901 918
             <el-form-item label="登记人员 : ">
@@ -1364,6 +1381,7 @@ export default {
1364 1381
         homeAddress: [{ required: true, message: "请填写住址", trigger: "blur" }],
1365 1382
       },
1366 1383
       adminUserOptions:[],
1384
+      org_id:0,
1367 1385
     };
1368 1386
   },
1369 1387
   components: {
@@ -1406,7 +1424,7 @@ export default {
1406 1424
     var xtuser = this.$store.getters.xt_user;
1407 1425
     this.orgname = xtuser.org.org_name;
1408 1426
     this.adminusername = xtuser.user.user_name;
1409
-
1427
+    this.org_id =this.$store.getters.xt_user.org.id
1410 1428
 
1411 1429
     if (this.isEdit) {
1412 1430
       this.submitMsg = "修改患者信息成功";
@@ -1429,13 +1447,13 @@ export default {
1429 1447
 
1430 1448
   },
1431 1449
   watch: {
1432
-    "form.record_date": function(val) {
1433
-      console.log(val);
1434
-      if (val == null || val == "") {
1435
-        console.log("111111");
1436
-        this.form.remind_cycle = "";
1437
-      }
1438
-    }
1450
+    // "form.record_date": function(val) {
1451
+    //   console.log(val);
1452
+    //   if (val == null || val == "") {
1453
+    //     console.log("111111");
1454
+    //     this.form.remind_cycle = "";
1455
+    //   }
1456
+    // }
1439 1457
   },
1440 1458
   methods: {
1441 1459
     fetchAllAdminUsers() {
@@ -1737,6 +1755,7 @@ export default {
1737 1755
             this.form.homeTelephone = patietInfo.home_telephone;
1738 1756
             this.form.relative_phone = patietInfo.relative_phone;
1739 1757
             this.form.relative_relations = patietInfo.relative_relations;
1758
+            this.form.remind_cycle = patietInfo.remind_cycle;
1740 1759
             this.form.homeAddress = patietInfo.home_address;
1741 1760
             this.form.work = patietInfo.work_unit;
1742 1761
             this.form.unit_address = patietInfo.unit_address;
@@ -1801,8 +1820,9 @@ export default {
1801 1820
             this.form.dbp = patietInfo.dbp;
1802 1821
 
1803 1822
             this.form.response_result = patietInfo.response_result;
1804
-            this.form.remind_cycle = patietInfo.remind_cycle;
1823
+           
1805 1824
             this.form.is_infectious = patietInfo.is_infectious;
1825
+            console.log("哈哈哈哈",patietInfo.is_infectious)
1806 1826
             if(this.form.is_infectious == 1){
1807 1827
               this.form.remind_cycle = 0
1808 1828
             }

+ 2 - 2
src/xt_pages/user/sickHistory.vue View File

@@ -441,7 +441,7 @@ export default {
441 441
       let params = {
442 442
         patient_id: this.patient_id,
443 443
         content: this.new_content,
444
-        record_time: this.sick_history_time,
444
+        record_time: this.sick_history_time +" 00:00:00",
445 445
         title: this.title,
446 446
         is_shenyizhishi:this.is_shenyizhishi,
447 447
         is_fumotouxishi:this.is_fumotouxishi,
@@ -529,7 +529,7 @@ export default {
529 529
       this.requestSickHistory()
530 530
     }, endTimeChange(val) {
531 531
       this.requestSickHistory()
532
-    }, 
532
+    },
533 533
     showDialog(){
534 534
       for(let i = 0; i < this.doctorOptions.length; i++){
535 535
         if(this.doctorOptions[i].id == this.$store.getters.xt_user.user.id){