qinxianzhangyao
2024-05-30 f4e73f262cd8fe054b84d5e99f083fba913e7c94
qxtj
9个文件已修改
2011 ■■■■ 已修改文件
src/api/team/tuanti.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/check/index.vue 1219 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/surveyTemplate/index.vue 82 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reservation/reservations/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/bill/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/biol/index.vue 649 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/circle/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/comp/index.vue 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/visit/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/team/tuanti.js
@@ -69,4 +69,12 @@
  })
}
export function addbatch(data) {
  return request({
    url: '/system/report/preview/batch',
    method: 'post',
    data: data
  })
}
src/views/doctor/check/index.vue
@@ -1,32 +1,77 @@
<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="submitForm"></el-input>
        <el-input
          v-model="queryParams.name"
          style="width: 116px"
          placeholder="请输入姓名"
          clearable
          @keyup.enter.native="submitForm"
        ></el-input>
      </el-form-item>
      <el-form-item label="体检号" prop="tjNumber">
        <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 240px" placeholder="请输入体检号" clearable
          @blur="hb" @keyup.enter.native="submitForm"></el-input>
        <el-input
          ref="inputName"
          v-model="queryParams.tjNumber"
          style="width: 240px"
          placeholder="请输入体检号"
          clearable
          @blur="hb"
          @keyup.enter.native="submitForm"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-button size="mini" type="primary" @click="submitForm" style="margin-right:15px;">搜索</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>
@@ -35,50 +80,119 @@
            <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="tjTime" width="160px">
        <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="tjTime"
          width="160px"
        >
        </el-table-column>
        <el-table-column label="体检时间" align="center" prop="tjTime" width="100px">
        <el-table-column
          label="体检时间"
          align="center"
          prop="tjTime"
          width="100px"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.tjTime, "{y}-{m}-{d}") }}</span>
          </template>
        </el-table-column>
        <el-table-column label="未检项" prop="notCheckeds" :show-overflow-tooltip="true" />
        <el-table-column
          label="未检项"
          prop="notCheckeds"
          :show-overflow-tooltip="true"
        />
        <el-table-column label="操作" align="center" width="130px">
          <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-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>
          </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>
@@ -87,10 +201,18 @@
          <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">
@@ -98,15 +220,42 @@
                <el-radio-button label="1">科室会诊</el-radio-button>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="选择科室" v-if="form.hzType == '1'" style="margin-top: 22px">
              <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-form-item
              label="选择科室"
              v-if="form.hzType == '1'"
              style="margin-top: 22px"
            >
              <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" style="margin-top: 22px">
              <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-form-item
              label="申请人"
              prop="hzDoctorId"
              style="margin-top: 22px"
            >
              <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>
@@ -123,27 +272,56 @@
      </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>
@@ -156,7 +334,12 @@
      </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>
@@ -177,8 +360,18 @@
          </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>
@@ -192,31 +385,51 @@
      </div>
    </el-dialog>
    <el-dialog title="PDF 预览" :visible.sync="dialogVisible" :close-on-click-modal="false">
    <el-dialog
      title="PDF 预览"
      :visible.sync="dialogVisible"
      :close-on-click-modal="false"
    >
      <div class="main">
        <iframe id="printIframe" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe>
        <iframe
          id="printIframe"
          :src="url"
          frameborder="0"
          style="width: 100%; height: 100%"
        ></iframe>
      </div>
    </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">
            font-size: 16px;
          "
          cellspacing="4"
        >
          <caption style="background-color: #f8f8f9; font-size: 18px">
            填写{{
      tableAll.cusName
    }}的体检资料
              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">
@@ -228,21 +441,36 @@
                <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">
              {{ tableAll.cusSex == 0? "男" :tableAll.cusSex == 1?"女":"未知"}}
              {{
                tableAll.cusSex == 0
                  ? "男"
                  : tableAll.cusSex == 1
                  ? "女"
                  : "未知"
              }}
            </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">
