Selaa lähdekoodia

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

liujt 3 kuukautta sitten
vanhempi
commit
841397b36c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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();
         }
       },