浏览代码

合并代码

hwy 6 天之前
父节点
当前提交
61f6cb57e1

+ 52 - 146
component/statistics/CopdServiceRecordPatient/index.html

@ -8,21 +8,21 @@
    <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.sex==1?'男':detailInfo.sex==2?'女':'未知'}}</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 == 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 class="base-info-item">乳腺评估机构:{{detailInfo.assessHospital}}</div>
      <div class="base-info-item">乳腺评估人:{{detailInfo.assessDoctorName}}</div>
      <div class="base-info-item">乳腺初筛时间:{{detailInfo.breastUltrasoundInspectTime}}</div>
      <div class="base-info-item">乳腺评估时间:{{detailInfo.assessTime}}</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 class="base-info-item">宫颈评估机构:{{detailInfo.cervicalAssessHospital}}</div>
      <div class="base-info-item">宫颈评估人:{{detailInfo.cervicalAssessDoctorName}}</div>
      <div class="base-info-item">宫颈初筛时间:{{detailInfo.cervicalCancerInspectTime}}</div>
      <div class="base-info-item">宫颈评估时间:{{detailInfo.cervicalAssessTime}}</div>
    </div>
  </div>
  <div class="service-record-timeline">
@ -56,13 +56,13 @@
      </div>
    </div>
    <div class="record-list time-line">
      <div class="timeline" v-loading="loading">
      <div class="timeline" v-loading="loading" v-if="events.length">
        <div v-for="(event, eI) in events" :key="eI">
          <div class="timeline-item" v-if="event.flag">
            <div class="timeline-time" :id="'left-' + eI">{{ event.createTime&&event.createTime.substring(0,4)}}</div>
            <div class="timeline-time" :id="'left-' + eI">{{ event.time&&event.time.substring(0,4)}}</div>
          </div>
          <div class="timeline-item" :class="{'timeline-item-blue-dot': event.createTime != null}">
            <div class="timeline-time" :id="'left-' + eI">{{event.createTime&& event.createTime.slice(5) }}</div>
            <div class="timeline-time" :id="'left-' + eI">{{event.time&& event.time.slice(5) }}</div>
            <div class="timeline-content" :id="'right-' + eI">
              <div class="data-item">
                <div class="data-title">{{getTypeName(event.type)}}</div>
@ -76,19 +76,19 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">预约时间:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">证件号码:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.idcard}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">医保卡号:</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                      <template>{{event.ssc}}</template>
                    </span>
                  </div>
                </div>
