Browse Source

客户退货申请-清空逻辑关联

hella_online_20240927
yufei_wang 2 months ago
parent
commit
a763ba151c
  1. 19
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

19
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -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 = []
}
}
//true0 //true0
const inputNumberChange = (field, val,row, index) => { const inputNumberChange = (field, val,row, index) => {
if(field=='qty'){ if(field=='qty'){

Loading…
Cancel
Save