From 24112d26079c0010f0baff217d9ddcd9dfb595b4 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期日, 05 十一月 2023 17:31:05 +0800 Subject: [PATCH] 11 --- src/views/project/donatefinish/index.vue | 111 +++++++++++++++++++++++++++++-------------------------- 1 files changed, 59 insertions(+), 52 deletions(-) diff --git a/src/views/project/donatefinish/index.vue b/src/views/project/donatefinish/index.vue index cbeed87..e8e379f 100644 --- a/src/views/project/donatefinish/index.vue +++ b/src/views/project/donatefinish/index.vue @@ -222,7 +222,7 @@ size="mini" type="text" icon="el-icon-edit" - @click="handleUpdate(scope.row)" + @click="handleAdd(scope.row)" v-hasPermi="['project:donatebaseinfo:edit']" >淇敼</el-button > @@ -1053,63 +1053,70 @@ /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd(row) { - this.reset(); - - //璇诲彇妗堜緥鍩烘湰淇℃伅 - //this.curCase = row; - this.curCase = { - id: row.id, - recordstate: null, - donorno: row.donorno, - }; - this.form.coordinateduserido = row.coordinateduserido; - this.form.coordinateduseridt = row.coordinateduseridt; - this.form.coordinatedusernameo = row.coordinatedusernameo; - this.form.coordinatedusernamet = row.coordinatedusernamet; - this.form.responsibleuserid = row.responsibleuserid; - this.form.responsibleusername = row.responsibleusername; - - this.form.receivingunit = row.receivingunit; - this.form.responsibleusername = row.responsibleusername; - this.registerAddresss.sheng = row.residenceprovincename; - this.registerAddresss.shi = row.residencecityname; - this.registerAddresss.qu = row.residencetownname; - - //鍒ゆ柇鏄惁瀛樺湪涓婃姤璁板綍 - let searchParam = { - id: row.id, - }; - listDonatecompletioninfo(searchParam).then((response) => { - if (response.code == 200 && response.rows.length == 1) { - this.form = response.rows[0]; - this.form.donateorganList = JSON.parse(this.form.donateorgan); - this.title = "淇敼鎹愮尞瀹屾垚鐧昏琛�"; - } else { - this.curdonotor = row; - this.open = true; - this.title = "鏂板鎹愮尞瀹屾垚鐧昏琛�"; + this.$router.push({ + path: "/organ/donationdetails/", + query: { + id: row.id, + organType: "edit", } }); + // this.reset(); - //鑾峰彇鍣ㄥ畼淇℃伅 - let oraganqueryParam = { - infoid: row.id, - }; - listDonateorgan(oraganqueryParam).then((response) => { - if (response.code == 200) { - this.tableData = response.rows; - } else { - this.$modal.msgError("鑾峰彇鎹愮尞鍣ㄥ畼澶辫触锛�" + response.msg); - } - }); + // //璇诲彇妗堜緥鍩烘湰淇℃伅 + // //this.curCase = row; + // this.curCase = { + // id: row.id, + // recordstate: null, + // donorno: row.donorno, + // }; + // this.form.coordinateduserido = row.coordinateduserido; + // this.form.coordinateduseridt = row.coordinateduseridt; + // this.form.coordinatedusernameo = row.coordinatedusernameo; + // this.form.coordinatedusernamet = row.coordinatedusernamet; + // this.form.responsibleuserid = row.responsibleuserid; + // this.form.responsibleusername = row.responsibleusername; - //鑾峰彇闄勪欢淇℃伅 - // this.$nextTick(function () { - // this.$refs.finishannex.getAnnexList(); + // this.form.receivingunit = row.receivingunit; + // this.form.responsibleusername = row.responsibleusername; + // this.registerAddresss.sheng = row.residenceprovincename; + // this.registerAddresss.shi = row.residencecityname; + // this.registerAddresss.qu = row.residencetownname; + + // //鍒ゆ柇鏄惁瀛樺湪涓婃姤璁板綍 + // let searchParam = { + // id: row.id, + // }; + // listDonatecompletioninfo(searchParam).then((response) => { + // if (response.code == 200 && response.rows.length == 1) { + // this.form = response.rows[0]; + // this.form.donateorganList = JSON.parse(this.form.donateorgan); + // this.title = "淇敼鎹愮尞瀹屾垚鐧昏琛�"; + // } else { + // this.curdonotor = row; + // this.open = true; + // this.title = "鏂板鎹愮尞瀹屾垚鐧昏琛�"; + // } // }); - this.loading = false; - this.open = true; + // //鑾峰彇鍣ㄥ畼淇℃伅 + // let oraganqueryParam = { + // infoid: row.id, + // }; + // listDonateorgan(oraganqueryParam).then((response) => { + // if (response.code == 200) { + // this.tableData = response.rows; + // } else { + // this.$modal.msgError("鑾峰彇鎹愮尞鍣ㄥ畼澶辫触锛�" + response.msg); + // } + // }); + + // //鑾峰彇闄勪欢淇℃伅 + // // this.$nextTick(function () { + // // this.$refs.finishannex.getAnnexList(); + // // }); + + // this.loading = false; + // this.open = true; }, /** 淇敼鎸夐挳鎿嶄綔 */ -- Gitblit v1.9.3