apply-clients 7.1.36-yuchuan-21 → 7.1.36-yuchuan-24

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.
@@ -6,14 +6,14 @@ var proxyMiddleware = require('http-proxy-middleware')
6
6
  var app = express()
7
7
  var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
- // var ldap = 'http://193.168.1.44:8600/'
9
+ var ldap = 'http://193.168.1.44:8600/'
10
10
  // var applyinstall = 'http://121.36.79.201:8400'
11
11
  // var ldap = 'http://193.168.1.64:8082'
12
- var ldap = 'http://61.134.61.238:8655'
13
- var applyinstall = 'http://61.134.61.238:8655'
14
- // var applyinstall = 'http://193.168.1.44:8600/'
15
- // var fadada = 'http://193.168.1.44:8600/'
16
- var fadada = 'http://61.134.61.238:8655'
12
+ // var ldap = 'http://61.134.61.238:8555'
13
+ // var applyinstall = 'http://61.134.61.238:8555'
14
+ var applyinstall = 'http://193.168.1.44:8600/'
15
+ var fadada = 'http://193.168.1.44:8600/'
16
+ // var fadada = 'http://61.134.61.238:8555'
17
17
  // var fadada = 'http://127.0.0.1:8080/'
18
18
  var proxyTable = {
19
19
  '/testfiles': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "7.1.36-yuchuan-21",
3
+ "version": "7.1.36-yuchuan-24",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -614,6 +614,33 @@ export default {
614
614
  throw '表读数必须大于0小于或等于1.5!'
615
615
  }
616
616
  }
617
+ if (this.userfile.f_gasbrand_id && this.userfile.f_meternumber) {
618
+ let data = {
619
+ f_meternumber: this.userfile.f_meternumber,
620
+ f_gasbrand_id: this.userfile.f_gasbrand_id
621
+ }
622
+ if (this.userfile.f_user_id) {
623
+ data.f_user_id = this.userfile.f_user_id
624
+ }
625
+ let http = new HttpResetClass()
626
+ let res = await http.load("POST",`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
627
+ resolveMsg: null,
628
+ rejectMsg: '表号验证失败!!'
629
+ })
630
+ console.log(`查询结果${res.data}`)
631
+ console.log(res.data)
632
+ if (!/^\d{12}$/.test(this.userfile.f_meternumber)) {
633
+ if(!/^\d{14}$/.test(this.userfile.f_meternumber)){
634
+ this.$showAlert('表号不符合规则', 'danger', 3000)
635
+ return
636
+ }
637
+ }
638
+ if (res.data === '表号已存在' || res.data === '表号无效') {
639
+ this.userfile.f_meternumber = ''
640
+ this.$showAlert(res.data, 'warning', 3000)
641
+ return
642
+ }
643
+ }
617
644
  let data = {
618
645
  user: Vue.user,
619
646
  userinfo: this.userinfo,
@@ -662,6 +689,12 @@ export default {
662
689
  })
663
690
  console.log(`查询结果${res.data}`)
664
691
  console.log(res.data)
692
+ if (!/^\d{12}$/.test(this.userfile.f_meternumber)) {
693
+ if(!/^\d{14}$/.test(this.userfile.f_meternumber)){
694
+ this.$showAlert('表号不符合规则', 'danger', 3000)
695
+ return
696
+ }
697
+ }
665
698
  if (res.data === '表号已存在' || res.data === '表号无效') {
666
699
  this.userfile.f_meternumber = ''
667
700
  this.$showAlert(res.data, 'warning', 3000)