csx před 5 roky
rodič
revize
b204a23f90

+ 1 - 1
build/cdn.json Zobrazit soubor

1
 {
1
 {
2
-  "version": "1.0.60"
2
+  "version": "1.0.89"
3
 }
3
 }

+ 2 - 2
config/prod.env.js Zobrazit soubor

1
 'use strict'
1
 'use strict'
2
 module.exports = {
2
 module.exports = {
3
   NODE_ENV: '"production"',
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
   // http://api.xt.test.sgjyun.com
7
   // http://api.xt.test.sgjyun.com
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
9
 }
9
 }

+ 1 - 1
src/api/dialysis.js Zobrazit soubor

225
 
225
 
226
 export function CreateGroupAdvice(id, groupno, advices){
226
 export function CreateGroupAdvice(id, groupno, advices){
227
   return request({
227
   return request({
228
-    url:'/api/advice_remind/create?id='+id + '&groupno=' + groupno,
228
+    url:'/m/api/advice_remind/create?id='+id + '&groupno=' + groupno,
229
     method:'post',
229
     method:'post',
230
     data:advices,
230
     data:advices,
231
   })
231
   })

+ 20 - 3
src/pages/main/dialog/AssessmentDialog.vue Zobrazit soubor

16
         </div>
16
         </div>
17
         <div class="item" v-if="isShow('干体重')">
17
         <div class="item" v-if="isShow('干体重')">
18
           <h2 class="name">干体重(kg)</h2>
18
           <h2 class="name">干体重(kg)</h2>
19
-          <div class="content">
20
-            <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight"/>
19
+          <div class="content" @click="showDryWeight">
20
+            <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight" disabled="disabled"/>
21
           </div>
21
           </div>
22
         </div>
22
         </div>
23
         <div class="item" v-if="isShow('衣物重')">
23
         <div class="item" v-if="isShow('衣物重')">
333
     <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
333
     <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
334
     <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
334
     <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
335
                         :propsForm="propForm"></check-box-sub-menu>
335
                         :propsForm="propForm"></check-box-sub-menu>
336
+
337
+
338
+    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
339
+                        :propsForm="propForm"></check-box-sub-menu>
336
   </div>
340
   </div>
337
 </template>
341
 </template>
338
 
342
 
346
   export default {
350
   export default {
347
     name: 'PrescriptionDialog',
351
     name: 'PrescriptionDialog',
348
     props: {
352
     props: {
353
+      dry_weight:{
354
+        type: Object,
355
+
356
+      },
349
       patient_prop: {
357
       patient_prop: {
350
         type: Object,
358
         type: Object,
351
       },
359
       },
1115
             this.$emit('evaluation', response.data.data.evaluation)
1123
             this.$emit('evaluation', response.data.data.evaluation)
1116
           }
1124
           }
1117
         })
1125
         })
1126
+      },showDryWeight:function(){
1127
+
1128
+
1129
+
1130
+
1118
       },
1131
       },
1119
       close: function () {
1132
       close: function () {
1120
         this.$emit('close')
1133
         this.$emit('close')
1181
       // console.log(this.predialysis)
1194
       // console.log(this.predialysis)
1182
       this.formValue = this.predialysis
1195
       this.formValue = this.predialysis
1183
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1196
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1184
-        this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1197
+        // this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1185
         this.$set(this.formValue, 'additional_weight', this.last_predialysis['additional_weight'].toString())
1198
         this.$set(this.formValue, 'additional_weight', this.last_predialysis['additional_weight'].toString())
1186
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1199
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1187
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1200
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1189
         this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
1202
         this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
1190
       }
1203
       }
1191
 
1204
 
1205
+      if (this.predialysis.id == undefined && this.dry_weight.id != undefined) {
1206
+        this.$set(this.formValue, 'dry_weight', this.dry_weight.adjusted_value.toString())
1207
+      }
1208
+
1192
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0
1209
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0
1193
     }
1210
     }
1194
   }
1211
   }

+ 213 - 159
src/pages/main/dialog/PrescriptionDialog.vue Zobrazit soubor

5
       <div class="DialogTit">
5
       <div class="DialogTit">
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7
         <h1 class="name">透析处方</h1>
7
         <h1 class="name">透析处方</h1>
8
-        <button @click="showmsgtip">{{patient.name}}  [透析号 {{patient.dialysis_no}} ]</button>
8
+        <button @click="showmsgtip">{{patient.name}} [透析号 {{patient.dialysis_no}} ]</button>
9
         <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
9
         <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
11
 
11
 
312
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
312
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
313
 
313
 
314
     <msg-tip style="width:500px;" :visibility="msgtip_visibility" :predialysis="predialysis"
314
     <msg-tip style="width:500px;" :visibility="msgtip_visibility" :predialysis="predialysis"
315
-                           :last_predialysis="last_predialysis"
316
-                           :record="record"
317
-                           :last_record="last_record"
318
-                           :patient_prop="patient"
319
-                           :prescription_prop="prescription_prop"
320
-                           v-on:menu-msg-tip="menuMsgTip"></msg-tip>
315
+             :last_predialysis="last_predialysis"
316
+             :record="record"
317
+             :last_record="last_record"
318
+             :patient_prop="patient"
319
+             :prescription_prop="prescription_prop"
320
+             v-on:menu-msg-tip="menuMsgTip"></msg-tip>
321
 
