|
|
@ -62,6 +62,8 @@ |
|
|
|
@submitForm="submitForm" |
|
|
|
:isShowButton = isShowButton |
|
|
|
@inputNumberChange="inputNumberChange" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
|
|
|
|
/> |
|
|
|
<!-- 详情 --> |
|
|
|
<Detail |
|
|
@ -143,8 +145,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
}else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
if(formField == 'CustomerCode') { |
|
|
|
setV['CustomerCode'] = val[0]['CustomerCode'] |
|
|
|
if(formField == 'customerCode') { |
|
|
|
tableData.value = [] |
|
|
|
} else { |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
} |
|
|
@ -348,6 +350,11 @@ const openForm = (type: string, row?: any) => { |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|
const clearSearchInput = (formField) => { |
|
|
|
if(formField == 'customerCode'){ |
|
|
|
tableData.value = [] |
|
|
|
} |
|
|
|
} |
|
|
|
const inputNumberChange = (field, val,row, index) => { |
|
|
|
if(field=='qty'){ |
|
|
|
if(row['subSettleQty']!=null&&row['qty']>row['subSettleQty']){ |
|
|
|