From 9290a0a7023a612cddc5971553a6efb727a51165 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期二, 19 八月 2025 17:34:58 +0800
Subject: [PATCH] qx
---
src/views/doctor/examination/index.vue | 427 +++++++++++++++++++---------------------------------
1 files changed, 159 insertions(+), 268 deletions(-)
diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 667f6e1..7ab7d2c 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -1,205 +1,82 @@
<template>
<div class="app-container">
- <el-form
- :model="queryParams"
- ref="queryForm"
- size="small"
- :inline="true"
- label-width="68px"
- >
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
<el-form-item label="濮撳悕" prop="name">
- <el-input
- v-model="queryParams.name"
- placeholder="璇疯緭鍏ュ鍚�"
- clearable
- @keyup.enter.native="handleQuery"
- style="width: 110px"
- />
+ <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" clearable @keyup.enter.native="handleQuery"
+ style="width: 110px" />
</el-form-item>
<el-form-item label="浣撴鍙�" prop="tjNumber">
- <el-input
- ref="inputName"
- v-model="queryParams.tjNumber"
- placeholder="璇疯緭鍏ヤ綋妫�鍙�"
- clearable
- @keyup.enter.native="handleQuery"
- @blur="hb"
- style="width: 170px"
- />
+ <el-input ref="inputName" v-model="queryParams.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable
+ @keyup.enter.native="handleQuery" @blur="hb" style="width: 170px" />
</el-form-item>
- <el-form-item
- label="鍗曚綅鍚嶇О"
- prop="tjCompName"
- style="margin-left: 20px"
- >
- <el-select
- :remote-method="getRemoteData"
- v-model="queryParams.tjCompName"
- value-key="drugManufacturerId"
- style="width: 180px"
- remote
- filterable
- placeholder="璇烽�夋嫨鍗曚綅鍚嶇О"
- clearable
- @change="searchSelect"
- >
- <el-option
- v-for="dict in CompanyList"
- :key="dict.drugManufacturerId"
- :label="dict.cnName"
- :value="dict"
- />
+ <el-form-item label="鍗曚綅鍚嶇О" prop="tjCompName" style="margin-left: 20px">
+ <el-select :remote-method="getRemoteData" v-model="queryParams.tjCompName" value-key="drugManufacturerId"
+ style="width: 180px" remote filterable placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" clearable @change="searchSelect">
+ <el-option v-for="dict in CompanyList" :key="dict.drugManufacturerId" :label="dict.cnName" :value="dict" />
</el-select>
</el-form-item>
<el-form-item label="鐧昏鏃堕棿" prop="createTimeList">
- <el-date-picker
- v-model="createTimeList"
- type="datetimerange"
- align="right"
- :picker-options="pickerOptions"
- style="width: 310px"
- start-placeholder="寮�濮嬫棩鏈�"
- end-placeholder="缁撴潫鏃ユ湡"
- :default-time="['00:00:00', '23:00:00']"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- @change="dateChangebirthday1"
- >
+ <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions"
+ style="width: 310px" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" :default-time="['00:00:00', '23:00:00']"
+ format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" @change="dateChangebirthday1">
</el-date-picker>
</el-form-item>
<el-form-item>
- <el-button
- type="primary"
- icon="el-icon-search"
- size="mini"
- @click="handleQuery"
- style="margin-right: 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-right: 15px">鏌ヨ</el-button>
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
</el-form-item>
</el-form>
- <el-radio-group
- v-model="checkStatus"
- @input="radioChange"
- style="margin: 10px 15px"
- >
+ <el-radio-group v-model="checkStatus" @input="radioChange" style="margin: 10px 15px">
<el-radio-button label="0">鏈鏍�</el-radio-button>
<el-radio-button label="1">宸插鏍�</el-radio-button>
</el-radio-group>
<div style="width: 100%; margin-left: 10px; display: flex">
<div style="width: 45%">
- <el-table
- id="ta"
- v-loading="loading"
- ref="tb"
- :data="exaList"
- border
- height="520"
- :row-class-name="tableRowClassName"
- highlight-current-row
- @current-change="handleCurrentChange"
-
- >
+ <el-table id="ta" v-loading="loading" ref="tb" :data="exaList" border height="520"
+ :row-class-name="tableRowClassName" highlight-current-row @current-change="handleCurrentChange">
<!-- <el-table-column type="selection" width="40" align="center" /> -->
- <el-table-column
- label="浣撴鍙�"
- align="center"
- prop="tjNumber"
- min-width="160"
- />
- <el-table-column
- label="濮撳悕"
- align="center"
- prop="cusName"
- min-width="80"
- />
- <el-table-column
- label="鎬у埆"
- align="center"
- prop="cusSex"
- min-width="50"
- >
+ <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" min-width="160" />
+ <el-table-column label="濮撳悕" align="center" prop="cusName" min-width="80" />
+ <el-table-column label="鎬у埆" align="center" prop="cusSex" min-width="50">
<template slot-scope="scope">
<span v-if="scope.row.cusSex == '0'">鐢�</span>
<span v-if="scope.row.cusSex == '1'">濂�</span>
<span v-if="scope.row.cusSex == '2'">鏈煡</span>
<span v-if="scope.row.cusSex == '9'">鏈鏄庢�у埆</span>
</template>
+
<!-- <template slot-scope="scope"> -->
<!-- {{scope.row.customer.cusSex}} -->
<!-- {{ scope.row.cusSex === 0 ? "鐢�" : "濂�" }} -->
<!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
<!-- </template> -->
</el-table-column>
- <el-table-column
- label="鎵嬫満鍙�"
- align="center"
- prop="cusPhone"
- min-width="100"
- />
- <el-table-column
- label="鐧昏鏃堕棿"
- align="center"
- prop="tjTime"
- min-width="120"
- />
- <el-table-column
- v-if="checkStatus == '1'"
- label="瀹℃牳鐘舵��"
- align="center"
- prop="confirmStatus"
- min-width="80"
- >
+ <el-table-column label="骞撮緞" align="center" prop="age" min-width="100" />
+ <el-table-column label="鎵嬫満鍙�" align="center" prop="cusPhone" min-width="100" />
+ <el-table-column label="鐧昏鏃堕棿" align="center" prop="tjTime" min-width="120" />
+ <el-table-column v-if="checkStatus == '1'" label="瀹℃牳鐘舵��" align="center" prop="confirmStatus" min-width="80">
<template slot-scope="scope">
- <span
- :style="{
- color:
- scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29',
- }"
- v-if="scope.row.confirmStatus == '301'"
- >宸查�氳繃</span
- >
- <span
- :style="{
- color:
- scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29',
- }"
- v-if="scope.row.confirmStatus == '299'"
- >宸查┏鍥�</span
- >
+ <span :style="{
+ color:
+ scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29',
+ }" v-if="scope.row.confirmStatus == '301'">宸查�氳繃</span>
+ <span :style="{
+ color:
+ scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29',
+ }" v-if="scope.row.confirmStatus == '299'">宸查┏鍥�</span>
</template>
</el-table-column>
<!-- v-hasPermi="['reservation:reservation:edit']" -->
<el-table-column label="鎿嶄綔" align="center" min-width="120px">
<template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- @click="tongbu(scope.row)"
- disabled
- >鍚屾</el-button
- >
+ <el-button size="mini" type="text" @click="tongbu(scope.row)" disabled>鍚屾</el-button>
<!-- :disabled="dis" -->
- <el-button
- disabled
- size="mini"
- type="text"
- @click="tongguo(scope.row)"
- >閫氳繃</el-button
- >
+ <el-button disabled size="mini" type="text" @click="tongguo(scope.row)">閫氳繃</el-button>
- <el-button
- size="mini"
- type="text"
- disabled
- @click="bohui(scope.row)"
- >椹冲洖</el-button
- >
+ <el-button size="mini" type="text" disabled @click="bohui(scope.row)">椹冲洖</el-button>
</template>
<!-- v-show="
(xianshi == 'Y' || xianshi == 'y') &&
@@ -210,45 +87,15 @@
</el-table>
</div>
<div style="width: 45%; margin-left: 5%">
- <el-table
- v-loading="loading"
- border
- :row-class-name="tableRowClassName"
- height="520"
- ref="tab1"
- :data="xiangmuList"
- highlight-current-row
- @row-click="handleRowClick"
-
- >
+ <el-table v-loading="loading" border :row-class-name="tableRowClassName" height="520" ref="tab1"
+ :data="xiangmuList" highlight-current-row @row-click="handleRowClick">
<!-- <el-table-column type="selection" width="40" align="center" /> -->
- <el-table-column
- label="绉戝"
- align="center"
- prop="deptName"
- min-width="100"
- :show-overflow-tooltip="true"
- />
- <el-table-column
- label="椤圭洰"
- align="center"
- prop="proName"
- min-width="150"
- :show-overflow-tooltip="true"
- />
- <el-table-column
- label="鐘舵��"
- align="center"
- prop="type"
- :show-overflow-tooltip="true"
- min-width="100"
- >
+ <el-table-column label="绉戝" align="center" prop="deptName" min-width="100" :show-overflow-tooltip="true" />
+ <el-table-column label="椤圭洰" align="center" prop="proName" min-width="150" :show-overflow-tooltip="true" />
+ <el-table-column label="鐘舵��" align="center" prop="type" :show-overflow-tooltip="true" min-width="100">
<template slot-scope="scope">
- <span
- v-if="scope.row.type == '0'"
- :style="type == 0 ? { color: 'red' } : { color: '#409EFF' }"
- >
- {{ type == 0 ? "鏈� 妫�" : "鍦� 妫�" }}
+ <span v-if="scope.row.type == '0'" :style="type == 0 ? { color: 'red' } : { color: '#409EFF' }">
+ {{ type == 0 ? "鏈� 妫�" : "鍦� 妫�" }}
</span>
<span v-if="scope.row.type == '1'">宸插畬鎴�</span>
<span v-if="scope.row.type == '2'">寮冩</span>
@@ -281,12 +128,7 @@
prop="doctorName"
width="100"
/> -->
- <el-table-column
- label="妫�鏌ユ椂闂�"
- align="center"
- prop="bcupdateTime"
- min-width="160"
- />
+ <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" min-width="160" />
<!-- <el-table-column
label="淇濆瓨鍖荤敓"
align="center"
@@ -301,28 +143,11 @@
/> -->
<el-table-column label="鎿嶄綔" align="center" min-width="120px">
<template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- :disabled="scope.row.type === 1"
- :loading="scope.row.isLoading"
- @click="qijian(scope.row)"
- >{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button
- >
- <el-button
- size="mini"
- type="text"
- @click="yijian(scope.row)"
- v-if="yijiantype == 'N'"
- >宸叉</el-button
- >
- <el-button
- size="mini"
- type="text"
- :disabled="scope.row.type === 0 || scope.row.type === 2"
- @click="queryResultone(scope.row)"
- >缁撴灉</el-button
- >
+ <el-button size="mini" type="text" :disabled="scope.row.type === 1" :loading="scope.row.isLoading"
+ @click="qijian(scope.row)">{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button>
+ <el-button size="mini" type="text" @click="yijian(scope.row)" v-if="yijiantype == 'N'">宸叉</el-button>
+ <el-button size="mini" type="text" :disabled="scope.row.type === 0 || scope.row.type === 2"
+ @click="queryResultone(scope.row)">缁撴灉</el-button>
<!-- @click="chaxun(scope.row) " -->
</template>
</el-table-column>
@@ -336,18 +161,18 @@
</div>
<div class="a">
<div v-if="jyjc == 0">
- <el-table
- :data="jieguoList"
- border
- :row-style="changRed"
- style="width: 100%"
- :header-cell-style="{ background: '#AAD8DF' }"
- >
+ <el-table :data="jieguoList" border :row-style="changRed" style="width: 100%"
+ :header-cell-style="{ background: '#AAD8DF' }">
<el-table-column label="妫�娴嬮」鐩�" prop="pro_name">
</el-table-column>
<el-table-column label="妫�娴嬬粨鏋�" prop="pro_result">
</el-table-column>
<el-table-column label="鍙傝�冭寖鍥�" prop="ckfw"> </el-table-column>
+ <el-table-column label="寮傚父鏍囧織" prop="ycbz">
+ <template slot-scope="scope">
+ {{ scope.row.ycbz == 0 ? "姝e父" : "寮傚父" }}
+ </template>
+ </el-table-column>
</el-table>
</div>
@@ -356,20 +181,14 @@
<div class="check-result-container">
<div class="check-item">
<div class="check-title">妫�鏌ユ墍瑙侊細</div>
- <div
- class="check-description"
- :style="{ color: isRed ? 'red' : '' }"
- >
+ <div class="check-description" :style="{ color: isRed ? 'red' : '' }">
{{ jieguoList[0].pro_result }}
</div>
</div>
<div class="check-item">
<div class="check-title">妫�鏌ョ粨璁猴細</div>
- <div
- class="check-description"
- :style="{ color: isRed ? 'red' : '' }"
- >
+ <div class="check-description" :style="{ color: isRed ? 'red' : '' }">
{{ jieguoList[0].yxzd || "鏆傛棤缁撹" }}
</div>
</div>
@@ -383,16 +202,33 @@
<!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page"
:page-sizes="pageSize" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="total">
</el-pagination> -->
- <pagination
- v-show="total > 0"
- :total="total"
- :pager-count="5"
- :page.sync="queryParams.page"
- :limit.sync="queryParams.pageSize"
- @pagination="submitForm"
- />
+ <pagination v-show="total > 0" :total="total" :pager-count="5" :page.sync="queryParams.page"
+ :limit.sync="queryParams.pageSize" @pagination="submitForm" />
</div>
</div>
+ <el-dialog :visible.sync="open" width="980px" append-to-body>
+ <el-form ref="form" :model="form" label-width="98px" @submit.native.prevent>
+ <el-form-item label="寮冩" prop="isZybUnit">
+ <el-radio-group v-model="form.isZybUnit">
+ <el-radio :label="0">鑷姩寮冩</el-radio>
+ <el-radio :label="1">鍏朵粬</el-radio>
+ </el-radio-group>
+ </el-form-item>
+ <!-- filterable -->
+ <el-form-item label="寮冩鍘熷洜" prop="yy" style="margin-left: 20px" v-if="form.isZybUnit == 1">
+ <el-select v-model="form.yy" placeholder="璇烽�夋嫨寮冩鍘熷洜" clearable style="width: 150px">
+ <el-option v-for="dict in dict.type.qj_type" :key="dict.value" :label="dict.label" :value="dict.label" />
+ </el-select>
+ </el-form-item>
+ <br />
+
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="submitFormqijian">纭� 瀹�</el-button>
+ <el-button @click="cancel">鍙� 娑�</el-button>
+ </div>
+ </el-dialog>
+
</div>
</template>
@@ -407,20 +243,21 @@
yijian,
resultList,
typeOne,
- huifu,
+ huifu, csymxmxzqtyybcjk
} from "@/api/doctor/examination";
import { getCompany, queryCompany } from "@/api/team/tuanti";
import { getNewDateList } from "@/api/hosp/order";
import moment from "moment";
export default {
- dicts: ["dict_tj_status"],
+ dicts: ["dict_tj_status", "qj_type"],
data() {
return {
jieguoList: [],
jyjc: null,
dis: false,
- isLoading:false,
+ isLoading: false,
+ open: false,
createTimeList: "",
currentRow: null,
total: 0,
@@ -431,6 +268,7 @@
yijiantype: null,
CompanyList: [],
CheckBox: {},
+ rowProId: '',
// 鏌ヨ鍙傛暟
queryParams: {
page: 1,
@@ -504,7 +342,7 @@
},
methods: {
changRed({ row }) {
- if (row.ycbz != "" && row.ycbz != null && row.ycbz === "1") {
+ if (row.ycbz != "" && row.ycbz != null && row.ycbz === 1) {
// 鍙橀鑹茬殑鏉′欢
return {
color: "red", // 杩欎釜return鐨勫氨鏄牱寮� 鍙互鏄痗olor 涔熷彲浠ユ槸backgroundColor
@@ -789,11 +627,55 @@
});
});
},
+ cancel() {
+ this.open = false
+ },
+ submitFormqijian() {
+ if (this.form.isZybUnit == 0) {
+ const tjNUm = this.selectedTjNumber;
+ const proId = this.rowProId;
+ qijian(tjNUm, proId).then((res) => {
+ if (res.code == 200) {
+ this.open = false
+ cSWebGetPro(tjNUm).then((res) => {
+ if (res.code === 200) {
+ // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+ this.xiangmuList = res.data;
+ this.isLoading = false
+ }
+ });
+ }
+ });
+ } else {
+ if (this.form.yy != null) {
+ let data = {
+ tjNum: this.selectedTjNumber,
+ proId: this.rowProId,
+ yy: this.form.yy,
+ }
+ csymxmxzqtyybcjk(data).then((res) => {
+ if (res.code == 200) {
+ cSWebGetPro(this.selectedTjNumber).then((res) => {
+ if (res.code === 200) {
+ this.open = false
+ // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+ this.xiangmuList = res.data;
+ this.isLoading = false
+ }
+ });
+ }
+ });
+ } else {
+ this.$modal.msgError("璇烽�夋嫨寮冩鍘熷洜");
+ }
+ }
+ },
// 寮冩鎸夐挳
qijian(row) {
const tjNUm = this.selectedTjNumber;
const proId = row.proId;
+ this.rowProId = row.proId;
row.isLoading = true;
if (row.type == "2") {
huifu(tjNUm, proId).then((res) => {
@@ -808,17 +690,19 @@
}
});
} else {
- qijian(tjNUm, proId).then((res) => {
- if (res.code == 200) {
- cSWebGetPro(tjNUm).then((res) => {
- if (res.code === 200) {
- // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
- this.xiangmuList = res.data;
- this.isLoading = false
- }
- });
- }
- });
+ this.open = true
+ this.form = {}
+ // qijian(tjNUm, proId).then((res) => {
+ // if (res.code == 200) {
+ // cSWebGetPro(tjNUm).then((res) => {
+ // if (res.code === 200) {
+ // // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+ // this.xiangmuList = res.data;
+ // this.isLoading = false
+ // }
+ // });
+ // }
+ // });
}
},
yijian(row) {
@@ -934,7 +818,8 @@
.el-table .warning-row {
background: #e5f3ff !important;
}
-::v-deep .el-table__body tr.current-row > td {
+
+::v-deep .el-table__body tr.current-row>td {
background: #edf2fa !important;
}
@@ -943,6 +828,7 @@
display: flex;
justify-content: center;
}
+
.red-text {
color: red !important;
}
@@ -954,6 +840,7 @@
.a ::v-deep .el-table__cell {
padding: 1px 0 !important;
}
+
.check-result-container {
// background-color: #fafafa;
padding: 20px;
@@ -976,13 +863,17 @@
.check-description {
font-size: 14px;
- color: #555; /* 涓伆鑹叉枃瀛� */
- line-height: 1.6; /* 琛岄珮锛屽鍔犲彲璇绘�� */
- padding: 8px 0; /* 涓婁笅鍐呰竟璺� */
+ color: #555;
+ /* 涓伆鑹叉枃瀛� */
+ line-height: 1.6;
+ /* 琛岄珮锛屽鍔犲彲璇绘�� */
+ padding: 8px 0;
+ /* 涓婁笅鍐呰竟璺� */
}
.check-description.no-result {
- color: #bbb; /* 濡傛灉娌℃湁缁撹锛屾枃瀛椾负娣$伆鑹� */
+ color: #bbb;
+ /* 濡傛灉娌℃湁缁撹锛屾枃瀛椾负娣$伆鑹� */
}
::v-deep .el-table {
--
Gitblit v1.8.0