@@ -253,134 +481,289 @@
      </div>
      <div style="display: flex">
        <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 style="margin: 10px 10px">
          <el-button type="primary" size="mini" @click="historicalreport()">历史报告</el-button>
          <el-button type="primary" size="mini" @click="historicalreport()"
            >历史报告</el-button
          >
        </div>
        <div style="margin: 10px 10px">
          <el-button type="primary" size="mini" @click="jianqian">检前问诊</el-button>
          <el-button type="primary" size="mini" @click="jianqian"
            >检前问诊</el-button
          >
        </div>
      </div>
      <el-row>
        <el-col v-show="baogaoqian">
          <template>
            <el-tabs v-model="radio" type="border-card" @tab-click="handleTabClick" style="margin-left: 10px;">
              <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index">
                <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" fixed="left">
              <!-- <template slot-scope="scope">
            <el-tabs
              v-model="radio"
              type="border-card"
              @tab-click="handleTabClick"
              style="margin-left: 10px"
            >
              <el-tab-pane
                :label="item.proName"
                :name="item.proId"
                v-for="(item, index) in Parent"
                :key="index"
              >
                <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"
                    fixed="left"
                  >
                    <!-- <template slot-scope="scope">
            {{ scope.row.project.proName }}
          </template> -->
            </el-table-column>
            <el-table-column prop="proResult" label="检测结果" width="200">
              <template slot-scope="scope">
                <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off"
                  placeholder="请输入检测结果" @blur="handleInputConfirm(scope.row)" @input="vale"
                  @focus="handleInConfirm(scope.row)"></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>
              </template>
            </el-table-column>
            <el-table-column prop="project.proMetering" label="单位">
              <!-- <template slot-scope="scope">
                  </el-table-column>
                  <el-table-column
                    prop="proResult"
                    label="检测结果"
                    width="200"
                  >
                    <template slot-scope="scope">
                      <el-input
                        type="textarea"
                        autosize
                        size="mini"
                        v-model="scope.row.proResult"
                        autocomplete="off"
                        placeholder="请输入检测结果"
                        @blur="handleInputConfirm(scope.row)"
                        @input="vale"
                        @focus="handleInConfirm(scope.row)"
                      ></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
                      >
                    </template>
                  </el-table-column>
                  <el-table-column prop="project.proMetering" label="单位">
                    <!-- <template slot-scope="scope">
            {{ scope.row.standard.company }}
          </template> -->
            </el-table-column>
            <el-table-column prop="project.proScope" label="参考范围">
            </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>
              </template>
            </el-table-column>
            <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">
              <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" />
              </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>
              </template>
            </el-table-column>
          </el-table>
                  </el-table-column>
                  <el-table-column prop="project.proScope" label="参考范围">
                  </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>
                    </template>
                  </el-table-column>
                  <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"
                  >
                    <template slot-scope="scope">
                      <el-checkbox v-model="scope.row.isReturn"></el-checkbox>
                    </template>
                  </el-table-column>
                  <el-table-column prop="resultType" label="结果类型">
                    <template slot-scope="scope">
                      <dict-tag
                        :options="dict.type.tj_result_type"
                        :value="scope.row.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>
                    </template>
                  </el-table-column>
                </el-table>
          <div style="font-size: 14px; overflow-y: auto; height: 286px">
            <table style="
                width: 96%;
                margin: 4px 10px;
                border: 1px solid #dfe6ec;
                border-collapse: collapse;
              " 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-option>
                  </el-select>
                </td>
                <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
                  主检医师:
                </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-option>
                  </el-select>
                </td>
              </tr>
              <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" colspan="2">
                  <div style="margin: 0 0px 10px 15px">
                    <el-button type="primary" @click="propoChange" style="margin-top:10px;height:37px"
                      >快捷建议</el-button
                <div style="font-size: 14px; overflow-y: auto; height: 286px">
                  <table
                    style="
                      width: 96%;
                      margin: 4px 10px;
                      border: 1px solid #dfe6ec;
                      border-collapse: collapse;
                    "
                    cellspacing="4"
                  >
                    <tr
                      style="
                        border: 1px solid #dfe6ec;
                        border-collapse: collapse;
                      "
                    >
                    <el-button type="primary" @click="proposalChange" style="margin-top:10px;height:37px"
                      >生成建议</el-button
                      <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-option>
                        </el-select>
                      </td>
                      <td
                        style="
                          border: 1px solid #dfe6ec;
                          border-collapse: collapse;
                        "
                      >
                        主检医师:
                      </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-option>
                        </el-select>
                      </td>
                    </tr>
                    <tr
                      style="
                        border: 1px solid #dfe6ec;
                        border-collapse: collapse;
                      "
                    >
                  </div>
                  <el-input type="textarea" placeholder="请输入内容" v-model="proParentList.remark" rows="7">
                  </el-input>
                </td>
              </tr>
            </table>
                      <td
                        style="
                          border: 1px solid #dfe6ec;
                          border-collapse: collapse;
                        "
                      >
                        建议:
                      </td>
                      <td
                        style="
                          border: 1px solid #dfe6ec;
                          border-collapse: collapse;
                        "
                        colspan="2"
                      >
                        <div style="margin: 0 0px 10px 15px">
                          <el-button
                            type="primary"
                            @click="propoChange"
                            style="margin-top: 10px; height: 37px"
                            >快捷建议</el-button
                          >
                          <el-button
                            type="primary"
                            @click="proposalChange"
                            style="margin-top: 10px; height: 37px"
                            >生成建议</el-button
                          >
                        </div>
                        <el-input
                          type="textarea"
                          placeholder="请输入内容"
                          v-model="proParentList.remark"
                          rows="7"
                        >
                        </el-input>
                      </td>
                    </tr>
                  </table>
            <div slot="footer" class="dialog-footers">
              <!-- <el-button type="primary"
                  <div slot="footer" class="dialog-footers">
                    <!-- <el-button type="primary"
          size="mini"
          @click="radioChange"
          v-hasPermi="['system:notice:add']"
          v-show="tjStatus == '1'"
        >会诊申请</el-button> -->
              <el-button type="primary" @click="determine" v-show="tjStatus == '0'">提 交</el-button>
            </div>
          </div>
                    <el-button
                      type="primary"
                      @click="determine"
                      v-show="tjStatus == '0'"
                      >提 交</el-button
                    >
                  </div>
                </div>
              </el-tab-pane>
            </el-tabs>
          </template>
@@ -398,125 +781,273 @@
              </el-radio-group>
            </div>
          </template> -->
        </el-col>
        <el-col :span="18" v-show="baogaohou">
          <template>
            <el-tabs v-model="radio" type="border-card" @tab-click="handleTabClick" style="margin-left: 10px;">
              <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index">
                <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" fixed="left">
              <!-- <template slot-scope="scope">
            <el-tabs
              v-model="radio"
              type="border-card"
              @tab-click="handleTabClick"
              style="margin-left: 10px"
            >
              <el-tab-pane
                :label="item.proName"
                :name="item.proId"
                v-for="(item, index) in Parent"
                :key="index"
              >
                <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"
                    fixed="left"
                  >
                    <!-- <template slot-scope="scope">
            {{ scope.row.project.proName }}
          </template> -->
            </el-table-column>
            <el-table-column prop="proResult" label="检测结果" width="200">
              <template slot-scope="scope">
                <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off"
                  placeholder="请输入检测结果" @blur="handleInputConfirm(scope.row)" @input="vale"
                  @focus="handleInConfirm(scope.row)"></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>
              </template>
            </el-table-column>
            <el-table-column prop="project.proMetering" label="单位">
              <!-- <template slot-scope="scope">
                  </el-table-column>
                  <el-table-column
                    prop="proResult"
                    label="检测结果"
                    width="200"
                  >
                    <template slot-scope="scope">
                      <el-input
                        type="textarea"
                        autosize
                        size="mini"
                        v-model="scope.row.proResult"
                        autocomplete="off"
                        placeholder="请输入检测结果"
                        @blur="handleInputConfirm(scope.row)"
                        @input="vale"
                        @focus="handleInConfirm(scope.row)"
                      ></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
                      >
                    </template>
                  </el-table-column>
                  <el-table-column prop="project.proMetering" label="单位">
                    <!-- <template slot-scope="scope">
            {{ scope.row.standard.company }}
          </template> -->
            </el-table-column>
            <el-table-column prop="project.proScope" label="参考范围">
            </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>
              </template>
            </el-table-column>
            <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">
              <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" />
              </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>
              </template>
            </el-table-column>
          </el-table>
                  </el-table-column>
                  <el-table-column prop="project.proScope" label="参考范围">
                  </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>
                    </template>
                  </el-table-column>
                  <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"
                  >
                    <template slot-scope="scope">
                      <el-checkbox v-model="scope.row.isReturn"></el-checkbox>
                    </template>
                  </el-table-column>
                  <el-table-column prop="resultType" label="结果类型">
                    <template slot-scope="scope">
                      <dict-tag
                        :options="dict.type.tj_result_type"
                        :value="scope.row.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>
                    </template>
                  </el-table-column>
                </el-table>
          <div style="font-size: 14px; overflow-y: auto; height: 286px">
            <table style="
                width: 96%;
                margin: 4px 10px;
                border: 1px solid #dfe6ec;
                border-collapse: collapse;
              " 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-option>
                  </el-select>
                </td>
                <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
                  主检医师:
                </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-option>
                  </el-select>
                </td>
              </tr>
              <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
                <div style="margin: 0 0px 10px 15px">
                    <el-button type="primary" @click="propoChange" style="margin-top:10px;height:37px"
                      >快捷建议</el-button
                <div style="font-size: 14px; overflow-y: auto; height: 286px">
                  <table
                    style="
                      width: 96%;
                      margin: 4px 10px;
                      border: 1px solid #dfe6ec;
                      border-collapse: collapse;
                    "
                    cellspacing="4"
                  >
                    <tr
                      style="
                        border: 1px solid #dfe6ec;
                        border-collapse: collapse;
                      "
                    >
                    <el-button type="primary" @click="proposalChange" style="margin-top:10px;height:37px"
                      >生成建议</el-button
                      <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-option>
                        </el-select>
                      </td>
                      <td
                        style="
                          border: 1px solid #dfe6ec;
                          border-collapse: collapse;
                        "
                      >
                        主检医师:
                      </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-option>
                        </el-select>
                      </td>
                    </tr>
                    <tr
                      style="
                        border: 1px solid #dfe6ec;
                        border-collapse: collapse;
                      "
                    >
                  </div>
                <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">
                  </el-input>
                </td>
              </tr>
            </table>
                      <div style="margin: 0 0px 10px 15px">
                        <el-button
                          type="primary"
                          @click="propoChange"
                          style="margin-top: 10px; height: 37px"
                          >快捷建议</el-button
                        >
                        <el-button
                          type="primary"
                          @click="proposalChange"
                          style="margin-top: 10px; height: 37px"
                          >生成建议</el-button
                        >
                      </div>
                      <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"
                        >
                        </el-input>
                      </td>
                    </tr>
                  </table>
            <div slot="footer" class="dialog-footers">
              <!-- <el-button type="primary"
                  <div slot="footer" class="dialog-footers">
                    <!-- <el-button type="primary"
          size="mini"
          @click="radioChange"
          v-hasPermi="['system:notice:add']"
          v-show="tjStatus == '1'"
        >会诊申请</el-button> -->
              <el-button type="primary" @click="determine" v-show="tjStatus == '0'">提 交</el-button>
            </div>
          </div>
                    <el-button
                      type="primary"
                      @click="determine"
                      v-show="tjStatus == '0'"
                      >提 交</el-button
                    >
                  </div>
                </div>
              </el-tab-pane>
            </el-tabs>
          </template>
