|
|
@@ -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
|
|
|
);
|
|
|
}
|
|
|
}
|