qx
qx
2025-04-18 7b41c32c0107960760594ce7db9a130d93c9ad92
src/views/doctor/imaging/index.vue
@@ -1,70 +1,32 @@
<template>
  <div>
    <el-form
      :model="queryParams"
      ref="tableList"
      :inline="true"
      label-width="76px"
      style="margin-top: 10px"
    >
    <el-form :model="queryParams" ref="tableList" :inline="true" label-width="76px" style="margin-top: 10px">
      <el-form-item label="姓名" prop="name">
        <el-input
          v-model="queryParams.name"
          style="width: 116px"
          placeholder="请输入姓名"
          clearable
          @keyup.enter.native="handleQuery"
        ></el-input>
        <el-input v-model="queryParams.name" style="width: 116px" placeholder="请输入姓名" clearable
          @keyup.enter.native="handleQuery"></el-input>
      </el-form-item>
      <el-form-item label="体检号" prop="tjNumber">
        <el-input
          ref="inputName"
          v-model="queryParams.tjNumber"
          style="width: 240px"
          placeholder="请输入体检号"
        ></el-input>
        <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 240px" placeholder="请输入体检号" @blur="hb"
          @keyup.enter.native="submitForm"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button size="mini" type="primary" @click="submitForm"
          >搜索</el-button
        >
        <el-button size="mini" type="primary" @click="submitForm" style="margin-right:15px;">搜索</el-button>
        <el-button size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>
    <div style="display: flex">
      <el-radio-group
        v-model="tjStatus"
        @input="radioChange"
        style="margin-left: 30px"
      >
      <el-radio-group v-model="tjStatus" @input="radioChange" style="margin-left: 30px">
        <el-radio-button label="0">未检</el-radio-button>
        <el-radio-button label="1">已检</el-radio-button>
      </el-radio-group>
    </div>
    <template>
      <el-table
        :data="tableList"
        v-loading="loading"
        ref="table"
        height="536px"
        style="margin: 20px; width: 98%"
        border=""
        :cell-class-name="myclass"
      >
      <el-table :data="tableList" v-loading="loading" ref="table" height="536px" style="margin: 20px; width: 98%"
        border="" :cell-class-name="myclass">
        <!-- <template slot="empty">数据正在加载中</template> -->
        <el-table-column
          label="体检号"
          align="center"
          prop="tjNumber"
          width="160px"
        />
        <el-table-column
          label="姓名"
          align="center"
          prop="cusName"
          width="90px"
        />
        <el-table-column label="体检号" align="center" prop="tjNumber" width="160px" />
        <el-table-column label="姓名" align="center" prop="cusName" width="90px" />
        <el-table-column label="性别" align="center" prop="cusSex" width="60px">
          <template slot-scope="scope">
            <span v-if="scope.row.cusSex == '0'">男</span>
