From ad091b81b27147febbbd63f1370c3d4f1a770773 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Sat, 14 Sep 2024 14:10:30 +0800 Subject: [PATCH] =?UTF-8?q?HL-6039=E5=88=B6=E5=93=81=E5=AD=90=E4=BB=B6?= =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E7=94=B3=E8=AF=B7-=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E5=BA=93=E4=BD=8D=E7=9A=84=E5=90=8C=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=B8=85=E7=A9=BA=E6=9D=A5=E6=BA=90=E5=B7=A5=E4=BD=8D?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productscrapRequestMain/index.vue | 9 ++++- .../productscrapRequestMain.data.ts | 35 +++++++++++-------- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index e84101374..d4413d88f 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -44,6 +44,7 @@ ref="formRef" :isOpenSearchTable="true" fieldTableColumn="itemCode" + @clearInput="clearInput" @success="getList" :rules="ProductscrapRequestMainRules" :formAllSchemas="ProductscrapRequestMain.allSchemas" @@ -384,7 +385,13 @@ const tableFormButton = async (val , row) => { const updataTableColumns = (val) => { tableColumns.value = val } - +const clearInput = (field, row, index) => { + if(field == 'fromLocationCode'){ + row['workStationCode'] = '' + row.childList = [] + console.log(row) + } +} // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts index 2a3e7c522..cf087be07 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts @@ -923,13 +923,15 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ message: '请填写生产线代码!', isMainValue: true, isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 - },{ - key: 'itemCode', - value: 'itemCode', - message: '请选择物料代码', - isTableRowValue: true, //查询当前searchTable表中行数据的值 - isMainValue:false - }], + }, + // { + // key: 'itemCode', + // value: 'itemCode', + // message: '请选择物料代码', + // isTableRowValue: true, //查询当前searchTable表中行数据的值 + // isMainValue:false + // } + ], verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法 isShowTableFormSearch: true, verificationParams: [{ @@ -965,13 +967,15 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive([ message: '请填写生产线代码!', isMainValue: true, isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 - },{ - key: 'itemCode', - value: 'itemCode', - message: '请选择物料代码', - isTableRowValue: true, //查询当前searchTable表中行数据的值 - isMainValue:false - }], + }, + // { + // key: 'itemCode', + // value: 'itemCode', + // message: '请选择物料代码', + // isTableRowValue: true, //查询当前searchTable表中行数据的值 + // isMainValue:false + // } + ], verificationParams: [{ key: 'code', action: '==', @@ -1386,6 +1390,9 @@ export const ProductscrapRequestDetailRules = reactive({ productionLineCode: [ { required: true, message: '请选择生产线代码', trigger: 'change' } ], + fromLocationCode: [ + { required: true, message: '请选择来源库位', trigger: 'change' } + ], workStationCode: [ { required: true, message: '请选择来源工位代码', trigger: 'change' } ],