Ver Fonte

最终值可以录入小数。2.增加备注

zhangy há 2 anos atrás
pai
commit
40f1ca8a5f

+ 26 - 4
src/views/energyBalance/components/balanceData.vue

@@ -354,7 +354,7 @@
                                 <el-form-item
                                     v-if="scope.row.isSelection"
                                     :prop="'s' + scope.row.seq + '.apportvalue'"
-                                    :rules="tableFormRules.integer"
+                                    :rules="tableFormRules.numbers"
                                 >
                                     <el-input clearable @keydown.native="keyDown" :id="scope.column.id + scope.$index"
                                         style="width: 100%;"
@@ -448,7 +448,27 @@
                             label="实绩产量"
                             width="100px"
                             :show-overflow-tooltip="true"
-                        ></el-table-column> -->
+                        ></el-table-column> -->
+                        <el-table-column
+                         sortable
+                             prop="bz"
+                             label="备注"
+                             width="250px"
+                             :show-overflow-tooltip="true"
+                        ><template slot-scope="scope">
+                             <el-form-item
+                                 v-if="scope.row.isSelection"
+                                 :prop="'s' + scope.row.seq + '.bz'"
+
+                             >
+                                 <el-input clearable
+                                     style="width: 100%;"
+                                     v-model="tableFormDataObj['s' + scope.row.seq].bz"
+                                 ></el-input>
+                             </el-form-item>
+                             <span v-else>{{scope.row.bz}}</span>
+                         </template>
+                        </el-table-column>
                         <el-table-column
                             sortable
                             prop="rectime"
@@ -823,7 +843,8 @@ export default {
                                 updateclock: item.UPTIME,
                                 rav: item.RAV,
                                 ftv: item.FTV != null ? item.FTV : Number(item.APPORTVALUE) - Number(item.RAV),
-                                showno: item.SHOWNO
+                                showno: item.SHOWNO,
+                                bz: item.BZ
                             })
                         }
                         that.tableData = arr;
@@ -961,7 +982,8 @@ export default {
                                 correctvalue: that.tableFormDataObj[obj].correctvalue,
                                 apportvalue: that.tableFormDataObj[obj].apportvalue,
                                 actualvalue: that.tableFormDataObj[obj].actualvalue,
-                                ftv: that.tableFormDataObj[obj].ftv
+                                ftv: that.tableFormDataObj[obj].ftv,
+                                bz: that.tableFormDataObj[obj].bz
                             })
                         }
                         that.loading = true;

+ 1 - 1
src/views/energyBalance/components/balanceData2.vue

@@ -362,7 +362,7 @@
                                 <el-form-item
                                     v-if="scope.row.isSelection"
                                     :prop="'s' + scope.row.seq + '.apportvalue'"
-                                    :rules="tableFormRules.integer"
+                                    :rules="tableFormRules.numbers"
                                 >
                                     <el-input clearable @keydown.native="keyDown" :id="scope.column.id + scope.$index"
                                         style="width: 100%;"