@@ -73,121 +35,47 @@
            <span v-if="scope.row.cusSex == '9'">未说明性别</span>
          </template>
        </el-table-column>
        <el-table-column
          label="出生日期"
          align="center"
          prop="cusBrithday"
          width="100px"
        />
        <el-table-column
          label="电话"
          align="center"
          prop="cusPhone"
          width="100px"
        />
        <el-table-column
          label="体检类型"
          align="center"
          prop="tjType"
          width="80px"
        />
        <el-table-column
          label="登记时间"
          align="center"
          prop="createTime"
          width="160px"
        />
        <el-table-column
          label="体检时间"
          align="center"
          prop="tjTime"
          width="100px"
        />
        <el-table-column
          label="未检项"
          prop="notCheckeds"
          :show-overflow-tooltip="true"
        />
        <el-table-column label="操作" align="center" width="130px">
        <el-table-column label="出生日期" align="center" prop="cusBrithday" width="100px" />
        <el-table-column label="电话" align="center" prop="cusPhone" width="110px" />
        <el-table-column label="体检类型" align="center" prop="tjType" width="80px" />
        <el-table-column label="登记时间" align="center" prop="createTime" width="160px" />
        <el-table-column label="体检时间" align="center" prop="tjTime" width="160px" />
        <el-table-column label="未检项" prop="notCheckeds" :show-overflow-tooltip="true" />
        <el-table-column label="操作" align="center" width="180px">
          <template slot-scope="scope">
            <el-button
              type="primary"
              icon="el-icon-first-aid-kit"
              size="mini"
              @click="Changeapplyfor(scope.row)"
              title="会诊申请"
              v-if="tjStatus == '1'"
            ></el-button>
            <el-button
              type="primary"
              icon="el-icon-share"
              size="mini"
              @click="handleClick(scope.row)"
              title="详情"
            ></el-button>
            <el-button
              type="primary"
              icon="el-icon-picture"
              size="mini"
              @click="handlepicture(scope.row)"
              title="报告"
            ></el-button>
            <el-button type="primary" icon="el-icon-first-aid-kit" size="mini" @click="Changeapplyfor(scope.row)"
              title="会诊申请" v-if="tjStatus == '1'"></el-button>
            <el-button type="primary" icon="el-icon-share" size="mini" @click="handleClick(scope.row)"
              title="详情"></el-button>
            <el-button type="primary" icon="el-icon-picture" size="mini" @click="handlepicture(scope.row)"
              title="报告"></el-button>
          </template>
        </el-table-column>
      </el-table>
      <div class="pag">
        <div class="pag1">
          <pagination
            v-show="total > 0"
            :total="total"
            :page.sync="queryParams.page"
            :limit.sync="queryParams.pageSize"
            @pagination="getList"
          />
          <pagination v-show="total >= 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.pageSize"
            @pagination="getList" />
        </div>
      </div>
    </template>
    <el-dialog
      :title="title"
      :visible.sync="open"
      width="1000px"
      append-to-body
    >
    <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
      <el-row>
        <el-col :span="9" v-if="hzlogList.length >= 1">
          <h3>会诊申请记录</h3>
          <el-table :data="hzlogList" style="width: 100%" border>
            <el-table-column
              label="申请人"
              align="center"
              prop="hzDoctorName"
              width="100px"
            />
            <el-table-column label="申请人" align="center" prop="hzDoctorName" width="100px" />
            <el-table-column label="科室" align="center" prop="hzDeptName" />
            <el-table-column label="操作" align="center" width="150px">
              <template slot-scope="scope">
                <el-button
                  type="primary"
                  size="mini"
                  @click="hadleedit(scope.row)"
                  v-if="
                    scope.row.hzReplyLogsList.length == 0 &&
                    scope.row.hzDoctorId == info.userId
                  "
                  >修改</el-button
                >
                <el-button
                  type="primary"
                  size="mini"
                  v-if="
                    scope.row.hzReplyLogsList.length == 0 &&
                    scope.row.hzDoctorId == info.userId
                  "
                  @click="handledele(scope.row)"
                  >删除</el-button
                >
                <el-button type="primary" size="mini" @click="hadleedit(scope.row)" v-if="scope.row.hzReplyLogsList.length == 0 &&
                  scope.row.hzDoctorId == info.userId
                  ">修改</el-button>
                <el-button type="primary" size="mini" v-if="scope.row.hzReplyLogsList.length == 0 &&
                  scope.row.hzDoctorId == info.userId
                  " @click="handledele(scope.row)">删除</el-button>
              </template>
            </el-table-column>
          </el-table>
@@ -196,18 +84,10 @@
          <h3 style="text-align: center">会诊记录申请</h3>
          <el-form ref="form" :model="form" :rules="rules" label-width="80px">
            <el-form-item label="姓名" prop="cusName">
              <el-input
                v-model="form.cusName"
                placeholder="请输入姓名"
                disabled
              />
              <el-input v-model="form.cusName" placeholder="请输入姓名" disabled />
            </el-form-item>
            <el-form-item label="体检号" prop="tjNumber">
              <el-input
                v-model="form.tjNumber"
                placeholder="请输入体检号"
                disabled
              />
              <el-input v-model="form.tjNumber" placeholder="请输入体检号" disabled />
            </el-form-item>
            <el-form-item label="会诊科室" prop="hzType">
              <el-radio-group v-model="form.hzType">
