|
|
@@ -283,7 +283,7 @@
|
|
|
<el-col :span="3"><el-input v-model="formDatas.name8"/></el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="10" style="margin-top: 1px;">
|
|
|
- <el-col :span="3"><el-input @input="updateTotal" v-model="formDatas.percentage1"/></el-col>
|
|
|
+ <el-col :span="3"><el-input @input="updateTotal" :readonly="!formDatas.name1" v-model="formDatas.percentage1"/></el-col>
|
|
|
<el-col :span="3"><el-input @input="updateTotal" v-model="formDatas.percentage2"/></el-col>
|
|
|
<el-col :span="3"><el-input @input="updateTotal" v-model="formDatas.percentage3"/></el-col>
|
|
|
<el-col :span="3"><el-input @input="updateTotal" v-model="formDatas.percentage4"/></el-col>
|
|
|
@@ -5625,7 +5625,7 @@ const tablebllickHandlerlist = async (row, column, event) => {
|
|
|
// 定义一个变量来决定是否应该检查 fpsum2.value < 1
|
|
|
const shouldCheckLessThanOne = !jt.includes('SY') && !jt.includes('PM');
|
|
|
const relevantKeys2 = ['组员1', '组员2','组员3','组员4','组员5','组员6','组员7','组员8','组员9',];
|
|
|
- const values = relevantKeys.reduce((acc, key) => {
|
|
|
+ const values = relevantKeys2.reduce((acc, key) => {
|
|
|
const value = parseFloat(formDatas.value[key], 10);
|
|
|
if (!isNaN(value)) {
|
|
|
acc.push(value); // 只有当 value 不是 NaN 时才添加到数组中
|