system-phone 3.0.49-9 → 3.1.0

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.
Files changed (129) hide show
  1. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  2. package/SystemPhone.iml +8 -8
  3. package/build/dev-server.js +141 -141
  4. package/build/webpack.base.conf.js +82 -82
  5. package/build.gradle +27 -27
  6. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  7. package/gradlew +183 -183
  8. package/gradlew.bat +100 -100
  9. package/index.html +21 -21
  10. package/package.json +1 -1
  11. package/src/App.vue +25 -25
  12. package/src/Util.js +415 -415
  13. package/src/assets//344/277/235/351/231/251/347/231/273/350/256/260.png +0 -0
  14. package/src/assets//345/215/217/345/212/251/345/256/211/346/243/200.png +0 -0
  15. package/src/assets//345/215/241/350/241/250/346/212/204/350/241/250/345/276/205/345/212/236.png +0 -0
  16. package/src/assets//345/233/236/350/256/277.png +0 -0
  17. package/src/assets//345/234/260/345/235/200/345/217/230/346/233/264.png +0 -0
  18. package/src/assets//345/242/236/345/200/274/345/276/205/345/212/236.png +0 -0
  19. package/src/assets//345/244/226/351/203/250/345/256/211/346/243/200/344/270/212/344/274/240.png +0 -0
  20. package/src/assets//345/244/226/351/203/250/345/256/211/346/243/200/344/273/243/345/212/236.png +0 -0
  21. package/src/assets//345/244/226/351/203/250/345/256/211/346/243/200/345/267/262/345/212/236.png +0 -0
  22. package/src/assets//345/244/226/351/203/250/345/256/211/346/243/200/345/276/205/345/212/236.png +0 -0
  23. package/src/assets//345/244/226/351/203/250/351/233/206/344/270/255/345/256/211/346/243/200.png +0 -0
  24. package/src/assets//345/256/211/346/243/200/345/216/206/345/217/262/346/237/245/347/234/213.png +0 -0
  25. package/src/assets//345/256/211/346/243/200/347/256/241/347/220/206/346/234/252/351/200/211/344/270/255.png +0 -0
  26. package/src/assets//345/256/211/346/243/200/347/256/241/347/220/206/351/200/211/344/270/255.png +0 -0
  27. package/src/assets//345/256/211/346/243/200/350/275/254/345/215/225/345/256/241/346/240/270.png +0 -0
  28. package/src/assets//345/267/245/345/215/225/345/244/215/346/243/200.png +0 -0
  29. package/src/assets//345/267/245/345/225/206/345/256/211/346/243/200.png +0 -0
  30. package/src/assets//345/276/205/345/212/236/347/273/237/350/256/241.png +0 -0
  31. package/src/assets//346/212/204/350/241/250/351/207/215/344/274/240.png +0 -0
  32. package/src/assets//346/212/245/345/273/272/344/273/243/345/212/236.png +0 -0
  33. package/src/assets//346/226/275/345/260/201.png +0 -0
  34. package/src/assets//346/226/275/345/260/201/347/256/241/347/220/206.png +0 -0
  35. package/src/assets//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  36. package/src/assets//347/224/250/346/210/267/345/273/272/346/241/243.png +0 -0
  37. package/src/assets//347/224/250/346/210/267/350/256/260/345/275/225.png +0 -0
  38. package/src/assets//347/273/264/344/277/256/345/234/250/347/272/277/346/237/245/350/257/242.png +0 -0
  39. package/src/assets//347/273/264/344/277/256/347/231/273/350/256/260.png +0 -0
  40. package/src/assets//350/256/241/345/210/222/345/256/211/346/243/200.png +0 -0
  41. package/src/assets//350/256/241/345/210/222/347/273/237/350/256/241.png +0 -0
  42. package/src/assets//351/200/232/346/260/224/346/211/223/345/216/213/347/225/231/345/272/225.png +0 -0
  43. package/src/assets//351/223/205/345/260/201/347/256/241/347/220/206.png +0 -0
  44. package/src/assets//351/230/200/346/216/247/347/256/241/347/220/206.png +0 -0
  45. package/src/assets//351/235/236/345/261/205/346/260/221/345/256/211/346/243/200.png +0 -0
  46. package/src/assets//351/242/204/347/272/246/345/256/211/346/243/200/345/276/205/345/212/236.png +0 -0
  47. package/src/assets//351/246/226/351/241/265/345/244/247/345/233/276.png +0 -0
  48. package/src/components/AloneLoadParams.vue +26 -26
  49. package/src/components/AlreadyService.vue +193 -193
  50. package/src/components/AttendManage.vue +534 -415
  51. package/src/components/LoadAppdata.vue +38 -38
  52. package/src/components/LoginApp.vue +732 -725
  53. package/src/components/LoginAppNew.vue +587 -587
  54. package/src/components/LoginAppV4.vue +732 -0
  55. package/src/components/ModifyPassWord.vue +216 -216
  56. package/src/components/NavBottom.vue +117 -117
  57. package/src/components/NavBottomV.vue +141 -141
  58. package/src/components/NavBottomVVV.vue +185 -185
  59. package/src/components/OnlineManage.vue +256 -256
  60. package/src/components/PhoneAllInfo.vue +68 -68
  61. package/src/components/PhoneChangemeterInfo.vue +116 -116
  62. package/src/components/PhoneImageInfo.vue +102 -0
  63. package/src/components/PhoneInfoTable.vue +39 -39
  64. package/src/components/PhoneMeterInfo.vue +132 -132
  65. package/src/components/PhoneRepairInfo.vue +146 -146
  66. package/src/components/PhoneSafeInfo.vue +101 -101
  67. package/src/components/PhoneSellInfo.vue +148 -123
  68. package/src/components/PhoneSellInfoLite.vue +112 -112
  69. package/src/components/PhoneUser.vue +202 -202
  70. package/src/components/PhoneUserDetil.vue +70 -70
  71. package/src/components/PhoneUserFind.vue +138 -138
  72. package/src/components/RightTree.vue +217 -217
  73. package/src/components/SystemSetUp.vue +2 -0
  74. package/src/components/TabBarPhone.vue +81 -81
  75. package/src/components/Test.vue +14 -14
  76. package/src/components/ToolsPage.vue +199 -180
  77. package/src/components/UploadManage.vue +194 -194
  78. package/src/components/gaomi/NavBottomV.vue +223 -223
  79. package/src/components/gaomi/NavBottomVVVV.vue +210 -210
  80. package/src/components/gaomi/Scroller.vue +63 -63
  81. package/src/components/gaomi/SystemSetUp.vue +186 -186
  82. package/src/components/gaomi/ToolsPage.vue +168 -168
  83. package/src/components/idea/feedBack.vue +150 -150
  84. package/src/components/idea/feedbackAdd.vue +366 -366
  85. package/src/components/info/ConfigInfo.vue +122 -122
  86. package/src/components/info/FindUserInfo.vue +157 -157
  87. package/src/components/info/InfoTable.vue +37 -37
  88. package/src/components/iot/InstructMessage.vue +313 -313
  89. package/src/components/iot/IotBaseInfo.vue +97 -97
  90. package/src/components/iot/IotMeterInfo.vue +77 -77
  91. package/src/components/iot/iotMonitoringMain.vue +501 -501
  92. package/src/components/online/ApplyOnline.vue +581 -581
  93. package/src/components/online/BJZhongRan/ApplyOnline.vue +600 -600
  94. package/src/components/screen/ChargeContentPage.vue +656 -656
  95. package/src/components/screen/ContentPage.vue +611 -611
  96. package/src/components/screen/GongdanContentPage.vue +149 -149
  97. package/src/components/screen/ListCountItem.vue +93 -93
  98. package/src/components/screen/ModuleTitle.vue +48 -48
  99. package/src/components/screen/SafeOrderContentPage.vue +440 -440
  100. package/src/components/screen/SecurityCheckItem.vue +50 -50
  101. package/src/components/screen/TotalItem.vue +76 -76
  102. package/src/components/screen/TotalUserNumber.vue +77 -77
  103. package/src/components/screen/WorkOrderItem.vue +51 -51
  104. package/src/components/screen/WorkOrderRightDownItem.vue +103 -103
  105. package/src/components/screen/WorkOrderRightItem.vue +115 -115
  106. package/src/components/userinfo/paymentQuery.vue +189 -189
  107. package/src/components/userinfo/queryFile.vue +190 -190
  108. package/src/components/wasm.vue +18 -18
  109. package/src/expandcssAndroid.less +521 -521
  110. package/src/filiale/yulinyuchuan/AlreadyService.vue +194 -0
  111. package/src/filiale/yulinyuchuan/AttendManage.vue +537 -0
  112. package/src/filiale/yulinyuchuan/LoginApp.vue +741 -0
  113. package/src/filiale/yulinyuchuan/OnlineManage.vue +256 -0
  114. package/src/filiale/yulinyuchuan/SystemSetUp.vue +332 -0
  115. package/src/filiale/yulinyuchuan/UploadManage.vue +195 -0
  116. package/src/filiale/yulinyuchuan/systemphonegrid.js +9 -0
  117. package/src/index.js +9 -9
  118. package/src/main.js +38 -38
  119. package/src/plugins/const.js +404 -404
  120. package/src/plugins/vue-py.js +37 -37
  121. package/src/stores/AppData.js +91 -63
  122. package/src/systemphone-gaomi.js +105 -105
  123. package/src/systemphone.js +60 -58
  124. package/src/systemphonegrid.js +185 -210
  125. package/src/util/LdapHelper.js +75 -75
  126. package/static/const.js +404 -404
  127. package/static/layui/font/iconfont.svg +554 -554
  128. package/static/vue-py.js +37 -37
  129. package/static/wasm_exec.js +465 -465
