feat 修改bug
This commit is contained in:
parent
c3f7f719b7
commit
9fec9a2edf
@ -62,7 +62,7 @@
|
|||||||
v-if="state.form.equReactorId && state.reactorOptions.find(r => r.id === state.form.equReactorId)?.needExternalPump === true"
|
v-if="state.form.equReactorId && state.reactorOptions.find(r => r.id === state.form.equReactorId)?.needExternalPump === true"
|
||||||
label="外置泵" prop="equPumpId" min-width="100">
|
label="外置泵" prop="equPumpId" min-width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-select v-model="scope.row.equPumpId" placeholder="请选择外置泵" style="width: 100%" filterable
|
<el-select v-model="scope.row.equPumpId" placeholder="请选择外置泵" style="width: 100%" clearable filterable
|
||||||
@change="() => handlePumpChange(scope.$index)">
|
@change="() => handlePumpChange(scope.$index)">
|
||||||
<el-option v-for="item in state.pumpOptions" :key="item.id" :label="item.name" :value="item.id" />
|
<el-option v-for="item in state.pumpOptions" :key="item.id" :label="item.name" :value="item.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
<el-table-column label="补料培养基" prop="itemDefFeedingMediumID" min-width="200">
|
<el-table-column label="补料培养基" prop="itemDefFeedingMediumID" min-width="200">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-select v-model="scope.row.itemDefFeedingMediumID" placeholder="请选择补料培养基" filterable
|
<el-select v-model="scope.row.itemDefFeedingMediumID" placeholder="请选择补料培养基" clearable filterable
|
||||||
@change="() => handleMediumChange(scope.$index)" style="width: 100%">
|
@change="() => handleMediumChange(scope.$index)" style="width: 100%">
|
||||||
<el-option v-for="item in state.mediumOptions" :key="item.id"
|
<el-option v-for="item in state.mediumOptions" :key="item.id"
|
||||||
:label="item.name + ' (' + item.glucoseConc + 'g/L)' + (item.isGlucose ? ' (糖补料)' : '')"
|
:label="item.name + ' (' + item.glucoseConc + 'g/L)' + (item.isGlucose ? ' (糖补料)' : '')"
|
||||||
@ -87,7 +87,7 @@
|
|||||||
|
|
||||||
<el-table-column label="耗材" prop="itemDefBagID" min-width="200">
|
<el-table-column label="耗材" prop="itemDefBagID" min-width="200">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-select v-model="scope.row.itemDefBagID" placeholder="请选择耗材" style="width: 100%">
|
<el-select v-model="scope.row.itemDefBagID" placeholder="请选择耗材" clearable style="width: 100%">
|
||||||
<el-option v-for="item in state.bagOptions" :key="item.id"
|
<el-option v-for="item in state.bagOptions" :key="item.id"
|
||||||
:label="item.name + ' (下限体积: ' + item.lowerLimitVolume + 'g)'" :value="item.id" />
|
:label="item.name + ' (下限体积: ' + item.lowerLimitVolume + 'g)'" :value="item.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -96,7 +96,7 @@
|
|||||||
|
|
||||||
<el-table-column label="泵速策略" prop="configId" min-width="200">
|
<el-table-column label="泵速策略" prop="configId" min-width="200">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-select v-model="scope.row.configId" placeholder="请选择泵速策略" style="width: 100%">
|
<el-select v-model="scope.row.configId" placeholder="请选择泵速策略" clearable style="width: 100%">
|
||||||
<el-option v-for="item in state.configOptions" :key="item.id"
|
<el-option v-for="item in state.configOptions" :key="item.id"
|
||||||
:label="item.name + (item.isTwo === 1 ? ' (二段式)' : ' (三段式)')" :value="item.id" />
|
:label="item.name + (item.isTwo === 1 ? ' (二段式)' : ' (三段式)')" :value="item.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -665,7 +665,7 @@ const handleMediumChange = (index: number) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 校验重复的补料培养基
|
// 校验重复的补料培养基
|
||||||
const medium = state.form.fixedFeedingPumps.find(item => item.itemDefFeedingMediumID == row.itemDefFeedingMediumID && item.feedingPumpNo != row.feedingPumpNo)
|
const medium = state.form.fixedFeedingPumps.find(item => item.itemDefFeedingMediumID != undefined && item.itemDefFeedingMediumID == row.itemDefFeedingMediumID && item.feedingPumpNo != row.feedingPumpNo)
|
||||||
if (medium) {
|
if (medium) {
|
||||||
proxy.$modal.msgWarning('补料培养基存在重复')
|
proxy.$modal.msgWarning('补料培养基存在重复')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user