|
|
@ -69,6 +69,7 @@ |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
@submitForm="submitForm" |
|
|
|
@onChange="onChange" |
|
|
|
> |
|
|
@ -253,6 +254,22 @@ const onChange = (field, cur) => { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
const clearSearchInput = (field)=>{ |
|
|
|
console.log('field',field) |
|
|
|
if('workshopCode' == field){ |
|
|
|
//车间代码 |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
productionLineCode: '', |
|
|
|
team: '', |
|
|
|
}) |
|
|
|
tableData.value = [] |
|
|
|
}else if('productionLineCode'==field){ |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
team: '', |
|
|
|
}) |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
|
nextTick(() => { |
|
|
@ -281,9 +298,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
if ('workshopCode' == formField) { |
|
|
|
//车间代码 |
|
|
|
setV['productionLineCode'] = '' |
|
|
|
setV['team'] = '' |
|
|
|
tableData.value = [] |
|
|
|
} else if ('productionLineCode' == formField) { |
|
|
|
//生产线代码 |
|
|
|
setV['team'] = '' |
|
|
|
tableData.value = [] |
|
|
|
} else if ('team' == formField) { |
|
|
|
//班组 |
|
|
|