Przeglądaj źródła

1、刚标准维护新增错误
2、计量点数据维护修正值作为条件
3、手抄页面计算倍率

QuietShadow 3 lat temu
rodzic
commit
6b14f85b1c

+ 0 - 1
src/views/basicInformation/components/executiveStandard.vue

@@ -374,7 +374,6 @@ export default {
     dataSave () {
       let that = this;
       let SubmitData = {
-        id: that.dialog.form.data.id,
         memo: that.dialog.form.data.memo,
         brand: that.dialog.form.data.brand,
         product: that.dialog.form.data.product,

+ 10 - 2
src/views/energyScheduling/components/measuringLocationData/measuringLocationEntry.vue

@@ -287,6 +287,12 @@
                         @click="but_resData()"
                         :loading="loading"
                     >数据补全</el-button>
+                    <el-switch
+                      v-model="filterForm.data.allOrCorrect"
+                      active-text="修正"
+                      inactive-text="全部"
+                      @change="getTableData(1)">
+                    </el-switch>
                     <div style="float:right; text-align: right;">
                         <el-button
                             class="button"
@@ -841,7 +847,8 @@ export default {
                     networkid: '',
                     hierarchy: '',
                     tagAlias: '',
-                    propertyid: ''
+                    propertyid: '',
+                    allOrCorrect: false
                 },
                 disabled: {
                     locateid: false
@@ -1257,7 +1264,8 @@ export default {
                     hierarchy: that.filterForm.data.hierarchy,
                     tagAlias: that.filterForm.data.tagAlias,
                     propertyid: that.filterForm.data.propertyid.toString(),
-                    costid: that.filterForm.data.costid.join(',')
+                    costid: that.filterForm.data.costid.join(','),
+                    correct: that.filterForm.data.allOrCorrect
                 };
             that.pageNum = pageNum || that.pageNum;
             that.tableLoading = true;

+ 19 - 3
src/views/energyScheduling/components/meterManage/measuringManualEntry.vue

@@ -265,6 +265,7 @@
                                     :prop="scope.row.ITEMID + '-' + scope.row.CLOCK + '.APPORTVALUE'"
                                     :rules="tableFormRules.apportvalue"
                                 >
+                                <!-- @change = "getMendValue(scope.row.ITEMID + '-' + scope.row.CLOCK, tableFormDataObj[scope.row.ITEMID + '-' + scope.row.CLOCK].APPORTVALUE, scope.$index, $event)" -->
                                     <el-input clearable
                                         style="width: 100%;"
                                         @keydown.native="keyDown" :id="scope.$index + scope.column.id"
@@ -809,15 +810,30 @@ export default {
         // 当上月底码发生改变时计算最终值
         getApportValue (xid, value, rowIndex, event) {
             let that = this;
+            let poor = 0;
+            let usage = 0;
             if (!isNaN(Number(value))) {
                 if (!isNaN(Number(that.tableFormDataObj[xid].MINTVALUE)) && !isNaN(Number(that.tableFormDataObj[xid].MENDVALUE)) && that.tableFormDataObj[xid].MINTVALUE !== null && that.tableFormDataObj[xid].MENDVALUE !== null) {
-                    let poor = that.floatComputed(Number(that.tableFormDataObj[xid].MENDVALUE), Number(that.tableFormDataObj[xid].MINTVALUE), '-');
-                    that.tableFormDataObj[xid].APPORTVALUE = poor;
-                    // that.tableFormDataObj[xid].APPORTVALUE = that.floatComputed(poor, Number(that.tableFormDataObj[xid].mods), '*');
+                    poor = that.floatComputed(Number(that.tableFormDataObj[xid].MENDVALUE), Number(that.tableFormDataObj[xid].MINTVALUE), '-');
+                    that.tableFormDataObj[xid].APPORTVALUE = that.floatComputed(poor, Number(that.tableFormDataObj[xid].TAG_MODULUS), '*');
                     // that.showRealValue(rowIndex, that.tableFormDataObj[xid].APPORTVALUE);
                 }
             }
         },
+        // 当最终值发生改变时计算期末值,暂时不用
+        getMendValue (xid, value, rowIndex, event) {
+            let that = this;
+            let poor = 0;
+            let usage = 0;
+            if (!isNaN(Number(value))) {
+               if (!isNaN(Number(that.tableFormDataObj[xid].MINTVALUE)) && !isNaN(Number(that.tableFormDataObj[xid].APPORTVALUE)) && that.tableFormDataObj[xid].MINTVALUE !== null && that.tableFormDataObj[xid].APPORTVALUE !== null) {
+                    usage = Number(that.tableFormDataObj[xid].APPORTVALUE) / Number(that.tableFormDataObj[xid].TAG_MODULUS);
+                    console.log('使用:' + usage);
+                    that.tableFormDataObj[xid].MENDVALUE = that.floatComputed(usage, that.tableFormDataObj[xid].MINTVALUE, '+');
+                    console.log('底码:' + that.tableFormDataObj[xid].MENDVALUE);
+                }
+            }
+        },
         // 展示最终值
         showRealValue (rowIndex, value) {
             let that = this;