From da186a8b1159c5e7b19b3aab450053e8e06f2df0 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期一, 28 四月 2025 14:14:06 +0800 Subject: [PATCH] qx --- src/views/doctor/check/index.vue | 1 src/views/doctor/test/index.vue | 76 +++++++++++++++++++++++++++++++++++++- src/api/doctor/check.js | 11 +++++ 3 files changed, 85 insertions(+), 3 deletions(-) diff --git a/src/api/doctor/check.js b/src/api/doctor/check.js index cc5e9a0..f2c00e0 100644 --- a/src/api/doctor/check.js +++ b/src/api/doctor/check.js @@ -64,6 +64,17 @@ }) } +// 鍖荤敓鐐瑰嚮浣撴淇℃伅璇︽儏(鍙樉绀虹埗椤圭洰鍒楄〃) +export function getParentListWs(tjNumber) { + return request({ + url: '/system/dept/getParentListWs', + method: 'get', + params:{ + tjNumber:tjNumber + } + }) +} + //鐐瑰嚮鐖堕」鐩樉绀哄瓙椤圭洰璇︽儏 export function getParentId(data) { diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index af5ab3f..fbaaf1b 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -1001,7 +1001,6 @@ // 杈撳叆纭鏃舵洿鏂� BMI handleInputConfirm(row, params) { - console.log(row, params, 55555) // 濡傛灉鏈� params 涓斾负绌猴紝鍙栨秷寮傚父鐘舵�佸苟娓呯┖鐩稿叧瀛楁 if (params && params.length === 0) { row.exceptionDesc = false; diff --git a/src/views/doctor/test/index.vue b/src/views/doctor/test/index.vue index 479807c..dfcef6c 100644 --- a/src/views/doctor/test/index.vue +++ b/src/views/doctor/test/index.vue @@ -440,10 +440,11 @@ import Public from "@/components/public"; import { getInfo } from "@/api/login"; import { + AutoGetRule, huaYangetProList, getPhotoList, getaddRemark, - getParentList, + getParentListWs, getParentId, getDeptAdvice, } from "@/api/doctor/check"; @@ -533,9 +534,11 @@ summaryAll: [], tjOrderDetailList: [], tjOrderDetail: [], + autorule: [], deptId: "", userId: "", nickName: "", + focusrow: {}, date: new Date(new Date().getTime() + 8 * 3600 * 1000) .toJSON() .substr(0, 19) @@ -978,7 +981,7 @@ } this.tjNumber = row.tjNumber; let num = 0; - getParentList(this.tjNumber).then((response) => { + getParentListWs(this.tjNumber).then((response) => { if (response.data) { this.loading = false; this.Parent = response.data; @@ -1335,6 +1338,75 @@ handleInputConfirm(row) { this.rows.push(row); + this.focusrow = row; + const pattern3 = new RegExp("[0-9]+"); + if (pattern3.test(row.proResult)) { + let data = { + proId: this.focusrow.proId, + cusId: this.tableAll.cusId, + tjNum: this.tableAll.tjNumber, + keyNum: this.focusrow.proResult, + }; + AutoGetRule(data).then((res) => { + this.focusrow.conclusion = ""; + if (res.data) { + this.autorule = res.data; + this.focusrow.rulesList = res.data; + if (row.project.sfcyyc == 1) { + return + } else { + 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; + } + this.autorule.forEach((item) => { + this.focusrow.conclusion += this.focusrow.conclusion ? item.bz : item.bz; + }); + } + }); + } else { + let data = { + proId: this.focusrow.proId, + cusId: this.tableAll.cusId, + keyWord: this.focusrow.proResult, // 淇敼涓� proResult.proResult + tjNum: this.tableAll.tjNumber, + keyNum: this.focusrow.proResult, + }; + AutoGetRule(data).then((res) => { + this.focusrow.conclusion = ""; + if (res.data) { + this.autorule = res.data; + this.focusrow.rulesList = res.data; + if (row.project.sfcyyc == 1) { + return + } else { + 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; + } + this.autorule.forEach((item) => { + this.focusrow.conclusion += this.focusrow.conclusion ? item.bz : item.bz; + }); + } + }); + } }, // 鐐瑰嚮纭 determine() { -- Gitblit v1.8.0