|
|
@ -60,6 +60,7 @@ |
|
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
@clearInput="clearInput" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -361,6 +362,11 @@ const getDefaultToLocationCode = async ()=>{ |
|
|
|
formRef.value.formRef.formModel["toLocationCode"] = res.list[0]['code'] |
|
|
|
} |
|
|
|
} |
|
|
|
const clearInput = (field, row, index) => { |
|
|
|
if(field=='supplierCode'){ |
|
|
|
row['supplierName'] = '' |
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(() => { |
|
|
@ -379,9 +385,19 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
newRow['uom'] = item['uom'] |
|
|
|
newRow['qty'] = item['qty'] |
|
|
|
newRow['toInventoryStatus'] = "HOLD" // 物料隔离申请 |
|
|
|
newRow['supplierCode'] = item['supplierCode'] |
|
|
|
newRow['supplierName'] = item['supplierName'] |
|
|
|
if(!newRow['supplierCode']){ |
|
|
|
newRow.disabled_supplierCode = false |
|
|
|
newRow.isInpuFocusShow_supplierCode = true |
|
|
|
}else{ |
|
|
|
newRow.disabled_supplierCode = true |
|
|
|
newRow.isInpuFocusShow_supplierCode = false |
|
|
|
} |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
} else if(formField == 'supplierCode'){ |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['supplierName'] = val[0]['name'] |
|
|
|
} else{ |
|
|
|
row[formField] = val[0][searchField] |
|
|
|