sale-client 3.6.360 → 3.6.361

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.360",
3
+ "version": "3.6.361",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -161,9 +161,9 @@
161
161
  <div v-if="row.f_meter_type.includes('物联网表')" class="col-sm-4">
162
162
  <label class="font_normal_body_new">阀控状态</label>
163
163
  <input class="input-underline" style="width:50%" :value="row.f_network_valve == '1' ? '手动' : '自动'" readonly>
164
- <span v-if="row.f_network_valve" @click.stop="openModal"
165
- class=" glyphicon glyphicon-pencil clickchange" title="修改阀控状态">
166
- </span>
164
+ <!-- <span v-if="row.f_network_valve" @click.stop="openModal"-->
165
+ <!-- class=" glyphicon glyphicon-pencil clickchange" title="修改阀控状态">-->
166
+ <!-- </span>-->
167
167
  </div>
168
168
  <div v-if="!row.f_meter_type.includes('物联网表')" class="col-sm-4" >
169
169
  <label class="font_normal_body_new">写卡次数</label>
@@ -189,9 +189,10 @@
189
189
  <button v-if="row.f_meter_type.includes('物联网表')"
190
190
  class="button_search" type="button" @click="openUser">开户
191
191
  </button>
192
- <button v-if="row.f_meter_type.includes('物联网表') && valveLimit && (row.f_network_valve === '1' || (row.f_table_state === '停用' && row.f_network_valve === null))"
192
+ <button v-if="row.f_meter_type.includes('物联网表') && !(row.f_table_state === '停用' && row.f_network_valve === null)"
193
193
  class="button_search" type="button" @click="valvecontrol">
194
194
  开关阀
195
+ </button>
195
196
  <button v-if="row.f_meter_type.includes('物联网表') && autoValveLimit"
196
197
  class="button_search" type="button" @click="zdfk">开关自动阀控
197
198
  </button>
@@ -283,9 +284,9 @@
283
284
  </div>
284
285
  </article>
285
286
  <footer slot="modal-footer" class="modal-footer">
286
- <button type="button" class="button_search btn-ln fr" :disabled="!operateReason" @click='valveoperate(true,0)' title="屏蔽特殊条件下(充值开阀等)触发的自动开阀指令">强制开阀</button>
287
+ <!-- <button type="button" class="button_search btn-ln fr" :disabled="!operateReason" @click='valveoperate(true,0)' title="屏蔽特殊条件下(充值开阀等)触发的自动开阀指令">强制开阀</button>-->
287
288
  <button type="button" class="button_search btn-ln fr" :disabled="!operateReason" @click='valveoperate(true,1)'>开阀</button>
288
- <button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='valveoperate(false, 0)' title="屏蔽特殊条件下(欠费关阀等)触发的自动开阀指令">强制关阀</button>
289
+ <!-- <button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='valveoperate(false, 0)' title="屏蔽特殊条件下(欠费关阀等)触发的自动开阀指令">强制关阀</button>-->
289
290
  <button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='valveoperate(false, 1)'>关阀</button>
290
291
  </footer>
291
292
  </modal>
@@ -63,7 +63,11 @@
63
63
  </div>
64
64
  <div class="row" v-if="data.f_meter_type.includes('物联网')">
65
65
  <label class = "col-sm-5 ">表累购金额</label>
66
- <span class = "col-sm-7" >{{data?data.f_total_fee:dafault.f_total_fee}}</span>
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>
67
71
  </div>
68
72
  <div class="row" v-if="data.f_meter_type.includes('物联网')">
69
73
  <label class = "col-sm-5 ">户累购金额</label>
@@ -83,11 +87,19 @@
83
87
  </div>
84
88
  <div class="row" v-if="data.f_meter_type.includes('卡表') && data.f_meter_type === '气量卡表'">
85
89
  <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>
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>
87
95
  </div>
88
96
  <div class="row" v-if="data.f_meter_type.includes('卡表')">
89
97
  <label class = "col-sm-5 " style="color: brown">累购金额</label>
90
- <span class = "col-sm-7" style="color: brown">{{data?data.f_total_fee:dafault.f_total_fee}}</span>
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>
91
103
  </div>
92
104
  <div class="row" v-if="data.f_meter_type.includes('卡表')">
93
105
  <label class = "col-sm-5 " style="color: brown">累购写卡金额</label>
@@ -197,7 +209,57 @@
197
209
  </div>
198
210
  </article>
199
211
  <footer slot="modal-footer" class="modal-footer">
200
- <button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile">确定</button>
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>
201
263
  <button type="button" class="button_clear" @click='close'>取消</button>
202
264
  </footer>
203
265
  </modal>
@@ -207,7 +269,7 @@
207
269
  </template>
208
270
 
209
271
  <script>
210
- /*用户档案相关信息组件*/
272
+ /* 用户档案相关信息组件 */
211
273
  export default {
212
274
  ready () {
213
275
  console.log('看看userinfo里面接收的data数据', this.data)
@@ -243,7 +305,11 @@
243
305
  },
244
306
  model: null,
245
307
  showselectncuserfile: false,
246
- newmetertitles: ''
308
+ showSelectUserFee: false,
309
+ showSelectUserGas: false,
310
+ newmetertitles: '',
311
+ newMeterGas: 0,
312
+ newMeterFee: 0
247
313
  }
248
314
  },
249
315
  props: ['data'],
@@ -256,9 +322,16 @@
256
322
  this.showselectncuserfile = true
257
323
  this.newmetertitles = 0
258
324
  },
259
- async modifyUserFile () {
325
+ changeMeterGas () {
326
+ // 修改累购气量
327
+ this.showSelectUserGas = true
328
+ },
329
+ changeMeterFee () {
330
+ // 修改累购金额
331
+ this.showSelectUserFee = true
332
+ },
333
+ async modifyUserFile (type) {
260
334
  let param = {
261
- new_metertitles: this.newmetertitles,
262
335
  f_userinfo_id: this.data.f_userinfo_id,
263
336
  f_user_id: this.data.f_user_id,
264
337
  f_userfiles_id: this.data.f_userfiles_id,
@@ -269,8 +342,22 @@
269
342
  f_depid: this.$login.f.depids,
270
343
  f_depname: this.$login.f.deps
271
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
+ }
272
352
  await this.$resetpost('/rs/logic/changeuserfilesmetertitles', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
273
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
+ }
274
361
  this.$parent.$parent.close()
275
362
  this.$parent.$parent.clean()
276
363
  this.$parent.$parent.$refs.list.searchNoData()
@@ -278,7 +365,11 @@
278
365
  },
279
366
  close () {
280
367
  this.showselectncuserfile = false
368
+ this.showSelectUserGas = false
369
+ this.showSelectUserFee = false
281
370
  this.newmetertitles = 0
371
+ this.newMeterGas = 0
372
+ this.newMeterFee = 0
282
373
  }
283
374
  },
