|
|
@ -58,6 +58,7 @@ |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
@submitForm="submitForm" |
|
|
|
> |
|
|
|
<template v-slot="{ row }"> |
|
|
@ -210,7 +211,23 @@ const { getList:getDetailListBom } = detatableMethodsBom |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
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 = async (formField, searchField, val, formRef, type, row ) => { |
|
|
|
console.log(formField, searchField, val, formRef, type, row) |
|
|
@ -264,8 +281,10 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
|
const setV = {} |
|
|
|
if('workshopCode'==formField){ |
|
|
|
setV['productionLineCode'] = '' |
|
|
|
setV['team'] = '' |
|
|
|
tableData.value = [] |
|
|
|
}else if('productionLineCode'==formField){ |
|
|
|
setV['team'] = '' |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|