@@ -216,33 +96,14 @@
              </el-radio-group>
            </el-form-item>
            <el-form-item label="选择科室" v-if="form.hzType == '1'">
              <el-select
                v-model="form.hzDeptId"
                multiple
                filterable
                style="width: 100%"
              >
                <el-option
                  v-for="item in deptList"
                  :key="item.deptId"
                  :label="item.deptName"
                  :value="item.deptId"
                ></el-option>
              <el-select v-model="form.hzDeptId" multiple filterable style="width: 100%">
                <el-option v-for="item in deptList" :key="item.deptId" :label="item.deptName"
                  :value="item.deptId"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="申请人" prop="hzDoctorId">
              <el-select
                v-model="form.hzDoctorId"
                placeholder="请选择"
                style="width: 100%"
                filterable
              >
                <el-option
                  v-for="item in userList"
                  :key="item.userId"
                  :label="item.nickName"
                  :value="item.userId"
                >
              <el-select v-model="form.hzDoctorId" placeholder="请选择" style="width: 100%" filterable>
                <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
                </el-option>
              </el-select>
            </el-form-item>
@@ -259,56 +120,27 @@
      </div>
    </el-dialog>
    <el-dialog
      :title="title"
      :visible.sync="foropen"
      width="1000px"
      append-to-body
    >
    <el-dialog :title="title" :visible.sync="foropen" width="1000px" append-to-body>
      <el-row>
        <el-col :span="8" v-if="hasdeptList.length >= 1">
          <h3 style="text-align: center">会诊申请记录</h3>
          <el-table
            :data="hasdeptList"
            style="width: 100%"
            border
            ref="tab"
            @selection-change="handleSelectionChange"
          >
          <el-table :data="hasdeptList" style="width: 100%" border ref="tab" @selection-change="handleSelectionChange">
            <el-table-column type="selection" width="50" align="center" />
            <el-table-column
              label="申请人"
              align="center"
              prop="hzDoctorName"
              width="100px"
            />
            <el-table-column
              label="科室"
              align="center"
              prop="hzDeptName"
              width="260px"
            />
            <el-table-column label="申请人" align="center" prop="hzDoctorName" width="100px" />
            <el-table-column label="科室" align="center" prop="hzDeptName" width="260px" />
          </el-table>
        </el-col>
        <el-col :span="16" style="padding: 0 10px">
          <h3 style="text-align: center">会诊意见</h3>
          <div v-if="hzReplyLogsList.length >= 1" style="margin-bottom: 10px">
            <div
              v-for="(item, index) in hzReplyLogsList"
              :key="index"
              style="padding-bottom: 5px; border-bottom: 1px solid black"
            >
            <div v-for="(item, index) in hzReplyLogsList" :key="index"
              style="padding-bottom: 5px; border-bottom: 1px solid black">
              <!-- <div>会诊科室:{{ item.replyDeptName }}</div> -->
              <div>医生:{{ item.hzDoctorName }}</div>
              <div>回复:{{ item.replyContent }}</div>
            </div>
          </div>
          <el-input
            type="textarea"
            :rows="2"
            placeholder="请输入内容"
            v-model="textarea"
          >
          <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="textarea">
          </el-input>
          <div style="padding: 10px 10px">
            <el-button type="primary" @click="submitFormreply">回复</el-button>
@@ -321,20 +153,10 @@
      </div> -->
    </el-dialog>
    <el-dialog
      :title="title"
      :visible.sync="tuweiopen"
      width="1000px"
      append-to-body
    >
    <el-dialog :title="title" :visible.sync="tuweiopen" width="1000px" append-to-body>
      <el-row>
        <el-col :span="10">
          <el-table
            :data="proimgList"
            border
            ref="tabss"
            @selection-change="handleproimgChange"
          >
          <el-table :data="proimgList" border ref="tabss" @selection-change="handleproimgChange">
            <el-table-column type="selection" width="50" align="center" />
            <el-table-column label="项目" align="center" prop="proName" />
            <el-table-column label="医生" align="center" prop="createBy" />
