system-phone 3.1.93 → 3.1.95

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.
@@ -1,148 +1,148 @@
1
- <template >
2
- <div class="panel panel-default auto repair-info-content">
3
- <div class="panel-body" v-show="show">
4
- <div class="panel panel-default well" v-for="row in model">
5
- <div class="bg-info">
6
- <div class="row form-group">
7
- <div class="col-xs-12 col-sm-12 col-md-12">
8
- <div class="row">
9
- <div class="col-xs-6 col-sm-6 col-md-6">
10
- 购气量: {{row.f_pregas}}
11
- </div>
12
- <div class="col-xs-6 col-sm-6 col-md-6">
13
- 购气金额: {{row.f_preamount}}
14
- </div>
15
- <div class="col-xs-6 col-sm-6 col-md-6">
16
- 收费状态: {{row.f_state}}
17
- </div>
18
- <div class="col-xs-6 col-sm-6 col-md-6">
19
- 收款: {{row.f_collection}}
20
- </div>
21
- <div class="col-xs-12 col-sm-12 col-md-12">
22
- 缴费方式: {{row.f_payment}}
23
- </div>
24
- <div class="col-xs-12 col-sm-12 col-md-12">
25
- 营业网点: {{row.f_depname}}
26
- </div>
27
- <div class="col-xs-12 col-sm-12 col-md-12">
28
- 操作员: {{row.f_operator}}
29
- </div>
30
- <div class="col-xs-12 col-sm-12 col-md-12">
31
- 购气时间: {{row.f_operate_date}}
32
- </div>
33
-
34
- </div>
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
- <div className="panel panel-default well">
40
- <div className="bg-info">
41
- <div className="row form-group">
42
- <div className="col-xs-12 col-sm-12 col-md-12">
43
- <div className="row">
44
- <div className="col-xs-6 col-sm-6 col-md-6">
45
- 总购气量: {{ f_pregas_count }}
46
- </div>
47
- <div className="col-xs-6 col-sm-6 col-md-6">
48
- 总购气金额: {{ f_preamount_count }}
49
- </div>
50
- <div className="col-xs-6 col-sm-6 col-md-6">
51
- 购气次数: {{ model.length }}
52
- </div>
53
- </div>
54
- </div>
55
- </div>
56
- </div>
57
- </div>
58
- <p v-show="model.length == 0 ">此用户暂无购气记录</p>
59
- </div>
60
- </div>
61
- </template>
62
-
63
- <script>
64
- import { PagedList } from 'vue-client'
65
- import co from 'co'
66
- export default {
67
- title: '查询用户',
68
- data () {
69
- return {
70
- model: [],
71
- f_pregas_count: 0,
72
- f_preamount_count: 0,
73
- show: false,
74
- row: Object
75
- }
76
- },
77
- props: {
78
- user: {
79
- type: Object
80
- },
81
- f_userinfo_id:''
82
- },
83
- methods: {
84
- getmodel () {
85
- let userinfoid
86
- if(this.f_userinfo_id){
87
- userinfoid = this.f_userinfo_id
88
- }else{
89
- userinfoid = this.user.f_userinfo_id
90
- console.log(this.user.f_userinfo_id)
91
- }
92
- console.log(userinfoid)
93
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {items: '*', tablename: 't_sellinggas', orderitem: 'f_operate_date desc', condition:`f_state = '有效' and f_userinfo_id = '${userinfoid}'`}},{resolveMsg : null,rejectMsg :null}).then((row) => {
94
- this.model = row.data
95
- row.data.forEach(item => {
96
- this.f_pregas_count += item.f_pregas
97
- this.f_preamount_count += item.f_preamount
98
- })
99
- this.show=true
100
- })
101
- },
102
- back(){
103
-
104
- }
105
- },
106
- watch: {
107
- 'user' (val) {
108
- // this.model.search(`card_id = ${this.user.card_id}`)
109
- if(this.user){
110
- if (!(this.user.isNuN)) {
111
- this.model= []
112
- this.getmodel()
113
- }
114
- }
115
- },
116
- 'f_userinfo_id'(){
117
- if(this.f_userinfo_id){
118
- this.model= []
119
- this.getmodel()
120
- }
121
- }
122
- },
123
- ready () {
124
- if (this.user && this.user.f_userinfo_id) {
125
- // this.model.search(`card_id = ${this.user.card_id}`)
126
- this.getmodel()
127
- }
128
- if(this.f_userinfo_id){
129
- this.getmodel()
130
- }
131
- }
132
- }
133
- </script>
134
- <style>
135
- .app-botton {
136
- position:fixed;
137
- background: #87b2dd;
138
- color: #FFF;
139
- padding: 8px;
140
- text-align: center;
141
- font-size: 1.2em;
142
- z-index: 10;
143
- opacity:0.5;
144
- bottom: 50px;
145
- margin-top: -10px;
146
- height: 40px;
147
- }
148
- </style>
1
+ <template >
2
+ <div class="panel panel-default auto repair-info-content">
3
+ <div class="panel-body" v-show="show">
4
+ <div class="panel panel-default well" v-for="row in model">
5
+ <div class="bg-info">
6
+ <div class="row form-group">
7
+ <div class="col-xs-12 col-sm-12 col-md-12">
8
+ <div class="row">
9
+ <div class="col-xs-6 col-sm-6 col-md-6">
10
+ 购气量: {{row.f_pregas}}
11
+ </div>
12
+ <div class="col-xs-6 col-sm-6 col-md-6">
13
+ 购气金额: {{row.f_preamount}}
14
+ </div>
15
+ <div class="col-xs-6 col-sm-6 col-md-6">
16
+ 收费状态: {{row.f_state}}
17
+ </div>
18
+ <div class="col-xs-6 col-sm-6 col-md-6">
19
+ 收款: {{row.f_collection}}
20
+ </div>
21
+ <div class="col-xs-12 col-sm-12 col-md-12">
22
+ 缴费方式: {{row.f_payment}}
23
+ </div>
24
+ <div class="col-xs-12 col-sm-12 col-md-12">
25
+ 营业网点: {{row.f_depname}}
26
+ </div>
27
+ <div class="col-xs-12 col-sm-12 col-md-12">
28
+ 操作员: {{row.f_operator}}
29
+ </div>
30
+ <div class="col-xs-12 col-sm-12 col-md-12">
31
+ 购气时间: {{row.f_operate_date}}
32
+ </div>
33
+
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <div className="panel panel-default well">
40
+ <div className="bg-info">
41
+ <div className="row form-group">
42
+ <div className="col-xs-12 col-sm-12 col-md-12">
43
+ <div className="row">
44
+ <div className="col-xs-6 col-sm-6 col-md-6">
45
+ 总购气量: {{ f_pregas_count }}
46
+ </div>
47
+ <div className="col-xs-6 col-sm-6 col-md-6">
48
+ 总购气金额: {{ f_preamount_count }}
49
+ </div>
50
+ <div className="col-xs-6 col-sm-6 col-md-6">
51
+ 购气次数: {{ model.length }}
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ <p v-show="model.length == 0 ">此用户暂无购气记录</p>
59
+ </div>
60
+ </div>
61
+ </template>
62
+
63
+ <script>
64
+ import { PagedList } from 'vue-client'
65
+ import co from 'co'
66
+ export default {
67
+ title: '查询用户',
68
+ data () {
69
+ return {
70
+ model: [],
71
+ f_pregas_count: 0,
72
+ f_preamount_count: 0,
73
+ show: false,
74
+ row: Object
75
+ }
76
+ },
77
+ props: {
78
+ user: {
79
+ type: Object
80
+ },
81
+ f_userinfo_id:''
82
+ },
83
+ methods: {
84
+ getmodel () {
85
+ let userinfoid
86
+ if(this.f_userinfo_id){
87
+ userinfoid = this.f_userinfo_id
88
+ }else{
89
+ userinfoid = this.user.f_userinfo_id
90
+ console.log(this.user.f_userinfo_id)
91
+ }
92
+ console.log(userinfoid)
93
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {items: '*', tablename: 't_sellinggas', orderitem: 'f_operate_date desc', condition:`f_state = '有效' and f_userinfo_id = '${userinfoid}'`}},{resolveMsg : null,rejectMsg :null}).then((row) => {
94
+ this.model = row.data
95
+ row.data.forEach(item => {
96
+ this.f_pregas_count += item.f_pregas
97
+ this.f_preamount_count += item.f_collection
98
+ })
99
+ this.show=true
100
+ })
101
+ },
102
+ back(){
103
+
104
+ }
105
+ },
106
+ watch: {
107
+ 'user' (val) {
108
+ // this.model.search(`card_id = ${this.user.card_id}`)
109
+ if(this.user){
110
+ if (!(this.user.isNuN)) {
111
+ this.model= []
112
+ this.getmodel()
113
+ }
114
+ }
115
+ },
116
+ 'f_userinfo_id'(){
117
+ if(this.f_userinfo_id){
118
+ this.model= []
119
+ this.getmodel()
120
+ }
121
+ }
122
+ },
123
+ ready () {
124
+ if (this.user && this.user.f_userinfo_id) {
125
+ // this.model.search(`card_id = ${this.user.card_id}`)
126
+ this.getmodel()
127
+ }
128
+ if(this.f_userinfo_id){
129
+ this.getmodel()
130
+ }
131
+ }
132
+ }
133
+ </script>
134
+ <style>
135
+ .app-botton {
136
+ position:fixed;
137
+ background: #87b2dd;
138
+ color: #FFF;
139
+ padding: 8px;
140
+ text-align: center;
141
+ font-size: 1.2em;
142
+ z-index: 10;
143
+ opacity:0.5;
144
+ bottom: 50px;
145
+ margin-top: -10px;
146
+ height: 40px;
147
+ }
148
+ </style>
@@ -63,6 +63,7 @@
63
63
  import Vue from 'vue'
