hwy 3 mesi fa
parent
commit
6f9c95d27e

+ 106 - 1
app/jbsc/html/questionnaire.html

@ -217,11 +217,112 @@
        },
        mounted: function () {
          console.log('screeningTitle', this.screeningTitle)
          this.getHealth()
          if (this.screeningType != '6bcd306aaafb4e4381071346d86fadbb1') {
            this.getHealth()
          }
          this.getQuestion()
          this.getDoctorInfo()
        },
        methods: {
          getInitData() {
            var vm = this
            console.log('sssssssssssxxxxxxxxx', vm.questions)
            httpRequest.get('doctor/screen/physicalList', { data: { patient: vm.screeningResidents } }).then(function (res) {
              var data = res.data
              if (res.status == 200 && data) {
                for (var i in vm.questions) {
                  if (vm.questions[i].question.thirdKey == 'height' && data.height) {
                    vm.questions[i].question.content = data.height + ''
                  }
                  if (vm.questions[i].question.thirdKey == 'weight' && data.weight) {
                    vm.questions[i].question.content = data.weight + ''
                  }
                  if (vm.questions[i].question.thirdKey == 'bmi' && data.BodyMassIndex) {
                    vm.questions[i].question.content = data.BodyMassIndex + ''
                  }
                  if (vm.questions[i].question.thirdKey == 'systolicPressure' && data.systolicPressure) {
                    vm.questions[i].question.content = data.systolicPressure + ''
                  }
                  if (vm.questions[i].question.thirdKey == 'diastolicPressure' && data.diastolicPressure) {
                    vm.questions[i].question.content = data.diastolicPressure + ''
                  }
                  if (vm.questions[i].question.thirdKey == 'totalCholesterol' && data.totalCholesterol) {
                    vm.questions[i].question.content = data.totalCholesterol + ''
                  }
                  if (vm.questions[i].question.thirdKey == 'hdlc' && data.HDL) {
                    vm.questions[i].question.content = data.HDL + ''
                  }
                  if (vm.questions[i].question.thirdKey == 'ldlc' && data.LDL) {
                    vm.questions[i].question.content = data.LDL + ''
                  }
                  if (vm.questions[i].question.thirdKey == 'ckd34' && data.height) {
                    vm.questions[i].question.content = data.height + ''
                  }
                  if (vm.questions[i].question.title == '既往有心肌梗死病史' && data.AMI) {
                    var index = data.AMI == 1 ? 0 : data.AMI == 2 ? 1 : ''
                    vm.selectItem(vm.questions[i].question, vm.questions[i].option[Number(index)])
                  }
                  if (vm.questions[i].question.title == '缺血性脑卒中病史' && data.CerebralIschemicStroke) {
                    var index = data.CerebralIschemicStroke == 1 ? 0 : data.CerebralIschemicStroke == 2 ? 1 : ''
                    vm.selectItem(vm.questions[i].question, vm.questions[i].option[Number(index)])
                  }
                  if (vm.questions[i].question.title == '高血压' && data.hypertension) {
                    var index = data.hypertension == 1 ? 0 : data.hypertension == 2 ? 1 : ''
                    vm.selectItem(vm.questions[i].question, vm.questions[i].option[index])
                  }
                  if (vm.questions[i].question.title == '糖尿病' && data.Diabetes) {
                    var index = data.Diabetes == 1 ? 0 : data.Diabetes == 2 ? 1 : ''
                    vm.selectItem(vm.questions[i].question, vm.questions[i].option[Number(index)])
                  }
                  if (vm.questions[i].question.title == '吸烟' && data.smoke) {
                    var index = data.smoke == 1 ? 0 : data.smoke == 2 ? 1 : ''
                    vm.selectItem(vm.questions[i].question, vm.questions[i].option[Number(index)])
                  }
                }
              }
              httpRequest.get('doctor/screen/checkUpList', { data: { patient: vm.screeningResidents } }).then(function (res) {
                console.log(res)
                var obj = res.data
                if (res.status == 200 && obj) {
                  for (var i in vm.questions) {
                    if (vm.questions[i].question.thirdKey == 'hdlc' && !vm.questions[i].question.content) {
                      vm.questions[i].question.content = obj.hdlc
                    }
                    if (vm.questions[i].question.thirdKey == 'ldlc' && !vm.questions[i].question.content) {
                      vm.questions[i].question.content = obj.ldlc
                    }
                    if (vm.questions[i].question.thirdKey == 'totalCholesterol' && !vm.questions[i].question.content) {
                      vm.questions[i].question.content = obj.totalCholesterol
                      console.log('ssssssssssyyyyyyyyyyyyy', obj.totalCholesterol)
                    }
                    if (vm.questions[i].question.thirdKey == 'diastolicPressure' && !vm.questions[i].question.content) {
                      vm.questions[i].question.content = obj.diastolicPressure
                    }
                    if (vm.questions[i].question.thirdKey == 'systolicPressure' && !vm.questions[i].question.content) {
                      vm.questions[i].question.content = obj.systolicPressure
                    }
                  }
                }
                // var data = res.data
                // if (!vm.form.totalCholesterol) {
                //   vm.form.totalCholesterol = data.totalCholesterol
                // }
                // if (!vm.form.hdlc) {
                //   vm.form.hdlc = data.hdlc
                // }
                // if (!vm.form.ldlc) {
                //   vm.form.ldlc = data.ldlc
                // }
                // if (!vm.form.systolicPressure) {
                //   vm.form.systolicPressure = data.systolicPressure
                // }
                // if (!vm.diastolicPressure) {
                //   vm.form.diastolicPressure = data.diastolicPressure
                // }
              })
            })
          },
          getDoctorInfo: function () {
            var vm = this
            var data = {
@ -237,6 +338,7 @@
          },
          //计算选中个数,组装成后台接收格式
          selectItem: function (qst, select, num) {
            console.log('ssssssssssss99999999999999999999', qst, select)
            var vm = this
            var isFlag = 1
            if (qst.title == '抗栓药物其他名称' && vm.screeningTitle == '大肠癌筛查问卷(OB筛查)') {
@ -574,6 +676,9 @@
                    }
                  }
                }
                if (vm.screeningType == '6bcd306aaafb4e4381071346d86fadbb1') {
                  vm.getInitData()
                }
              }
            })
          },