321
 
322
   </div>
322
   </div>
323
 </template>
323
 </template>
324
 
324
 
325
 <script>
325
 <script>
326
-import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
327
-import MultipleSubMenu from './subMenu/multipleSubMenu'
328
-import {commitDialysisPrescription, CreateGroupAdvice, postSign, postSolution} from '@/api/dialysis'
326
+  import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
327
+  import MultipleSubMenu from './subMenu/multipleSubMenu'
328
+  import {commitDialysisPrescription, CreateGroupAdvice, postSign, postSolution} from '@/api/dialysis'
329
 
329
 
330
-import {Toast} from 'vant'
331
-import {getDataConfig} from '@/utils/data'
330
+  import {Toast} from 'vant'
331
+  import {getDataConfig} from '@/utils/data'
332
 
332
 
333
-import {parseTime} from '@/utils'
334
-import LongAdviceSubMenu from './subMenu/LongAdviceSubMenu'
335
-import MsgTip from './subMenu/MsgTip'
333
+  import {parseTime} from '@/utils'
334
+  import LongAdviceSubMenu from './subMenu/LongAdviceSubMenu'
335
+  import MsgTip from './subMenu/MsgTip'
336
 
336
 
337
   export default {
337
   export default {
338
     name: 'PrescriptionDialog',
338
     name: 'PrescriptionDialog',
343
           return new Array()
343
           return new Array()
344
         }
344
         }
345
       },
345
       },
346
-      predialysis:{
347
-        type:Object
346
+      predialysis: {
347
+        type: Object
348
       },
348
       },
349
       last_predialysis: {
349
       last_predialysis: {
350
-        type:Object
350
+        type: Object
351
       },
351
       },
352
-      record:{
353
-        type:Object
352
+      record: {
353
+        type: Object
354
       },
354
       },
355
       last_record: {
355
       last_record: {
356
-        type:Object
356
+        type: Object
357
       },
357
       },
358
       patient_prop: {
358
       patient_prop: {
359
         type: Object
359
         type: Object
406
     },
406
     },
407
     data () {
407
     data () {
408
       return {
408
       return {
409
-        is_pre:0,
409
+        is_pre: 0,
410
         loading: false,
410
         loading: false,
411
         signUrl: '',
411
         signUrl: '',
412
         isShowDesc: true,
412
         isShowDesc: true,
426
           result: [],
426
           result: [],
427
           operators: [],
427
           operators: [],
428
 
428
 
429
-      },
430
-      is_show: false,
429
+        },
430
+        is_show: false,
431
 
431
 
432
         perfusion_apparatus: {},
432
         perfusion_apparatus: {},
433
         replacementWays: [],
433
         replacementWays: [],
516
         zhiShow: true,
516
         zhiShow: true,
517
         totalShow: true,
517
         totalShow: true,
518
         huShow: true,
518
         huShow: true,
519
-        doctorAdvices:[],
519
+        doctorAdvices: [],
520
         propForm: {
520
         propForm: {
521
           title: '',
521
           title: '',
522
           list: [],
522
           list: [],
529
       }
529
       }
530
     },
530
     },
531
 
531
 
