From 2e38a6db08e79610b14f4fc0362f98669312b7c9 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 16 Oct 2024 13:43:12 +0800 Subject: [PATCH] =?UTF-8?q?HL-6283WMS=20=E5=88=B6=E5=93=81=E6=8B=86?= =?UTF-8?q?=E8=A7=A3=E7=94=B3=E8=AF=B7=E6=96=B0=E5=A2=9E=E6=97=B6=E3=80=82?= =?UTF-8?q?=201=EF=BC=8C=E4=B8=BB=E8=A1=A8=E4=B8=AD=E7=8F=AD=E7=BB=84?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=A0=B9=E6=8D=AE=E9=80=89=E6=8B=A9=E5=AE=8C?= =?UTF-8?q?=E7=9A=84=E8=BD=A6=E9=97=B4=E4=BB=A3=E7=A0=81=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E7=AD=9B=E9=80=89=EF=BC=8C=E5=90=8C=E6=97=B6=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E9=80=89=E5=AE=8C=E8=BD=A6=E9=97=B4=E4=BB=A3=E7=A0=81=E5=92=8C?= =?UTF-8?q?=E7=8F=AD=E7=BB=84=EF=BC=8C=E5=86=8D=E6=AC=A1=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E8=BD=A6=E9=97=B4=E4=BB=A3=E7=A0=81=E6=97=B6=EF=BC=8C=E7=8F=AD?= =?UTF-8?q?=E7=BB=84=E4=BF=A1=E6=81=AF=E5=BA=94=E8=AF=A5=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=202.=E6=98=8E=E7=BB=86=E4=B8=AD=E7=9A=84=E5=B7=A5=E5=BA=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B9=9F=E8=A6=81=E6=A0=B9=E6=8D=AE=E8=BD=A6?= =?UTF-8?q?=E9=97=B4=E4=BB=A3=E7=A0=81=E8=BF=9B=E8=A1=8C=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productdismantleRequestMain/index.vue | 16 ++++++++++++++++ .../productdismantleRequestMain.data.ts | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index e79df3706..017774025 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -57,6 +57,7 @@ @handleDeleteTable="handleDeleteTable" :isShowReduceButtonSelection="true" @tableSelectionDelete="tableSelectionDelete" + @clearSearchInput="clearSearchInput" @searchTableSuccess="searchTableSuccess" @submitForm="submitForm" @buttonOperationClick="buttonOperationClick" @@ -255,6 +256,16 @@ const updataTableColumns = (val) => { tableColumns.value = val } +const clearSearchInput = (field)=>{ + console.log('field',field) + if('workshopCode' == field){ + //车间代码 + formRef.value.formRef.setValues({ + team: '', + }) + tableData.value = [] + } +} // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { nextTick(() => { @@ -301,6 +312,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } else { const setV = {} setV[formField] = val[0][searchField] + if('workshopCode' == formField){ + //车间代码 + setV['team'] = '' + tableData.value = [] + } formRef.setValues(setV) } }) diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts index ba0d74fb2..448a29852 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts @@ -116,6 +116,11 @@ export const ProductdismantleRequestMain = useCrudSchemas(reactive key: 'available', value: 'TRUE', isMainValue: false + },{ + key:'workshopCode', + value:'workshopCode', + message: '请填写车间代码!', + isMainValue: true }], verificationParams: [{ key: 'code', @@ -654,6 +659,11 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive