From e13b130ad7fe8a203c1b67aeb8d4baabf6e0d395 Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期四, 09 一月 2025 15:44:57 +0800 Subject: [PATCH] 2 --- src/views/doctor/examination/index.vue | 65 ++++++++++++++++++++------------ src/api/doctor/examination.js | 9 ++++ src/views/hosp/project/index.vue | 11 ++++- 3 files changed, 58 insertions(+), 27 deletions(-) diff --git a/src/api/doctor/examination.js b/src/api/doctor/examination.js index 961abe9..f86bb7b 100644 --- a/src/api/doctor/examination.js +++ b/src/api/doctor/examination.js @@ -46,6 +46,15 @@ }) } +// 鐐瑰嚮鎭㈠ +export function huifu(tjNUm,proId) { + return request({ + url: '/hosp/inspection/csqijianhuifujiekou', + method: 'get', + params: {tjNUm:tjNUm,proId:proId} + }) +} + // 鐐瑰嚮缁撴灉鏌ヨ export function resultList(tjNum,proId) { return request({ diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue index 9c2d49f..7cbcd70 100644 --- a/src/views/doctor/examination/index.vue +++ b/src/views/doctor/examination/index.vue @@ -304,12 +304,18 @@ type="text" :disabled="scope.row.type === 1" @click="qijian(scope.row)" - >寮冩</el-button + >{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button > + <!-- <el-button + size="mini" + type="text" + @click="qijian(scope.row)" + >鎭㈠</el-button + > --> <el-button size="mini" type="text" - :disabled="scope.row.type === 0" + :disabled="scope.row.type === 0 || scope.row.type === 2" @click="queryResultone(scope.row)" >缁撴灉鏌ヨ</el-button > @@ -396,6 +402,7 @@ qijian, resultList, typeOne, + huifu, } from "@/api/doctor/examination"; import { getCompany, queryCompany } from "@/api/team/tuanti"; import { getNewDateList } from "@/api/hosp/order"; @@ -503,14 +510,14 @@ // console.log(this.xianshi, 999); }); getNewDateList().then((res) => { - console.log(res,222); - + // console.log(res,222); + // this.createTimeList = [ // moment(res.data).format("YYYY-MM-DD 00:00:00"), // moment(res.data).format("YYYY-MM-DD 23:59:00"), // ]; // console.log(this.createTimeList,8855); - + this.getList(); }); }, @@ -552,7 +559,7 @@ // 閫夋鏁版嵁 searchSelect(val) { this.CheckBox = val; - console.log(this.CheckBox, 9999); + // console.log(this.CheckBox, 9999); }, getList() { this.loading = true; @@ -569,7 +576,7 @@ // 鑾峰彇鍗曚綅淇℃伅闆嗗悎 getCompany(this.queryParam).then((response) => { this.CompanyList = response.data; - console.log(this.CompanyList, 555); + // console.log(this.CompanyList, 555); this.loading = false; }); @@ -732,17 +739,13 @@ this.currentRow = val; let tjNumber = val.tjNumber; this.selectedTjNumber = val.tjNumber; - console.log(this.currentRow, 4455); typeOne(tjNumber).then((res) => { this.type = res.data; - console.log(res, 3322); }); cSWebGetPro(tjNumber).then((res) => { this.xiangmuList = res.data; - console.log(this.xiangmuList, 999); - this.xiangmuList.forEach((item) => { // console.log(item); // if (item.type == 0) { @@ -780,23 +783,35 @@ qijian(row) { const tjNUm = this.selectedTjNumber; const proId = row.proId; - - qijian(tjNUm, proId).then((res) => { - if (res.code == 200) { - cSWebGetPro(tjNUm).then((res) => { - if (res.code === 200) { - // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹� - this.xiangmuList = res.data; - } - }); - } - }); + if (row.type == "2") { + huifu(tjNUm, proId).then((res) => { + if (res.code == 200) { + cSWebGetPro(tjNUm).then((res) => { + if (res.code === 200) { + // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹� + this.xiangmuList = res.data; + } + }); + } + }); + } else { + qijian(tjNUm, proId).then((res) => { + if (res.code == 200) { + cSWebGetPro(tjNUm).then((res) => { + if (res.code === 200) { + // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹� + this.xiangmuList = res.data; + } + }); + } + }); + } }, - chaxun() {}, + handleRowClick(row, column, event) { - console.log(row, 2323); + // console.log(row, 2323); this.name = row.proName; - console.log(this.name, 99999); + // console.log(this.name, 99999); }, queryResultone(row) { // 鎵撳紑鎶藉眽 diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index d4477bf..33054b5 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -343,7 +343,11 @@ </el-input> </el-form-item> <el-form-item label="椤圭洰浠锋牸" prop="proPrice"> - <el-input v-model="form.proPrice" placeholder="璇疯緭鍏ラ」鐩环鏍�" /> + <el-input + v-model="form.proPrice" + :disabled="isPriceDisabled" + placeholder="璇疯緭鍏ラ」鐩环鏍�" + /> </el-form-item> <el-form-item label="妫�鏌ョ被鍒�" prop="proCheckType"> <el-input @@ -980,6 +984,7 @@ // 閮ㄩ棬鏍戦�夐」 deptOptions: undefined, dialogTableVisible: false, + isPriceDisabled: false, sfxmList: [], deptOptionstree: [], defaultPropstree: { @@ -1075,7 +1080,7 @@ lisXmmc: "", proMetering: "", proScope: "", - proSex:'2', + proSex: "2", resultType: "", // 鍒濆鍊� }, // 琛ㄥ崟鏍¢獙 @@ -1657,6 +1662,8 @@ this.form = this.xiugaiList; this.form.proStatus = this.form.proStatus.toString(); this.proParent = true; + // 璁剧疆椤圭洰浠锋牸绂佺敤 + this.isPriceDisabled = true; // if(){ // this.proParent = true // } -- Gitblit v1.8.0