@@ -530,10 +1061,12 @@
              </el-radio-group>
            </div>
          </template> -->
        </el-col>
        <el-col :span="6" style="margin-top: 15px">
          <Historicalreport v-show="lishi" :reportHistorydata="reportHistorydata"></Historicalreport>
          <Historicalreport
            v-show="lishi"
            :reportHistorydata="reportHistorydata"
          ></Historicalreport>
        </el-col>
      </el-row>
@@ -580,8 +1113,16 @@
    </el-drawer>
    <Public ref="aaa" :row="row" @add="handleChanges" />
    <el-dialog title="提示" :visible.sync="jianqians" width="1000px" :before-close="handleClose1">
      <jianqianwenzhen :jianqianwenzhendata="jianqianwenzhendata" v-if="flags"></jianqianwenzhen>
    <el-dialog
      title="提示"
      :visible.sync="jianqians"
      width="1000px"
      :before-close="handleClose1"
    >
      <jianqianwenzhen
        :jianqianwenzhendata="jianqianwenzhendata"
        v-if="flags"
      ></jianqianwenzhen>
      <span slot="footer" class="dialog-footer">
        <el-button @click="jianqians = false">取 消</el-button>
      </span>
@@ -619,10 +1160,16 @@
export default {
  dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"],
  name: "check",
  components: { Public, Historicalreport, jianqianwenzhen,createproposal,proposal },
  components: {
    Public,
    Historicalreport,
    jianqianwenzhen,
    createproposal,
    proposal,
  },
  data() {
    return {
      creatobj:{},
      creatobj: {},
      dataText: [],
      propform: {},
      cusobj: {},
@@ -722,7 +1269,6 @@
      queryParam: {
        page: 1,
        pageSize: 1000,
      },
      rules: {
        hzType: [
@@ -759,17 +1305,15 @@
  methods: {
    /** 查询用户列表 */
    getListUser() {
      listUser().then(
        (response) => {
          this.userList = response.rows;
          this.userList.forEach((element) => {
            const userName = this.$store.state.user.name;
            if (userName == element.userName) {
              this.doctorName = element.nickName;
            }
          });
        }
      );
      listUser().then((response) => {
        this.userList = response.rows;
        this.userList.forEach((element) => {
          const userName = this.$store.state.user.name;
          if (userName == element.userName) {
            this.doctorName = element.nickName;
          }
        });
      });
      getInfo().then((response) => {
        this.info = response.user;
        this.deptId = response.user.deptId;
@@ -946,21 +1490,21 @@
      // this.$refs.proposal.getList();
    },
    eventchange(data) {
      this.dataText = data
      this.dataText = data;
      data.forEach((item) => {
        this.proParentList.remark += item.advice;
      });
    },
    proposalChange() {
      if (this.proParentList.remark) {
        this.creatobj = {proParentList:this.proParentList.remark, isZj: 1}
        this.creatobj = { proParentList: this.proParentList.remark, isZj: 1 };
        this.$refs.createproposal.open = true;
        this.$refs.createproposal.title = "常用建议维护";
      }else{
      } else {
        this.$message({
              type: "warning ",
              message: "请先填写总检建议",
            });
          type: "warning ",
          message: "请先填写总检建议",
        });
      }
    },
@@ -975,10 +1519,10 @@
          if (response.data) {
            if (response.data.date) {
              this.tableList = response.data.date;
              this.queryParams.tjNumber = ""
              this.queryParams.tjNumber = "";
            } else {
              this.tableList = response.data.customers;
              this.queryParams.tjNumber = ""
              this.queryParams.tjNumber = "";
            }
            this.total = response.data.total;
          } else {
@@ -986,7 +1530,6 @@
          }
        }
      });
      // this.loading = true;
      // (this.queryParams = {
@@ -1433,15 +1976,17 @@
            item.exceptionDesc = false;
          }
        });
        if (this.proParentList.xiaoJie.length != 0) {
          this.Parent.forEach((item3) => {
            if (item3.proId === this.nums) {
              this.proParentList.remark = item3.remark;
            }
          });
        } else {
          this.proParentList.remark = "";
        }
        if (this.proParentList.xiaoJie) {
          if (this.proParentList.xiaoJie.length != 0) {
            this.Parent.forEach((item3) => {
              if (item3.proId === this.nums) {
                this.proParentList.remark = item3.remark;
              }
            });
          }
        }else {
            this.proParentList.remark = "";
          }
      });
    },
