qx
qx
2025-06-10 ad48cb8922b57bb9726257761228a04b2cfc93ed
src/views/system/comp/index.vue
@@ -1,184 +1,60 @@
<template>
  <div class="app-container">
    <el-form
      :model="queryParams"
      ref="queryForm"
      size="small"
      :inline="true"
      v-show="showSearch"
      label-width="68px"
      @submit.native.prevent
    >
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"
      @submit.native.prevent>
      <el-form-item label="单位名称" prop="cnName">
        <el-input
          ref="inputName"
          v-model="queryParams.cnName"
          placeholder="请输入单位名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
        <el-input ref="inputName" v-model="queryParams.cnName" placeholder="请输入单位名称" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="mini"
          @click="handleQuery"
          style="margin: 0 15px"
          >搜索</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"
          style="margin: 0 15px">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['system:comp:add']"
          >新增</el-button
        >
        <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd"
          v-hasPermi="['system:comp:add']">新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['system:comp:edit']"
          >修改</el-button
        >
        <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
          v-hasPermi="['system:comp:edit']">修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['system:comp:remove']"
          >删除</el-button
        >
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
          v-hasPermi="['system:comp:remove']">删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['system:comp:export']"
          >导出</el-button
        >
        <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport"
          v-hasPermi="['system:comp:export']">导出</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="mainDepartment"
          v-hasPermi="['system:comp:edit']"
          >维护套餐</el-button
        >
        <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" @click="mainDepartment"
          v-hasPermi="['system:comp:edit']">维护套餐</el-button>
      </el-col>
      <right-toolbar
        :showSearch.sync="showSearch"
        @queryTable="getList"
      ></right-toolbar>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
    <el-table
      border
      v-loading="loading"
      :data="compList"
      @selection-change="handleSelectionChange"
    >
      <el-table-column
        fixed="left"
        type="selection"
        width="40px"
        align="center"
      />
      <el-table-column
        label="序号"
        align="center"
        prop="newID"
        :show-overflow-tooltip="true"
        width="50px"
        fixed="left"
      />
      <el-table-column
        label="单位名称"
        align="center"
        prop="cnName"
        width="240px"
      />
      <el-table-column
        label="统一信用代码"
        align="center"
        prop="taxNumber"
        width="180px"
      />
      <el-table-column
        label="联系人"
        align="center"
        prop="contactPerson"
        :show-overflow-tooltip="true"
        width="90px"
      />
      <el-table-column
        label="联系电话"
        align="center"
        prop="contactPhone"
        :show-overflow-tooltip="true"
      />
      <el-table-column
        label="注册地址"
        align="center"
        prop="registerAddress"
        :show-overflow-tooltip="true"
      />
    <el-table border v-loading="loading" :data="compList" @selection-change="handleSelectionChange" ref="tab">
      <el-table-column fixed="left" type="selection" width="40px" align="center" />
      <el-table-column label="序号" align="center" prop="newID" :show-overflow-tooltip="true" width="50px" fixed="left" />
      <el-table-column label="单位名称" align="center" prop="cnName" width="240px" />
      <el-table-column label="统一信用代码" align="center" prop="taxNumber" width="180px" />
      <el-table-column label="联系人" align="center" prop="contactPerson" :show-overflow-tooltip="true" width="90px" />
      <el-table-column label="联系电话" align="center" prop="contactPhone" :show-overflow-tooltip="true" />
      <el-table-column label="注册地址" align="center" prop="registerAddress" :show-overflow-tooltip="true" />
      <!-- <el-table-column label="企业类型" align="center" prop="typeOfEnterprise" :show-overflow-tooltip="true">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.dict_comp_type" :value="scope.row.typeOfEnterprise"/>
        </template>
</el-table-column> -->
      <el-table-column
        label="行政区划"
        align="center"
        prop="areaName"
        :show-overflow-tooltip="true"
      />
      <el-table-column
        label="通讯地址"
        align="center"
        prop="mailingAddress"
        :show-overflow-tooltip="true"
      />
      <el-table-column
        label="邮箱"
        align="center"
        prop="email"
        :show-overflow-tooltip="true"
      />
      <el-table-column
        label="开户银行"
        align="center"
        prop="bankAccount"
        :show-overflow-tooltip="true"
      />
      <el-table-column
        label="银行账号"
        align="center"
        prop="countNum"
        :show-overflow-tooltip="true"
      />
      <el-table-column label="行政区划" align="center" prop="areaName" :show-overflow-tooltip="true" />
      <el-table-column label="通讯地址" align="center" prop="mailingAddress" :show-overflow-tooltip="true" />
      <el-table-column label="邮箱" align="center" prop="email" :show-overflow-tooltip="true" />
      <el-table-column label="开户银行" align="center" prop="bankAccount" :show-overflow-tooltip="true" />
      <el-table-column label="银行账号" align="center" prop="countNum" :show-overflow-tooltip="true" />
      <!-- <el-table-column label="GMP发证日期" align="center" prop="gmpissueDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.gmpissueDate, '{y}-{m}-{d}') }}</span>
@@ -200,42 +76,19 @@
          <image-preview :src="scope.row.gmpPhoto" :width="50" :height="50"/>
        </template>
      </el-table-column> -->
      <el-table-column
        label="备注"
        align="center"
        prop="remark"
        :show-overflow-tooltip="true"
      />
      <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
      <!-- <el-table-column label="创建时间" align="center" prop="createTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column> -->
      <el-table-column
        label="修改人"
        align="center"
        prop="updateBy"
        :show-overflow-tooltip="true"
        width="100px"
      />
      <el-table-column
        label="修改时间"
        align="center"
        prop="updateTime"
        width="100px"
        :show-overflow-tooltip="true"
      >
      <el-table-column label="修改人" align="center" prop="updateBy" :show-overflow-tooltip="true" width="100px" />
      <el-table-column label="修改时间" align="center" prop="updateTime" width="100px" :show-overflow-tooltip="true">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.updateTime, "{y}-{m}-{d}") }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="排序"
        align="center"
        prop="orderNum"
        :show-overflow-tooltip="true"
        width="55px"
      />
      <el-table-column label="排序" align="center" prop="orderNum" :show-overflow-tooltip="true" width="55px" />
      <!-- <el-table-column label="数据状态(PT10.00.004)" align="center" prop="effective">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.dict_data_status" :value="scope.row.effective"/>
