浏览代码

fix(inquiryTable): 修复总价计算

liujt 5 月之前
父节点
当前提交
18e989f0a3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/purchasingManage/inquiryManage/components/inquiryTable.vue

+ 2 - 2
src/views/purchasingManage/inquiryManage/components/inquiryTable.vue

@@ -835,7 +835,7 @@
           this.obj.deliveryDate || item.expectReceiveDate;
       });
       this.form = copyObj(this.obj);
-      console.log(this.form, '');
+      console.log(this.form, '111');
 
       this.radio1 = this.radio;
       this.getSpanArr();
@@ -1060,7 +1060,7 @@
       totalPriceAll() {
         let num = 0;
         this.form.resultList.forEach((item) => {
-          num += item.totalPrice || 0;
+          num += +item.totalPrice || 0;
         });
         this.form.totalPrice = parseFloat(num.toFixed(2));
         this.form.preferentialPrice = this.form.totalPrice;