diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 7daea779c..7421c79e0 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -85,6 +85,7 @@ label: '汇总', prop: 'CollectionTable' }]" v-model="tabSheet" @change="tabChange"/> +
+ > + + { detailBomRef.value.dialogVisible = false } } +const bomTableList = ref([]) +const bomSearchData = ref('') +const bomSearchClick = ()=>{ + if(!bomSearchData.value){ + bomTableList.value = detatableDataBom.tableList + }else{ + let itemCodes = bomSearchData.value.split(',') + console.log('itemCodes',itemCodes) + bomTableList.value = detatableDataBom.tableList.filter(item=>itemCodes.indexOf(item['itemCode'])>-1) + } +} + const banchBomPage = async (fromLocationCode,item) => { const params = { location_code:fromLocationCode, @@ -272,6 +296,7 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> { detatableDataBom.params.fromLocationCode = row.fromLocationCode await getDetailListBom() + bomTableList.value = detatableDataBom.tableList console.log(row.fromLocationCode); detatableDataBom.tableList.forEach(async (item) => { console.log(333,item) @@ -330,6 +355,7 @@ const handleDeleteTableBom = (item, index) => { if (itemIndex > -1) { detatableDataBom.tableList.splice(itemIndex, 1) } + bomSearchClick() } const tableSelectionDeleteBom = (selection) => { @@ -369,6 +395,7 @@ const tableFormButton = async (val , row) => { detailQty.value = row.qty detatableDataBom.params.isRecord = true await getDetailListBom() + bomTableList.value = detatableDataBom.tableList //详情 isShowFooterButtton.value = false isShowReduceButtonSelection.value = false