Forráskód Böngészése

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

liujt 3 hónapja
szülő
commit
841397b36c

+ 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();
         }
       },