|
@ -280,6 +280,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
tfk['itemCode'] = item['code'] |
|
|
tfk['itemCode'] = item['code'] |
|
|
tfk['uom'] = item['uom'] |
|
|
tfk['uom'] = item['uom'] |
|
|
tfk['validityDays'] = item['validityDays'] |
|
|
tfk['validityDays'] = item['validityDays'] |
|
|
|
|
|
tfk['isEnableBuy'] = val[0]['enableBuy'] |
|
|
tableData.value.push(tfk) |
|
|
tableData.value.push(tfk) |
|
|
}) |
|
|
}) |
|
|
} else if (formField === 'costcentreCode') { |
|
|
} else if (formField === 'costcentreCode') { |
|
@ -855,6 +856,13 @@ const submitForm = async (formType, submitData) => { |
|
|
: '' |
|
|
: '' |
|
|
}) |
|
|
}) |
|
|
try { |
|
|
try { |
|
|
|
|
|
let newVal = data.subList.some((item) => item.isEnableBuy == 'TRUE') |
|
|
|
|
|
let newVal1 = data.subList.some((item) => item.isEnableBuy == 'FALSE') |
|
|
|
|
|
console.log(newVal,newVal1) |
|
|
|
|
|
if (newVal && newVal1) { |
|
|
|
|
|
message.warning('不能同时选择可制造和可采购的物料') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
console.log('【计划外入库子列表】', data.subList) |
|
|
console.log('【计划外入库子列表】', data.subList) |
|
|
if (data.subList.length == 0) { |
|
|
if (data.subList.length == 0) { |
|
|