|
|
@@ -2,9 +2,9 @@
|
|
|
<div>
|
|
|
<el-table :data="setList" ref="table">
|
|
|
<el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
|
|
|
- <el-table-column prop="goodsInfo.name" label="名称" min-width="120px"> </el-table-column>
|
|
|
+ <el-table-column prop="name" label="名称" min-width="120px"> </el-table-column>
|
|
|
<el-table-column prop="num" label="数量"> </el-table-column>
|
|
|
- <el-table-column prop="goodsInfo.unit" label="单位"> </el-table-column>
|
|
|
+ <el-table-column prop="unit" label="单位"> </el-table-column>
|
|
|
<el-table-column prop="price" label="价格"> </el-table-column>
|
|
|
<el-table-column prop="remark" label="备注" min-width="100px"> </el-table-column>
|
|
|
<el-table-column label="操作" align="center" fixed="right" min-width="150">
|
|
|
@@ -187,6 +187,8 @@ export default {
|
|
|
if (valid) {
|
|
|
let data = { ...this.formData };
|
|
|
data.price = this.goods.price * data.num;
|
|
|
+ data.name = this.goods.name;
|
|
|
+ data.unit = this.goods.unit;
|
|
|
data.packageId = this.id;
|
|
|
this.saving = true;
|
|
|
this.$http
|