284
375
  watch: {
@@ -176,6 +176,7 @@ export default {
176
176
  f_handlingtype: this.model.f_handlingtype,
177
177
  toRepair: '一级派单',
178
178
  f_meetunit: this.model.f_meetunit,
179
+ f_remarks: this.model.f_remarks,
179
180
  f_error_msg: this.model.f_error_msg,
180
181
  f_error_type: this.model.f_error_type,
181
182
  f_reciever: this.model.f_reciever,
@@ -44,12 +44,15 @@
44
44
  </div>
45
45
  </div>
46
46
  <div class="row" v-show="$parent.$parent.criteriaShow">
47
- <res-select-group :show-component="$parent.$parent.resShow"
48
- :initRes="$parent.$parent.initRes"
49
- :style="$parent.$parent.styles"
50
- :cascade=true @re-res="$parent.$parent.getRes"
51
- v-ref:sel>
52
- </res-select-group>
47
+ <div :class="$parent.$parent.styles" >
48
+ <label class="font_normal_body">组织机构</label>
49
+ <res-select :initresid='$parent.$parent.curorgid'
50
+ @res-select="$parent.$parent.getorg"
51
+ class="select select_list"
52
+ restype='organization'
53
+ style="width: 60%">
54
+ </res-select>
55
+ </div>
53
56
  <div :class="$parent.$parent.styles">
54
57
  <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
55
58
  <input style="width:60%" type="text" class="input_search"
@@ -235,9 +238,12 @@
235
238
  </template>
236
239
 
237
240
  <script>
238
- import {HttpResetClass, PagedList} from 'vue-client'
241
+ import { PagedList } from 'vue-client'
242
+ import * as Util from '../../Util'
239
243
 
240
244
  let readySomething = async function (self) {
245
+ self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
246
+ self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
241
247
  await self.$LoadParams.loadParam()
242
248
  await self.initQueryParam()
243
249
  this.search()
@@ -253,7 +259,6 @@ export default {
253
259
  startDate: '',
254
260
  endDate: '',
255
261
  f_error_type: '',
256
-
257
262
  meterBrand: [],
258
263
  gasProperties: [{label: '全部', value: ''}],
259
264
  showDetail: false,
@@ -261,14 +266,10 @@ export default {
261
266
  criteriaShow: false,
262
267
  GetErrorLevel: [],
263
268
  GetErrorType: [],
264
- resShow: ['company'],
265
- initRes: {
266
- org: [this.$login.f.orgid],
267
- dep: [],
268
- user: []
269
- },
269
+ // 公司下拉
270
+ curorgid: [this.$login.f.orgid],
270
271
  condition: '1=1',
271
- orgConditionStr: ``
272
+ f_orgid: ''
272
273
  }
273
274
  },
274
275
  ready () {
@@ -295,11 +296,9 @@ export default {
295
296
  cancel () {
296
297
  this.showDetail = false
297
298
  },
298
- getRes (condition, obj) {
299
- console.log('组织机构返回', condition, obj)
300
- this.orgConditionStr = condition
301
- this.orgname = obj.orgnames[0]
302
- this.depname = obj.depnames[0]
299
+ getorg (val) {
300
+ this.f_orgid = this.$login.convertToIn(val)
301
+ this.$parent.f_orgid = this.f_orgid
303
302
  },
304
303
  initQueryParam () {
305
304
  let arr = []
@@ -316,20 +315,27 @@ export default {
316
315
  hidden () {
317
316
  this.criteriaShow = !this.criteriaShow
318
317
  },
319
- search(){
318
+ search () {
320
319
  this.$refs.paged.$refs.cri.search()
321
320
  },
322
321
  selfSearch (args) {
323
322
  this.startDate = this.$refs.paged.$refs.cri.model.startDate
324
323
  this.endDate = this.$refs.paged.$refs.cri.model.endDate
325
324
  this.f_error_type = this.$refs.paged.$refs.cri.model.f_error_type
326
- this.condition = this.$refs.paged.$refs.cri.condition + this.orgConditionStr
327
- args.condition = this.condition
325
+ if (!this.f_orgid) {
326
+ this.getorg([this.$login.f.orgid])
327
+ }
328
+ if (this.f_orgid) {
329
+ args.condition = `f_orgid in ${this.f_orgid} and ${args.condition}`
330
+ }
331
+ this.condition = args.condition
328
332
  this.model.search(args.condition, args.model)
329
333
  this.$dispatch('search')
330
334
  },
331
335
  clearmsg () {
332
- this.$refs.paged.$refs.cri.model = {}
336
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
337
+ this.$refs.paged.$refs.cri.model[key] = []
338
+ })
333
339
  }
334
340
  },
335
341
  watch: {},
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="span">
3
- <validator name='v' style="overflow-y: auto">
4
- <form novalidate class="form-horizontal select-overspread" @valid="confirmEditcheck = true" @invalid="confirmEditcheck = false">
3
+ <validator name='v' style="overflow-y: auto" @valid="confirmEditcheck = true" @invalid="confirmEditcheck = false">
4
+ <form novalidate class="form-horizontal select-overspread" >
5
5
  <div class="row auto">
6
6
  <div style="margin-top: 2%">
7
7
  <img style="margin-top: -2px;margin-left: 2px" src="./../../../../static/images/lefticon/矩形1183.png">
@@ -161,9 +161,9 @@
161
161
  <div v-if="row.f_meter_type.includes('物联网表')" class="col-sm-4">
162
162
  <label class="font_normal_body_new">阀控状态</label>
163
163
  <input class="input-underline" style="width:50%" :value="row.f_network_valve == '1' ? '手动' : '自动'" readonly>
164
- <span v-if="row.f_network_valve" @click.stop="openModal"
165
- class=" glyphicon glyphicon-pencil clickchange" title="修改阀控状态">
166
- </span>
164
+ <!-- <span v-if="row.f_network_valve" @click.stop="openModal"-->
165
+ <!-- class=" glyphicon glyphicon-pencil clickchange" title="修改阀控状态">-->
166
+ <!-- </span>-->
167
167
  </div>
168
168
  <div v-if="!row.f_meter_type.includes('物联网表')" class="col-sm-4" >
169
169
  <label class="font_normal_body_new">写卡次数</label>
@@ -189,17 +189,18 @@
189
189
  <button v-if="row.f_meter_type.includes('物联网表')"
190
190
  class="button_search" type="button" @click="openUser">开户
191
191
  </button>
192
- <button v-if="row.f_meter_type.includes('物联网表') && valveLimit && (row.f_network_valve === '1' || (row.f_table_state === '停用' && row.f_network_valve === null))"
192
+ <button v-if="row.f_meter_type.includes('物联网表') && !(row.f_table_state === '停用' && row.f_network_valve === null)"
193
193
  class="button_search" type="button" @click="valvecontrol">
194
194
  开关阀
195
- <button v-if="row.f_meter_type.includes('物联网表') && autoValveLimit"
196
- class="button_search" type="button" @click="zdfk">开关自动阀控
197
- </button>
198
- <div
199
- :class="{'button_shrink_top':criteriaShow,'button_shrink_bottom':!criteriaShow}"
200
- @click="criteriaShow=!criteriaShow"
201
- class="button_spacing"
202
- style="float: right"></div>
195
+ </button>
196
+ <button v-if="row.f_meter_type.includes('物联网表') && autoValveLimit"
197
+ class="button_search" type="button" @click="zdfk">开关自动阀控
198
+ </button>
199
+ <div
200
+ :class="{'button_shrink_top':criteriaShow,'button_shrink_bottom':!criteriaShow}"
201
+ @click="criteriaShow=!criteriaShow"
202
+ class="button_spacing"
203
+ style="float: right"></div>
203
204
  </div>
204
205
  </div>
205
206
 
@@ -283,9 +284,9 @@
283
284
  </div>
284
285
  </article>
285
286
  <footer slot="modal-footer" class="modal-footer">
286
- <!-- <button type="button" class="button_search btn-ln fr" :disabled="!operateReason" @click='valveoperate(true,0)' title="屏蔽特殊条件下(充值开阀等)触发的自动开阀指令">强制开阀</button>-->
287
+ <!-- <button type="button" class="button_search btn-ln fr" :disabled="!operateReason" @click='valveoperate(true,0)' title="屏蔽特殊条件下(充值开阀等)触发的自动开阀指令">强制开阀</button>-->
287
288
  <button type="button" class="button_search btn-ln fr" :disabled="!operateReason" @click='valveoperate(true,1)'>开阀</button>
288
- <!-- <button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='valveoperate(false, 0)' title="屏蔽特殊条件下(欠费关阀等)触发的自动开阀指令">强制关阀</button>-->
289
+ <!-- <button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='valveoperate(false, 0)' title="屏蔽特殊条件下(欠费关阀等)触发的自动开阀指令">强制关阀</button>-->
289
290
  <button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='valveoperate(false, 1)'>关阀</button>
290
291
  </footer>
291
292
  </modal>
@@ -0,0 +1,320 @@
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_calculation.includes('表端结算') && 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_calculation.includes('表端结算') && 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}}</span>
67
+ </div>
68
+ <div class="row" v-if="data.f_meter_type.includes('物联网')">
69
+ <label class = "col-sm-5 ">户累购金额</label>
70
+ <span class = "col-sm-7" >{{data?data.f_total_fee_all:dafault.f_total_fee_all}}</span>
71
+ </div>
72
+ <div class="row" v-if="(data.f_meter_type === '机表' || data.f_meter_type === '物联网表') && data.f_deduction_gas > 0">
73
+ <label class = "col-sm-5 " >剩余抵扣量</label>
74
+ <span class = "col-sm-7" >{{data?data.f_deduction_gas:dafault.f_deduction_gas}}</span>
75
+ </div>
76
+ <div class="row" v-if="data.f_meter_type.includes('卡表')">
77
+ <label class = "col-sm-5 " style="color: brown" >户累购气量</label>
78
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas_all:dafault.f_total_gas_all}}</span>
79
+ </div>
80
+ <div class="row" v-if="(data.f_meter_brand.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:dafault.f_total_gas}}</span>
83
+ </div>
84
+ <div class="row" v-if="data.f_meter_type.includes('卡表') && data.f_meter_type === '气量卡表'">
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('卡表')">
89
+ <label class = "col-sm-5 " style="color: brown">累购金额</label>
90
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_total_fee:dafault.f_total_fee}}</span>
91
+ </div>
92
+ <div class="row" v-if="data.f_meter_type.includes('卡表')">
93
+ <label class = "col-sm-5 " style="color: brown">累购写卡金额</label>
94
+ <span class = "col-sm-7" style="color: brown">{{data?data.f_write_totalfee:dafault.f_total_fee}}</span>
95
+ </div>
96
+ <div class="row">
97
+ <label class = "col-sm-5 " >气表表号</label>
98
+ <span class = "col-sm-7">{{data?data.f_meternumber:dafault.f_meternumber}}</span>
99
+ </div>
100
+ <div class="row" v-if="data.f_meter_type.includes('卡表') || (data.f_meter_type.includes('物联网表') && data.f_hascard==='是')">
101
+ <label class = "col-sm-5 " >卡&emsp;&emsp;号</label>
102
+ <span class = "col-sm-7">{{data?data.f_card_id:dafault.f_card_id}}</span>
103
+ </div>
104
+ <div class="row">
105
+ <label class = "col-sm-5 " >表封号</label>
106
+ <span class="col-sm-7">{{data?data.f_metertitles:dafault.f_metertitles}}
107
+ <span v-if="data" @click.stop="changemetertitles"
108
+ class="glyphicon glyphicon-pencil click-change" title="修正表封号"></span>
109
+ </span>
110
+ </div>
111
+ <!-- <div class="row" v-if="data.f_meter_type.includes('卡表') || data.f_meter_type.includes('物联网表') && data.f_hascard==='是'">-->
112
+ <!-- <label class = "col-sm-5 " >写卡次数</label>-->
113
+ <!-- <span class = "col-sm-7">{{data?data.f_times:dafault.f_times}}</span>-->
114
+ <!-- </div>-->
115
+ <div class="row">
116
+ <label class = "col-sm-5 " >用气性质</label>
117
+ <span class = "col-sm-7">{{data?data.f_gasproperties:dafault.f_gasproperties}}</span>
118
+ </div>
119
+ <div class="row">
120
+ <label class = "col-sm-5 " >气价名称</label>
121
+ <span class = "col-sm-7">{{data?data.f_price_name:dafault.f_price_name}}</span>
122
+ </div>
123
+ <!--<div class="row" v-if="data.f_balance < 0">-->
124
+ <!--<label class = "col-sm-5 " >账户欠费</label>-->
125
+ <!--<span class = "col-sm-7" title="不包含违约金">{{data?0 - (data.f_balance - 0):dafault.f_balance}}</span>-->
126
+ <!--</div>-->
127
+ <!--<div class="row" v-else>-->
128
+ <!--<label class = "col-sm-5 " >账户余额</label>-->
129
+ <!--<span class = "col-sm-7">{{data?data.f_balance:dafault.f_balance}}</span>-->
130
+ <!--</div>-->
131
+ <div class="row" v-if="data.f_remanent_money > 0">
132
+ <label class = "col-sm-5 " >应补金额</label>
133
+ <span class = "col-sm-7">{{data?data.f_remanent_money:dafault.f_remanent_money}}</span>
134
+ </div>
135
+ <div class="row" v-if="data.f_remanent_gas > 0">
136
+ <label class = "col-sm-5 " >应补气量</label>
137
+ <span class = "col-sm-7">{{data?data.f_remanent_gas:dafault.f_remanent_gas}}</span>
138
+ </div>
139
+ <div class="row">
140
+ <label class = "col-sm-5 " >表&emsp;&emsp;向</label>
141
+ <span class = "col-sm-7">{{data?data.f_aroundmeter:dafault.f_hand_date}}</span>
142
+ </div>
143
+ <div class="row" v-if="!data.f_meter_type.includes('物联网')">
144
+ <label class = "col-sm-5 " >抄表册名</label>
145
+ <span class = "col-sm-7">{{data?'['+data.f_book_code + '] '+ (data.f_book_name ? data.f_book_name:''):dafault.f_book_name}}</span>
146
+ </div>
147
+ <div class="row" v-if="!data.f_meter_type.includes('物联网')">
148
+ <label class = "col-sm-5 " >抄表册册序号</label>
149
+ <span class = "col-sm-7">{{data?data.f_meter_book_sort:dafault.f_meter_book_sort}}</span>
150
+ </div>
151
+ <div class="row">
152
+ <label class = "col-sm-5 " >安装位置</label>
153
+ <span class = "col-sm-7">{{data?data.f_position:dafault.f_position}}</span>
154
+ </div>
155
+ <div class="row">
156
+ <label class = "col-sm-5 " >置换人员</label>
157
+ <span class = "col-sm-7">{{data?data.f_gas_person:dafault.f_hand_date}}</span>
158
+ </div>
159
+ <div class="row">
160
+ <label class = "col-sm-5 " >置换时间</label>
161
+ <span class = "col-sm-7">{{data?data.f_gas_date.substring(0,7):dafault.f_hand_date}}</span>
162
+ </div>
163
+ <div class="row" v-if="!data.f_meter_type.includes('物联网')">
164
+ <label class = "col-sm-5 " >抄表员</label>
165
+ <span class = "col-sm-7">{{data?data.f_inputtor:dafault.f_inputtor}}</span>
166
+ </div>
167
+ <div class="row" v-if="!data.f_meter_type.includes('物联网')">
168
+ <label class = "col-sm-5 " >上次抄表日</label>
169
+ <span class = "col-sm-7">{{data?data.f_hand_date.substring(0,7):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_input_date.substring(0,7):dafault.f_input_date}}</span>
174
+ </div>
175
+ <div class="row">
176
+ <label class = "col-sm-5 " >备&emsp;&emsp;注</label>
177
+ <span class = "col-sm-7">{{data?data.comments:dafault.comments}}</span>
178
+ </div>
179
+ <modal v-if="showselectncuserfile" :show.sync="showselectncuserfile" width="40%" title="修正表封号"
180
+ v-ref:modal large backdrop="false">
181
+ <article slot="modal-body" class="modal-body">
182
+ <div class="form-horizontal">
183
+ <div class="row">
184
+ <div class="col-sm-12 form-group">
185
+ <label class="font_normal_body">旧表封号</label>
186
+ <input disabled readonly type="text" style="width:80%" class="input_search"
187
+ v-model="data.f_metertitles" placeholder='旧表封号'>
188
+ </div>
189
+ </div>
190
+ <div class="row">
191
+ <div class="col-sm-12 form-group">
192
+ <label class="font_normal_body">新表封号</label>
193
+ <input type="text" style="width:80%" class="input_search" v-model="newmetertitles"
194
+ placeholder='新表封号'>
195
+ </div>
196
+ </div>
197
+ </div>
198
+ </article>
199
+ <footer slot="modal-footer" class="modal-footer">
200
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyUserFile">确定</button>
201
+ <button type="button" class="button_clear" @click='close'>取消</button>
202
+ </footer>
203
+ </modal>
204
+ </div>
205
+ </div>
206
+ </partial-view>
207
+ </template>
208
+
209
+ <script>
210
+ /*用户档案相关信息组件*/
211
+ export default {
212
+ ready () {
213
+ console.log('看看userinfo里面接收的data数据', this.data)
214
+ },
215
+ title: '客户基本信息',
216
+ data () {
217
+ return {
218
+ dafault: {
219
+ f_total_gas_all: 0,
220
+ f_total_fee_all: 0,
221
+ f_balance_amount: 0,
222
+ f_balance_gas: 0,
223
+ f_initial_base: 0,
224
+ f_meter_base: 0,
225
+ f_deduction_gas: 0,
226
+ f_total_gas: 0,
227
+ f_total_fee: 0,
228
+ f_card_id: '*****',
229
+ f_times: 0,
230
+ f_iot_times: 0,
231
+ f_meternumber: 0,
232
+ f_metertitles: '',
233
+ f_gasproperties: '****',
234
+ f_price_name: '****',
235
+ f_meter_brand: '****',
236
+ f_balance: 0,
237
+ f_user_type: '**',
238
+ f_remanent_gas: 0,
239
+ f_position: '****',
240
+ f_inputtor: '****',
241
+ f_jval: 0,
242
+ f_table_state: 0
243
+ },
244
+ model: null,
245
+ showselectncuserfile: false,
246
+ newmetertitles: ''
247
+ }
248
+ },
249
+ props: ['data'],
250
+ methods: {
251
+ dealmsg (val) {
252
+ this.$dispatch('deal-msg', val)
253
+ },
254
+ changemetertitles () {
255
+ // 修正表封号
256
+ this.showselectncuserfile = true
257
+ this.newmetertitles = 0
258
+ },
259
+ async modifyUserFile () {
260
+ let param = {
261
+ new_metertitles: this.newmetertitles,
262
+ f_userinfo_id: this.data.f_userinfo_id,
263
+ f_user_id: this.data.f_user_id,
264
+ f_userfiles_id: this.data.f_userfiles_id,
265
+ f_operator: this.$login.f.name,
266
+ f_operatorid: this.$login.f.id,
267
+ f_orgid: this.$login.f.orgid,
268
+ f_orgname: this.$login.f.orgs,
269
+ f_depid: this.$login.f.depids,
270
+ f_depname: this.$login.f.deps
271
+ }
272
+ await this.$resetpost('/rs/logic/changeuserfilesmetertitles', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
273
+ this.data.f_metertitles = this.newmetertitles
274
+ this.$parent.$parent.close()
275
+ this.$parent.$parent.clean()
276
+ this.$parent.$parent.$refs.list.searchNoData()
277
+ this.close()
278
+ },
279
+ close () {
280
+ this.showselectncuserfile = false
281
+ this.newmetertitles = 0
282
+ }
283
+ },
284
+ watch: {
285
+ 'data' (val) {
286
+ console.log('val========', val)
287
+ }
288
+ },
289
+
290
+ }
291
+ </script>
292
+ <style lang="less">
293
+ .row {
294
+ /*border-bottom:1px solid #F2F6FA;*/
295
+ margin-left: 0;
296
+ margin-right: 0;
297
+ }
298
+ .click-change:hover {
299
+ color: #3592ef;
300
+ cursor: pointer;
301
+ }
302
+ // . {
303
+ // height: 23px;
304
+ // border-right: 1px solid #F2F6FA;
305
+ // margin-bottom: 0;
306
+ // text-align: left;
307
+ // }
308
+ // #address {
309
+ // border-left: 1px solid #F2F6FA;
310
+ // }
311
+ // #user-info {
312
+ // padding:6px;
313
+ // span {
314
+ // padding-left: 5px;
315
+ // }
316
+ // }
317
+ // #address1 {
318
+ // border-right: 0;
319
+ // }
320
+ </style>
@@ -11,6 +11,8 @@ export default function () {
11
11
  Vue.component('hand-manager', (resolve) => { require(['./HandManager/HandManager'], resolve) })
12
12
  // 当前选择用户的用户基本信息
13
13
  Vue.component('sale-userinfo', (resolve) => { require(['./Userinfo'], resolve) })
14
+ // 当前选择用户的表具基本信息
15
+ Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
14
16
  Vue.component('card-meter-center', (resolve) => { require(['./CardMeterCenter'], resolve) })
15
17
  // Vue.component('machine-meter-center', (resolve) => { require(['./MachineMeterCenter'], resolve) })
16
18
  Vue.component('user-base-info-new', (resolve) => { require(['./UserBaseInfoNew'], resolve) })
@@ -0,0 +1,335 @@
1
+ <template>
2
+ <div class="span">
3
+ <validator name='v' style="overflow-y: auto" @valid="confirmEditcheck = true" @valid="confirmEditcheck = true">
4
+ <form novalidate class="form-horizontal select-overspread">
5
+ <div class="row auto">
6
+ <div style="margin-top: 2%">
7
+ <img style="margin-top: -2px;margin-left: 2px" src="./../../../static/images/lefticon/矩形1183.png">
8
+ <a style="font-size: 16px;font-weight: 500;">表计信息</a>&nbsp;<a
9
+ style="color: #999999;text-decoration: none"></a>
10
+ </div>
11
+ <div class="col-sm-6" :class="[$v.f_meternumber.required ? 'has-error' : '']">
12
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
13
+ <input type="text" v-model="newmeterinfo.f_meternumber" @blur="onbulrbunmber($event)" class="input_search"
14
+ style="width:60%" v-validate:f_meternumber='{required: true }' placeholder="表号">
15
+ </div>
16
+
17
+ <div class="col-sm-6" :class="[$v.f_imei.required ? 'has-error' : '']">
18
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;IMEI码&nbsp;&nbsp;&nbsp;</label>
19
+ <input type="text" v-model="newmeterinfo.f_imei" class="input_search" style="width:60%"
20
+ v-validate:f_imei='{required: true }' placeholder="IMEI码">
21
+ </div>
22
+ <div class="col-sm-6">
23
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;IMSI码&nbsp;&nbsp;&nbsp;</label>
24
+ <input type="text" v-model="newmeterinfo.f_imsi" class="input_search" style="width:60%"
25
+ placeholder="IMSI码">
26
+ </div>
27
+ <div class="col-sm-6" :class="[$v.brand.required ? 'has-error' : '']">
28
+ <label class="font_normal_body" title="参数:气表类型2">&nbsp;&nbsp;&nbsp;气表类型</label>
29
+ <input type="text" v-show="false" v-model="$refs.brand.selectedItems" v-validate:brand='{required: true }'>
30
+ <v-select style="width:60%" title="气表类型2"
31
+ placeholder='气表类型'
32
+ :value.sync="newmeterinfo.f_metertype"
33
+ v-model="newmeterinfo.f_metertype"
34
+ :options='metertype'
35
+ close-on-select
36
+ :value-single="true" v-ref:brand></v-select>
37
+ </div>
38
+ <div class="col-sm-6" :class="[$v.f_meter_brand.required ? 'has-error' : '']">
39
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;气表品牌</label>
40
+ <input type="text" v-show="false" v-model="newmeterinfo.f_meter_brand"
41
+ v-validate:f_meter_brand='{required: true }'>
42
+ <v-select
43
+ placeholder='气表品牌'
44
+ :value.sync="newmeterinfo.f_meter_brand"
45
+ style="width:60%"
46
+ :value-single="true"
47
+ v-model="newmeterinfo.f_meter_brand"
48
+ :options='meterbrand'
49
+ close-on-select>
50
+ </v-select>
51
+ </div>
52
+ <div class="col-sm-6" :class="[$v.f_meter_style.required ? 'has-error' : '']">
53
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;气表型号</label>
54
+ <input type="text" v-show="false" v-model="newmeterinfo.f_meter_style"
55
+ v-validate:f_meter_style='{required: true }'>
56
+ <v-select style="width:60%"
57
+ placeholder='气表型号'
58
+ :value.sync="newmeterinfo.f_meter_style"
59
+ v-model="newmeterinfo.f_meter_style"
60
+ :options='meterstyle'
61
+ close-on-select
62
+ :value-single="true"></v-select>
63
+ </div>
64
+ <div class="col-sm-6">
65
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表计电话</label>
66
+ <input type="text" v-model="newmeterinfo.f_meter_phone" class="input_search" style="width:60%"
67
+ placeholder="表计电话">
68
+ </div>
69
+ <div class="col-sm-12">
70
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;设备地址</label>
71
+ <input type="text" v-model="newmeterinfo.f_device_address" class="input_search" style="width:80%"
72
+ placeholder="设备地址">
73
+ </div>
74
+ <div class="col-sm-6">
75
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;是否领用</label>
76
+ <v-select style="width:60%"
77
+ placeholder='是否领用'
78
+ :value.sync="newmeterinfo.f_is_receive"
79
+ v-model="newmeterinfo.f_is_receive"
80
+ :options='isReceive'
81
+ disabled
82
+ close-on-select
83
+ :value-single="true"></v-select>
84
+ </div>
85
+ <div class="col-sm-6">
86
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;气表年限</label>
87
+ <input type="text" v-model="newmeterinfo.f_years" class="input_search" style="width:60%"
88
+ placeholder="气表年限">
89
+ </div>
90
+ <div class="col-sm-6">
91
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;生产日期</label>
92
+ <datepicker placeholder="生产日期" style="width: 60%"
93
+ v-model="newmeterinfo.f_manufacture_date"
94
+ :value.sync="newmeterinfo.f_manufacture_date"
95
+ :format="'yyyy-MM-dd HH:mm:ss'">
96
+ </datepicker>
97
+ <!-- <input type="text" v-model="newmeterinfo.f_manufacture_date" class="input_search" style="width:60%" placeholder="生产日期">-->
98
+ </div>
99
+
100
+ <div class="col-sm-6">
101
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;批次号&nbsp;&nbsp;&nbsp;</label>
102
+ <input type="text" v-model="newmeterinfo.f_batch_number" class="input_search" style="width:60%"
103
+ placeholder="批次号">
104
+ </div>
105
+ <div class="col-sm-6" :class="[$v.f_terminal_id.required ? 'has-error' : '']">
106
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;终端名称</label>
107
+ <input type="text" v-show="false" v-model="newmeterinfo.f_terminal_id"
108
+ v-validate:f_terminal_id='{required: true }'>
109
+ <v-select placeholder='终端名称'
110
+ :value.sync="newmeterinfo.f_terminal_id"
111
+ style="width:60%"
112
+ :value-single="true"
113
+ v-model="newmeterinfo.f_terminal_id"
114
+ :options='terminalId'
115
+ close-on-select>
116
+ </v-select>
117
+ </div>
118
+
119
+ <div class="col-sm-6">
120
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;设备号&nbsp;&nbsp;&nbsp;</label>
121
+ <input type="text" v-model="newmeterinfo.f_device_id" class="input_search" style="width:60%"
122
+ placeholder="设备号">
123
+ </div>
124
+ <div class="col-sm-6" :class="[$v.f_valvemark.required ? 'has-error' : '']">
125
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;阀控标识</label>
126
+ <input type="text" v-show="false" v-model="newmeterinfo.f_valvemark"
127
+ v-validate:f_valvemark='{required: true }'>
128
+ <v-select placeholder='阀控标识'
129
+ :value.sync="newmeterinfo.f_valvemark"
130
+ style="width:60%"
131
+ :value-single="true"
132
+ v-model="newmeterinfo.f_valvemark"
133
+ :options='valvemarks'
134
+ close-on-select>
135
+ </v-select>
136
+ </div>
137
+ <div class="col-sm-6">
138
+ <label class="font_normal_body" style="color: red" title="参数:表通道类型">表通道类型</label>
139
+ <!-- <input type="text" v-model="newmeterinfo.f_iot_type" class="input_search" style="width:60%" placeholder="表通道类型">-->
140
+ <v-select style="width:60%"
141
+ placeholder='表通道类型'
142
+ :value.sync="newmeterinfo.f_iot_type"
143
+ v-model="newmeterinfo.f_iot_type"
144
+ :options='iottype'
145
+ close-on-select
146
+ :value-single="true"></v-select>
147
+ </div>
148
+ <div class="col-sm-6">
149
+ <label class="font_normal_body">表通讯序号</label>
150
+ <input type="text" v-model="newmeterinfo.f_telecomm_no" class="input_search" style="width:60%"
151
+ placeholder="表通讯序号">
152
+ </div>
153
+ <div class="col-sm-6">
154
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;采购人</label>
155
+ <input type="text" v-model="newmeterinfo.f_purchaser" class="input_search" style="width:60%"
156
+ placeholder="采购人">
157
+ </div>
158
+ <div class="col-sm-6">
159
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;采购时间</label>
160
+ <datepicker placeholder="采购时间" style="width: 60%"
161
+ v-model="newmeterinfo.f_purchase_date"
162
+ :value.sync="newmeterinfo.f_purchase_date"
163
+ :format="'yyyy-MM-dd HH:mm:ss'">
164
+ </datepicker>
165
+ </div>
166
+ </div>
167
+ <div class="auto row">
168
+ <div style="margin-top: 2%">
169
+ <img style="margin-top: -2px;margin-left: 2px" src="./../../../static/images/lefticon/矩形1183.png">
170
+ <a style="font-size: 16px;font-weight: 500;">厂商信息</a>&nbsp;<a
171
+ style="color: #999999;text-decoration: none"></a>
172
+ </div>
173
+ <div class="col-sm-6">
174
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;气表厂家</label>
175
+ <input type="text" v-model="newmeterinfo.f_manufacturers" class="input_search" style="width:60%"
176
+ placeholder="气表厂家">
177
+ </div>
178
+ <div class="col-sm-6" :class="[$v.f_vender.required ? 'has-error' : '']">
179
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;厂商代码</label>
180
+ <input type="text" v-show="false" v-model="newmeterinfo.f_vender" v-validate:f_vender='{required: true }'>
181
+ <v-select placeholder='厂商代码'
182
+ :value.sync="newmeterinfo.f_vender"
183
+ style="width:60%"
184
+ :value-single="true"
185
+ v-model="newmeterinfo.f_vender"
186
+ :options='venders'
187
+ close-on-select>
188
+ </v-select>
189
+ </div>
190
+ </div>
191
+ <div class="col-sm-12" style="text-align:right;height:auto;margin-top:6px;">
192
+ <button class="button_search" type="button" @click="confirmEdit()" :disabled="!confirmEditcheck">确认</button>
193
+ <button class="button_clear" type="button" @click="close()">取消</button>
194
+ </div>
195
+ </form>
196
+ </validator>
197
+ </div>
198
+ </template>
199
+
200
+
201
+ <script>
202
+ let readyGen = async function (self) {
203
+ await self.$LoadParams.loadParam()
204
+ self.initQueryParam()
205
+ // self.reflash()
206
+ }
207
+ export default {
208
+ title: '表计信息修改',
209
+ props: ['oldmeter', 'f_filialeid'],
210
+ data () {
211
+ return {
212
+ row: {},
213
+ meterbrand: [],
214
+ newmeterinfo: {},
215
+ confirmEditcheck: false,
216
+ meterstyle: []
217
+ }
218
+ },
219
+ ready () {
220
+ this.newmeterinfo = Object.assign({}, {}, this.oldmeter)
221
+ this.newmeterinfo.f_is_receive = this.newmeterinfo.f_is_receive !== '是' ? '否' : '是'
222
+ readyGen(this)
223
+ },
224
+ watch: {
225
+ 'oldmeter' () {
226
+ this.newmeterinfo = Object.assign({}, {}, this.oldmeter)
227
+ },
228
+ 'newmeterinfo.f_meter_brand' () {
229
+ if (this.newmeterinfo.f_meter_brand == null || this.newmeterinfo.f_meter_brand == '') return
230
+ let gasmodels = []
231
+ let gastype = []
232
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
233
+ if (item.label == this.newmeterinfo.f_meter_brand) {
234
+ gasmodels = item.value.gasmodel
235
+ }
236
+ })
237
+ gasmodels.forEach((items) => {
238
+ let temp = {}
239
+ temp.label = items.label
240
+ temp.value = items.value.f_meter_style + items.value.f_type
241
+ gastype.push(temp)
242
+ })
243
+ this.meterstyle = gastype
244
+ }
245
+ },
246
+ methods: {
247
+ initQueryParam () {
248
+ let arr = []
249
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
250
+ let temp = {}
251
+ temp.label = item.label
252
+ temp.value = item.value.f_meter_brand
253
+ arr.push(temp)
254
+ })
255
+ console.log(arr)
256
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
257
+ },
258
+ async onbulrbunmber ($event) {
259
+ if ($event.target.value === '') {
260
+ return
261
+ }
262
+ let expiration = await this.$resetpost('rs/sql/singleTable_OrderBy', {
263
+ data:
264
+ {
265
+ orderitem: 'id',
266
+ items: 'f_meternumber',
267
+ tablename: 't_meterinfo',
268
+ condition: 'f_meternumber = \'' + $event.target.value + '\''
269
+ }
270
+ }, {resolveMsg: '', rejectMsg: ''})
271
+
272
+ console.log(expiration)
273
+ if (expiration.data.length !== 0) {
274
+ this.$showMessage('表号已经存在')
275
+ }
276
+ },
277
+ close () {
278
+ this.$parent.meterinfos = []
279
+ this.$dispatch('close')
280
+ },
281
+ confirmEdit () {
282
+ this.newmeterinfo.f_diameter = ''
283
+ this.newmeterinfo.f_orgid = this.$login.f.orgid
284
+ // this.newmeterinfo.f_metertype='威星民用表'
285
+ this.newmeterinfo.f_orgname = this.$login.f.orgs
286
+ this.newmeterinfo.f_depid = this.$login.f.depids
287
+ this.newmeterinfo.f_depname = this.$login.f.deps
288
+ this.newmeterinfo.f_operator = this.$login.f.name
289
+ this.newmeterinfo.f_operatorid = this.$login.f.id
290
+ if (JSON.stringify(this.oldmeter) != '{}') {
291
+ if (this.newmeterinfo.f_meternumber && this.newmeterinfo.f_imei && this.newmeterinfo.f_iot_type && this.newmeterinfo.f_meternumber !== '' && this.newmeterinfo.f_imei !== '' && this.newmeterinfo.f_iot_type !== '') {
292
+ this.$resetpost('rs/entity/t_meterinfo', this.newmeterinfo, {
293
+ resolveMsg: '修改成功。',
294
+ rejectMsg: '修改失败!!!请核对表号/IMSI码是否重复!'
295
+ })
296
+ } else {
297
+ this.$showMessage('表号/IMEI码/表通道类型 不能为空!')
298
+ }
299
+ } else {
300
+ // 是新增
301
+ this.newmeterinfo.f_state = '待安装'
302
+ this.newmeterinfo.f_filialeid = this.f_filialeid ? this.f_filialeid : this.$login.f.orgid
303
+ this.$resetpost('rs/entity/t_meterinfo', this.newmeterinfo, {
304
+ resolveMsg: '添加成功。',
305
+ rejectMsg: '添加失败!!!请核对表号/IMSI码是否重复'
306
+ })
307
+ }
308
+ this.$dispatch('close')
309
+ }
310
+ },
311
+ computed: {
312
+ meterbrands () {
313
+ return this.$GetSaleParam.getGasbrand()
314
+ },
315
+ iottype () {
316
+ return this.$appdata.getParam('表通道类型')
317
+ },
318
+ terminalId () {
319
+ return this.$appdata.getParam('终端名称')
320
+ },
321
+ valvemarks () {
322
+ return this.$appdata.getParam('阀控标识')
323
+ },
324
+ venders () {
325
+ return this.$appdata.getParam('厂商代码')
326
+ },
327
+ metertype () {
328
+ return this.$appdata.getParam('气表类型2')
329
+ },
330
+ isReceive () {
331
+ return [{label: '否', value: '否'}, {label: '是', value: '是'}]
332
+ }
333
+ }
334
+ }
335
+ </script>
@@ -55,6 +55,13 @@
55
55
  close-on-select search="true">
