|
@@ -77,13 +77,13 @@
|
|
|
v-model="scope.row.unitPrice"
|
|
|
placeholder="请输入"
|
|
|
size="mini"
|
|
|
+ @change="handleChange"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="小计" prop="stockQuantity">
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="小计" prop="sum"> </el-table-column>
|
|
|
|
|
|
<el-table-column label="操作" width="100" align="left">
|
|
|
<template slot-scope="scope">
|
|
@@ -170,6 +170,11 @@ export default {
|
|
|
handleCancel() {
|
|
|
this.$emit("cancel");
|
|
|
},
|
|
|
+ handleChange() {
|
|
|
+ this.form.goodsList.forEach((x) => {
|
|
|
+ x.sum = (x.quantity * (Number(x.unitPrice) * 100)) / 100;
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|