Browse Source

慢阻肺bug

hd 3 months ago
parent
commit
e8dcc85ea6

+ 30 - 5
component/statistics/CopdPatientRecord/index.js

@ -160,10 +160,17 @@ Vue.component('copd-patient-record', {
      vm.getDictByDictName(item)
    })
    setTimeout(function(){
      vm.getJkCopdPatientPage()
      // vm.getJkCopdPatientPage()
    },200)
  
  },
  watch:{
    rangeCode(nv){
      if(nv == 'hospital'){
        this.initScope(5)
      }
    }
  },
  destroyed() {
    EventBus.$off('copd-reset-select')
    EventBus.$off('copd-reset-save')
@ -313,7 +320,7 @@ Vue.component('copd-patient-record', {
      homeAPI.getDistrict(params).then(function (res) {
        if (res.status == 200) {
          vm[param + 'List'] = list.concat(res.list)
          vm[param + 'Code'] = vm[param + 'List'][0].code
          // vm[param + 'Code'] = vm[param + 'List'][0].code
          // console.log(vm.areaList)
        } else {
          vm.$message.error(res.msg)
@ -327,6 +334,14 @@ Vue.component('copd-patient-record', {
      })
    },
    exportTable() {
      if(this.rangeCode == 'town' && this.areaCode == null){
        this.$message.warning("请选择地区")
        return
      }
      if(this.rangeCode == 'hospital' && this.communityCode == null){
        this.$message.warning("请选择社区")
        return
      }
      var vm = this
      vm.daLoading = true
      var params = {
@ -341,7 +356,7 @@ Vue.component('copd-patient-record', {
        isLive: this.isLive,
        firstOrg: this.firstOrg,
        queryArea: this.areaCode,
        queryHospital: this.communityCode,
        queryHospital: this.communityCode == null?'':this.communityCode,
      }
      statisticAPI.exportJkCopdAchives(params, '居民档案.xls').then(function (res) {
        vm.daLoading = false
@ -529,11 +544,13 @@ Vue.component('copd-patient-record', {
        doctorName: this.doctorName,
        isLive: this.isLive,
        queryArea: this.areaCode,
        queryHospital: this.communityCode,
        firstOrg: this.firstOrg,
        startTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-01-01',
        endTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-12-31'
      }
      if(this.rangeCode == 'hospital'){
        params.queryHospital = this.communityCode
      }
      statisticAPI.jkCopdAchivesPage(params).then(function (res) {
        vm.totalCount = res.totalCount
        vm.totalPage = res.totalPage
@ -665,6 +682,14 @@ Vue.component('copd-patient-record', {
      })
    },
    standardExport() {
      if(this.rangeCode == 'town' && this.areaCode == null){
        this.$message.warning("请选择地区")
        return
      }
      if(this.rangeCode == 'hospital' && this.communityCode == null){
        this.$message.warning("请选择社区")
        return
      }
      var vm = this
      vm.exportStandardLoading = true
      var params = {
@ -677,7 +702,7 @@ Vue.component('copd-patient-record', {
        isLive: this.isLive,
        queryArea: this.areaCode,
        firstOrg: this.firstOrg,
        queryHospital: this.communityCode,
        queryHospital: this.communityCode == null?'':this.communityCode,
        startTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-01-01',
        endTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-12-31'
      }

+ 5 - 0
component/statistics/CopdPatientRecordEdit/index.js

@ -400,18 +400,23 @@ Vue.component('copd-patient-record-edit', {
            vm.formData.registStreetName = ''
          }
          if(vm.diagnosisAddressVal.length){
            var address = ""
            vm.diagnosisAddressVal.forEach(function (item, index) {
              if (index == 0) {
                vm.formData.jkcopdPatientExpend.firstVisitProvince = item
                vm.formData.jkcopdPatientExpend.firstVisitProvinceName = vm.$refs.diagnosis.currentLabels[index]
                address += vm.$refs.diagnosis.currentLabels[index]
              } else if (index == 1) {
                vm.formData.jkcopdPatientExpend.firstVisitCity = item
                vm.formData.jkcopdPatientExpend.firstVisitCityName = vm.$refs.diagnosis.currentLabels[index]
                address += vm.$refs.diagnosis.currentLabels[index]
              } else if (index == 2) {
                vm.formData.jkcopdPatientExpend.firstVisitTown = item
                vm.formData.jkcopdPatientExpend.firstVisitTownName = vm.$refs.diagnosis.currentLabels[index]
                address += vm.$refs.diagnosis.currentLabels[index]
              }
            })
            vm.formData.firstVisitArea = address
          }
          
          statisticAPI.updJkCopdPatient({ jsonData: JSON.stringify(vm.formData), doctor: vm.docInfo.code }).then(function (res) {

+ 3 - 1
component/statistics/CopdRecordSearch/index.js

@ -256,7 +256,6 @@ Vue.component('copd-record-search', {
        quotaStr: this.quotaStrArr.join(','),
        range: this.rangeCode,
        area: this.areaCode == '350200' ? '' : this.areaCode,
        hospital: this.communityCode,
        page: 1,
        size: 50,
        sex: this.sex,
@ -270,6 +269,9 @@ Vue.component('copd-record-search', {
        diseaseConversion: this.diseaseConversion,
        age: this.age
      }
      if(this.rangeCode == "hospital"){
        params.hospital = this.communityCode
      }
      statisticAPI
        .manageInfo(params)
        .then(function (res) {

+ 8 - 7
component/statistics/CopdServiceRecord/index.html

@ -48,7 +48,7 @@
                <div class="data-title">
                  {{getTypeName(event.type)}}
                </div>
                <div class="data-cont" v-if="event.type!=5&&event.type!=6&&event.type!=7">
                <div class="data-cont" v-if="event.type!=5&&event.type!=6&&event.type!=7&&event.type!=8">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">下转状态:</span>
                    <span style="color: #656565">
@ -107,7 +107,7 @@
                      </template>
                    </span>
                  </div>
                  <div style="width: 50%"  v-if="event.type!=8">
                  <div style="width: 50%" >
                    <span style="color: #9fa2a8">是否失访:</span>
                    <span style="color: #656565">
                      <template>{{event.isLost==0?'否':'是'}}</template>
@ -254,15 +254,15 @@
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">分配去向</span>
                    <span style="color: #9fa2a8">分配医生</span>
                    <span style="color: #656565">
                      <template>{{event.backReason}}</template>
                      <template>{{event.doctorName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">分配医生</span>
                    <span style="color: #9fa2a8">分配去向</span>
                    <span style="color: #656565">
                      <template>{{event.backReason}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
@ -370,7 +370,7 @@
            <div class="title ki-title ta-title">首次确诊情况</div>
            <div class="copd-bb-base-content">
              <div class="copd-bb-base-info-item" v-if="followInfo.firstVisitTime">慢阻肺首次诊断时间:{{followInfo.firstVisitTime}}</div>
              <div class="copd-bb-base-info-item" v-if="firstAreaName">慢阻肺首次诊断地区:{{firstAreaName}}</div>
              <div class="copd-bb-base-info-item" v-if="firstAreaName">慢阻肺首次诊断地区:{{followInfo.firstVisitArea}}</div>
              <div class="copd-bb-base-info-item" v-if="orGlevelName">
                <!-- 慢阻肺首次诊断机构级别:{{
                followInfo.firstVisitOrgLevel == 1 ? '三级医院' :
@ -382,6 +382,7 @@
              }} -->
                慢阻肺首次诊断机构级别:{{orGlevelName}}
              </div>
              <div class="copd-bb-base-info-item" v-if="diagnosticBasisName">首次诊断机构:{{followInfo.firstVisitOrg}}</div>
              <div class="copd-bb-base-info-item" v-if="diagnosticBasisName">最高诊断依据:{{diagnosticBasisName}}</div>
              <div class="copd-bb-base-info-item" v-if="symptom">症状:{{symptom}}</div>
              <div class="copd-bb-base-info-item" v-if="followInfo.drugBefore">使用支气管扩张剂前FEV1/FVC(%):{{followInfo.drugBefore}}</div>

+ 1 - 0
component/statistics/CopdServiceRecord/index.js

@ -262,6 +262,7 @@ Vue.component('copd-service-record', {
      var vm = this
      statisticAPI.followupDetail({ id: item.jkcopdFollowup.id }).then(function (res) {
        vm.followInfo = res.obj
        
        vm.dicName.forEach(function (item) {
          vm.getDictByDictName(item)
        })