瀏覽代碼

Merge branch '03/03GRADE'

Xiao_Mo 3 年之前
父節點
當前提交
50979b1a0f
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/views/resetTeaming/modals/subject-preview.vue

+ 6 - 4
src/views/resetTeaming/modals/subject-preview.vue

@@ -305,7 +305,7 @@
               >
               <span style="color: #1a1a1a" v-if="con.kitType == 'GROUP'"
                 >¥{{
-                  Number((con.marketPrice - con.coupon).toFixed(2)) | moneyFormat
+                  Number((con.discountPrice - con.coupon).toFixed(2)) | moneyFormat
                 }}</span
               >
             </el-col>
@@ -665,6 +665,7 @@ export default {
                 tempItem.marketPrice = tempItem.goodsList[0].marketPrice;
                 tempItem.kitType = single; // 优惠模式
                 tempItem.coupon = KGPTJ[single]; // 优惠金额
+                tempItem.discountPrice = tempItem.goodsList[0].discountPrice
                 if (instrumentInfo.id) {
                   tempItem.checked = false;
                   if (single == "GROUP") {
@@ -1010,6 +1011,7 @@ export default {
       let ir = this.instrumentResult;
       if (ir.length > 0) {
         ir.forEach((item) => {
+          console.log(item)
           if (item.checked) {
             if (item.name != "自备乐器") {
               contractGoodsIds += item.goodsIdList;
@@ -1032,8 +1034,8 @@ export default {
                 this.organId == 55 &&
                 !this.toolsPackage[0].isStatus
               ) {
-                amount += parseFloat(item.marketPrice);
-                goodsPrice += parseFloat(item.marketPrice);
+                amount += parseFloat(item.discountPrice);
+                goodsPrice += parseFloat(item.discountPrice);
                 couponPrice = item.coupon ? item.coupon : 0;
               } else {
                 amount += parseFloat(item.price);
@@ -1072,7 +1074,7 @@ export default {
                 buyList.push({
                   name: item.name,
                   type: "团购",
-                  price: parseFloat(item.marketPrice - couponPrice),
+                  price: parseFloat(item.discountPrice - couponPrice),
                 });
               } else {
                 buyList.push({