56
56
  </v-select>
57
57
  </div>
58
+ <div class="col-sm-6 form-group " v-if="is_pecial">
59
+ <label class="font_normal_body">小区名称</label>
60
+ <v-select :value.sync="model.f_residential_area_id" :value-single="true"
61
+ :options='areaslist' placeholder='请选择'
62
+ close-on-select search="true">
63
+ </v-select>
64
+ </div>
58
65
  <div v-if="!is_pecial" class="col-sm-6 form-group ">
59
66
  <label for="f_address" class="font_normal_body">楼&emsp;&emsp;号</label>
60
67
  <input type="text" style="width:40%" v-model="model.f_building" class="input_search"
@@ -67,7 +67,13 @@
67
67
  v-validate:f_move_gas='{required: true}' placeholder="转气气量">
68
68
  </div>
69
69
  </div>
70
+ <div class="row">
71
+ <div class="col-sm-8">
72
+ <label for="f_paper_account" class="font_normal_body ">&nbsp;&nbsp;&nbsp;地址&nbsp;&nbsp;&nbsp;</label>
73
+ <input class="input_search" style="width:80%" placeholder='目标用户地址' readonly v-model="model.f_address">
74
+ </div>
70
75
 
76
+ </div>
71
77
  <div class="row">
72
78
  <div class="col-sm-8">
