Bläddra i källkod

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

See999 4 år sedan
förälder
incheckning
baacdf3d7c

+ 1 - 1
build/cdn.json Visa fil

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "1.1.2"
2
+  "version": "1.1.68"
3 3
 }

+ 2 - 2
config/prod.env.js Visa fil

@@ -1,9 +1,9 @@
1 1
 "use strict";
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4
-  // BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  BASE_API: '"https://api.xt.kuyicloud.com"'
5 5
 
6
-  BASE_API: '"http://api.xt.test.sgjyun.com"'
6
+  // BASE_API: '"http://api.xt.test.sgjyun.com"'
7 7
   // http://api.xt.test.sgjyun.com
8 8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
9 9
 };

+ 9 - 5
src/pages/home/login.vue Visa fil

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <div class="container">
3
+
3 4
     <div class="newLogin">
4 5
       <div class="login">
5 6
         <div class="logo">
@@ -53,12 +54,15 @@
53 54
               <!--&lt;!&ndash; </router-link> &ndash;&gt;-->
54 55
             <!--</el-checkbox>-->
55 56
             <!--&lt;!&ndash; <router-link to="/privacyPolicy"> &ndash;&gt;-->
56
-            <!--<span class="agreeText" @click="agree">《隐私服务协议》</span>-->
57 57
             <!--&lt;!&ndash; </router-link> &ndash;&gt;-->
58 58
           <!--</div>-->
59
+            <span  class="agreeText" @click="agree()">《隐私服务协议》</span>
60
+
61
+
59 62
         </div>
60 63
       </div>
61 64
     </div>
65
+
62 66
   </div>
63 67
 </template>
64 68
 
@@ -131,7 +135,7 @@ export default {
131 135
       });
132 136
     },
133 137
     to: function() {
134
-      this.$router.push({ path: "/forgetPassword" });
138
+      this.$router.push({ path: "/privacy" });
135 139
     },
136 140
     submitForm() {
137 141
       const self = this;
@@ -215,9 +219,9 @@ export default {
215 219
     //清除cookie
216 220
     clearCookie: function() {
217 221
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
218
-    },
219
-    agree() {
220
-      this.$router.push({ path: "/privacyPolicy" });
222
+    }, agree() {
223
+      this.$router.push({ path: "/privacy" });
224
+
221 225
     }
222 226
   }
223 227
 };

+ 9 - 5
src/pages/main/add_urgent_schedule.vue Visa fil

@@ -239,7 +239,6 @@
239 239
 
240 240
       var today = new Date();
241 241
       this.date = parseTime(today, "{y}-{m}-{d}");
242
-
243 242
       var hour = today.getHours();
244 243
       if (hour > 3 && hour < 11) {
245 244
         this.schedule_type = 1;
@@ -248,9 +247,6 @@
248 247
       } else {
249 248
         this.schedule_type = 3;
250 249
       }
251
-
252
-
253
-
254 250
     },
