From 8cef8ec64d4301b5d46299e42d98c59426b61673 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期三, 25 十二月 2024 08:48:03 +0800 Subject: [PATCH] 1 --- src/views/doctor/check/index.vue | 101 +++++++++++++++----------------------------------- 1 files changed, 30 insertions(+), 71 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 1ccb796..87c3a37 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -544,7 +544,6 @@ placeholder="璇疯緭鍏ユ娴嬬粨鏋�" @blur="handleInputConfirm(scope.row)" @input="vale" - @focus="handleInConfirm(scope.row)" ></el-input> </template> </el-table-column> @@ -834,7 +833,6 @@ placeholder="璇疯緭鍏ユ娴嬬粨鏋�" @blur="handleInputConfirm(scope.row)" @input="vale" - @focus="handleInConfirm(scope.row)" ></el-input> </template> </el-table-column> @@ -1728,6 +1726,7 @@ console.log("杈撳叆鍐呭:", value); }, handleInputConfirm(datas) { + this.focusrow = datas; this.proResult = datas; var pattern3 = new RegExp("[0-9]+"); if (pattern3.test(this.proResult)) { @@ -1736,23 +1735,31 @@ cusId: this.tableAll.cusId, keyNum: this.proResult, tjNum: this.tableAll.tjNumber, - keyNum: this.proResult.proResult + keyNum: this.proResult.proResult, }; AutoGetRule(data).then((res) => { this.focusrow.conclusion = ""; if (res.data) { this.autorule = res.data; - this.focusrow.rulesList = this.autorule; + 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) + ); + } else { + this.focusrow.exceptionDesc = false; + } + this.autorule.forEach((item) => { if (this.focusrow.conclusion) { - this.focusrow.conclusion += item.bingzhong; + this.focusrow.conclusion += item.bz; } else { - this.focusrow.conclusion = item.bingzhong; + this.focusrow.conclusion += item.bz; } }); - // this.rows.push(this.focusrow); + // this.rows.push(this.focusrow); // console.log(this.rows,5522); - } }); } else { @@ -1761,82 +1768,38 @@ cusId: this.tableAll.cusId, keyWord: this.proResult, tjNum: this.tableAll.tjNumber, - keyNum: this.proResult.proResult - + keyNum: this.proResult.proResult, }; AutoGetRule(data).then((res) => { this.focusrow.conclusion = ""; if (res.data) { this.autorule = res.data; - this.focusrow.rulesList = this.autorule; + 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) + ); + } else { + this.focusrow.exceptionDesc = false; + } + this.autorule.forEach((item) => { if (this.focusrow.conclusion) { - this.focusrow.conclusion += item.bingzhong; + this.focusrow.conclusion += item.bz; } else { - this.focusrow.conclusion = item.bingzhong; + this.focusrow.conclusion += item.bz; } }); - // this.rows.push(this.focusrow); + // this.rows.push(this.focusrow); } }); } this.rows.push(datas); - console.log(this.rows,5522) - - // this.$refs.aaa.open = true; - // this.$refs.aaa.getList(); + console.log(this.rows, 5522); }, - /* vale(datas) { - this.proResult = datas; - var pattern3 = new RegExp("[0-9]+"); - if (pattern3.test(this.proResult)) { - let data = { - proId: this.focusrow.proId, - cusId: this.tableAll.cusId, - keyNum: this.proResult, - }; - AutoGetRule(data).then((res) => { - this.focusrow.conclusion = ""; - if (res.data) { - this.autorule = res.data; - this.focusrow.rulesList = this.autorule; - this.autorule.forEach((item) => { - if (this.focusrow.conclusion) { - this.focusrow.conclusion += item.bingzhong; - } else { - this.focusrow.conclusion = item.bingzhong; - } - }); - } - }); - } else { - let data = { - proId: this.focusrow.proId, - cusId: this.tableAll.cusId, - keyWord: this.proResult, - }; - AutoGetRule(data).then((res) => { - this.focusrow.conclusion = ""; - if (res.data) { - this.autorule = res.data; - this.focusrow.rulesList = this.autorule; - this.autorule.forEach((item) => { - if (this.focusrow.conclusion) { - this.focusrow.conclusion += item.bingzhong; - } else { - this.focusrow.conclusion = item.bingzhong; - } - }); - } - }); - } - - // this.$refs.aaa.open = true; - // this.$refs.aaa.getList(); - }, */ - // 瑙勫垯 handleguize(row) { this.row = row; this.$refs.aaa.open = true; @@ -2799,9 +2762,6 @@ this.getbzlist(); }); }, - handleInConfirm(row) { - this.focusrow = row; - }, // 鐐瑰嚮纭 determine() { @@ -2883,7 +2843,6 @@ } .el-button--medium { - padding: 4px 14px; font-size: 14px; } -- Gitblit v1.8.0