@@ -342,11 +164,7 @@
        </el-col>
        <el-col :span="12">
          <div class="demo-image__preview">
            <el-image
              style="width: 240px; height: 120px; margin-left: 10px"
              :src="url"
              :preview-src-list="srcList"
            >
            <el-image style="width: 240px; height: 120px; margin-left: 10px" :src="url" :preview-src-list="srcList">
            </el-image>
          </div>
        </el-col>
@@ -356,12 +174,7 @@
        <el-button @click="cancel">取 消</el-button>
      </div> -->
    </el-dialog>
    <el-dialog
      title="填写是否重大阳性"
      :visible.sync="checkval"
      width="800px"
      append-to-body
    >
    <el-dialog title="填写是否重大阳性" :visible.sync="checkval" width="800px" append-to-body>
      <el-form ref="form" :model="formIn" label-width="100px">
        <el-form-item label="姓名">
          <el-input v-model="formIn.cusName" disabled></el-input>
@@ -382,18 +195,8 @@
          </el-radio-group>
        </el-form-item>
        <el-form-item label="等级">
          <el-select
            v-model="formIn.level"
            placeholder="请选择"
            filterable
            style="width: 100%"
          >
            <el-option
              v-for="item in dict.type.lj_positive"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
          <el-select v-model="formIn.level" placeholder="请选择" filterable style="width: 100%">
            <el-option v-for="item in dict.type.lj_positive" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
@@ -408,35 +211,24 @@
    </el-dialog>
    <!-- 点击右边弹出层 -->
    <el-drawer
      :visible.sync="drawer"
      :with-header="false"
      size="70%"
      :before-close="handleClose"
    >
    <el-drawer :visible.sync="drawer" :with-header="false" size="70%" :before-close="handleClose">
      <div style="font-size: 14px">
        <table
          style="
        <table style="
            width: 96%;
            height:70px
            height:70px;
            margin: 10px 10px;
            margin-bottom:10px
            margin-bottom:10px;
            border: 1px solid #dfe6ec;
            border-collapse: collapse;
            font-size:16px
          "
          cellspacing="4"
        >
          " cellspacing="4">
          <caption style="background-color: #f8f8f9; font-size: 18px">
            填写{{
              tableAll.cusName
            }}的体检资料
          </caption>
          <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
            <td
              style="border: 1px solid #dfe6ec; border-collapse: collapse"
              align="right"
            >
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse" align="right">
              姓名:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
@@ -448,10 +240,7 @@
                <span v-if="scope.row.cusSex == '9'">未说明性别</span>
              </template>
            </td>
            <td
              style="border: 1px solid #dfe6ec; border-collapse: collapse"
              align="right"
            >
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse" align="right">
              性别:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
@@ -459,19 +248,13 @@
            </td>
          </tr>
          <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
            <td
              style="border: 1px solid #dfe6ec; border-collapse: collapse"
              align="right"
            >
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse" align="right">
              体检单号:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              {{ tableAll.tjNumber }}
            </td>
            <td
              style="border: 1px solid #dfe6ec; border-collapse: collapse"
              align="right"
            >
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse" align="right">
              体检时间:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
