yuantianjiao 6 years ago
parent
commit
ecb1ca3b74
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/pages/system/newOrder/newOrderList/index.vue

+ 5
- 2
src/pages/system/newOrder/newOrderList/index.vue View File

251
       let newData = JSON.parse(e.data).data.refreshOnlineGoodsOrders.slice(lengthOld - lengthNew)
251
       let newData = JSON.parse(e.data).data.refreshOnlineGoodsOrders.slice(lengthOld - lengthNew)
252
       this.updateList(JSON.parse(e.data).data.refreshOnlineGoodsOrders).then(() => {
252
       this.updateList(JSON.parse(e.data).data.refreshOnlineGoodsOrders).then(() => {
253
         for (let i = 0; i < newData.length; i++) {
253
         for (let i = 0; i < newData.length; i++) {
254
-          let index = that.list.indexOf(newData[i])
255
-          that.printPdf(`item${index}`)
254
+          let index = that.currentList.indexOf(newData[i])
255
+          if (index === -1) {
256
+          } else {
257
+            that.printPdf(`item${index}`)
258
+          }
256
         }
259
         }
257
       })
260
       })
258
     },
261
     },