1
lkk
2 天以前 8ba0f594d8b03adf464cabea011cc1273f563bad
1
1个文件已修改
1个文件已添加
777 ■■■■ 已修改文件
src/views/hosp/quickAdvice/index.vue 267 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/info/index.vue 510 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/quickAdvice/index.vue
New file
@@ -0,0 +1,267 @@
<template>
  <div class="app-container">
    <el-form
      :model="queryParams"
      ref="queryForm"
      size="small"
      :inline="true"
      v-show="showSearch"
      label-width="68px"
    >
      <el-form-item label="标题" prop="bt">
        <el-input
          v-model="queryParams.bt"
          placeholder="请输入标题"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="建议" prop="nr">
        <el-input
          v-model="queryParams.nr"
          placeholder="请输入检查项目"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </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-form-item>
    </el-form>
    <el-table
      :data="dataList"
      ref="elTable"
      v-loading="loading"
      @selection-change="handleSelectionChange"
      border
      height="580px"
    >
      <el-table-column type="selection" width="40" align="center" />
      <el-table-column label="序号" width="70" align="center" prop="newID" />
      <el-table-column label="标题" width="120" align="center" prop="title" />
      <el-table-column label="建议内容" align="left" prop="advice" />
      <el-table-column
        label="操作"
        align="center"
        fixed="right"
        class-name="small-padding fixed-width"
        width="100px"
      >
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleEdit(scope.row)"
            title="修改"
          ></el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            title="删除"
          ></el-button>
        </template>
      </el-table-column>
    </el-table>
    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.page"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
    <!-- 修改快速建议标题和内容 -->
    <el-dialog
      :title="title"
      :visible.sync="open"
      width="1000px"
      append-to-body
      :close-on-click-modal="false"
    >
      <el-form
        ref="form"
        :model="form"
        label-width="80px"
        :inline="true"
      >
        <el-form-item label="标题" prop="title">
          <el-input
            v-model="form.title"
            placeholder="请输入标题"
            style="width: 200px"
          />
        </el-form-item>
        <el-form-item label="内容" prop="advice">
          <el-input
            v-model="form.advice"
            type="textarea"
            placeholder="请输入主要内容"
            style="width: 780px"
          />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>
  <script>
