Преглед изворни кода

fix: 修复销售订单类型列表总价计算问题

liujt пре 3 месеци
родитељ
комит
841397b36c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/views/bpm/handleTask/components/saleOrder/typeList.vue

+ 1 - 0
src/views/bpm/handleTask/components/saleOrder/typeList.vue

@@ -161,6 +161,7 @@
       async putTableValue(productList) {
         if (productList) {
           this.form.datasource = productList;
+          this.allPrice = productList?.reduce((acc, item) => acc + item.totalPrice, 0).toFixed(2) || 0;
           this.$refs.table.reload();
         }
       },