sale-client 3.6.415 → 3.6.416-1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.415",
3
+ "version": "3.6.416-1",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -213,7 +213,7 @@
213
213
  cancelreason: '',
214
214
  cancelid: '',
215
215
  f_userfiles_id: '',
216
- model: new PagedList('rs/sql/insturctDetailQuery', 30),
216
+ model: new PagedList('rs/sql/insturctDetailQuery', 30, {f_userfiles_id: this.row.f_userfiles_id}),
217
217
  row: null,
218
218
  searchshow: false,
219
219
  show: false
@@ -263,7 +263,7 @@
263
263
  console.log("this.$login000",this.$login,this.oldmodel,this.model)
264
264
  let arr = this.$GetSaleParam.inputtors.filter((res) => {
265
265
  if (res.rolestr != null && res.rolestr != '') {
266
- return res.f_department_name == this.model.f_depname
266
+ return res.f_department_id == this.model.f_depid
267
267
  }
268
268
  })
269
269
  arr.forEach((res) => {
@@ -0,0 +1,707 @@
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"/>&nbsp;&nbsp;基本信息
6
+ </p>
7
+ <!-- 第一行数据-->
8
+ <div class="col-sm-4">
9
+ <label class="font_normal_body_new">客户编号</label>
10
+ <input class="input-underline" style="width:60%" :value="row.f_userinfo_code" readonly>
11
+ </div>
12
+ <div class="col-sm-4">
13
+ <label class="font_normal_body_new">客户姓名</label>
14
+ <input class="input-underline" style="width:60%" :value="row.f_user_name" readonly>
15
+ </div>
16
+ <div class="col-sm-4">
17
+ <label class="font_normal_body_new">用户状态</label>
18
+ <input class="input-underline" style="width:60%" :value="row.f_user_state" readonly>
19
+ </div>
20
+ <div class="col-sm-8">
21
+ <label class="font_normal_body_new">客户地址</label>
22
+ <input class="input-underline" style="width:80%" :value="row.f_address" readonly>
23
+ </div>
24
+ <div class="col-sm-4">
25
+ <label class="font_normal_body_new">客户电话</label>
26
+ <input class="input-underline" style="width:60%" :value="row.f_user_phone" readonly>
27
+ </div>
28
+ <div class="col-sm-4">
29
+ <label class="font_normal_body_new">客户类型</label>
30
+ <input class="input-underline" style="width:60%" :value="row.f_user_type" readonly>
31
+ </div>
32
+ <div class="col-sm-4">
33
+ <label class="font_normal_body_new">用气性质</label>
34
+ <input class="input-underline" style="width:60%" :value="row.f_gasproperties" readonly>
35
+ </div>
36
+ <div class="col-sm-4">
37
+ <label class="font_normal_body_new">证件类型</label>
38
+ <input class="input-underline" style="width:60%" :value="row.f_credentials" readonly>
39
+ </div>
40
+ <div class="col-sm-8">
41
+ <label class="font_normal_body_new">证件号码</label>
42
+ <input class="input-underline" style="width:80%" :value="row.f_idnumber" readonly>
43
+ </div>
44
+ <div class="col-sm-4">
45
+ <label class="font_normal_body_new">用户状态</label>
46
+ <input class="input-underline" style="width:60%" :value="row.f_user_state" readonly>
47
+ </div>
48
+ <div class="col-sm-4">
49
+ <label class="font_normal_body_new">账户余额</label>
50
+ <input class="input-underline" style="width:60%" :value="row.f_balance" readonly>
51
+ </div>
52
+ <div class="col-sm-4">
53
+ <label class="font_normal_body_new">人&ensp;口&ensp;数</label>
54
+ <input class="input-underline" style="width:60%" :value="row.f_people_num" readonly>
55
+ </div>
56
+
57
+ </div>
58
+ <div class="col-sm-6" style="height:auto;width:49%;">
59
+ <p style="font-weight: bold;margin: 0"><img src="../../../static/mainicon/矩形1828.png"/>&nbsp;&nbsp;表具信息
60
+ </p>
61
+ <div class="col-sm-4">
62
+ <label class="font_normal_body_new">表&emsp;号&emsp;</label>
63
+ <input class="input-underline" style="width:60%" :value="row.f_meternumber" readonly>
64
+ </div>
65
+ <div class="col-sm-4">
66
+ <label class="font_normal_body_new">气表状态</label>
67
+ <input class="input-underline" style="width:60%" :value="row.f_table_state" readonly>
68
+ </div>
69
+ <div class="col-sm-4">
70
+ <label class="font_normal_body_new">当前底数</label>
71
+ <input class="input-underline" style="width:60%" :value="row.f_meter_base" readonly>
72
+ </div>
73
+ <div class="col-sm-4">
74
+ <label class="font_normal_body_new">气表品牌</label>
75
+ <input class="input-underline" style="width:60%" :value="row.f_meter_brand" readonly>
76
+ </div>
77
+
78
+ <div class="col-sm-4">
79
+ <label class="font_normal_body_new">气价名称</label>
80
+ <input class="input-underline" style="width:60%" :value="row.f_price_name" readonly>
81
+ </div>
82
+ <div class="col-sm-4">
83
+ <label class="font_normal_body_new">气价类型</label>
84
+ <input class="input-underline" style="width:60%" :value="row.f_price_type" readonly>
85
+ </div>
86
+ <div class="col-sm-4">
87
+ <label class="font_normal_body_new">价格详情</label>
88
+ <input class="input-underline" style="width:60%" :value="row.f_detailprice" readonly>
89
+ </div>
90
+ <div v-if="row.f_meter_type.includes('物联网表')" class="col-sm-4">
91
+ <label class="font_normal_body_new" title="结算方式">计费终端</label>
92
+ <input class="input-underline" style="width:60%" :value="row.f_calculation ? row.f_calculation : '获取异常'"
93
+ readonly>
94
+ </div>
95
+ <div v-if="row.f_meter_type.includes('物联网表')" class="col-sm-4">
96
+ <label class="font_normal_body_new" title="结算方式">结算方式</label>
97
+ <input class="input-underline" style="width:60%"
98
+ :value="row.f_collection_type ? row.f_collection_type : '获取异常'"
99
+ readonly>
100
+ </div>
101
+ <div v-if="row.f_meter_type.includes('物联网表')" class="col-sm-4">
102
+ <label class="font_normal_body_new" title="最后上报时间">上报时间</label>
103
+ <input class="input-underline" style="width:60%"
104
+ :value="row.f_meteread_date ? row.f_meteread_date : '暂未上报'"
105
+ readonly>
106
+ </div>
107
+ <div v-if="row.f_meter_type.includes('卡表')" class="col-sm-4">
108
+ <label class="font_normal_body_new">累购气量</label>
109
+ <input class="input-underline" style="width:60%" :value="row.f_total_gas" readonly>
110
+ </div>
111
+ <div class="col-sm-4">
112
+ <label class="font_normal_body_new">累购金额</label>
113
+ <input class="input-underline" style="width:60%" :value="row.total_fee" readonly>
114
+ </div>
115
+ <div v-if="row.f_collection_type == '按气量' && row.f_meter_type.includes('物联网表')">
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_total_gas" 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_hand_date ? row.f_hand_date :'暂未上报'"
123
+ readonly>
124
+ </div>
125
+ </div>
126
+ <div v-if="row.f_meter_type.includes('物联网表')">
127
+ <div class="col-sm-4">
128
+ <label class="font_normal_body_new">指令上表次数</label>
129
+ <input class="input-underline" style="width:55%" :value="row.f_iot_times" readonly>
130
+ </div>
131
+ <!-- <div class="col-sm-4">-->
132
+ <!-- <label class="font_normal_body_new">表剩余金额</label>-->
133
+ <!-- <input class="input-underline" style="width:55%" :value="row.f_balance_amount" readonly>-->
134
+ <!-- </div>-->
135
+ <div class="col-sm-4">
136
+ <label class="font_normal_body_new">累计上报次数</label>
137
+ <input class="input-underline" style="width:45%" :value="row.f_meteread_number ? row.f_meteread_number : 0"
138
+ readonly>
139
+ </div>
140
+ </div>
141
+
142
+ <div class="col-sm-4" v-if="row.f_meter_type.includes('物联网表') && row.f_collection_type == '按气量'">
143
+ <label class="font_normal_body_new">系统剩余气量</label>
144
+ <input class="input-underline" style="width:55%" :value="row.f_balance_gas" readonly>
145
+ </div>
146
+ <div class="col-sm-4" v-if="row.f_meter_type.includes('物联网表') && row.f_collection_type == '按金额'">
147
+ <label class="font_normal_body_new">系统剩余金额</label>
148
+ <input class="input-underline" style="width:55%" :value="row.f_balance_amount" readonly>
149
+ </div>
150
+ <div class="col-sm-4" v-if="row.f_calculation.includes('表端结算')">
151
+ <label class="font_normal_body_new">表端上报结余</label>
152
+ <input class="input-underline" style="width:55%" :value="row.f_jval" readonly>
153
+ </div>
154
+ <!-- <div class="col-sm-4" v-if="row.f_calculation.includes('表端结算')">-->
155
+ <!-- <label class="font_normal_body_new">未上表金额</label>-->
156
+ <!-- <input class="input-underline" style="width:55%" :value="row.f_not_amount" readonly>-->
157
+ <!-- </div>-->
158
+ <div class="col-sm-4" v-if="!row.f_calculation.includes('表端结算')">
159
+ <label class="font_normal_body_new">累计用气金额</label>
160
+ <input class="input-underline" style="width:45%" :value="row.f_total_usegas_amount" readonly>
161
+ </div>
162
+ <div v-if="row.f_meter_type.includes('物联网表')" class="col-sm-4">
163
+ <label class="font_normal_body_new">阀门状态</label>
164
+ <input class="input-underline" style="width:60%" :value="row.f_valvestate == 0 ? '已开阀' : '已关阀'"
165
+ readonly>
166
+ </div>
167
+ <div v-if="row.f_meter_type.includes('物联网表')" class="col-sm-4">
168
+ <label class="font_normal_body_new">阀控状态</label>
169
+ <input class="input-underline" style="width:50%" :value="row.f_network_valve == '1' ? '手动' : '自动'"
170
+ readonly>
171
+ <!-- <span v-if="row.f_network_valve" @click.stop="openModal"-->
172
+ <!-- class=" glyphicon glyphicon-pencil clickchange" title="修改阀控状态">-->
173
+ <!-- </span>-->
174
+ </div>
175
+ <div v-if="!row.f_meter_type.includes('物联网表')" class="col-sm-4">
176
+ <label class="font_normal_body_new">写卡次数</label>
177
+ <input class="input-underline" style="width:45%" :value="row.f_times" readonly>
178
+ </div>
179
+ <div v-if="!row.f_meter_type.includes('物联网表')" class="col-sm-4">
180
+ <label class="font_normal_body_new">抄表册名</label>
181
+ <input class="input-underline" style="width:45%"
182
+ :value="(row.f_book_code!=null ? '['+row.f_book_code + '] ' : '') + (row.f_book_name!=null ? row.f_book_name:'')"
183
+ readonly>
184
+ </div>
185
+ <div v-if="!row.f_meter_type.includes('物联网表')" class="col-sm-4">
186
+ <label class="font_normal_body_new">抄表册册序号</label>
187
+ <input class="input-underline" style="width:45%" :value="row.f_meter_book_sort" readonly>
188
+ </div>
189
+ </div>
190
+ <div class="auto" style="float: right;">
191
+ <button class="button_clear " @click="cancelmain()">返回</button>
192
+ <button class="button_search" v-show="buttonshow" type="button" @click="goChargeManage">去收费</button>
193
+ <button v-if="row.f_meter_brand.includes('西美')&&row.f_meter_type.includes('物联网表')"
194
+ class="button_search" type="button" @click="clearBarrier">清除障碍
195
+ </button>
196
+ <button v-if="row.f_meter_type.includes('物联网表')"
197
+ class="button_search" type="button" @click="openUser">开户
198
+ </button>
199
+ <button
200
+ v-if="row.f_meter_type.includes('物联网表') && !(row.f_table_state === '停用' && row.f_network_valve === null)"
201
+ class="button_search" type="button" @click="valvecontrol">
202
+ 开关阀
203
+ </button>
204
+ <button v-if="row.f_meter_type.includes('物联网表') && autoValveLimit"
205
+ class="button_search" type="button" @click="zdfk">开关自动阀控
206
+ </button>
207
+ <div
208
+ :class="{'button_shrink_top':criteriaShow,'button_shrink_bottom':!criteriaShow}"
209
+ @click="criteriaShow=!criteriaShow"
210
+ class="button_spacing"
211
+ style="float: right"></div>
212
+ </div>
213
+ </div>
214
+
215
+ <div class="auto row">
216
+ <div class="col-sm-6" style="width:49%;"></div>
217
+ <div class="auto form-group-new">
218
+ <div class="col-sm-6" style="height:auto;width:49%;" v-show="criteriaShow">
219
+ <div class="col-sm-4">
220
+ <label class="font_normal_body_new">气表型号</label>
221
+ <input class="input-underline" style="width:60%" :value="row.f_meter_style" readonly>
222
+ </div>
223
+ <div class="col-sm-4">
224
+ <label class="font_normal_body_new">气表类型</label>
225
+ <input class="input-underline" style="width:60%" :value="row.f_meter_type" readonly>
226
+ </div>
227
+ <div class="col-sm-4">
228
+ <label class="font_normal_body_new">初始底数</label>
229
+ <input class="input-underline" style="width:60%" :value="row.f_initial_base" readonly>
230
+ </div>
231
+ <div class="col-sm-4">
232
+ <label class="font_normal_body_new">左&ensp;右&ensp;表</label>
233
+ <input class="input-underline" style="width:60%" :value="row.f_aroundmeter" readonly>
234
+ </div>
235
+ <div class="col-sm-4">
236
+ <label class="font_normal_body_new">建表日期</label>
237
+ <input class="input-underline" style="width:60%" :value="row.f_input_date.substring(0,7)" readonly>
238
+ </div>
239
+ <div v-if="devices.length > 0" v-show="false" style="height: auto">
240
+ <p style="font-weight: bold;margin: 0">设备信息</p>
241
+ <div class="panel-heading" style="height: 30px">
242
+ <h4 style="display:inline-block;margin-top: auto">设备信息</h4>
243
+ </div>
244
+ <div v-for="device in devices">
245
+
246
+ <form class="form-horizontal">
247
+ <div class="col-sm-4">
248
+ <label class="font_normal_body_new">设备类型</label>
249
+ <input class="input-underline" style="width:60%" :value="device.f_devices_type" readonly>
250
+ </div>
251
+ <div class="col-sm-4">
252
+ <label class="font_normal_body_new">设备品牌</label>
253
+ <input class="input-underline" style="width:60%" :value="device.f_brand" readonly>
254
+ </div>
255
+ <div class="col-sm-4">
256
+ <label class="font_normal_body_new">设备型号</label>
257
+ <input class="input-underline" style="width:60%" :value="device.f_devices_model" readonly>
258
+ </div>
259
+ <div class="col-sm-4">
260
+ <label class="font_normal_body_new">设备数量</label>
261
+ <input class="input-underline" style="width:60%" :value="device.f_devices_num" readonly>
262
+ </div>
263
+ </form>
264
+ </div>
265
+ </div>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ <!--阀控管理弹框-->
270
+ <modal :show.sync="valve">
271
+ <header slot="modal-header" class="modal-header">
272
+ <button type="button" class="close" @click="close()"><span>&times;</span></button>
273
+ <h4 class="modal-title" align="center">阀控管理</h4>
274
+ </header>
275
+ <article slot="modal-body" class="modal-body">
276
+ <div class="form-group" style="padding-left: 8px">
277
+ <label class="font_normal_body">阀控状态</label>
278
+ <div class="col-sm-3">
279
+ <select v-model="selectedOption" class="input_search">
280
+ <option value="">请选择</option>
281
+ <option v-for="option in networkValveOptions" :value="option">
282
+ {{ option }}
283
+ </option>
284
+ </select>
285
+ </div>
286
+ </div>
287
+
288
+ <div class="form-group " style="padding-left: 8px">
289
+ <label class="font_normal_body" :class="operateReason?'':'text-danger'">操作原因</label>
290
+ <textarea class="form-control" style="width:80%" v-model="operateReason" rows="1"
291
+ placeholder="请填写操作原因"></textarea>
292
+ </div>
293
+ </article>
294
+ <footer slot="modal-footer" class="modal-footer">
295
+ <!-- <button type="button" class="button_search btn-ln fr" :disabled="!operateReason" @click='valveoperate(true,0)' title="屏蔽特殊条件下(充值开阀等)触发的自动开阀指令">强制开阀</button>-->
296
+ <button type="button" class="button_search button_spacing" :disabled="!operateReason"
297
+ @click='valveoperate(true,1)'>
298
+ 开阀
299
+ </button>
300
+ <!-- <button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='valveoperate(false, 0)' title="屏蔽特殊条件下(欠费关阀等)触发的自动开阀指令">强制关阀</button>-->
301
+ <button type="button" class="button_spacing" :class="operateReason? 'button_export' : 'button_search' "
302
+ :disabled="!operateReason"
303
+ @click='valveoperate(false, 1)'>关阀
304
+ </button>
305
+ </footer>
306
+ </modal>
307
+
308
+ <modal :show.sync="showModal" v-ref:modal backdrop="false">
309
+ <header slot="modal-header" class="modal-header">
310
+ <h4 class="modal-title">修改阀控状态</h4>
311
+ </header>
312
+ <article slot="modal-body" class="modal-body">
313
+ <validator name='v'>
314
+ <form class="form-horizontal select-overspread">
315
+ <div class="row">
316
+ <div class="form-group">
317
+ <label class=" col-sm-3 control-label">阀控状态:</label>
318
+ <div class="col-sm-4">
319
+ <v-select v-model="f_network_valve"
320
+ placeholder='请选择'
321
+ :value.sync="disableModel.f_network_valve"
322
+ :options='f_network_valve'
323
+ :value-single="true"
324
+ close-on-select clear-button>
325
+ </v-select>
326
+ </div>
327
+ </div>
328
+ <div>
329
+ <label class=" col-sm-3 control-label">操作原因:</label>
330
+ <div class="col-sm-8">
331
+ <textarea class="form-control" v-model="disableModel.f_othereason" rows="3"
332
+ placeholder="多行输入"></textarea>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </form>
337
+ </validator>
338
+ </article>
339
+ <footer slot="modal-footer" class="modal-footer">
340
+ <button type="button" class="button_search" @click='confirm()'>提交</button>
341
+ <button type="button" class="button_clear" @click='close1'>取消</button>
342
+ </footer>
343
+ </modal>
344
+ </div>
345
+
346
+ </template>
347
+
348
+ <script>
349
+ import {HttpResetClass} from 'vue-client'
350
+ import Vue from 'vue'
351
+
352
+ export default {
353
+ title: '基本信息',
354
+ props: {
355
+ row: {
356
+ type: Object,
357
+ default: undefined
358
+ },
359
+ buttonshow: {
360
+ type: Boolean,
361
+ default: true
362
+ }
363
+ },
364
+ data () {
365
+ return {
366
+ selectedOption: '手动',
367
+ delaySeconds: '',
368
+ networkValveOptions: [
369
+ '手动',
370
+ '自动',
371
+ '1小时后自动',
372
+ '3小时后自动',
373
+ '6小时后自动',
374
+ '12小时后自动'
375
+ ],
376
+ showModal: false,
377
+ disableModel: {
378
+ f_othereason: '',
379
+ f_network_valve: ''
380
+ },
381
+ criteriaShow: false,
382
+ devices: [],
383
+ valveLimit: false,
384
+ autoValveLimit: false,
385
+ // 开关阀操作原因
386
+ operateReason: '',
387
+ valve: false,
388
+ showselectncuserinfo: false,
389
+ f_network_valve: this.$appdata.getParam('阀控状态') ? [{
390
+ // label: '全部',
391
+ value: ''
392
+ }, ...this.$appdata.getParam('阀控状态')] : []
393
+ }
394
+ },
395
+ ready () {
396
+ this.getDevice()
397
+ this.valveLimit = this.$login.r.includes('开关阀权限')
398
+ this.autoValveLimit = this.$login.r.includes('自动阀控权限')
399
+ },
400
+ methods: {
401
+ // 发送请求去数据
402
+ async getDevice () {
403
+ if (this.row) {
404
+ let http = new HttpResetClass()
405
+ let condition = `f_userinfo_id = '${this.row.f_userinfo_id}'`
406
+ let getDevices = await http.load('POST', 'rs/sql/sale_GetDevicesInfo', {data: {condition: condition}}, {
407
+ rejectMsg: '获取设备信息出错!!',
408
+ resolveMsg: null
409
+ })
410
+ this.devices = getDevices.data
411
+ }
412
+ },
413
+ openModal () {
414
+ this.showModal = true
415
+ },
416
+ async confirm () {
417
+ let operInfo = {
418
+ f_operator: this.$login.f.name,
419
+ f_operatorid: this.$login.f.id,
420
+ f_orgid: this.$login.f.orgid,
421
+ f_orgname: this.$login.f.orgs,
422
+ f_depid: this.$login.f.depids,
423
+ f_depname: this.$login.f.deps,
424
+ f_network_valve: this.disableModel.f_network_valve,
425
+ f_othereason: this.disableModel.f_othereason
426
+ }
427
+ let userlist = [
428
+ {
429
+ f_userinfo_id: this.row.f_userinfo_id,
430
+ f_user_name: this.row.f_user_name,
431
+ f_userfiles_id: this.row.f_userfiles_id,
432
+ f_table_state: this.row.f_table_state
433
+ }
434
+ ]
435
+ let param = {
436
+ userlist,
437
+ operInfo
438
+ }
439
+ console.log(param)
440
+ await this.$resetpost('rs/logic/importNetworkValve', {data: param}, {
441
+ rejectMsg: '同步失败',
442
+ resolveMsg: '同步成功'
443
+ })
444
+ this.$emit('search-main')
445
+ this.showModal = false
446
+ },
447
+
448
+ close1 () {
449
+ // 关闭对话框的逻辑
450
+ this.showModal = false
451
+ },
452
+ // 返回
453
+ cancelmain () {
454
+ this.$emit('cancel-main')
455
+ },
456
+ clearBarrier () {
457
+ // 地址
458
+ // 127.0.0.1:8445
459
+ // 参数
460
+ let datas = {
461
+ moduleName: 'XiMeiSystem', // 固定值
462
+ content: {
463
+ tradeCode: '3015', // 固定值
464
+ appid: 'yysf', // 固定值
465
+ partner: 'cqsemay_bcts', // 固定值
466
+ version: 'v1', // 固定值
467
+ tasked: this.getuuid(), // 任务id
468
+ notifyUrl: 'http://192.168.2.10:8445/webmeter/rs/logic/XiMeiSystemCallBack', // 固定值
469
+ meterNo: this.row.f_meternumber, // 表号
470
+ signType: ' MD5' // 固定值
471
+ },
472
+ title: '清除异常', // 固定值
473
+ type: '清除异常', // 固定值
474
+ inputtor: this.row.f_operator, // 操作人
475
+ userId: this.row.f_userfiles_id, // 表档案ID
476
+ dataId: null // 操作记录ID
477
+ }
478
+ this.$resetpost('/webmeter/rs/logic/syncSaveSetParamsTemplate', {data: datas}, {
479
+ resolveMsg: `清理成功`,
480
+ rejectMsg: `清理失败`
481
+ }).then(res => {
482
+ })
483
+ },
484
+ getuuid () {
485
+ let uuidA = ''
486
+ var s = []
487
+ var hexDigits = '0123456789abcdef'
488
+ for (var i = 0; i < 36; i++) {
489
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)
490
+ }
491
+ s[14] = '4'
492
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1)
493
+ s[8] = s[13] = s[18] = s[23] = '-'
494
+ uuidA = s.join('')
495
+ return uuidA
496
+ },
497
+ async goChargeManage () {
498
+ await this.$copyText(this.row.f_userinfo_code)
499
+ this.$showAlert(`用户编号已复制到剪切板!`, 'success', 2000)
500
+ if (this.row.parentname === 'charge-manage') {
501
+ this.$emit('cancel-re')
502
+ } else {
503
+ try {
504
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
505
+ } catch (e) {
506
+ }
507
+ try {
508
+ window.parent.dispatchEvent(new CustomEvent('gotoChargeManage', {detail: 'Hello from iframe'}))
509
+ } catch (e) {
510
+ }
511
+ }
512
+ },
513
+ openUser () {
514
+ this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
515
+ if (res === 'confirm') {
516
+ let data = {
517
+ f_userfiles_id: this.row.f_userfiles_id
518
+ }
519
+ this.$resetpost('rs/logic/startup', data)
520
+ }
521
+ })
522
+ },
523
+ // 阀控管理
524
+ zdfk () {
525
+ let data = {
526
+ inputtor: Vue.$login.f.name,
527
+ inputtorid: Vue.$login.f.id,
528
+ meterBrandName: this.row.f_alias,
529
+ f_userfiles_id: this.row.f_userfiles_id
530
+ }
531
+ if (this.row.f_network_valve !== '1') {
532
+ this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
533
+ this.row.f_network_valve = '1'
534
+ } else {
535
+ this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
536
+ this.row.f_network_valve = null
537
+ }
538
+ },
539
+ // 阀控管理
540
+ valvecontrol () {
541
+ if (this.$login.r.includes('开关阀权限')) {
542
+ this.valve = true
543
+ } else {
544
+ this.$showAlert('您没有【开关阀权限】,请联系管理员!!', 'warning', 3000)
545
+ }
546
+ },
547
+ close () {
548
+ this.valve = false
549
+ this.operateReason = ''
550
+ },
551
+ // 开关阀操作
552
+ async valveoperate (oper, value) {
553
+ let msg = oper ? '开阀' : '关阀'
554
+ let valueState = '自动'
555
+ if (value == 0) {
556
+ valueState = '自动'
557
+ } else {
558
+ valueState = '手动'
559
+ }
560
+ let delaySeconds = 0 // 初始化 delaySeconds 变量
561
+ let currentTime = new Date() // 获取当前时间
562
+ let adjustedTime = new Date(currentTime) // 创建一个新的 Date 对象用于计算延迟后的时间
563
+
564
+ let beijingTime = new Date(currentTime.getTime() + 8 * 60 * 60 * 1000)
565
+ let formattedBeijingTime = beijingTime.toISOString().slice(0, 19).replace('T', ' ')
566
+
567
+ let datas = {
568
+ instructType: '阀门控制',
569
+ instructTitle: `手动${msg}`,
570
+ condition: `t_userfiles.f_userfiles_id='${this.row.f_userfiles_id}'`,
571
+ meterBrandName: this.row.f_alias,
572
+ f_instruct_state: '待发送',
573
+ inputtor: Vue.$login.f.name,
574
+ inputtorid: Vue.$login.f.id,
575
+ reasonInfo: this.operateReason,
576
+ meternumberf: this.row.f_meternumber,
577
+ contentData: {isOpen: oper ? 1 : 0},
578
+ auto_adjust_option: this.selectedOption,
579
+ delaySeconds: delaySeconds,
580
+ executeDelayedOperation: true,
581
+ f_timestamp: formattedBeijingTime, // 使用北京时间
582
+ f_userfiles_id: this.row.f_userfiles_id,
583
+ f_userinfo_id: this.row.f_userinfo_id
584
+ }
585
+
586
+ let _this = this
587
+
588
+ // 计算延迟时间
589
+ switch (_this.selectedOption) {
590
+ case '1小时后自动':
591
+ delaySeconds = 3600 // 1小时 = 3600秒
592
+ break
593
+ case '3小时后自动':
594
+ delaySeconds = 10800 // 3小时 = 10800秒
595
+ break
596
+ case '6小时后自动':
597
+ delaySeconds = 21600 // 6小时 = 21600秒
598
+ break
599
+ case '12小时后自动':
600
+ delaySeconds = 43200 // 12小时 = 43200秒
601
+ break
602
+ default:
603
+ delaySeconds = 0
604
+ }
605
+ adjustedTime.setSeconds(adjustedTime.getSeconds() + delaySeconds)
606
+ let adjustedBeijingTime = new Date(adjustedTime.getTime() + 8 * 60 * 60 * 1000)
607
+ let formattedAdjustedBeijingTime = adjustedBeijingTime.toISOString().slice(0, 19).replace('T', ' ')
608
+
609
+ // 更新 datas 对象
610
+ datas.delaySeconds = delaySeconds
611
+ datas.f_current_timestamp = formattedAdjustedBeijingTime // 使用延迟后的北京时间
612
+
613
+ await this.$resetpost('rs/sql/iot_searchInstruct', {data: datas}, {warnMsg: null, resolveMsg: null}).then(res => {
614
+ if (res.data.length === 0) {
615
+ _this.$resetpost('rs/logic/iot_saveInstruct', {data: datas}, {
616
+ warnMsg: `确定要进行${msg}操作吗?`,
617
+ resolveMsg: `${msg}成功`,
618
+ rejectMsg: `${msg}失败`
619
+ }).then(res => {
620
+ _this.valve = false
621
+ _this.operateReason = ''
622
+ if (_this.selectedOption !== '手动') {
623
+ let msg = _this.selectedOption !== '自动' ? `阀控状态将在${_this.selectedOption}后自动调整为【自动】` : `阀控状态自动调整为 【自动】`
624
+ _this.$showAlert(msg, 'info', 3000)
625
+ _this.$resetpost('rs/logic/iot_processDelayedOperations', {data: datas}, {
626
+ warnMsg: null,
627
+ resolveMsg: null
628
+ }).then(res => {
629
+ this.$emit('refresh')
630
+ console.log('延时操作逻辑已执行')
631
+ })
632
+ } else {
633
+ this.$emit('refresh')
634
+ }
635
+ })
636
+ } else {
637
+ this.$showAlert('存在开关阀待发送的指令,系统不生成同样的待发送指令', 'warning', 3000)
638
+ _this.valve = false
639
+ _this.operateReason = ''
640
+ }
641
+ })
642
+ }
643
+
644
+ },
645
+ watch: {
646
+ 'row' () {
647
+ this.getDevice()
648
+ }
649
+
650
+ }
651
+ }
652
+ </script>
653
+ <style scoped lang="less">
654
+ .form-group-new > div {
655
+ height: 3% !important;
656
+
657
+ }
658
+
659
+ .datapanel {
660
+ color: #333;
661
+ background-color: white;
662
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
663
+ padding: 10px 30px 10px 30px;
664
+ height: auto;
665
+ border-radius: 15px;
666
+ }
667
+
668
+ .text-info {
669
+ color: lightskyblue;
670
+ }
671
+
672
+ .text-danger {
673
+ color: red;
674
+ }
675
+
676
+ .input-underline {
677
+ border-bottom: 1px solid #dbdbdb;
678
+ border-top: 0px;
679
+ border-left: 0px;
680
+ border-right: 0px;
681
+ }
682
+
683
+ .font_normal_body_new {
684
+ font-weight: 100;
685
+ float: left;
686
+ margin-top: 0px;
687
+ font-size: 1.4rem !important;
688
+ line-height: 30px;
689
+ }
690
+
691
+ .col-sm-4, .col-sm-8 {
692
+ display: flex;
693
+ align-items: center;
694
+ margin: 7px 0;
695
+
696
+ label {
697
+ line-height: unset;
698
+ margin-bottom: 0;
699
+ }
700
+ }
701
+
702
+ .clickchange:hover {
703
+ color: #3592ef;
704
+ cursor: pointer;
705
+ }
706
+
707
+ </style>
@@ -0,0 +1,411 @@
1
+ <template>
2
+ <partial-view v-ref:pv>
3
+ <div class="panel panel-info auto" style="margin-top: auto">
4
+ <div class="panel-heading" style="height: 35px">
5
+ <h4 style="display:inline-block;margin-top: auto">表具信息</h4>
6
+ </div>
7
+ <div class="auto ">
8
+ <div class="row" v-if="data.f_customer">
9
+ <label class = "col-sm-5 " style="color: brown">团缴编号</label>
10
+ <span class = "col-sm-7" style="color: brown">{{data.f_customer?data.f_customer:'无'}}</span>
11
+ </div>
12
+ <div class="row">
13
+ <label class = "col-sm-5 " >气表类型</label>
14
+ <span class = "col-sm-7">{{data?data.f_meter_type:dafault.f_meter_brand}}</span>
15
+ </div>
16
+ <div class="row">
17
+ <label class = "col-sm-5 " >气表品牌</label>
18
+ <span class = "col-sm-7">{{data?data.f_meter_brand:dafault.f_meter_brand}}</span>
19
+ </div>
20
+ <div class="row">
21
+ <label class = "col-sm-5 " >气表型号</label>
22
+ <span class = "col-sm-7">{{data?data.f_meter_style:dafault.f_meter_style}}</span>
23
+ </div>
24
+ <div class="row" v-if="data.f_meter_type.includes('物联网')">
25
+ <label class = "col-sm-5 " >计费终端</label>
26
+ <span class = "col-sm-7" >{{data?data.f_calculation:dafault.f_calculation}}</span>
27
+ </div>
28
+ <div class="row" v-if="data.f_meter_type.includes('物联网')">
29
+ <label class = "col-sm-5 " >结算方式</label>
30
+ <span class = "col-sm-7" >{{data?data.f_collection_type:dafault.f_collection_type}}</span>
31
+ </div>
32
+ <div class="row">
33
+ <label class="col-sm-5" style="color: brown">表具状态</label>
34
+ <span class="col-sm-7" style="color: brown">{{data?data.f_table_state:dafault.f_table_state}}</span>
35
+ </div>
36
+ <div class="row" v-if="data.f_meter_type.includes('物联网') && data.f_collection_type === '按金额'">
37
+ <label class = "col-sm-5 " style="color: brown">系统余额</label>
38
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_balance_amount:dafault.f_balance_amount}}</span>
39
+ </div>
40
+ <div class="row" v-if="data.f_meter_type.includes('物联网') && data.f_collection_type === '按气量'">
41
+ <label class = "col-sm-5 " style="color: brown">系统余量</label>
42
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_balance_gas:dafault.f_balance_gas}}</span>
43
+ </div>
44
+ <div class="row" v-if="data.f_calculation.includes('表端结算') && data.f_meter_type.includes('物联网')">
45
+ <label class = "col-sm-5 " style="color: brown">表端上报余额</label>
46
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_jval:dafault.f_jval}}</span>
47
+ </div>
48
+ <div class="row">
49
+ <label class = "col-sm-5 " >初始表底数</label>
50
+ <span class = "col-sm-7" >{{data?data.f_initial_base:dafault.f_initial_base}}</span>
51
+ </div>
52
+ <div class="row">
53
+ <label class = "col-sm-5 " >表当前底数</label>
54
+ <span class = "col-sm-7" >{{data?data.f_meter_base:dafault.f_meter_base}}</span>
55
+ </div>
56
+ <div class="row" v-show="data.f_times">
57
+ <label class = "col-sm-5 " >写卡次数</label>
58
+ <span class = "col-sm-7" >{{data?data.f_times:dafault.f_times}}</span>
59
+ </div>
60
+ <div class="row" v-if="data.f_meter_type.includes('物联网')">
61
+ <label class = "col-sm-5 ">指令上表次数</label>
62
+ <span class = "col-sm-7" >{{data?data.f_iot_times:dafault.f_iot_times}}</span>
63
+ </div>
64
+ <div class="row" v-if="data.f_meter_type.includes('物联网')">
65
+ <label class = "col-sm-5 ">表累购金额</label>
66
+ <span class = "col-sm-7" >{{data?data.f_total_fee:dafault.f_total_fee}}
67
+ <span v-if="data && this.$login.r.includes('收费页面修改累购')" @click.stop="changeMeterFee"
68
+ class="glyphicon glyphicon-pencil click-change" title="修改累购金额">
69
+ </span>
70
+ </span>
71
+ </div>
72
+ <div class="row" v-if="data.f_meter_type.includes('物联网')">
73
+ <label class = "col-sm-5 ">户累购金额</label>
74
+ <span class = "col-sm-7" >{{data?data.f_total_fee_all:dafault.f_total_fee_all}}</span>
75
+ </div>
76
+ <div class="row" v-if="(data.f_meter_type === '机表' || data.f_meter_type === '物联网表') && data.f_deduction_gas > 0">
77
+ <label class = "col-sm-5 " >剩余抵扣量</label>
78
+ <span class = "col-sm-7" >{{data?data.f_deduction_gas:dafault.f_deduction_gas}}</span>
79
+ </div>
80
+ <div class="row" v-if="data.f_meter_type.includes('卡表')">
81
+ <label class = "col-sm-5 " style="color: brown" >户累购气量</label>
82
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas_all:dafault.f_total_gas_all}}</span>
83
+ </div>
84
+ <div class="row" v-if="(data.f_meter_brand.includes('数码表'))">
85
+ <label class = "col-sm-5 " style="color: brown" >累购气量</label>
86
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas:dafault.f_total_gas}}</span>
87
+ </div>
88
+ <div class="row" v-if="data.f_meter_type.includes('卡表') && data.f_meter_type === '气量卡表'">
89
+ <label class = "col-sm-5 " style="color: brown" >累购气量</label>
90
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas:dafault.f_total_gas}}
91
+ <span v-if="data && this.$login.r.includes('收费页面修改累购')" @click.stop="changeMeterGas"
92
+ class="glyphicon glyphicon-pencil click-change" title="修改累购气量">
93
+ </span>
94
+ </span>
95
+ </div>
96
+ <div class="row" v-if="data.f_meter_type.includes('卡表')">
97
+ <label class = "col-sm-5 " style="color: brown">累购金额</label>
98
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_total_fee:dafault.f_total_fee}}
99
+ <span v-if="data && this.$login.r.includes('收费页面修改累购')" @click.stop="changeMeterFee"
100
+ class="glyphicon glyphicon-pencil click-change" title="修改累购金额">
101
+ </span>
102
+ </span>
103
+ </div>
104
+ <div class="row" v-if="data.f_meter_type.includes('卡表')">
105
+ <label class = "col-sm-5 " style="color: brown">累购写卡金额</label>
106
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_write_totalfee:dafault.f_total_fee}}</span>
107
+ </div>
108
+ <div class="row">
109
+ <label class = "col-sm-5 " >气表表号</label>
110
+ <span class = "col-sm-7">{{data?data.f_meternumber:dafault.f_meternumber}}</span>
111
+ </div>
112
+ <div class="row" v-if="data.f_meter_type.includes('卡表') || (data.f_meter_type.includes('物联网表') && data.f_hascard==='是')">
113
+ <label class = "col-sm-5 " >卡&emsp;&emsp;号</label>
114
+ <span class = "col-sm-7">{{data?data.f_card_id:dafault.f_card_id}}</span>
115
+ </div>
116
+ <div class="row">
117
+ <label class = "col-sm-5 " >表封号</label>
118
+ <span class="col-sm-7">{{data?data.f_metertitles:dafault.f_metertitles}}
119
+ <span v-if="data" @click.stop="changemetertitles"
120
+ class="glyphicon glyphicon-pencil click-change" title="修正表封号"></span>
121
+ </span>
122
+ </div>
123
+ <!-- <div class="row" v-if="data.f_meter_type.includes('卡表') || data.f_meter_type.includes('物联网表') && data.f_hascard==='是'">-->
124
+ <!-- <label class = "col-sm-5 " >写卡次数</label>-->
125
+ <!-- <span class = "col-sm-7">{{data?data.f_times:dafault.f_times}}</span>-->
126
+ <!-- </div>-->
127
+ <div class="row">
128
+ <label class = "col-sm-5 " >用气性质</label>
129
+ <span class = "col-sm-7">{{data?data.f_gasproperties:dafault.f_gasproperties}}</span>
130
+ </div>
131
+ <div class="row">
132
+ <label class = "col-sm-5 " >气价名称</label>
133
+ <span class = "col-sm-7">{{data?data.f_price_name:dafault.f_price_name}}</span>
134
+ </div>
135
+ <!--<div class="row" v-if="data.f_balance < 0">-->
136
+ <!--<label class = "col-sm-5 " >账户欠费</label>-->
137
+ <!--<span class = "col-sm-7" title="不包含违约金">{{data?0 - (data.f_balance - 0):dafault.f_balance}}</span>-->
138
+ <!--</div>-->
139
+ <!--<div class="row" v-else>-->
140
+ <!--<label class = "col-sm-5 " >账户余额</label>-->
141
+ <!--<span class = "col-sm-7">{{data?data.f_balance:dafault.f_balance}}</span>-->
142
+ <!--</div>-->
143
+ <div class="row" v-if="data.f_remanent_money > 0">
144
+ <label class = "col-sm-5 " >应补金额</label>
145
+ <span class = "col-sm-7">{{data?data.f_remanent_money:dafault.f_remanent_money}}</span>
146
+ </div>
147
+ <div class="row" v-if="data.f_remanent_gas > 0">
148
+ <label class = "col-sm-5 " >应补气量</label>
149
+ <span class = "col-sm-7">{{data?data.f_remanent_gas:dafault.f_remanent_gas}}</span>
150
+ </div>
151
+ <div class="row">
152
+ <label class = "col-sm-5 " >表&emsp;&emsp;向</label>
153
+ <span class = "col-sm-7">{{data?data.f_aroundmeter:dafault.f_hand_date}}</span>
154
+ </div>
155
+ <div class="row" v-if="!data.f_meter_type.includes('物联网')">
156
+ <label class = "col-sm-5 " >抄表册名</label>
157
+ <span class = "col-sm-7">{{data?'['+data.f_book_code + '] '+ (data.f_book_name ? data.f_book_name:''):dafault.f_book_name}}</span>
158
+ </div>
159
+ <div class="row" v-if="!data.f_meter_type.includes('物联网')">
160
+ <label class = "col-sm-5 " >抄表册册序号</label>
161
+ <span class = "col-sm-7">{{data?data.f_meter_book_sort:dafault.f_meter_book_sort}}</span>
162
+ </div>
163
+ <div class="row">
164
+ <label class = "col-sm-5 " >安装位置</label>
165
+ <span class = "col-sm-7">{{data?data.f_position:dafault.f_position}}</span>
166
+ </div>
167
+ <div class="row">
168
+ <label class = "col-sm-5 " >置换人员</label>
169
+ <span class = "col-sm-7">{{data?data.f_gas_person:dafault.f_hand_date}}</span>
170
+ </div>
171
+ <div class="row">
172
+ <label class = "col-sm-5 " >置换时间</label>
173
+ <span class = "col-sm-7">{{data?data.f_gas_date.substring(0,7):dafault.f_hand_date}}</span>
174
+ </div>
175
+ <div class="row" v-if="!data.f_meter_type.includes('物联网')">
176
+ <label class = "col-sm-5 " >抄表员</label>
177
+ <span class = "col-sm-7">{{data?data.f_inputtor:dafault.f_inputtor}}</span>
178
+ </div>
179
+ <div class="row" v-if="!data.f_meter_type.includes('物联网')">
180
+ <label class = "col-sm-5 " >上次抄表日</label>
181
+ <span class = "col-sm-7">{{data?data.f_hand_date.substring(0,7):dafault.f_hand_date}}</span>
182
+ </div>
183
+ <div class="row">
184
+ <label class = "col-sm-5 " >建档日期</label>
185
+ <span class = "col-sm-7">{{data?data.f_input_date.substring(0,7):dafault.f_input_date}}</span>
186
+ </div>
187
+ <div class="row">
188
+ <label class = "col-sm-5 " >备&emsp;&emsp;注</label>
189
+ <span class = "col-sm-7">{{data?data.comments:dafault.comments}}</span>
190
+ </div>
191
+ <modal v-if="showselectncuserfile" :show.sync="showselectncuserfile" width="40%" title="修正表封号"
192
+ v-ref:modal large backdrop="false">
193
+ <article slot="modal-body" class="modal-body">
194
+ <div class="form-horizontal">
195
+ <div class="row">
196
+ <div class="col-sm-12 form-group">
197
+ <label class="font_normal_body">旧表封号</label>
198
+ <input disabled readonly type="text" style="width:80%" class="input_search"
199
+ v-model="data.f_metertitles" placeholder='旧表封号'>
200
+ </div>
201
+ </div>
202
+ <div class="row">
203
+ <div class="col-sm-12 form-group">
204
+ <label class="font_normal_body">新表封号</label>
205
+ <input type="text" style="width:80%" class="input_search" v-model="newmetertitles"
206
+ placeholder='新表封号'>
207
+ </div>
208
+ </div>
209
+ </div>
210
+ </article>
211
+ <footer slot="modal-footer" class="modal-footer">
212
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile('表封号')">确定</button>
213
+ <button type="button" class="button_clear" @click='close'>取消</button>
214
+ </footer>
215
+ </modal>
216
+ <modal v-if="showSelectUserFee" :show.sync="showSelectUserFee" width="40%" title="修正表累购金额"
217
+ v-ref:modal large backdrop="false">
218
+ <article slot="modal-body" class="modal-body">
219
+ <div class="form-horizontal">
220
+ <div class="row">
221
+ <div class="col-sm-12 form-group">
222
+ <label class="font_normal_body">旧表累购金额</label>
223
+ <input readonly type="text" style="width:80%" class="input_search"
224
+ v-model="data.f_total_fee" placeholder='旧表累购金额'>
225
+ </div>
226
+ </div>
227
+ <div class="row">
228
+ <div class="col-sm-12 form-group">
229
+ <label class="font_normal_body">旧表累购金额</label>
230
+ <input type="text" style="width:80%" class="input_search" v-model="newMeterFee"
231
+ placeholder='旧表累购金额'>
232
+ </div>
233
+ </div>
234
+ </div>
235
+ </article>
236
+ <footer slot="modal-footer" class="modal-footer">
237
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile('累购金额')">确定</button>
238
+ <button type="button" class="button_clear" @click='close'>取消</button>
239
+ </footer>
240
+ </modal>
241
+ <modal v-if="showSelectUserGas" :show.sync="showSelectUserGas" width="40%" title="修正表累购气量"
242
+ v-ref:modal large backdrop="false">
243
+ <article slot="modal-body" class="modal-body">
244
+ <div class="form-horizontal">
245
+ <div class="row">
246
+ <div class="col-sm-12 form-group">
247
+ <label class="font_normal_body">旧表累购气量</label>
248
+ <input readonly type="text" style="width:80%" class="input_search"
249
+ v-model="data.f_total_gas" placeholder='旧表累购气量'>
250
+ </div>
251
+ </div>
252
+ <div class="row">
253
+ <div class="col-sm-12 form-group">
254
+ <label class="font_normal_body">新表累购气量</label>
255
+ <input type="text" style="width:80%" class="input_search" v-model="newMeterGas"
256
+ placeholder='新表累购气量'>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ </article>
261
+ <footer slot="modal-footer" class="modal-footer">
262
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile('累购气量')">确定</button>
263
+ <button type="button" class="button_clear" @click='close'>取消</button>
264
+ </footer>
265
+ </modal>
266
+ </div>
267
+ </div>
268
+ </partial-view>
269
+ </template>
270
+
271
+ <script>
272
+ /* 用户档案相关信息组件 */
273
+ export default {
274
+ ready () {
275
+ console.log('看看userinfo里面接收的data数据', this.data)
276
+ },
277
+ title: '客户基本信息',
278
+ data () {
279
+ return {
280
+ dafault: {
281
+ f_total_gas_all: 0,
282
+ f_total_fee_all: 0,
283
+ f_balance_amount: 0,
284
+ f_balance_gas: 0,
285
+ f_initial_base: 0,
286
+ f_meter_base: 0,
287
+ f_deduction_gas: 0,
288
+ f_total_gas: 0,
289
+ f_total_fee: 0,
290
+ f_card_id: '*****',
291
+ f_times: 0,
292
+ f_iot_times: 0,
293
+ f_meternumber: 0,
294
+ f_metertitles: '',
295
+ f_gasproperties: '****',
296
+ f_price_name: '****',
297
+ f_meter_brand: '****',
298
+ f_balance: 0,
299
+ f_user_type: '**',
300
+ f_remanent_gas: 0,
301
+ f_position: '****',
302
+ f_inputtor: '****',
303
+ f_jval: 0,
304
+ f_table_state: 0
305
+ },
306
+ model: null,
307
+ showselectncuserfile: false,
308
+ showSelectUserFee: false,
309
+ showSelectUserGas: false,
310
+ newmetertitles: '',
311
+ newMeterGas: 0,
312
+ newMeterFee: 0
313
+ }
314
+ },
315
+ props: ['data'],
316
+ methods: {
317
+ dealmsg (val) {
318
+ this.$dispatch('deal-msg', val)
319
+ },
320
+ changemetertitles () {
321
+ // 修正表封号
322
+ this.showselectncuserfile = true
323
+ this.newmetertitles = 0
324
+ },
325
+ changeMeterGas () {
326
+ // 修改累购气量
327
+ this.showSelectUserGas = true
328
+ },
329
+ changeMeterFee () {
330
+ // 修改累购金额
331
+ this.showSelectUserFee = true
332
+ },
333
+ async modifyUserFile (type) {
334
+ let param = {
335
+ f_userinfo_id: this.data.f_userinfo_id,
336
+ f_user_id: this.data.f_user_id,
337
+ f_userfiles_id: this.data.f_userfiles_id,
338
+ f_operator: this.$login.f.name,
339
+ f_operatorid: this.$login.f.id,
340
+ f_orgid: this.$login.f.orgid,
341
+ f_orgname: this.$login.f.orgs,
342
+ f_depid: this.$login.f.depids,
343
+ f_depname: this.$login.f.deps
344
+ }
345
+ if (type == '表封号') {
346
+ param.new_metertitles = this.newmetertitles
347
+ } else if (type == '累购气量') {
348
+ param.new_metergas = this.newMeterGas
349
+ } else if (type == '累购金额') {
350
+ param.new_meterfee = this.newMeterFee
351
+ }
352
+ await this.$resetpost('/rs/logic/changeuserfilesmetertitles', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
353
+ this.data.f_metertitles = this.newmetertitles
354
+ if (type == '表封号') {
355
+ this.data.f_metertitles = this.newmetertitles
356
+ } else if (type == '累购气量') {
357
+ this.data.f_total_gas = this.newMeterGas
358
+ } else if (type == '累购金额') {
359
+ this.data.f_total_fee = this.newMeterFee
360
+ }
361
+ this.$parent.$parent.close()
362
+ this.$parent.$parent.clean()
363
+ this.$parent.$parent.$refs.list.searchNoData()
364
+ this.close()
365
+ },
366
+ close () {
367
+ this.showselectncuserfile = false
368
+ this.showSelectUserGas = false
369
+ this.showSelectUserFee = false
370
+ this.newmetertitles = 0
371
+ this.newMeterGas = 0
372
+ this.newMeterFee = 0
373
+ }
374
+ },
375
+ watch: {
376
+ 'data' (val) {
377
+ console.log('val========', val)
378
+ }
379
+ },
380
+
381
+ }
382
+ </script>
383
+ <style lang="less">
384
+ .row {
385
+ /*border-bottom:1px solid #F2F6FA;*/
386
+ margin-left: 0;
387
+ margin-right: 0;
388
+ }
389
+ .click-change:hover {
390
+ color: #3592ef;
391
+ cursor: pointer;
392
+ }
393
+ // . {
394
+ // height: 23px;
395
+ // border-right: 1px solid #F2F6FA;
396
+ // margin-bottom: 0;
397
+ // text-align: left;
398
+ // }
399
+ // #address {
400
+ // border-left: 1px solid #F2F6FA;
401
+ // }
402
+ // #user-info {
403
+ // padding:6px;
404
+ // span {
405
+ // padding-left: 5px;
406
+ // }
407
+ // }
408
+ // #address1 {
409
+ // border-right: 0;
410
+ // }
411
+ </style>
@@ -5,4 +5,8 @@ export default function () {
5
5
  Vue.component('file-user-device-info', (resolve) => { require(['./UserDeviceInfoTest.vue'], resolve) })
6
6
  // 其他收费欠费收缴
7
7
  Vue.component('other-charge-bypay', (resolve) => { require(['./OtherChargeByPay'], resolve) })
8
+ // 当前选择用户的表具基本信息
9
+ Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
10
+ // 360页面用户详情页
11
+ Vue.component('user-base-info-new', (resolve) => { require(['./UserBaseInfoNew'], resolve) })
8
12
  }
@@ -210,7 +210,7 @@
210
210
  cancelreason: '',
211
211
  cancelid: '',
212
212
  f_userfiles_id: '',
213
- model: new PagedList('rs/sql/insturctDetailQuery', 30),
213
+ model: new PagedList('rs/sql/insturctDetailQuery', 30, {f_userfiles_id: this.row.f_userfiles_id}),
214
214
  // model: null,
215
215
  row: null,
216
216
  searchshow: false,
@@ -316,7 +316,7 @@
316
316
  <div class="col-sm-4 form-group"
317
317
  v-show="(formconfig && formconfig.f_project_money && formconfig.f_project_money.required) || !onlyshowmust">
318
318
  <label for="f_project_money" class="font_normal_body">&ensp;{{getConfigLabelName('f_project_money','抵扣金额')}}</label>
319
- <input type="text" v-model="baseinfo.base.f_project_money" disabled class="input_search" style="width:60%">
319
+ <input type="text" v-model="baseinfo.base.f_project_money" class="input_search" style="width:60%">
320
320
  </div>
321
321
 
322
322
  </div>
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/jinbin/sale'
5
+ import FilialeSale from './filiale/shimen/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Oct 30 09:57:55 CST 2024
2
- gradle.version=5.2.1
File without changes