532
-
533
-  methods: {
534
-    showmsgtip(){
532
+    methods: {
533
+      showmsgtip () {
535
         this.msgtip_visibility = true
534
         this.msgtip_visibility = true
536
         this.isShowDialog = false
535
         this.isShowDialog = false
537
 
536
 
538
-    },
539
-    isPermission () {
540
-      if (this.$store.getters.user.user.user_type == 3 && (this.$store.getters.user.template_info.template_id == 2 || this.$store.getters.user.template_info.template_id == 6)) {
541
-        return false
542
-      } else{
543
-        return true
544
-      }
545
-    },
546
-    isShow (name) {
547
-      var filedList = this.$store.getters.user.fileds
537
+      },
538
+      isPermission () {
539
+        if (this.$store.getters.user.user.user_type == 3 && (this.$store.getters.user.template_info.template_id == 2 || this.$store.getters.user.template_info.template_id == 6)) {
540
+          return false
541
+        } else {
542
+          return true
543
+        }
544
+      },
545
+      isShow (name) {
546
+        var filedList = this.$store.getters.user.fileds
548
 
547
 
549
         for (let i = 0; i < filedList.length; i++) {
548
         for (let i = 0; i < filedList.length; i++) {
550
           if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
549
           if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
740
         this.isShowDialog = true
739
         this.isShowDialog = true
741
 
740
 
742
       },
741
       },
743
-    menuMsgTip: function () {
744
-      this.msgtip_visibility = false
745
-      this.isShowDialog = true
746
-    },
747
-
748
-    menuComfirmThree: function (targetAdvices) {
742
+      menuMsgTip: function () {
743
+        this.msgtip_visibility = false
744
+        this.isShowDialog = true
745
+      },
749
 
746
 
747
+      menuComfirmThree: function (targetAdvices) {
750
 
748
 
751
         if (targetAdvices.length > 0) {
749
         if (targetAdvices.length > 0) {
752
           if (this.is_pre == 1) {
750
           if (this.is_pre == 1) {
759
                 Toast.fail(response.data.msg)
757
                 Toast.fail(response.data.msg)
760
                 return false
758
                 return false
761
               } else {
759
               } else {
760
+
761
+                var d = new Date();
762
+                var year = d.getFullYear();
763
+                var month=d.getMonth()+1;
764
+                var day=d.getDate();
765
+                var hour=d.getHours();
766
+                var minute=d.getMinutes();
767
+                var time = year+'-'+month+'-'+day+' '+hour+':'+minute
768
+
769
+                Toast.success('提交成功')
762
                 let params = {
770
                 let params = {
763
                   advices: targetAdvices,
771
                   advices: targetAdvices,
764
                   advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
772
                   advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
765
                   advice_doctor: targetAdvices[0].advice_doctor,
773
                   advice_doctor: targetAdvices[0].advice_doctor,
766
                   advice_type: targetAdvices[0].advice_type,
774
                   advice_type: targetAdvices[0].advice_type,
767
-                  parent_id: this.patient_id,
768
-                  start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
775
+                  parent_id: this.$route.query.patient_id,
776
+                  start_time: time,
769
                   remark: '',
777
                   remark: '',
770
                 }
778
                 }
779
+
771
                 CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
780
                 CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
772
                   var resp = rs.data
781
                   var resp = rs.data
773
                   if (resp.state == 1) {
782
                   if (resp.state == 1) {
774
-                    this.doctorAdvices = resp.data.advices
775
-                    Toast.success('提交成功')
776
-
777
-                    this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
778
-                    this.finish()
783
+                    this.$emit('prescription', response.data.data.prescription,resp.data.advices)
779
 
784
 
780
                   } else {
785
                   } else {
781
 
786
 
782
                   }
787
                   }
783
                 })
788
                 })
784
 
789
 
790
+                this.finish()
785
               }
791
               }
786
             })
792
             })
787
 
793
 
796
                 return false
802
                 return false
797
               } else {
803
               } else {
798
                 Toast.success('提交成功')
804
                 Toast.success('提交成功')
805
+                var d=new Date();
806
+                var year=d.getFullYear();
807
+                var month=change(d.getMonth()+1);
808
+                var day=change(d.getDate());
809
+                var hour=change(d.getHours());
810
+                var minute=change(d.getMinutes());
811
+                var time=year+'-'+month+'-'+day+' '+hour+':'+minute
812
+                let params = {
813
+                  advices: targetAdvices,
814
+                  advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
815
+                  advice_doctor: targetAdvices[0].advice_doctor,
816
+                  advice_type: targetAdvices[0].advice_type,
817
+                  parent_id: this.$route.query.patient_id,
818
+                  start_time: time,
819
+                  remark: '',
820
+                }
821
+                CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
822
+                  var resp = rs.data
823
+                  if (resp.state == 1) {
824
+                    this.$emit('prescription', response.data.data.prescription,resp.data.advices)
825
+                    this.$emit('longSolution', response.data.data.solution,resp.data.advices)
826
+                  } else {
799
 
827
 
800
-                this.$emit('advice')
801
-                this.$emit('longSolution', response.data.data.solution,this.doctorAdvices)
802
-                this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
828
+                  }
829
+                })
803
                 this.finish()
830
                 this.finish()
804
               }
831
               }
805
             })
832
             })
806
           }
833
           }
807
-        }else{
808
-
834
+        } else {
809
           if (this.is_pre == 1) {
835
           if (this.is_pre == 1) {
810
             Toast.loading({forbidClick: true, duration: 0})
836
             Toast.loading({forbidClick: true, duration: 0})
811
             let ParamsQuery = this.dialysisPrescription
837
             let ParamsQuery = this.dialysisPrescription
818
               } else {
844
               } else {
819
                 Toast.success('提交成功')
845
                 Toast.success('提交成功')
820
 
846
 
821
-                this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
847
+                this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
822
                 this.finish()
848
                 this.finish()
823
               }
849
               }
824
             })
850
             })
835
               } else {
861
               } else {
836
                 Toast.success('提交成功')
862
                 Toast.success('提交成功')
837
 
863
 
838
-                this.$emit('advice')
839
-                this.$emit('longSolution', response.data.data.solution,this.doctorAdvices)
840
-                this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
864
+                this.$emit('longSolution', response.data.data.solution, this.doctorAdvices)
865
+                this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
841
                 this.finish()
866
                 this.finish()
842
               }
867
               }
843
             })
868
             })
903
             treatment_mode_name = treatment_mode[keys].name
928
             treatment_mode_name = treatment_mode[keys].name
904
           }
929
           }
905
         }
930
         }
