From be42af700f901f496db68d97ab46e2c1d4bef85a Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 31 十月 2023 16:35:58 +0800 Subject: [PATCH] 11 --- src/views/project/donationdetails/index.vue | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 54 insertions(+), 5 deletions(-) diff --git a/src/views/project/donationdetails/index.vue b/src/views/project/donationdetails/index.vue index f94db32..7f5a746 100644 --- a/src/views/project/donationdetails/index.vue +++ b/src/views/project/donationdetails/index.vue @@ -4,7 +4,7 @@ <div class="postfilx"> <div class="title">宸ヤ綔杩涚▼</div> <div style="height: 666px;"> - <el-steps direction="vertical" :active="actives"> + <el-steps direction="vertical" :active="workflow"> <el-step title="娼滃湪鎹愮尞" icon="el-icon-user"> <template slot="description" @@ -2225,6 +2225,11 @@ <script> import { + addDonateannex, + listDonateannex, + Modifydonationattachment +} from "@/api/project/donateannex"; +import { getDonatebaseinfo, addDonatebaseinfo, updateDonatebaseinfo, @@ -2310,6 +2315,7 @@ accomplishform: {}, tableData: [], actives: 0, //杩涚▼ + workflow:0, loading: false, // 淇濆瓨銆佺粓姝㈡寜閽‘璁� showSaveBtn: true, @@ -2422,6 +2428,12 @@ witnessrules: {}, accomplishrules: {}, //闄勪欢鍒楄〃 + donatelist: [], //闄勪欢鎬荤粍 + potentiallist: [], //娼滃湪闄勪欢 + medicinelist: [], //鍖诲闄勪欢 + affirmlist: [], //纭闄勪欢 + ethiclist: [], //浼︾悊闄勪欢 + registerlist: [], //瀹屾垚闄勪欢 fileList: [], fileListto: [], invoicefileList: [], @@ -2452,23 +2464,24 @@ mounted() { // this.id = this.$route.query.id; this.Getbasicinformation(); + this.listDonateannex(); }, methods: { // 鑾峰彇涓昏〃鏁版嵁 Getbasicinformation() { - console.log(this.infoid); - console.log(this.hintitle); // 宸︿晶娴佺▼鏁版嵁 getDonatebaseinfoflow(this.infoid).then(res => { console.log(res.data); this.Processdata = res.data; }); + // 琛ㄥ崟鏁版嵁 getDonatebaseinfo(this.infoid).then(response => { this.form = response.data; this.showTerminationBtn = response.data.terminationCase; this.actives = response.data.workflow; + this.workflow=response.data.workflow; response.data.sex = parseInt(response.data.sex); this.form.id = response.data.id; this.form.diseasetype = this.form.diseasetype.split(","); @@ -2578,6 +2591,40 @@ }); } }, + // 鑾峰彇闄勪欢鏁版嵁骞跺垎绫讳簩绾у垪 + listDonateannex() { + let parmi = {}; + parmi.infoid = this.infoid.toString(); + listDonateannex(parmi).then(res => { + this.donatelist = res.rows; + }); +// 娴嬭瘯鏁版嵁 + const arr = [ + { type: "type1", name: "saaada" }, + { type: "type2", name: "ssssda" }, + { type: "type3", name: "sdddda" }, + { type: "type4", name: "sdddda" }, + { type: "type5", name: "sdddda" } + ]; + const groupedArr = arr.reduce((accumulator, currentValue) => { + const key = currentValue.type; + if (key == "type1") { + this.potentiallist.push(currentValue); + } else if (key == "type2") { + this.medicinelist.push(currentValue); + } else if (key == "type3") { + this.affirmlist.push(currentValue); + } else if (key == "type4") { + this.ethiclist.push(currentValue); + } else if (key == "type5") { + this.registerlist.push(currentValue); + } + return accumulator; + }, {}); + console.log(this.potentiallist); + console.log(this.medicinelist); + }, + /** 淇濆瓨涓昏〃鎸夐挳 */ submitForm() { this.$refs["form"].validate(valid => { @@ -2880,7 +2927,7 @@ }, // 杩斿洖涓婁竴椤� cancel() {}, - // ------------------------绁ㄦ嵁 + // ----------------------------------鏂囦欢 // 鑾峰彇璇锋眰澶� Getnetworkheader() { let string = window.location.href; @@ -3092,7 +3139,9 @@ const item = this.invoicefileListto.splice(index, 1)[0]; // 绉婚櫎鎸囧畾绱㈠紩澶勭殑鍏冪礌锛屽苟淇濆瓨鍒癷tem鍙橀噺涓� this.invoicefileListto.splice(index - 1, 0, item); // 灏唅tem鎻掑叆鍒扮储寮曚綅缃殑鍓嶄竴浣� } - } + }, + // 淇濆瓨 + saveattachment(stype) {} } }; </script> -- Gitblit v1.9.3