diff --git a/src/views/order/workOrderProcessing/components/checkOrder.vue b/src/views/order/workOrderProcessing/components/checkOrder.vue index fd2cbc7..e71543c 100644 --- a/src/views/order/workOrderProcessing/components/checkOrder.vue +++ b/src/views/order/workOrderProcessing/components/checkOrder.vue @@ -199,6 +199,10 @@ } ); +defineExpose({ + getList, +}); + onMounted(() => { // getList(); }); diff --git a/src/views/order/workOrderProcessing/components/checkOrder.vue b/src/views/order/workOrderProcessing/components/checkOrder.vue index fd2cbc7..e71543c 100644 --- a/src/views/order/workOrderProcessing/components/checkOrder.vue +++ b/src/views/order/workOrderProcessing/components/checkOrder.vue @@ -199,6 +199,10 @@ } ); +defineExpose({ + getList, +}); + onMounted(() => { // getList(); }); diff --git a/src/views/order/workOrderProcessing/index.vue b/src/views/order/workOrderProcessing/index.vue index 157ad05..a34c5bb 100644 --- a/src/views/order/workOrderProcessing/index.vue +++ b/src/views/order/workOrderProcessing/index.vue @@ -20,7 +20,7 @@
- +
@@ -41,6 +41,8 @@ import ja_icon from '@/assets/images/order/ja_icon.png'; // registerOrder +const checkOrderRef = ref(null); + const timeId = null; const showOrderCode = ref('reassign'); const is_refresh = ref(false); @@ -138,6 +140,7 @@ if (is_refresh.value) return; is_refresh.value = true; getOrderList(); + checkOrderRef.value.getList(); timeId = setTimeout(() => { is_refresh.value = false; }, 1000); // 动画持续时间与CSS中的相同