From d23ab1d66456d5dd8aa8645bb262deef4e70a9eb Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期五, 17 一月 2025 19:02:01 +0800 Subject: [PATCH] 2 --- src/views/hosp/order/index.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/hosp/order/index.vue b/src/views/hosp/order/index.vue index cc0e72d..9d7b6c4 100644 --- a/src/views/hosp/order/index.vue +++ b/src/views/hosp/order/index.vue @@ -763,7 +763,9 @@ > <el-table-column prop="propinName" label="妫�鏌ラ」鐩�"> </el-table-column> - <el-table-column prop="proPrice" label="鍘熶环" width="56px"> + <el-table-column prop="sl" label="鏁伴噺" width="56px"> + </el-table-column> + <el-table-column prop="proPrice" label="鍘熶环" width="56px"> </el-table-column> <el-table-column prop="proName" @@ -1947,7 +1949,6 @@ // 鑾峰彇鍗曚綅淇℃伅闆嗗悎 getCompany(this.queryParams).then((response) => { this.CompanyList = response.data; - console.log(this.CompanyList, 555); this.loading = false; }); @@ -2465,8 +2466,10 @@ let datas = { zhId: data.id, }; + getlistByZhId(datas).then((res) => { this.packagedataList = res.data.tjProjectList; + for (var i = 0; i < this.packagedataList.length; i++) { let proId = this.packagedataList[i].proId; getProSonDxList(proId).then((res) => { @@ -2628,7 +2631,8 @@ this.TotalPrice1 = 0; if (this.DataList3.length != 0) { this.DataList3.forEach((item) => { - this.TotalPrice1 += item.proPrice; + + this.TotalPrice1 += item.proPrice * item.sl; }); } // this.TotalPrice1 = 0; @@ -2672,7 +2676,9 @@ this.DataList.splice(index, 1); this.TotalPrice1 = 0; this.DataList.forEach((item1) => { + this.TotalPrice1 = item1.proPrice + this.TotalPrice1; + }); if (this.marryalls != 0) { this.TotalPrice1 += this.marryalls; @@ -2681,7 +2687,6 @@ }); } else if (checked == true) { this.DataList.push(data); - console.log(this.DataList, 6666); this.DataList.forEach((item1) => { if (item1.proParentId == this.dataObj.proId) { item1.propinName = this.dataObj.proName; @@ -2690,6 +2695,9 @@ this.spliceData(); this.TotalPrice1 = 0; this.DataList.forEach((item1) => { + console.log(item1.proPrice,3322); + console.log(this.TotalPrice1,1122); + this.TotalPrice1 = item1.proPrice + this.TotalPrice1; }); if (this.marryalls != 0) { -- Gitblit v1.8.0