yuantianjiao 6 年前
父节点
当前提交
ecb1ca3b74
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      src/pages/system/newOrder/newOrderList/index.vue

+ 5
- 2
src/pages/system/newOrder/newOrderList/index.vue 查看文件

@@ -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
     },