Browse Source

修复bug

hwy 2 tháng trước cách đây
mục cha
commit
cd623c626e

+ 1 - 0
app/statistics/js/comprehensive-query.js

@ -1065,6 +1065,7 @@ new Vue({
    // 点击明细查询树形图
    handleNodeClick: function (item, type) {
      var vm = this;
      vm.copdFilterCheckValue=[]
      vm.handleNodeId = 0;
      vm.derive = item.label;
      // if(data.id>=33) {     //明细查询以下

+ 16 - 7
component/statistics/CopdPatientRecord/index.html

@ -14,7 +14,16 @@
      <div class="copd-table-main">
        <template v-if="showTotalTable">
          <!--过滤器-->
       
          <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
            <div class="searchDiv pb20">
              <label class="c-333 c-f14">
                  <label class="c-333 c-f14">确诊年份:</label>
                  <el-select v-model="chooseYear" class="pr20 formWidth wd160">
                    <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
                  </el-select>
              </label>
            </div>
            <!--=======================================================-->
            <div class="searchDiv pb20">
              <label class="c-333 c-f14">患者姓名:</label>
@ -58,10 +67,10 @@
            </div>
            <!--=======================================================-->
            <div class="searchDiv pb20">
              <label class="c-333 c-f14">档案状态:</label>
              <label class="c-333 c-f14">随访状态:</label>
              <el-select class="pr20 formWidth" v-model="archivesStatus" placeholder="请选择">
                <el-option
                  v-for="(option, index) in recordStatusOptions"
                  v-for="(option, index) in followStatusArr"
                  :label="option.value"
                  :value="option.code"></el-option>
              </el-select>
@ -77,12 +86,12 @@
              </el-select>
            </div>
            <!--=======================================================-->
            <div class="searchDiv">
            <div class="searchDiv pb20">
              <label class="c-333 c-f14">首次诊断医院名称:</label>
              <el-input class="pr20 formWidth wd160" v-model="firstOrg" placeholder="请输入医院名称查询"></el-input>
            </div>
            <!--=======================================================-->
            <div class="searchDiv">
            <div class="searchDiv pb20">
              <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
              <!-- <el-upload
                class="upload-demo"
@ -181,7 +190,7 @@
            <el-table-column prop="receiveStatusName" label="接收状态" width="180"></el-table-column>
            <el-table-column prop="receivingHospital" label="接收医院" width="180"></el-table-column>
            <el-table-column prop="receivingDoctor" label="接收医生" width="180"></el-table-column>
            <el-table-column prop="archivesStatusName" label="档案状态" width="180"></el-table-column>
            <el-table-column prop="archivesStatusName" label="随访状态" width="180"></el-table-column>
            <el-table-column prop="isLiveName" label="生存状态" width="180"></el-table-column>
            <el-table-column prop="deathDate" label="死亡日期" width="180"></el-table-column>
            <el-table-column label="操作" min-width="220" fixed="right">
@ -203,10 +212,10 @@
          </div>
        </template>
        <template v-else-if="showEditView">
          <copd-patient-record-edit :editData="currentEditData"></copd-patient-record-edit>
          <copd-patient-record-edit :editData="currentEditData" ref="editName"></copd-patient-record-edit>
        </template>
        <template v-else-if="serviceRecordVisable">
          <copd-service-record :detailInfo="currentEditData"></copd-service-record>
          <copd-service-record :detailInfo="currentEditData" ></copd-service-record>
        </template>
        <template v-else-if="healthRecordVisable">
          <health-record></health-record>

+ 34 - 3
component/statistics/CopdPatientRecord/index.js

@ -30,6 +30,7 @@ Vue.component('copd-patient-record', {
      serviceRecordVisable: false,
      transferStatusOptions:[{code:'',value:'全部'}],
      recordStatusOptions:[{code:'',value:'全部'}],
      followStatusArr:[{code:'',value:'全部'}],
      receivingHospitalList:[{code:'',name:'全部'}],
      receiveStatusOptions:[{value:'',label:'全部'},{value:'1',label:' 已接收'},{value:'0',label:' 未接收'}],
      survivalStatusOption:[{code:'',value:'全部'}],
@ -42,6 +43,7 @@ Vue.component('copd-patient-record', {
      totalPage: 0,
      totalCount: 0,
      name:'',
      years:'',
      turnDownStatus:'',
      receiveStatus:'',
      archivesStatus:'',
@ -50,8 +52,13 @@ Vue.component('copd-patient-record', {
      isLive: '',
      firstOrg: '',
      currentSelect:[],
      dicName:['jkcopd_archivesStatus','jkcopd_turnDownStatus','jkcopd_isLive'],
      followupStatus:[],
      dicName:['jkcopd_archivesStatus','jkcopd_turnDownStatus','jkcopd_isLive','jkcopd_followup_status'],
      isShow: false,
      startTime:'',
      endTime:'',
      chooseYear: '',
      nowyear:'',
            fileList: [],
            file: undefined,
            isProgressShow: false,
@ -85,6 +92,7 @@ Vue.component('copd-patient-record', {
  },
  mounted() {
    var vm = this
    this.initTime(vm)
    this.hospitalList()
    EventBus.$on('copd-reset-select', function () {
      vm.currentEditData = null
@ -112,6 +120,21 @@ Vue.component('copd-patient-record', {
    EventBus.$off('copd-reset-save')
  },
  methods: {
    // 初始化时间
 initTime(vm) {
  var now = new Date();
  vm.endTime = now.format('yyyy-MM-dd');
  var start = now.getFullYear()+'-'+'01-01';
  vm.startTime = new Date(start).format('yyyy-MM-dd');
  vm.nowyear = vm.chooseYear = now.getFullYear();
  vm.chooseYear='全部'
  vm.nowmonth = now.getMonth() + 1;
  vm.years = ['全部'];
  for (i = vm.nowyear; i >= 2013; i--) {
    vm.years.push(i);
  }
},    
    handlePreview(value) {
      var vm = this
			var file = value.target.files[0]
@ -152,13 +175,15 @@ Vue.component('copd-patient-record', {
    hospitalList(){
      var vm=this
    statisticAPI.hospitalList().then(function(res){
      vm.receivingHospitalList=vm.receivingHospitalList.concat(res.detailModelList)
      vm.receivingHospitalList=vm.receivingHospitalList&& vm.receivingHospitalList.concat(res.detailModelList)
    })
    },
    exportTable(){
      var vm=this
      vm.daLoading=true
      var params = {
        startTime: this.chooseYear=='全部'?'': this.chooseYear+'-01-01',
        endTime:this.chooseYear=='全部'?'': this.chooseYear+'-12-31',
        turnDownStatus:this.turnDownStatus,
        receiveStatus:this.receiveStatus,
        archivesStatus:this.archivesStatus,
@ -270,11 +295,15 @@ Vue.component('copd-patient-record', {
        vm.recordStatusOptions=vm.recordStatusOptions.concat(res.list)
      }else if(value=='jkcopd_isLive'){
        vm.survivalStatusOption=  vm.survivalStatusOption.concat(res.list)
      }else if(value=='jkcopd_followup_status'){
        vm.followStatusArr=  vm.followStatusArr.concat(res.list)
      }
      
    })
  
    },
    onClickEdit(record) {
      window.localStorage.setItem('editDetail',JSON.stringify(record))
      if (!record) {
        return
      }
@ -309,7 +338,9 @@ Vue.component('copd-patient-record', {
        hospital:this.hospital,
        doctorName:this.doctorName,
        isLive: this.isLive,
        firstOrg: this.firstOrg
        firstOrg: this.firstOrg,
        startTime: this.chooseYear=='全部'?"": this.chooseYear+'-01-01',
        endTime:this.chooseYear=='全部'?"": this.chooseYear+'-12-31',
      }
      statisticAPI.jkCopdAchivesPage(params).then(function (res) {
        vm.totalCount = res.totalCount

+ 12 - 11
component/statistics/CopdPatientRecordEdit/index.html

@ -67,10 +67,11 @@
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="出生日期:" v-if="formData.idcardType!='idCard'" v-model="formData.birthday" class="copd-form-item">
            <el-form-item label="出生日期:" v-if="formData.idcardType!='idCard'" class="copd-form-item">
              <el-date-picker
                class="copd-edit-datepicker"
                v-model="formData.birthday"
                value-format="yyyy-MM-dd"
                placeholder="选择日期时间"
              ></el-date-picker>
            </el-form-item>
@ -197,10 +198,10 @@
              <el-input class="copd-form-input" disabled readonly :value="formData.receiveStatus==1?'已接收':'未接收'"></el-input>
            </el-form-item>
            <el-form-item label="接收医院:" class="copd-form-item">
              <el-input class="copd-form-input" disabled readonly></el-input>
              <el-input class="copd-form-input" disabled readonly :value="formData.hospitalName"></el-input>
            </el-form-item>
            <el-form-item label="接收医生:" class="copd-form-item">
              <el-input class="copd-form-input" disabled readonly :value="formData.hospital"></el-input>
              <el-input class="copd-form-input" disabled readonly :value="formData.doctorName" ></el-input>
            </el-form-item>
            <el-form-item label="随访状态:" class="copd-form-item">
              <el-select placeholder="请选择" v-model="formData.status" style="width: 100%;">
@ -243,8 +244,8 @@
                <el-option
                  v-for="item in copdArr"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                  :label="item.value"
                  :value="item.code">
                </el-option>
              </el-select>
            </el-form-item>
@ -269,8 +270,8 @@
                <el-option
                  v-for="item in copdArr"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                  :label="item.value"
                  :value="item.code">
                </el-option>
              </el-select>
            </el-form-item>
@ -279,8 +280,8 @@
                <el-option
                  v-for="item in  copdArr"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                  :label="item.value"
                  :value="item.code">
                </el-option>
              </el-select>
            </el-form-item>
@ -289,8 +290,8 @@
                <el-option
                  v-for="item in copdArr"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                  :label="item.value"
                  :value="item.code">
                </el-option>
              </el-select>
            </el-form-item>

+ 15 - 4
component/statistics/CopdPatientRecordEdit/index.js

@ -35,7 +35,7 @@ Vue.component('copd-patient-record-edit', {
      conversionArr:[],
      firstVisitTypeArr:[],
      educationalArr:[],
      copdArr:[{value:'是',code:1},{value:'否',code:0}],
      copdArr:[{value:'是',code:'1'},{value:'否',code:'0'}],
      addressOptions:[],
      props: {
        label: 'name',
@ -56,10 +56,21 @@ Vue.component('copd-patient-record-edit', {
  created() {
    vm=this
  },
  watch:{
    'formData.isLive':{
      handler:function(o) {
      if(o=='1'){
        this.formData.deathTime=''
        this.formData.deathReason=''
      }
      },
      deep: true,
      immediate: true
   },
  },
  mounted() {
    var vm=this
    this.formData=this.editData
    console.log('222222222222222222222222',this.formData)
    this.formData=  JSON.parse(window.localStorage.getItem('editDetail'))
    if(this.formData.liveStreet){
    this.addressVal=[this.formData.liveProvince,this.formData.liveCity,this.formData.liveTown,this.formData.liveStreet]
    this.getDistrict(0)
@ -72,7 +83,6 @@ Vue.component('copd-patient-record-edit', {
    if(this.formData.liveStreet){
      this.resiginAddressVal=[this.formData.registProvince,this.formData.registCity,this.formData.registTown,this.formData.registStreet]
      this.getDistrict(1)
      console.log('999999999999999999999999999999',this.resiginAddressVal)
      }else{
        this.resiginAddressVal=[this.formData.registProvince,this.formData.registCity,this.formData.registTown]
        this.getDistrict(1)
@ -81,6 +91,7 @@ Vue.component('copd-patient-record-edit', {
      vm.getDictByDictName(item)
    });
  },
  methods: {
    handleItemChange(val) {
      // 获取地址

+ 22 - 19
component/statistics/CopdRecordSearch/index.html

@ -152,25 +152,28 @@
      </el-select>
    </div>
    <!--=======================================================-->
    <div class="searchDiv pb20">
      <label class="c-333 c-f14">
        地区:
      </label>
      <el-select v-model="areaCode" style="width: 100px" class="pr10">
      <el-option v-for="(item , index) in areaList" :key="index" :label="item.name"
        :value="item.code"></el-option>
    </el-select>
    </div>
    <!--=======================================================-->
    <div class="searchDiv pb20" v-show="rangeCode!='town'&&rangeCode!='specHos'">
      <label class="c-333 c-f14">
        社区:
      </label>
      <el-select v-model="communityCode" style="width: 200px" class="pr10">
      <el-option v-for="(item , index) in communityList" :key="index" :label="item.name"
        :value="item.code"></el-option>
    </el-select>
    </div>
    <template v-if="rangeCode!='city'">
      <div class="searchDiv pb20">
        <label class="c-333 c-f14">
          地区:
        </label>
        <el-select v-model="areaCode" style="width: 100px" class="pr10">
        <el-option v-for="(item , index) in areaList" :key="index" :label="item.name"
          :value="item.code"></el-option>
      </el-select>
      </div>
      <!--=======================================================-->
      <div class="searchDiv pb20" v-show="rangeCode!='town'&&rangeCode!='specHos'">
        <label class="c-333 c-f14">
          社区:
        </label>
        <el-select v-model="communityCode" style="width: 200px" class="pr10">
        <el-option v-for="(item , index) in communityList" :key="index" :label="item.name"
          :value="item.code"></el-option>
      </el-select>
      </div>
    </template>
    <!--=======================================================-->
    <div class="searchDiv pb20">
      <el-button type="primary" size="mini" @click="search">查询</el-button>

+ 8 - 6
component/statistics/CopdRecordSearch/index.js

@ -24,7 +24,9 @@ Vue.component('copd-record-search', {
      quotaStrArr:[],
      value1:[],
      rangeList:[  {name: '按区', code: 'town'},
    {name: '按社区', code: 'hospital'}],
    {name: '按社区', code: 'hospital'},
    {name: '按市', code: 'city'}
  ],
      startTime:'',
      endTime:'',
      rangeCode:'town',
@ -166,10 +168,10 @@ Vue.component('copd-record-search', {
  vm.startTime = new Date(start).format('yyyy-MM-dd');
  vm.nowyear = vm.chooseYear = now.getFullYear();
  vm.chooseYear='2021'
  vm.chooseYear='2022'
  vm.nowmonth = now.getMonth() + 1;
  vm.years = [];
  for (i = vm.nowyear; i >= 2016; i--) {
  for (i = vm.nowyear; i >= 2013; i--) {
    vm.years.push(i);
  }
},    
@ -219,7 +221,7 @@ initScope(vm) {
      endTime:this.radio==1? this.chooseYear+'-12-31': this.endTime,
      quotaStr:this.quotaStrArr.join(','),
      range:this.rangeCode,
      area:this.area=='350200'?'':this.area,
      area:this.areaCode=='350200'?'':this.areaCode,
      hospital:this.communityCode,
      page:1,
      size:50,
@ -282,7 +284,7 @@ initScope(vm) {
        vm.getCommunityHospital();
      } else if (type == 5) {
        vm.initSelOption('team');
        vm.teamListByArea();
        // vm.teamListByArea();
      }
    },
    initSelOption: function (param) {
@ -314,7 +316,7 @@ initScope(vm) {
        endTime:this.radio==1? this.chooseYear+'-12-31': this.endTime,
        quotaStr:this.quotaStrArr.join(','),
        range:this.rangeCode,
        area:this.area,
        area:this.areaCode=='350200'?'':this.areaCode,
        hospital:this.communityCode,
        page:1,
        size:50,

+ 145 - 94
component/statistics/CopdServiceRecord/index.html

@ -22,21 +22,24 @@
      <template v-if="detailInfo.turnDownStatus==1&&detailInfo.receiveStatus!=1">
        
        <div class="base-info-item">
          分配医院:{{detailInfo.hospital}}
          分配医院:{{detailInfo.hospitalName}}
        </div>
        <div class="base-info-item">
          分配医生:{{detailInfo.operaterName}}
          分配医生:{{detailInfo.basicDoctorName}}
        </div>
      </template>
      <div class="base-info-item">
        接收状态:{{detailInfo.receiveStatus==1?'已接收':'未接收'}}
      </div>
      <div class="base-info-item">
        接收医院:{{detailInfo.operaterName}}
      </div>
      <div class="base-info-item">
        接收医生:{{detailInfo.doctorName}}
      </div>
      <template v-if="detailInfo.receiveStatus==1">
        
        <div class="base-info-item">
          接收医院:{{detailInfo.hospitalName}}
        </div>
        <div class="base-info-item">
          接收医生:{{detailInfo.doctorName}}
        </div>
      </template>
      
    </div>
  </div>
@ -77,6 +80,12 @@
                      <template>{{event.doctorName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">接收医院:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否流转:</span>
                    <span style="color: #656565">
@ -182,7 +191,7 @@
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否回退:</span>
                    <span style="color: #9fa2a8">回退原因:</span>
                    <span style="color: #656565">
                      <template v-if="event.isBack==0">———</template>
                      <template v-else>{{event.backReason}}</template>
@ -243,109 +252,151 @@
          随访信息
        </div>
        <div class="copd-bb-base-content">
          <div class="copd-bb-base-info-item">
          <div class="copd-bb-base-info-item" v-if="followInfo.createTime"> 
            随访时间:{{followInfo.createTime}}
          </div>
          <div class="copd-bb-base-info-item">
          <div class="copd-bb-base-info-item" v-if="followInfo.doctorName">
            随访医生:{{followInfo.doctorName}}
          </div>
          <div class="copd-bb-base-info-item">
            {{followInfo.hospitalName}}
          <div class="copd-bb-base-info-item" v-if="followInfo.hospitalName">
            随访机构: {{followInfo.hospitalName}}
          </div>
        </div>
      </div>
      <div class="copd-bb-record-info">
        <div class="title ki-title">
          基本信息
        </div>
        <div class="copd-bb-base-content">
          <div class="copd-bb-base-info-item">
            姓名:{{followInfo.name}}
          </div>
          <div class="copd-bb-base-info-item">
            性别:{{followInfo.sex==1?'男':'女'}}
          </div>
          <div class="copd-bb-base-info-item">
            出生日期:{{followInfo.birthday}}
          </div>
          <div class="copd-bb-base-info-item">
            证件类型:{{followInfo.idcardType}}
          </div>
          <div class="copd-bb-base-info-item">
            证件号码:{{followInfo.idcard}}
          </div>
          <div class="copd-bb-base-info-item">
            联系电话:{{followInfo.mobile}}
          </div>
          <div class="copd-bb-base-info-item">
            现住地址:{{followInfo.liveAddress}}
          </div>
          <div class="copd-bb-base-info-item">
            户籍地址:{{followInfo.registAddress}}
          <div class="copd-bb-base-info-item" v-if="followup"> 
            随访状态:{{followup}}
          </div>
        </div>
      </div>
      <div class="copd-bb-record-info">
        <div class="title ki-title  ta-title">
          随访情况
        </div>
        <div class="copd-bb-base-content">
          <div class="copd-bb-base-info-item">
            生存状态:{{followInfo.isLive==1?'生存':'死亡'}}
      <template v-if="followInfo.status!='4'">
        <div class="copd-bb-record-info">
          <div class="title ki-title">
            基本信息
          </div>
          <div class="copd-bb-base-info-item">
            随访状态:{{
              followInfo.status == 1 ? '接收随访' :
              followInfo.status == 2 ? '拒访' :
              followInfo.status == 3 ? '不详' :
              followInfo.status == 4 ? '失访' :
              followInfo.status == 5 ? '非本辖区—退回再根据现住址下推' :
              ''
            }}
          </div>
          <div class="copd-bb-base-info-item">
            慢阻肺首次诊断时间:{{followInfo.firstVisitTime}}
          <div class="copd-bb-base-content">
            <div class="copd-bb-base-info-item" v-if="followInfo.name">
              姓名:{{followInfo.name}}
            </div>
            <div class="copd-bb-base-info-item"  v-if="followInfo.sex">
              性别:{{followInfo.sex==1?'男':'女'}}
            </div>
            <div class="copd-bb-base-info-item"  v-if="followInfo.birthday">
              出生日期:{{followInfo.birthday}}
            </div>
            <div class="copd-bb-base-info-item"  v-if="idcardTypeName">
              证件类型:{{idcardTypeName}}
            </div>
            <div class="copd-bb-base-info-item"  v-if="followInfo.idcard">
              证件号码:{{followInfo.idcard}}
            </div>
            <div class="copd-bb-base-info-item"  v-if="followInfo.mobile">
              联系电话:{{followInfo.mobile}}
            </div>
            <div class="copd-bb-base-info-item" v-if="educational">
              学历:{{educational}}
            </div>
            <div class="copd-bb-base-info-item"  v-if="marriageName">
              婚姻状况:{{marriageName}}
            </div>
            <div class="copd-bb-base-info-item"  v-if="occupation">
              职业类型:{{occupation}}
            </div>
            <div class="copd-bb-base-info-item"  v-if="followInfo.liveProvinceName">
              常住地区:{{followInfo.liveProvinceName}}{{followInfo.liveCityName}}{{followInfo.liveTownName}}{{followInfo.liveStreetName}}
            </div>
            <div class="copd-bb-base-info-item" v-if="followInfo.liveAddress">
              常住地址:{{followInfo.liveAddress}}
            </div>
            <div class="copd-bb-base-info-item" v-if="followInfo.registProvinceName">
              <div class="copd-bb-base-info-item" >
              户籍区区:{{followInfo.registProvinceName}}{{followInfo.registCityName}}{{followInfo.registTownName}}{{followInfo.registStreetName}}
            </div>
            <div class="copd-bb-base-info-item" v-if="followInfo.registAddress">
              <div class="copd-bb-base-info-item" >
              户籍地址:{{followInfo.registAddress}}
            </div>
          </div>
          <div class="copd-bb-base-info-item">
            慢阻肺首次诊断地区:{{followInfo.firstVisitArea}}
        </div>
        <div class="copd-bb-record-info">
          <div class="title ki-title  ta-title">
            随访情况
          </div>
          <div class="copd-bb-base-info-item">
            慢阻肺首次诊断机构级别:{{
              followInfo.firstVisitOrgLevel == 1 ? '三级医院' :
              followInfo.firstVisitOrgLevel == 2 ? '二级医院' :
              followInfo.firstVisitOrgLevel == 3 ? '村卫生室' :
              followInfo.firstVisitOrgLevel == 4 ? '乡镇卫生院/社区卫生服务机构' :
              followInfo.firstVisitOrgLevel == 5 ? '其他医疗卫生机构' :
              ''
            }}
          <div class="copd-bb-base-content">
            <div class="copd-bb-base-info-item" v-if="followInfo.isLive">
              生存状态:{{followInfo.isLive==1?'生存':'死亡'}}
            </div>
            <div class="copd-bb-base-info-item" v-if="followInfo.hasSmoke">
              是否抽烟:{{followInfo.hasSmoke==1?'是':followInfo.hasSmoke==0?'否':'已戒烟'}}
            </div>
            <div class="copd-bb-base-info-item" v-if="followInfo.hasDrink">
              是否饮酒:{{followInfo.hasDrink==1?'是':followInfo.hasDrink==0?'否':'已戒酒'}}
            </div>
            <div class="copd-bb-base-info-item" v-if="diseaseConversion">
              病情归转:{{diseaseConversion}}
            </div>
            
            <!-- <div class="copd-bb-base-info-item">
              是否做过肺功能检查:{{followInfo.hasLung}}
            </div> -->
            <!-- <div class="copd-bb-base-info-item">e
              是否做过胸部CT或X线检查:{{followInfo.birthday}}
            </div> -->
         
          </div>
          <!-- <div class="copd-bb-base-info-item">
            是否做过肺功能检查:{{followInfo.hasLung}}
          </div> -->
          <!-- <div class="copd-bb-base-info-item">e
            是否做过胸部CT或X线检查:{{followInfo.birthday}}
          </div> -->
          <div class="copd-bb-base-info-item">
            是否抽烟:{{followInfo.hasSmoke==1?'是':followInfo.hasSmoke==0?'':'已戒'}}
        </div>
        <div class="copd-bb-record-info">
          <div class="title ki-title ta-title">
            首次确诊情况
          </div>
          <div class="copd-bb-base-info-item">
            是否饮酒:{{followInfo.hasDrink==1?'是':followInfo.hasDrink==0?'':'已戒'}}
          <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="followInfo.firstVisitArea">
              慢阻肺首次诊断地区:{{followInfo.firstVisitArea}}
            </div>
            <div class="copd-bb-base-info-item" v-if="followInfo.firstVisitOrgLevel">
              慢阻肺首次诊断机构级别:{{
                followInfo.firstVisitOrgLevel == 1 ? '三级医院' :
                followInfo.firstVisitOrgLevel == 2 ? '二级医院' :
                followInfo.firstVisitOrgLevel == 3 ? '村卫生室' :
                followInfo.firstVisitOrgLevel == 4 ? '乡镇卫生院/社区卫生服务机构' :
                followInfo.firstVisitOrgLevel == 5 ? '其他医疗卫生机构' :
                ''
              }}
            </div>
            <div class="copd-bb-base-info-item" v-if="followInfo.diagnosticBasis">
              最高诊断依据:{{followInfo.diagnosticBasis}}
            </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>
            <div class="copd-bb-base-info-item" v-if="followInfo.drugAfter">
              使用支气管扩张剂后FEV1/FVC(%):{{followInfo.drugAfter}}
            </div>
          </div>
        </div>
      </div>
      <div class="copd-bb-record-info">
        <div class="title ki-title ta-title">
          死亡情况
        </div>
        <div class="copd-bb-base-content">
          <div class="copd-bb-base-info-item">
            死亡情况:{{followInfo.isLive==1?'生存':'死亡'}}
        <div class="copd-bb-record-info">
          <div class="title ki-title ta-title">
            死亡情况
          </div>
          <div class="copd-bb-base-info-item">
            死亡时间:{{followInfo.deathTime}}
          <div class="copd-bb-base-content">
            <div class="copd-bb-base-info-item">
              死亡情况:{{followInfo.isLive==1?'生存':'死亡'}}
            </div>
            <template v-if="followInfo.isLive!=1">
  
              <div class="copd-bb-base-info-item" v-if="followInfo.deathTime">
                死亡时间:{{followInfo.deathTime}}
              </div>
              <div class="copd-bb-base-info-item"  v-if="followInfo.deathReason">
                死亡原因:{{followInfo.deathReason}}
              </div>
            </template>
          </div>
        </div>
      </div>
      </template>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button @click="dialog = false">关闭</el-button>

+ 105 - 2
component/statistics/CopdServiceRecord/index.js

@ -23,6 +23,8 @@ Vue.component('copd-service-record', {
      loading:false,
      page:1,
      size:999,
      
      idcardTypeName:'',
      followInfo:{},
      events: [
        {date: '2023年'},
@ -31,7 +33,27 @@ Vue.component('copd-service-record', {
        {date: '2025年', description: 'Description for event 3'},
        {date: '2026年', description: 'Description for event 4'},
        {title: 'Event 5', date: '2027年', description: 'Description for event 5'}
      ]
      ],
      dicName:['jkcopd_followup_status','jkcopd_symptom','jkcopd_isLive','jkcopd_first_area','jkcopd_first_org_level', 'jkcopd_marriage','jkcopd_occupation','jkcopd_smoke','jkcopd_drink','jkcopd_archivesStatus','jkcopd_disease_conversion','jkcopd_firstVisitType','jkcopd_educational','idCardType'],
      marriageArr:[],
      marriageName:'',
      symptom:'',
      followupArr:[],
      followup:'',
      idCardTypeArr:[],
      firstAreaArr:[],
      isLiveArr:[],
      orgLevelArr:[],
      occupationArr:[],
      occupation:'',
      smokeArr:[],
      drinkArr:[],
      archivesArr:[],
      diseaseConversion:'',
      conversionArr:[],
      firstVisitTypeArr:[],
      educationalArr:[],
      educational:''
    }
  },
  methods: {
@ -46,6 +68,75 @@ Vue.component('copd-service-record', {
        });
      });
    },
       //字典
       getDictByDictName(value){
        var vm=this
      statisticAPI.getDictByDictName({name:value}).then(function(res){
        if(value=='jkcopd_marriage'){
         var arr = res.list
          arr.forEach(function(item){
            if(item.code==vm.followInfo.marriage){
              vm.marriageName=item.value
            }
          })
        }else if(value=='jkcopd_smoke'){
          vm.smokeArr=res.list
        }else if(value=='jkcopd_drink'){
          vm.drinkArr=res.list
        }else if(value=='jkcopd_first_area'){
          vm.areaArr=res.list
        }else if(value=='jkcopd_disease_conversion'){
          var arr = res.list
          arr.forEach(function(item){
            if(item.code==vm.followInfo.diseaseConversion){
              vm.diseaseConversion=item.value
            }
          })
        }else if(value=='jkcopd_firstVisitType'){
          vm.firstVisitTypeArr=res.list
        }else if(value=='jkcopd_first_org_level'){
          vm.orGlevelArr=res.list
        }else if(value=='jkcopd_followup_status'){
          vm.followupArr= res.list
          vm.followupArr.forEach(function(item){
            if(item.code==vm.followInfo.status){
              vm.followup=item.value
            }
          })
        }else if(value=='idCardType'){
          var arr = res.list
          arr.forEach(function(item){
            if(item.code==vm.followInfo.idcardType){
              vm.idcardTypeName=item.value
            }
          })
        }else if(value=='jkcopd_occupation'){
          var arr = res.list
          arr.forEach(function(item){
            if(item.code==vm.followInfo.occupation){
              vm.occupation=item.value
            }
          })
        }else if(value=='jkcopd_educational'){
          var arr = res.list
          arr.forEach(function(item){
            if(item.code==vm.followInfo.educational){
              vm.educational=item.value
            }
          })
          
        }else if(value=='jkcopd_symptom'){
          var arr = res.list
          arr.forEach(function(item){
            if(item.code==vm.followInfo.symptom){
              vm.symptom=item.value
            }
          })
        }
       
      })
    
      },
    recordBack(){
      EventBus.$emit('copd-reset-select')
    },
@ -89,10 +180,19 @@ Vue.component('copd-service-record', {
    },
    showDetail(item){
      var vm =this
      console.log(item,'oooooooooooooo')
       statisticAPI.followupDetail({id:item.jkcopdFollowup.id}).then(function(res){
        console.log(res)
        vm.followInfo=res.obj
        vm.dicName.forEach(function(item) {
          vm.getDictByDictName(item)
        });
        // statisticAPI.getDictByDictName({name:'idCardType'}).then(function(res){
        //   res.list.forEach(function(item){
        //     if(item.code==vm.followInfo.idcardType){
        //       vm.idcardTypeName=item.value
        //     }
        //   })
        // })
        console.log(vm.followInfo,'sssss')
        vm.dialog=true
       })
@ -102,6 +202,9 @@ Vue.component('copd-service-record', {
    // this.$nextTick(() => {
    //   this.setLeftHeights();
    // });
    console.log('pppppppppppppp--------',this.detailInfo)
    var vm =this
    this.getDealRecord()
   
  },
});