1
lkk
2025-07-14 a6d61cacba774058635113be2ceefe3d7443375f
src/views/system/info/index.vue
@@ -1,48 +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>
@@ -93,51 +66,35 @@
            <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"
        :formatter="formatDate"
      />
      <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"
    >
    <div >
      <el-radio-group v-model="jcStatus" @change="radioChange" style="margin-left: 20px; margin-top: 20px">
        <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: 12px 6px" label-width="100px">
      <el-row>
        <el-col :span="5">
          <el-form-item label="负责人" style="display: flex">
            <el-input
              v-model="formInline.payer"
              placeholder="单位负责人"
            ></el-input>
            <el-input v-model="formInline.payer" placeholder="单位负责人"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
@@ -147,28 +104,15 @@
        </el-col>
        <el-col :span="6">
          <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 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-button type="primary" size="mini" @click="SubmitEvent" style="margin: 0 15px">结账</el-button>
          </el-form-item>
        </el-col>
        <!-- <el-col :span="7">
@@ -188,65 +132,37 @@
      </el-row>
    </el-form>
    <div style="display: flex; justify-content: space-between;">
      <el-radio-group
        v-model="jcStatus"
        @input="radioChange"
        style="margin-left: 20px; margin-top: 20px"
      >
        <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
        :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>
    </div>
    <el-row :gutter="20">
       <!-- <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 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="newID" width="50" />
          <el-table-column label="姓名" align="center" prop="name" width="100" />
          <el-table-column label="性别" align="center" prop="sex" width="80" />
          <el-table-column label="电话" align="center" prop="iphone" width="120" />
          <el-table-column label="状态" align="center" prop="tjStatus" width="80"  />
          <el-table-column label="性别" align="center" prop="xb" width="80" />
          <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>
@@ -257,22 +173,9 @@
          <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 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>
@@ -328,6 +231,8 @@
      },
      // 遮罩层
      loading: true,
       // 遮罩层
      loadings: false,
      // 选中数组
      ids: [],
      // 非单个禁用
@@ -342,6 +247,7 @@
      // 体检单位缴费明细表格数据
      infoList: [],
      copeWith: "",
      pacIds: "",
      transactionAmount: "",
      dataList: [],
      tableList: [],
@@ -366,8 +272,8 @@
        payer: null,
        payee: null,
      },
      queryParams1:{
        reservationTime:null
      queryParams1: {
        reservationTime: null
      },
      // 表单参数
      form: {},
@@ -416,7 +322,33 @@
      this.compId = val;
    },
    radioChange(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){
      console.log(selection)
    },
    // 体检公司拼音搜索
    getRemoteData(query) {
@@ -462,7 +394,7 @@
        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;
          }
@@ -488,10 +420,10 @@
        this.loading = false;
      });
    },
    handleQuery1(){
    handleQuery1() {
    },
     resetQuery1() {
    resetQuery1() {
      this.resetForm("queryForm1");
      this.handleQuery1();
    },
@@ -502,7 +434,6 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      console.log(2222);
      if (selection.length > 1) {
        let del_row = selection.shift();
        this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中
@@ -512,11 +443,12 @@
      // 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.transactionAmount = item.transactionAmount;
        this.formInline.price = item.copeWith - item.transactionAmount;
        if (item.payInfo != null) {
          this.tjCompPayId = item.payInfo.tjCompPayId;
        }
@@ -537,18 +469,24 @@
          });
        }
      });
      console.log(11111);
      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
        });
      }
    },
@@ -558,9 +496,6 @@
    //   this.open = true;
    //   this.title = "添加体检单位缴费明细";
    // },
    // 单选按钮
    radioChange(val) {},
    /** 收费提交按钮 */
    SubmitEvent() {
@@ -608,7 +543,7 @@
      }
    },
    /** 导出按钮操作 */
    handleExport() {},
    handleExport() { },
  },
};
</script>