Browse Source

抄表录入优化已抄表时的默认赋值处理

shudong 1 year ago
parent
commit
59baa5a589
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/views/mis/meterReadingManagement/bwMeterReadEntry-index.vue

+ 6 - 4
src/views/mis/meterReadingManagement/bwMeterReadEntry-index.vue

@@ -340,7 +340,7 @@ export default {
     created() {
     },
     mounted() {
-        this.queryParams.mrFlag="0";//默认加载未抄表的数据
+        this.queryParams.mrFlag = "0";//默认加载未抄表的数据
         this.getData();
     },
     destroyed() {
@@ -397,9 +397,11 @@ export default {
             this.clearPageInfo();
             let rowData = Object.assign({}, row);
             this.listInfoSelection = Object.assign({}, rowData, { rowIndex: row.rowIndex });
+
+            let temMrType = rowData.mrType.toString();
+            this.onMrTypeChange(temMrType, null);
             this.detailForm = rowData;
-            this.detailForm.mrType = this.detailForm.mrType.toString();
-            this.onMrTypeChange(this.detailForm.mrType, null);
+            this.detailForm.mrType = temMrType;
 
             this.setFormInfo(row);
 
@@ -551,7 +553,7 @@ export default {
             }
             else if (v_cblx == "-2") { //表满度               
                 var v_sblc = this.detailForm.meterRange;
-                var sbmdValue = Math.pow(10, v_sblc) - 1; 
+                var sbmdValue = Math.pow(10, v_sblc) - 1;
                 sjsl = Math.abs(sbmdValue - scds + bcds) + jjl;
             }
             else if (v_cblx == "-3") { //洗换表