@@ -1474,11 +2019,11 @@
    handleTabClick(tab, event) {
      // console.log(tab, event);
      // console.log(tab.name);
      this.Parent.forEach(item => {
      this.Parent.forEach((item) => {
        if (tab.name == item.proId) {
          this.Parentcheck = item;
        }
      })
      });
      this.$confirm(
        "检测到体检结果未提交,是否在离开该项目前提交修改?",
@@ -1581,15 +2126,17 @@
                item.exceptionDesc = false;
              }
            });
            if (this.proParentList.xiaoJie.length != 0) {
              this.Parent.forEach((item3) => {
                if (item3.proId === tab.name) {
                  this.remark =  this.Parentcheck.remark;
                }
              });
            } else {
              this.remark = "";
            }
            if (this.proParentList.xiaoJie) {
              if (this.proParentList.xiaoJie.length != 0) {
                this.Parent.forEach((item3) => {
                  if (item3.proId === tab.name) {
                    this.remark = this.Parentcheck.remark;
                  }
                });
              }
            }else {
                this.remark = "";
              }
          });
          getDeptAdvice(this.proId).then((response) => {
@@ -1597,13 +2144,13 @@
          });
        })
        .catch((action) => {
          if(action === "cancel"){
          if (action === "cancel") {
            this.$message({
            type: "warning",
            message: "放弃保存并离开",
          });
              type: "warning",
              message: "放弃保存并离开",
            });
          }
          this.proName = this.Parentcheck.proName;
          this.nums = tab.name;
          this.proId = tab.name;
@@ -1646,12 +2193,14 @@
                item.exceptionDesc = false;
              }
            });
            if (this.proParentList.xiaoJie.length != 0) {
              this.Parent.forEach((item3) => {
                if (item3.proId === tab.name) {
                  this.remark =  this.Parentcheck.remark;
                }
              });
            if (this.proParentList.xiaoJie) {
              if (this.proParentList.xiaoJie.length != 0) {
                this.Parent.forEach((item3) => {
                  if (item3.proId === tab.name) {
                    this.remark = this.Parentcheck.remark;
                  }
                });
              }
            } else {
              this.remark = "";
            }
@@ -1783,11 +2332,11 @@
          });
        })
        .catch((action) => {
          if(action === "cancel"){
          if (action === "cancel") {
            this.$message({
            type: "warning",
            message: "放弃保存并离开",
          });
              type: "warning",
              message: "放弃保存并离开",
            });
          }
          this.proName = item.proName;
          this.nums = proParentId;
src/views/hosp/surveyTemplate/index.vue
@@ -47,9 +47,20 @@
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate1"
          v-hasPermi="['hosp:surveyTemplate:edit']"
          >标题修改
        </el-button>
      </el-col>
      <el-col :span="1.5" v-if="details">
        <el-button
          type="primary"
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['hosp:surveyTemplate:edit']"
          >修改
          >详情修改
        </el-button>
      </el-col>
      <el-col :span="1.5">
@@ -194,7 +205,7 @@
            />
          </el-select>
        </el-form-item>
        <el-form-item label="备注" prop="remark">
          <el-input v-model="form.remark" placeholder="请输入备注" />
        </el-form-item>
@@ -204,8 +215,8 @@
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
     <!-- 问卷详情抽屉 -->
     <el-drawer
    <!-- 问卷详情抽屉 -->
    <el-drawer
      title="问卷详情"
      :visible.sync="drawer"
      :with-header="true"
@@ -308,7 +319,7 @@
  getneedDesign,
  getcanDelete,
  updateQybz,
  getQuesByMid
  getQuesByMid,
} from "@/api/hosp/surveyTemplate";
import { Message } from "element-ui";
export default {
@@ -332,12 +343,12 @@
      }
    };
    return {
      inpu:"",
      inpu: "",
      num: 0,
      myscore: null,
      // 遮罩层
      loading: true,
      drawer:false,
      drawer: false,
      previewKey: +new Date(),
      previewDialogVisible: false,
      // 选中数组
@@ -363,6 +374,7 @@
      // 是否显示弹出层
      open: false,
      DaTianYa: false,
      details: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
@@ -437,9 +449,21 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      console.log(selection);
      this.ids = selection.map((item) => item.mid);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
      if (selection.length != 0) {
        selection.forEach((item) => {
          if (item.designId != null) {
            this.details = true;
          } else {
            this.details = false;
          }
        });
      } else {
        this.details = false;
      }
    },
    handleTjSurveyTempQuesSelectionChange(selection) {
      this.selectionList = [];
@@ -449,7 +473,7 @@
    handleAdd() {
      this.reset();
      this.title = "添加问卷模板";
      getneedDesign().then((res) => {
        if (res.msg == "false") {
          this.DaTianYa = false;
@@ -504,19 +528,18 @@
        if (response.data.designId == null) {
          this.drawer = true;
          getQuesByMid(mid)
          .then((res) => {
            res.data.sort(
              (a, b) =>
                new Date(a.createTime).getTime() -
                new Date(b.createTime).getTime()
            ); //这是升序,倒序的话翻过来
            this.intList = res.data;
          })
          .catch((err) => {
            // 通过catch捕获错误消息
            return err;
          });
            .then((res) => {
              res.data.sort(
                (a, b) =>
                  new Date(a.createTime).getTime() -
                  new Date(b.createTime).getTime()
              ); //这是升序,倒序的话翻过来
              this.intList = res.data;
            })
            .catch((err) => {
              // 通过catch捕获错误消息
              return err;
            });
        } else {
          this.$router.push({
            query: { key: response.data.designId },
@@ -546,7 +569,6 @@
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const mid = row.mid || this.ids;
      getSurveyTemplate(mid).then((response) => {
        this.form = response.data;
@@ -563,6 +585,21 @@
          this.form.type = 1;
          this.toProjectHandle(this.form, "editor");
        }
      });
    },
    /** 修改按钮操作 */
    handleUpdate1(row) {
      this.reset();
      const mid = row.mid || this.ids;
      getSurveyTemplate(mid).then((response) => {
        this.form = response.data;
        if (response.data.tjSurveyTempQuesList.length >= 1) {
          this.form.tjSurveyTempQuesList = response.data.tjSurveyTempQuesList;
        }
        this.DaTianYa = false;
        this.title = "修改问卷模板";
        this.open = true;
      });
    },
    /** 提交按钮 */
@@ -582,7 +619,6 @@
              } else {
                this.toProjectHandle(response.data, "editor");
              }
              this.open = false;
              this.getList();
            });
src/views/reservation/reservations/index.vue
@@ -1455,7 +1455,7 @@
    // 最后提交按钮
    submitPrice() {
      let _this = this;
      if (_this.tableData1.length > 0) {
      // if (_this.tableData1.length > 0) {
        if (this.tableData[0]) {
          var pacId = this.tableData[0].pacId;
        }
@@ -1537,9 +1537,9 @@
        });
        this.getList();
        this.$tab.refreshPage();
      } else {
        this.$message.warning("请选择您要体检的内容");
      }
      // } else {
      //   this.$message.warning("请选择您要体检的内容");
      // }
    },
    // 最后提交按钮
    submitPrice1() {
src/views/system/bill/index.vue
@@ -198,8 +198,8 @@
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <span v-if="scope.row.tjType == '1'">个人</span>
            <span v-if="scope.row.tjType == '2'">团队</span>
            <span v-if="scope.row.tjType == '2'">个人</span>
            <span v-if="scope.row.tjType == '1'">团队</span>
          </template>
        </el-table-column>
        <el-table-column
src/views/system/biol/index.vue
@@ -1,19 +1,47 @@
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
    <el-form
      :model="queryParams"
      ref="queryForm"
      size="small"
      :inline="true"
      v-show="showSearch"
      label-width="68px"
    >
      <el-form-item label="姓名" prop="name">
        <el-input v-model="queryParams.name" placeholder="请输入姓名" style="width: 100px"
          @keyup.enter.native="handleQuery" />
        <el-input
          v-model="queryParams.name"
          placeholder="请输入姓名"
          style="width: 100px"
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="体检号" prop="tjNum">
        <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="请输入体检号" clearable
          @keyup.enter.native="handleQuery" ref="inputName" @blur="hb" />
        <el-input
          style="width: 170px"
          v-model="queryParams.tjNum"
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="handleQuery"
          ref="inputName"
          @blur="hb"
        />
      </el-form-item>
      <el-form-item label="报告时间" prop="createTimeList">
        <el-date-picker clearable v-model="createTimeList" type="daterange" range-separator="-" start-placeholder="开始日期"
          end-placeholder="结束日期" :picker-options="pickerOptions" :default-time="['00:00:00', '23:00:00']"
          format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择出报告时间"
          @change="dateChangebirthday1">
        <el-date-picker
          clearable
          v-model="createTimeList"
          type="daterange"
          range-separator="-"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          :picker-options="pickerOptions"
          :default-time="['00:00:00', '23:00:00']"
          format="yyyy-MM-dd HH:mm:ss"
          value-format="yyyy-MM-dd HH:mm:ss"
          placeholder="请选择出报告时间"
          @change="dateChangebirthday1"
        >
        </el-date-picker>
      </el-form-item>
      <!-- <el-form-item label="单位名称" prop="firmId">
@@ -25,8 +53,16 @@
      </el-form-item> -->
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="mini"
          @click="handleQuery"
          >搜索</el-button
        >
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
          >重置</el-button
        >
      </el-form-item>
    </el-form>
@@ -36,16 +72,34 @@
          v-hasPermi="['hosp:order:export']">导出</el-button>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="primary" size="mini" :disabled="multiple" @click="viewReport">批量体检报告打印</el-button>
        <el-button
          type="primary"
          size="mini"
          :disabled="multiple"
          @click="viewReport"
          >批量体检报告打印</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" size="mini" :disabled="multiple" @click="jiankangReport">健康检查表打印</el-button>
        <el-button
          type="primary"
          size="mini"
          :disabled="multiple"
          @click="jiankangReport"
          >健康检查表打印</el-button
        >
      </el-col>
      <!-- <el-col :span="1.5">
        <el-button type="primary" size="mini" :disabled="multiple" @click="jiankangReport">批量体检报告导出</el-button>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="primary" size="mini" :disabled="single" @click="baogaoyulan">报告预览</el-button>
        <el-button
          type="primary"
          size="mini"
          :disabled="single"
          @click="baogaoyulan"
          >报告预览</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <div id="main111">
@@ -65,57 +119,142 @@
    </div> -->
    <template>
      <el-table border style="margin: 14px; width: 99%" v-loading="loading"
        :default-sort="{ prop: 'reportTime', order: 'descending' }" :data="orderList"
        @selection-change="handleSelectionChange" ref="multipleTable">
        <el-table-column type="selection" width="40px" align="center" height="10px" fixed="left" />
      <el-table
        border
        style="margin: 14px; width: 99%"
        v-loading="loading"
        :default-sort="{ prop: 'reportTime', order: 'descending' }"
        :data="orderList"
        @selection-change="handleSelectionChange"
        ref="multipleTable"
      >
        <el-table-column
          type="selection"
          width="40px"
          align="center"
          height="10px"
          fixed="left"
        />
        <!-- <el-table-column label="序号" align="center" prop="newID" width="50px" fixed="left" height="10px" /> -->
        <el-table-column label="姓名" align="center" prop="tjCustomerName" height="10px" width="90px"
          :show-overflow-tooltip="true" />
        <el-table-column label="性别" align="center" prop="tjCustomerSex" width="55px" height="10px"
          :show-overflow-tooltip="true">
        <el-table-column
          label="姓名"
          align="center"
          prop="tjCustomerName"
          height="10px"
          width="90px"
          :show-overflow-tooltip="true"
        />
        <el-table-column
          label="性别"
          align="center"
          prop="tjCustomerSex"
          width="55px"
          height="10px"
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <span v-if="scope.row.tjCustomerSex == '0'">男</span>
            <span v-if="scope.row.tjCustomerSex == '1'">女</span>
            <span v-if="scope.row.tjCustomerSex == '2'">未知</span>
          </template>
        </el-table-column>
        <el-table-column label="年龄" align="center" prop="tjCustomerAge" height="10px" width="60px"
          :show-overflow-tooltip="true" />
        <el-table-column label="电话" align="center" prop="tjCustomerPhone" :show-overflow-tooltip="true" height="10px"
          width="110px" />
        <el-table-column label="体检类型" align="center" prop="tjType" height="10px" width="80px"
          :show-overflow-tooltip="true">
        <el-table-column
          label="年龄"
          align="center"
          prop="tjCustomerAge"
          height="10px"
          width="60px"
          :show-overflow-tooltip="true"
        />
        <el-table-column
          label="电话"
          align="center"
          prop="tjCustomerPhone"
          :show-overflow-tooltip="true"
          height="10px"
          width="110px"
        />
        <el-table-column
          label="体检类型"
          align="center"
          prop="tjType"
          height="10px"
          width="80px"
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <span v-if="scope.row.tjType == '1'">团队</span>
            <span v-if="scope.row.tjType == '2'">个人</span>
          </template>
        </el-table-column>
        <el-table-column label="体检号" align="center" prop="tjNumber" :show-overflow-tooltip="true" width="160px" />
        <el-table-column label="所选套餐" align="center" prop="pacName" height="10px" :show-overflow-tooltip="true"
          width="140px" />
        <el-table-column label="登记人" align="center" prop="createBy" height="10px" :show-overflow-tooltip="true"
          width="100px" />
        <el-table-column label="登记时间" align="center" prop="createTime" width="155px" height="10px"
          :show-overflow-tooltip="true">
        <el-table-column
          label="体检号"
          align="center"
          prop="tjNumber"
          :show-overflow-tooltip="true"
          width="160px"
        />
        <el-table-column
          label="所选套餐"
          align="center"
          prop="pacName"
          height="10px"
          :show-overflow-tooltip="true"
          width="140px"
        />
        <el-table-column
          label="登记人"
          align="center"
          prop="createBy"
          height="10px"
          :show-overflow-tooltip="true"
          width="100px"
        />
        <el-table-column
          label="登记时间"
          align="center"
          prop="createTime"
          width="155px"
          height="10px"
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.createTime) }}</span>
          </template>
        </el-table-column>
        <el-table-column label="报告时间" align="center" prop="reportTime" width="155px" height="10px" sortable
          :show-overflow-tooltip="true">
        <el-table-column
          label="报告时间"
          align="center"
          prop="reportTime"
          width="155px"
          height="10px"
          sortable
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.reportTime) }}</span>
          </template>
        </el-table-column>
        <el-table-column label="打印时间" align="center" prop="printLastTime" width="155px" height="10px"
          :show-overflow-tooltip="true">
        <el-table-column
          label="打印时间"
          align="center"
          prop="printLastTime"
          width="155px"
          height="10px"
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.printLastTime) }}</span>
          </template>
        </el-table-column>
        <el-table-column label="备注" align="center" prop="remark" height="10px" :show-overflow-tooltip="true" />
        <el-table-column
          label="备注"
          align="center"
          prop="remark"
          height="10px"
          :show-overflow-tooltip="true"
        />
        <!-- <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" height="10px"
          width="60px">
