Browse Source

门诊详情弹窗

hwy 2 months ago
parent
commit
42fbbb5203
2 changed files with 88 additions and 14 deletions
  1. 63 11
      component/statistics/GxbManage/index.html
  2. 25 3
      component/statistics/GxbManage/index.js

+ 63 - 11
component/statistics/GxbManage/index.html

@ -54,17 +54,69 @@
  </div>
  <el-table :data="tableData" style="width: 100%" v-loading="loading" row-key="code" lazy :load="load" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
    <!-- <el-table-column type="index" min-width="60" label="序号"></el-table-column> -->
    <el-table-column :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop" :render-header="renderHeader">
      <template slot-scope="scope">{{scope.row[item.prop]}}</template>
    <el-table-column :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop">
      <template slot-scope="scope"><span @click="gotoDetail(scope.row,item.prop)">{{scope.row[item.prop]}}</span></template>
    </el-table-column>
  </el-table>
  <!-- <el-pagination
    @current-change="handleCurrentChange"
    @size-change="handleSizeChange"
    :current-page.sync="page"
    :page-size="size"
    :page-sizes="[10, 20, 50]"
    layout="total, sizes, prev, pager, next, jumper"
    :total="total"
    class="pagination"></el-pagination> -->
  <el-dialog title="上转转门诊明细" :visible.sync="mzDialogVisible" width="80%">
    <div class="copd-filter-group ui-col-1 bgc-fff">
      <div class="searchDiv pb20 pr20">
        <label class="c-333 c-f14">居民姓名:</label>
        <el-input v-model="mzForm.doctorOne" placeholder="请输入居民姓名查询"></el-input>
      </div>
      <div class="searchDiv pb20 pr20">
        <label class="c-333 c-f14">手机号码:</label>
        <el-input v-model="mzForm.doctorOne" placeholder="请输入手机号码查询"></el-input>
      </div>
      <div class="searchDiv pb20 pr20">
        <label class="c-333 c-f14">签约医院:</label>
        <el-input v-model="mzForm.doctorOne" placeholder="请输入签约医院查询"></el-input>
      </div>
      <div class="searchDiv pb20 pr20">
        <label class="c-333 c-f14">签约医生:</label>
        <el-input v-model="mzForm.doctorOne" placeholder="请输入医生姓名查询"></el-input>
      </div>
      <div class="searchDiv pb20 pr20">
        <label class="c-333 c-f14">性别:</label>
        <el-select class="formWidth" v-model="mzForm.sex" placeholder="请选择" @change="getTeam">
          <el-option label="全部" value=""></el-option>
          <el-option label="男" value="1"></el-option>
          <el-option label="女" value="2"></el-option>
        </el-select>
      </div>
      <div class="searchDiv pb20 pr20">
        <label class="c-333 c-f14">数据范围:区</label>
      </div>
      <div class="searchDiv pb20 pr20">
        <label class="c-333 c-f14">地区:思明区</label>
      </div>
      <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
        <label class="c-333 c-f14">社区:</label>
      </div>
      <div class="searchDiv pb20 pr20" v-if="form.range == 'team'">
        <label class="c-333 c-f14">团队:</label>
      </div>
      <div class="searchDiv pb20">
        <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
        <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
        <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
      </div>
    </div>
    <el-table v-loading="loadingTwo" border :data="dataInfo" style="width: 100%" height="500">
      <el-table-column type="index" width="50" label="序号" align="center"></el-table-column>
      <el-table-column :label="item.label" v-for="item in mzTableHeader" align="center" :key="item.prop">
        <template slot-scope="scope"><span @click="gotoDetail(scope.row,item.prop)">{{scope.row[item.prop]}}</span></template>
      </el-table-column>
    </el-table>
    <el-pagination
      @current-change="handleCurrentChange"
      @size-change="handleSizeChange"
      :current-page.sync="page"
      :page-size="size"
      :page-sizes="[10, 20, 50]"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
      style="text-align: right"></el-pagination>
  </el-dialog>
</div>

+ 25 - 3
component/statistics/GxbManage/index.js

@ -47,16 +47,36 @@ Vue.component('gxb-manage', {
        { label: '上转转门诊', prop: 'mzNum', width: '110' },
        { label: '门诊转住院', prop: 'zyNum', width: '110' },
        { label: '下转管理人数', prop: 'turnDownNum', width: '110' },
        { label: '评估已登记随访', prop: 'followUpNum', width: '110' },
        { label: '随访已达标', prop: 'standardNum', width: '110' }
        { label: '评估已登记随访', prop: 'followUpNum', width: '110' }
        // { label: '随访已达标', prop: 'standardNum', width: '110' }
      ],
      mzTableHeader: [
        { label: '姓名', prop: 'totalNum', width: '90' },
        { label: '性别', prop: 'turnUpNum', width: '90' },
        { label: '年龄', prop: 'totalNum', width: '90' },
        { label: '手机号', prop: 'turnUpNum', width: '90' },
        { label: '证件号码', prop: 'totalNum', width: '90' },
        { label: '社区医院', prop: 'turnUpNum', width: '90' },
        { label: '签约医生', prop: 'totalNum', width: '90' },
        { label: '最近一次上传时间', prop: 'turnUpNum', width: '90' },
        { label: '最近一次上转科室', prop: 'totalNum', width: '90' },
        { label: '最近一次门诊下转时间', prop: 'totalNum', width: '90' },
        { label: '最近一次门诊下转诊断', prop: 'totalNum', width: '90' }
      ],
      page: 1,
      size: 10,
      total: 0,
      level: 0
      level: 0,
      mzDialogVisible: true,
      mzForm: {
        sex: ''
      }
    }
  },
  methods: {
    gotoDetail(row, column) {
      console.log(row, 'lllllllllllllllllllllllll', column)
    },
    init() {
      var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
      if (selectedRole.code.indexOf('350200') > -1) {
@ -141,9 +161,11 @@ Vue.component('gxb-manage', {
          var children = res.detailModelList.map(function (item) {
            var data = JSON.parse(JSON.stringify(item))
            if (len == 6) {
              data.areaCode = row.code
              data.hospital = item.name
              data.hasChildren = true
            } else if (len == 10) {
              data.hospitalCode = row.code
              data.team = item.name
            }
            return data