@@ -246,150 +99,70 @@
          <span>{{ parseTime(scope.row.validTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column> -->
      <el-table-column
        fixed="right"
        label="操作"
        align="center"
        class-name="small-padding fixed-width"
        width="70px"
      >
      <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="70px">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['system:comp:edit']"
            title="修改"
          ></el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['system:comp:remove']"
            title="删除"
          ></el-button>
          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
            v-hasPermi="['system:comp:edit']" title="修改"></el-button>
          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
            v-hasPermi="['system:comp:remove']" 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.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>
    <div>
      <el-dialog
        :title="title"
        :visible.sync="opens"
        width="1350px"
        append-to-body
        :close-on-click-modal="true"
      >
      <el-dialog :title="title" :visible.sync="opens" width="1350px" append-to-body :close-on-click-modal="true">
        <el-row :gutter="20">
          <el-col :span="7" :xs="24">
            <div style="padding: 0 20px">
              <el-form
                ref="form"
                :model="form"
                :rules="rules"
                label-width="80px"
                :inline="true"
                @submit.native.prevent
              >
              <el-form ref="form" :model="form" :rules="rules" label-width="80px" :inline="true" @submit.native.prevent>
                <el-form-item label="套餐名称" prop="dwDeptName">
                  <el-input
                    v-model="form.dwDeptName"
                    placeholder="请输入套餐名称"
                  />
                  <el-input v-model="form.dwDeptName" placeholder="请输入套餐名称" />
                </el-form-item>
                <el-form-item label="签约金额" prop="signingPrice">
                  <el-input
                    v-model="form.signingPrice"
                    placeholder="请输入签约金额"
                  />
                  <el-input v-model="form.signingPrice" placeholder="请输入签约金额" />
                </el-form-item>
                 <el-form-item label="病种" prop="bz" v-if="dwlxs == 1">
                <el-select v-model="form.bz" placeholder="请选择病种" style="width: 130px" clearable>
                  <el-option v-for="dict in dict.type.reservation_pay_type" :key="dict.value" :label="dict.label"
                    :value="dict.value" />
                </el-select>
              </el-form-item>
              </el-form>
              <el-row :gutter="10" class="mb8">
                <el-col :span="1.5">
                  <el-button
                    type="primary"
                    icon="el-icon-plus"
                    size="mini"
                    @click="handleAddDept"
                    v-hasPermi="['system:comp:add']"
                    >保存套餐</el-button
                  >
                  <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddDept"
                    v-hasPermi="['system:comp:add']">保存套餐</el-button>
                </el-col>
                <el-col :span="1.5">
                  <el-button
                    type="primary"
                    icon="el-icon-edit"
                    size="mini"
                    :disabled="singleg"
                    @click="handledeleDept"
                    v-hasPermi="['system:comp:edit']"
                    >删除</el-button
                  >
                  <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="singleg" @click="handledeleDept"
                    v-hasPermi="['system:comp:edit']">删除</el-button>
                </el-col>
              </el-row>
              <el-table
                ref="tb"
                v-loading="loading"
                :data="deptList"
                @selection-change="handleSelection"
                border
                style="width: 320px"
                height="350"
              >
              <el-table ref="tb" v-loading="loading" :data="deptList" @selection-change="handleSelection" border
                style="width: 320px" height="300">
                <el-table-column type="selection" width="40px" align="center" />
                <el-table-column
                  label="套餐名称"
                  align="center"
                  prop="dwDeptName"
                />
                <el-table-column label="套餐名称" align="center" prop="dwDeptName" />
              </el-table>
            </div>
          </el-col>
          <el-col :span="17" :xs="24">
            <el-form
              ref="form"
              :model="forms"
              :rules="rules"
              label-width="78px"
              :inline="true"
              @submit.native.prevent
            >
            <el-form ref="form" :model="forms" :rules="rules" label-width="78px" :inline="true" @submit.native.prevent>
              <el-form-item label="分组名称" prop="groupingName">
                <el-input
                  v-model="forms.groupingName"
                  placeholder="请输入分组名称"
                  style="width: 130px"
                  @focus="changegroupingName"
                />
                <el-input v-model="forms.groupingName" placeholder="请输入分组名称" style="width: 130px"
                  @focus="changegroupingName" />
              </el-form-item>
              <el-form-item label="性别" prop="sex">
                <el-select
                  v-model="forms.sex"
                  placeholder="请选择性别"
                  style="width: 120px"
                  clearable
                  :disabled="isSexDisabled"
                >
                  <el-option
                    v-for="dict in dict.type.sys_user_sex"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.value"
                  />
                <el-select v-model="forms.sex" placeholder="请选择性别" style="width: 120px" clearable
                  :disabled="isSexDisabled">
                  <el-option v-for="dict in dict.type.sys_user_sex" :key="dict.value" :label="dict.label"
                    :value="dict.value" />
                </el-select>
              </el-form-item>
              <!-- <el-form-item label="套餐名称" prop="pacName">
@@ -401,34 +174,18 @@
                />
              </el-form-item> -->
              <el-form-item label="原价" prop="price">
                <el-input
                  v-model="forms.price"
                  placeholder="请输入原价"
                  style="width: 130px"
                />
                <el-input v-model="forms.price" placeholder="请输入原价" style="width: 130px" />
              </el-form-item>
              <el-form-item label="优惠价" prop="ysPrice">
                <el-input
                  v-model="forms.ysPrice"
                  placeholder="请输入应收"
                  style="width: 120px"
                />
                <el-input v-model="forms.ysPrice" placeholder="请输入应收" style="width: 120px" />
              </el-form-item>
              <el-form-item label="结算方式" prop="payType">
                <el-select
                  v-model="forms.payType"
                  placeholder="请选择结算方式"
                  style="width: 130px"
                  clearable
                >
                  <el-option
                    v-for="dict in dict.type.reservation_pay_type"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.value"
                  />
                <el-select v-model="forms.payType" placeholder="请选择结算方式" style="width: 130px" clearable>
                  <el-option v-for="dict in dict.type.reservation_pay_type" :key="dict.value" :label="dict.label"
                    :value="dict.value" />
                </el-select>
              </el-form-item>
              <el-form-item label="年龄段">
                <el-col :span="7">
                  <el-input v-model="forms.ltAge" style="width: 53px" />
@@ -442,77 +199,32 @@
            <el-row :gutter="10" class="mb8">
              <el-col :span="1.5">
                <el-button
                  type="primary"
                  icon="el-icon-plus"
                  size="mini"
                  @click="handleGroup"
                  >保存</el-button
                >
                <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleGroup">保存</el-button>
              </el-col>
              <el-col :span="1.5">
                <el-button
                  type="primary"
                  icon="el-icon-edit"
                  size="mini"
                  @click="xiangmuWh"
                  >项目维护</el-button
                >
                <el-button type="primary" icon="el-icon-edit" size="mini" @click="xiangmuWh">项目维护</el-button>
              </el-col>
              <el-col :span="1.5">
                <el-button
                  type="primary"
                  icon="el-icon-edit"
                  size="mini"
                  :disabled="singlegg"
                  @click="GroupUpdate"
                  >重置</el-button
                >
                <el-button
                  type="primary"
                  icon="el-icon-edit"
                  size="mini"
                  :disabled="singlegg"
                  @click="deleteGroup"
                  >删除</el-button
                >
                <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="singlegg"
                  @click="GroupUpdate">重置</el-button>
                <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="singlegg"
                  @click="deleteGroup">删除</el-button>
              </el-col>
            </el-row>
            <el-table
              border
              ref="tbs"
              v-loading="loading"
              :data="groupingList"
              @selection-change="handleChange"
              height="350"
            >
            <el-table border ref="tbs" v-loading="loading" :data="groupingList" @selection-change="handleChange"
              height="350">
              <el-table-column type="selection" width="40px" align="center" />
              <el-table-column
                label="序号"
                align="center"
                prop="newID"
                width="50px"
              />
              <el-table-column
                label="分组名称"
                align="center"
                prop="groupingName"
              />
              <el-table-column label="序号" align="center" prop="newID" width="50px" />
              <el-table-column label="分组名称" align="center" prop="groupingName" />
              <el-table-column label="性别" align="center" prop="sex">
                <template slot-scope="scope">
                  <dict-tag
                    :options="dict.type.sys_user_sex"
                    :value="scope.row.sex"
                  />
                  <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" />
                </template>
              </el-table-column>
              <el-table-column label="套餐名称" align="center" prop="pacName" />
              <el-table-column label="结算方式" align="center" prop="payType">
                <template slot-scope="scope">
                  <dict-tag
                    :options="dict.type.reservation_pay_type"
                    :value="scope.row.payType"
                  />
                  <dict-tag :options="dict.type.reservation_pay_type" :value="scope.row.payType" />
                </template>
              </el-table-column>
              <el-table-column label="折扣" align="center" prop="limits" />
@@ -526,64 +238,25 @@
    <!-- 套餐 -->
    <div>
      <el-dialog
        :title="title"
        :visible.sync="openss"
        width="1400px"
        :style="{ height: 1400 + 'px' }"
        append-to-body
        :close-on-click-modal="false"
      >
      <el-dialog :title="title" :visible.sync="openss" width="1400px" :style="{ height: 1400 + 'px' }" append-to-body
        :close-on-click-modal="false">
        <el-row :gutter="24">
          <el-col :span="8" :xs="24">
            <el-form
              :model="queryParams"
              ref="queryForm"
              size="small"
              :inline="true"
              label-width="68px"
              @submit.native.prevent
            >
            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"
              @submit.native.prevent>
              <el-form-item label="套餐名称" prop="pacName">
                <el-input
                  ref="inputName"
                  v-model="queryParams.pacName"
                  placeholder="请输入套餐名称"
                  clearable
                  @keyup.enter.native="handleSearch"
                  style="width: 140px"
                />
                <el-input ref="inputName" v-model="queryParams.pacName" placeholder="请输入套餐名称" clearable
                  @keyup.enter.native="handleSearch" style="width: 140px" />
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
                  icon="el-icon-search"
                  size="mini"
                  @click="handleSearch"
                  >搜索</el-button
                >
                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearch">搜索</el-button>
              </el-form-item>
            </el-form>
            <el-table
              ref="tbone"
              border
              v-loading="loading"
              :data="newpacName"
              @selection-change="handleChangeOne"
              height="478"
            >
            <el-table ref="tbone" border v-loading="loading" :data="newpacName" @selection-change="handleChangeOne"
              height="478">
              <el-table-column type="selection" width="40px" align="center" />
              <el-table-column
                label="序号"
                align="center"
                prop="pacId"
                width="50px"
              />
              <el-table-column
                label="套餐名称/价格/元"
                align="center"
                prop="pacName"
              >
              <el-table-column label="序号" align="center" prop="pacId" width="50px" />
              <el-table-column label="套餐名称/价格/元" align="center" prop="pacName">
                <template slot-scope="scope">
                  {{ scope.row.pacName + "/" + scope.row.price }}
                </template>
@@ -591,43 +264,20 @@
            </el-table>
          </el-col>
          <el-col :span="6" :xs="24">
            <el-form
              :model="queryParams"
              ref="queryForm"
              size="small"
              :inline="true"
              label-width="46px"
              @submit.native.prevent
            >
            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="46px"
              @submit.native.prevent>
              <el-form-item label="合计" prop="price">
                <el-input
                  ref="inputName"
                  v-model="queryParams.price"
                  placeholder="合计"
                  clearable
                  style="width: 140px"
                />
                <el-input ref="inputName" v-model="queryParams.price" placeholder="合计" clearable style="width: 140px" />
              </el-form-item>
              <el-form-item>
                <el-button
                  icon="el-icon-refresh"
                  size="mini"
                  @click="resetQuerys"
                  >重置</el-button
                >
                <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys">重置</el-button>
              </el-form-item>
            </el-form>
            <!-- <div style="color: red; font-size: 8px">
              注释:鼠标左键双击选中行可删除
            </div> -->
            <!--       @row-dblclick="dbclick" -->
            <el-table
              border
              v-loading="loading"
              :data="OnenewpacName"
              :row-class-name="tableRowClassName"
              height="478"
            >
            <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478">
              <el-table-column label="项目名称" align="center" prop="proName">
                <template slot-scope="scope">
                  {{ scope.row.proName }}
@@ -636,79 +286,38 @@
              <el-table-column label="操作" align="center" width="68">
                <template slot-scope="scope">
                  <el-button
                    size="mini"
                    type="text"
                    icon="el-icon-delete"
                    @click="handledbelete(scope.row)"
                    >删除</el-button
                  >
                  <el-button size="mini" type="text" icon="el-icon-delete"
                    @click="handledbelete(scope.row)">删除</el-button>
                </template>
              </el-table-column>
            </el-table>
            <div style="font-size: 16px; margin-top: 10px">
              当前项目条数:<span style="font-weight: 700">{{
                OnenewpacName.length
              }}</span
              >条
              }}</span>条
            </div>
          </el-col>
          <el-col :span="2" :xs="24">
            <div style="margin: 240% 16%">
              <el-button
                type="primary"
                size="medium "
                icon="el-icon-back"
                @click="resetright"
                >确 认</el-button
              >
              <el-button type="primary" size="medium " icon="el-icon-back" @click="resetright">确 认</el-button>
            </div>
          </el-col>
          <el-col :span="8" :xs="24">
            <el-form
              :model="queryParams1"
              ref="queryForm"
              size="small"
              :inline="true"
              v-show="showSearch"
              label-width="68px"
              @submit.native.prevent
            >
            <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch"
              label-width="68px" @submit.native.prevent>
              <el-form-item label="项目名称" prop="proName">
                <el-input
                  ref="inputName"
                  v-model="queryParams1.proName"
                  placeholder="请输入项目名称"
                  clearable
                  @keyup.enter.native="handleSearchFor"
                  style="width: 140px"
                />
                <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable
                  @keyup.enter.native="handleSearchFor" style="width: 140px" />
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
                  icon="el-icon-search"
                  size="mini"
                  @click="handleSearchFor"
                  >搜索</el-button
                >
                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button>
              </el-form-item>
            </el-form>
            <el-table
              border
              v-loading="loading"
              ref="tre"
              :data="Treedata"
              @selection-change="handleChangesingle"
              height="478"
            >
            <el-table border v-loading="loading" ref="tre" :data="Treedata" @selection-change="handleChangesingle"
              height="478">
              <el-table-column type="selection" width="40px" align="center" />
              <el-table-column label="项目名称" align="center" prop="proName" />
              <el-table-column
                label="项目价格/元"
                align="center"
                prop="proPrice"
              />
              <el-table-column label="项目价格/元" align="center" prop="proPrice" />
            </el-table>
          </el-col>
        </el-row>
@@ -720,32 +329,21 @@
    </div>
    <div>
      <el-dialog
        :title="title"
        :visible.sync="openOne"
        width="1400px"
        append-to-body
        :close-on-click-modal="false"
      >
        <div
          class="info-header"
          style="
      <el-dialog :title="title" :visible.sync="openOne" width="1400px" append-to-body :close-on-click-modal="false">
        <div class="info-header" style="
            margin-bottom: 15px;
            padding: 10px;
            background-color: #f5f7fa;
            border-radius: 4px;
          "
        >
          ">
          <el-row :gutter="20">
            <el-col :span="8">
              <span>项目名称:{{ forms.groupingName }}</span>
            </el-col>
            <el-col :span="8">
              <span
                >性别:{{
                  forms.sex === "1" ? "男" : forms.sex === "0" ? "女" : "未知"
                }}</span
              >
              <span>性别:{{
                forms.sex === "1" ? "女" : forms.sex === "0" ? "男" : "未知"
              }}</span>
            </el-col>
            <el-col :span="8">
              <span>年龄范围:{{ forms.ltAge }}-{{ forms.gtAge }}岁</span>
@@ -754,130 +352,54 @@
        </div>
        <el-row :gutter="24" v-if="!isTableVisible">
          <el-col :span="15" :xs="24">
            <el-form
              :model="queryParams"
              ref="queryForm"
              size="small"
              :inline="true"
              label-width="46px"
              style="height: 50px"
              @submit.native.prevent
            >
            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="46px"
              style="height: 50px" @submit.native.prevent>
              <el-form-item label="原价">
                <el-input
                  ref="inputName"
                  v-model="queryParams.price"
                  placeholder="合计"
                  clearable
                  style="width: 140px"
                />
                <el-input ref="inputName" v-model="queryParams.price" placeholder="合计" clearable style="width: 140px" />
              </el-form-item>
              <el-form-item label="折扣">
                <el-input-number
                  ref="inputNumber"
                  style="width: 150px"
                  v-model="youhui"
                  :precision="1"
                  :step="0.1"
                  :min="0"
                  :max="10"
                  @change="debounceNumberChange"
                  :debounce="3000"
                ></el-input-number>
                <el-input-number ref="inputNumber" style="width: 150px" v-model="youhui" :precision="1" :step="0.1"
                  :min="0" :max="10" @change="debounceNumberChange" :debounce="3000"></el-input-number>
              </el-form-item>
              <el-form-item label="现价">
                <el-input
                  ref="inputName"
                  v-model="queryParams.xianprice"
                  placeholder="合计"
                  clearable
                  style="width: 140px"
                  @input="changeXianjia"
                  @blur="numberChangeXianPrice(youhui, youhui)"
                />
                <el-input ref="inputName" v-model="queryParams.xianprice" placeholder="合计" clearable
                  style="width: 140px" @input="changeXianjia" @blur="numberChangeXianPrice(youhui, youhui)" />
              </el-form-item>
              <el-form-item>
                <el-button
                  icon="el-icon-refresh"
                  size="mini"
                  @click="resetQuerys"
                  >重置</el-button
                >
                <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys">重置</el-button>
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
                  @click="Package"
                  size="mini"
                  style="margin-right: 20px"
                  >选择套餐</el-button
                >
                <el-button type="primary" @click="Package" size="mini" style="margin-right: 20px">选择套餐</el-button>
              </el-form-item>
            </el-form>
            <el-table
              border
              v-loading="loading"
              :data="OnenewpacName"
              :row-class-name="tableRowClassName"
              height="478"
              :cell-style="{ padding: '5px 0' }"
            >
              <el-table-column
                label="项目名称"
                align="center"
                prop="proName"
                width="410"
              >
            <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478"
              :cell-style="{ padding: '5px 0' }">
              <el-table-column label="项目名称" align="center" prop="proName" width="410">
                <template slot-scope="scope">
                  {{ scope.row.proName }}
                </template>
              </el-table-column>
              <el-table-column
                label="原价"
                align="center"
                prop="proPrice"
                width="85"
              ></el-table-column>
              <el-table-column label="原价" align="center" prop="proPrice" width="85"></el-table-column>
              <el-table-column label="折扣" width="151">
                <template slot-scope="scope">
                  <!-- 只输入纯数字折扣  @input="validateDiscount(scope.row)"-->
                  <el-input-number
                    v-model="scope.row.limits"
                    @change="handleManualChange(scope.row)"
                    placeholder="输入折扣"
                    size="mini"
                    type="number"
                    :min="0"
                    :step="0.1"
                    :precision="1"
                    :max="10"
                  >
                  <el-input-number v-model="scope.row.limits" @change="handleManualChange(scope.row)" placeholder="输入折扣"
                    size="mini" type="number" :min="0" :step="0.1" :precision="1" :max="10">
                  </el-input-number>
                </template>
              </el-table-column>
              <el-table-column
                label="现价"
                align="center"
                prop="ysPrice"
                width="85"
              ></el-table-column>
              <el-table-column label="现价" align="center" prop="ysPrice" width="85"></el-table-column>
              <el-table-column label="操作" align="center" width="85">
                <template slot-scope="scope">
                  <el-button
                    size="mini"
                    type="text"
                    icon="el-icon-delete"
                    @click="handledbelete(scope.row)"
                    >删除</el-button
                  >
                  <el-button size="mini" type="text" icon="el-icon-delete"
                    @click="handledbelete(scope.row)">删除</el-button>
                </template>
              </el-table-column>
            </el-table>
            <div style="font-size: 16px; margin-top: 10px">
              当前项目条数:<span style="font-weight: 700">{{
                OnenewpacName.length
              }}</span
              >条
              }}</span>条
            </div>
          </el-col>
          <!-- <el-col :span="2" :xs="24">
