|
@ -44,6 +44,7 @@ |
|
|
ref="formRef" |
|
|
ref="formRef" |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:rules="ItemareaRules" |
|
|
:rules="ItemareaRules" |
|
|
|
|
|
:isOpenSearchTable="true" |
|
|
:formAllSchemas="Itemarea.allSchemas" |
|
|
:formAllSchemas="Itemarea.allSchemas" |
|
|
:tableAllSchemas="ItemareaDetail.allSchemas" |
|
|
:tableAllSchemas="ItemareaDetail.allSchemas" |
|
|
:tableFormRules="ItemareaDetailRules" |
|
|
:tableFormRules="ItemareaDetailRules" |
|
@ -118,11 +119,16 @@ const updataTableColumns = (val) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
if(formField == 'locationCode') { |
|
|
val.forEach(item=>{ |
|
|
row['locationCode'] = val[0]['code'] |
|
|
const newRow = {...row} |
|
|
}else{ |
|
|
if(formField == 'locationCode') { |
|
|
row[formField] = val[0][searchField] |
|
|
newRow['locationCode'] = item['code'] |
|
|
} |
|
|
}else{ |
|
|
|
|
|
newRow[formField] = item[searchField] |
|
|
|
|
|
} |
|
|
|
|
|
tableData.value.push(newRow) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
if(formField == 'areaCode') { |
|
|
if(formField == 'areaCode') { |
|
@ -135,8 +141,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
setV['outPackUnit'] = val[0]['packUnit'] |
|
|
setV['outPackUnit'] = val[0]['packUnit'] |
|
|
}else if(formField == 'itemCode') { |
|
|
}else if(formField == 'itemCode') { |
|
|
setV['itemCode'] = val[0]['code'] |
|
|
setV['itemCode'] = val[0]['code'] |
|
|
}else if(formField == 'repleinshFromArea') { |
|
|
|
|
|
setV['repleinshFromArea'] = val[0]['code'] |
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
setV[formField] = setV[0][searchField] |
|
|
setV[formField] = setV[0][searchField] |
|
|
} |
|
|
} |
|
|