diff --git a/src/pages/productReceipt/job/productReceiptJob.vue b/src/pages/productReceipt/job/productReceiptJob.vue index 2644e255..381b406b 100644 --- a/src/pages/productReceipt/job/productReceiptJob.vue +++ b/src/pages/productReceipt/job/productReceiptJob.vue @@ -87,13 +87,10 @@ type: 'assemble', }, - onReady() { - this.detailOptions = getDetailOption(); - this.detailGiveupOptions = getDetailGiveupOption(); - }, - mounted() { + this.detailOptions = getDetailOption(); + this.detailGiveupOptions = getDetailGiveupOption(); this.getList('refresh'); }, diff --git a/src/pages/purchaseReceipt/job/receiptJob.vue b/src/pages/purchaseReceipt/job/receiptJob.vue index 605c80f0..a6da0528 100644 --- a/src/pages/purchaseReceipt/job/receiptJob.vue +++ b/src/pages/purchaseReceipt/job/receiptJob.vue @@ -101,10 +101,6 @@ // this.getList('refresh'); // }, - // onReady() { - // this.detailOptions = getDetailOption(); - // this.detailGiveupOptions = getDetailGiveupOption(); - // }, // onReachBottom() { // //避免多次触发 @@ -137,7 +133,10 @@ // } // }, mounted() { + this.detailOptions = getDetailOption(); + this.detailGiveupOptions = getDetailGiveupOption(); this.refresh(); + }, methods: {