|
|
@ -45,6 +45,7 @@ |
|
|
|
@success="getList" |
|
|
|
:rules="ItemareaRules" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
fieldTableColumn="locationCode" |
|
|
|
:formAllSchemas="Itemarea.allSchemas" |
|
|
|
:tableAllSchemas="ItemareaDetail.allSchemas" |
|
|
|
:tableFormRules="ItemareaDetailRules" |
|
|
@ -122,6 +123,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
val.forEach(item=>{ |
|
|
|
const newRow = {...row} |
|
|
|
if(formField == 'locationCode') { |
|
|
|
if(tableData.value.find(item1=>item1['locationCode'] == item['code'])) return |
|
|
|
newRow['locationCode'] = item['code'] |
|
|
|
}else{ |
|
|
|
newRow[formField] = item[searchField] |
|
|
|