Chensc 5 روز پیش
والد
کامیت
5117f2e800

+ 167 - 150
component/statistics/CopdServiceRecordPatient/index.html

@ -1,37 +1,57 @@
<div class="copd-service-record-box">
  <el-radio-group v-model="changeModule" style="margin-bottom: 20px">
    <el-radio-button label="1" style="margin-right: 0px">基本信息</el-radio-button>
    <el-radio-button label="2" style="margin-right: 0px">乳腺评估信息</el-radio-button>
    <el-radio-button label="3" style="margin-right: 0px">宫颈评估信息</el-radio-button>
  </el-radio-group>
  <div class="service-base-info">
    <div class="base-title ki-title ta-title">基本信息</div>
    <div class="base-content">
    <div class="base-title ki-title ta-title">{{changeModule == 1 ? '基本信息' : changeModule == 2 ? '乳腺评估信息' : '宫颈评估信息'}}</div>
    <div class="base-content" v-if="changeModule == 1">
      <div class="base-info-item">姓名:{{detailInfo.name}}</div>
      <div class="base-info-item">性别:{{detailInfo.sexName}}</div>
      <div class="base-info-item">证件号码:{{detailInfo.idcard}}</div>
      <div class="base-info-item">联系电话:{{detailInfo.mobile}}</div>
      <div class="base-info-item">下转状态:{{detailInfo.turnDownStatus==1?'已下转':'未下转'}}</div>
      <template v-if="detailInfo.turnDownStatus==1&&detailInfo.receiveStatus!=1">
        <div class="base-info-item">分配医院:{{detailInfo.hospitalName}}</div>
        <div class="base-info-item">分配医生:{{detailInfo.basicDoctorName}}</div>
      </template>
      <div class="base-info-item">接收状态:{{detailInfo.receiveStatus==1?'已接收':'未接收'}}</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 class="base-content" v-else-if="changeModule == 2">
      <div class="base-info-item">乳腺评估机构:{{detailInfo.name}}</div>
      <div class="base-info-item">乳腺评估人:{{detailInfo.sexName}}</div>
      <div class="base-info-item">乳腺初筛时间:{{detailInfo.idcard}}</div>
      <div class="base-info-item">乳腺评估时间:{{detailInfo.mobile}}</div>
    </div>
    <div class="base-content" v-else-if="changeModule == 3">
      <div class="base-info-item">宫颈评估机构:{{detailInfo.name}}</div>
      <div class="base-info-item">宫颈评估人:{{detailInfo.sexName}}</div>
      <div class="base-info-item">宫颈初筛时间:{{detailInfo.idcard}}</div>
      <div class="base-info-item">宫颈评估时间:{{detailInfo.mobile}}</div>
    </div>
  </div>
  <div class="service-record-timeline">
    <div class="title">服务记录</div>
    <div>
      <div class="mb10 mt10" style="display: flex;align-items: center;">
      <!-- <div class="mb10 mt10" style="display: flex; align-items: center">
        <span>服务年份:</span>
        <el-radio-group v-model="serviceYear" @input="getDealRecord">
          <el-radio-button :label="item.value" v-for="item in yearList">{{item.label}}</el-radio-button>
          <el-radio-button :label="item.value" v-for="item in yearList" :key="item.value">{{item.label}}</el-radio-button>
        </el-radio-group>
        <el-date-picker v-model="customizeYear" style="width: 400px;" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" v-if="serviceYear=='customize'" value-format="yyyy-MM-dd" @change="getDealRecord"></el-date-picker>
      </div>
      <div  style="display: flex;align-items: center;">
        <span>服务节点:</span>
        <el-radio-group v-model="serviceNode" @input="getDealRecord">
          <el-radio-button :label="item.value" v-for="item in nodeList">{{item.label}}</el-radio-button>
        <el-date-picker
          v-model="customizeYear"
          style="width: 400px"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          v-if="serviceYear=='customize'"
          value-format="yyyy-MM-dd"
          @change="getDealRecord"></el-date-picker>
      </div> -->
      <div style="display: flex; align-items: center; margin-top: 20px">
        <div style="width: 180px">服务节点:</div>
        <el-radio-group v-model="serviceNode" @input="getDealRecord" style="display: flex; flex-wrap: wrap">
          <el-radio-button :label="item.value" v-for="item in nodeList" :key="item.value" style="margin-bottom: 15px">{{item.label}}</el-radio-button>
          <div @click="getMore" style="display: flex; align-items: center; color: #409eff; font-size: 16px; cursor: pointer; margin-top: -20px">
            {{moreFlag? '更多':'收起'}}
            <i :class="moreFlag ?'el-icon-arrow-down ': 'el-icon-arrow-up' " style="font-size: 22px; color: #409eff; font-weight: bold; margin-left: 5px"></i>
          </div>
        </el-radio-group>
      </div>
    </div>
