From 37e09a8edf9afb70342b68352329ce959f8ebda6 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期三, 23 四月 2025 11:11:10 +0800 Subject: [PATCH] qx --- src/views/doctor/check/index.vue | 47 +++++++++++++++-------- src/views/hosp/project/index.vue | 19 +++++++++ 2 files changed, 49 insertions(+), 17 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index ce79bbc..af5ab3f 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -291,7 +291,8 @@ </el-table-column> <el-table-column prop="exceptionDesc" label="寮傚父" width="55px" align="center"> <template slot-scope="scope"> - <el-checkbox v-model="scope.row.exceptionDesc" @change="changDesc(scope.row)"></el-checkbox> + <el-checkbox v-model="scope.row.exceptionDesc" @change="changDesc(scope.row)" + :disabled="scope.row.project.sfcyyc === 1"></el-checkbox> </template> </el-table-column> <el-table-column label="瑙勫垯" width="70"> @@ -443,7 +444,8 @@ <el-table-column prop="exceptionDesc" label="寮傚父" width="55px" align="center"> <template slot-scope="scope"> - <el-checkbox v-model="scope.row.exceptionDesc"></el-checkbox> + <el-checkbox v-model="scope.row.exceptionDesc" + :disabled="scope.row.project.sfcyyc === 1"></el-checkbox> </template> </el-table-column> <el-table-column prop="isReturn" label="澶嶈瘖" width="55px" align="center"> @@ -999,6 +1001,7 @@ // 杈撳叆纭鏃舵洿鏂� BMI handleInputConfirm(row, params) { + console.log(row, params, 55555) // 濡傛灉鏈� params 涓斾负绌猴紝鍙栨秷寮傚父鐘舵�佸苟娓呯┖鐩稿叧瀛楁 if (params && params.length === 0) { row.exceptionDesc = false; @@ -1045,14 +1048,19 @@ if (res.data) { this.autorule = res.data; this.focusrow.rulesList = res.data; - if (res.data.length > 0) { - const conditions = ["姝e父", "鏈寮傚父", "闃存��", "鏈鏄庢樉寮傚父"]; - this.focusrow.exceptionDesc = !conditions.some((condition) => - this.autorule[0].bz.includes(condition) - ); + if (row.project.sfcyyc == 1) { + return } else { - this.focusrow.exceptionDesc = false; + if (res.data.length > 0) { + const conditions = ["姝e父", "鏈寮傚父", "闃存��", "鏈鏄庢樉寮傚父"]; + this.focusrow.exceptionDesc = !conditions.some((condition) => + this.autorule[0].bz.includes(condition) + ); + } else { + this.focusrow.exceptionDesc = false; + } } + if (this.autorule.length !== 0 && (this.autorule[0] || this.autorule[0].nr)) { this.focusrow.proAdvice = this.autorule[0].nr; } @@ -1074,13 +1082,17 @@ if (res.data) { this.autorule = res.data; this.focusrow.rulesList = res.data; - if (res.data.length > 0) { - const conditions = ["姝e父", "鏈寮傚父", "闃存��", "鏈鏄庢樉寮傚父"]; - this.focusrow.exceptionDesc = !conditions.some((condition) => - this.autorule[0].bz.includes(condition) - ); + if (row.project.sfcyyc == 1) { + return } else { - this.focusrow.exceptionDesc = false; + if (res.data.length > 0) { + const conditions = ["姝e父", "鏈寮傚父", "闃存��", "鏈鏄庢樉寮傚父"]; + this.focusrow.exceptionDesc = !conditions.some((condition) => + this.autorule[0].bz.includes(condition) + ); + } else { + this.focusrow.exceptionDesc = false; + } } if (this.autorule.length !== 0 && (this.autorule[0] || this.autorule[0].nr)) { this.focusrow.proAdvice = this.autorule[0].nr; @@ -1138,6 +1150,7 @@ } this.proParentList.sons.forEach((item) => { this.doctorName = item.doctorName; + if (this.doctorName == null) { this.userList.forEach((element) => { const userName = this.$store.state.user.name; @@ -1149,7 +1162,7 @@ if (item.isReturn == 1) item.isReturn = true; if (item.isReturn == 0) item.isReturn = false; if (item.exceptionDesc == "1") item.exceptionDesc = true; - if (item.exceptionDesc == "0") item.exceptionDesc = false; + if (item.exceptionDesc == "0" || item.project.sfcyyc == 1) item.exceptionDesc = false; }); if (this.proParentList.xiaoJie && this.proParentList.xiaoJie.length != 0) { this.Parent.forEach((item3) => { @@ -1165,7 +1178,7 @@ handleFocus(row) { this.autorule = []; - if (!row.resultType || row.resultType == 2) { + if (!row.resultType || row.resultType == 2 ) { return; } else { this.curindex = row; @@ -1355,7 +1368,7 @@ }, changDesc(item) { - console.log(item); + item.conclusion = item.exceptionDesc ? "寮傚父" : "姝e父"; }, diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index 1726610..0ae2020 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -229,6 +229,12 @@ <el-form-item label="鎺掑簭" prop="xh"> <el-input v-model="form.xh" placeholder="璇疯緭鍏ユ帓搴�" style="width: 200px" /> </el-form-item> + <el-form-item label="鏄惁鍙備笌寮傚父" prop="sfcyyc"> + <el-select v-model="form.sfcyyc" placeholder="璇烽�夋嫨鏄惁鍙備笌寮傚父" style="width: 260px"> + <el-option v-for="dict in dictTypesy" :key="dict.value" :label="dict.label" + :value="dict.value"></el-option> + </el-select> + </el-form-item> </el-form> <el-button style="margin-left: 40px" type="primary" plain size="mini" icon="el-icon-plus" @click="addmembers">鏂板琛�</el-button> @@ -441,6 +447,16 @@ }, xmmc: "", chargeId: [], + dictTypesy: [ + { + value:"0", + label:"鏄�" + }, + { + value:"1", + label:"鍚�" + } + ], List: false, deptName: "", deptOption: [], @@ -515,6 +531,7 @@ proScope: "", proSex: "2", resultType: "", + sfcyyc: "0", }, rules: { createTime: [ @@ -989,6 +1006,7 @@ this.form ={} this.form = this.xiugaiList; this.form.proStatus = this.form.proStatus.toString(); + this.form.sfcyyc = this.form.sfcyyc.toString(); this.proParent = true; this.isPriceDisabled = true; getlist().then((response) => { @@ -1015,6 +1033,7 @@ this.showPrise = this.form.proParentId === "0"; this.showRentPrise = !this.showPrise; this.form.proStatus = this.form.proStatus.toString(); + this.form.sfcyyc = this.form.sfcyyc.toString(); this.form.consumablesList = response.data.consumablesList; this.form.tjStandardList = response.data.tjStandardList; if (this.form.tjStandardList) { -- Gitblit v1.8.0