@@ -891,117 +413,47 @@
            </div>
          </el-col> -->
          <el-col :span="7" :xs="24">
            <el-form
              :model="queryParams1"
              ref="queryForm"
              size="small"
              :inline="true"
              v-show="showSearch"
              label-width="68px"
              @submit.native.prevent
            >
            <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch"
              label-width="68px" @submit.native.prevent>
              <el-form-item label="项目名称" prop="proName">
                <el-input
                  ref="inputName"
                  v-model="queryParams1.proName"
                  placeholder="请输入项目名称"
                  clearable
                  @keyup.enter.native="handleSearchFor"
                  style="width: 140px"
                />
                <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable
                  @keyup.enter.native="handleSearchFor" style="width: 140px" />
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
                  icon="el-icon-search"
                  size="mini"
                  @click="handleSearchFor"
                  >搜索</el-button
                >
                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button>
              </el-form-item>
            </el-form>
            <el-table
              border
              v-loading="loading"
              ref="tre"
              :data="Treedata"
              @selection-change="handleChangesingle"
              height="478"
              style="width: 100%"
            >
            <el-table border v-loading="loading" ref="tre" :data="Treedata" @selection-change="handleChangesingle"
              height="478" style="width: 100%">
              <el-table-column type="selection" width="40px" align="center" />
              <el-table-column
                label="项目名称"
                align="center"
                prop="proName"
                width="230px"
              />
              <el-table-column
                label="项目价格/元"
                align="center"
                prop="proPrice"
                width="100px"
              />
              <el-table-column label="项目名称" align="center" prop="proName" width="230px" />
              <el-table-column label="项目价格/元" align="center" prop="proPrice" width="100px" />
            </el-table>
          </el-col>
        </el-row>
        <!-- -=----------------------------------------------------- -->
        <el-row :gutter="24" v-else>
          <el-col :span="6" :xs="24">
            <el-form
              :model="queryParams"
              ref="queryForm"
              size="small"
              :inline="true"
              label-width="68px"
              @submit.native.prevent
            >
            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"
              @submit.native.prevent>
              <el-form-item label="套餐名称" prop="pacName">
                <el-input
                  ref="inputName"
                  v-model="queryParams.pacName"
                  placeholder="请输入套餐名称"
                  clearable
                  @keyup.enter.native="handleSearch"
                  style="width: 140px"
                />
                <el-input ref="inputName" v-model="queryParams.pacName" placeholder="请输入套餐名称" clearable
                  @keyup.enter.native="handleSearch" style="width: 140px" />
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
                  icon="el-icon-search"
                  size="mini"
                  @click="handleSearch"
                  >搜索</el-button
                >
                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearch">搜索</el-button>
              </el-form-item>
            </el-form>
            <el-table
              ref="tbone"
              border
              v-loading="loading"
              :data="newpacName"
              @selection-change="handleChangeOne"
              height="483"
            >
            <el-table ref="tbone" border v-loading="loading" :data="newpacName" @selection-change="handleChangeOne"
              height="483">
              <!-- <el-table-column type="selection" width="40px" align="center" /> -->
              <el-table-column
                label="序号"
                align="center"
                prop="newID"
                width="50px"
              >
              <el-table-column label="序号" align="center" prop="newID" width="50px">
                <template slot-scope="scope">
                  {{ scope.row.newID }}
                </template>
              </el-table-column>
              <el-table-column
                label="套餐名称/价格/元"
                align="center"
                prop="pacName"
              >
              <el-table-column label="套餐名称/价格/元" align="center" prop="pacName">
                <template slot-scope="scope">
                  {{ scope.row.pacName + "/" + scope.row.price }}
                </template>
