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' } ],