906
-      for (let keys in treatment_mode) {
907
-        if (treatment_mode[keys].id == val) {
908
-          treatment_mode_name = treatment_mode[keys].name
909
-          console.log('这是什么', treatment_mode[keys].name)
910
-          if (treatment_mode_name == 'HD') {
911
-            this.zhiShow = false
912
-            this.totalShow = false
913
-            this.huShow = false
914
-          } else {
915
-            this.zhiShow = true
916
-            this.totalShow = true
917
-            this.huShow = true
931
+        for (let keys in treatment_mode) {
932
+          if (treatment_mode[keys].id == val) {
933
+            treatment_mode_name = treatment_mode[keys].name
934
+            console.log('这是什么', treatment_mode[keys].name)
935
+            if (treatment_mode_name == 'HD') {
936
+              this.zhiShow = false
937
+              this.totalShow = false
938
+              this.huShow = false
939
+            } else {
940
+              this.zhiShow = true
941
+              this.totalShow = true
942
+              this.huShow = true
943
+            }
918
           }
944
           }
919
         }
945
         }
920
-      }
921
 
946
 
922
         return treatment_mode_name
947
         return treatment_mode_name
923
       },
948
       },
978
       },
1003
       },
979
       commitInfo: function () {
1004
       commitInfo: function () {
980
         this.is_pre = 1
1005
         this.is_pre = 1
981
-
982
         if (this.prescription_prop.id == '') {
1006
         if (this.prescription_prop.id == '') {
1007
+
983
           if (this.is_open == 0) {
1008
           if (this.is_open == 0) {
984
             Toast.loading({forbidClick: true, duration: 0})
1009
             Toast.loading({forbidClick: true, duration: 0})
985
             let ParamsQuery = this.dialysisPrescription
1010
             let ParamsQuery = this.dialysisPrescription
992
               } else {
1017
               } else {
993
                 Toast.success('提交成功')
1018
                 Toast.success('提交成功')
994
 
1019
 
995
-                this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
1020
+                this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
996
                 this.finish()
1021
                 this.finish()
997
               }
1022
               }
998
             })
1023
             })
1021
                 } else {
1046
                 } else {
1022
                   Toast.success('提交成功')
1047
                   Toast.success('提交成功')
1023
 
1048
 
1024
-                  this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
1049
+                  this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
1025
                   this.finish()
1050
                   this.finish()
1026
                 }
1051
                 }
1027
               })
1052
               })
1028
             }
1053
             }
1029
 
1054
 
1030
-
1031
           } else if (this.is_open == 2) {
1055
           } else if (this.is_open == 2) {
1032
             if (this.waitUploadAdvices.length > 0) {
1056
             if (this.waitUploadAdvices.length > 0) {
1033
-
1034
               Toast.loading({forbidClick: true, duration: 0})
1057
               Toast.loading({forbidClick: true, duration: 0})
1035
               let ParamsQuery = this.dialysisPrescription
1058
               let ParamsQuery = this.dialysisPrescription
1036
               ParamsQuery['patient'] = this.$route.query.patient_id
1059
               ParamsQuery['patient'] = this.$route.query.patient_id
1042
                 } else {
1065
                 } else {
1043
                   Toast.success('提交成功')
1066
                   Toast.success('提交成功')
1044
 
1067
 
1045
-                  this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
1046
-                  this.finish()
1047
-                }
1048
-              })
1049
-            } else {
1050
-              Toast.loading({forbidClick: true, duration: 0})
1051
-              let ParamsQuery = this.dialysisPrescription
1052
-              ParamsQuery['patient'] = this.$route.query.patient_id
1053
-              ParamsQuery['record_date'] = this.record_date
1054
-              commitDialysisPrescription(ParamsQuery).then(response => {
1055
-                if (response.data.state == 0) {
1056
-                  Toast.fail(response.data.msg)
1057
-                  return false
1058
-                } else {
1059
-                  this.advice_visibility = false
1068
+                  var d=new Date();
1069
+                  var year=d.getFullYear();
1070
+                  var month=change(d.getMonth()+1);
1071
+                  var day=change(d.getDate());
1072
+                  var hour=change(d.getHours());
1073
+                  var minute=change(d.getMinutes());
1074
+                  var time=year+'-'+month+'-'+day+' '+hour+':'+minute
1075
+
1060
                   let params = {
1076
                   let params = {
1061
                     advices: this.waitUploadAdvices,
1077
                     advices: this.waitUploadAdvices,
1062
                     advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1078
                     advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1063
                     advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1079
                     advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1064
                     advice_type: this.waitUploadAdvices[0].advice_type,
1080
                     advice_type: this.waitUploadAdvices[0].advice_type,
1065
-                    parent_id: this.patient_id,
1066
-                    start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1081
+                    parent_id: this.$route.query.patient_id,
1082
+                    start_time: time,
1067
                     remark: '',
1083
                     remark: '',
1068
                   }
1084
                   }
1069
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1085
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1070
                     var resp = rs.data
1086
                     var resp = rs.data
1071
                     if (resp.state == 1) {
1087
                     if (resp.state == 1) {
1072
-                      this.doctorAdvices = resp.data.advices
1073
-                      Toast.success('提交成功')
1074
-                      this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
1075
-                      this.finish()
1088
+                      this.$emit('prescription', response.data.data.prescription, resp.data.advices)
1076
                     } else {
1089
                     } else {
1077
 
1090
 
1078
                     }
1091
                     }
1079
                   })
1092
                   })