@@ -1010,87 +462,41 @@
            <div style="font-size: 16px; margin-top: 10px">
              项目总条数:<span style="font-weight: 700; margin-right: 5px">{{
                newpacName.length
              }}</span
              >条
              }}</span>条
            </div>
          </el-col>
          <el-col :span="8" :xs="24">
            <el-form
              :model="queryParams"
              ref="queryForm"
              size="small"
              :inline="true"
              label-width="46px"
              style="height: 51px"
              @submit.native.prevent
            >
            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="46px"
              style="height: 51px" @submit.native.prevent>
              <el-form-item label="合计" prop="price">
                <el-input
                  ref="inputName"
                  v-model="queryParams.price"
                  placeholder="合计"
                  clearable
                  style="width: 140px"
                />
                <el-input ref="inputName" v-model="queryParams.price" placeholder="合计" clearable style="width: 140px" />
              </el-form-item>
              <el-form-item>
                <el-button
                  icon="el-icon-refresh"
                  size="mini"
                  @click="resetQuerys"
                  >重置</el-button
                >
                <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys">重置</el-button>
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
                  @click="Package"
                  size="mini"
                  style="margin-right: 20px"
                  >选择套餐</el-button
                >
                <el-button type="primary" @click="Package" size="mini" style="margin-right: 20px">选择套餐</el-button>
              </el-form-item>
            </el-form>
            <el-table
              border
              v-loading="loading"
              :data="OnenewpacName"
              :row-class-name="tableRowClassName"
              height="478"
              :cell-style="{ padding: '5px 0' }"
            >
              <el-table-column
                label="项目名称"
                align="center"
                prop="proName"
                width="170"
              >
            <el-table border v-loading="loading" :data="OnenewpacName" :row-class-name="tableRowClassName" height="478"
              :cell-style="{ padding: '5px 0' }">
              <el-table-column label="项目名称" align="center" prop="proName" width="170">
                <template slot-scope="scope">
                  {{ scope.row.proName }}
                </template>
              </el-table-column>
              <el-table-column
                label="原价"
                align="center"
                prop="proPrice"
              ></el-table-column>
              <el-table-column label="原价" align="center" prop="proPrice"></el-table-column>
              <el-table-column label="操作" align="center" width="68">
                <template slot-scope="scope">
                  <el-button
                    size="mini"
                    type="text"
                    icon="el-icon-delete"
                    @click="handledbelete(scope.row)"
                    >删除</el-button
                  >
                  <el-button size="mini" type="text" icon="el-icon-delete"
                    @click="handledbelete(scope.row)">删除</el-button>
                </template>
              </el-table-column>
            </el-table>
            <div style="font-size: 16px; margin-top: 10px">
              当前项目条数:<span style="font-weight: 700">{{
                OnenewpacName.length
              }}</span
              >条
              }}</span>条
            </div>
          </el-col>
          <!-- <el-col :span="2" :xs="24">
