From 084a948017ab84c48241082adba96ca1da1b9857 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期四, 14 九月 2023 11:30:00 +0800 Subject: [PATCH] qxtj --- src/views/doctor/check/index.vue | 32 ++++++++++++++++++++++++-------- 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 97aa9f2..d6ffdf4 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -129,8 +129,8 @@ </el-radio-group> </div> </template> - - <el-table :data="proParentList.sons" border height="460px" style="width: 96%; margin: 10px 10px"> + <el-table v-loading="loading" :data="proParentList.sons" border height="460px" + style="width: 96%; margin: 10px 10px"> <el-table-column prop="project.proName" label="妫�娴嬮」鐩�" width="150"> <!-- <template slot-scope="scope"> {{ scope.row.project.proName }} @@ -428,7 +428,7 @@ }); } }, - + vale(datas) { this.proResult = datas; // this.$refs.aaa.open = true; @@ -438,6 +438,7 @@ handleguize(row) { this.row = row this.$refs.aaa.open = true; + this.$refs.aaa.title = "璇婃柇缁撴灉缁撹"; this.$refs.aaa.getList(this.row); }, @@ -513,6 +514,7 @@ // 鐐瑰嚮璇︽儏 handleClick(row) { + this.loading = true; this.drawer = true; this.tableAll = row; if (this.tableAll.cusSex === 0) { @@ -541,6 +543,7 @@ }; getParentId(data).then((response) => { this.proParentList = response.data; + this.loading = false; this.value = []; if (this.proParentList.xiaoJie.length != 0) { this.proParentList.xiaoJie.forEach((item2) => { @@ -614,24 +617,30 @@ } ) .then(() => { + // 浣撴鍙� let tjNumber = this.tableAll.tjNumber; + this.userList.forEach(item => { + if (this.doctorName == item.nickName) { + this.doctorName = item.userId + } + }) this.proParentList.sons.forEach((item) => { if (this.rows) { this.rows.forEach((item1) => { if (item1 === item) { item = item1; } - // if (item.exceptionDesc === true) { - // item.exceptionDesc = 1; + // if (item.isReturn == true) { + // item.isReturn = 1; // } - // if (item.exceptionDesc === false) { - // item.exceptionDesc = 0; + // if (item.isReturn == false) { + // item.isReturn = 0; // } }); } - this.tjOrderDetail.push({ proName: item.project.proName, + proId: item.project.proId, orderDetailId: item.orderDetailId, flowingWaterId: item.flowingWaterId, proResult: item.proResult, @@ -642,6 +651,7 @@ rulesList: item.rulesList }); }); + var data = [ { tjNumber, @@ -649,6 +659,7 @@ remark: this.proParentList.remark, // 澶囨敞 proName: this.proName, //鐖堕」 summaryList: this.value, //灏忕粨 + doctorName: this.doctorName, tjOrderDetailList: this.tjOrderDetail, }, ]; @@ -764,6 +775,11 @@ determine() { // 浣撴鍙� let tjNumber = this.tableAll.tjNumber; + this.userList.forEach(item => { + if (this.doctorName == item.nickName) { + this.doctorName = item.userId + } + }) this.proParentList.sons.forEach((item) => { if (this.rows) { this.rows.forEach((item1) => { -- Gitblit v1.8.0