+ 11 - 43
app/rehabilitation/html/followRecord.html

@ -324,6 +324,7 @@
          this.form.doctorCode = this.docInfo.code
          this.getFollowup(vm.serviceInfo.relationCode)
          this.load()
          this.getInitData()
          console.log('docInfo', this.docInfo)
        },
        methods: {
@ -359,60 +360,27 @@
            httpRequest.get('doctor/screen/physicalList', { data: { patient: vm.serviceInfo.patient } }).then(function (res) {
              var data = res.data
              if (res.status == 200 && data) {
                if (data.height) {
                  vm.form.height = data.height + ''
                }
                if (data.weight) {
                  vm.form.weight = data.weight + ''
                }
                if (data.bmi) {
                  vm.form.bmi = data.bmi + ''
                }
                if (data.systolicPressure) {
                  vm.form.systolicPressure = data.systolicPressure + ''
                  vm.form.bloodPressure = data.systolicPressure + ''
                }
                if (data.diastolicPressure) {
                  vm.form.diastolicPressure = data.diastolicPressure + ''
                }
                if (data.totalCholesterol) {
                  vm.form.totalCholesterol = data.totalCholesterol + ''
                }
                if (data.HDL) {
                  vm.form.hdlc = data.HDL + ''
                }
                if (data.AMI) {
                  vm.form.myocardialInfarct = data.AMI == '1' ? '1' : '0'
                }
                if (data.CerebralIschemicStroke) {
                  vm.form.ischemicStroke = data.CerebralIschemicStroke == '1' ? '1' : '0'
                }
                if (data.hypertension) {
                  vm.form.hypertension = data.hypertension == '1' ? '1' : '0'
                }
                if (data.Diabetes) {
                  vm.form.diabetes = data.Diabetes == '1' ? '1' : '0'
                }
                if (data.smoke || data.smoke == '0') {
                  vm.form.smoke = data.smoke + ''
                  vm.form.bloodPressureDown = data.diastolicPressure + ''
                }
              }
              httpRequest.get('doctor/screen/checkUpList', { data: { patient: vm.serviceInfo.patient } }).then(function (res) {
                console.log(res)
                console.log(res, 'lllllllllllllllllll')
                var data = res.data
                if (!vm.form.totalCholesterol) {
                  vm.form.totalCholesterol = data.totalCholesterol
                }
                if (!vm.form.hdlc) {
                  vm.form.hdlc = data.hdlc
                }
                if (!vm.form.ldlc) {
                  vm.form.ldlc = data.ldlc
                }
                if (!vm.form.systolicPressure) {
                  vm.form.systolicPressure = data.systolicPressure
                if (!vm.form.bloodPressure) {
                  vm.form.bloodPressure = data.systolicPressure
                }
                if (!vm.form.bloodPressureDown) {
                  vm.form.bloodPressureDown = data.diastolicPressure
                }
                if (!vm.diastolicPressure) {
                  vm.form.diastolicPressure = data.diastolicPressure
                if (!vm.form.thxhdb) {
                  vm.form.thxhdb = data.HbA1c
                }
              })
            })

+ 14 - 4
app/rehabilitation/html/guide_the_message.html

@ -171,15 +171,25 @@
            </button>
            <button
              class="btn btn-12b7f5"
              v-if="service.type==6 && service.status!=1 && service.operate==1 && service.isMyTask==1"
              v-if="service.type==6 && service.status!=1 && service.operate==1 && service.isMyTask==1&&(service.visitCount==2||service.visitCount==4)"
              @click="openFollowRecordForm"
              style="width: auto">
              记录随访表单1
              记录随访表单
            </button>
            <button class="btn btn-12b7f5" v-if="service.type==6 && service.status!=1 && service.operate==1 && service.isMyTask==1" @click="sendDx" style="width: auto">
            <button
              class="btn btn-12b7f5"
              v-if="service.type==6 && service.status!=1 && service.operate==1 && service.isMyTask==1&&(service.visitCount==1||service.visitCount==3)"
              @click="sendDx"
              style="width: auto">
              发送消息提醒
            </button>
            <button class="btn btn-12b7f5" v-if="service.type==6 && service.status==1" @click="openFollowRecordForm" style="width: auto">查看随访结果</button>
            <button
              class="btn btn-12b7f5"
              v-if="service.type==6 && service.status==1&&(service.visitCount!=1&&service.visitCount!=3)"
              @click="openFollowRecordForm"
              style="width: auto">
              查看随访结果
            </button>
            <button
              class="btn btn-yuyue"
              v-if="service.type==7 && service.status!=1 && selectCheckTyperadio!=1 && !service.appointmentTime && service.isMyTask==1"

+ 8 - 3
app/rehabilitation/js/guide_the_message.js

@ -77,24 +77,29 @@ top.rehabilitationGuideVue = new Vue({
  },
  mounted: function () {
    this.getServiceItem()
    console.log('httpData', httpData)
  },
  methods: {
    sendDx() {
      console.log(this.service, 'ooooooooooooo')
      var vm = this
      rehaAPI.getSurveyMessage({ surveyResultCode: this.service.planId, type: 2 }).then(function (res) {
      rehaAPI.getSurveyMessage({ surveyResultCode: this.service.relationCode, type: 2 }).then(function (res) {
        vm.messageVisible = true
        vm.messTxt = res.data
      })
    },
    messageWarn() {
      var loading = layer.load(0, { shade: false })
      rehaAPI.sendFollowMessage({}).then(function (res) {
      var vm = this
      rehaAPI.sendFollowMessage({ followupId: this.service.relationCode, doctorCode: docInfo.code }).then(function (res) {
        if (res.status == 200) {
          vm.updateNoteAndImageRehabilitationOperate(vm.planid, vm.service.relationCode)
          setTimeout(function () {
            vm.getServiceItem()
            this.messageVisible = false
          }, 400)
        } else {
          layer.close(loading)
        }
      })
      layer.close(loading)
@ -563,7 +568,7 @@ top.rehabilitationGuideVue = new Vue({
      })
      var params = {
        planDetailId: planDetailId,
        node: vm.service && vm.service.node ? vm.service.node : null,
        node: vm.service && vm.service.node ? vm.service.node : '完成',
        image: JSON.stringify(_image) || ''
      }
      if (relationCode) {