import { listAdvice, updateAdvice, addAdvice,getAdvice,delAdvice } from "@/api/advice/advice";
export default {
  name: "Advicerules",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      // 总条数
      total: 0,
      // 体检项目建议规则新表表格数据
      dataList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      showSearch: true,
      // 查询参数
      queryParams: {
        page: 1,
        pageSize: 10,
        bt: "",
        nr: "",
      },
      querycharge: {
        pageNum: 1,
        pageSize: 10,
      },
      // 表单参数
      form: {},
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询体检项目建议规则新表列表 */
    getList() {
      this.loading = true;
      listAdvice(this.queryParams).then((response) => {
        response.data.list.forEach((item, index) => {
          item.newID =
            (this.queryParams.page - 1) * this.queryParams.pageSize + index + 1;
        });
        this.dataList = response.data.list;
        this.total = response.data.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        title: null,
        advice: null,
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.page = 1;
      this.$forceUpdate();
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.id);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
    submitForm() {
      this.$refs["form"].validate((valid) => {
        if (valid) {
          if (this.form.id != null) {
            updateAdvice(this.form).then((response) => {
              console.log(response, 1111333);
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addAdvice(this.form).then((response) => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    handleEdit(row) {
      this.reset();
      const id = row.id || this.ids;
      this.kjbq = [];
      getAdvice(id).then((response) => {
        console.log(response,55566);
        this.form = response.data;
        this.open = true;
        // this.form.deptId = this.queryParams.deptId;
        this.title = "体检建议信息维护";
      });
    },
    handleDelete(row) {
      const id = row.id || this.ids; // 获取主键值,如果row中没有主键值,则使用this.ids
      this.$modal
        .confirm(`是否确认删除"${id}"的数据项?`)
        .then(() => {
          return delAdvice(id); // 调用删除接口,传入主键值
        })
        .then(() => {
          this.getList(); // 删除成功后刷新列表
          this.$modal.msgSuccess("删除成功"); // 显示删除成功的提示
        })
        .catch(() => {
          // 异常处理
        });
    },
  },
};
</script>
src/views/system/info/index.vue
@@ -1,47 +1,21 @@
<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-row>
        <el-col :span="11">
          <el-form-item label="单位名称" prop="company" style="display: flex">
            <el-select
              :remote-method="getRemoteData"
              v-model="queryParams.company"
              value-key="drugManufacturerId"
              remote
              filterable
              placeholder="请选择单位名称"
              clearable
              @change="searchSelect"
            >
              <el-option
                v-for="dict in CompanyList"
                :key="dict.drugManufacturerId"
                :label="dict.cnName"
                :value="dict.drugManufacturerId"
              />
            <el-select :remote-method="getRemoteData" v-model="queryParams.company" value-key="drugManufacturerId"
              remote filterable placeholder="请选择单位名称" clearable @change="searchSelect">
              <el-option v-for="dict in CompanyList" :key="dict.drugManufacturerId" :label="dict.cnName"
                :value="dict.drugManufacturerId" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <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-col>
      </el-row>
@@ -92,128 +66,171 @@
            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
        </el-row> -->
    <el-table
      id="sig"
      v-loading="loading"
      :data="infoList"
      @selection-change="handleSelectionChange"
      border
      ref="tb"
      max-height="260px"
    >
    <el-table id="sig" v-loading="loading" :data="infoList" @selection-change="handleSelectionChange" border ref="tb"
      max-height="260px">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="部门" align="center" prop="pacName" />
      <el-table-column label="预检人数" align="center" prop="count" />
      <el-table-column label="实检人数" align="center" prop="sjCount" />
      <el-table-column label="已结人数" align="center" prop="yjsrs" />
      <el-table-column label="应收金额" align="center" prop="copeWith" />
      <el-table-column label="签约金额" align="center" prop="signingPrice">
      </el-table-column>
      <el-table-column
        label="已付金额"
        align="center"
        prop="transactionAmount"
      />
      <el-table-column label="已付金额" align="center" prop="transactionAmount" />
      <el-table-column label="差额" align="center" prop="difference" />
      <el-table-column label="签约人" align="center" prop="payer" />
      <el-table-column label="预约时间" align="center" prop="createTime" />
      <el-table-column label="预约时间" align="center" prop="createTime" :formatter="formatDate" />
    </el-table>
    <el-form
      :inline="true"
      :model="formInline"
      class="demo-form-inline"
      style="margin: 12px 6px"
      label-width="100px"
    >
      <el-row>
        <el-col :span="6">
          <el-form-item label="负责人" style="display: flex">
            <el-input
              v-model="formInline.payer"
              placeholder="单位负责人"
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="7">
          <el-form-item label="交易金额" style="display: flex">
            <el-input v-model="formInline.price" placeholder="金额"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="7">
          <el-form-item label="交易类型" prop="payType" style="display: flex">
            <el-select
              v-model="formInline.payType"
              placeholder="请选择交易类型"
            >
              <el-option
                v-for="dict in dict.type.dict_pay_type"
                :key="dict.value"
                :label="dict.label"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="7">
    <div style="display: flex; justify-content: space-between; flex-wrap: wrap;">
      <el-radio-group v-model="jcStatus" @change="radioChange" style="margin-left: 10px; margin-top: 20px;flex-shrink: 1;">
        <el-radio-button label="0">签到未结账人员</el-radio-button>
        <el-radio-button label="1">未签到人员</el-radio-button>
        <el-radio-button label="2">全部人员</el-radio-button>
      </el-radio-group>
      <el-form :inline="true" :model="formInline" class="demo-form-inline" style="margin: 20px 20px; max-width: 50%; flex-shrink: 1;" label-width="300px">
        <el-row>
          <el-col :span="6">
            <el-form-item label="负责人" style="display: flex">
              <el-input v-model="formInline.payer" placeholder="单位负责人"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="交易金额" style="display: flex">
              <el-input v-model="formInline.price" placeholder="金额"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item label="交易类型" prop="payType" style="display: flex">
              <el-select v-model="formInline.payType" placeholder="请选择交易类型">
                <el-option v-for="dict in dict.type.dict_pay_type" :key="dict.value" :label="dict.label"
                  :value="dict.value"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item style="display: flex">
              <el-button type="primary" size="mini" @click="SubmitEvent" style="margin: 0 15px">结账</el-button>
            </el-form-item>
          </el-col>
          <!-- <el-col :span="7">
          <el-form-item>
            <el-button type="primary" size="mini" @click="SubmitEvent" style="margin:0 15px;"
            <el-button
              type="primary"
              size="mini"
              @click="SubmitEvent"
              style="margin: 0 15px"
              >收费</el-button
            >
            <el-button type="primary" size="mini" @click="handleDelete"
              >退费</el-button
            >
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
        </el-col> -->
        </el-row>
      </el-form>
    </div>
    <el-row :gutter="20">
      <el-col :span="12" :xs="24">
        <div class="tj">
          <span class="tj_txt">已缴费记录</span>
        </div>
        <el-table
          v-loading="loading"
          :data="dataList"
          border
          max-height="260px"
        >
          <el-table-column
            label="交易金额"
            align="center"
            prop="transactionAmount"
          />
          <el-table-column
            label="交易方式"
            align="center"
            prop="paymentMethod"
          />
          <el-table-column label="交易人员" align="center" prop="payer" />
          <el-table-column label="操作人员" align="center" prop="payee">
          </el-table-column>
          <el-table-column label="操作时间" align="center" prop="createTime" />
        </el-table>
      </el-col>
      <!-- <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"
        style="margin-top: 20px; margin-right: 22%;">
        <el-form-item label="结账时间">
          <el-date-picker clearable v-model="queryParams1.reservationTime" type="date" value-format="yyyy-MM-dd"
            placeholder="请选择结账时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery1"
            style="margin: 0 15px">查询</el-button>
          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery1">重置</el-button>
        </el-form-item>
      </el-form> -->
      <el-col :span="12" :xs="24" style="padding: 0px 20px">
        <div class="tj">
          <span class="tj_txt">体检人员情况表</span>
        </div>
        <el-table
          v-loading="loading"
          :data="peopleList"
          border
          max-height="260px"
        >
          <el-table-column label="序号" align="center" prop="newID" />
          <el-table-column label="姓名" align="center" prop="name" />
          <el-table-column label="状态" align="center" prop="tjStatus" />
        <el-table v-loading="loadings" :data="peopleList" border max-height="260px"
          @selection-change="handlepeopleListChange">
          <el-table-column type="selection" width="55" align="center" />
          <el-table-column label="姓名" align="center" prop="name" width="100" />
          <el-table-column label="性别" align="center" prop="xb" width="80">
            <template slot-scope="scope">
              <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.xb" />
            </template>
          </el-table-column>
          <el-table-column label="电话" align="center" prop="dh" width="120" />
          <el-table-column label="金额" align="center" prop="tjf" width="120" />
          <el-table-column label="状态" align="center" prop="tjStatus" width="80" />
          <el-table-column label="体检时间" align="center" prop="tjTime">
          </el-table-column>
        </el-table>
      </el-col>
      <el-col :span="12" :xs="24">
        <div class="tj">
          <span class="tj_txt">已结账记录</span>
        </div>
        <el-table v-loading="loading" :data="dataList" border max-height="260px">
          <el-table-column label="交易金额" align="center" prop="paidIn" />
          <el-table-column label="交易方式" align="center" prop="paymentMethod" width="90px">
            <template slot-scope="scope">
              <dict-tag :options="dict.type.dict_pay_type" :value="scope.row.paymentMethod" />
            </template>
          </el-table-column>
          <el-table-column label="交易人员" align="center" prop="payer" width="90px" />
          <el-table-column label="操作人员" align="center" prop="payee">
          </el-table-column>
          <el-table-column label="结账时间" align="center" prop="createTime">
            <template slot-scope="scope">
              <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
            </template>
          </el-table-column>
          <el-table-column label="操作" align="center">
            <template slot-scope="scope">
              <el-button type="text" size="mini" title="撤销" @click.stop="handleDelete(scope.row)"
                icon="el-icon-refresh-left"></el-button>
              <el-button size="mini" title="详情" type="text" @click.stop="handleClick(scope.row)"
                icon="el-icon-document-copy"></el-button>
            </template>
          </el-table-column>
        </el-table>
      </el-col>
    </el-row>
    <el-dialog title="详情" :visible.sync="dialogVisible" width="40%" append-to-body>
      <el-table id="sig" v-loading="loading" :data="dialogList" border ref="tb" max-height="260px">
        <el-table-column label="姓名" align="center" prop="name" width="100" />
        <el-table-column label="体检号" align="center" prop="tjh" width="120" />
        <el-table-column label="负责人" align="center" prop="payer" width="120" />
        <el-table-column label="金额" align="center" prop="transactionAmount" width="120" />
        <el-table-column label="交易方式" align="center" prop="paymentMethod" width="90px">
          <template slot-scope="scope">
            <dict-tag :options="dict.type.dict_pay_type" :value="scope.row.paymentMethod" />
          </template>
        </el-table-column>
        <el-table-column label="结账时间" align="center" prop="createTime">
          <template slot-scope="scope">
            <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
          </template>
        </el-table-column>
      </el-table>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <!-- <el-button type="primary" @click="dialogVisible = false">确 定</el-button> -->
      </span>
    </el-dialog>
  </div>
</template>
@@ -230,22 +247,36 @@
  getpay,
  delInfo,
  addInfo,
  updateInfo,
  getTjCompPay,
} from "@/api/system/info";
export default {
  name: "Info",
  dicts: ["dict_pay_type"],
  dicts: ["dict_pay_type", "sys_user_sex"],
  data() {
    let checkPhoneNum = (rule, value, callback) => {
      let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
      if (value == "" && value == undefined && !value) {
        return callback("");
      } else if (value != undefined && value != "") {
        return callback();
      } else if (!patter.test(value)) {
        return callback("");
      }
    };
    return {
      // 绑定单选按钮
      tjStatus: "0",
      jcStatus: 0,
      formInline: {
        payer: "",
        price: "",
        price: null,
      },
      // 遮罩层
      loading: true,
      // 遮罩层
      loadings: false,
      dialogVisible: false,
      // 选中数组
      ids: [],
      // 非单个禁用
@@ -260,10 +291,12 @@
      // 体检单位缴费明细表格数据
      infoList: [],
      copeWith: "",
      pacIds: "",
      transactionAmount: "",
      dataList: [],
      tableList: [],
      peopleList: [],
      dialogList: [],
      // 弹出层标题
      title: "",
      CompanyList: [],
@@ -273,6 +306,7 @@
      teamNo: "",
      // 登陆人名字
      tollCollectorName: "",
      tjhs: [],
      // 查询参数
      queryParams: {
        pageNum: 1,
@@ -284,10 +318,17 @@
        payer: null,
        payee: null,
      },
      queryParams1: {
        reservationTime: null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {},
      rules: {
        reservationTime: [
          { required: true, validator: checkPhoneNum, trigger: "change" },
        ],
      },
    };
  },
  created() {
@@ -295,6 +336,14 @@
  },
  methods: {
    /** 查询体检单位缴费明细列表 */
    formatDate(row) {
      if (!row.createTime) return "";
      const date = new Date(row.createTime);
      const year = date.getFullYear();
      const month = (date.getMonth() + 1).toString().padStart(2, "0");
      const day = date.getDate().toString().padStart(2, "0");
      return `${year}-${month}-${day}`;
    },
    getList() {
      // this.loading = true;
      // listInfo(this.queryParams).then(response => {
@@ -317,6 +366,40 @@
    // 选框数据
    searchSelect(val) {
      this.compId = val;
    },
    radioChange(val) {
      this.peopleList = []
      this.loadings = true
      let data = {
        teamNo: this.teamNo,
        pacId: this.pacIds
      }
      getTeamTjPeopleList(data).then((res) => {
        if (res.data) {
          if (this.jcStatus == 0) {
            this.peopleList = res.data.yjwjzList;
          } else if (this.jcStatus == 1) {
            this.peopleList = res.data.wjList;
          } else {
            this.peopleList = res.data.syList;
          }
        }
        this.loadings = false
      });
    },
    handlepeopleListChange(selection) {
      this.formInline.price = null
      this.tjhs = []
      selection.forEach(item => {
        this.formInline.price += item.tjf
        this.tjhs.push(item.tjh)
      })
    },
    // 体检公司拼音搜索
@@ -360,34 +443,15 @@
        } else {
          this.$refs.tb.clearSelection();
        }
        this.infoList.forEach((item) => {
          this.copeWith = item.copeWith;
          this.transactionAmount = item.transactionAmount;
          this.formInline.price = item.copeWith - item.transactionAmount;
          if (item.payInfo != null) {
            this.tjCompPayId = item.payInfo.tjCompPayId;
          }
          this.formInline.payer = item.payer;
          if (item.payInfoList != null) {
            this.dataList = item.payInfoList;
            this.dataList.forEach((item) => {
              if (item.paymentMethod === 0) {
                item.paymentMethod = "现金支付";
              } else if (item.paymentMethod === 1) {
                item.paymentMethod = "刷卡支付";
              } else if (item.paymentMethod === 2) {
                item.paymentMethod = "支付宝";
              } else if (item.paymentMethod === 3) {
                item.paymentMethod = "微信";
              } else if (item.paymentMethod === 4) {
                item.paymentMethod = "云闪付";
              }
            });
          }
        });
        this.loading = false;
      });
    },
    handleQuery1() {
    },
    resetQuery1() {
      this.resetForm("queryForm1");
      this.handleQuery1();
    },
    /** 重置按钮操作 */
    resetQuery() {
@@ -405,42 +469,60 @@
      // this.multiple = !selection.length;
      this.tableList = selection;
      this.teamNo = "";
      this.pacIds = "";
      this.tableList.forEach((item) => {
        this.teamNo = item.teamNo;
        this.pacIds = item.pacId
        this.copeWith = item.copeWith;
        this.difference = item.difference;
        this.transactionAmount = item.transactionAmount;
        this.formInline.price = item.copeWith - item.transactionAmount;
        if (item.payInfo != null) {
          this.tjCompPayId = item.payInfo.tjCompPayId;
        }
        if (item.payInfoList != null) {
          this.dataList = item.payInfoList;
          this.dataList.forEach((item) => {
            if (item.paymentMethod === 0) {
              item.paymentMethod = "现金支付";
            } else if (item.paymentMethod === 1) {
              item.paymentMethod = "刷卡支付";
            } else if (item.paymentMethod === 2) {
              item.paymentMethod = "支付宝";
            } else if (item.paymentMethod === 3) {
              item.paymentMethod = "微信";
            } else if (item.paymentMethod === 4) {
              item.paymentMethod = "云闪付";
            }
          });
        }
        // if (item.payInfoList != null) {
        //   this.dataList = item.payInfoList;
        //   this.dataList.forEach((item) => {
        //     if (item.paymentMethod === 0) {
        //       item.paymentMethod = "现金支付";
        //     } else if (item.paymentMethod === 1) {
        //       item.paymentMethod = "刷卡支付";
        //     } else if (item.paymentMethod === 2) {
        //       item.paymentMethod = "支付宝";
        //     } else if (item.paymentMethod === 3) {
        //       item.paymentMethod = "微信";
        //     } else if (item.paymentMethod === 4) {
        //       item.paymentMethod = "云闪付";
        //     }
        //   });
        // }
      });
      this.tongyong()
    },
    tongyong() {
      this.loadings = true
      if (this.teamNo) {
        getTeamTjPeopleList(this.teamNo).then((res) => {
        let data = {
          teamNo: this.teamNo,
          pacId: this.pacIds
        }
        getTeamTjPeopleList(data).then((res) => {
          if (res.data) {
            this.peopleList = res.data;
            res.data.forEach((item, index) => {
              item.newID =
                (this.queryParams.pageNum - 1) * this.queryParams.pageSize +
                index +
                1;
            });
            if (this.jcStatus == 0) {
              this.peopleList = res.data.yjwjzList;
            } else if (s.jcStatus == 1) {
              this.peopleList = res.data.wjList;
            } else {
              this.peopleList = res.data.syList
                ;
            }
          }
          this.loadings = false
        }).catch(error => {
          this.loadings = false
        });
        getTjCompPay(data).then((res) => {
          this.dataList = res.data
        });
      }
    },
@@ -451,22 +533,26 @@
    //   this.title = "添加体检单位缴费明细";
    // },
    // 单选按钮
    radioChange(val) {},
    /** 收费提交按钮 */
    SubmitEvent() {
      if (this.formInline.price != 0) {
        let data = {
          paymentMethod: this.formInline.payType,
          transactionAmount: this.formInline.price,
          copeWith: this.formInline.price,
          paidIn: this.formInline.price,
          payee: this.tollCollectorName, // 收款人
          tjCompPayId: this.tjCompPayId,
          payer: this.formInline.payer,
          tjhs: this.tjhs,
          compId: this.compId,
          pacId: this.pacIds,
          teamNo: this.teamNo,
          difference: this.difference
        };
        getpay(data).then((response) => {
          this.$modal.msgSuccess("操作成功");
          this.handleQuery();
          this.formInline.price = null
          this.handleQuery()
          const tjnumber = this.waterId;
          const viewNum = this.mobanId;
          const params = { viewNum, tjnumber };
@@ -478,29 +564,41 @@
    },
    /** 退费按钮操作 */
    handleDelete() {
      if (this.formInline.price != 0) {
        if (this.formInline.price < this.transactionAmount) {
          let data = {
            paymentMethod: this.formInline.payType,
            transactionAmount: this.formInline.price,
            payee: this.tollCollectorName, // 收款人
            tjCompPayId: this.tjCompPayId,
            payer: this.formInline.payer,
          };
          addInfo(data).then((response) => {
            this.$modal.msgSuccess("操作成功");
            this.handleQuery();
          });
        } else {
          this.$message.error("超出已付金额,退费失败");
        }
      } else {
        this.$message.error("退费金额不能为0");
    handleDelete(row) {
      this.tjhs = []
      if (row.payInfo.length != 0) {
        row.payInfo.forEach(item => {
          this.tjhs.push(item.tjh)
        })
      }
      let data = {
        paymentMethod: row.paymentMethod,
        copeWith: row.copeWith,
        paidIn: row.paidIn,
        payee: row.payee, // 收款人
        payer: row.payer,
        tjhs: this.tjhs,
        compId: row.compId,
        pacId: row.pacId,
        teamNo: row.teamNo,
        difference: row.difference,
        serialNumber: row.serialNumber,
        id: row.id
      };
      addInfo(data).then((response) => {
        this.$modal.msgSuccess("操作成功");
        this.loadings = true
        this.handleQuery()
      });
    },
    handleClick(row) {
      this.dialogVisible = true
      this.dialogList = row.payInfo
    },
    /** 导出按钮操作 */
    handleExport() {},
    handleExport() { },
  },
};
</script>