|
@@ -69,8 +69,8 @@
|
69
|
69
|
<div style="height:10px"></div>
|
70
|
70
|
</div>
|
71
|
71
|
<div class="btns">
|
72
|
|
- <span @click="cancel(item.OrdersId)">取消</span>
|
73
|
|
- <span @click="submit(item.OrdersId)">确定</span>
|
|
72
|
+ <span @click="cancel(item.OrdersId,index)">取消</span>
|
|
73
|
+ <span @click="submit(item.OrdersId,index)">确定</span>
|
74
|
74
|
</div>
|
75
|
75
|
</div>
|
76
|
76
|
</div>
|
|
@@ -205,7 +205,7 @@ export default {
|
205
|
205
|
...mapActions([
|
206
|
206
|
'updateSystemInfo'
|
207
|
207
|
]),
|
208
|
|
- submit (id) {
|
|
208
|
+ submit (id, index) {
|
209
|
209
|
this.$confirm('确定完成此饮品?', '提示', {
|
210
|
210
|
confirmButtonText: '确定',
|
211
|
211
|
cancelButtonText: '取消',
|
|
@@ -217,6 +217,14 @@ export default {
|
217
|
217
|
message: '确认订单成功'
|
218
|
218
|
})
|
219
|
219
|
this.init()
|
|
220
|
+ // this.updateList({ list: this.list.splice(index, 1) }).then(() => {
|
|
221
|
+ // // newList.forEach((it) => {
|
|
222
|
+ // // this.printPdf(`item_${it.OrdersId}`)
|
|
223
|
+ // // this.putPrintGoodsOrder({
|
|
224
|
+ // // id: it.OrdersId
|
|
225
|
+ // // })
|
|
226
|
+ // // })
|
|
227
|
+ // })
|
220
|
228
|
})
|
221
|
229
|
}).catch((res) => {
|
222
|
230
|
this.$message({
|
|
@@ -225,7 +233,7 @@ export default {
|
225
|
233
|
})
|
226
|
234
|
})
|
227
|
235
|
},
|
228
|
|
- cancel (id) {
|
|
236
|
+ cancel (id, index) {
|
229
|
237
|
this.$confirm('确定取消此饮品?', '提示', {
|
230
|
238
|
confirmButtonText: '确定',
|
231
|
239
|
cancelButtonText: '取消',
|