@@ -1,501 +1,501 @@
1
- <template>
2
- <div class="auto" style="background: #f8f8f8;">
3
- <div partial class="bg-white ">
4
- <div class="row app-row " style="margin-top: 10px">
5
- <div class="col-xs-4">
6
- <img src="../../assets/表号.png" style="width: 20px;margin-bottom: 5px" alt="">
7
- <label class="font ">表号:</label>
8
- </div>
9
- <div class="col-xs-8" >
10
- <input class="search_input input-font" placeholder="请输入您要查询的表号" v-model="f_meternumber" />
11
- </div>
12
- </div>
13
- <div class="row app-row " style="margin-top: 10px">
14
- <div class="col-xs-4">
15
- <img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
16
- <label class="font ">用户编号:</label>
17
- </div>
18
- <div class="col-xs-8" >
19
- <input class="search_input input-font" placeholder="请输入用户编号" v-model="f_userinfo_code" />
20
- </div>
21
- </div>
22
- <div class="row text-center" style="padding-top: 10px;padding-bottom:10px;text-align: center">
23
- <button type="button" class="btn btn-font" style="width: 25%;
24
- margin-right: 3%; background-color: #499edf;color:#FFFFFF;border-radius: 10px ;" @click="query(querytitle)">查询</button>
25
- <button type="button" class="btn btn-font btn-color1" style="width: 25%;margin-right: 3%" @click="empty">清空</button>
26
- <button type="button" class="btn btn-font btn-color1" style="width: 25%;margin-right: 3%" @click="Scanningtable">扫表号</button>
27
- </div>
28
- </div>
29
- <div class="meterinfo auto bg-white">
30
- <iot-meter-info :row="row"></iot-meter-info>
31
- </div>
32
- <div class="">
33
- <div class="row bg-white" style="padding: 10px;margin-bottom: 5px">
34
- <div class="col-sm-12 " >
35
- <img src="../../assets/caozuo.png" style="width: 20px;margin-bottom: 5px" alt="">
36
- <label class="font ">操作</label>
37
- <button type="button" class="btn btn-font btn-color" style="width: 20%" @click="OpenValve('1')">开阀</button>
38
- <button type="button" class="btn btn-font btn-color" style="width: 20%" @click="valveShutoff('0')">关阀</button>
39
- <button type="button" class="btn btn-font btn-color" style="width: 25%" @click="againOpening">重新开户</button>
40
- </div>
41
- </div>
42
-
43
- </div>
44
- <div class="bg-white" >
45
- <!--<div class="row" style="padding-left: 10px">-->
46
- <!--<label class="font_normal_body">信息查询</label>-->
47
- <!--</div>-->
48
- <div class="row auto flex-row" style="justify-content: space-between">
49
- <div @click="setquery('基础')" >
50
- <label :class="querytitle == '基础' ? 'text-center div_ul2' : 'text-center div_ul'">基础</label>
51
- </div>
52
- <div @click="setquery('指令查询')" >
53
- <label :class="querytitle == '指令查询' ? 'text-center div_ul2' : 'text-center div_ul'">指令</label>
54
- </div>
55
- <div @click="setquery('抄表查询')" >
56
- <label :class="querytitle == '抄表查询' ? 'text-center div_ul2' : 'text-center div_ul'">抄表</label>
57
- </div>
58
- <div @click="setquery('售气查询')" >
59
- <label :class="querytitle == '售气查询' ? 'text-center div_ul2' : 'text-center div_ul'">售气</label>
60
- </div>
61
- <div @click="setquery('上报查询')" >
62
- <label :class="querytitle == '上报查询' ? ' text-center div_ul2' : 'text-center div_ul'">上报</label>
63
- </div>
64
- </div>
65
- <div v-if="model.rows.length == 0 && querytitle !== '基础'" style="margin-top: 20px">
66
- <label class="font_normal_body"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;暂无记录...&nbsp;&nbsp;&nbsp;</b></label>
67
- </div>
68
- <div class="iotbaseinfo " v-if="querytitle == '基础'">
69
- <iot-base-info :row="row"></iot-base-info>
70
- </div>
71
- <list :model="model" partial='list' style="padding-bottom: 10px" v-if="querytitle == '指令查询'">
72
- <div partial>
73
- <div class="auto app-text" style="margin-top: 5px; " @click="$parent.$parent.goto(row)">
74
- <div class="panel" style="padding: 10px 10px 5px 10px;">
75
- <div class="panel-body panel-self " style="border: 2px solid #499EDF; border-radius: 10px">
76
- <div class="col-xs-12">
77
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>指令类型:</b></p>
78
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_instruct_type }}</p>
79
- </div>
80
- <div class="col-xs-12">
81
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>指令标题:</b></p>
82
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_instruct_title }}</p>
83
- </div>
84
- <div class="col-xs-12">
85
- <p class="panel-title col-xs-5 text-left font"><b>执行状态:</b></p>
86
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_instruct_state }}
87
- </p>
88
- </div>
89
- <div class="col-xs-12">
90
- <p class="panel-title col-xs-5 text-left font"><b>执行结果:</b></p>
91
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_receive_state }}
92
- </p>
93
- </div>
94
- <div class="col-xs-12">
95
- <p class="panel-title col-xs-5 text-left font"><b>生成人员:</b></p>
96
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_inputtor }}</p>
97
- </div>
98
- <div class="col-xs-12">
99
- <p class="panel-title col-xs-5 text-left font"><b>生成时间:</b></p>
100
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_instruct_date }}</p>
101
- </div>
102
- </div>
103
- </div>
104
- </div>
105
- </div>
106
- </list>
107
- <list :model="model" partial='list' style="padding-bottom: 10px" v-if="querytitle == '抄表查询'">
108
- <div partial>
109
- <div class="auto app-text" style="margin-top: 5px;">
110
- <div class="panel" style="padding: 10px 10px 5px 10px;">
111
- <div class="panel-body panel-self" style="border: 2px solid #499EDF; border-radius: 10px">
112
- <div class="col-xs-12">
113
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>本次抄表底数:</b></p>
114
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_tablebase }}</p>
115
- </div>
116
- <div class="col-xs-12">
117
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>上次抄表底数:</b></p>
118
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_last_tablebase }}</p>
119
- </div>
120
- <div class="col-xs-12">
121
- <p class="panel-title col-xs-5 text-left font"><b>操作员:</b></p>
122
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_inputtor }}
123
- </p>
124
- </div>
125
- <div class="col-xs-12">
126
- <p class="panel-title col-xs-5 text-left font"><b>抄表日期:</b></p>
127
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_input_date }}
128
- </p>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- </div>
134
- </list>
135
- <list :model="model" partial='list' style="padding-bottom: 10px" v-if="querytitle == '售气查询'">
136
- <div partial>
137
- <div class="auto app-text" style="margin-top: 5px;">
138
- <div class="panel" style="padding: 10px 10px 5px 10px;">
139
- <div class="panel-body panel-self" style="border: 2px solid #499EDF; border-radius: 10px">
140
- <div class="col-xs-12">
141
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>预购气量:</b></p>
142
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_pregas }}</p>
143
- </div>
144
- <div class="col-xs-12">
145
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>预购金额:</b></p>
146
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_preamount }}</p>
147
- </div>
148
- <div class="col-xs-12">
149
- <p class="panel-title col-xs-5 text-left font"><b>累购气量:</b></p>
150
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_gas }}
151
- </p>
152
- </div>
153
- <div class="col-xs-12">
154
- <p class="panel-title col-xs-5 text-left font"><b>累购金额:</b></p>
155
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_fee }}
156
- </p>
157
- </div>
158
- <div class="col-xs-12">
159
- <p class="panel-title col-xs-5 text-left font"><b>缴费日期:</b></p>
160
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_operate_date }}
161
- </p>
162
- </div>
163
- </div>
164
- </div>
165
- </div>
166
- </div>
167
- </list>
168
- <list :model="model" partial='list' style="padding-bottom: 10px" v-if="querytitle == '上报查询'">
169
- <div partial>
170
- <div class="auto app-text" style="margin-top: 5px;">
171
- <div class="panel" style="padding: 10px 10px 5px 10px;">
172
- <div class="panel-body panel-self" style="border: 2px solid #499EDF; border-radius: 10px">
173
- <div class="col-xs-12">
174
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>上报类型:</b></p>
175
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_upload_type }}</p>
176
- </div>
177
- <div class="col-xs-12">
178
- <p class="panel-title col-xs-5 text-left font" style="float: left"><b>阀门状态:</b></p>
179
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_valvestate }}</p>
180
- </div>
181
- <div class="col-xs-12">
182
- <p class="panel-title col-xs-5 text-left font"><b>表内单价:</b></p>
183
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_price }}
184
- </p>
185
- </div>
186
- <div class="col-xs-12">
187
- <p class="panel-title col-xs-5 text-left font"><b>抄表底数:</b></p>
188
- <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_tablebase }}
189
- </p>
190
- </div>
191
- <div class="col-xs-12">
192
- <p class="panel-title col-xs-5 text-left font"><b>上报日期:</b></p>
193
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_hand_date }}</p>
194
- </div>
195
- <div class="col-xs-12">
196
- <p class="panel-title col-xs-5 text-left font"><b>系统接收日期:</b></p>
197
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_insert_date }}</p>
198
- </div>
199
- </div>
200
- </div>
201
- </div>
202
- </div>
203
- </list>
204
- </div>
205
-
206
- </div>
207
-
208
- </template>
209
-
210
- <script>
211
- import Vue from 'vue'
212
- import {HttpResetClass} from 'vue-client'
213
- import IotMeterInfo from "./IotMeterInfo";
214
- export default {
215
- components: {IotMeterInfo},
216
- title: '物联网监控',
217
- data () {
218
- return {
219
- f_meternumber: '',
220
- f_userinfo_code:'',
221
- querytitle: '基础',
222
- row:{},
223
- model: {
224
- rows: [{}]
225
- }
226
-
227
- }
228
- },
229
- ready () {
230
- console.log('物联网监控')
231
- },
232
- methods: {
233
- goto(row){
234
- console.log(row)
235
- let _this=this
236
- var pardate = {
237
- _this:_this,
238
- title:'指令信息',
239
- safe:false
240
- }
241
- this.$dispatch('gotoson',pardate)
242
- this.$goto('instruct-message',{row:row}, 'self')
243
- },
244
- empty () {
245
- console.log('清空')
246
- this.f_meternumber = ''
247
- this.f_userinfo_code = ''
248
- },
249
- // 查询表别名
250
- queryAlias() {
251
- console.log('查询表别名'+JSON.stringify(this.f_meternumber))
252
- let data = {
253
- items: ' f_alias , f_user_id ',
254
- tablename: ' t_userfiles uf LEFT JOIN t_gasbrand gb ON uf.f_gasbrand_id = gb.id ',
255
- orderitem: 'gb.id desc',
256
- condition: ` f_meternumber = '${this.f_meternumber}'`
257
- }
258
- // console.log('查询条件'+ JSON.stringify(data))
259
- // this.$resetpost(`/rs/sql/iot_singleTable_OrderBy`, {data: data}).then((row) => {
260
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/iot_singleTable_OrderBy`, {data: data}).then((row) => {
261
- // console.log('查询返回'+JSON.stringify(row))
262
- return row.data[0]
263
- }).catch((e) => {
264
- this.$showMessage('表别名获取失败!')
265
- // console.log('错误信息+++++++'+JSON.stringify(e))
266
- })
267
-
268
- },
269
- async OpenValve(type) {
270
- // console.log('开阀')
271
- if (!this.f_meternumber) {
272
- this.$showMessage('请输入/扫描用户表号!')
273
- return
274
- }
275
- this.$showMessage(`您确认要生成开阀指令吗?`, ['confirm', 'cancel']).then(async (res) => {
276
- if (res === 'confirm') {
277
- // let alias = await this.queryAlias()
278
- let data = {
279
- userId: this.row.f_user_id,
280
- content: {isOpen: type},
281
- alias: this.row.f_alias,
282
- inputtor: Vue.user.name,
283
- moduleName: this.row.f_alias
284
- }
285
- // console.log('请求参数'+JSON.stringify(data))
286
- // http://ip:port/webmeter/rs/logic/syncSaveValveControlTemplate
287
- let http = new HttpResetClass()
288
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/webmeter/rs/logic/syncSaveValveControlTemplate`, {data: data}).then((row) => {
289
- // http.load('POST',`${this.$androidUtil.getProxyUrl()}/SJwebmeter`, {data: data}).then((row) => {
290
- // console.log('执行结果'+JSON.stringify(row))
291
- this.$showMessage('发送成功!')
292
- }).catch((e) => {
293
- this.$showMessage('发送失败!')
294
- // console.log('错误信息+++++++'+JSON.stringify(e))
295
- })
296
- }
297
- })
298
- },
299
- valveShutoff (type) {
300
- // console.log('关阀')
301
- if (!this.f_meternumber) {
302
- this.$showMessage('请输入/扫描用户表号!')
303
- return
304
- }
305
- this.$showMessage(`您确认要生成关阀指令吗?`, ['confirm', 'cancel']).then(async (res) => {
306
- if (res === 'confirm') {
307
- // let alias = await this.queryAlias()
308
- let data = {
309
- userId: this.row.f_user_id,
310
- content: {isOpen: type},
311
- alias: this.row.f_alias,
312
- inputtor: Vue.user.name,
313
- moduleName: this.row.f_alias
314
- }
315
- // console.log('请求参数'+JSON.stringify(data))
316
- // http://ip:port/webmeter/rs/logic/syncSaveValveControlTemplate
317
- let http = new HttpResetClass()
318
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/webmeter/rs/logic/syncSaveValveControlTemplate`, {data: data}).then((row) => {
319
- // http.load('POST',`${this.$androidUtil.getProxyUrl()}/SJwebmeter`, {data: data}).then((row) => {
320
- // console.log('执行结果'+JSON.stringify(row))
321
- this.$showMessage('发送成功!')
322
- }).catch((e) => {
323
- this.$showMessage('发送失败!')
324
- // console.log('错误信息+++++++'+JSON.stringify(e))
325
- })
326
- }
327
- })
328
- },
329
- againOpening () {
330
- console.log('重新开户')
331
- if (!this.f_meternumber) {
332
- this.$showMessage('请输入/扫描用户表号!')
333
- return
334
- }
335
- this.$showMessage(`您确认要重新开户吗?`, ['confirm', 'cancel']).then(async (res) => {
336
- if (res === 'confirm') {
337
- let http = new HttpResetClass()
338
- let condition = `f_meternumber = '${this.f_meternumber}'`
339
- console.log('修改条件===' + JSON.stringify(condition))
340
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/againOpenAccountnvm `, {data: {condition: condition}},{resolveMsg: null, rejectMsg: null}).then((row) => {
341
- // console.log('修改返回' + JSON.stringify(row))
342
- this.$showMessage('操作成功!将会在一段时间内重新生成开户指令!')
343
- }).catch((e) => {
344
- this.$showMessage('操作失败!请稍后重试!')
345
- console.log('错误信息+++++++'+JSON.stringify(e))
346
- })
347
- }
348
- })
349
-
350
-
351
- },
352
- query (title) {
353
- console.log('查询'+ JSON.stringify(title))
354
- if (!this.f_meternumber&&!this.f_userinfo_code) {
355
- this.$showMessage('请输入/扫描用户表号或输入用户编号!')
356
- return
357
- }
358
- let condition = this.f_meternumber!==''? `f_meternumber = '${this.f_meternumber}'`:`f_userinfo_code = '${this.f_userinfo_code}'`
359
- let data = {
360
- items: '*',
361
- tablename: 't_instruct',
362
- orderitem: 'f_instruct_date desc',
363
- f_meternumber: this.meternumber
364
- }
365
- if(title==='基础'){
366
- // let condition = `f_meternumber = '${this.f_meternumber}'`
367
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/getUserByMeter`, {data: {condition:condition}}).then((row) => {
368
- if(row.data.length===0)
369
- this.$showMessage('未查询到用户信息')
370
- // console.log('查询返回'+JSON.stringify(row))
371
- // this.f_meternumber = row.data[0].f_meternumber
372
- // this.f_userinfo_code = row.data[0].f_userinfo_code?row.data[0].f_userinfo_code:this.f_userinfo_code
373
- this.row = row.data[0]
374
- }).catch((e) => {
375
- console.log('错误信息+++++++'+JSON.stringify(e))
376
- })
377
- } else {
378
- if (title == '指令查询') {
379
- data = {
380
- items: '*',
381
- tablename: 't_instruct',
382
- orderitem: 'f_instruct_date desc',
383
- condition: condition
384
- }
385
- }else if (title == '抄表查询') {
386
- data = {
387
- items: '*',
388
- tablename: 't_handplan',
389
- orderitem: 'f_input_date desc',
390
- condition: condition
391
- }
392
- }else if (title == '售气查询') {
393
- if (!this.f_meternumber) {
394
- this.$showMessage('请输入/扫描用户表号!')
395
- return
396
- }
397
- data = {
398
- items: '*',
399
- tablename: 't_sellinggas',
400
- orderitem: 'f_operate_date desc',
401
- condition: condition
402
- }
403
- }else if (title == '上报查询') {
404
- if (!this.f_meternumber) {
405
- this.$showMessage('请输入/扫描用户表号!')
406
- return
407
- }
408
- data = {
409
- items: '*',
410
- tablename: 't_meteread',
411
- orderitem: 'f_hand_date desc',
412
- condition: condition
413
- }
414
- }
415
- console.log('查询条件'+ JSON.stringify(data))
416
- // this.$resetpost(`/rs/sql/iot_singleTable_OrderBy`, {data: data}).then((row) => {
417
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/iot_singleTable_OrderBy`, {data: data}).then((row) => {
418
- console.log('查询返回'+JSON.stringify(row))
419
- this.model.rows = row.data
420
- // this.f_meternumber = row.data[0].f_meternumber
421
- // this.f_userinfo_code = row.data[0].f_userinfo_code?row.data[0].f_userinfo_code:this.f_userinfo_code
422
- }).catch((e) => {
423
- console.log('正在维护!')
424
- console.log('错误信息+++++++'+JSON.stringify(e))
425
- })
426
- }
427
- },
428
- setquery (msg) {
429
- console.log(msg)
430
- this.querytitle = msg
431
- // 查询
432
- this.query(msg)
433
- },
434
- Scanningtable() {
435
- console.log('扫表号6666666')
436
- HostApp.__this__ = this
437
- HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
438
- },
439
- getCode () {
440
- var datapa = HostApp.getCode().data
441
- console.log(`扫码返回值${datapa}`)
442
- this.f_meternumber = datapa
443
- this.$showMessage(`扫码返回值为:${datapa}`)
444
- },
445
-
446
- }
447
- }
448
- </script>
449
-
450
- <style scoped>
451
- .btn-color{
452
- background-color: #499edf;
453
- border-radius: 10px ;
454
- border: 1px solid #499EDF;
455
- font:600 16px PingFang-SC-Bold;
456
- color: #FFFFFF;
457
-
458
- }
459
- .btn-color1{
460
- background-color: #FFFFFF;
461
- border-radius: 10px ;
462
- border: 1px solid #499EDF;
463
- font:600 16px PingFang-SC-Bold;
464
- color: #499EDF;
465
- }
466
- .app-row {
467
- background-color: white;
468
- padding: 10px 10px 0 10px;
469
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
470
- }
471
- .search_input {
472
- border: 0;
473
- outline: none;
474
- }
475
- .font{
476
- font: 15px PingFang-SC-Medium;
477
- color: #666666;
478
- }
479
- .input-font{
480
- font: 15px PingFang-SC-Medium;
481
- color: #333333;
482
- }
483
- .div_ul {
484
- height: 36px;
485
- color:rgb(153,153,153);
486
- /*border-right: 1px solid royalblue;*/
487
- line-height: 36px;
488
- }
489
- .div_ul2 {
490
- height: 36px;
491
- /*border-right: 1px solid royalblue;*/
492
- line-height: 36px;
493
- color:#6eb0e3;
494
- border-bottom: 2px solid #6eb0e3;
495
- }
496
- .meterinfo{
497
- padding: 10px;
498
- margin-top: 5px;
499
- margin-bottom: 5px;
500
- }
501
- </style>
1
+ <template>
2
+ <div class="auto" style="background: #f8f8f8;">
3
+ <div partial class="bg-white ">
4
+ <div class="row app-row " style="margin-top: 10px">
5
+ <div class="col-xs-4">
6
+ <img src="../../assets/表号.png" style="width: 20px;margin-bottom: 5px" alt="">
7
+ <label class="font ">表号:</label>
8
+ </div>
9
+ <div class="col-xs-8" >
10
+ <input class="search_input input-font" placeholder="请输入您要查询的表号" v-model="f_meternumber" />
11
+ </div>
12
+ </div>
13
+ <div class="row app-row " style="margin-top: 10px">
14
+ <div class="col-xs-4">
15
+ <img src="../../assets/用户编号.png" style="width: 20px;margin-bottom: 5px" alt="">
16
+ <label class="font ">用户编号:</label>
17
+ </div>
18
+ <div class="col-xs-8" >
19
+ <input class="search_input input-font" placeholder="请输入用户编号" v-model="f_userinfo_code" />
20
+ </div>
21
+ </div>
22
+ <div class="row text-center" style="padding-top: 10px;padding-bottom:10px;text-align: center">
23
+ <button type="button" class="btn btn-font" style="width: 25%;
24
+ margin-right: 3%; background-color: #499edf;color:#FFFFFF;border-radius: 10px ;" @click="query(querytitle)">查询</button>
25
+ <button type="button" class="btn btn-font btn-color1" style="width: 25%;margin-right: 3%" @click="empty">清空</button>
26
+ <button type="button" class="btn btn-font btn-color1" style="width: 25%;margin-right: 3%" @click="Scanningtable">扫表号</button>
27
+ </div>
28
+ </div>
29
+ <div class="meterinfo auto bg-white">
30
+ <iot-meter-info :row="row"></iot-meter-info>
31
+ </div>
32
+ <div class="">
33
+ <div class="row bg-white" style="padding: 10px;margin-bottom: 5px">
34
+ <div class="col-sm-12 " >
35
+ <img src="../../assets/caozuo.png" style="width: 20px;margin-bottom: 5px" alt="">
36
+ <label class="font ">操作</label>
37
+ <button type="button" class="btn btn-font btn-color" style="width: 20%" @click="OpenValve('1')">开阀</button>
38
+ <button type="button" class="btn btn-font btn-color" style="width: 20%" @click="valveShutoff('0')">关阀</button>
39
+ <button type="button" class="btn btn-font btn-color" style="width: 25%" @click="againOpening">重新开户</button>
40
+ </div>
41
+ </div>
42
+
43
+ </div>
44
+ <div class="bg-white" >
45
+ <!--<div class="row" style="padding-left: 10px">-->
46
+ <!--<label class="font_normal_body">信息查询</label>-->
47
+ <!--</div>-->
48
+ <div class="row auto flex-row" style="justify-content: space-between">
49
+ <div @click="setquery('基础')" >
50
+ <label :class="querytitle == '基础' ? 'text-center div_ul2' : 'text-center div_ul'">基础</label>
51
+ </div>
52
+ <div @click="setquery('指令查询')" >
53
+ <label :class="querytitle == '指令查询' ? 'text-center div_ul2' : 'text-center div_ul'">指令</label>
54
+ </div>
55
+ <div @click="setquery('抄表查询')" >
56
+ <label :class="querytitle == '抄表查询' ? 'text-center div_ul2' : 'text-center div_ul'">抄表</label>
57
+ </div>
58
+ <div @click="setquery('售气查询')" >
59
+ <label :class="querytitle == '售气查询' ? 'text-center div_ul2' : 'text-center div_ul'">售气</label>
60
+ </div>
61
+ <div @click="setquery('上报查询')" >
62
+ <label :class="querytitle == '上报查询' ? ' text-center div_ul2' : 'text-center div_ul'">上报</label>
63
+ </div>
64
+ </div>
65
+ <div v-if="model.rows.length == 0 && querytitle !== '基础'" style="margin-top: 20px">
66
+ <label class="font_normal_body"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;暂无记录...&nbsp;&nbsp;&nbsp;</b></label>
67
+ </div>
68
+ <div class="iotbaseinfo " v-if="querytitle == '基础'">
69
+ <iot-base-info :row="row"></iot-base-info>
70
+ </div>
71
+ <list :model="model" partial='list' style="padding-bottom: 10px" v-if="querytitle == '指令查询'">
72
+ <div partial>
73
+ <div class="auto app-text" style="margin-top: 5px; " @click="$parent.$parent.goto(row)">
74
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
75
+ <div class="panel-body panel-self " style="border: 2px solid #499EDF; border-radius: 10px">
76
+ <div class="col-xs-12">
77
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>指令类型:</b></p>
78
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_instruct_type }}</p>
79
+ </div>
80
+ <div class="col-xs-12">
81
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>指令标题:</b></p>
82
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_instruct_title }}</p>
83
+ </div>
84
+ <div class="col-xs-12">
85
+ <p class="panel-title col-xs-5 text-left font"><b>执行状态:</b></p>
86
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_instruct_state }}
87
+ </p>
88
+ </div>
89
+ <div class="col-xs-12">
90
+ <p class="panel-title col-xs-5 text-left font"><b>执行结果:</b></p>
91
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_receive_state }}
92
+ </p>
93
+ </div>
94
+ <div class="col-xs-12">
95
+ <p class="panel-title col-xs-5 text-left font"><b>生成人员:</b></p>
96
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_inputtor }}</p>
97
+ </div>
98
+ <div class="col-xs-12">
99
+ <p class="panel-title col-xs-5 text-left font"><b>生成时间:</b></p>
100
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_instruct_date }}</p>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ </list>
107
+ <list :model="model" partial='list' style="padding-bottom: 10px" v-if="querytitle == '抄表查询'">
108
+ <div partial>
109
+ <div class="auto app-text" style="margin-top: 5px;">
110
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
111
+ <div class="panel-body panel-self" style="border: 2px solid #499EDF; border-radius: 10px">
112
+ <div class="col-xs-12">
113
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>本次抄表底数:</b></p>
114
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_tablebase }}</p>
115
+ </div>
116
+ <div class="col-xs-12">
117
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>上次抄表底数:</b></p>
118
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_last_tablebase }}</p>
119
+ </div>
120
+ <div class="col-xs-12">
121
+ <p class="panel-title col-xs-5 text-left font"><b>操作员:</b></p>
122
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_inputtor }}
123
+ </p>
124
+ </div>
125
+ <div class="col-xs-12">
126
+ <p class="panel-title col-xs-5 text-left font"><b>抄表日期:</b></p>
127
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_input_date }}
128
+ </p>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </div>
134
+ </list>
135
+ <list :model="model" partial='list' style="padding-bottom: 10px" v-if="querytitle == '售气查询'">
136
+ <div partial>
137
+ <div class="auto app-text" style="margin-top: 5px;">
138
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
139
+ <div class="panel-body panel-self" style="border: 2px solid #499EDF; border-radius: 10px">
140
+ <div class="col-xs-12">
141
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>预购气量:</b></p>
142
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_pregas }}</p>
143
+ </div>
144
+ <div class="col-xs-12">
145
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>预购金额:</b></p>
146
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_preamount }}</p>
147
+ </div>
148
+ <div class="col-xs-12">
149
+ <p class="panel-title col-xs-5 text-left font"><b>累购气量:</b></p>
150
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_gas }}
151
+ </p>
152
+ </div>
153
+ <div class="col-xs-12">
154
+ <p class="panel-title col-xs-5 text-left font"><b>累购金额:</b></p>
155
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_total_fee }}
156
+ </p>
157
+ </div>
158
+ <div class="col-xs-12">
159
+ <p class="panel-title col-xs-5 text-left font"><b>缴费日期:</b></p>
160
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_operate_date }}
161
+ </p>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ </div>
166
+ </div>
167
+ </list>
168
+ <list :model="model" partial='list' style="padding-bottom: 10px" v-if="querytitle == '上报查询'">
169
+ <div partial>
170
+ <div class="auto app-text" style="margin-top: 5px;">
171
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
172
+ <div class="panel-body panel-self" style="border: 2px solid #499EDF; border-radius: 10px">
173
+ <div class="col-xs-12">
174
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>上报类型:</b></p>
175
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_upload_type }}</p>
176
+ </div>
177
+ <div class="col-xs-12">
178
+ <p class="panel-title col-xs-5 text-left font" style="float: left"><b>阀门状态:</b></p>
179
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_valvestate }}</p>
180
+ </div>
181
+ <div class="col-xs-12">
182
+ <p class="panel-title col-xs-5 text-left font"><b>表内单价:</b></p>
183
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_price }}
184
+ </p>
185
+ </div>
186
+ <div class="col-xs-12">
187
+ <p class="panel-title col-xs-5 text-left font"><b>抄表底数:</b></p>
188
+ <p class="panel-title col-xs-7 text-left input-font" >{{ row.f_tablebase }}
189
+ </p>
190
+ </div>
191
+ <div class="col-xs-12">
192
+ <p class="panel-title col-xs-5 text-left font"><b>上报日期:</b></p>
193
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_hand_date }}</p>
194
+ </div>
195
+ <div class="col-xs-12">
196
+ <p class="panel-title col-xs-5 text-left font"><b>系统接收日期:</b></p>
197
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_insert_date }}</p>
198
+ </div>
199
+ </div>
200
+ </div>
201
+ </div>
202
+ </div>
203
+ </list>
204
+ </div>
205
+
206
+ </div>
207
+
208
+ </template>
209
+
210
+ <script>
211
+ import Vue from 'vue'
212
+ import {HttpResetClass} from 'vue-client'
213
+ import IotMeterInfo from "./IotMeterInfo";
214
+ export default {
215
+ components: {IotMeterInfo},
216
+ title: '物联网监控',
217
+ data () {
218
+ return {
219
+ f_meternumber: '',
220
+ f_userinfo_code:'',
221
+ querytitle: '基础',
222
+ row:{},
223
+ model: {
224
+ rows: [{}]
225
+ }
226
+
227
+ }
228
+ },
229
+ ready () {
230
+ console.log('物联网监控')
231
+ },
232
+ methods: {
233
+ goto(row){
234
+ console.log(row)
235
+ let _this=this
236
+ var pardate = {
237
+ _this:_this,
238
+ title:'指令信息',
239
+ safe:false
240
+ }
241
+ this.$dispatch('gotoson',pardate)
242
+ this.$goto('instruct-message',{row:row}, 'self')
243
+ },
244
+ empty () {
245
+ console.log('清空')
246
+ this.f_meternumber = ''
247
+ this.f_userinfo_code = ''
248
+ },
249
+ // 查询表别名
250
+ queryAlias() {
251
+ console.log('查询表别名'+JSON.stringify(this.f_meternumber))
252
+ let data = {
253
+ items: ' f_alias , f_user_id ',
254
+ tablename: ' t_userfiles uf LEFT JOIN t_gasbrand gb ON uf.f_gasbrand_id = gb.id ',
255
+ orderitem: 'gb.id desc',
256
+ condition: ` f_meternumber = '${this.f_meternumber}'`
257
+ }
258
+ // console.log('查询条件'+ JSON.stringify(data))
259
+ // this.$resetpost(`/rs/sql/iot_singleTable_OrderBy`, {data: data}).then((row) => {
260
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/iot_singleTable_OrderBy`, {data: data}).then((row) => {
261
+ // console.log('查询返回'+JSON.stringify(row))
262
+ return row.data[0]
263
+ }).catch((e) => {
264
+ this.$showMessage('表别名获取失败!')
265
+ // console.log('错误信息+++++++'+JSON.stringify(e))
266
+ })
267
+
268
+ },
269
+ async OpenValve(type) {
270
+ // console.log('开阀')
271
+ if (!this.f_meternumber) {
272
+ this.$showMessage('请输入/扫描用户表号!')
273
+ return
274
+ }
275
+ this.$showMessage(`您确认要生成开阀指令吗?`, ['confirm', 'cancel']).then(async (res) => {
276
+ if (res === 'confirm') {
277
+ // let alias = await this.queryAlias()
278
+ let data = {
279
+ userId: this.row.f_user_id,
280
+ content: {isOpen: type},
281
+ alias: this.row.f_alias,
282
+ inputtor: Vue.user.name,
283
+ moduleName: this.row.f_alias
284
+ }
285
+ // console.log('请求参数'+JSON.stringify(data))
286
+ // http://ip:port/webmeter/rs/logic/syncSaveValveControlTemplate
287
+ let http = new HttpResetClass()
288
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/webmeter/rs/logic/syncSaveValveControlTemplate`, {data: data}).then((row) => {
289
+ // http.load('POST',`${this.$androidUtil.getProxyUrl()}/SJwebmeter`, {data: data}).then((row) => {
290
+ // console.log('执行结果'+JSON.stringify(row))
291
+ this.$showMessage('发送成功!')
292
+ }).catch((e) => {
293
+ this.$showMessage('发送失败!')
294
+ // console.log('错误信息+++++++'+JSON.stringify(e))
295
+ })
296
+ }
297
+ })
298
+ },
299
+ valveShutoff (type) {
300
+ // console.log('关阀')
301
+ if (!this.f_meternumber) {
302
+ this.$showMessage('请输入/扫描用户表号!')
303
+ return
304
+ }
305
+ this.$showMessage(`您确认要生成关阀指令吗?`, ['confirm', 'cancel']).then(async (res) => {
306
+ if (res === 'confirm') {
307
+ // let alias = await this.queryAlias()
308
+ let data = {
309
+ userId: this.row.f_user_id,
310
+ content: {isOpen: type},
311
+ alias: this.row.f_alias,
312
+ inputtor: Vue.user.name,
313
+ moduleName: this.row.f_alias
314
+ }
315
+ // console.log('请求参数'+JSON.stringify(data))
316
+ // http://ip:port/webmeter/rs/logic/syncSaveValveControlTemplate
317
+ let http = new HttpResetClass()
318
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/webmeter/rs/logic/syncSaveValveControlTemplate`, {data: data}).then((row) => {
319
+ // http.load('POST',`${this.$androidUtil.getProxyUrl()}/SJwebmeter`, {data: data}).then((row) => {
320
+ // console.log('执行结果'+JSON.stringify(row))
321
+ this.$showMessage('发送成功!')
322
+ }).catch((e) => {
323
+ this.$showMessage('发送失败!')
324
+ // console.log('错误信息+++++++'+JSON.stringify(e))
325
+ })
326
+ }
327
+ })
328
+ },
329
+ againOpening () {
330
+ console.log('重新开户')
331
+ if (!this.f_meternumber) {
332
+ this.$showMessage('请输入/扫描用户表号!')
333
+ return
334
+ }
335
+ this.$showMessage(`您确认要重新开户吗?`, ['confirm', 'cancel']).then(async (res) => {
336
+ if (res === 'confirm') {
337
+ let http = new HttpResetClass()
338
+ let condition = `f_meternumber = '${this.f_meternumber}'`
339
+ console.log('修改条件===' + JSON.stringify(condition))
340
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/againOpenAccountnvm `, {data: {condition: condition}},{resolveMsg: null, rejectMsg: null}).then((row) => {
341
+ // console.log('修改返回' + JSON.stringify(row))
342
+ this.$showMessage('操作成功!将会在一段时间内重新生成开户指令!')
343
+ }).catch((e) => {
344
+ this.$showMessage('操作失败!请稍后重试!')
345
+ console.log('错误信息+++++++'+JSON.stringify(e))
346
+ })
347
+ }
348
+ })
349
+
350
+
351
+ },
352
+ query (title) {
353
+ console.log('查询'+ JSON.stringify(title))
354
+ if (!this.f_meternumber&&!this.f_userinfo_code) {
355
+ this.$showMessage('请输入/扫描用户表号或输入用户编号!')
356
+ return
357
+ }
358
+ let condition = this.f_meternumber!==''? `f_meternumber = '${this.f_meternumber}'`:`f_userinfo_code = '${this.f_userinfo_code}'`
359
+ let data = {
360
+ items: '*',
361
+ tablename: 't_instruct',
362
+ orderitem: 'f_instruct_date desc',
363
+ f_meternumber: this.meternumber
364
+ }
365
+ if(title==='基础'){
366
+ // let condition = `f_meternumber = '${this.f_meternumber}'`
367
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/getUserByMeter`, {data: {condition:condition}}).then((row) => {
368
+ if(row.data.length===0)
369
+ this.$showMessage('未查询到用户信息')
370
+ // console.log('查询返回'+JSON.stringify(row))
371
+ // this.f_meternumber = row.data[0].f_meternumber
372
+ // this.f_userinfo_code = row.data[0].f_userinfo_code?row.data[0].f_userinfo_code:this.f_userinfo_code
373
+ this.row = row.data[0]
374
+ }).catch((e) => {
375
+ console.log('错误信息+++++++'+JSON.stringify(e))
376
+ })
377
+ } else {
378
+ if (title == '指令查询') {
379
+ data = {
380
+ items: '*',
381
+ tablename: 't_instruct',
382
+ orderitem: 'f_instruct_date desc',
383
+ condition: condition
384
+ }
385
+ }else if (title == '抄表查询') {
386
+ data = {
387
+ items: '*',
388
+ tablename: 't_handplan',
389
+ orderitem: 'f_input_date desc',
390
+ condition: condition
391
+ }
392
+ }else if (title == '售气查询') {
393
+ if (!this.f_meternumber) {
394
+ this.$showMessage('请输入/扫描用户表号!')
395
+ return
396
+ }
397
+ data = {
398
+ items: '*',
399
+ tablename: 't_sellinggas',
400
+ orderitem: 'f_operate_date desc',
401
+ condition: condition
402
+ }
403
+ }else if (title == '上报查询') {
404
+ if (!this.f_meternumber) {
405
+ this.$showMessage('请输入/扫描用户表号!')
406
+ return
407
+ }
408
+ data = {
409
+ items: '*',
410
+ tablename: 't_meteread',
411
+ orderitem: 'f_hand_date desc',
412
+ condition: condition
413
+ }
414
+ }
415
+ console.log('查询条件'+ JSON.stringify(data))
416
+ // this.$resetpost(`/rs/sql/iot_singleTable_OrderBy`, {data: data}).then((row) => {
417
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/iot_singleTable_OrderBy`, {data: data}).then((row) => {
418
+ console.log('查询返回'+JSON.stringify(row))
419
+ this.model.rows = row.data
420
+ // this.f_meternumber = row.data[0].f_meternumber
421
+ // this.f_userinfo_code = row.data[0].f_userinfo_code?row.data[0].f_userinfo_code:this.f_userinfo_code
422
+ }).catch((e) => {
423
+ console.log('正在维护!')
424
+ console.log('错误信息+++++++'+JSON.stringify(e))
425
+ })
426
+ }
427
+ },
428
+ setquery (msg) {
429
+ console.log(msg)
430
+ this.querytitle = msg
431
+ // 查询
432
+ this.query(msg)
433
+ },
434
+ Scanningtable() {
435
+ console.log('扫表号6666666')
436
+ HostApp.__this__ = this
437
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
438
+ },
439
+ getCode () {
440
+ var datapa = HostApp.getCode().data
441
+ console.log(`扫码返回值${datapa}`)
442
+ this.f_meternumber = datapa
443
+ this.$showMessage(`扫码返回值为:${datapa}`)
444
+ },
445
+
446
+ }
447
+ }
448
+ </script>
449
+
450
+ <style scoped>
451
+ .btn-color{
452
+ background-color: #499edf;
453
+ border-radius: 10px ;
454
+ border: 1px solid #499EDF;
455
+ font:600 16px PingFang-SC-Bold;
456
+ color: #FFFFFF;
457
+
458
+ }
459
+ .btn-color1{
460
+ background-color: #FFFFFF;
461
+ border-radius: 10px ;
462
+ border: 1px solid #499EDF;
463
+ font:600 16px PingFang-SC-Bold;
464
+ color: #499EDF;
465
+ }
466
+ .app-row {
467
+ background-color: white;
468
+ padding: 10px 10px 0 10px;
469
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
470
+ }
471
+ .search_input {
472
+ border: 0;
473
+ outline: none;
474
+ }
475
+ .font{
476
+ font: 15px PingFang-SC-Medium;
477
+ color: #666666;
478
+ }
479
+ .input-font{
480
+ font: 15px PingFang-SC-Medium;
481
+ color: #333333;
482
+ }
483
+ .div_ul {
484
+ height: 36px;
485
+ color:rgb(153,153,153);
486
+ /*border-right: 1px solid royalblue;*/
487
+ line-height: 36px;
488
+ }
489
+ .div_ul2 {
490
+ height: 36px;
491
+ /*border-right: 1px solid royalblue;*/
492
+ line-height: 36px;
493
+ color:#6eb0e3;
494
+ border-bottom: 2px solid #6eb0e3;
495
+ }
496
+ .meterinfo{
497
+ padding: 10px;
498
+ margin-top: 5px;
499
+ margin-bottom: 5px;
500
+ }
501
+ </style>