|
@@ -151,8 +151,19 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="数量" width="100">
|
|
|
<template #default="props">
|
|
|
- <el-form-item style="width: 100%">
|
|
|
- {{ props.row.quantity }}
|
|
|
+ <el-form-item
|
|
|
+ :prop="'orderSkuList.' + index + '.orderSkuBomList.' + props.$index + '.quantity'"
|
|
|
+ :rules="rules.quantity"
|
|
|
+ :inline-message="true"
|
|
|
+ style="width: 100%">
|
|
|
+ <el-input-number
|
|
|
+ onmousewheel="return false;"
|
|
|
+ v-model="props.row.quantity"
|
|
|
+ placeholder="数量"
|
|
|
+ style="width: 100%"
|
|
|
+ :controls="false"
|
|
|
+ :min="0"
|
|
|
+ @change="calculatedAmount()" />
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -636,7 +647,7 @@ const selectPackingFittings = (data) => {
|
|
|
}
|
|
|
formData.data.orderSkuList[rowIndex.value].orderSkuBomList.push({
|
|
|
bomSpecId: data.id,
|
|
|
- unitPrice: data.costPrice,
|
|
|
+ unitPrice: data.internalSellingPrice,
|
|
|
quantity: undefined,
|
|
|
bomSpecName: data.name,
|
|
|
});
|
|
@@ -644,7 +655,7 @@ const selectPackingFittings = (data) => {
|
|
|
formData.data.orderSkuList[rowIndex.value].orderSkuBomList = [
|
|
|
{
|
|
|
bomSpecId: data.id,
|
|
|
- unitPrice: data.costPrice,
|
|
|
+ unitPrice: data.internalSellingPrice,
|
|
|
quantity: undefined,
|
|
|
bomSpecName: data.name,
|
|
|
},
|