73
79
  <label for="f_paper_account" class="font_normal_body ">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
@@ -106,6 +112,7 @@
106
112
  f_comments: '',
107
113
  f_meter_type: '',
108
114
  f_user_name: '',
115
+ f_address: '',
109
116
  f_userfiles_id: '',
110
117
  f_move_fee: 0,
111
118
  f_move_gas: 0
@@ -187,6 +194,7 @@
187
194
  this.model.f_user_name = res.data[0].f_user_name
188
195
  this.model.f_meter_type = res.data[0].f_meter_type
189
196
  this.model.f_userfiles_id = res.data[0].f_userfiles_id
197
+ this.model.f_address = res.data[0].f_address
190
198
  } else {
191
199
  this.$showAlert('输入的用户编号不正确', 'warning', 1500)
192
200
  }
@@ -209,6 +217,10 @@
209
217
  return
210
218
  }
211
219
 
220
+ let result = await this.$showMessage(`确定要进行转气操作吗?转气后无法撤销`)
221
+ if (result != 'confirm') {
222
+ return
223
+ }
212
224
  let param = {
213
225
  f_user_id: this.row.f_user_id,
214
226
  f_userfiles_id: this.row.f_userfiles_id,
@@ -118,4 +118,5 @@ export default function () {
118
118
  Vue.component('disable-manage', (resolve) => { require(['./business/MeterDisable/DisableManage'], resolve) })
119
119
  // 转气(荣成转气按一阶计算)
120
120
  Vue.component('gas-move', (resolve) => { require(['./gasmove'], resolve) })
121
+ Vue.component('edit-meter-info', (resolve) => { require(['./EditWebMeterInfo'], resolve) })
121
122
  }
package/yarn-error.log CHANGED
@@ -1,22 +1,22 @@
1
- Arguments:
2
- C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\yarn\bin\yarn.js install
3
-
4
- PATH:
5
- C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\work\jdk\bin;D:\work\jdk\jre\bin;D:\work\;C:\Users\k\AppData\Roaming\nvm;C:\Program Files\nodejs;D:\Bandizip;D:\soft\Bandizip;C:\Program Files\OpenVPN\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\PuTTY\;D:\tools\gradle-7.6-all\gradle-7.6\bin;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files (x86)\NetSarang\Xftp 7\;C:\Users\k\AppData\Local\Microsoft\WindowsApps;C:\Users\k\AppData\Roaming\npm;C:\Users\k\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\k\AppData\Local\Programs\EmEditor;C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.2\bin;D:\WorkSpace\product\v3\SaleClient\node_modules\.bin
6
-
7
- Yarn version:
8
- 1.22.19
9
-
10
- Node version:
11
- 18.8.0
12
-
13
- Platform:
14
- win32 x64
15
-
16
- Trace:
17
- Error: EPERM: operation not permitted, copyfile 'C:\Users\k\AppData\Local\Yarn\Cache\v6\npm-glob-7.1.1-integrity\node_modules\glob\package.json' -> 'D:\WorkSpace\product\v3\SaleClient\node_modules\mocha\node_modules\glob\package.json'
18
-
19
- npm manifest:
1
+ Arguments:
2
+ C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\yarn\bin\yarn.js install
3
+
4
+ PATH:
5
+ C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\work\jdk\bin;D:\work\jdk\jre\bin;D:\work\;C:\Users\k\AppData\Roaming\nvm;C:\Program Files\nodejs;D:\Bandizip;D:\soft\Bandizip;C:\Program Files\OpenVPN\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\PuTTY\;D:\tools\gradle-7.6-all\gradle-7.6\bin;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files (x86)\NetSarang\Xftp 7\;C:\Users\k\AppData\Local\Microsoft\WindowsApps;C:\Users\k\AppData\Roaming\npm;C:\Users\k\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\k\AppData\Local\Programs\EmEditor;C:\Program Files\JetBrains\IntelliJ IDEA 2024.1.2\bin;D:\WorkSpace\product\v3\SaleClient\node_modules\.bin
6
+
7
+ Yarn version:
8
+ 1.22.19
9
+
10
+ Node version:
11
+ 18.8.0
12
+
13
+ Platform:
14
+ win32 x64
15
+
16
+ Trace:
17
+ Error: EPERM: operation not permitted, copyfile 'C:\Users\k\AppData\Local\Yarn\Cache\v6\npm-glob-7.1.1-integrity\node_modules\glob\package.json' -> 'D:\WorkSpace\product\v3\SaleClient\node_modules\mocha\node_modules\glob\package.json'
18
+
19
+ npm manifest:
20
20
  {
21
21
  "name": "sale-client",
22
22
  "version": "3.6.359",
@@ -136,12 +136,12 @@ npm manifest:
136
136
  "example": "examples",
137
137
  "test": "test"
138
138
  }
139
- }
140
-
141
- yarn manifest:
142
- No manifest
143
-
144
- Lockfile:
139
+ }
140
+
141
+ yarn manifest:
142
+ No manifest
143
+
144
+ Lockfile:
145
145
  # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
146
146
  # yarn lockfile v1
147
147
 
@@ -12035,4 +12035,4 @@ Lockfile:
12035
12035
  zrender@4.3.2:
12036
12036
  version "4.3.2"
12037
12037
  resolved "https://registry.npmmirror.com/zrender/-/zrender-4.3.2.tgz"
12038
- integrity sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g==
12038
+ integrity sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g==