|
|
@@ -4,7 +4,7 @@
|
|
|
<div>
|
|
|
<el-select @change="getCurrentItem" v-model="currentItemName" filterable remote reserve-keyword placeholder="搜索花材" clearable ref="itemSearchRef"
|
|
|
:remote-method="searchItem" style="width:280px;margin-left:30px;margin-top:15px;">
|
|
|
- <el-option v-for="item in itemList" :key="item.id" :label="`${item.name}( ${item.stock?parseFloat(item.stock):0} )`" :value="item"> </el-option>
|
|
|
+ <el-option v-for="item in itemList" :key="item.id" :label="`${item.name}( ${item.stock?parseFloat(item.stock):0} )`" :value="item.id"> </el-option>
|
|
|
</el-select>
|
|
|
<el-input v-model="price" placeholder="请输入价格" style="width:130px;margin-left:10px;"></el-input>
|
|
|
</div>
|
|
|
@@ -175,7 +175,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getCurrentItem(e){
|
|
|
- this.currentItemId = e.id
|
|
|
+ this.currentItemId = e
|
|
|
},
|
|
|
searchItem(query) {
|
|
|
let that = this
|