|
|
@ -59,6 +59,7 @@ |
|
|
|
@submitForm="submitForm" |
|
|
|
@onEnter="onEnter" |
|
|
|
@inputNumberChange="inputNumberChange" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
/> |
|
|
|
<!-- 添加明细:采购收货记录单号 --> |
|
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" /> |
|
|
@ -210,7 +211,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
setV['deliverRecordNumber'] = val[0]['number'] |
|
|
|
setV['deliverPlanNumber'] = val[0]['deliverPlanNumber'] |
|
|
|
// setV['customerCode'] = val[0]['customerCode'] |
|
|
|
setV['customerDockCode'] = val[0]['customerDockCode'] |
|
|
|
// setV['customerDockCode'] = val[0]['customerDockCode'] |
|
|
|
|
|
|
|
// 获取子表数据 |
|
|
|
DeliverRecordDetailApi.getDeliverRecordDetailPageCustomerreturn({pageSize:999,masterId:val[0]['masterId']}).then(res => { |
|
|
@ -569,10 +570,10 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
item.componentProps.isSearchList = false, |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
if(item.field == 'customerDockCode'){ |
|
|
|
item.componentProps.isSearchList = false, |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
// if(item.field == 'customerDockCode'){ |
|
|
|
// item.componentProps.isSearchList = false, |
|
|
|
// item.componentProps.disabled = true |
|
|
|
// } |
|
|
|
}) |
|
|
|
}else { |
|
|
|
CustomerreturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
@ -582,9 +583,9 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
if(item.field == 'customerCode'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
if(item.field == 'customerDockCode'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
// if(item.field == 'customerDockCode'){ |
|
|
|
// item.componentProps.isSearchList = true |
|
|
|
// } |
|
|
|
}) |
|
|
|
CustomerreturnRequestDetail.allSchemas.formSchema.forEach((itemDetail) => { |
|
|
|
if(itemDetail.field == 'packingNumber'){ |
|
|
@ -725,7 +726,23 @@ const handleDeleteTable = (item, index) => { |
|
|
|
const tableSelectionDelete = (selection) => { |
|
|
|
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的数据 |
|
|
|
const inputNumberChange = (field, val,row, index) => { |
|
|
|
if(field=='qty'){ |
|
|
|