@@ -129,15 +268,21 @@
    <div class="pag">
      <div class="pag1">
        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
          :limit.sync="queryParams.pageSize" @pagination="getList" />
        <pagination
          v-show="total > 0"
          :total="total"
          :page.sync="queryParams.pageNum"
          :limit.sync="queryParams.pageSize"
          @pagination="getList"
        />
      </div>
    </div>
    <el-drawer title="我是标题" :visible.sync="drawer" :with-header="false">
      <div class="drawer1">
        <div class="drawer2">
          <span>体检人:{{ gation.tjCustomerName }}</span><br />
          <span>体检人:{{ gation.tjCustomerName }}</span
          ><br />
          <span>联系电话:{{ gation.tjCustomerPhone }}</span>
        </div>
        <span class="drawer6">基本信息</span>
@@ -154,23 +299,46 @@
            <span>体检号:{{ gation.tjNumber }}</span>
            <span>报告时间:{{ gation.createTime }}</span>
            <span>体检时间:{{ gation.finishTime }}</span>
            <el-button type="primary" plain size="mini" @click="viewReport1">最近一次体检报告</el-button>
            <el-button type="primary" plain size="mini" @click="viewReport1"
              >最近一次体检报告</el-button
            >
          </div>
        </div>
        <span class="drawer6">调查问卷</span>
        <div>
          <el-form ref="form" :model="form" label-width="80px" style="margin-top: 20px">
          <el-form
            ref="form"
            :model="form"
            label-width="80px"
            style="margin-top: 20px"
          >
            <el-form-item label="调查结果:">
              <el-select v-model="value" placeholder="请选择调查结果">
                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="血压:" style="width: 300px" prop="pressure">
              <el-input v-model="form.pressure" placeholder="请输入血压"></el-input>
              <el-input
                v-model="form.pressure"
                placeholder="请输入血压"
              ></el-input>
            </el-form-item>
            <el-form-item label="低压:" placeholder="请输入低压" style="width: 300px" prop="lowPressure">
              <el-input v-model="form.lowPressure" placeholder="请输入低压"></el-input>
            <el-form-item
              label="低压:"
              placeholder="请输入低压"
              style="width: 300px"
              prop="lowPressure"
            >
              <el-input
                v-model="form.lowPressure"
                placeholder="请输入低压"
              ></el-input>
            </el-form-item>
            <div style="margin-left: 20px">
              <el-form-item label="1.是否吸烟">