@@ -482,33 +265,22 @@
      </div>
      <div>
        <div style="margin: 10px 10px" v-if="hasdeptList.length >= 1">
          <el-button type="primary" size="mini" @click="Changeapply()"
            >会诊申请</el-button
          >
          <el-button type="primary" size="mini" @click="Changeapply()">会诊申请</el-button>
        </div>
      </div>
      <template>
        <div style="margin-left: 10px">
          <el-radio-group
            v-model="radio"
            v-for="(item, index) in Parent"
            :key="index"
            @input="radioChange1(item.proId, item)"
          >
          <el-radio-group v-model="radio" v-for="(item, index) in Parent" :key="index"
            @input="radioChange1(item.proId, item)">
            <el-radio-button :label="item.proId">{{
              item.proName
            }}</el-radio-button>
          </el-radio-group>
        </div>
      </template>
      <el-table
        v-loading="loading"
        :data="proParentList.sons"
        border
        height="460px"
        style="width: 96%; margin: 10px 10px"
      >
      <el-table v-loading="loading" :data="proParentList.sons" border height="460px"
        style="width: 96%; margin: 10px 10px">
        <el-table-column prop="project.proName" label="检测项目" width="150">
          <!-- <template slot-scope="scope">
            {{ scope.row.project.proName }}
@@ -516,23 +288,13 @@
        </el-table-column>
        <el-table-column prop="proResult" label="检测结果" width="200">
          <template slot-scope="scope">
            <el-input
              size="mini"
              type="textarea"
              autosize
              v-model="scope.row.proResult"
              autocomplete="off"
              placeholder="请输入检测结果"
              @blur="handleInputConfirm(scope.row)"
              @input="vale"
            ></el-input>
            <el-input size="mini" type="textarea" autosize v-model="scope.row.proResult" autocomplete="off"
              placeholder="请输入检测结果" @blur="handleInputConfirm(scope.row)" @input="vale"></el-input>
          </template>
        </el-table-column>
        <el-table-column label="规则" width="55">
          <template slot-scope="scope">
            <el-button class="blue-button" @click="handleguize(scope.row)"
              >...</el-button
            >
            <el-button class="blue-button" @click="handleguize(scope.row)">...</el-button>
          </template>
        </el-table-column>
        <el-table-column prop="project.proMetering" label="单位">
@@ -544,87 +306,48 @@
        </el-table-column>
        <el-table-column prop="conclusion" label="结果结论" width="200">
          <template slot-scope="scope">
            <el-input
              size="mini"
              type="textarea"
              autosize
              v-model="scope.row.conclusion"
              autocomplete="off"
              placeholder="请输入检测结果"
              disabled
            ></el-input>
            <el-input size="mini" type="textarea" autosize v-model="scope.row.conclusion" autocomplete="off"
              placeholder="请输入检测结果" disabled></el-input>
          </template>
        </el-table-column>
        <el-table-column
          prop="exceptionDesc"
          label="是否异常"
          width="80px"
          align="center"
        >
        <el-table-column prop="exceptionDesc" label="是否异常" width="80px" align="center">
          <template slot-scope="scope">
            <el-checkbox v-model="scope.row.exceptionDesc"></el-checkbox>
          </template>
        </el-table-column>
        <el-table-column
          prop="isReturn"
          label="是否复诊"
          width="80px"
          align="center"
        >
        <el-table-column prop="isReturn" label="是否复诊" width="80px" align="center">
          <template slot-scope="scope">
            <el-checkbox v-model="scope.row.isReturn"></el-checkbox>
          </template>
        </el-table-column>
        <el-table-column prop="project.resultType" label="结果类型">
          <template slot-scope="scope">
            <dict-tag
              :options="dict.type.tj_result_type"
              :value="scope.row.project.resultType"
            />
            <dict-tag :options="dict.type.tj_result_type" :value="scope.row.project.resultType" />
          </template>
        </el-table-column>
        <el-table-column prop="isPositive" label="重大阳性">
          <template slot-scope="scope">
            <el-switch
              v-model="scope.row.isPositive"
              active-value="1"
              inactive-value="0"
              @change="checkboxchange(scope.row)"
            ></el-switch>
            <el-switch v-model="scope.row.isPositive" active-value="1" inactive-value="0"
              @change="checkboxchange(scope.row)"></el-switch>
          </template>
        </el-table-column>
      </el-table>
      <div style="font-size: 14px; overflow-y: auto; height: 286px">
        <table
          style="
        <table style="
            width: 96%;
            margin: 4px 10px;
            border: 1px solid #dfe6ec;
            border-collapse: collapse;
          "
          cellspacing="4"
        >
          " cellspacing="4">
          <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              病种选择:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              <el-select
                v-model="value"
                multiple
                placeholder="请选择"
                style="width: 100%; height: 45px"
                v-if="deptAdviceList"
                @change="sel"
                filterable
              >
                <el-option
                  v-for="item in deptAdviceList"
                  :key="item.id"
                  :label="item.title"
                  :value="item.id"
                >
              <el-select v-model="value" multiple placeholder="请选择" style="width: 100%; height: 45px"
                v-if="deptAdviceList" @change="sel" filterable>
                <el-option v-for="item in deptAdviceList" :key="item.id" :label="item.title" :value="item.id">
                </el-option>
              </el-select>
            </td>
