|
@ -59,6 +59,7 @@ |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
@onEnter="onEnter" |
|
|
@onEnter="onEnter" |
|
|
@inputNumberChange="inputNumberChange" |
|
|
@inputNumberChange="inputNumberChange" |
|
|
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
/> |
|
|
/> |
|
|
<!-- 添加明细:采购收货记录单号 --> |
|
|
<!-- 添加明细:采购收货记录单号 --> |
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" /> |
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" /> |
|
@ -725,7 +726,23 @@ const handleDeleteTable = (item, index) => { |
|
|
const tableSelectionDelete = (selection) => { |
|
|
const tableSelectionDelete = (selection) => { |
|
|
tableData.value = tableData.value.filter(item => !selection.includes(item)) |
|
|
tableData.value = tableData.value.filter(item => !selection.includes(item)) |
|
|
} |
|
|
} |
|
|
|
|
|
const clearSearchInput = (field)=>{ |
|
|
|
|
|
console.log('field',field) |
|
|
|
|
|
if('customerCode' == field){ |
|
|
|
|
|
//客户代码 |
|
|
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
|
|
deliverRecordNumber: '', |
|
|
|
|
|
customerDockCode:'', |
|
|
|
|
|
}) |
|
|
|
|
|
tableData.value = [] |
|
|
|
|
|
}else if('deliverRecordNumber' == field){ |
|
|
|
|
|
//发货记录单号 |
|
|
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
|
|
customerDockCode:'', |
|
|
|
|
|
}) |
|
|
|
|
|
tableData.value = [] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
//为true表示子表数据中存在数量为0的数据 |
|
|
//为true表示子表数据中存在数量为0的数据 |
|
|
const inputNumberChange = (field, val,row, index) => { |
|
|
const inputNumberChange = (field, val,row, index) => { |
|
|
if(field=='qty'){ |
|
|
if(field=='qty'){ |
|
|