1080
 
1093
 
1094
+                  this.finish()
1095
+                }
1096
+              })
1097
+            } else {
1098
+              Toast.loading({forbidClick: true, duration: 0})
1099
+              let ParamsQuery = this.dialysisPrescription
1100
+              ParamsQuery['patient'] = this.$route.query.patient_id
1101
+              ParamsQuery['record_date'] = this.record_date
1102
+              commitDialysisPrescription(ParamsQuery).then(response => {
1103
+                if (response.data.state == 0) {
1104
+                  Toast.fail(response.data.msg)
1105
+                  return false
1106
+                } else {
1107
+                  this.advice_visibility = false
1081
 
1108
 
1109
+                  Toast.success('提交成功')
1110
+                  this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
1111
+                  this.finish()
1082
                 }
1112
                 }
1083
               })
1113
               })
1084
             }
1114
             }
1100
                 } else {
1130
                 } else {
1101
                   Toast.success('提交成功')
1131
                   Toast.success('提交成功')
1102
 
1132
 
1103
-                  this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
1133
+                  this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
1104
                   this.finish()
1134
                   this.finish()
1105
 
1135
 
1106
                 }
1136
                 }
1132
                   } else {
1162
                   } else {
1133
                     Toast.success('提交成功')
1163
                     Toast.success('提交成功')
1134
 
1164
 
1135
-                    this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
1165
+                    this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
1136
                     this.finish()
1166
                     this.finish()
1137
 
1167
 
1138
                   }
1168
                   }
1143
             } else if (this.is_open == 2) {
1173
             } else if (this.is_open == 2) {
1144
               if (this.waitUploadAdvices.length > 0) {
1174
               if (this.waitUploadAdvices.length > 0) {
1145
 
1175
 
1146
-
1147
                 Toast.loading({forbidClick: true, duration: 0})
1176
                 Toast.loading({forbidClick: true, duration: 0})
1148
                 let ParamsQuery = this.dialysisPrescription
1177
                 let ParamsQuery = this.dialysisPrescription
1149
                 ParamsQuery['patient'] = this.$route.query.patient_id
1178
                 ParamsQuery['patient'] = this.$route.query.patient_id
1153
                     Toast.fail(response.data.msg)
1182
                     Toast.fail(response.data.msg)
1154
                     return false
1183
                     return false
1155
                   } else {
1184
                   } else {
1156
-                    Toast.success('提交成功')
1157
-                    this.$emit('prescription', response.data.data.prescription)
1158
-                    this.finish()
1159
 
1185
 
1160
-                  }
1161
-                })
1162
-              }
1163
-              else {
1164
-                Toast.loading({forbidClick: true, duration: 0})
1165
-                let ParamsQuery = this.dialysisPrescription
1166
-                ParamsQuery['patient'] = this.$route.query.patient_id
1167
-                ParamsQuery['record_date'] = this.record_date
1168
-                commitDialysisPrescription(ParamsQuery).then(response => {
1169
-                  if (response.data.state == 0) {
1170
-                    Toast.fail(response.data.msg)
1171
-                    return false
1172
-                  } else {
1173
-                    this.advice_visibility = false
1186
+
1187
+                    var d=new Date();
1188
+                    var year=d.getFullYear();
1189
+                    var month=change(d.getMonth()+1);
1190
+                    var day=change(d.getDate());
1191
+                    var hour=change(d.getHours());
1192
+                    var minute=change(d.getMinutes());
1193
+                    var time=year+'-'+month+'-'+day+' '+hour+':'+minute
1194
+
1195
+
1174
                     let params = {
1196
                     let params = {
1175
                       advices: this.waitUploadAdvices,
1197
                       advices: this.waitUploadAdvices,
1176
                       advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1198
                       advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1177
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1199
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1178
                       advice_type: this.waitUploadAdvices[0].advice_type,
1200
                       advice_type: this.waitUploadAdvices[0].advice_type,
1179
-                      parent_id: this.patient_id,
1180
-                      start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1201
+                      parent_id: this.$route.query.patient_id,
1202
+                      start_time: time,
1181
                       remark: '',
1203
                       remark: '',
1182
                     }
1204
                     }
1205
+
1183
                     CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1206
                     CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1184
                       var resp = rs.data
1207
                       var resp = rs.data
1185
                       if (resp.state == 1) {
1208
                       if (resp.state == 1) {
1186
                         this.doctorAdvices = resp.data.advices
1209
                         this.doctorAdvices = resp.data.advices
1187
-                        Toast.success('提交成功')
1188
-                        this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
1189
-                        this.finish()
1210
+                        this.$emit('prescription', response.data.data.prescription, resp.data.advices)
1190
 
1211
 
1191
                       } else {
1212
                       } else {
1192
 
1213
 
1193
                       }
1214
                       }
1194
                     })
1215
                     })
1195
 
1216
 
