|
|
@@ -6,7 +6,8 @@
|
|
|
: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.id"> </el-option>
|
|
|
</el-select>
|
|
|
- <el-input v-model="price" placeholder="请输入价格" style="width:130px;margin-left:10px;"></el-input>
|
|
|
+ <el-input v-model="price" placeholder="请填写价格" style="width:130px;margin-left:10px;"></el-input>
|
|
|
+ <el-input v-model="remark" placeholder="请填写备注" style="width:300px;margin-left:10px;"></el-input>
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
@@ -64,6 +65,7 @@ export default {
|
|
|
itemList: [],
|
|
|
customList:[],
|
|
|
price:'',
|
|
|
+ remark:'',
|
|
|
currentItemId:0,
|
|
|
currentCustomName:'',
|
|
|
selectCustomList:[],
|
|
|
@@ -126,13 +128,13 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
let json = JSON.stringify(this.selectCustomList)
|
|
|
- let params = {selectCustom:json,itemId:this.currentItemId}
|
|
|
+ let params = {selectCustom:json,itemId:this.currentItemId,itemRemark:this.remark,itemPrice:this.price}
|
|
|
this.$confirm('确认提交', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
|
that.$service.liveOrder.addOrder(params).then(data => {
|
|
|
this.$message.success('添加成功')
|
|
|
setTimeout(() => {
|
|
|
- that.clearData()
|
|
|
- }, 1000);
|
|
|
+ that.$router.push({path:'/order/live-list'})
|
|
|
+ }, 900);
|
|
|
})
|
|
|
})
|
|
|
},
|