|
|
@ -133,20 +133,16 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
fromManagementPrecision.value = res[0].ManagementPrecision |
|
|
|
}) |
|
|
|
if (fromManagementPrecision.value == 'BY_QUANTITY') {//如果从批次+物料管理精度是按数量 |
|
|
|
if(newRow['batch']==''){ |
|
|
|
newRow['batch'] = getFormattedDate(); // 获取 YYYYMMDD 格式的日期 |
|
|
|
} |
|
|
|
// if(newRow['batch']==''){ |
|
|
|
// newRow['batch'] = getFormattedDate(); // 获取 YYYYMMDD 格式的日期 |
|
|
|
// } |
|
|
|
newRow['batchFormItemType'] = 'FormDate' |
|
|
|
newRow['disabled_batch'] = false |
|
|
|
// newRow['disabled_batch'] = false |
|
|
|
|
|
|
|
}else { |
|
|
|
newRow['bathFormItemType'] = '' |
|
|
|
newRow['disabled_batch'] = true |
|
|
|
// newRow['disabled_batch'] = true |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newRow['inventoryStatus'] = item['inventoryStatus'] |
|
|
|
newRow['fromLocationCode'] = item['locationCode'] |
|
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
|