From fafc63443f417d6c3ed4a0747633e7be5fdc4f9a Mon Sep 17 00:00:00 2001 From: bjang03 Date: Mon, 29 Apr 2024 14:43:32 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=B7=A5=E5=BA=8F=E6=8A=A5=E5=B7=A5-?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=8A=A5=E5=B7=A5=E8=A1=A8=E5=8D=95=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 8 +- .../mes/workScheduling/processReportForm.vue | 87 +++++++++---------- .../processReportPeopleCheck.vue | 28 +++--- 3 files changed, 63 insertions(+), 60 deletions(-) diff --git a/src/pages.json b/src/pages.json index 08280fd..ffa060b 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1951,11 +1951,17 @@ } },{ "path": "pages/mes/workScheduling/processReportPeopleCheck", + "style": { + "navigationBarTitleText": "工序报工-选择人员", + "enablePullDownRefresh": true + } + },{ + "path": "pages/mes/workScheduling/processReportForm", "style": { "navigationBarTitleText": "工序报工", "enablePullDownRefresh": true } - }, + },, { "path": "pages/mes/productOffline/index", "style": { diff --git a/src/pages/mes/workScheduling/processReportForm.vue b/src/pages/mes/workScheduling/processReportForm.vue index 46ebc60..2ec730d 100644 --- a/src/pages/mes/workScheduling/processReportForm.vue +++ b/src/pages/mes/workScheduling/processReportForm.vue @@ -1,50 +1,42 @@ @@ -155,7 +139,14 @@ onShow(() => { } } } + ::v-deep .u-checkbox-group { display: grid !important; } + +.is-hover { + color: rgba(255, 255, 255, 0.6); + background-color: #179b16; + border-color: #179b16; +} diff --git a/src/pages/mes/workScheduling/processReportPeopleCheck.vue b/src/pages/mes/workScheduling/processReportPeopleCheck.vue index cd52bff..cf38ed7 100644 --- a/src/pages/mes/workScheduling/processReportPeopleCheck.vue +++ b/src/pages/mes/workScheduling/processReportPeopleCheck.vue @@ -57,17 +57,23 @@ async function getList() { if (status.value === 'nomore') return status.value = 'loading' proxy.$modal.loading('加载中') - if (list.value.length == 0) { - await workSchedulingApi.getConfigProcessWorker({ - planDayCode: "PO20240426-0022", - processCode: "FF-CY-002", - teamCode: "T01" - }).then((res) => { - if (res.data.length > 0) { - list.value = res.data - } - }) - } + await workSchedulingApi.getConfigProcessWorker({ + planDayCode: "PO20240426-0022", + processCode: "FF-CY-002", + teamCode: "T01" + }).then((res) => { + // if(res.data.leader){ + // list.value = res.data.list + // }else{ + uni.setNavigationBarTitle({ + title: 'test' + }) + uni.setStorageSync('processReportList', res.data.list); + uni.redirectTo({ + url: './processReportForm' + }); + // } + }) proxy.$modal.closeLoading() }