|
@@ -251,8 +251,11 @@ export default {
|
251
|
251
|
let newData = JSON.parse(e.data).data.refreshOnlineGoodsOrders.slice(lengthOld - lengthNew)
|
252
|
252
|
this.updateList(JSON.parse(e.data).data.refreshOnlineGoodsOrders).then(() => {
|
253
|
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
|
},
|