255 251
     mounted() {
256 252
 
@@ -353,7 +349,15 @@
353 349
       selectSchTypeAction: function() {
354 350
         this.$refs.sch_type_field.blur();
355 351
         this.show_sch_type_picker = true;
356
-
352
+        //
353
+        // this.$nextTick(() => {
354
+        //   // this.$refs.schedule.setColumnIndex(2)
355
+        //   // .setIndexes(this.schedule_type)
356
+        //   console.log(this.$refs.schedule)
357
+        //   console.log(this.$refs.schedule.getColumnIndex)
358
+        //   console.log(this.$refs.schedule.getColumnValue)
359
+        //
360
+        // })
357 361
       },
358 362
 
359 363
       didChangePatient: function(picker, patient, index) {

+ 44 - 35
src/pages/main/dialog/ComputerDialog.vue Visa fil

@@ -100,6 +100,7 @@
100 100
         zone_beds: [], // 该排班的区里的床位
101 101
         creator: 0,
102 102
         template_id: 0,
103
+        temp_device_numbers:[],
103 104
         blood_drawing:100,
104 105
         schedual_type:0,
105 106
         schedules_type: [
@@ -136,31 +137,39 @@
136 137
       },
137 138
     }, mounted () {
138 139
 
140
+
141
+    },
142
+    created () {
143
+      this.temp_device_numbers = this.device_numbers
144
+
145
+
146
+
139 147
       if (this.record.id == 0) {
140 148
         this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
149
+        let now = new Date()
150
+        let hour = now.getHours()
151
+
152
+        if (hour >= 6 && hour < 12){
153
+          this.schedual_type = 1
154
+
155
+        }else if(hour >= 12 && hour < 18){
156
+
157
+          this.schedual_type = 2
158
+
159
+
160
+        }else if(hour >= 18){
161
+          this.schedual_type = 3
162
+        }
141 163
       } else {
142 164
         if (this.record.start_time == 0) {
143 165
           this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
166
+          this.schedual_type = this.record.schedual_type
144 167
 
145 168
         } else {
146 169
           this.start_time_str = parseTime(this.record.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
147
-        }
148
-      }
149
-    },
150
-    created () {
151
-      let now = new Date()
152
-      let hour = now.getHours()
170
+          this.schedual_type = this.record.schedual_type
153 171
 
154
-      if (hour >= 6 && hour < 12){
155
-        this.schedual_type = 1
156
-
157
-      }else if(hour >= 12 && hour < 18){
158
-
159
-        this.schedual_type = 2
160
-
161
-
162
-      }else if(hour >= 18){
163
-        this.schedual_type = 3
172
+        }
164 173
       }
165 174
 
166 175
 
@@ -198,11 +207,11 @@
198 207
       // }
199 208
       // this.zone_beds = beds
200 209
 
201
-      for (let index = 0; index < this.device_numbers.length; index++) {
202
-        const device_number = this.device_numbers[index]
203
-        this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
210
+      for (let index = 0; index < this.temp_device_numbers.length; index++) {
211
+        const device_number = this.temp_device_numbers[index]
212
+        this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
204 213
       }
205
-      this.zone_beds = this.device_numbers
214
+      this.zone_beds = this.temp_device_numbers
206 215
 
207 216
       if (this.record.id > 0) {
208 217
         for (let i = 0; i < this.special_premission.length; i++) {
@@ -253,12 +262,12 @@
253 262
                   Toast.fail(response.data.msg)
254 263
                   return false
255 264
                 } else {
256
-                  t.device_numbers = response.data.data.number
257
-                  for (let index = 0; index < t.device_numbers.length; index++) {
258
-                    const device_number = t.device_numbers[index]
259
-                    t.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
265
+                  t.temp_device_numbers = response.data.data.number
266
+                  for (let index = 0; index < t.temp_device_numbers.length; index++) {
267
+                    const device_number = t.temp_device_numbers[index]
268
+                    t.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
260 269
                   }
261
-                  t.zone_beds = t.device_numbers
270
+                  t.zone_beds = t.temp_device_numbers
262 271
                   t.bed_id = t.zone_beds[0].id
263 272
                 }
264 273
               })
@@ -281,12 +290,12 @@
281 290
               return false
282 291
             } else {
283 292
               t.zone_beds = []
284
-              t.device_numbers = response.data.data.number
285
-              for (let index = 0; index < t.device_numbers.length; index++) {
286
-                const device_number = t.device_numbers[index]
287
-                t.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
293
+              t.temp_device_numbers = response.data.data.number
294
+              for (let index = 0; index < t.temp_device_numbers.length; index++) {
295
+                const device_number = t.temp_device_numbers[index]
296
+                t.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
288 297
               }
289
-              t.zone_beds = t.device_numbers
298
+              t.zone_beds = t.temp_device_numbers
290 299
               t.bed_id = t.zone_beds[0].id
291 300
 
292 301
 
@@ -305,12 +314,12 @@
305 314
             Toast.fail(response.data.msg)
306 315
             return false
307 316
           } else {
308
-            this.device_numbers = response.data.data.number
309
-            for (let index = 0; index < this.device_numbers.length; index++) {
310
-              const device_number = this.device_numbers[index]
311
-              this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
317
+            this.temp_device_numbers = response.data.data.number
318
+            for (let index = 0; index < this.temp_device_numbers.length; index++) {
319
+              const device_number = this.temp_device_numbers[index]
320
+              this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
312 321
             }
313
-            this.zone_beds = this.device_numbers
322
+            this.zone_beds = this.temp_device_numbers
314 323
           }
315 324
         })
316 325
       },

Filskillnaden har hållits tillbaka eftersom den är för stor
+ 445 - 441
src/pages/main/dialog/MonitDialog.vue


+ 28 - 25
src/pages/main/dialog/TreatmentDialog.vue Visa fil

@@ -241,42 +241,45 @@ export default {
241 241
     },
242 242
 
243 243
     dialysisSummarySelectChange: function(values) {
244
-      if (this.dialysisSummary.summaryContent == null) {
245
-        this.dialysisSummary.summaryContent == "";
244
+      if(this.dialysisSummary.summaryContent == null){
245
+        this.dialysisSummary.summaryContent == ""
246 246
       }
247
+
247 248
       if (this.dialysisSummary.summaryContent == "") {
248 249
         this.dialysisSummary.summaryContent = values;
249 250
       } else {
250
-        this.dialysisSummary.summaryContent =
251
-          this.dialysisSummary.summaryContent + values;
251
+        if (this.dialysisSummary.summaryContent.indexOf(values) == -1) {
252
+          if (
253
+            this.dialysisSummary.summaryContent
254
+              .charAt(this.dialysisSummary.summaryContent.length - 1)
255
+              .indexOf("。") == -1
256
+          ) {
257
+            this.dialysisSummary.summaryContent =
258
+              this.dialysisSummary.summaryContent + "," + values;
259
+          } else {
260
+            this.dialysisSummary.summaryContent =
261
+              this.dialysisSummary.summaryContent  + values;
262
+          }
263
+        }
252 264
       }
253 265
     },
254 266
     dialysisAfterTeachSelectChange: function(values) {
255
-      if (this.dialysisSummary.propagandaAndEducationContent == null) {
256
-        this.dialysisSummary.propagandaAndEducationContent == "";
267
+      if(this.dialysisSummary.propagandaAndEducationContent == null){
268
+        this.dialysisSummary.propagandaAndEducationContent == ""
257 269
       }
258 270
       if (this.dialysisSummary.propagandaAndEducationContent == "") {
259 271
         this.dialysisSummary.propagandaAndEducationContent = values;
260 272
       } else {
261
-        this.dialysisSummary.propagandaAndEducationContent =
262
-          this.dialysisSummary.propagandaAndEducationContent + values;
263
-        // if (
264
-        //   this.dialysisSummary.propagandaAndEducationContent.indexOf(values) ==
265
-        //   -1
266
-        // ) {
267
-        //   if (
268
-        //     this.dialysisSummary.propagandaAndEducationContent
269
-        //       .charAt(
270
-        //         this.dialysisSummary.propagandaAndEducationContent.length - 1
271
-        //       )
272
-        //       .indexOf("。") == -1
273
-        //   ) {
274
-        //     this.dialysisSummary.propagandaAndEducationContent =
275
-        //       this.dialysisSummary.propagandaAndEducationContent + "," + values;
276
-        //   } else {
277
-        //
278
-        //   }
279
-        // }
273
+        if (this.dialysisSummary.propagandaAndEducationContent.indexOf(values) == -1) {
274
+          if (
275
+            this.dialysisSummary.propagandaAndEducationContent.charAt(this.dialysisSummary.propagandaAndEducationContent.length - 1).indexOf("。") == -1) {
276
+            this.dialysisSummary.propagandaAndEducationContent =
277
+              this.dialysisSummary.propagandaAndEducationContent + "," + values;
278
+          } else {
279
+            this.dialysisSummary.propagandaAndEducationContent =
280
+              this.dialysisSummary.propagandaAndEducationContent + values;
281
+          }
282
+        }
280 283
       }
281 284
     },
282 285
     commitInfo: function() {

+ 36 - 72
src/pages/main/today/TodayTab.vue Visa fil

@@ -227,7 +227,7 @@
227 227
       :overlay="true"
228 228
       :close-on-click-overlay="false"
229 229
     >
230
-      <monit-dialog
230
+      <monit-dialog v-if="monit_dialog_reset"
231 231
         :monitor_records="monitor_records"
232 232
         :last_monitor_record="last_monitor_record"
233 233
         :patient="patient"
@@ -371,6 +371,7 @@ import {parseTime} from '@/utils'
371 371
         last_prescription:{},
372 372
         thoroug_dialog_reset: true,
373 373
         prescription_dialog_reset: true,
374
+        monit_dialog_reset: true,
374 375
         receiver_treatment_access: {}, // 接诊评估
375 376
         predialysis_evaluation: {}, // 透前评估
376 377
         last_predialysis_evaluation: {}, // 上次透前评估
@@ -847,11 +848,6 @@ import {parseTime} from '@/utils'
847 848
           var waitscheduals = waitstoredata.waitscheduals
848 849
           var storedata = this.$store.getters.scheduals
849 850
           var scheduals = storedata.scheduals
850
-
851
-
852
-
853
-
854
-
855 851
           var patient = resp.data.patient // 患者信息
856 852
           var schedual = resp.data.schedual // 患者排班信息
857 853
           var prescription = resp.data.prescription // 透析处方
@@ -882,13 +878,9 @@ import {parseTime} from '@/utils'
882 878
           var monitor_records = resp.data.monitor_records // 透析监测
883 879
           var dialysis_order = resp.data.dialysis_order // 透析记录
884 880
           var operators = resp.data.operators // 操作人
885
-
886 881
           var special_premission = resp.data.special_premission // 特殊权限
887
-
888 882
           var config = resp.data.config // 库存自动扣减配置
889
-
890 883
           var types = resp.data.types // 所有系统库存商品类型
891
-
892 884
           var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
893 885
           var last_assessment_after_dislysis = resp.data.last_assessment_after_dislysis // 上一次透前评估
894 886
           var last_monitor_record = resp.data.last_monitor_record
@@ -922,32 +914,15 @@ import {parseTime} from '@/utils'
922 914
           this.patient = patient
923 915
           this.schedual = schedual == null ? {} : schedual
924 916
           this.prescription = prescription == null ? {id: ''} : prescription
925
-          this.prescription_dialog_reset = false
926
-          this.$nextTick(() => {
927
-            this.prescription_dialog_reset = true
928
-          })
929 917
           this.solution = solution == null ? {id: ''} : solution
930 918
           this.last_prescription = last_prescription == null ? {id: ''} : last_prescription
931
-
932
-
933
-
934
-          this.receiver_treatment_access =
935
-              receiver_treatment_access == null
936
-                ? {id: ''}
937
-                : receiver_treatment_access
938
-          this.predialysis_evaluation =
939
-              predialysis_evaluation == null ? {} : predialysis_evaluation
940
-          this.last_predialysis_evaluation =
941
-              last_predialysis_evaluation == null
942
-                ? {}
943
-                : last_predialysis_evaluation
944
-
919
+          this.receiver_treatment_access = receiver_treatment_access == null ? {id: ''} : receiver_treatment_access
920
+          this.predialysis_evaluation = predialysis_evaluation == null ? {} : predialysis_evaluation
921
+          this.last_predialysis_evaluation = last_predialysis_evaluation == null ? {} : last_predialysis_evaluation
945 922
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices
946 923
           this.special_premission = special_premission
947 924
           this.config = config
948 925
           this.goodTypes = types
949
-
950
-
951 926
           if (this.doctor_advices.length > 0) {
952 927
             var group = this.newAdviceGroupObject()
953 928
             var initGroupBlock = function (group, advice) {
@@ -1009,27 +984,23 @@ import {parseTime} from '@/utils'
1009 984
 
1010 985
           this.double_check = double_check == null ? {id: ''} : double_check
1011 986
           this.assessment_after_dislysis = assessment_after_dislysis == null ? {id: ''} : assessment_after_dislysis
1012
-          this.thoroug_dialog_reset = false
1013
-          this.$nextTick(() => {
1014
-            this.thoroug_dialog_reset = true
1015
-          })
1016
-          this.last_assessment_after_dislysis =
1017
-              last_assessment_after_dislysis == null
1018
-                ? {id: ''}
1019
-                : last_assessment_after_dislysis
1020
-          this.treatment_summary =
1021
-              treatment_summary == null ? {id: ''} : treatment_summary
987
+          this.last_assessment_after_dislysis = last_assessment_after_dislysis == null ? {id: ''} : last_assessment_after_dislysis
988
+          this.treatment_summary = treatment_summary == null ? {id: ''} : treatment_summary
1022 989
           this.monitor_records = monitor_records == null ? [] : monitor_records
1023
-          this.last_monitor_record =
1024
-              last_monitor_record == null
1025
-                ? this.last_monitor_record
1026
-                : last_monitor_record
1027
-          this.dialysis_order =
1028
-              dialysis_order == null ? {id: ''} : dialysis_order
990
+          this.last_monitor_record = last_monitor_record == null ? this.last_monitor_record : last_monitor_record
991
+          this.dialysis_order =  dialysis_order == null ? {id: ''} : dialysis_order
1029 992
           this.operators = operators
1030 993
           this.$refs.stat_order.setAdvices(this.doctor_advices)
1031 994
           this.$refs.monitoring.setRecords(this.monitor_records)
1032 995
 
996
+          // 强制刷新子组件
997
+          this.thoroug_dialog_reset = false
998
+          this.$nextTick(() => { this.thoroug_dialog_reset = true })
999
+          this.prescription_dialog_reset = false
1000
+          this.$nextTick(() => { this.prescription_dialog_reset = true })
1001
+          this.monit_dialog_reset = false;
1002
+          this.$nextTick(() => { this.monit_dialog_reset = true })
1003
+
1033 1004
           this.title = patient.name
1034 1005
 
1035 1006
           dialysisGlobalConfig().then(rs => {
@@ -1534,21 +1505,16 @@ import {parseTime} from '@/utils'
1534 1505
           this.patient = patient
1535 1506
           this.schedual = schedual == null ? {} : schedual
1536 1507
           this.prescription = prescription == null ? {id: ''} : prescription
1508
+
1509
+
1537 1510
           this.solution = solution == null ? {id: ''} : solution
1538 1511
           this.last_prescription = last_prescription == null ? {id: ''} : last_prescription
1539 1512
 
1540 1513
 
1541 1514
 
1542
-          this.receiver_treatment_access =
1543
-            receiver_treatment_access == null
1544
-              ? {id: ''}
1545
-              : receiver_treatment_access
1546
-          this.predialysis_evaluation =
1547
-            predialysis_evaluation == null ? {} : predialysis_evaluation
1548
-          this.last_predialysis_evaluation =
1549
-            last_predialysis_evaluation == null
1550
-              ? {}
1551
-              : last_predialysis_evaluation
1515
+          this.receiver_treatment_access = receiver_treatment_access == null ? {id: ''} : receiver_treatment_access
1516
+          this.predialysis_evaluation = predialysis_evaluation == null ? {} : predialysis_evaluation
1517
+          this.last_predialysis_evaluation = last_predialysis_evaluation == null ? {} : last_predialysis_evaluation
1552 1518
 
1553 1519
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices
1554 1520
           this.special_premission = special_premission
@@ -1616,28 +1582,26 @@ import {parseTime} from '@/utils'
1616 1582
           }
1617 1583
 
1618 1584
           this.double_check = double_check == null ? {id: ''} : double_check
1619
-          this.assessment_after_dislysis =
1620
-            assessment_after_dislysis == null
1621
-              ? {id: ''}
1622
-              : assessment_after_dislysis
1623
-          this.last_assessment_after_dislysis =
1624
-            last_assessment_after_dislysis == null
1625
-              ? {id: ''}
1626
-              : last_assessment_after_dislysis
1627
-          this.treatment_summary =
1628
-            treatment_summary == null ? {id: ''} : treatment_summary
1585
+          this.assessment_after_dislysis = assessment_after_dislysis == null ? {id: ''} : assessment_after_dislysis
1586
+          this.last_assessment_after_dislysis = last_assessment_after_dislysis == null ? {id: ''} : last_assessment_after_dislysis
1587
+          this.treatment_summary =  treatment_summary == null ? {id: ''} : treatment_summary
1629 1588
           this.monitor_records = monitor_records == null ? [] : monitor_records
1630
-          this.last_monitor_record =
1631
-            last_monitor_record == null
1632
-              ? this.last_monitor_record
1633
-              : last_monitor_record
1634
-          this.dialysis_order =
1635
-            dialysis_order == null ? {id: ''} : dialysis_order
1589
+          this.last_monitor_record = last_monitor_record == null  ? this.last_monitor_record : last_monitor_record
1590
+          this.dialysis_order = dialysis_order == null ? {id: ''} : dialysis_order
1636 1591
           this.operators = operators
1637 1592
           this.$refs.stat_order.setAdvices(this.doctor_advices)
1638 1593
           this.$refs.monitoring.setRecords(this.monitor_records)
1639 1594
 
1640 1595
           this.title = patient.name
1596
+          // 强制刷新子组件
1597
+
1598
+          this.thoroug_dialog_reset = false
1599
+          this.$nextTick(() => { this.thoroug_dialog_reset = true })
1600
+          this.prescription_dialog_reset = false
1601
+          this.$nextTick(() => { this.prescription_dialog_reset = true })
1602
+          this.monit_dialog_reset = false;
1603
+          this.$nextTick(() => { this.monit_dialog_reset = true })
1604
+
1641 1605
         } else {
1642 1606
           this.$toast({
1643 1607
             message: resp.msg

+ 1 - 1
src/pages/privacy/index.vue Visa fil

@@ -36,7 +36,7 @@
36 36
 
37 37
 <script>
38 38
     export default {
39
-        name: "privacyPolicy"
39
+        name: "privacy"
40 40
 
41 41
     }
42 42
 </script>

+ 1 - 1
src/router/index.js Visa fil

@@ -77,7 +77,7 @@ export default new Router({
77 77
     },
78 78
     {
79 79
       path: "/privacy",
80
-      name: "privacyPolicy",
80
+      name: "privacy",
81 81
       component: () => import("@/pages/privacy/index")
82 82
     }
83 83
   ]