@@ -1101,56 +507,21 @@
            </div>
          </el-col> -->
          <el-col :span="8" :xs="24">
            <el-form
              :model="queryParams1"
              ref="queryForm"
              size="small"
              :inline="true"
              v-show="showSearch"
              label-width="68px"
              @submit.native.prevent
            >
            <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch"
              label-width="68px" @submit.native.prevent>
              <el-form-item label="项目名称" prop="proName">
                <el-input
                  ref="inputName"
                  v-model="queryParams1.proName"
                  placeholder="请输入项目名称"
                  clearable
                  @keyup.enter.native="handleSearchFor"
                  style="width: 140px"
                />
                <el-input ref="inputName" v-model="queryParams1.proName" placeholder="请输入项目名称" clearable
                  @keyup.enter.native="handleSearchFor" style="width: 140px" />
              </el-form-item>
              <el-form-item>
                <el-button
                  type="primary"
                  icon="el-icon-search"
                  size="mini"
                  @click="handleSearchFor"
                  >搜索</el-button
                >
                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchFor">搜索</el-button>
              </el-form-item>
            </el-form>
            <el-table
              border
              v-loading="loading"
              ref="tre"
              :data="Treedata"
              @selection-change="handleChangesingle"
              height="478"
            >
            <el-table border v-loading="loading" ref="tre" :data="Treedata" @selection-change="handleChangesingle"
              height="478">
              <el-table-column type="selection" width="40px" align="center" />
              <el-table-column
                label="项目名称"
                align="center"
                prop="proName"
                width="288"
              />
              <el-table-column
                label="项目价格/元"
                align="center"
                prop="proPrice"
                width="100"
              />
              <el-table-column label="项目名称" align="center" prop="proName" width="288" />
              <el-table-column label="项目价格/元" align="center" prop="proPrice" width="100" />
            </el-table>
          </el-col>
        </el-row>
