From b2cc0b207328ab1058f955b2e61789ba821b1704 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期六, 04 一月 2025 18:09:01 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb --- src/views/doctor/check/index.vue | 272 ++++++++++++++++++++++------------------------------- 1 files changed, 113 insertions(+), 159 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 5c097d8..bedd44d 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -74,11 +74,11 @@ <el-table-column label="鎿嶄綔" align="center" width="150px"> <template slot-scope="scope"> <el-button type="primary" size="mini" @click="hadleedit(scope.row)" v-if="scope.row.hzReplyLogsList.length == 0 && - scope.row.hzDoctorId == info.userId - ">淇敼</el-button> + scope.row.hzDoctorId == info.userId + ">淇敼</el-button> <el-button type="primary" size="mini" v-if="scope.row.hzReplyLogsList.length == 0 && - scope.row.hzDoctorId == info.userId - " @click="handledele(scope.row)">鍒犻櫎</el-button> + scope.row.hzDoctorId == info.userId + " @click="handledele(scope.row)">鍒犻櫎</el-button> </template> </el-table-column> </el-table> @@ -212,8 +212,8 @@ " cellspacing="4"> <caption style="background-color: #f8f8f9; font-size: 18px"> 濉啓{{ - tableAll.cusName - }}鐨勪綋妫�璧勬枡 + tableAll.cusName + }}鐨勪綋妫�璧勬枡 </caption> <tr style="border: 1px solid #dfe6ec; border-collapse: collapse"> <td style="border: 1px solid #dfe6ec; border-collapse: collapse" align="right"> @@ -233,12 +233,12 @@ </td> <td style="border: 1px solid #dfe6ec; border-collapse: collapse"> {{ - tableAll.cusSex == 0 - ? "鐢�" - : tableAll.cusSex == 1 - ? "濂�" - : "鏈煡" - }} + tableAll.cusSex == 0 + ? "鐢�" + : tableAll.cusSex == 1 + ? "濂�" + : "鏈煡" + }} </td> </tr> <tr style="border: 1px solid #dfe6ec; border-collapse: collapse"> @@ -339,7 +339,7 @@ </el-table-column> </el-table> - <div style="font-size: 14px; overflow-y: auto; height: 286px"> + <div style="font-size: 14px; overflow-y: auto; height: 286px" class="a"> <table style=" width: 96%; margin: 4px 10px; @@ -424,34 +424,15 @@ </tr> </table> - <div slot="footer" class="dialog-footers"> - <!-- v-show="tjStatus == '0'" --> - <!-- <el-button type="primary" - size="mini" - @click="radioChange" - v-hasPermi="['system:notice:add']" - v-show="tjStatus == '1'" - >浼氳瘖鐢宠</el-button> --> + <div slot="footer" class="dialog-footers1"> + <el-button type="primary" @click="determine">鎻� 浜�</el-button> </div> </div> </el-tab-pane> </el-tabs> </template> - <!-- <template> - <div style="margin-left: 10px"> - <el-radio-group - v-model="radio" - v-for="(item, index) in Parent" - :key="index" - @input="radioChange1(item.proId, item)" - > - <el-radio-button :label="item.proId">{{ - item.proName - }}</el-radio-button> - </el-radio-group> - </div> - </template> --> + </el-col> <el-col :span="18" v-show="baogaohou"> <template> @@ -467,7 +448,8 @@ <el-table-column prop="proResult" label="妫�娴嬬粨鏋�" width="150"> <template slot-scope="scope"> <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off" - placeholder="璇疯緭鍏ユ娴嬬粨鏋�" @focus="handleFocus(scope.row)" @blur="handleInputConfirm(scope.row)" @input="vale"></el-input> + placeholder="璇疯緭鍏ユ娴嬬粨鏋�" @focus="handleFocus(scope.row)" @blur="handleInputConfirm(scope.row)" + @input="vale"></el-input> </template> </el-table-column> <el-table-column label="瑙勫垯" width="70"> @@ -601,75 +583,21 @@ </table> <div slot="footer" class="dialog-footers"> - <!-- <el-button type="primary" - size="mini" - @click="radioChange" - v-hasPermi="['system:notice:add']" - v-show="tjStatus == '1'" - >浼氳瘖鐢宠</el-button> --> - <!-- v-show="tjStatus == '0'" --> + <el-button type="primary" @click="determine">鎻� 浜�</el-button> </div> </div> </el-tab-pane> </el-tabs> </template> - <!-- <template> - <div style="margin-left: 10px"> - <el-radio-group v-model="radio" v-for="(item, index) in Parent" :key="index" - @input="radioChange1(item.proId, item)"> - <el-radio-button :label="item.proId">{{ - item.proName - }}</el-radio-button> - </el-radio-group> - </div> - </template> --> + </el-col> <el-col :span="6" style="margin-top: 15px"> <Historicalreport v-show="lishi" :reportHistorydata="reportHistorydata"></Historicalreport> </el-col> </el-row> - <!-- <div style="background-color: #f3f3f3;font-size:14px;overflow-y:auto;height: calc(100% - 11%);"> - <table style="width:96%;margin: 4px 10px;border:1px solid white" cellspacing="4" border="2" - v-for="(item, index) in proParentList.sons" :key="index"> - <tr align="center"> - <th>妫�娴嬮」鐩�</th> - <th>妫�娴嬬粨鏋�</th> - <th>鍗曚綅</th> - <th>鍙傝�冭寖鍥�</th> - </tr> - <tr> - <td>{{ item.project.proName }}</td> - <td><el-input v-model="item.proResult" placeholder="璇疯緭鍏ュ唴瀹�"></el-input></td> - <td>{{ item.standard.company }}</td> - <td>{{ item.standard.tjStandardGtValue + "-" + item.standard.tjStandardLtValue }}</td> - </tr> - <tr> - <td>灏忕粨锛�</td> - <td> - <el-select v-model="item.value" multiple filterable placeholder="璇烽�夋嫨" style="width:100%"> - <el-option v-for="item in proParentList.parentAdvice" :key="item.id" :label="item.title" - :value="item.id"> - </el-option> - </el-select> - </td> - <td>涓绘鍖诲笀锛�</td> - <td>{{ item.doctorName }}</td> - </tr> - <tr> - <td>澶囨敞锛�</td> - <td colspan="2"> - <el-input type="textarea" autosize placeholder="璇疯緭鍏ュ唴瀹�" v-model="item.remark"> - </el-input> - </td> - </tr> - </table> - <div slot="footer" class="dialog-footer"> - <el-button type="primary" @click="determine">纭� 瀹�</el-button> - </div> - </div> --> </el-drawer> <Public ref="aaa" :row="row" @add="handleChanges" /> <jianceResult ref="bbb" @add="handleChangesZt" /> @@ -995,7 +923,7 @@ return } else { this.curindex = row - this.$refs.bbb.open = true; + this.$refs.bbb.title = "閫夋嫨妫�娴嬬粨鏋�"; this.$refs.bbb.proId = row.proId; this.$refs.bbb.getList(); @@ -1003,7 +931,7 @@ }, handleChangesZt(params) { - this.curindex.proResult = params[0].ruleStr + this.curindex.proResult = params.map(item => item.ruleStr).join(','); }, tableRowClassName({ row }) { if (row.exceptionDesc) { @@ -1212,75 +1140,79 @@ console.log("杈撳叆鍐呭:", value); }, handleInputConfirm(datas) { - this.focusrow = 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, - tjNum: this.tableAll.tjNumber, - keyNum: this.proResult.proResult, - }; - AutoGetRule(data).then((res) => { - this.focusrow.conclusion = ""; - 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) - ); - } else { - this.focusrow.exceptionDesc = false; - } - this.focusrow.proAdvice = this.autorule[0].nr; - this.autorule.forEach((item) => { - if (this.focusrow.conclusion) { - this.focusrow.conclusion += item.bz; + if (datas.proResult){ + this.focusrow = 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, + tjNum: this.tableAll.tjNumber, + keyNum: this.proResult.proResult, + }; + AutoGetRule(data).then((res) => { + this.focusrow.conclusion = ""; + 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) + ); } else { - this.focusrow.conclusion += item.bz; + this.focusrow.exceptionDesc = false; } - }); - } - }); - } - else { - let data = { - proId: this.focusrow.proId, - cusId: this.tableAll.cusId, - keyWord: this.proResult, - tjNum: this.tableAll.tjNumber, - keyNum: this.proResult.proResult, - }; - AutoGetRule(data).then((res) => { - this.focusrow.conclusion = ""; - 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) - ); - } else { - this.focusrow.exceptionDesc = false; + this.focusrow.proAdvice = this.autorule[0].nr; + this.autorule.forEach((item) => { + if (this.focusrow.conclusion) { + this.focusrow.conclusion += item.bz; + } else { + this.focusrow.conclusion += item.bz; + } + }); } - this.focusrow.proAdvice = this.autorule[0].nr; - this.autorule.forEach((item) => { - if (this.focusrow.conclusion) { - this.focusrow.conclusion += item.bz; + }); + } + else { + let data = { + proId: this.focusrow.proId, + cusId: this.tableAll.cusId, + keyWord: this.proResult, + tjNum: this.tableAll.tjNumber, + keyNum: this.proResult.proResult, + }; + AutoGetRule(data).then((res) => { + this.focusrow.conclusion = ""; + 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) + ); } else { - this.focusrow.conclusion += item.bz; + this.focusrow.exceptionDesc = false; } - }); - // this.rows.push(this.focusrow); - } - }); - } + this.focusrow.proAdvice = this.autorule[0].nr; + this.autorule.forEach((item) => { + if (this.focusrow.conclusion) { + this.focusrow.conclusion += item.bz; + } else { + this.focusrow.conclusion += item.bz; + } + }); + // this.rows.push(this.focusrow); + } + }); + } + this.rows.push(datas); + + } + - this.rows.push(datas); }, handleguize(row) { @@ -2240,8 +2172,6 @@ let data = [ { - proAdvice: item.proAdvice, - tjNumber, proId: this.proId, remark: this.proParentList.remark, // 澶囨敞 @@ -2261,6 +2191,10 @@ }; </script> <style lang="scss" scoped> +.a { + position: relative; +} + .el-table .cell { -webkit-box-sizing: border-box; box-sizing: border-box; @@ -2363,4 +2297,24 @@ background-color: #66cc66; border-color: #66cc66; } + +.dialog-footers1 { + position: fixed; + bottom: 0; + left: 63%; + transform: translateX(-50%); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; + /* 纭繚鎸夐挳灞傜骇鍦ㄥ叾浠栧唴瀹逛笂鏂� */ + width: 300px; + background-color: white; + /* 鍙牴鎹渶瑕佽皟鏁磋儗鏅鑹� */ +} + +/* 纭繚鎸夐挳涔嬮棿鏈夊悎閫傜殑闂磋窛 */ +.dialog-footers1 .el-button { + margin: 0 5px; +} </style> -- Gitblit v1.8.0