|
@@ -63,6 +63,12 @@ |
|
@@ -63,6 +63,12 @@ |
63
|
<el-button v-else disabled="" type="primary" size="small" @click="electicityInfo(scope.row)">
|
63
|
<el-button v-else disabled="" type="primary" size="small" @click="electicityInfo(scope.row)">
|
64
|
电表实时信息
|
64
|
电表实时信息
|
65
|
</el-button>
|
65
|
</el-button>
|
|
|
66
|
+ <el-button v-if="scope.row.type=='3'" type="primary" size="small"
|
|
|
67
|
+ @click="allAddMtfmset(scope.row)">水表阀开
|
|
|
68
|
+ </el-button>
|
|
|
69
|
+ <el-button v-else disabled="" type="primary" size="small" @click="allAddMtfmset(scope.row)">
|
|
|
70
|
+ 水表阀开
|
|
|
71
|
+ </el-button>
|
66
|
|
72
|
|
67
|
<!--<el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>-->
|
73
|
<!--<el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>-->
|
68
|
<!--<el-button v-else type="primary" disabled="" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>-->
|
74
|
<!--<el-button v-else type="primary" disabled="" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>-->
|
|
@@ -333,24 +339,27 @@ |
|
@@ -333,24 +339,27 @@ |
333
|
<el-input v-model="editLocationForm.adrname" auto-complete="off" placeholder="请输入名称"></el-input>
|
339
|
<el-input v-model="editLocationForm.adrname" auto-complete="off" placeholder="请输入名称"></el-input>
|
334
|
</el-form-item>
|
340
|
</el-form-item>
|
335
|
|
341
|
|
336
|
- <el-col v-if="waterNumber === 'waterNum'">
|
|
|
337
|
- <el-form-item label="水表编号" prop="wmid">
|
|
|
338
|
- <el-select style="height: 38px; width: 100%"
|
|
|
339
|
- v-model="editLocationForm.wmid"
|
|
|
340
|
- filterable
|
|
|
341
|
- remote
|
|
|
342
|
- default-first-option
|
|
|
343
|
- allow-create
|
|
|
344
|
- placeholder="请输入关键词"
|
|
|
345
|
- :remote-method="waterMeterAlls"
|
|
|
346
|
- :loading="listLoading" clearable>
|
|
|
347
|
- <el-option
|
|
|
348
|
- v-for="item in waterMeterList"
|
|
|
349
|
- :key="item.wmId" :label="item.wmId" :value="item.wmId" clearable>
|
|
|
350
|
- </el-option>
|
|
|
351
|
- </el-select>
|
|
|
352
|
- </el-form-item>
|
|
|
353
|
- </el-col>
|
342
|
+<!-- <el-col v-if="waterNumber === 'waterNum'">-->
|
|
|
343
|
+<!-- <el-form-item label="水表编号" prop="wmid">-->
|
|
|
344
|
+<!-- <el-select style="height: 38px; width: 100%"-->
|
|
|
345
|
+<!-- v-model="editLocationForm.wmid"-->
|
|
|
346
|
+<!-- filterable-->
|
|
|
347
|
+<!-- remote-->
|
|
|
348
|
+<!-- default-first-option-->
|
|
|
349
|
+<!-- allow-create-->
|
|
|
350
|
+<!-- placeholder="请输入关键词"-->
|
|
|
351
|
+<!-- :remote-method="waterMeterAlls"-->
|
|
|
352
|
+<!-- :loading="listLoading" clearable>-->
|
|
|
353
|
+<!-- <el-option-->
|
|
|
354
|
+<!-- v-for="item in waterMeterList"-->
|
|
|
355
|
+<!-- :key="item.wmId" :label="item.wmId" :value="item.wmId" clearable>-->
|
|
|
356
|
+<!-- </el-option>-->
|
|
|
357
|
+<!-- </el-select>-->
|
|
|
358
|
+<!-- </el-form-item>-->
|
|
|
359
|
+ <el-form-item v-if="waterNumber==='waterNum'" label="水表编号" prop="wmid">
|
|
|
360
|
+ <el-input v-model="editLocationForm.wmid" auto-complete="off" placeholder="请输入水表编号"></el-input>
|
|
|
361
|
+ </el-form-item>
|
|
|
362
|
+<!-- </el-col>-->
|
354
|
<el-form-item v-if="electricityNumber==='eeNum'" label="电表编号" prop="eeid">
|
363
|
<el-form-item v-if="electricityNumber==='eeNum'" label="电表编号" prop="eeid">
|
355
|
<el-input v-model="editLocationForm.eeid" auto-complete="off" placeholder="请输入电表编号"></el-input>
|
364
|
<el-input v-model="editLocationForm.eeid" auto-complete="off" placeholder="请输入电表编号"></el-input>
|
356
|
</el-form-item>
|
365
|
</el-form-item>
|
|
@@ -379,7 +388,7 @@ |
|
@@ -379,7 +388,7 @@ |
379
|
}
|
388
|
}
|
380
|
</style>
|
389
|
</style>
|
381
|
<script>
|
390
|
<script>
|
382
|
- import {getList, add, remove, edit as editLocation} from '@/api/empt/location_api';
|
391
|
+ import {getList, add, remove, edit as editLocation, serverMtfmset} from '@/api/empt/location_api';
|
383
|
import {add as electicity, getEEModel, edit, electricityInfo} from '@/api/empt/electricityParams';
|
392
|
import {add as electicity, getEEModel, edit, electricityInfo} from '@/api/empt/electricityParams';
|
384
|
import {findRealTime, waterMeterAll} from '@/api/empt/waterMeter';
|
393
|
import {findRealTime, waterMeterAll} from '@/api/empt/waterMeter';
|
385
|
import moment from 'moment'
|
394
|
import moment from 'moment'
|
|
@@ -780,7 +789,7 @@ |
|
@@ -780,7 +789,7 @@ |
780
|
this.waterNumber = undefined;
|
789
|
this.waterNumber = undefined;
|
781
|
this.editFormLocationVisible = true;
|
790
|
this.editFormLocationVisible = true;
|
782
|
this.editLocationForm = row;
|
791
|
this.editLocationForm = row;
|
783
|
- if (row.type == 3) {
|
792
|
+ if (row.type === 3) {
|
784
|
this.waterNumber = 'waterNum';
|
793
|
this.waterNumber = 'waterNum';
|
785
|
this.electricityNumber = 'eeNum';
|
794
|
this.electricityNumber = 'eeNum';
|
786
|
}
|
795
|
}
|
|
@@ -982,6 +991,19 @@ |
|
@@ -982,6 +991,19 @@ |
982
|
this.$router.push({name: '缴水电费订单', params: {row, Edistatus: 'create'}});
|
991
|
this.$router.push({name: '缴水电费订单', params: {row, Edistatus: 'create'}});
|
983
|
},
|
992
|
},
|
984
|
|
993
|
|
|
|
994
|
+ allAddMtfmset: function(row){
|
|
|
995
|
+ let para = {
|
|
|
996
|
+ "MtId": row.wmid,
|
|
|
997
|
+ "MtFm":"0"
|
|
|
998
|
+ }
|
|
|
999
|
+ serverMtfmset(para).then((res) => {
|
|
|
1000
|
+ this.$message({
|
|
|
1001
|
+ message: '操作成功',
|
|
|
1002
|
+ type: 'success'
|
|
|
1003
|
+ });
|
|
|
1004
|
+ }).catch(error => alert(error));
|
|
|
1005
|
+ }
|
|
|
1006
|
+
|
985
|
},
|
1007
|
},
|
986
|
mounted() {
|
1008
|
mounted() {
|
987
|
|
1009
|
|