@@ -1161,13 +532,7 @@
      </el-dialog>
    </div>
    <el-dialog
      title="选择套餐"
      :visible.sync="taocan"
      width="70%"
      height="700px"
      :close-on-click-modal="false"
    >
    <el-dialog title="选择套餐" :visible.sync="taocan" width="70%" height="700px" :close-on-click-modal="false">
      <!-- <el-form :model="queryParam" ref="queryForm" size="small" :inline="true" label-width="auto">
        <el-form-item label="套餐名称" prop="pacName">
          <el-input v-model="queryParam.pacName" placeholder="请输入套餐名称" clearable @keyup.enter.native="handle"
@@ -1177,40 +542,12 @@
          <el-button type="primary" icon="el-icon-search" size="mini" @click="handle">搜索</el-button>
        </el-form-item>
      </el-form> -->
      <el-table
        v-loading="loading"
        element-loading-text="正在加载中..."
        element-loading-spinner="el-icon-loading"
        border
        :data="newpacName1"
        @selection-change="handleSelectionChange1"
        height="450px"
        ref="tb"
      >
        <el-table-column
          type="selection"
          width="40px"
          align="center"
          label="选择"
        />
        <el-table-column
          label="套餐名称"
          align="center"
          prop="pacName"
          width="120px"
        />
        <el-table-column
          label="套餐价格"
          align="center"
          prop="price"
          width="120px"
        />
        <el-table-column
          label="套餐明细"
          align="center"
          prop="allProName"
          :show-overflow-tooltip="true"
        />
      <el-table v-loading="loading" element-loading-text="正在加载中..." element-loading-spinner="el-icon-loading" border
        :data="newpacName1" @selection-change="handleSelectionChange1" height="450px" ref="tb">
        <el-table-column type="selection" width="40px" align="center" label="选择" />
        <el-table-column label="套餐名称" align="center" prop="pacName" width="120px" />
        <el-table-column label="套餐价格" align="center" prop="price" width="120px" />
        <el-table-column label="套餐明细" align="center" prop="allProName" :show-overflow-tooltip="true" />
      </el-table>
      <span slot="footer" class="dialog-footer">
        <el-button @click="cancel1">取 消</el-button>