1217
+                    Toast.success('提交成功')
1218
+                    this.finish()
1219
+
1220
+                  }
1221
+                })
1222
+              } else {
1223
+                Toast.loading({forbidClick: true, duration: 0})
1224
+                let ParamsQuery = this.dialysisPrescription
1225
+                ParamsQuery['patient'] = this.$route.query.patient_id
1226
+                ParamsQuery['record_date'] = this.record_date
1227
+                commitDialysisPrescription(ParamsQuery).then(response => {
1228
+                  if (response.data.state == 0) {
1229
+                    Toast.fail(response.data.msg)
1230
+                    return false
1231
+                  } else {
1232
+
1233
+                    Toast.success('提交成功')
1234
+                    this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
1235
+                    this.finish()
1236
+
1196
                   }
1237
                   }
1197
                 })
1238
                 })
1198
 
1239
 
1199
               }
1240
               }
1200
             }
1241
             }
1201
-          }else{
1242
+          } else {
1202
 
1243
 
1203
             Toast.loading({forbidClick: true, duration: 0})
1244
             Toast.loading({forbidClick: true, duration: 0})
1204
             let ParamsQuery = this.dialysisPrescription
1245
             let ParamsQuery = this.dialysisPrescription
1210
                 return false
1251
                 return false
1211
               } else {
1252
               } else {
1212
                 Toast.success('提交成功')
1253
                 Toast.success('提交成功')
1213
-                this.$emit('prescription', response.data.data.prescription,this.doctorAdvices)
1254
+                this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
1214
                 this.finish()
1255
                 this.finish()
1215
 
1256
 
1216
               }
1257
               }
1218
 
1259
 
1219
           }
1260
           }
1220
 
1261
 
1221
-
1222
         }
1262
         }
1223
       }, commitSolutionInfo: function () {
1263
       }, commitSolutionInfo: function () {
1224
         this.is_pre = 2
1264
         this.is_pre = 2
1294
                 } else {
1334
                 } else {
1295
                   Toast.success('提交成功')
1335
                   Toast.success('提交成功')
1296
 
1336
 
1297
-                  this.$emit('advice')
1298
-                  this.$emit('longSolution', response.data.data.solution)
1299
-                  this.$emit('prescription', response.data.data.prescription)
1300
-                  this.finish()
1337
+                  var d=new Date();
1338
+                  var year=d.getFullYear();
1339
+                  var month=change(d.getMonth()+1);
1340
+                  var day=change(d.getDate());
1341
+                  var hour=change(d.getHours());
1342
+                  var minute=change(d.getMinutes());
1343
+                  var time=year+'-'+month+'-'+day+' '+hour+':'+minute
1344
+
1301
 
1345
 
1302
-                }
1303
-              })
1304
-            } else {
1305
-              Toast.loading({forbidClick: true, duration: 0})
1306
-              let ParamsQuery = this.dialysisPrescription
1307
-              ParamsQuery['patient'] = this.$route.query.patient_id
1308
-              ParamsQuery['record_date'] = this.record_date
1309
-              postSolution(ParamsQuery).then(response => {
1310
-                if (response.data.state == 0) {
1311
-                  Toast.fail(response.data.msg)
1312
-                  return false
1313
-                } else {
1314
-                  this.advice_visibility = false
1315
                   let params = {
1346
                   let params = {
1316
                     advices: this.waitUploadAdvices,
1347
                     advices: this.waitUploadAdvices,
1317
                     advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1348
                     advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1318
                     advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1349
                     advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1319
                     advice_type: this.waitUploadAdvices[0].advice_type,
1350
                     advice_type: this.waitUploadAdvices[0].advice_type,
1320
-                    parent_id: this.patient_id,
1321
-                    start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1351
+                    parent_id: this.$route.query.patient_id,
1352
+                    start_time: time,
1322
                     remark: '',
1353
                     remark: '',
1323
                   }
1354
                   }
1324
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1355
                   CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1325
                     var resp = rs.data
1356
                     var resp = rs.data
1326
                     if (resp.state == 1) {
1357
                     if (resp.state == 1) {
1327
                       this.doctorAdvices = resp.data.advices
1358
                       this.doctorAdvices = resp.data.advices
1328
-
1359
+                      this.$emit('longSolution', response.data.data.solution, resp.data.advices)
1360
+                      this.$emit('prescription', response.data.data.prescription, resp.data.advices)
1329
 
1361
 
1330
                     } else {
1362
                     } else {
1331
 
1363
 
1332
                     }
1364
                     }
1333
                   })
1365
                   })
