|
|
@ -59,6 +59,7 @@ |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
@submitForm="submitForm" |
|
|
|
/> |
|
|
|
|
|
|
@ -108,7 +109,23 @@ const isShowButton = ref(true) |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
const clearSearchInput = (field)=>{ |
|
|
|
console.log('field',field) |
|
|
|
if('workshop' == field){ |
|
|
|
//车间代码 |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
prodLine: '', |
|
|
|
team:'' |
|
|
|
}) |
|
|
|
tableData.value = [] |
|
|
|
}else if('prodLine' == field){ |
|
|
|
// 生产线 |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
team:'' |
|
|
|
}) |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(() => { |
|
|
@ -191,6 +208,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
console.log(err) |
|
|
|
message.error('错误') |
|
|
|
}) |
|
|
|
}else if(formField == 'workshop'){ |
|
|
|
setV['prodLine'] = '' |
|
|
|
setV['team'] = '' |
|
|
|
tableData.value = [] |
|
|
|
} else if(formField == 'prodLine'){ |
|
|
|
// 生产线 |
|
|
|
setV['team'] = '' |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
} |
|
|
|