64
64
  import * as Util from '../../Util'
65
65
  import JSEncrypt from 'jsencrypt'
66
+ import { validateStrongPasswordPhone } from '../../plugins/validateStrongPasswordPhone.js'
66
67
  //获取json配置文件
67
68
  let asyncReady = async function (self, url) {
68
69
  // 获取配置信息
@@ -308,10 +309,13 @@ export default {
308
309
  console.log('获取参数结束')
309
310
  this.loaderShow = false
310
311
  // 弱口令验证
311
- if (this.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(this.password))) {
312
- await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
313
- this.modifyPassword = true
314
- return
312
+ if (this.weakPassword) {
313
+ const pwdResult = validateStrongPasswordPhone(this.password)
314
+ if (!pwdResult.isValid) {
315
+ await this.$showMessage('登录系统: 此账户的密码过于简单,' + (pwdResult.errors[0] || '请修改密码后重新登陆!!!'), ['confirm'])
316
+ this.modifyPassword = true
317
+ return
318
+ }
315
319
  }
316
320
  this.$goto('nav-bottom')
317
321
  } catch (e) {
@@ -62,6 +62,7 @@
62
62
  import Vue from 'vue'
63
63
  import * as Util from '../../Util'
64
64
  import JSEncrypt from 'jsencrypt'
65
+ import { validateStrongPasswordPhone } from '../../plugins/validateStrongPasswordPhone.js'
65
66
  //获取json配置文件
66
67
  let asyncReady = async function (self, url) {
67
68
  // 获取配置信息
@@ -321,10 +322,14 @@ export default {
321
322
  console.log('获取参数结束')
322
323
  this.loaderShow = false
323
324
  // 弱口令验证
324
- if (this.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(this.password))) {
325
- await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
326
- this.modifyPassword = true
327
- return
325
+ // 弱口令验证
326
+ if (this.weakPassword) {
327
+ const pwdResult = validateStrongPasswordPhone(this.password)
328
+ if (!pwdResult.isValid) {
329
+ await this.$showMessage('登录系统: 此账户的密码过于简单,' + (pwdResult.errors[0] || '请修改密码后重新登陆!!!'), ['confirm'])
330
+ this.modifyPassword = true
331
+ return
332
+ }
328
333
  }
329
334
  this.$goto('nav-bottom')
330
335
  } catch (e) {
@@ -63,6 +63,7 @@
63
63
  import Vue from 'vue'
64
64
  import * as Util from '../../Util'
65
65
  import JSEncrypt from 'jsencrypt'
66
+ import { validateStrongPasswordPhone } from '../../plugins/validateStrongPasswordPhone.js'
66
67
  //获取json配置文件
67
68
  let asyncReady = async function (self, url) {
68
69
  // 获取配置信息
@@ -337,10 +338,13 @@ export default {
337
338
  console.log('获取参数结束')
338
339
  this.loaderShow = false
339
340
  // 弱口令验证
340
- if (this.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(this.password))) {
341
- await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
342
- this.modifyPassword = true
343
- return
341
+ if (this.weakPassword) {
342
+ const pwdResult = validateStrongPasswordPhone(this.password)
343
+ if (!pwdResult.isValid) {
344
+ await this.$showMessage('登录系统: 此账户的密码过于简单,' + (pwdResult.errors[0] || '请修改密码后重新登陆!!!'), ['confirm'])
345
+ this.modifyPassword = true
346
+ return
347
+ }
344
348
  }
345
349
  this.$goto('nav-bottom')
346
350
  } catch (e) {
@@ -64,6 +64,7 @@
64
64
  import Vue from 'vue'
65
65
  import * as Util from '../../Util'
66
66
  import JSEncrypt from 'jsencrypt'
67
+ import { validateStrongPasswordPhone } from '../../plugins/validateStrongPasswordPhone.js'
67
68
  //获取json配置文件
68
69
  let asyncReady = async function (self, url) {
69
70
  // 获取配置信息
@@ -368,10 +369,13 @@ export default {
368
369
  console.log('获取参数结束')
369
370
  this.loaderShow = false
370
371
  // 弱口令验证
371
- if (this.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(this.password))) {
372
- await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
373
- this.modifyPassword = true
374
- return
372
+ if (this.weakPassword) {
373
+ const pwdResult = validateStrongPasswordPhone(this.password)
374
+ if (!pwdResult.isValid) {
375
+ await this.$showMessage('登录系统: 此账户的密码过于简单,' + (pwdResult.errors[0] || '请修改密码后重新登陆!!!'), ['confirm'])
376
+ this.modifyPassword = true
377
+ return
378
+ }
375
379
  }
376
380
  this.$goto('nav-bottom')
377
381
  },
@@ -63,6 +63,7 @@
63
63
  import Vue from 'vue'
64
64
  import * as Util from '../../Util'
65
65
  import JSEncrypt from 'jsencrypt'
66
+ import { validateStrongPasswordPhone } from '../../plugins/validateStrongPasswordPhone.js'
66
67
  //获取json配置文件
67
68
  let asyncReady = async function (self, url) {
68
69
  try {
@@ -361,10 +362,14 @@ export default {
361
362
  console.log('获取参数结束')
362
363
  this.loaderShow = false
363
364
  // 弱口令验证
364
- if (this.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(this.password))) {
365
- await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
366
- this.modifyPassword = true
367
- return
365
+ // 弱口令验证
366
+ if (this.weakPassword) {
367
+ const pwdResult = validateStrongPasswordPhone(this.password)
368
+ if (!pwdResult.isValid) {
369
+ await this.$showMessage('登录系统: 此账户的密码过于简单,' + (pwdResult.errors[0] || '请修改密码后重新登陆!!!'), ['confirm'])
370
+ this.modifyPassword = true
371
+ return
372
+ }
368
373
  }
369
374
  this.$androidUtil.setPreference('current_create_current_address', JSON.stringify({
370
375
  f_address: '',
@@ -63,6 +63,7 @@
63
63
  import Vue from 'vue'
64
64
  import * as Util from '../../Util'
65
65
  import JSEncrypt from 'jsencrypt'
66
+ import { validateStrongPasswordPhone } from '../../plugins/validateStrongPasswordPhone.js'
66
67
  //获取json配置文件
67
68
  let asyncReady = async function (self, url) {
68
69
  try {
@@ -331,10 +332,14 @@ export default {
331
332
  console.log('获取参数结束')
332
333
  this.loaderShow = false
333
334
  // 弱口令验证
334
- if (this.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(this.password))) {
335
- await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
336
- this.modifyPassword = true
337
- return
335
+ // 弱口令验证
336
+ if (this.weakPassword) {
337
+ const pwdResult = validateStrongPasswordPhone(this.password)
338
+ if (!pwdResult.isValid) {
339
+ await this.$showMessage('登录系统: 此账户的密码过于简单,' + (pwdResult.errors[0] || '请修改密码后重新登陆!!!'), ['confirm'])
340
+ this.modifyPassword = true
341
+ return
342
+ }
338
343
  }
339
344
  this.$androidUtil.setPreference('current_create_current_address', JSON.stringify({
340
345
  f_address: '',