@@ -632,28 +355,15 @@
              主检医师:
            </td>
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              <el-select
                v-model="doctorName"
                placeholder="请选择"
                style="width: 100%"
                v-if="deptAdviceList"
                @change="selName"
                filterable
              >
                <el-option
                  v-for="item in userList"
                  :key="item.userId"
                  :label="item.nickName"
                  :value="item.userId"
                >
              <el-select v-model="doctorName" placeholder="请选择" style="width: 100%" v-if="deptAdviceList"
                @change="selName" filterable>
                <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
                </el-option>
              </el-select>
            </td>
            <td>
              <div>
                <el-button type="primary" size="mini" @click="Graphicreport()"
                  >图文报告</el-button
                >
                <el-button type="primary" size="mini" @click="Graphicreport()">图文报告</el-button>
              </div>
            </td>
          </tr>
@@ -661,16 +371,8 @@
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
              建议:
            </td>
            <td
              style="border: 1px solid #dfe6ec; border-collapse: collapse"
              colspan="2"
            >
              <el-input
                type="textarea"
                placeholder="请输入内容"
                v-model="proParentList.remark"
                rows="7"
              >
            <td style="border: 1px solid #dfe6ec; border-collapse: collapse" colspan="2">
              <el-input type="textarea" placeholder="请输入内容" v-model="proParentList.remark" rows="7">
              </el-input>
            </td>
          </tr>
@@ -683,9 +385,8 @@
          v-hasPermi="['system:notice:add']"
          v-show="tjStatus == '1'"
        >会诊申请</el-button> -->
          <el-button type="primary" @click="determine" v-show="tjStatus == '0'"
            >提 交</el-button
          >
        <!-- v-show="tjStatus == '0'" -->
          <el-button type="primary" @click="determine" >提 交</el-button>
        </div>
      </div>
      <!-- <div style="background-color: #f3f3f3;font-size:14px;overflow-y:auto;height: calc(100% - 11%);">
@@ -730,15 +431,21 @@
      </div> -->
    </el-drawer>
    <Public ref="aaa" :row="row" @add="handleChanges" />
    <Packages ref="bbb" :baogao="baogao" @add="handleChanges" />
  </div>
