From 9611b6a515a27969c130f2a1b85ef70093cfd88d Mon Sep 17 00:00:00 2001 From: TengXF <302828528@qq.com> Date: Thu, 16 May 2024 08:57:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20update=20=E6=97=A5=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/mes/orderDayPlan/orderDayPlan.vue | 59 +++++++++++++++------ 1 file changed, 42 insertions(+), 17 deletions(-) diff --git a/src/pages/mes/orderDayPlan/orderDayPlan.vue b/src/pages/mes/orderDayPlan/orderDayPlan.vue index fd99dcc..677a06b 100644 --- a/src/pages/mes/orderDayPlan/orderDayPlan.vue +++ b/src/pages/mes/orderDayPlan/orderDayPlan.vue @@ -5,9 +5,9 @@ - - + @@ -31,14 +31,16 @@ 状态: - + - + @@ -77,11 +79,14 @@ const list1 = ref([ name: '待排产', }, { - name: '已发布', + name: '已排产', }, { name: '生产中', }, + { + name: '已完成', + }, { name: '已终止', } @@ -129,11 +134,11 @@ const tabParams = ref({ flag: null }) -async function getTabsList() { +function getTabsList() { if (status.value == 'nomore') return status.value = 'loading' proxy.$modal.loading('加载中') - await orderDayPlanListApi.getOrderDayPage(tabParams.value).then((res) => { + orderDayPlanListApi.getOrderDayPage(tabParams.value).then((res) => { proxy.$modal.closeLoading() if (res.data.list.length > 0) { list.value = list.value.concat(res.data.list) @@ -151,10 +156,11 @@ async function getTabsList() { //首次进页面触发 onShow(() => { - tabParams.value.pageNo = 1 - tabParams.value.status = '' - list.value = [] - getTabsList() + current.value = 0 + tabParams.value.pageNo = 1 + tabParams.value.status = '' + list.value = [] + getTabsList() }) //滑动到底部展示 @@ -187,13 +193,32 @@ function openInspectItem(item, index) { //切换标签页 function tabsChange(index) { + switch (index) { + case 0: + tabParams.value.status = ''; + break; + case 1: + tabParams.value.status = '1'; + break; + case 2: + tabParams.value.status = '2'; + break; + case 3: + tabParams.value.status = '3'; + break; + case 4: + tabParams.value.status = '9'; + break; + case 5: + tabParams.value.status = '-2'; + break; + default: + tabParams.value.status = index; + break; + } + current.value = index tabParams.value.pageNo = 1 - if (index == '0') { - tabParams.value.status = '' - } else { - tabParams.value.status = index - } list.value = [] status.value = 'loading' getTabsList()