yuantianjiao 6 years ago
parent
commit
976fc7e7ab
1 changed files with 12 additions and 4 deletions
  1. 12
    4
      src/pages/system/newOrder/newOrderList/index.vue

+ 12
- 4
src/pages/system/newOrder/newOrderList/index.vue View File

69
           <div style="height:10px"></div>
69
           <div style="height:10px"></div>
70
         </div>
70
         </div>
71
         <div class="btns">
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
         </div>
74
         </div>
75
       </div>
75
       </div>
76
     </div>
76
     </div>
205
     ...mapActions([
205
     ...mapActions([
206
       'updateSystemInfo'
206
       'updateSystemInfo'
207
     ]),
207
     ]),
208
-    submit (id) {
208
+    submit (id, index) {
209
       this.$confirm('确定完成此饮品?', '提示', {
209
       this.$confirm('确定完成此饮品?', '提示', {
210
         confirmButtonText: '确定',
210
         confirmButtonText: '确定',
211
         cancelButtonText: '取消',
211
         cancelButtonText: '取消',
217
             message: '确认订单成功'
217
             message: '确认订单成功'
218
           })
218
           })
219
           this.init()
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
       }).catch((res) => {
229
       }).catch((res) => {
222
         this.$message({
230
         this.$message({
225
         })
233
         })
226
       })
234
       })
227
     },
235
     },
228
-    cancel (id) {
236
+    cancel (id, index) {
229
       this.$confirm('确定取消此饮品?', '提示', {
237
       this.$confirm('确定取消此饮品?', '提示', {
230
         confirmButtonText: '确定',
238
         confirmButtonText: '确定',
231
         cancelButtonText: '取消',
239
         cancelButtonText: '取消',