</template>
<script>
import Public from "@/components/public";
import Packages from "@/components/Packages";
import { getInfo } from "@/api/login";
import { getDicts } from "@/api/system/dict/data";
import {
  huaYangetProList,
  getTjYxjcList
} from "@/api/system/package";
import {
  yingXiangGetProList,
  getPhotoList,
  getaddRemark,
  getParentList,
@@ -749,12 +456,12 @@
import { addBigPositive } from "@/api/doctor/bigPositive";
import { addReplylog, hzHasDept } from "@/api/hosp/replylog";
import { listHzlog, addHzlog, delHzlog, updateHzlog } from "@/api/hosp/hzlog";
import { listUser } from "@/api/system/user";
import { getlistUser } from "@/api/system/user";
import { getChildList } from "@/api/system/dept";
export default {
  dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"],
  name: "check",
  components: { Public },
  components: { Public, Packages },
  data() {
    return {
      url: "",
@@ -794,6 +501,7 @@
      tableList: [],
      deptList: [],
      tableAll: {},
      baogao: [],
      row: {},
      info: {},
      allList: [],
@@ -837,6 +545,7 @@
      queryParams: {
        page: 1,
        pageSize: 10,
        pageNum: 1,
        tjNumber: "",
        type: "",
        name: null,
@@ -874,9 +583,15 @@
  methods: {
    /** 查询用户列表 */
    getListUser() {
      listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
      getlistUser().then(
        (response) => {
          this.userList = response.rows;
          this.userList = response.data;
          this.userList.forEach((element) => {
            const userName = this.$store.state.user.name;
            if (userName == element.userName) {
              this.doctorName = element.nickName;
            }
          });
        }
      );
      getInfo().then((response) => {
@@ -964,7 +679,7 @@
    getList() {
      this.loading = true;
      this.queryParams.type = this.tjStatus;
      huaYangetProList(this.queryParams).then((response) => {
      yingXiangGetProList(this.queryParams).then((response) => {
        if (response.code == 200) {
          this.loading = false;
          if (response.data) {
@@ -985,7 +700,7 @@
    radioChange(val) {
      this.loading = true;
      this.queryParams.type = val;
      huaYangetProList(this.queryParams).then((response) => {
      yingXiangGetProList(this.queryParams).then((response) => {
        if (response.code == 200) {
          this.loading = false;
          if (response.data) {
@@ -996,6 +711,12 @@
          }
        }
      });
    },
    hb() {
      console.log(this.queryParams.tjNumber);
      if (this.queryParams.tjNumber != "") {
        this.submitForm();
      }
    },
    // 搜索
@@ -1045,17 +766,7 @@
      this.Hzlog(this.form.tjNumber);
    },
    Graphicreport() {
      // this.drawer = false;
      this.tuweiopen = true;
      let data = {
        tjNumber: this.tjNumber,
        proId: this.proId,
      };
      getPhotoList(data).then((res) => {
        this.proimgList = res.data;
      });
    },
    handleproimgChange(selected) {
      const val = selected;
      selected.forEach((item) => {
@@ -1068,7 +779,7 @@
      this.url = selected[0].checkPicture;
      this.srcList.push(selected[0].checkPicture);
    },
    submittuwei() {},
    submittuwei() { },
    checkboxchange(val) {
      this.project = val.project;
@@ -1268,10 +979,105 @@
    },
    handlepicture(row) {
      let configKey = "pacsUrl";
      getConfigKey(configKey).then((res) => {
        window.open(res.msg, "_blank");
      });
      // let configKey = "pacsUrl";
      //   getConfigKey(configKey).then((res) => {
      //     window.open(res.msg, "_blank");
      //   });
      let dictType = "dict_ageunit"
      getDicts(dictType).then(res => {
        if (res.code == 200) {
          res.data.forEach(item => {
            if (row.age_unit == item.dictValue) {
              row.age_unit = item.dictLabel
            }
          })
          let dictTypes = "sys_user_sex"
          getDicts(dictTypes).then(res => {
            if (res.code == 200) {
              res.data.forEach(item => {
                if (row.cusSex == item.dictValue) {
                  row.cusSex = item.dictLabel
                }
              })
              let  data = {
                  patname: row.cusName,
                  sex: row.cusSex,
                  patage: row.age,
                  patagename: row.age_unit,
                  patbirth: row.cusBrithday
                }
              // let data = {
              //   patname: "脱能娥",
              //   sex: "女",
              //   patage: "60",
              //   patagename: "岁",
              //   patbirth: "1963-01-01"
              // }
              getTjYxjcList(data).then(res => {
                this.baogao = res.data
              })
              this.$refs.bbb.open = true;
              // this.$refs.bbb.getAllList();
              this.$refs.bbb.title = "报告字典";
            }
          })
        }
      })
    },
    Graphicreport() {
      // this.drawer = false;
      // this.tuweiopen = true;
      // let data = {
      //   tjNumber: this.tjNumber,
      //   proId: this.proId,
      // };
      // getPhotoList(data).then((res) => {
      //   this.proimgList = res.data;
      // });
      let dictType = "dict_ageunit"
      getDicts(dictType).then(res => {
        if (res.code == 200) {
          res.data.forEach(item => {
            if (this.tableAll.age_unit == item.dictValue) {
              this.tableAll.age_unit = item.dictLabel
            }
          })
          let dictTypes = "sys_user_sex"
          getDicts(dictTypes).then(res => {
            if (res.code == 200) {
              res.data.forEach(item => {
                if (this.tableAll.cusSex == item.dictValue) {
                  this.tableAll.cusSex = item.dictLabel
                }
              })
              let data = {
                patname: this.tableAll.cusName,
                sex: this.tableAll.cusSex,
                patage: this.tableAll.age,
                patagename: this.tableAll.age_unit,
                patbirth: this.tableAll.cusBrithday
              }
              // let data = {
              //   patname: "脱能娥",
              //   sex: "女",
              //   patage: "60",
              //   patagename: "岁",
              //   patbirth: "1963-01-01"
              // }
              getTjYxjcList(data).then(res => {
                this.baogao = res.data
              })
              this.$refs.bbb.open = true;
              // this.$refs.bbb.getAllList();
              this.$refs.bbb.title = "报告字典";
            }
          })
        }
      })
    },
    // 点击详情
@@ -1286,9 +1092,16 @@
      if (this.tableAll.cusSex === 1) {
        this.tableAll.cusSex = "女";
      }
      if (this.tableAll.cusSex === 2) {
        this.tableAll.cusSex = "未知";
      }
      this.tjNumber = row.tjNumber;
      let num = 0;
      getParentList(this.tjNumber).then((response) => {
      let data = {
        type:this.tjStatus,
        tjNumber:this.tjNumber
      }
      getParentList(data).then((response) => {
        if (response.data) {
          this.loading = false;
          this.Parent = response.data;
@@ -1355,6 +1168,14 @@
        this.proParentList.sons.forEach((item) => {
          this.doctorName = item.doctorName;
          if (this.doctorName == null) {
            this.userList.forEach((element) => {
              const userName = this.$store.state.user.name;
              if (userName == element.userName) {
                this.doctorName = element.nickName;
              }
            });
          }
          if (item.isReturn == 1) {
            item.isReturn = true;
@@ -1426,6 +1247,14 @@
          this.userList.forEach((item) => {
            if (this.doctorName == item.nickName) {
              this.doctorName = item.userId;
              if (this.doctorName == null) {
                this.userList.forEach((element) => {
                  const userName = this.$store.state.user.name;
                  if (userName == element.userName) {
                    this.doctorName = element.nickName;
                  }
                });
              }
            }
          });
          this.proParentList.sons.forEach((item) => {
@@ -1490,6 +1319,14 @@
            }
            this.proParentList.sons.forEach((item) => {
              this.doctorName = item.doctorName;
              if (this.doctorName == null) {
                this.userList.forEach((element) => {
                  const userName = this.$store.state.user.name;
                  if (userName == element.userName) {
                    this.doctorName = element.nickName;
                  }
                });
              }
              if (item.isReturn == 1) {
                item.isReturn = true;
              }
@@ -1544,6 +1381,14 @@
            }
            this.proParentList.sons.forEach((item) => {
              this.doctorName = item.doctorName;
              if (this.doctorName == null) {
                this.userList.forEach((element) => {
                  const userName = this.$store.state.user.name;
                  if (userName == element.userName) {
                    this.doctorName = element.nickName;
                  }
                });
              }
              if (item.isReturn == 1) {
                item.isReturn = true;
              }
@@ -1585,6 +1430,14 @@
      this.userList.forEach((item) => {
        if (this.doctorName == item.nickName) {
          this.doctorName = item.userId;
          if (this.doctorName == null) {
            this.userList.forEach((element) => {
              const userName = this.$store.state.user.name;
              if (userName == element.userName) {
                this.doctorName = element.nickName;
              }
            });
          }
        }
      });
      this.proParentList.sons.forEach((item) => {