@ -96,25 +96,25 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">{{event.type == 13 || event.type == 15 ? '是否检查' : '是否拒检'}} :</span>
                    <span style="color: #656565">
                      <template>{{event.type == 13 || event.type == 15 ? event.hospitalName : event.hospitalName }}</template>
                      <template>{{event.isReject}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                </div>
@ -122,25 +122,25 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">{{event.type == 14|| event.type == 16 ? '检查情况' : '是否检查'}} :</span>
                    <span style="color: #656565">
                      <template>{{event.type == 14|| event.type == 16 ? event.hospitalName : event.hospitalName}}</template>
                      <template>{{event.isReject}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访人员:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访时间:</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                </div>
@ -148,25 +148,25 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否治疗:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.isReject}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访人员:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访时间:</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                </div>
@ -174,25 +174,25 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否随访:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.isReject}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访人员:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">随访时间:</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                </div>
@ -200,31 +200,31 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">是否拒检:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.isReject}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员(妇科检查):</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员(分泌物):</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                      <template>{{event.inspectDoctor2}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.doctorName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                </div>
@ -232,13 +232,13 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                </div>
@ -246,19 +246,19 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                </div>
@ -266,25 +266,25 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">临床评估意见:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.isReject}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                </div>
@ -292,137 +292,43 @@
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">最后诊断:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.isReject}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查机构:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectOrg}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查人员:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.inspectDoctor}}</template>
                    </span>
                  </div>
                  <div style="width: 50%">
                    <span style="color: #9fa2a8">检查时间:</span>
                    <span style="color: #656565">
                      <template>{{event.hospitalName}}</template>
                      <template>{{event.time}}</template>
                    </span>
                  </div>
                </div>
                <div class="data-title" style="color: #12b7f5; font-size: 14px; cursor: pointer" @click="showDetail(event)">查看随访详情</div>
                <div class="data-title" style="color: #12b7f5; font-size: 14px; cursor: pointer" @click="showDetail(event)">查看详情</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div v-else style="font-size: 16px; text-align: center; margin-top: 100px">暂无数据</div>
    </div>
  </div>
  <div class="cops-service-record-bottom-box">
    <el-button @click="recordBack">返回</el-button>
  </div>
  <el-dialog title="随访详情" :visible.sync="dialog" width="50%" :destroy-on-close="true">
    <div class="copd-follow-up-dialog-box">
      <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" v-if="followInfo.createTime">随访时间:{{followInfo.createTime}}</div>
          <div class="copd-bb-base-info-item" v-if="followInfo.doctorName">随访医生:{{followInfo.doctorName}}</div>
          <div class="copd-bb-base-info-item" v-if="followInfo.hospitalName">随访机构: {{followInfo.hospitalName}}</div>
          <div class="copd-bb-base-info-item" v-if="followup">随访状态:{{followup}}</div>
          <div class="copd-bb-base-info-item" v-if="followInfo.status==4">失访原因:{{followInfo.lostReason}}</div>
          <div class="copd-bb-base-info-item" v-if="followInfo.status==3">不详原因:{{followInfo.lostReason}}</div>
        </div>
      </div>
      <template v-if="followInfo.status!='4'&&followInfo.status!='3'&&followInfo.status!='2'">
        <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" 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="nationName">民族:{{nationName}}</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">
              户籍地区:{{followInfo.registProvinceName}}{{followInfo.registCityName}}{{followInfo.registTownName}}{{followInfo.registStreetName}}
            </div>
            <div class="copd-bb-base-info-item" v-if="followInfo.registAddress">户籍地址:{{followInfo.registAddress}}</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" v-if="followInfo.isLive">生存状态:{{followInfo.isLive==1?'生存':'死亡'}}</div>
            <template v-if="followInfo.isLive==1">
              <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>
            </template>
            <!-- <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>
        <template v-if="followInfo.isLive==1">
          <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" 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="orGlevelName">
                <!-- 慢阻肺首次诊断机构级别:{{
                followInfo.firstVisitOrgLevel == 1 ? '三级医院' :
                followInfo.firstVisitOrgLevel == 2 ? '二级医院' :
                followInfo.firstVisitOrgLevel == 3 ? '村卫生室' :
                followInfo.firstVisitOrgLevel == 4 ? '乡镇卫生院/社区卫生服务机构' :
                followInfo.firstVisitOrgLevel == 5 ? '其他医疗卫生机构' :
                ''
              }} -->
                慢阻肺首次诊断机构级别:{{orGlevelName}}
              </div>
              <div class="copd-bb-base-info-item" v-if="followInfo.firstVisitOrg">首次诊断机构:{{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>
              <div class="copd-bb-base-info-item" v-if="followInfo.drugAfter">使用支气管扩张剂后FEV1/FVC(%):{{followInfo.drugAfter}}</div>
            </div>
          </div>
        </template>
        <div class="copd-bb-record-info" v-if="followInfo.isLive!=1">
          <div class="title ki-title ta-title">死亡情况</div>
          <div class="copd-bb-base-content">
            <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>
      </template>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button @click="dialog = false">关闭</el-button>
    </span>
  </el-dialog>
  <el-dialog title="记录" :visible.sync="formDialogVisible" width="50%">
  <el-dialog :title="title" :visible.sync="formDialogVisible" width="50%">
    <lasc-cervical-cytology-inspect-entityList></lasc-cervical-cytology-inspect-entityList>
  </el-dialog>
</div>

+ 12 - 173
component/statistics/CopdServiceRecordPatient/index.js

@ -14,15 +14,15 @@ $.ajax('../../../component/statistics/CopdServiceRecordPatient/index.html', {
Vue.component('Copd-service-record-patient', {
  template: template,
  props: ['detailInfo'],
  props: ['patient'],
  data() {
    return {
      dialog: false,
      loading: false,
      formDialogVisible: true,
      formDialogVisible: false,
      page: 1,
      size: 999,
      title: '',
      idcardTypeName: '',
      followInfo: {},
      events: [
@ -33,24 +33,7 @@ Vue.component('Copd-service-record-patient', {
        { date: '2026年', description: 'Description for event 4' },
        { title: 'Event 5', date: '2027年', description: 'Description for event 5' }
      ],
      dicName: [
        'jkcopd_back_type',
        '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',
        'jkcopd_diagnosticBasis'
      ],
      marriageArr: [],
      backTypeName: '',
      diagnosticBasisName: '',
@ -105,7 +88,8 @@ Vue.component('Copd-service-record-patient', {
      customizeYear: [],
      serviceNode: '',
      changeModule: 1,
      moreFlag: true
      moreFlag: true,
      detailInfo: {}
    }
  },
  methods: {
@ -139,166 +123,25 @@ Vue.component('Copd-service-record-patient', {
        })
      })
    },
    //字典
    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') {
          // var vm=this
          // vm.smokeArr=res.list
        } else if (value == 'jkcopd_drink') {
          // var vm=this
          // vm.drinkArr=res.list
        } else if (value == 'jkcopd_first_area') {
          var arr = res.list
          arr.forEach(function (item) {
            if (item.code == vm.followInfo.firstVisitArea) {
              vm.firstAreaName = item.value
            }
          })
        } 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') {
          var arr = res.list
          arr.forEach(function (item) {
            if (item.code == vm.followInfo.firstVisitOrgLevel) {
              vm.orGlevelName = item.value
            }
          })
        } 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
          vm.symptomsArr = []
          var symptoms = vm.followInfo.symptom.split(',')
          arr.forEach(function (item) {
            symptoms.forEach(function (v) {
              if (v == item.code) {
                vm.symptomsArr.push(item.value)
              }
            })
          })
          vm.symptom = vm.symptomsArr.join()
        } else if (value == 'jkcopd_diagnosticBasis') {
          var arr = res.list
          arr.forEach(function (item) {
            if (item.code == vm.followInfo.diagnosticBasis) {
              vm.diagnosticBasisName = item.value
            }
          })
        }
      })
    },
    recordBack() {
      this.$emit('back')
      EventBus.$emit('copd-reset-select')
    },
    getDealRecord() {
    getDealRecord(val) {
      this.serviceNode = val
      var vm = this
      vm.loading = true
      var params = {
        page: vm.page,
        size: vm.size,
        patient: vm.detailInfo && vm.detailInfo.patient ? vm.detailInfo.patient : null,
        patient: vm.patient,
        type: vm.serviceNode
      }
      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 {
        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)
          var time2 = res.detailModelList[index + 1] && res.detailModelList[index + 1].createTime && res.detailModelList[index + 1].createTime.slice(0, 4)
          if (index == 0) {
            item.flag = 1
          } else if (index != res.detailModelList.length - 1 && time1 == time2) {
            res.detailModelList[index + 1].flag = 0
          } else if (
            res.detailModelList.length - 1 == index &&
            res.detailModelList[index + 1] &&
            res.detailModelList[index + 1].createTime &&
            res.detailModelList[index] &&
            res.detailModelList[index].createTime
          ) {
            if (res.detailModelList[index - 1].createTime.slice(0, 4) == res.detailModelList[index].createTime.slice(0, 4)) {
              res.detailModelList[res.detailModelList.length - 1].flag = 0
            } else {
              res.detailModelList[res.detailModelList.length - 1].flag = 1
            }
          }
        })
      httpRequest.get('doctor/twoCancers/count/serviceRecord', { data: params }).then(function (res) {
        vm.events = res.obj.records
        vm.detailInfo = res.obj
        vm.loading = false
        vm.events = res.detailModelList
      })
    },
    showDetail(item) {
      var vm = this
      statisticAPI.followupDetail({ id: item.jkcopdFollowup.id }).then(function (res) {
        vm.followInfo = res.obj
        vm.dicName.forEach(function (item) {
          vm.getDictByDictName(item)
        })
        vm.getNation()
        // statisticAPI.getDictByDictName({name:'idCardType'}).then(function(res){
        //   res.list.forEach(function(item){
        //     if(item.code==vm.followInfo.idcardType){
        //       vm.idcardTypeName=item.value
        //     }
        //   })
        // })
        vm.dialog = true
      })
    },
    getYearList() {
      for (var i = 0; i < 6; i++) {
        var year = new Date().getFullYear() - i
@ -313,10 +156,6 @@ Vue.component('Copd-service-record-patient', {
    }
  },
  mounted() {
    // this.$nextTick(() => {
    //   this.setLeftHeights();
    // });
    console.log('创建66666')
    var vm = this
    this.getDealRecord()
    this.getYearList()

+ 5 - 19
component/statistics/LascPatient/index.html

@ -48,12 +48,11 @@
          <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
        </el-select>
      </div>
   
      <div class="searchDiv pb20">
        <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
        <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
        <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
        <el-button type="primary" @click="onClickServiceRecord">服务记录</el-button>
      </div>
    </div>
@ -64,9 +63,9 @@
      </el-table-column>
      <el-table-column label="操作" align="center" width="130px">
        <template slot-scope="scope">
          <el-button type="text" @click="openDialog(scope)" :disabled="!scope.row.code">编辑</el-button>
          <el-button type="text" @click="onClickServiceRecord(scope)" :disabled="!scope.row.code">服务记录</el-button>
          <el-button type="text" @click="openDialog(scope)" :disabled="!scope.row.code">就医记录</el-button>
          <el-button type="text" @click="openDialog(scope)">编辑</el-button>
          <el-button type="text" @click="onClickServiceRecord(scope.row)">服务记录</el-button>
          <el-button type="text">就医记录</el-button>
        </template>
      </el-table-column>
    </el-table>
@ -81,22 +80,9 @@
      class="pagination"></el-pagination>
  </template>
  <template v-if="serviceRecordVisable">
    <Copd-service-record-patient :detailInfo="currentEditData" @back="back"></Copd-service-record-patient>
    <Copd-service-record-patient :patient="currentEditData" @back="back"></Copd-service-record-patient>
  </template>
  <el-dialog title="编辑" :visible.sync="dialogVisible" width="70%">
    <lasc-modify-patient></lasc-modify-patient>
  </el-dialog>
  <el-dialog title="记录" :visible.sync="formDialogVisible" width="50%">
    <!-- <lasc-lascClinical-examination></lasc-lascClinical-examination> -->
    <!-- <lasc-breast-cduInspect-entity-list></lasc-breast-cduInspect-entity-list> -->
    <!-- <lasc-breast-molybdenum-inspect-list></lasc-breast-molybdenum-inspect-list> -->
    <!-- <lasc-breast-pathology-inspect-entity-list></lasc-breast-pathology-inspect-entity-list> -->
    <!-- <lasc-breast-surgery-inspect-entity></lasc-breast-surgery-inspect-entity> -->
    <!-- <lasc-breast-followUp></lasc-breast-followUp> -->
    <!-- <lasc-cervical-gynecological-examination-entityList></lasc-cervical-gynecological-examination-entityList> -->
    <!-- <lasc-cervical-hpv-entityList></lasc-cervical-hpv-entityList> -->
    <!-- <lasc-cervical-final-diagnosis-entity></lasc-cervical-final-diagnosis-entity> -->
    <!-- <lasc-cervical-histopathology-followup></lasc-cervical-histopathology-followup> -->
    <lasc-cervical-pathological-examination-list></lasc-cervical-pathological-examination-list>
  </el-dialog>
</div>

+ 15 - 31
component/statistics/LascPatient/index.js

@ -17,13 +17,13 @@ Vue.component('lasc-patient', {
  data: function () {
    return {
      years: [],
      currentEditData: {},
      currentEditData: '',
      dialogVisible: false,
      showTotalTable: true,
      serviceRecordVisable: false,
      yearType: '1',
      chooseYear: null,
      chooseTime1:null,
      chooseTime1: null,
      chooseTime: null,
      formDialogVisible: true,
      rangeOptions: [
@ -106,9 +106,7 @@ Vue.component('lasc-patient', {
        this.getHospital(selectedRole.code)
      } else {
        this.level = 3 // 社区管理
        this.rangeOptions = [
          { label: '社区', value: '2' }
        ]
        this.rangeOptions = [{ label: '社区', value: '2' }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.form = {
@ -155,16 +153,15 @@ Vue.component('lasc-patient', {
        ...this.form,
        page: this.page,
        size: this.size,
        timeType: this.yearType,
        timeType: this.yearType
      }
      console.log('11111111111111111',this)
      if (this.yearType && this.yearType==1) {
        if(this.chooseTime){
      console.log('11111111111111111', this)
      if (this.yearType && this.yearType == 1) {
        if (this.chooseTime) {
          params.startTime = this.chooseTime[0]
          params.endTime = this.chooseTime[1]
        }
       
      } else if(this.yearType && this.yearType==2) {
      } else if (this.yearType && this.yearType == 2) {
        if (this.chooseTime1) {
          params.startTime = this.chooseTime1[0]
          params.endTime = this.chooseTime1[1]
@ -180,7 +177,7 @@ Vue.component('lasc-patient', {
      })
    },
    onClickServiceRecord(record) {
      // this.currentEditData = record
      this.currentEditData = record.patient
      this.showTotalTable = false
      this.serviceRecordVisable = true
    },
@ -194,16 +191,15 @@ Vue.component('lasc-patient', {
        ...this.form,
        page: this.page,
        size: this.size,
        timeType: this.yearType,
        timeType: this.yearType
      }
      console.log('11111111111111111',this)
      if (this.yearType && this.yearType==1) {
        if(this.chooseTime){
      console.log('11111111111111111', this)
      if (this.yearType && this.yearType == 1) {
        if (this.chooseTime) {
          params.startTime = this.chooseTime[0]
          params.endTime = this.chooseTime[1]
        }
       
      } else if(this.yearType && this.yearType==2) {
      } else if (this.yearType && this.yearType == 2) {
        if (this.chooseTime1) {
          params.startTime = this.chooseTime1[0]
          params.endTime = this.chooseTime1[1]
@ -275,19 +271,7 @@ Vue.component('lasc-patient', {
      this.getList()
    },
    openDialog(scope) {
      layer.open({
        type: 2,
        //				  offset: ['100px'], //右下角弹出
        area: ['568px', '100%'],
        shade: 0.5,
        title: '查看筛选结果',
        fixed: true, //不固定
        maxmin: true,
        closeBtn: 1,
        shift: 5,
        shadeClose: false, //点击遮罩关闭层
        content: `../../jbsc/html/view_screening_results.html?resultCode=${scope.row.code}&opt=1`
      })
      this.dialogVisible = true
    }
  },
  mounted() {