1366
+
1367
+                  this.finish()
1368
+
1369
+                }
1370
+              })
1371
+            } else {
1372
+              Toast.loading({forbidClick: true, duration: 0})
1373
+              let ParamsQuery = this.dialysisPrescription
1374
+              ParamsQuery['patient'] = this.$route.query.patient_id
1375
+              ParamsQuery['record_date'] = this.record_date
1376
+              postSolution(ParamsQuery).then(response => {
1377
+                if (response.data.state == 0) {
1378
+                  Toast.fail(response.data.msg)
1379
+                  return false
1380
+                } else {
1381
+
1334
                   Toast.success('提交成功')
1382
                   Toast.success('提交成功')
1335
 
1383
 
1336
-                  this.$emit('advice')
1337
                   this.$emit('longSolution', response.data.data.solution)
1384
                   this.$emit('longSolution', response.data.data.solution)
1338
                   this.$emit('prescription', response.data.data.prescription)
1385
                   this.$emit('prescription', response.data.data.prescription)
1339
                   this.finish()
1386
                   this.finish()
1358
                 } else {
1405
                 } else {
1359
                   Toast.success('提交成功')
1406
                   Toast.success('提交成功')
1360
 
1407
 
1361
-                  this.$emit('advice')
1362
                   this.$emit('longSolution', response.data.data.solution)
1408
                   this.$emit('longSolution', response.data.data.solution)
1363
                   this.$emit('prescription', response.data.data.prescription)
1409
                   this.$emit('prescription', response.data.data.prescription)
1364
                   this.finish()
1410
                   this.finish()
1393
                   } else {
1439
                   } else {
1394
                     Toast.success('提交成功')
1440
                     Toast.success('提交成功')
1395
 
1441
 
1396
-                    this.$emit('advice')
1397
                     this.$emit('longSolution', response.data.data.solution)
1442
                     this.$emit('longSolution', response.data.data.solution)
1398
                     this.$emit('prescription', response.data.data.prescription)
1443
                     this.$emit('prescription', response.data.data.prescription)
1399
                     this.finish()
1444
                     this.finish()
1416
                     return false
1461
                     return false
1417
                   } else {
1462
                   } else {
1418
                     this.advice_visibility = false
1463
                     this.advice_visibility = false
1464
+
1465
+
1466
+                    var d=new Date();
1467
+                    var year=d.getFullYear();
1468
+                    var month=change(d.getMonth()+1);
1469
+                    var day=change(d.getDate());
1470
+                    var hour=change(d.getHours());
1471
+                    var minute=change(d.getMinutes());
1472
+                    var time = year+'-'+month+'-'+day+' '+hour+':'+minute
1473
+
1474
+
1419
                     let params = {
1475
                     let params = {
1420
                       advices: this.waitUploadAdvices,
1476
                       advices: this.waitUploadAdvices,
1421
                       advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1477
                       advice_date: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1422
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1478
                       advice_doctor: this.waitUploadAdvices[0].advice_doctor,
1423
                       advice_type: this.waitUploadAdvices[0].advice_type,
1479
                       advice_type: this.waitUploadAdvices[0].advice_type,
1424
-                      parent_id: this.patient_id,
1425
-                      start_time: parseTime(this.$route.query.date, '{y}-{m}-{d}'),
1480
+                      parent_id: this.$route.query.patient_id,
1481
+                      start_time: time,
1426
                       remark: '',
1482
                       remark: '',
1427
                     }
1483
                     }
1428
                     CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1484
                     CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1429
                       var resp = rs.data
1485
                       var resp = rs.data
1430
                       if (resp.state == 1) {
1486
                       if (resp.state == 1) {
1431
                         this.doctorAdvices = resp.data.advices
1487
                         this.doctorAdvices = resp.data.advices
1432
-                        Toast.success('提交成功')
1433
-                        this.$emit('advice')
1434
-                        this.$emit('longSolution', response.data.data.solution)
1435
-                        this.$emit('prescription', response.data.data.prescription)
1436
-                        this.finish()
1488
+                        this.$emit('longSolution', response.data.data.solution,resp.data.advices)
1489
+                        this.$emit('prescription', response.data.data.prescription,resp.data.advices)
1437
                       } else {
1490
                       } else {
1438
 
1491
 
1439
                       }
1492
                       }
1440
                     })
1493
                     })
1441
-
1494
+                    Toast.success('提交成功')
1495
+                    this.finish()
1442
 
1496
 
1443
                   }
1497
                   }
1444
                 })
1498
                 })
1461
                 })
1515
                 })
1462
               }
1516
               }
1463
             }
1517
             }
