فهرست منبع

分配系数优化

zck 1 سال پیش
والد
کامیت
d618b5e6e2
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 2 1
      src/view/performance/chejianbaogong.vue
  2. 2 2
      src/view/yunyin/shengchanguanli/shebeiyunxing.vue

+ 2 - 1
src/view/performance/chejianbaogong.vue

@@ -3955,7 +3955,6 @@ const SubmitDailyProduction = async () => {
     bom: formData3.value.formattedArray,
 	ma_start: formData3.value.码开始行,
 	ma_end: formData3.value.码结束行,
-	
   }
   console.log(restoredData)
   //4.2日产量上报 添加
@@ -4883,6 +4882,8 @@ const formData3= ref({
 	打样总工时:'',
 	通电工时:'',
 	定额代号:'',
+	码开始行:'',
+	码结束行:'',
 	码包:'',
 	主电表:'',
 	辅电表:'',

+ 2 - 2
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -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 时才添加到数组中