sale-client 3.5.292 → 3.5.295

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/src/Util.js +4 -0
  3. package/src/components/FilesManage/UserGeneralInfoTest.vue +6 -0
  4. package/src/components/FilesManageNew/UserGeneralInfoTest.vue +9 -0
  5. package/src/components/revenue/base/rightview/carddetail/BlacklistDetail.vue +2 -2
  6. package/src/filiale/chengtou/components/FilesManage/UserGeneralInfoTest.vue +6 -0
  7. package/src/filiale/fugu/components/FilesManage/UserGeneralInfoTest.vue +6 -0
  8. package/src/filiale/gehua/UserGeneralInfoTest.vue +32 -5
  9. package/src/filiale/kelai/UserGeneralInfoTest.vue +6 -0
  10. package/src/filiale/konggang/UserGeneralInfoTest.vue +6 -0
  11. package/src/filiale/liaoyuan/FileManage/UserGeneralInfoTest.vue +6 -0
  12. package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +8 -2
  13. package/src/filiale/qianneng/FilesManage/UserGeneralInfoTest.vue +6 -0
  14. package/src/filiale/qianneng/FilesManageNew/UserGeneralInfoTest.vue +6 -0
  15. package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +6 -0
  16. package/src/filiale/rizhao/IOTMeterCenter.vue +795 -0
  17. package/src/filiale/rizhao/NoCardMeterCenter.vue +466 -0
  18. package/src/filiale/rizhao/ShowCardSellGas.vue +932 -0
  19. package/src/filiale/rizhao/UserGeneralInfoTest.vue +6 -0
  20. package/src/filiale/rizhao/sale.js +7 -0
  21. package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +6 -0
  22. package/src/filiale/rongcheng/UserGeneralInfoTest.vue +6 -0
  23. package/src/filiale/shanxian/components/FilesManage/UserGeneralInfoTest.vue +6 -0
  24. package/src/filiale/shanxian/components/FilesManageNew/UserGeneralInfoTest.vue +6 -0
  25. package/src/filiale/shanxian/components/UserFiles/UserPriceChangeManage.vue +25 -21
  26. package/src/filiale/shanxian/components/webMeter/WebMeterBatchOperationValve.vue +785 -0
  27. package/src/filiale/shanxian/components/webMeter/meterinfo/NewMeterList.vue +569 -0
  28. package/src/filiale/shanxian/sale.js +2 -0
  29. package/src/filiale/shaoguan/FilesManage/UserGeneralInfoTest.vue +6 -0
  30. package/src/filiale/shaoguan/FilesManageNew/UserGeneralInfoTest.vue +6 -0
  31. package/src/filiale/tongchuan/UserGeneralInfoTest.vue +6 -1
  32. package/src/filiale/wenxi/UserGeneralInfoTest.vue +6 -0
  33. package/src/filiale/wuhai/UserGeneralInfoTest.vue +6 -0
  34. package/src/filiale/zhongyi/HandplanQuery.vue +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.292",