1464
-          }else{
1518
+          } else {
1465
 
1519
 
1466
             Toast.loading({forbidClick: true, duration: 0})
1520
             Toast.loading({forbidClick: true, duration: 0})
1467
             let ParamsQuery = this.dialysisPrescription
1521
             let ParamsQuery = this.dialysisPrescription

+ 115 - 0
src/pages/main/dialog/subMenu/dryWeightMenu.vue Zobrazit soubor

1
+<template>
2
+  <div>
3
+
4
+    <div class="Dialog" v-if="visibility">
5
+      <div class="DialogTit">
6
+        <span class="iconfont" @click="closeDialog()">&#xe720; 返回</span>
7
+        <h1 class="name">干体重调整</h1>
8
+        <span class="success" @click="commitDryWeight()"></span>
9
+      </div>
10
+
11
+      <div class="optionsBox">
12
+        <div class="item">
13
+          <label class="name" for="xll">干体重</label>
14
+          <div class="content">
15
+            <input type="tel" id="xll" v-model="dry_weight"/>
16
+          </div>
17
+        </div>
18
+
19
+        <div class="item" @click="select_nurse">
20
+          <h2 class="name">医生</h2>
21
+          <div class="content">
22
+            <span class="text" style="width: 100px">{{ admin_map[nurse_id].name }}</span>
23
+            <span class="iconfont">&#xe6f9;</span>
24
+          </div>
25
+        </div>
26
+
27
+        <div class="item">
28
+          <h2 class="name">备注</h2>
29
+          <div class="content">
30
+            <input type="tel" id="xll" v-model="remark"/>
31
+          </div>
32
+        </div>
33
+      </div>
34
+    </div>
35
+
36
+    <two-menu ref="selector"></two-menu>
37
+
38
+  </div>
39
+
40
+
41
+</template>
42
+
43
+<script>
44
+  import TwoMenu from '../TwoMenu'
45
+
46
+  export default {
47
+    name: 'dryWeightMenu',
48
+    components: {TwoMenu},
49
+    props: {
50
+      title: '',
51
+      dry_weight: 0,
52
+      remark: '',
53
+      index: 0,
54
+      visibility: false,
55
+    },
56
+    methods: {
57
+      closeDialog () {
58
+        this.$emit('menu-cancle-two')
59
+      }, commitDryWeight () {
60
+
61
+        this.$emit('menu-cancle-two')
62
+      },
63
+    },
64
+    data () {
65
+      return {}
66
+    }
67
+  }
68
+</script>
69
+
70
+<style style="stylesheet/scss" lang="scss" scoped>
71
+  .optionsBox {
72
+  background: #fff;
73
+  max-height: 10.6rem;
74
+  min-height: 5rem;
75
+  overflow-y: scroll;
76
+  @media only screen and (max-width: 812px) {
77
+  min-height: 8rem !important;
78
+  }
79
+  ul {
80
+  li {
81
+  height: 1rem;
82
+  line-height: 1rem;
83
+  border-bottom: 1px #e5e5e5 solid;
84
+  padding: 0 0.38rem;
85
+  }
86
+  .tick {
87
+  position: relative;
88
+  &::before {
89
+  content: "";
90
+  display: inline-block;
91
+  border: 2px solid $main-color;
92
+  border-top-width: 0;
93
+  border-right-width: 0;
94
+  width: 0.3rem;
95
+  height: 0.15rem;
96
+  -webkit-transform: rotate(-50deg);
97
+  position: absolute;
98
+  top: 0.38rem;
99
+  right: 0.44rem;
100
+  }
101
+  }
102
+  }
103
+  }
104
+  .CheckBox {
105
+  background: #fff;
106
+  max-height: 10.6rem;
107
+  min-height: 5rem;
108
+  overflow-y: scroll;
109
+  ul {
110
+  li {
111
+  line-height: 1rem;
112
+  }
113
+  }
114
+  }
115
+</style>

+ 5 - 4
src/pages/main/today/TodayTab.vue Zobrazit soubor

126
     </van-popup>
126
     </van-popup>
127
 
127
 
128
     <van-popup title="透前评估" v-model="menuList[3].showPopup" :overlay="true" :close-on-click-overlay="false">
128
     <van-popup title="透前评估" v-model="menuList[3].showPopup" :overlay="true" :close-on-click-overlay="false">
129
-      <assessment-dialog :predialysis="predialysis_evaluation" :last_predialysis="last_predialysis_evaluation"
129
+      <assessment-dialog :predialysis="predialysis_evaluation" :last_predialysis="last_predialysis_evaluation" :dry_weight="dryWeight"
130
                          :patient_prop="patient" @evaluation="update_evaluation" @close="closeAssessmentBefore"
130
                          :patient_prop="patient" @evaluation="update_evaluation" @close="closeAssessmentBefore"
131
                          ref="assessment_dialog"></assessment-dialog>
131
                          ref="assessment_dialog"></assessment-dialog>
132
     </van-popup>
132
     </van-popup>
309
         goTopShow: false,
309
         goTopShow: false,
310
         goodTypes: [],
310
         goodTypes: [],
311
         goodInfos: [],
311
         goodInfos: [],
312
+        dryWeight:{},
312
 
313
 
313
         longAdvices: [],
314
         longAdvices: [],
314
         waitUploadAdvices: [],
315
         waitUploadAdvices: [],
584
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
585
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
585
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
586
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
586
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
587
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
588
+            this.dryWeight = resp.data.dry_weight
589
+
587
 
590
 
588
             for (let i = 0; i < doctor_advices.length; i++) {
591
             for (let i = 0; i < doctor_advices.length; i++) {
589
               doctor_advices[i]['is_selected'] = 0
592
               doctor_advices[i]['is_selected'] = 0
761
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
764
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
762
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
765
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
763
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
766
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
764
-
767
+            this.dryWeight = resp.data.dry_weight
765
 
768
 
766
             if(prescription == null || prescription.creater == 0){
769
             if(prescription == null || prescription.creater == 0){
767
               this.isPullData = 1
770
               this.isPullData = 1
980
                 this.is_open = resp.data.is_open_remind
983
                 this.is_open = resp.data.is_open_remind
981
                 this.longAdvices = totalAdvice
984
                 this.longAdvices = totalAdvice
982
                 this.waitUploadAdvices = waitUploadAdvices
985
                 this.waitUploadAdvices = waitUploadAdvices
983
-                console.log(this.longAdvices)
984
-                console.log(this.waitUploadAdvices)
985
 
986
 
986
                 break
987
                 break
987
 
988