sale-client 3.5.20 → 3.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/FilesManage/MeterinfoTest.vue +3 -3
- package/src/components/FilesManage/UserGeneralInfoTest.vue +1 -1
- package/src/components/FilesManage/UserMeterInfoTest.vue +3 -2
- package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +12 -2
- package/src/components/revenue/base/leftview/meterinfodetail.vue +2 -1
- package/src/components/revenue/base/rightview/CardList.vue +7 -7
- package/src/filiale/dongguan/components/common/userinfo_detail/UserBaseInfoNew.vue +425 -0
- package/src/filiale/dongguan/components/meterinfodetail.vue +243 -0
- package/src/filiale/dongguan/sale.js +3 -0
- package/src/filiale/meihekou/MeterinfoTest.vue +3 -3
- package/src/main.js +1 -1
- package/src/sale.js +400 -0
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
|
|
44
44
|
v-validate:brand='{required: true }'>
|
|
45
45
|
<v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
|
|
46
|
-
search @change='brandChange' v-model='row.gasbrand' v-ref:brand></v-select>
|
|
46
|
+
search @change='brandChange' v-model='row.gasbrand' :disabled="curuser.f_user_state != '预备'" v-ref:brand></v-select>
|
|
47
47
|
</div>
|
|
48
48
|
<div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
|
|
49
49
|
<label for="gasmodel" class="font_normal_body">气表型号</label>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
v-validate:model='{required: true }'>
|
|
52
52
|
<v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
|
|
53
53
|
close-on-select
|
|
54
|
-
v-model='row.gasmodel' :disabled=
|
|
54
|
+
v-model='row.gasmodel' :disabled="row.gasbrand.length === 0 || curuser.f_user_state != '预备'" v-ref:model></v-select>
|
|
55
55
|
</div>
|
|
56
56
|
<div class="col-sm-4 form-group">
|
|
57
57
|
<label for="f_meter_base" class="font_normal_body"> 累购气量</label>
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
templat: '' // 临时纬度
|
|
566
566
|
}
|
|
567
567
|
},
|
|
568
|
-
props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id','overdueset'],
|
|
568
|
+
props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'overdueset', 'curuser'],
|
|
569
569
|
async ready () {
|
|
570
570
|
console.log('看看meter里面的数据', this.meter, this.row)
|
|
571
571
|
this.row = Object.assign(this.row, this.meter, {})
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
19
|
<div style="height: auto;width: 100%">
|
|
20
|
-
<file-user-meter-info :meterinfo.sync="data.meterinfo" :f_filialeid="f_filialeid" :metervalid.sync="meterInfo" :overdueset="overdueset"
|
|
20
|
+
<file-user-meter-info :meterinfo.sync="data.meterinfo" :f_filialeid="f_filialeid" :metervalid.sync="meterInfo" :overdueset="overdueset" :curuser="row"
|
|
21
21
|
:f_userinfo_id="data.baseinfo.base.f_userinfo_id" :addressinfo="data.addressinfo" :baseinfo.sync="data.baseinfo.base" v-ref:meter></file-user-meter-info>
|
|
22
22
|
</div>
|
|
23
23
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<button class="button_search" style="width: max-content" @click="showDevices($index, row)">用气设备信息</button>
|
|
10
10
|
<button class="button_search" style="width: max-content" @click="showFire($index, row)">点火信息</button>
|
|
11
11
|
</div>
|
|
12
|
-
<file-meter-info :meter="row" :f_filialeid="f_filialeid" :usertype="usertype" :gasproperties="gasproperties" :overdueset="overdueset" @self-valid='valida'
|
|
12
|
+
<file-meter-info :curuser="curuser" :meter="row" :f_filialeid="f_filialeid" :usertype="usertype" :gasproperties="gasproperties" :overdueset="overdueset" @self-valid='valida'
|
|
13
13
|
@delete-meter="deleteMeter($index)" :f_userinfo_id="f_userinfo_id"></file-meter-info>
|
|
14
14
|
<file-user-fire-info @clearfire="clearfire(row)" :addressinfo="addressinfo" :fireinfo.sync="fireinfo" :show_fire.sync="show_fire" :meter.sync="row" :baseinfo.sync="baseinfo"
|
|
15
15
|
:userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-fire-info>
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
baseinfo:{},
|
|
56
56
|
f_filialeid: {},
|
|
57
57
|
f_userinfo_id: {},
|
|
58
|
-
overdueset:{}
|
|
58
|
+
overdueset:{},
|
|
59
|
+
curuser: {}
|
|
59
60
|
},
|
|
60
61
|
ready () {
|
|
61
62
|
console.log('表具信息,,,,', this.meterinfo)
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
</div>
|
|
143
143
|
<div class="col-sm-4">
|
|
144
144
|
<label class="font_normal_body_new">抄表册名</label>
|
|
145
|
-
<input class="input-underline" style="width:45%" :value="'['+row.f_book_code + '] '+ (row.f_book_name ? row.f_book_name:'')" readonly>
|
|
145
|
+
<input class="input-underline" style="width:45%" :value="(row.f_book_code!=null ? '['+row.f_book_code + '] ' : '') + (row.f_book_name!=null ? row.f_book_name:'')" readonly>
|
|
146
146
|
</div>
|
|
147
147
|
<div class="col-sm-4">
|
|
148
148
|
<label class="font_normal_body_new">抄表册册序号</label>
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
</script>
|
|
386
|
-
<style scoped>
|
|
386
|
+
<style scoped lang="less">
|
|
387
387
|
.form-group-new > div {
|
|
388
388
|
height: 3% !important;
|
|
389
389
|
|
|
@@ -412,4 +412,14 @@
|
|
|
412
412
|
line-height: 30px;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
+
.col-sm-4,.col-sm-8{
|
|
416
|
+
display: flex;
|
|
417
|
+
align-items: center;
|
|
418
|
+
margin: 7px 0;
|
|
419
|
+
|
|
420
|
+
label{
|
|
421
|
+
line-height: unset;
|
|
422
|
+
margin-bottom: 0;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
415
425
|
</style>
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
row.type==='卡表收费撤销'||row.type==='物联网补费' || row.type==='物联网扣费'||row.type==='机表补费'||
|
|
72
72
|
row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气'||row.type==='气损收费' ||
|
|
73
73
|
row.type === '气表清零' || row.type === '掉气补气' || row.type === '其他补气' || row.type === '清零补气' ||
|
|
74
|
-
row.type === '换表补气') && row.type!=='新增户档案' && row.type!=='转气转出' && row.type!=='转气转入'">
|
|
74
|
+
row.type === '换表补气' || row.type === '过户') && row.type!=='新增户档案' && row.type!=='转气转出' && row.type!=='转气转入'">
|
|
75
75
|
<button data-toggle="dropdown" style="border: 0px;background: none;" type="button"
|
|
76
76
|
v-if="row.f_user_state==='正常'||row.f_user_state==='预备'||row.type==='气损收费' ">
|
|
77
77
|
<span class="glyphicon glyphicon-th-list"></span>
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
|
|
233
233
|
cancel_show: false,
|
|
234
234
|
cancel_data: null,
|
|
235
|
-
criteriaShow:false,
|
|
235
|
+
criteriaShow: false,
|
|
236
236
|
reissue_show: false,
|
|
237
237
|
reissue_data: null,
|
|
238
238
|
authArr: this.$login.r ? this.$login.r : []
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
this.cancel_show = false
|
|
390
390
|
},
|
|
391
391
|
cancelSucc () {
|
|
392
|
-
console.log(
|
|
392
|
+
console.log('-----------------------------撤销成功了,隐藏掉')
|
|
393
393
|
this.cancel_show = false
|
|
394
394
|
this.$dispatch('refresh')
|
|
395
395
|
},
|
|
@@ -411,13 +411,13 @@
|
|
|
411
411
|
} else if (type === '换新表' || type === '气表清零') {
|
|
412
412
|
name = 'rs/report/change_meter'
|
|
413
413
|
} else if (type === '机表收费' || type === '机表收费撤销') {
|
|
414
|
-
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')){
|
|
414
|
+
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
415
415
|
name = 'rs/report/fmy_machine_bill'
|
|
416
416
|
} else {
|
|
417
417
|
name = 'rs/report/machine_bill'
|
|
418
418
|
}
|
|
419
419
|
} else if (type === '物联网收费' || type === '物联网收费撤销' || type === '物联网开户' || type === '物联网赠气') {
|
|
420
|
-
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')){
|
|
420
|
+
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
421
421
|
name = 'rs/report/fmy_iot_bill'
|
|
422
422
|
} else {
|
|
423
423
|
name = 'rs/report/iot_bill'
|
|
@@ -431,13 +431,13 @@
|
|
|
431
431
|
} else if (type === '补卡') {
|
|
432
432
|
name = 'rs/report/replace_sell'
|
|
433
433
|
} else if (type === '发卡售气') {
|
|
434
|
-
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')){
|
|
434
|
+
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
435
435
|
name = 'rs/report/fmy_sendCard_bill'
|
|
436
436
|
} else {
|
|
437
437
|
name = 'rs/report/sendCard_bill'
|
|
438
438
|
}
|
|
439
439
|
} else if (type === '卡表收费' || type === '卡表收费撤销' || type === '卡表赠气' || type === '卡表收费撤销') {
|
|
440
|
-
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')){
|
|
440
|
+
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
441
441
|
name = 'rs/report/fmy_card_bill'
|
|
442
442
|
} else {
|
|
443
443
|
name = 'rs/report/card_bill'
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
<template >
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<div class="auto form-group-new row">
|
|
4
|
+
<div class="col-sm-6" style="height:auto;width:49%;">
|
|
5
|
+
<p style="font-weight: bold;margin: 0"><img src="../../../../../../static/mainicon/矩形1828.png"/> 基本信息</p>
|
|
6
|
+
<!-- 第一行数据-->
|
|
7
|
+
<div class="col-sm-4">
|
|
8
|
+
<label class="font_normal_body_new">客户编号</label>
|
|
9
|
+
<input class="input-underline" style="width:60%" :value="row.f_userinfo_code" readonly>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="col-sm-4">
|
|
12
|
+
<label class="font_normal_body_new">客户姓名</label>
|
|
13
|
+
<input class="input-underline" style="width:60%" :value="row.f_user_name" readonly>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="col-sm-4">
|
|
16
|
+
<label class="font_normal_body_new">用户状态</label>
|
|
17
|
+
<input class="input-underline" style="width:60%" :value="row.f_user_state" readonly>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-8">
|
|
20
|
+
<label class="font_normal_body_new">客户地址</label>
|
|
21
|
+
<input class="input-underline" style="width:80%" :value="row.f_address" readonly>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col-sm-4">
|
|
24
|
+
<label class="font_normal_body_new">客户电话</label>
|
|
25
|
+
<input class="input-underline" style="width:60%" :value="row.f_user_phone" readonly>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-4">
|
|
28
|
+
<label class="font_normal_body_new">客户类型</label>
|
|
29
|
+
<input class="input-underline" style="width:60%" :value="row.f_user_type" readonly>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-4">
|
|
32
|
+
<label class="font_normal_body_new">用气性质</label>
|
|
33
|
+
<input class="input-underline" style="width:60%" :value="row.f_gasproperties" readonly>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-4">
|
|
36
|
+
<label class="font_normal_body_new">证件类型</label>
|
|
37
|
+
<input class="input-underline" style="width:60%" :value="row.f_credentials" readonly>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="col-sm-8">
|
|
40
|
+
<label class="font_normal_body_new">证件号码</label>
|
|
41
|
+
<input class="input-underline" style="width:80%" :value="row.f_idnumber" readonly>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-4">
|
|
44
|
+
<label class="font_normal_body_new">用户状态</label>
|
|
45
|
+
<input class="input-underline" style="width:60%" :value="row.f_user_state" readonly>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-4">
|
|
48
|
+
<label class="font_normal_body_new">账户余额</label>
|
|
49
|
+
<input class="input-underline" style="width:60%" :value="row.f_balance" readonly>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="col-sm-4">
|
|
52
|
+
<label class="font_normal_body_new">人 口 数</label>
|
|
53
|
+
<input class="input-underline" style="width:60%" :value="row.f_people_num" readonly>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-sm-6" style="height:auto;width:49%;">
|
|
58
|
+
<p style="font-weight: bold;margin: 0"><img src="../../../../../../static/mainicon/矩形1828.png"/> 表具信息</p>
|
|
59
|
+
<div class="col-sm-4">
|
|
60
|
+
<label class="font_normal_body_new">表 号 </label>
|
|
61
|
+
<input class="input-underline" style="width:60%" :value="row.f_meternumber" readonly>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-4">
|
|
64
|
+
<label class="font_normal_body_new">气表状态</label>
|
|
65
|
+
<input class="input-underline" style="width:60%" :value="row.f_table_state" readonly>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-4">
|
|
68
|
+
<label class="font_normal_body_new">当前底数</label>
|
|
69
|
+
<input class="input-underline" style="width:60%" :value="row.f_meter_base" readonly>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div class="col-sm-4">
|
|
73
|
+
<label class="font_normal_body_new">气表品牌</label>
|
|
74
|
+
<input class="input-underline" style="width:60%" :value="row.f_meter_brand" readonly>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<div class="col-sm-4">
|
|
78
|
+
<label class="font_normal_body_new">气价名称</label>
|
|
79
|
+
<input class="input-underline" style="width:60%" :value="row.f_price_name" readonly>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col-sm-4">
|
|
82
|
+
<label class="font_normal_body_new">气价类型</label>
|
|
83
|
+
<input class="input-underline" style="width:60%" :value="row.f_price_type" readonly>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="col-sm-4">
|
|
86
|
+
<label class="font_normal_body_new">价格详情</label>
|
|
87
|
+
<input class="input-underline" style="width:60%" :value="row.f_detailprice" readonly>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="col-sm-4">
|
|
90
|
+
<label class="font_normal_body_new" title="最后上报时间">上报时间</label>
|
|
91
|
+
<input class="input-underline" style="width:60%" :value="row.f_meteread_date ? row.f_meteread_date : '暂无'" readonly>
|
|
92
|
+
</div>
|
|
93
|
+
<div v-if="row.f_collection_type == '按金额'" class="col-sm-4">
|
|
94
|
+
<label class="font_normal_body_new">累购金额</label>
|
|
95
|
+
<input class="input-underline" style="width:60%" :value="row.total_fee" readonly>
|
|
96
|
+
</div>
|
|
97
|
+
<div v-if="row.f_collection_type == '按气量'">
|
|
98
|
+
<div class="col-sm-4">
|
|
99
|
+
<label class="font_normal_body_new">累购气量</label>
|
|
100
|
+
<input class="input-underline" style="width:60%" :value="row.f_total_gas" readonly>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="col-sm-4">
|
|
103
|
+
<label class="font_normal_body_new">最后结算时间</label>
|
|
104
|
+
<input class="input-underline" style="width:45%" :value="row.f_hand_date ? row.f_hand_date :'暂无'" readonly>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div v-if="row.f_meter_type.includes('物联网表')" >
|
|
108
|
+
<div class="col-sm-4">
|
|
109
|
+
<label class="font_normal_body_new">物联网次数</label>
|
|
110
|
+
<input class="input-underline" style="width:55%" :value="row.f_iot_times" readonly>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="col-sm-4">
|
|
113
|
+
<label class="font_normal_body_new">表剩余金额</label>
|
|
114
|
+
<input class="input-underline" style="width:55%; color: red; font-weight: bold" :value="row.f_balance_amount" readonly>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="col-sm-4">
|
|
117
|
+
<label class="font_normal_body_new">阀门状态</label>
|
|
118
|
+
<input class="input-underline" style="width:60%" :value="row.f_valvestate == 0 ? '已开阀' : '已关阀'" readonly>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-4">
|
|
121
|
+
<label class="font_normal_body_new">累计上报次数</label>
|
|
122
|
+
<input class="input-underline" style="width:45%" :value="row.f_meteread_number ? row.f_meteread_number : 0" readonly>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="col-sm-4">
|
|
125
|
+
<label class="font_normal_body_new">是否自动阀控</label>
|
|
126
|
+
<input class="input-underline" style="width:45%" :value="row.f_network_valve == '1' ? '是' : '否'" readonly>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div v-if="row.f_collection_type == '按气量'" >
|
|
130
|
+
<div class="col-sm-4">
|
|
131
|
+
<label class="font_normal_body_new">表剩余气量</label>
|
|
132
|
+
<input class="input-underline" style="width:55%" :value="row.f_balance_gas" readonly>
|
|
133
|
+
</div>
|
|
134
|
+
<div class="col-sm-4">
|
|
135
|
+
<label class="font_normal_body_new">累计用气金额</label>
|
|
136
|
+
<input class="input-underline" style="width:45%" :value="row.f_total_usegas_amount" readonly>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="col-sm-4">
|
|
140
|
+
<label class="font_normal_body_new">写卡次数</label>
|
|
141
|
+
<input class="input-underline" style="width:45%" :value="row.f_times" readonly>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="col-sm-4">
|
|
144
|
+
<label class="font_normal_body_new">抄表册名</label>
|
|
145
|
+
<input class="input-underline" style="width:45%" :value="(row.f_book_code!=null ? '['+row.f_book_code + '] ' : '') + (row.f_book_name!=null ? row.f_book_name:'')" readonly>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="col-sm-4">
|
|
148
|
+
<label class="font_normal_body_new">抄表册册序号</label>
|
|
149
|
+
<input class="input-underline" style="width:45%" :value="row.f_meter_book_sort" readonly>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="auto" style="float: right;">
|
|
153
|
+
<button class="button_clear " @click="cancelmain()" >返回</button>
|
|
154
|
+
<button class="button_search" type="button" @click="goChargeManage">去收费</button>
|
|
155
|
+
<button v-if="row.f_meter_brand.includes('西美')&&row.f_meter_type.includes('物联网表')"
|
|
156
|
+
class="button_search" type="button" @click="clearBarrier">清除障碍</button>
|
|
157
|
+
<button v-if="row.f_meter_type.includes('物联网表')"
|
|
158
|
+
class="button_search" type="button" @click="openUser">开户</button>
|
|
159
|
+
<button v-if="row.f_meter_type.includes('物联网表')"
|
|
160
|
+
class="button_search" type="button" @click="valvecontrol">开关阀</button>
|
|
161
|
+
<button v-if="row.f_meter_type.includes('物联网表')"
|
|
162
|
+
class="button_search" type="button" @click="zdfk">开关自动阀控</button>
|
|
163
|
+
<div
|
|
164
|
+
:class="{'button_shrink_top':criteriaShow,'button_shrink_bottom':!criteriaShow}"
|
|
165
|
+
@click="criteriaShow=!criteriaShow"
|
|
166
|
+
class="button_spacing"
|
|
167
|
+
style="float: right"></div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
|
|
171
|
+
<div class="auto row">
|
|
172
|
+
<div class="col-sm-6" style="width:49%;"></div>
|
|
173
|
+
<div class="auto form-group-new">
|
|
174
|
+
<div class="col-sm-6" style="height:auto;width:49%;" v-show="criteriaShow">
|
|
175
|
+
<div class="col-sm-4">
|
|
176
|
+
<label class="font_normal_body_new">气表型号</label>
|
|
177
|
+
<input class="input-underline" style="width:60%" :value="row.f_meter_style" readonly>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="col-sm-4">
|
|
180
|
+
<label class="font_normal_body_new">气表类型</label>
|
|
181
|
+
<input class="input-underline" style="width:60%" :value="row.f_meter_type" readonly>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="col-sm-4">
|
|
184
|
+
<label class="font_normal_body_new">初始底数</label>
|
|
185
|
+
<input class="input-underline" style="width:60%" :value="row.f_initial_base" readonly>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="col-sm-4">
|
|
188
|
+
<label class="font_normal_body_new">左 右 表</label>
|
|
189
|
+
<input class="input-underline" style="width:60%" :value="row.f_aroundmeter" readonly>
|
|
190
|
+
</div>
|
|
191
|
+
<div class="col-sm-4">
|
|
192
|
+
<label class="font_normal_body_new">建表日期</label>
|
|
193
|
+
<input class="input-underline" style="width:60%" :value="row.f_input_date.substring(0,7)" readonly>
|
|
194
|
+
</div>
|
|
195
|
+
<div v-if="devices.length > 0" v-show="false" style="height: auto" >
|
|
196
|
+
<p style="font-weight: bold;margin: 0">设备信息</p>
|
|
197
|
+
<div class="panel-heading" style="height: 30px">
|
|
198
|
+
<h4 style="display:inline-block;margin-top: auto">设备信息</h4>
|
|
199
|
+
</div>
|
|
200
|
+
<div v-for="device in devices">
|
|
201
|
+
|
|
202
|
+
<form class="form-horizontal">
|
|
203
|
+
<div class="col-sm-4">
|
|
204
|
+
<label class="font_normal_body_new">设备类型</label>
|
|
205
|
+
<input class="input-underline" style="width:60%" :value="device.f_devices_type" readonly>
|
|
206
|
+
</div>
|
|
207
|
+
<div class="col-sm-4">
|
|
208
|
+
<label class="font_normal_body_new">设备品牌</label>
|
|
209
|
+
<input class="input-underline" style="width:60%" :value="device.f_brand" readonly>
|
|
210
|
+
</div>
|
|
211
|
+
<div class="col-sm-4">
|
|
212
|
+
<label class="font_normal_body_new">设备型号</label>
|
|
213
|
+
<input class="input-underline" style="width:60%" :value="device.f_devices_model" readonly>
|
|
214
|
+
</div>
|
|
215
|
+
<div class="col-sm-4">
|
|
216
|
+
<label class="font_normal_body_new">设备数量</label>
|
|
217
|
+
<input class="input-underline" style="width:60%" :value="device.f_devices_num" readonly>
|
|
218
|
+
</div>
|
|
219
|
+
</form>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
<!--阀控管理弹框-->
|
|
226
|
+
<modal :show.sync="valve">
|
|
227
|
+
<header slot="modal-header" class="modal-header">
|
|
228
|
+
<button type="button" class="close" @click="close()"><span>×</span></button>
|
|
229
|
+
<h4 class="modal-title" align="center">阀控管理</h4>
|
|
230
|
+
</header>
|
|
231
|
+
<article slot="modal-body" class="modal-body">
|
|
232
|
+
<div class="form-group " style="padding-left: 8px">
|
|
233
|
+
<label class="font_normal_body" >操作原因</label>
|
|
234
|
+
<textarea class="form-control" style="width:80%" v-model="operateReason" rows="3" placeholder="请填写操作原因"></textarea>
|
|
235
|
+
</div>
|
|
236
|
+
</article>
|
|
237
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
238
|
+
<button type="button" class="button_search btn-ln fr" @click='valveoperate(true)'>开阀</button>
|
|
239
|
+
|
|
240
|
+
<button type="button" class="btn btn-info btn-ln fr" @click='valveoperate(false)'>关阀</button>
|
|
241
|
+
</footer>
|
|
242
|
+
</modal>
|
|
243
|
+
</div>
|
|
244
|
+
</template>
|
|
245
|
+
|
|
246
|
+
<script>
|
|
247
|
+
import {HttpResetClass} from 'vue-client'
|
|
248
|
+
import Vue from 'vue'
|
|
249
|
+
export default {
|
|
250
|
+
title: '基本信息',
|
|
251
|
+
props: ['row'],
|
|
252
|
+
data () {
|
|
253
|
+
return {
|
|
254
|
+
criteriaShow: false,
|
|
255
|
+
devices: [],
|
|
256
|
+
valveLimit: false,
|
|
257
|
+
// 开关阀操作原因
|
|
258
|
+
operateReason: '',
|
|
259
|
+
valve: false
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
ready () {
|
|
264
|
+
this.getDevice()
|
|
265
|
+
this.valveLimit = this.$login.r.includes('开关阀权限')
|
|
266
|
+
},
|
|
267
|
+
methods: {
|
|
268
|
+
// 发送请求去数据
|
|
269
|
+
async getDevice () {
|
|
270
|
+
if (this.row) {
|
|
271
|
+
let http = new HttpResetClass()
|
|
272
|
+
let condition = `f_userinfo_id = '${this.row.f_userinfo_id}'`
|
|
273
|
+
let getDevices = await http.load('POST', 'rs/sql/sale_GetDevicesInfo', {data: {condition: condition}}, {rejectMsg: '获取设备信息出错!!', resolveMsg: null})
|
|
274
|
+
this.devices = getDevices.data
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
// 返回
|
|
279
|
+
cancelmain () {
|
|
280
|
+
this.$emit('cancel-main')
|
|
281
|
+
},
|
|
282
|
+
clearBarrier(){
|
|
283
|
+
// 地址
|
|
284
|
+
// 127.0.0.1:8445
|
|
285
|
+
// 参数
|
|
286
|
+
let datas = {
|
|
287
|
+
moduleName:"XiMeiSystem", // 固定值
|
|
288
|
+
content:{
|
|
289
|
+
tradeCode:"3015",// 固定值
|
|
290
|
+
appid: "yysf", // 固定值
|
|
291
|
+
partner: "cqsemay_bcts", // 固定值
|
|
292
|
+
version:"v1", // 固定值
|
|
293
|
+
tasked:this.getuuid(), // 任务id
|
|
294
|
+
notifyUrl:"http://192.168.2.10:8445/webmeter/rs/logic/XiMeiSystemCallBack", // 固定值
|
|
295
|
+
meterNo: this.row.f_meternumber,// 表号
|
|
296
|
+
signType:" MD5" //固定值
|
|
297
|
+
},
|
|
298
|
+
title: "清除异常", // 固定值
|
|
299
|
+
type: "清除异常", // 固定值
|
|
300
|
+
inputtor:this.row.f_operator, // 操作人
|
|
301
|
+
userId:this.row.f_userfiles_id, // 表档案ID
|
|
302
|
+
dataId: null // 操作记录ID
|
|
303
|
+
}
|
|
304
|
+
this.$resetpost('/webmeter/rs/logic/syncSaveSetParamsTemplate', {data: datas},{resolveMsg: `清理成功`, rejectMsg: `清理失败`}).then(res => {
|
|
305
|
+
})
|
|
306
|
+
},
|
|
307
|
+
getuuid(){
|
|
308
|
+
let uuidA = '';
|
|
309
|
+
var s = [];
|
|
310
|
+
var hexDigits = '0123456789abcdef';
|
|
311
|
+
for (var i = 0; i < 36; i++) {
|
|
312
|
+
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
|
|
313
|
+
}
|
|
314
|
+
s[14] = '4';
|
|
315
|
+
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
|
|
316
|
+
s[8] = s[13] = s[18] = s[23] = '-';
|
|
317
|
+
uuidA = s.join('');
|
|
318
|
+
return uuidA;
|
|
319
|
+
},
|
|
320
|
+
goChargeManage () {
|
|
321
|
+
this.$goto('charge-manage', {f: this.$login.f}, 'main')
|
|
322
|
+
},
|
|
323
|
+
openUser () {
|
|
324
|
+
this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
|
|
325
|
+
if (res === 'confirm') {
|
|
326
|
+
let data = {
|
|
327
|
+
f_userfiles_id: this.row.f_userfiles_id
|
|
328
|
+
}
|
|
329
|
+
this.$resetpost('rs/logic/startup',data)
|
|
330
|
+
}
|
|
331
|
+
})
|
|
332
|
+
},
|
|
333
|
+
// 阀控管理
|
|
334
|
+
zdfk () {
|
|
335
|
+
let data = {
|
|
336
|
+
f_userfiles_id: this.row.f_userfiles_id
|
|
337
|
+
}
|
|
338
|
+
if (this.row.f_network_valve !== '1') {
|
|
339
|
+
this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
|
|
340
|
+
this.row.f_network_valve = '1'
|
|
341
|
+
} else {
|
|
342
|
+
this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
|
|
343
|
+
this.row.f_network_valve = null
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
// 阀控管理
|
|
347
|
+
valvecontrol () {
|
|
348
|
+
if (this.$login.r.includes('开关阀')) {
|
|
349
|
+
this.valve = true
|
|
350
|
+
} else {
|
|
351
|
+
this.$showAlert('您没有开关阀权限,请联系管理员!!', 'warning', 3000)
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
close () {
|
|
355
|
+
this.valve = false
|
|
356
|
+
this.operateReason = ''
|
|
357
|
+
},
|
|
358
|
+
// 开关阀操作
|
|
359
|
+
async valveoperate (oper) {
|
|
360
|
+
let msg = oper ? '开阀' : '关阀'
|
|
361
|
+
let datas = {
|
|
362
|
+
instructType: '阀门控制',
|
|
363
|
+
instructTitle: `手动${msg}`,
|
|
364
|
+
condition: `t_userfiles.f_userfiles_id='${this.row.f_userfiles_id}'`,
|
|
365
|
+
meterBrandName: this.row.f_alias,
|
|
366
|
+
f_instruct_state: '待发送',
|
|
367
|
+
inputtor: Vue.$login.f.name,
|
|
368
|
+
reasonInfo: this.operateReason,
|
|
369
|
+
meternumberf: this.row.f_meternumber,
|
|
370
|
+
contentData: {isOpen: oper ? 1 : 0}
|
|
371
|
+
}
|
|
372
|
+
await this.$resetpost('rs/logic/iot_saveInstruct', {data: datas},
|
|
373
|
+
{warnMsg: `确定要进行${msg}操作吗?`, resolveMsg: `${msg}成功`, rejectMsg: `${msg}失败`}).then(res => {
|
|
374
|
+
this.valve = false
|
|
375
|
+
this.operateReason = ''
|
|
376
|
+
})
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
watch: {
|
|
380
|
+
'row' () {
|
|
381
|
+
this.getDevice()
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
</script>
|
|
386
|
+
<style scoped lang="less">
|
|
387
|
+
.form-group-new > div {
|
|
388
|
+
height: 3% !important;
|
|
389
|
+
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.datapanel {
|
|
393
|
+
color: #333;
|
|
394
|
+
background-color: white;
|
|
395
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
|
|
396
|
+
padding: 10px 30px 10px 30px;
|
|
397
|
+
height: auto;
|
|
398
|
+
border-radius:15px;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.input-underline {
|
|
402
|
+
border-bottom: 1px solid #dbdbdb;
|
|
403
|
+
border-top: 0px;
|
|
404
|
+
border-left: 0px;
|
|
405
|
+
border-right: 0px;
|
|
406
|
+
}
|
|
407
|
+
.font_normal_body_new {
|
|
408
|
+
font-weight: 100;
|
|
409
|
+
float: left;
|
|
410
|
+
margin-top: 0px;
|
|
411
|
+
font-size: 1.4rem !important;
|
|
412
|
+
line-height: 30px;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.col-sm-4,.col-sm-8{
|
|
416
|
+
display: flex;
|
|
417
|
+
align-items: center;
|
|
418
|
+
margin: 7px 0;
|
|
419
|
+
|
|
420
|
+
label{
|
|
421
|
+
line-height: unset;
|
|
422
|
+
margin-bottom: 0;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
</style>
|