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 | 95 +++++++++++++++++++++++++++++++++--------------
1 files changed, 67 insertions(+), 28 deletions(-)
diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 8a0b76b..7ab7d2c 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -47,12 +47,14 @@
<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="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">
@@ -166,7 +168,11 @@
<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"> </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>
@@ -202,13 +208,17 @@
</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-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 :label="1">鎬�瀛�</el-radio>
+ <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 />
@@ -233,14 +243,14 @@
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: [],
@@ -258,6 +268,7 @@
yijiantype: null,
CompanyList: [],
CheckBox: {},
+ rowProId: '',
// 鏌ヨ鍙傛暟
queryParams: {
page: 1,
@@ -620,24 +631,51 @@
this.open = false
},
submitFormqijian() {
- this.open = false
- qijian(tjNUm, proId).then((res) => {
- if (res.code == 200) {
- cSWebGetPro(tjNUm).then((res) => {
- if (res.code === 200) {
- // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
- this.xiangmuList = res.data;
- this.isLoading = false
+ 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) => {
@@ -652,18 +690,19 @@
}
});
} else {
- // this.open = true
- 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) {
--
Gitblit v1.8.0