123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <!-- css文件位置位于/component/common/jtbc.css -->
- <div id="app" class="jtbc">
- <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">
- <el-radio v-model="yearType" label="1">按下转年份:</el-radio>
- <el-select v-model="chooseYear" class="formWidth wd160">
- <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
- </el-select>
- </label>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14" style="display: flex; align-items: center">
- <el-radio v-model="yearType" label="2">自定义下转时间:</el-radio>
- <el-date-picker
- v-model="chooseTime"
- type="daterange"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- value-format="yyyy-MM-dd"></el-date-picker>
- </label>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">数据范围:</label>
- <el-select class="formWidth" v-model="form.range" placeholder="请选择" @change="resetArea">
- <el-option v-for="(option, index) in rangeOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">地区:</label>
- <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
- <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
- <label class="c-333 c-f14">社区:</label>
- <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
- <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20 pr20" v-if="form.range == 'team'">
- <label class="c-333 c-f14">团队:</label>
- <el-select class="formWidth" v-model="form.team" placeholder="请选择">
- <el-option v-for="(option, index) in teamOptions" :label="option.name" :value="option.id" :key="option.id"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20">
- <el-button type="primary" size="mini" @click="searchFn">查询</el-button>
- <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
- <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
- </div>
- </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 :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop" :prop="item.prop">
- <template slot-scope="scope">
- <span
- :class="`${['totalTimes','mzTimes','zyTimes','totalNum','mzNum','zyNum'].includes(item.prop)&&scope.row.code?'pointer c-409eff':''}`"
- @click="openDialog(scope.row, item.prop)">
- {{scope.row[item.prop]}}
- </span>
- </template>
- </el-table-column>
- </el-table>
- <el-dialog :visible.sync="visible" :title="title" @close="closeDialog" width="1200px">
- <el-form inline size="mini">
- <el-form-item label="居民姓名:">
- <el-input v-model="query.patientName" placeholder="请输入居民姓名查询"></el-input>
- </el-form-item>
- <template v-if="title=='康复下转明细列表'">
- <el-form-item label="下转医生:">
- <el-input v-model="query.hospitalDoctor" placeholder="请输入下转医生查询"></el-input>
- </el-form-item>
- <el-form-item label="接收医生:">
- <el-input v-model="query.doctor" placeholder="请输入接收医生查询"></el-input>
- </el-form-item>
- <el-form-item label="下转状态:">
- <el-select v-model="query.status" placeholder="请选择">
- <el-option v-for="(option, index) in statusOptions" :label="option.value" :value="option.code" :key="option.code"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="下转医院:">
- <el-select v-model="query.hospitalCode" placeholder="请选择" filterable>
- <el-option v-for="(option, index) in rehabilitationHospital" :label="option.value" :value="option.code" :key="option.code"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="接收社区医院:">
- <el-select v-model="query.orgCode" placeholder="请选择" filterable>
- <el-option v-for="(option, index) in communityHospitals" :value="option.value" :label="option.label" :key="option.value"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="档案状态:">
- <el-select v-model="query.archiveStatus" placeholder="请选择">
- <el-option v-for="(item,index) in archiveList" :value="item.code" :label="item.value" :key="item.code"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="患者类型:">
- <el-select v-model="query.patientType" placeholder="请选择">
- <el-option v-for="(item,index) in inviteStatus" :value="item.value" :label="item.label" :key="item.value"></el-option>
- </el-select>
- </el-form-item>
- </template>
- <template v-else>
- <el-form-item label="签约医院:">
- <el-input v-model="query.signHospitalName" placeholder="请输入签约医院查询"></el-input>
- </el-form-item>
- <el-form-item label="手机号码:">
- <el-input v-model="query.mobile" placeholder="请输入手机号码查询"></el-input>
- </el-form-item>
- <el-form-item label="性别:">
- <el-select v-model="query.sex">
- <el-option label="全部" value=""></el-option>
- <el-option label="男" value="1"></el-option>
- <el-option label="女" value="2"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="是否签约:">
- <el-select v-model="query.isSign">
- <el-option label="全部" value=""></el-option>
- <el-option label="是" value="1"></el-option>
- <el-option label="否" value="2"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="下转类型:">
- <el-select v-model="query.eventType">
- <el-option label="全部" value=""></el-option>
- <el-option label="门诊" value="1"></el-option>
- <el-option label="住院" value="2"></el-option>
- </el-select>
- </el-form-item>
- </template>
- <el-form-item label="数据范围:">
- <el-select v-model="query.range" disabled>
- <el-option v-for="item in rangeOptions" :value="item.value" :label="item.label" :key="item.value"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="地区:" v-if="query.range == 'town'">
- <el-select v-model="query.area" disabled>
- <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="社区:" v-if="query.range == 'hospital'">
- <el-select v-model="query.hospital" disabled>
- <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="团队:" v-if="query.range == 'team'">
- <el-select v-model="query.team" disabled>
- <el-option v-for="(option, index) in dataRangeOption" :label="option.label" :value="option.value" :key="option.value"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" @click="dialogSearchFn">查询</el-button>
- <el-button type="warning" @click="dialogExportFn" :disabled="dialogExportLoading">导出</el-button>
- <span @click="dialogReset" style="color: #676a6c; cursor: pointer">清除筛选条件</span>
- </el-form-item>
- </el-form>
- <el-table :data="dialogTableData" border v-loading="dialogLoading">
- <el-table-column label="序号" type="index"></el-table-column>
- <el-table-column v-for="item in dialogHeader" :label="item.label" :render-header="renderHeader">
- <template slot-scope="scope">
- <span :class="`${item.prop=='name'?'pointer c-409eff':''}`" @click="seePatientDetail(scope.row, item.prop)">{{scope.row[item.prop]}}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" width="100" v-if="title=='康复下转明细列表'">
- <template slot-scope="scope">
- <el-button type="text" v-if="scope.row.status==0" @click="operation(1,scope.row)">分配</el-button>
- <el-button type="text" @click="operation(2,scope.row)">查看签约</el-button>
- <el-button type="text" v-if="scope.row.status==5" @click="operation(3,scope.row)">同步居民</el-button>
- <el-button type="text" v-if="scope.row.status==3" @click="operation(4,scope.row)">同步病历</el-button>
- </template>
- </el-table-column>
- </el-table>
- <div style="display: flex; justify-content: flex-end; margin-top: 10px">
- <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"></el-pagination>
- </div>
- </el-dialog>
- <el-dialog title="查看签约信息" :visible.sync="dialogVisible" width="70%" append-to-body>
- <el-table border :data="signatoryList" style="width: 100%" height="500" class="mt20">
- <el-table-column prop="hospitalName" label="签约社区医院" align="center"></el-table-column>
- <el-table-column prop="doctorName" label="签约医生" align="center"></el-table-column>
- <el-table-column prop="applyDate" label="签约时间" align="center"></el-table-column>
- <el-table-column prop="signYear" label="签约年度" align="center"></el-table-column>
- </el-table>
- </el-dialog>
- </div>
|