@@ -211,28 +379,54 @@
      </div>
    </el-drawer>
    <el-dialog title="PDF 预览" :visible.sync="dialogVisible" :close-on-click-modal="false">
    <el-dialog
      title="PDF 预览"
      :visible.sync="dialogVisible"
      :close-on-click-modal="false"
    >
      <div class="main">
        <iframe id="printIframe" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe>
        <iframe
          id="printIframe"
          :src="url"
          frameborder="0"
          style="width: 100%; height: 100%"
        ></iframe>
      </div>
    </el-dialog>
    <el-dialog title="导诊单" :visible.sync="daoZhenDan" :close-on-click-modal="false">
    <el-dialog
      title="导诊单"
      :visible.sync="daoZhenDan"
      :close-on-click-modal="false"
    >
      <div class="main">
        <iframe id="printIframe" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe>
        <iframe
          id="printIframe"
          :src="url"
          frameborder="0"
          style="width: 100%; height: 100%"
        ></iframe>
      </div>
    </el-dialog>
    <div style="
    <div
      style="
        position: absolute;
        bottom: 100px;
        left: 500px;
        width: 700px;
        display: none;
      ">
      "
    >
      <div id="printBill">
        <barcode :value="barcode" :height="40" :width="2" :margin="0">条形码加载失败</barcode>
        <div style="font-size: 13px; color: #000000" v-for="(item, index) in DataList1" :key="index">
        <barcode :value="barcode" :height="40" :width="2" :margin="0"
          >条形码加载失败</barcode
        >
        <div
          style="font-size: 13px; color: #000000"
          v-for="(item, index) in DataList1"
          :key="index"
        >
          <div style="width: 48%; margin-top: 10px">
            姓名:{{ item.tjCustomerName }}
          </div>
@@ -261,9 +455,19 @@
        </div>
      </div>
    </div>
    <el-dialog class="dia" title="PDF 预览" :visible.sync="dialogVisibles" :close-on-click-modal="false">
    <el-dialog
      class="dia"
      title="PDF 预览"
      :visible.sync="dialogVisibles"
      :close-on-click-modal="false"
    >
      <div class="main">
        <iframe id="printIframe" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe>
        <iframe
          id="printIframe"
          :src="url"
          frameborder="0"
          style="width: 100%; height: 100%"
        ></iframe>
      </div>
    </el-dialog>
    <!--:before-close="handleClose"  -->