@@ -1220,43 +557,20 @@
    <!-- 添加或修改体检单位信息维护对话框 -->
    <div class="dia">
      <el-dialog
        :title="title"
        :visible.sync="open"
        width="1340px"
        append-to-body
      >
        <el-form
          ref="form"
          :model="form"
          :rules="rules"
          label-width="106px"
          :inline="true"
          @submit.native.prevent
        >
          <el-form-item label="单位类型" prop="isZybUnit">
            <el-radio-group v-model="form.isZybUnit">
              <el-radio :label="false">普通单位</el-radio>
              <el-radio :label="true">职业病单位</el-radio>
      <el-dialog :title="title" :visible.sync="open" width="1330px" append-to-body>
        <el-form ref="form" :model="form" :rules="rules" label-width="98px" :inline="true" @submit.native.prevent>
          <el-form-item label="单位类型" prop="dwlx">
            <el-radio-group v-model="form.dwlx" @input="radioChange">
              <el-radio :label="0">普通单位</el-radio>
              <el-radio :label="1">职业病单位</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item
            label="单位名称"
            prop="cnName"
            style="display: block; width: 100%"
          >
            <el-input
              v-model="form.cnName"
              placeholder="请输入中文名称"
              style="width: 520px"
            />
          <br />
          <el-form-item label="单位名称" prop="cnName">
            <el-input v-model="form.cnName" placeholder="请输入中文名称" style="width:510px" />
          </el-form-item>
          <el-form-item label="统一信用代码" prop="taxNumber">
            <el-input
              v-model="form.taxNumber"
              placeholder="请输入统一信用代码"
              style="width: 520px"
            />
            <el-input v-model="form.taxNumber" placeholder="请输入统一信用代码" style="width: 510px" />
          </el-form-item>
          <el-form-item label="法人代表" prop="legalPerson">
            <el-input v-model="form.legalPerson" placeholder="请输入法人" />
@@ -1265,10 +579,7 @@
            <el-input v-model="form.contactPerson" placeholder="请输入联系人" />
          </el-form-item>
          <el-form-item label="联系电话" prop="contactPhone">
            <el-input
              v-model="form.contactPhone"
              placeholder="请输入联系电话"
            />
            <el-input v-model="form.contactPhone" placeholder="请输入联系电话" />
          </el-form-item>
          <el-form-item label="传真" prop="faxNumber">
            <el-input v-model="form.faxNumber" placeholder="请输入传真" />
@@ -1279,57 +590,51 @@
        </el-form-item> -->
          <el-form-item label="注册地址" prop="registerAddress">
            <el-input
              v-model="form.registerAddress"
              placeholder="请输入注册地址"
              style="width: 1157px"
            />
            <el-input v-model="form.registerAddress" placeholder="请输入注册地址" style="width: 1128px" />
          </el-form-item>
          <el-form-item label="通讯地址" prop="mailingAddress">
            <el-input
              v-model="form.mailingAddress"
              placeholder="请输入通讯地址"
              style="width: 1157px"
            />
            <el-input v-model="form.mailingAddress" placeholder="请输入通讯地址" style="width: 1128px" />
          </el-form-item>
          <el-form-item label="所属地区" prop="zybCode" v-if="form.isZybUnit">
            <el-input v-model="form.zybCode" placeholder="请输入所属地区" />
          <el-form-item label="所属地区" prop="ssdq" v-if="form.dwlx == 1">
            <el-input v-model="form.ssdq" placeholder="请输入所属地区" />
          </el-form-item>
          <el-form-item
            label="亲属关系"
            prop="industryType"
            v-if="form.isZybUnit"
          >
            <el-input
          <el-form-item label="隶属关系" prop="lsgx" v-if="form.dwlx == 1">
            <!-- <el-input
              v-model="form.industryType"
              placeholder="请输入亲属关系"
            />
              placeholder="请输入隶属关系"
            /> -->
            <el-select filterable v-model="form.lsgx" placeholder="请选择隶属关系" clearable style="width: 198px">
              <el-option v-for="dict in dict.type.sys_yes_no" :key="dict.value" :label="dict.label"
                :value="dict.value" />
            </el-select>
          </el-form-item>
          <el-form-item label="经济类型" prop="jjType" v-if="form.isZybUnit">
            <el-input v-model="form.jjType" placeholder="请输入经济类型" />
          <el-form-item label="经济类型" prop="jjlx" v-if="form.dwlx == 1">
            <el-select filterable v-model="form.jjlx" placeholder="请选择经济类型" clearable style="width: 199px">
              <el-option v-for="dict in dict.type.sys_yes_no" :key="dict.value" :label="dict.label"
                :value="dict.value" />
            </el-select>
          </el-form-item>
          <el-form-item label="企业规模" prop="qygm" v-if="form.isZybUnit">
          <el-form-item label="企业规模" prop="qygm" v-if="form.dwlx == 1">
            <el-input v-model="form.qygm" placeholder="请输入企业规模" />
          </el-form-item>
          <el-form-item label="行业分类" prop="hyfl" v-if="form.isZybUnit">
            <el-input v-model="form.hyfl" placeholder="请输入行业分类" />
          <el-form-item label="行业分类" prop="hyfl" v-if="form.dwlx == 1">
            <el-select filterable v-model="form.hyfl" placeholder="请选择行业分类" clearable style="width: 199px">
              <el-option v-for="dict in dict.type.sys_yes_no" :key="dict.value" :label="dict.label"
                :value="dict.value" />
            </el-select>
          </el-form-item>
          <el-form-item label="风险评估" prop="fxpg" v-if="form.isZybUnit">
            <el-input v-model="form.fxpg" placeholder="请输入风险评估" />
          <el-form-item label="风险评估" prop="fxpg" v-if="form.dwlx == 1">
            <el-select filterable v-model="form.fxpg" placeholder="请选择风险评估" clearable style="width: 198px">
              <el-option v-for="dict in dict.type.sys_yes_no" :key="dict.value" :label="dict.label"
                :value="dict.value" />
            </el-select>
          </el-form-item>
          <br />
          <el-form-item label="开户银行" prop="bankAccount">
            <el-input
              v-model="form.bankAccount"
              placeholder="请输入开户银行"
              style="width: 520px"
            />
            <el-input v-model="form.bankAccount" placeholder="请输入开户银行" style="width: 510px" />
          </el-form-item>
          <el-form-item label="银行账户" prop="countNum">
            <el-input
              v-model="form.countNum"
              placeholder="请输入银行账户"
              style="width: 520px"
            />
            <el-input v-model="form.countNum" placeholder="请输入银行账户" style="width: 510px" />
          </el-form-item>
          <el-form-item label="联系邮箱" prop="email">
            <el-input v-model="form.email" placeholder="请输入邮箱" />
