LAPTOP-16IUEB3P\Lenovo 2 lat temu
rodzic
commit
786fa12d48
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      src/views/saleOrder/components/create-order.vue

+ 7 - 1
src/views/saleOrder/components/create-order.vue

@@ -170,6 +170,7 @@
   import { createOrUpdate, getOrderDetail } from '@/api/saleOrder';
   import { deepClone } from '@/utils';
   import dayjs from 'dayjs';
+  import { multiply } from '@/utils/math';
   export default {
     components: {
       EquipmentDialog
@@ -372,10 +373,15 @@
       inputNumber (row, index) {
         const pos = this.form.productInfoList;
         if (pos[index].productUnitWeight) {
+			const number = multiply(
+                    row.contractNum,
+                    row.productUnitWeight
+                )
+			console.log('number',number)
           this.$set(
             pos[index],
             'productWeight',
-			parseFloat( row.contractNum * row.productUnitWeight ).toFixed(6)
+             number
           );
         }
       }