3
+ "version": "3.5.295",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Util.js CHANGED
@@ -359,3 +359,7 @@ export function nextMonth20 (date) {
359
359
  // }
360
360
  //
361
361
  // export var f;
362
+ // 去除多余的空格和回车
363
+ export function removerUnnecessary (val) {
364
+ return val.trim().replace(/\s/g, '')
365
+ }
@@ -108,6 +108,7 @@
108
108
  <script>
109
109
  import UserPaperInfoTest from './UserPaperInfoTest'
110
110
  import {HttpResetClass} from 'vue-client'
111
+ import * as Util from '../../Util'
111
112
 
112
113
  let getFileGen = async function (self, data) {
113
114
  let http = new HttpResetClass()
@@ -316,6 +317,11 @@ export default {
316
317
  }
317
318
  this.seaching = true
318
319
  console.log('档案保存之前,。。。', this.data)
320
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
321
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
322
+ this.data.meterinfo.forEach((item) => {
323
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
324
+ })
319
325
  if (this.data.meterinfo[0].f_gas_date != null) {
320
326
  this.data.addressinfo.f_address_state = '已通气'
321
327
  }
@@ -70,6 +70,7 @@
70
70
  <script>
71
71
  import UserPaperInfoTest from './UserPaperInfoTest'
72
72
  import {HttpResetClass} from 'vue-client'
73
+ import * as Util from '../../Util'
73
74
 
74
75
  let getFileGen = async function (self, data) {
75
76
  let http = new HttpResetClass()
@@ -311,6 +312,14 @@ export default {
311
312
  if (this.row) {
312
313
  this.data.baseinfo.base.version = this.row.version
313
314
  }
315
+
316
+ console.log('档案保存之前,。。。', this.data)
317
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
318
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
319
+ this.data.meterinfo.forEach((item) => {
320
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
321
+ })
322
+
314
323
  this.$FileManageService.fileSave(this.$FileManageService.fileSaveBefore(this.data)).then((res) => {
315
324
  this.savePrintSheet(res.data.result[0])
316
325
  this.$dispatch('success')
@@ -23,11 +23,11 @@
23
23
  </div>
24
24
  <div class="row">
25
25
  <label class = "col-sm-4 ">操作时间:</label>
26
- <span class = "col-sm-8 " style="text-align:left">{{data.f_operate_date}}</span>
26
+ <span class = "col-sm-8 " style="text-align:left">{{model.f_operate_date}}</span>
27
27
  </div>
28
28
  <div class="row">
29
29
  <label class = "col-sm-4 ">原因:</label>
30
- <span class = "col-sm-8 " style="text-align:left">{{data.f_comments}}</span>
30
+ <span class = "col-sm-8 " style="text-align:left">{{model.f_comments}}</span>
31
31
  </div>
32
32
  </partial-view>
33
33
  </div>
@@ -109,6 +109,7 @@
109
109
  import UserPaperInfoTest from '../../../../components/FilesManage/UserPaperInfoTest'
110
110
  import {HttpResetClass} from 'vue-client'
111
111
  import FileManageService from '../../plugins/FileManageService'
112
+ import * as Util from '../../../../Util'
112
113
 
113
114
  let getFileGen = async function (self, data) {
114
115
  let http = new HttpResetClass()
@@ -305,6 +306,11 @@ export default {
305
306
  }
306
307
  this.seaching = true
307
308
  console.log('档案保存之前,。。。', this.data)
309
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
310
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
311
+ this.data.meterinfo.forEach((item) => {
312
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
313
+ })
308
314
  if (this.data.meterinfo[0].f_gas_date != null) {
309
315
  this.data.addressinfo.f_address_state = '已通气'
310
316
  }
@@ -110,6 +110,7 @@ import UserPaperInfoTest from "../../../../components/FilesManage/UserPaperInfoT
110
110
  import FileManageService from "../plugins/FileManageService";
111
111
 
112
112
  import {HttpResetClass} from 'vue-client';
113
+ import * as Util from '../../../../Util'
113
114
 
114
115
  let getFileGen = async function (self, data) {
115
116
  let http = new HttpResetClass()
@@ -313,6 +314,11 @@ export default {
313
314
  }
314
315
  this.seaching = true
315
316
  console.log('档案保存之前,。。。', this.data)
317
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
318
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
319
+ this.data.meterinfo.forEach((item) => {
320
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
321
+ })
316
322
  if (this.data.meterinfo[0].f_gas_date != null) {
317
323
  this.data.addressinfo.f_address_state = '已通气'
318
324
  }
@@ -69,6 +69,7 @@
69
69
  <script>
70
70
  import UserPaperInfoTest from '../../components/FilesManageNew/UserPaperInfoTest.vue'
71
71
  import {HttpResetClass} from 'vue-client'
72
+ import * as Util from '../../Util'
72
73
 
73
74
  let getFileGen = async function (self, data) {
74
75
  let http = new HttpResetClass()
@@ -79,10 +80,29 @@ let getFileGen = async function (self, data) {
79
80
  if (result.data.meterinfo.length === 0) {
80
81
  // 预备户可以不填表具信息 所以修正时如果没有表具信息 则初始化一个
81
82
  result.data.meterinfo.push({
82
- f_meternumber: '', f_metertitles: '', f_area_code: '', gasbrand: '', gasmodel: '', gasmodeltype: '',
83
- pricetype: '', pricename: '', f_user_type: '', f_gasproperties: '', f_inputtor: '', f_position: '',
84
- f_userfiles_address: '', f_usetype: '', f_usestate: '', f_aroundmeter: '', f_garbage_fee: '否', f_meter_base: '',
85
- f_initial_base: '', f_gas_person: '', f_adjustable: '', f_detailprice: '', devicesinfo: []
83
+ f_meternumber: '',
84
+ f_metertitles: '',
85
+ f_area_code: '',
86
+ gasbrand: '',
87
+ gasmodel: '',
88
+ gasmodeltype: '',
89
+ pricetype: '',
90
+ pricename: '',
91
+ f_user_type: '',
92
+ f_gasproperties: '',
93
+ f_inputtor: '',
94
+ f_position: '',
95
+ f_userfiles_address: '',
96
+ f_usetype: '',
97
+ f_usestate: '',
98
+ f_aroundmeter: '',
99
+ f_garbage_fee: '否',
100
+ f_meter_base: '',
101
+ f_initial_base: '',
102
+ f_gas_person: '',
103
+ f_adjustable: '',
104
+ f_detailprice: '',
105
+ devicesinfo: []
86
106
  })
87
107
  }
88
108
 
@@ -310,6 +330,13 @@ export default {
310
330
  if (this.row) {
311
331
  this.data.baseinfo.base.version = this.row.version
312
332
  }
333
+
334
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
335
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
336
+ this.data.meterinfo.forEach((item) => {
337
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
338
+ })
339
+
313
340
  this.$FileManageService.fileSave(this.$FileManageService.fileSaveBefore(this.data)).then((res) => {
314
341
  this.savePrintSheet(res.data.result[0])
315
342
  this.$dispatch('success')
@@ -338,7 +365,7 @@ export default {
338
365
  return new Blob([bytesCode], {type: 'image/jpeg'})
339
366
  },
340
367
  newPhoto (Imgbase64) {
341
- console.log('imgbase----->',Imgbase64)
368
+ console.log('imgbase----->', Imgbase64)
342
369
  let form = new FormData()
343
370
  let xhr = new XMLHttpRequest()
344
371
  let formDataBoundary = '----WebkitFormBoundary' + 'GaoPaiYi'
@@ -108,6 +108,7 @@
108
108
  <script>
109
109
  import UserPaperInfoTest from '../../components/FilesManage/UserPaperInfoTest.vue'
110
110
  import {HttpResetClass} from 'vue-client'
111
+ import * as Util from '../../Util'
111
112
 
112
113
  let getFileGen = async function (self, data) {
113
114
  let http = new HttpResetClass()
@@ -316,6 +317,11 @@ export default {
316
317
  }
317
318
  this.seaching = true
318
319
  console.log('档案保存之前,。。。', this.data)
320
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
321
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
322
+ this.data.meterinfo.forEach((item) => {
323
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
324
+ })
319
325
  if (this.data.meterinfo[0].f_gas_date != null) {
320
326
  this.data.addressinfo.f_address_state = '已通气'
321
327
  }
@@ -107,6 +107,7 @@
107
107
  <script>
108
108
  import UserPaperInfoTest from '../../components/FilesManage/UserPaperInfoTest'
109
109
  import {HttpResetClass} from 'vue-client'
110
+ import * as Util from '../../Util'
110
111
 
111
112
  let getFileGen = async function (self, data) {
112
113
 
@@ -310,6 +311,11 @@
310
311
  this.data.baseinfo.base.version = this.row.version
311
312
  }
312
313
  console.log('档案保存之前,。。。', this.data)
314
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
315
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
316
+ this.data.meterinfo.forEach((item) => {
317
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
318
+ })
313
319
  if (this.data.meterinfo[0].f_gas_date != null) {
314
320
  this.data.addressinfo.f_address_state = '已通气'
315
321
  }
@@ -68,6 +68,7 @@
68
68
  <script>
69
69
  import UserPaperInfoTest from './UserPaperInfoTest'
70
70
  import {HttpResetClass} from 'vue-client'
71
+ import * as Util from '../../../Util'
71
72
 
72
73
  let getFileGen = async function (self, data) {
73
74
  let http = new HttpResetClass()
@@ -218,6 +219,11 @@ export default {
218
219
  this.data.baseinfo.base.version = this.row.version
219
220
  }
220
221
  console.log('档案保存之前,。。。', this.data)
222
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
223
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
224
+ this.data.meterinfo.forEach((item) => {
225
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
226
+ })
221
227
  this.fileSaveData = this.$FileManageService.fileSaveBefore(this.data)
222
228
  this.$FileManageService.fileSave(this.fileSaveData).then((res) => {
223
229
  this.$parent.resdata = res.data.result[0].f_userinfo_code
@@ -68,6 +68,7 @@
68
68
  <script>
69
69
  import UserPaperInfoTest from './UserPaperInfoTest'
70
70
  import {HttpResetClass} from 'vue-client'
71
+ import * as Util from '../../../Util'
71
72
 
72
73
  let getFileGen = async function (self, data) {
73
74
  let http = new HttpResetClass()
@@ -294,6 +295,11 @@ export default {
294
295
  this.data.baseinfo.base.version = this.row.version
295
296
  }
296
297
  console.log('档案保存之前,。。。', this.data)
298
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
299
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
300
+ this.data.meterinfo.forEach((item) => {
301
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
302
+ })
297
303
  this.$FileManageService.fileSave(this.$FileManageService.fileSaveBefore(this.data)).then((res) => {
298
304
  this.savePrintSheet(res.data.result[0])
299
305
  this.$dispatch('success')
@@ -476,12 +482,12 @@ export default {
476
482
  // 用户电话
477
483
  f_user_phone: '',
478
484
  f_people_num: 0,
479
- f_packaging:'',
485
+ f_packaging: '',
480
486
  // 备用电话
481
487
  f_rent_phone: '',
482
488
  f_credentials: '身份证',
483
489
  f_cost_type: '',
484
- f_bz_type:'',
490
+ f_bz_type: '',
485
491
  f_address: '',
486
492
  addressid: '',
487
493
  f_idnumber: ''
@@ -108,6 +108,7 @@
108
108
  <script>
109
109
  import UserPaperInfoTest from '../../../components/FilesManage/UserPaperInfoTest'
110
110
  import {HttpResetClass} from 'vue-client'
111
+ import * as Util from '../../../Util'
111
112
 
112
113
  let getFileGen = async function (self, data) {
113
114
  let http = new HttpResetClass()
@@ -316,6 +317,11 @@ export default {
316
317
  }
317
318
  this.seaching = true
318
319
  console.log('档案保存之前,。。。', this.data)
320
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
321
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
322
+ this.data.meterinfo.forEach((item) => {
323
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
324
+ })
319
325
  if (this.data.meterinfo[0].f_gas_date != null) {
320
326
  this.data.addressinfo.f_address_state = '已通气'
321
327
  }
@@ -71,6 +71,7 @@
71
71
  <script>
72
72
  import UserPaperInfoTest from './UserPaperInfoTest'
73
73
  import {HttpResetClass} from 'vue-client'
74
+ import * as Util from '../../../Util'
74
75
 
75
76
  let getFileGen = async function (self, data) {
76
77
  let http = new HttpResetClass()
@@ -309,6 +310,11 @@ export default {
309
310
  this.data.baseinfo.base.version = this.row.version
310
311
  }
311
312
  console.log('档案保存之前,。。。', this.data)
313
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
314
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
315
+ this.data.meterinfo.forEach((item) => {
316
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
317
+ })
312
318
  this.$FileManageService.fileSave(this.$FileManageService.fileSaveBefore(this.data)).then((res) => {
313
319
  this.savePrintSheet(res.data.result[0])
314
320
  this.$dispatch('success')
@@ -69,6 +69,7 @@
69
69
  <script>
70
70
  import UserPaperInfoTest from '../../components/FilesManage/UserPaperInfoTest'
71
71
  import {HttpResetClass} from 'vue-client'
72
+ import * as Util from '../../Util'
72
73
 
73
74
  let getFileGen = async function (self, data) {
74
75
  let http = new HttpResetClass()
@@ -221,6 +222,11 @@ export default {
221
222
  this.data.baseinfo.base.version = this.row.version
222
223
  }
223
224
  console.log('档案保存之前,。。。', this.data)
225
+ this.data.baseinfo.base.f_user_name = Util.removerUnnecessary(this.data.baseinfo.base.f_user_name)
226
+ this.data.baseinfo.base.f_user_phone = Util.removerUnnecessary(this.data.baseinfo.base.f_user_phone)
227
+ this.data.meterinfo.forEach((item) => {
228
+ item.f_meternumber = Util.removerUnnecessary(item.f_meternumber)
229
+ })
224
230
  Object.assign(this.fileSaveData, {}, this.$FileManageService.fileSaveBefore(this.data))
225
231
  this.$FileManageService.fileSave(this.fileSaveData).then((res) => {
226
232
  this.$parent.resdata = res.data.result[0].f_userinfo_code