From 2b25510e1a6f9ef7b107dba46ba7f91ed9a83572 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 25 Sep 2024 14:54:53 +0800 Subject: [PATCH] =?UTF-8?q?HL-6082=E7=94=B1=E4=BA=8E=E7=BA=BF=E4=B8=8A?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E5=AF=BC=E8=87=B4=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=B0=81=E8=A3=85=E5=85=AC=E7=94=A8=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E9=87=8D=E6=96=B0=E5=81=9A=E4=BA=86=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 5 ++++ .../issueRequestMain/issueRequestMain.data.ts | 27 ++++++++++--------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 7421c79e0..017820e1b 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -527,6 +527,11 @@ const opensearchTable = ( ) return } + if(searchCondition[i].isRemoveParams){ + //有校验,但是不传参 + _searchCondition[searchCondition[i].key] = '' + } + } } else if (searchCondition[i].isTableRowValue) { if (searchCondition[i].required) { diff --git a/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts b/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts index 5616fc28a..a0c375024 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts +++ b/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts @@ -852,18 +852,21 @@ export const IssueRequestDetail = useCrudSchemas( value: 'TRUE', isMainValue: false }, - // { - // key:'workshopCode', - // value:'workshopCode', - // message: '请填写车间代码!', - // isMainValue: true - // }, - // { - // key:'productionLineCode', - // value:'productionLineCode', - // message: '请填写生产线代码!', - // isMainValue: true - // }, + { + key:'workshopCode', + value:'workshopCode', + message: '请填写车间代码!', + isMainValue: true, + isRemoveParams: true // 不传参 + }, + { + key:'productionLineCode', + value:'productionLineCode', + message: '请填写生产线代码!', + isMainValue: true, + isRemoveParams: true // 不传参 + + }, { key: 'businessTypeCode', value: 'Issue',