@@ -281,9 +485,7 @@
<script>
import print from "print-js";
import { getInfo } from "@/api/login";
import {
  isPdfOrJimu
} from "@/api/doctor/checkAll";
import { isPdfOrJimu } from "@/api/doctor/checkAll";
import {
  listOrder,
  getNumber,
@@ -292,11 +494,16 @@
  hasReport,
  hasPrintCode,
  getOrderListOO,
  getNewDateList
  getNewDateList,
} from "@/api/hosp/order";
import moment from "moment";
import ViewPdf from "@/components/ViewPdf";
import { SubmitCompany, getCompany, queryCompany } from "@/api/team/tuanti";
import {
  SubmitCompany,
  getCompany,
  queryCompany,
  addbatch,
} from "@/api/team/tuanti";
import { chownSync } from "fs";
export default {
  components: {
@@ -305,7 +512,7 @@
  name: "Order",
  data() {
    return {
      radios: '1',
      radios: "1",
      dialogVisiblese: false,
      createTimeList: "",
      // printObj: {
@@ -518,23 +725,9 @@
        this.add0(mm)
      );
    },
    /** 点击显示体检报告报表*/
    // viewReport() {
    //   const tjNumber = this.report;
    //   const viewNum = "792997692059705344";
    //   const params = { viewNum, tjNumber };
    //   hasReportEnd(tjNumber).then((res) => {
    //     if (res == 1) {
    //       this.$tab.openPage('体检报告', '/report/viewReport', params);
    //     } else {
    //       this.$message.error("该用户体检暂未完成,无法打印体检报告!");
    //     }
    //   });
    // },
    jiankangReport() {
      this.dialogVisiblese = true;
    },
    timjiao() {
      if (this.radios == "1") {
@@ -569,19 +762,22 @@
                type: "warning",
              });
            } else {
              console.log(response)
              console.log(response);
              this.dialogVisible = true;
              this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url
            }
          });
        } else {
          let url = response.data.url
          let url = response.data.url;
          const params = { url };
          this.$tab.openPage("健康证检查表", "/report/zongjianjiankangzheng", params);
          this.$tab.openPage(
            "健康证检查表",
            "/report/zongjianjiankangzheng",
            params
          );
        }
      })
      });
    },
    //打印小票
    printHandle() {
@@ -598,116 +794,179 @@
      }, 100);
    },
    // 体检报告
    viewReport() {
      const flag = true;
      this.failList = [];
      this.form.name = "报告打印失败:";
      if (this.report.length == 1) {
        this.report.forEach((item) => {
          this.tjNumber = item;
        });
        getPdf(this.tjNumber, flag).then((response) => {
          if (response.size == 0) {
            // this.$message.error("该用户体检报告暂未完成!");
            this.dialogVisible = false;
            this.DataList1.forEach((item) => {
              if (item.tjNumber === this.tjNumber) {
                this.userId = item.tjCustomerName;
                this.form.name += item.tjCustomerName;
              }
            });
            this.failList.push({
              tjNumber: this.tjNumber,
              printStatus: 0,
              printBy: this.userId,
              createBy: this.userIds,
            });
          } else {
            this.dialogVisible = true;
            this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url
            console.log(this.url)
            this.DataList1.forEach((item) => {
              if (item.tjNumber === this.tjNumber) {
                this.userId = item.tjCustomerName;
                // this.form.name += item.tjCustomerName
              }
            });
            this.failList.push({
              tjNumber: this.tjNumber,
              printStatus: 1,
              printBy: this.userId,
              createBy: this.userIds,
            });
    base64ToBlob({ b64data = "", contentType = "", sliceSize = 512 } = {}) {
      return new Promise((resolve, reject) => {
        // 使用 atob() 方法将数据解码
        let byteCharacters = atob(b64data);
        let byteArrays = [];
        for (
          let offset = 0;
          offset < byteCharacters.length;
          offset += sliceSize
        ) {
          let slice = byteCharacters.slice(offset, offset + sliceSize);
          let byteNumbers = [];
          for (let i = 0; i < slice.length; i++) {
            byteNumbers.push(slice.charCodeAt(i));
          }
          this.joggle(this.failList);
          this.getList();
        });
      } else {
        for (let i = 0; i < this.report.length; i++) {
          if (i <= this.report.length) {
            this.tjNumber = this.report[i];
            getPdf(this.tjNumber, flag).then((response) => {
              if (response.size == 0) {
                this.failList = [];
                this.DataList1.forEach((item) => {
                  if (item.tjNumber === this.report[i]) {
                    this.userId = item.tjCustomerName;
                    if (this.form.name) {
                      this.form.name =
                        this.form.name + "," + item.tjCustomerName;
                    }
                  }
                });
                this.failList.push({
                  tjNumber: this.report[i],
                  printStatus: 0,
                  printBy: this.userId,
                  createBy: this.userIds,
                });
                this.joggle(this.failList);
                this.getList();
                // this.$message.error("该用户体检报告暂未完成!");
                this.dialogVisible = false;
              } else {
                this.failList = [];
                this.DataList1.forEach((item) => {
                  if (item.tjNumber === this.report[i]) {
                    this.userId = item.tjCustomerName;
                  }
                });
                this.failList.push({
                  tjNumber: this.report[i],
                  printStatus: 1,
                  printBy: this.userId,
                  createBy: this.userIds,
                });
                this.joggle(this.failList);
                this.getList();
                // this.dialogVisible = true;
                // this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url
                const newBlob = [];
                newBlob.push(response);
                const blob = new Blob(newBlob, { type: "application/pdf" });
                var date = new Date().getTime();
                var ifr = document.createElement("iframe");
                ifr.style.frameborder = "no";
                ifr.style.display = "none";
                ifr.style.pageBreakBefore = "always";
                ifr.setAttribute("id", "printPdf" + date);
                ifr.setAttribute("name", "printPdf" + date);
                ifr.src = window.URL.createObjectURL(blob);
                document.body.appendChild(ifr);
                this.doPrint("printPdf" + date);
                window.URL.revokeObjectURL(ifr.src); // 释放URL 对象
              }
            });
          }
          // 8 位无符号整数值的类型化数组。内容将初始化为 0。
          // 如果无法分配请求数目的字节,则将引发异常。
          byteArrays.push(new Uint8Array(byteNumbers));
        }
      }
        let result = new Blob(byteArrays, {
          type: contentType,
        });
        result = Object.assign(result, {
          // jartto: 这里一定要处理一下 URL.createObjectURL
          preview: URL.createObjectURL(result),
          // name: `图片示例.png`,
        });
        resolve(result);
      });
    },
    /** 点击显示体检报告报表*/
    viewReport() {
      let data = this.report.join(",");
      addbatch(data).then((res) => {
        let base64 = res.file;
        this.base64ToBlob({
          b64data: base64,
          contentType: "application/pdf",
        }).then((res) => {
          this.dialogVisible = true;
          // 转后后的blob对象
          console.log("blob", res.preview);
          // var ifr = document.createElement("iframe");
          // ifr.style.frameborder = "no";
          // ifr.style.display = "none";
          // ifr.style.pageBreakBefore = "always";
          // ifr.setAttribute("id", "printPdf");
          // ifr.setAttribute("name", "printPdf");
          // ifr.src =res.preview
          // document.body.appendChild(ifr);
          // this.doPrint("printPdf");
          // window.URL.revokeObjectURL( ifr.src);
          try {
            this.url = res.preview;
          } catch (error) {
            this.url = window.webkitURL.createObjectURL(res.preview);
          }
        });
      });
    },
    // 体检报告
    // viewReport() {
    //   const flag = true;
    //   this.failList = [];
    //   this.form.name = "报告打印失败:";
    //   if (this.report.length == 1) {
    //     this.report.forEach((item) => {
    //       this.tjNumber = item;
    //     });
    //     getPdf(this.tjNumber, flag).then((response) => {
    //       if (response.size == 0) {
    //         // this.$message.error("该用户体检报告暂未完成!");
    //         this.dialogVisible = false;
    //         this.DataList1.forEach((item) => {
    //           if (item.tjNumber === this.tjNumber) {
    //             this.userId = item.tjCustomerName;
    //             this.form.name += item.tjCustomerName;
    //           }
    //         });
    //         this.failList.push({
    //           tjNumber: this.tjNumber,
    //           printStatus: 0,
    //           printBy: this.userId,
    //           createBy: this.userIds,
    //         });
    //       } else {
    //         this.dialogVisible = true;
    //         this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url
    //         console.log(this.url)
    //         this.DataList1.forEach((item) => {
    //           if (item.tjNumber === this.tjNumber) {
    //             this.userId = item.tjCustomerName;
    //             // this.form.name += item.tjCustomerName
    //           }
    //         });
    //         this.failList.push({
    //           tjNumber: this.tjNumber,
    //           printStatus: 1,
    //           printBy: this.userId,
    //           createBy: this.userIds,
    //         });
    //       }
    //       this.joggle(this.failList);
    //       this.getList();
    //     });
    //   } else {
    //     for (let i = 0; i < this.report.length; i++) {
    //       if (i <= this.report.length) {
    //         this.tjNumber = this.report[i];
    //         getPdf(this.tjNumber, flag).then((response) => {
    //           if (response.size == 0) {
    //             this.failList = [];
    //             this.DataList1.forEach((item) => {
    //               if (item.tjNumber === this.report[i]) {
    //                 this.userId = item.tjCustomerName;
    //                 if (this.form.name) {
    //                   this.form.name =
    //                     this.form.name + "," + item.tjCustomerName;
    //                 }
    //               }
    //             });
    //             this.failList.push({
    //               tjNumber: this.report[i],
    //               printStatus: 0,
    //               printBy: this.userId,
    //               createBy: this.userIds,
    //             });
    //             this.joggle(this.failList);
    //             this.getList();
    //             // this.$message.error("该用户体检报告暂未完成!");
    //             this.dialogVisible = false;
    //           } else {
    //             this.failList = [];
    //             this.DataList1.forEach((item) => {
    //               if (item.tjNumber === this.report[i]) {
    //                 this.userId = item.tjCustomerName;
    //               }
    //             });
    //             this.failList.push({
    //               tjNumber: this.report[i],
    //               printStatus: 1,
    //               printBy: this.userId,
    //               createBy: this.userIds,
    //             });
    //             this.joggle(this.failList);
    //             this.getList();
    //             // this.dialogVisible = true;
    //             // this.url = window.webkitURL.createObjectURL(response); //将后端返回的blob文件读取出url
    //             const newBlob = [];
    //             newBlob.push(response);
    //             const blob = new Blob(newBlob, { type: "application/pdf" });
    //             var date = new Date().getTime();
    //             var ifr = document.createElement("iframe");
    //             ifr.style.frameborder = "no";
    //             ifr.style.display = "none";
    //             ifr.style.pageBreakBefore = "always";
    //             ifr.setAttribute("id", "printPdf" + date);
    //             ifr.setAttribute("name", "printPdf" + date);
    //             ifr.src = window.URL.createObjectURL(blob);
    //             document.body.appendChild(ifr);
    //             this.doPrint("printPdf" + date);
    //             window.URL.revokeObjectURL(ifr.src); // 释放URL 对象
    //           }
    //         });
    //       }
    //     }
    //   }
    // },
    doPrint(val) {
      var ordonnance = document.getElementById(val).contentWindow;
@@ -717,7 +976,7 @@
    },
    joggle(failList) {
      getprint(failList).then((res) => { });
      getprint(failList).then((res) => {});
    },
    // 最近一次体检报告
@@ -771,9 +1030,9 @@
      if (this.createTimeList) {
        this.queryParams.djbeginTime = this.createTimeList[0];
        this.queryParams.djendTime = this.createTimeList[1];
      }else if(this.createTimeList == null){
      } else if (this.createTimeList == null) {
        this.queryParams.djbeginTime = null;
        this.queryParams.djendTime =null;
        this.queryParams.djendTime = null;
      }
      this.loading = true;
@@ -853,7 +1112,7 @@
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList = []
      this.createTimeList = [];
      this.resetForm("queryForm");
      this.handleQuery();
    },
src/views/system/circle/index.vue
@@ -166,8 +166,8 @@
          :show-overflow-tooltip="true"
        >
          <template slot-scope="scope">
            <span v-if="scope.row.tjType == '1'">个人</span>
            <span v-if="scope.row.tjType == '2'">团队</span>
            <span v-if="scope.row.tjType == '2'">个人</span>
            <span v-if="scope.row.tjType == '1'">团队</span>
          </template>
        </el-table-column>
        <el-table-column
src/views/system/comp/index.vue
@@ -913,7 +913,6 @@
  ],
  data() {
    let checkPhoneNum = (rule, value, callback) => {
      console.log(value);
      let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
      if (value == "" && value == undefined && !value) {
        return callback("");
@@ -940,6 +939,7 @@
      pacList: [],
      dataList: [],
      groupList: [],
      dataLists: [],
      // 非单个禁用
      single: true,
      singleg: true,
@@ -1339,6 +1339,7 @@
    // 单项选定按钮
    resetright() {
      this.queryParams.price = 0;
      // this.dataLists=JSON.parse(JSON.stringify(this.dataList));
      this.dataList.forEach((item) => {
        this.$refs.tre.toggleRowSelection(item, false);
        this.OnenewpacName.push(item);
@@ -1372,23 +1373,25 @@
    // 套餐单项获取
    handleChangeOne(selection) {
      this.pacList = selection;
      this.OnenewpacName = [];
      this.OnenewpacName.forEach((item,index) => {
        this.dataLists.forEach(item1 => {
          if(item.proId == item1.proId){
            this.OnenewpacName.splice(index,1)
          }
        })
      })
      this.dataLists = [];
      this.queryParams.price = 0;
      this.pacList.forEach((item) => {
        item.tjProjectList.forEach(item2 => {
          this.OnenewpacName.push(item2)
        })
        this.OnenewpacName.forEach((item) => {
          this.queryParams.price += item.proPrice;
        });
        this.dataLists = item.tjProjectList;
      });
      if(this.dataList.length >= 1){
        console.log(11111)
          this.dataList.forEach(item1 => {
            this.OnenewpacName.push(item1)
          })
        }
      this.dataLists.forEach((item2) => {
        this.OnenewpacName.push(item2);
      });
      this.OnenewpacName.forEach((item) => {
        this.queryParams.price += item.proPrice;
      });
      if (selection.length > 1) {
        let del_row = selection.shift();
        this.$refs.tbone.toggleRowSelection(del_row, false); //设置这一行取消选中
src/views/system/visit/index.vue
@@ -68,8 +68,8 @@
        <el-table-column label="体检类型" align="center" prop="tjType" height="10px" width="80px"
          :show-overflow-tooltip="true">
          <template slot-scope="scope">
            <span v-if="scope.row.tjType == '1'">个人</span>
            <span v-if="scope.row.tjType == '2'">团队</span>
            <span v-if="scope.row.tjType == '2'">个人</span>
            <span v-if="scope.row.tjType == '1'">团队</span>
          </template>
        </el-table-column>
        <el-table-column label="体检号" align="center" prop="tjNumber" :show-overflow-tooltip="true" width="160px" />