@@ -1342,22 +647,15 @@
          </el-form-item>
          <el-form-item label="行政区划名称" prop="areaName">
            <el-input
              v-model="form.areaName"
              placeholder="请输入行政区划名称"
            />
            <el-select filterable v-model="form.areaName" placeholder="请选择行政区划名称" clearable style="width: 198px">
              <el-option v-for="dict in dict.type.sys_yes_no" :key="dict.value" :label="dict.label"
                :value="dict.value" />
            </el-select>
          </el-form-item>
          <el-form-item label="备注" prop="remark">
            <el-input
              v-model="form.remark"
              type="textarea"
              placeholder="请输入内容"
              :rows="2"
              label-width="400px"
              style="width: 830px"
              resize="none"
            ></el-input>
            <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" :rows="2" label-width="400px"
              style="width: 830px" resize="none"></el-input>
          </el-form-item>
          <!-- <el-form-item label="五笔简码" prop="wbm">
          <el-input v-model="form.wbm" placeholder="请输入五笔简码" />
@@ -1403,6 +701,7 @@
    "dict_data_status",
    "sys_user_sex",
    "reservation_pay_type",
    "sys_yes_no",
  ],
  data() {
    let checkPhoneNum = (rule, value, callback) => {
@@ -1445,6 +744,7 @@
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      dwlxs: null,
      // 总条数
      total: 0,
      // 体检单位信息维护表格数据
@@ -1476,7 +776,7 @@
      id: "",
      // 表单参数
      form: {
        isZybUnit: false,
        isZybUnit: 0,
      },
      lastXianPrice: 0,
      forms: {
@@ -1555,6 +855,7 @@
      return this.sfzs === "Y";
    },
  },
  created() {
    this.getList();
  },
@@ -1745,6 +1046,11 @@
      this.ids = selection.map((item) => item.drugManufacturerId);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
      if (selection.length > 1) {
        // 如果选择了多行,保留最后一行
        this.$refs.tab.clearSelection(); // 清空所有选择
        this.$refs.tab.toggleRowSelection(selection[selection.length - 1]); // 重新选择最后一项
      }
    },
    // 部门表格单行获取
    handleSelection(selection) {
@@ -1777,6 +1083,7 @@
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.form.isZybUnit = 0;
      this.open = true;
      this.title = "添加体检单位信息维护";
    },
@@ -1785,7 +1092,11 @@
      this.reset();
      const drugManufacturerId = row.drugManufacturerId || this.ids;
      getComp(drugManufacturerId).then((response) => {
        this.form = response.data;
        // 不要直接赋值整个 response.data,而是逐个属性赋值
        Object.assign(this.form, response.data);
        this.form.isZybUnit = response.data.isZybUnit === true ? 1 : 0;
         this.form.dwlx= Number(response.data.dwlx)
        console.log("修改时的 isZybUnit 值:", this.form.isZybUnit);
        this.open = true;
        this.title = "修改体检单位信息维护";
      });
@@ -1795,7 +1106,7 @@
      this.opens = true;
      this.groupingList = [];
      this.dwlxs = this.form.dwlx
      if (this.form.drugManufacturerId) {
        this.beCurrentDept();
      }
@@ -1823,7 +1134,6 @@
              new Big(0)
            ).toNumber();
          });
          // ----------------------------------------------------------
        })
        .catch(() => {
          this.youhui = oldValue;
@@ -2419,6 +1729,12 @@
        });
    },
    radioChange(val) {
      this.reset();
      this.form.dwlx = val
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate((valid) => {
@@ -2453,8 +1769,8 @@
      this.$modal
        .confirm(
          '是否确认删除体检单位信息维护编号为"' +
            drugManufacturerIds +
            '"的数据项?'
          drugManufacturerIds +
          '"的数据项?'
        )
        .then(function () {
          return delComp(drugManufacturerIds);
@@ -2463,7 +1779,7 @@
          this.getList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => {});
        .catch(() => { });
    },
    submit() {
@@ -2500,10 +1816,10 @@
      this.youhui =
        this.queryParams.price > 0
          ? (Math.floor(
              (this.queryParams.xianprice / this.queryParams.price) * 100
            ) /
              100) *
            10
            (this.queryParams.xianprice / this.queryParams.price) * 100
          ) /
            100) *
          10
          : 0;
      // 关闭对话框