Просмотр исходного кода

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

liujt 3 месяцев назад
Родитель
Сommit
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();
         }
       },