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