@ -45,260 +65,257 @@
            <div class="timeline-time" :id="'left-' + eI">{{event.createTime&& event.createTime.slice(5) }}</div>
            <div class="timeline-content" :id="'right-' + eI">
              <div class="data-item">
                <div class="data-title">
                  {{getTypeName(event.type)}}
                </div>
                <div class="data-cont" v-if="event.type!=5&&event.type!=6&&event.type!=7&&event.type!=8">
                <div class="data-title">{{getTypeName(event.type)}}</div>
                <div class="data-cont" v-if="event.type == 1">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">下转状态:</span>
                    <span style="color: #9fa2a8">预约医院:</span>
                    <span style="color: #656565">
                      <template>{{event.turnDownStatus==0?'未下转':'已下转'}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">接收状态:</span>
                    <span style="color: #9fa2a8">预约时间:</span>
                    <span style="color: #656565">
                      <template>{{event.receiveStatus==0?'未接收':'已接收'}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <template v-if="event.receiveStatus!=0">
                    <div style="width: 50%">
                      <span style="color: #9fa2a8">接收医生:</span>
                      <span style="color: #656565">
                        <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>
                  </template>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否流转:</span>
                    <span style="color: #9fa2a8">证件号码:</span>
                    <span style="color: #656565">
                      <template>{{event.isCirculation==0?'否':'是'}}</template>
                      <!-- <template v-if="i% 3 == 0">———</template>
                    <template v-else>这是数据值,他可能会很长</template> -->
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%" v-if="event.isCirculation!=0">
                    <span style="color: #9fa2a8">流转去向:</span>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">医保卡号:</span>
                    <span style="color: #656565">
                      <template v-if="event.isCirculation==0">———</template>
                      <template v-else>{{event.circulation}}</template>
                      <template>{{event.doctorName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%" >
                    <span style="color: #9fa2a8">是否回退:</span>
                </div>
                <div class="data-cont" v-else-if="event.type == 2 ||event.type == 3 ||event.type == 4 ||event.type == 6 || event.type == 13|| event.type == 15">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">{{event.type == 13 || event.type == 15 ? '是否检查' : '是否拒检'}} :</span>
                    <span style="color: #656565">
                      <template>{{event.isBack==0?'否':'是'}}</template>
                      <!-- <template v-if="i% 3 == 0">———</template>
                    <template v-else>这是数据值,他可能会很长</template> -->
                      <template>{{event.type == 13 || event.type == 15 ? event.hospitalName : event.hospitalName }}</template>
                    </span>
                  </div>
                  <div style="width: 50%" v-if="event.isBack!=0">
                    <span style="color: #9fa2a8">回退原因:</span>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template v-if="event.isBack==0">———</template>
                      <template v-else>
                        {{event.backType==1?'找到本人或家属,但否认慢阻肺病史':event.backType==2?'找到本人或家属,非本辖区,也不清楚现在的住址':event.backReason}}
                      </template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%" >
                    <span style="color: #9fa2a8">是否失访:</span>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员:</span>
                    <span style="color: #656565">
                      <template>{{event.isLost==0?'否':'是'}}</template>
                      <!-- <template v-if="i% 3 == 0">———</template>
                    <template v-else>这是数据值,他可能会很长</template> -->
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">操作医生:</span>
                    <span style="color: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.operaterName}}</template>
                      <!-- <template v-if="i% 3 == 0">———</template>
                    <template v-else>这是数据值,他可能会很长</template> -->
                      <template>{{event.doctorName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-cont" v-else-if="event.type == 5 ||event.type == 14|| event.type == 16">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">操作机构:</span>
                    <span style="color: #9fa2a8">{{event.type == 14|| event.type == 16 ? '检查情况' : '是否检查'}} :</span>
                    <span style="color: #656565">
                      <template>{{event.orgName}}</template>
                      <!-- <template v-if="i% 3 == 0">———</template>
                    <template v-else>这是数据值,他可能会很长</template> -->
                      <template>{{event.type == 14|| event.type == 16 ? event.hospitalName : event.hospitalName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-cont" v-else-if="event.type==5">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">下转状态:</span>
                    <span style="color: #9fa2a8">随访机构:</span>
                    <span style="color: #656565">
                      <template>{{event.turnDownStatus==0?'未下转':'已下转'}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">接收状态:</span>
                    <span style="color: #9fa2a8">随访人员:</span>
                    <span style="color: #656565">
                      <template>{{event.receiveStatus==0?'未接收':'已接收'}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <template v-if="event.receiveStatus==1">
                    <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">
                        <template>{{event.doctorName}}</template>
                      </span>
                    </div>
                  </template>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否流转:</span>
                    <span style="color: #9fa2a8">随访时间:</span>
                    <span style="color: #656565">
                      <template>{{event.isCirculation==0?'否':'是'}}</template>
                      <!-- <template v-if="i% 3 == 0">———</template>
                    <template v-else>这是数据值,他可能会很长</template> -->
                      <template>{{event.doctorName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%" v-if="event.isCirculation!=0">
                    <span style="color: #9fa2a8">流转去向:</span>
                </div>
                <div class="data-cont" v-else-if="event.type == 7">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否治疗:</span>
                    <span style="color: #656565">
                      <template v-if="event.isCirculation==0">———</template>
                      <template v-else>{{event.circulation}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否回退:</span>
                    <span style="color: #9fa2a8">随访机构:</span>
                    <span style="color: #656565">
                      <template>{{event.isBack==0?'否':'是'}}</template>
                      <!-- <template v-if="i% 3 == 0">———</template>
                    <template v-else>这是数据值,他可能会很长</template> -->
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%" v-if="event.isBack!=0">
                    <span style="color: #9fa2a8">回退原因:</span>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访人员:</span>
                    <span style="color: #656565">
                      <template v-if="event.isBack==0">———</template>
                      <template v-else>
                        {{event.backType==1?'找到本人或家属,但否认慢阻肺病史':event.backType==2?'找到本人或家属,非本辖区,也不清楚现在的住址':event.backReason}}
                      </template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="display: flex; justify-content: space-between; width: 100%">
                    <div class="data-title">随访信息</div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访时间:</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-cont" v-else-if="event.type == 8">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访医生:</span>
                    <span style="color: #9fa2a8">是否随访:</span>
                    <span style="color: #656565">
                      <template>{{event.jkcopdFollowup.doctorName}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访机构:</span>
                    <span style="color: #656565">
                      <template>{{event.jkcopdFollowup.hospitalName}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访时间:</span>
                    <span style="color: #9fa2a8">随访人员:</span>
                    <span style="color: #656565">
                      <template>{{event.jkcopdFollowup.followupDate}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">生存状态:</span>
                    <span style="color: #9fa2a8">随访时间:</span>
                    <span style="color: #656565">
                      <template>{{event.jkcopdFollowup.isLive==1?'生存':'死亡'}}</template>
                      <template>{{event.doctorName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-cont" v-else-if="event.type==7">
                <div class="data-cont" v-else-if="event.type == 9">
                  <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%">
                    <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: #9fa2a8">检查人员(妇科检查):</span>
                    <span style="color: #656565">
                      <template>{{event.operaterName}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员(分泌物):</span>
                    <span style="color: #656565">
                      <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.orgName}}</template>
                      <template>{{event.doctorName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-cont" v-else-if="event.type == 8">
                <div class="data-cont" v-else-if="event.type == 10">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">下转状态:</span>
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.turnDownStatus==0?'未下转':'已下转'}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">接收状态:</span>
                    <span style="color: #9fa2a8">检查人员:</span>
                    <span style="color: #656565">
                      <template>{{event.receiveStatus==0?'未接收':'已接收'}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-cont" v-else-if="event.type == 11">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">分配医生</span>
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">分配去向</span>
                    <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: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.operaterName}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-cont" v-else-if="event.type == 12">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">操作机构:</span>
                    <span style="color: #9fa2a8">临床评估意见:</span>
                    <span style="color: #656565">
                      <template>{{event.orgName}}</template>
                      <template>{{event.hospitalName}}</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">
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-cont" v-else>
                  <div style="width: 50%" v-for="item in event.achievesRecordList" :key="item.id">
                    <span style="color: #9fa2a8">{{item.classFieldName}}:</span>
                <div class="data-cont" v-else-if="event.type == 17">
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">最后诊断:</span>
                    <span style="color: #656565">
                      <template>{{item.newCommentName}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">操作医生:</span>
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.operaterName}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">操作机构:</span>
                    <span style="color: #9fa2a8">检查人员:</span>
                    <span style="color: #656565">
                      <template>{{event.orgName}}</template>
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-title" style="color: #12b7f5; font-size: 14px;cursor: pointer;" v-if="event.type==5" @click="showDetail(event)">查看随访详情</div>
                <div class="data-title" style="color: #12b7f5; font-size: 14px; cursor: pointer" @click="showDetail(event)">查看随访详情</div>
              </div>
            </div>
          </div>

+ 50 - 27
component/statistics/CopdServiceRecordPatient/index.js

@ -1,6 +1,6 @@
// 慢阻肺患者档案-服务档案
// 两癌筛查居民档案-服务记录
var template = ''
$.ajax('../../../component/statistics/CopdServiceRecord/index.html', {
$.ajax('../../../component/statistics/CopdServiceRecordPatient/index.html', {
  data: {},
  dataType: 'html',
  cache: false,
@ -12,7 +12,7 @@ $.ajax('../../../component/statistics/CopdServiceRecord/index.html', {
  }
})
Vue.component('copd-service-record', {
Vue.component('Copd-service-record-patient', {
  template: template,
  props: ['detailInfo'],
  data() {
@ -77,25 +77,45 @@ Vue.component('copd-service-record', {
      nationDict: [],
      nationName: '',
      communityArr: [],
      yearList: [{ label: '全部年份',value: "" }],
      yearList: [{ label: '全部年份', value: '' }],
      nodeList: [
        { label: '全部节点', value: "" },
        { label: '下转患者', value: 1 },
        { label: '医生接收', value: 2 },
        { label: '居民流转', value: 3 },
        { label: '医生退回', value: 4 },
        { label: '医生随访', value: 5 },
        { label: '档案修改', value: 6 },
        { label: '档案同步', value: 7 },
        { label: '分配患者', value: 8 },
        { label: '添加患者', value: 9 },
        { label: '全部节点', value: '' },
        { label: '居民预约', value: 1 },
        { label: '乳腺临床检查', value: 2 },
        { label: '辅助检查-乳腺超声', value: 3 },
        { label: '辅助检查-乳腺钼靶', value: 4 },
        { label: '乳腺病理学检查', value: 5 },
        { label: '乳腺外科门诊', value: 6 },
        { label: '乳腺癌治疗信息', value: 7 }
      ],
      serviceYear: "",
      nodeList2: [
        { label: '社区随访', value: 8 },
        { label: '妇科检查', value: 9 },
        { label: 'HPV', value: 10 },
        { label: '宫颈细胞学检查', value: 11 },
        { label: '初筛结果临床评估', value: 12 },
        { label: '阴道镜检查', value: 13 },
        { label: '阴道镜检查随访', value: 14 },
        { label: '组织病理学检查', value: 15 },
        { label: '组织病理学检查随访', value: 16 },
        { label: '最后诊断', value: 17 }
      ],
      serviceYear: '',
      customizeYear: [],
      serviceNode: ""
      serviceNode: '',
      changeModule: 1,
      moreFlag: true
    }
  },
  methods: {
    getMore() {
      this.moreFlag = !this.moreFlag
      if (this.moreFlag) {
        this.nodeList.splice(8, 10)
      } else {
        this.nodeList = [...this.nodeList, ...this.nodeList2]
      }
    },
    getNation() {
      var vm = this
      statisticAPI.getNationDict().then(function (res) {
@ -212,26 +232,26 @@ Vue.component('copd-service-record', {
      this.$emit('back')
      EventBus.$emit('copd-reset-select')
    },
    getDealRecord () {
    getDealRecord() {
      var vm = this
      vm.loading = true
      var params = {
        page: vm.page,
        size: vm.size,
        patient: vm.detailInfo.patient,
        patient: vm.detailInfo && vm.detailInfo.patient ? vm.detailInfo.patient : null,
        type: vm.serviceNode
      }
      if(vm.serviceYear == 'customize'){
      if (vm.serviceYear == 'customize') {
        params.startTime = vm.customizeYear[0]
        params.endTime = vm.customizeYear[1]
      }else if(vm.serviceYear != ''){
        params.startTime = vm.serviceYear + "-01-01"
        params.endTime = vm.serviceYear + "-12-31"
      } else{
      } else if (vm.serviceYear != '') {
        params.startTime = vm.serviceYear + '-01-01'
        params.endTime = vm.serviceYear + '-12-31'
      } else {
        params.startTime = ''
        params.endTime = ''
      }
      
      statisticAPI.dealRecordPage(params).then(function (res) {
        res.detailModelList.forEach(function (item, index) {
          var time1 = res.detailModelList[index] && res.detailModelList[index].createTime && res.detailModelList[index].createTime.slice(0, 4)
@ -262,7 +282,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)
        })
@ -285,14 +305,17 @@ Vue.component('copd-service-record', {
      }
      this.yearList.push({ label: '自定义', value: 'customize' })
    },
    getTypeName(type){
      return this.nodeList.find(function(item){return item.value == type})?.label
    getTypeName(type) {
      return this.nodeList.find(function (item) {
        return item.value == type
      })?.label
    }
  },
  mounted() {
    // this.$nextTick(() => {
    //   this.setLeftHeights();
    // });
    console.log('创建66666')
    var vm = this
    this.getDealRecord()
    this.getYearList()

+ 1 - 1
component/statistics/LascPatient/index.html

@ -88,6 +88,6 @@
    </el-dialog>
  </template>
  <template v-else-if="serviceRecordVisable">
    <copd-service-record :detailInfo="currentEditData" @back="back"></copd-service-record>
    <Copd-service-record-patient :detailInfo="currentEditData" @back="back"></Copd-service-record-patient>
  </template>
</div>

+ 6 - 0
component/statistics/LascPatient/index.js

@ -17,6 +17,7 @@ Vue.component('lasc-patient', {
  data: function () {
    return {
      years: [],
      currentEditData: {},
      dialogVisible: false,
      showTotalTable: true,
      serviceRecordVisable: false,
@ -140,6 +141,11 @@ Vue.component('lasc-patient', {
        delete this.form.team
      }
    },
    back() {
      var vm = this
      vm.showTotalTable = true
      vm.serviceRecordVisable = false
    },
    getList() {
      var vm = this
      this.loading = true