apply-clients 7.1.36-yuchuan-61 → 7.1.36-yuchuan-63

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,187 +1,187 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- // var httpProxy = require('http-proxy')
6
- var app = express()
7
- var compiler = webpack(config)
8
- // var proxy = httpProxy.createProxyServer()
9
- var ldap = 'http://193.168.1.5:8765'
10
- var applyinstall = 'http://193.168.1.5:8765'
11
- var fadada = 'http://193.168.1.5:8765'
12
- var proxyTable = {
13
- '/baojianFile': {
14
- target: fadada
15
- },
16
- '/testfiles': {
17
- target: fadada
18
- },
19
- '/api/af-auth/login': {
20
- target: fadada
21
- },
22
- '/rs/logic/getAllNode': {
23
- target: fadada
24
- },
25
- '/android.html/rs': {
26
- target: fadada,
27
- pathRewrite: {
28
- '^/android.html': ''
29
- }
30
- },
31
- '/webapps/applyinstall/excel': {
32
- target: fadada
33
- },
34
-
35
- '/rs/logic/pushShortUrlSms': {
36
- target: fadada
37
- },
38
- '/rs/logic/generateContract': {
39
- target: fadada
40
- },
41
- '/rs/logic/getAuthSubject': {
42
- target: fadada
43
- },
44
- '/rs/sql/getAuthSubjectList': {
45
- target: fadada
46
- },
47
- '/rs/logic/keyExtSign': {
48
- target: fadada
49
- },
50
- '/rs/logic/keyExtSignAuto': {
51
- target: fadada
52
- },
53
- // 重新发送实名认证短信
54
- '/rs/logic/anotherAuthSubject': {
55
- target: fadada
56
- },
57
- // ---------------------------
58
- '/rs/logic/getSaleInitData': {
59
- target: ldap
60
- },
61
- '/rs/logic/saveInstruct': {
62
- target: 'http://193.168.1.64:8082'
63
- },
64
- '/rs/logic/updateNetWorkValve': {
65
- target: 'http://193.168.1.64:8082'
66
- },
67
- '/rs/logic/uploadSave': {
68
- target: 'http://193.168.1.16:8003'
69
- },
70
- '/rs/workflow': {
71
- target: applyinstall
72
- },
73
- '/apply': {
74
- target: applyinstall
75
- },
76
- '/rs/vue': {
77
- target: ldap
78
- },
79
- // 查找资源服务数据
80
- '/rs/search': {
81
- target: ldap
82
- },
83
- // 发票组织数据
84
- '/rs/logic/bjEticketCharge': {
85
- target: 'http://193.168.1.6:8082'
86
- },
87
- // 开发票
88
- '/rs/logic/bjOpenEticket': {
89
- target: 'http://193.168.1.6:8082'
90
- },
91
- // 获取发票明细
92
- '/rs/logic/queryEticket': {
93
- target: 'http://193.168.1.44:8400'
94
- },
95
- // 创建小区
96
- '/rs/logic/address_updatearea': {
97
- target: ldap
98
- },
99
- '/rs/phone/send': {
100
- target: 'http://193.168.1.21:80'
101
- },
102
- // 用户登录服务地址
103
- '/rs/user': {
104
- target: ldap
105
- },
106
- '/rs/logic/getInitData': {
107
- target: ldap?ldap:applyinstall
108
- },
109
- '/rs/logic/getLogin': {
110
- target: ldap
111
- },
112
- '/rs/file': { // 文件上传
113
- target: applyinstall
114
- },
115
- '/project': { // 文件回显
116
- target: applyinstall
117
- },
118
- '/rs/apply': {
119
- target: applyinstall,
120
- pathRewrite: {
121
- '^/rs/apply': '/rs'
122
- }
123
- },
124
- '/rs': {
125
- target: applyinstall
126
- },
127
- // '/ws': {
128
- // target: applyinstall,
129
- // ws: true // 代理webSocket
130
- // }
131
- }
132
-
133
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
134
- publicPath: config.output.publicPath,
135
- stats: {
136
- colors: true,
137
- chunks: false
138
- }
139
- })
140
-
141
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
142
- // force page reload when html-webpack-plugin template changes
143
- compiler.plugin('compilation', function (compilation) {
144
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
145
- hotMiddleware.publish({action: 'reload'})
146
- cb()
147
- })
148
- })
149
-
150
- // proxy api requests
151
- Object.keys(proxyTable).forEach(function (context) {
152
- var options = proxyTable[context]
153
- if (typeof options === 'string') {
154
- options = {target: options}
155
- }
156
- app.use(proxyMiddleware(context, options))
157
- })
158
-
159
- // handle fallback for HTML5 history API
160
- app.use(require('connect-history-api-fallback')())
161
- // app.use(function (req, res, next) {
162
- // res.header('Access-Control-Allow-Origin', '*')
163
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
164
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
165
- // res.header('X-Powered-By', '3,2,1')
166
- // res.header('Access-Control-Allow-Credentials', 'true')
167
- // res.header('Content-Type', 'application/json;charset=utf-8')
168
- // next()
169
- // })
170
-
171
- // serve webpack bundle output
172
- app.use(devMiddleware)
173
-
174
- // enable hot-reload and state-preserving
175
- // compilation error display
176
- app.use(hotMiddleware)
177
-
178
- // serve pure static assets
179
- app.use('/static', express.static('./static'))
180
-
181
- module.exports = app.listen(8400, function (err) {
182
- if (err) {
183
- console.log(err)
184
- return
185
- }
186
- console.log('Listening at http://localhost:8400')
187
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+ var app = express()
7
+ var compiler = webpack(config)
8
+ // var proxy = httpProxy.createProxyServer()
9
+ var ldap = 'http://61.134.61.238:8655'
10
+ var applyinstall = 'http://61.134.61.238:8655'
11
+ var fadada = 'http://61.134.61.238:8655'
12
+ var proxyTable = {
13
+ '/baojianFile': {
14
+ target: fadada
15
+ },
16
+ '/testfiles': {
17
+ target: fadada
18
+ },
19
+ '/api/af-auth/login': {
20
+ target: fadada
21
+ },
22
+ '/rs/logic/getAllNode': {
23
+ target: fadada
24
+ },
25
+ '/android.html/rs': {
26
+ target: fadada,
27
+ pathRewrite: {
28
+ '^/android.html': ''
29
+ }
30
+ },
31
+ '/webapps/applyinstall/excel': {
32
+ target: fadada
33
+ },
34
+
35
+ '/rs/logic/pushShortUrlSms': {
36
+ target: fadada
37
+ },
38
+ '/rs/logic/generateContract': {
39
+ target: fadada
40
+ },
41
+ '/rs/logic/getAuthSubject': {
42
+ target: fadada
43
+ },
44
+ '/rs/sql/getAuthSubjectList': {
45
+ target: fadada
46
+ },
47
+ '/rs/logic/keyExtSign': {
48
+ target: fadada
49
+ },
50
+ '/rs/logic/keyExtSignAuto': {
51
+ target: fadada
52
+ },
53
+ // 重新发送实名认证短信
54
+ '/rs/logic/anotherAuthSubject': {
55
+ target: fadada
56
+ },
57
+ // ---------------------------
58
+ '/rs/logic/getSaleInitData': {
59
+ target: ldap
60
+ },
61
+ '/rs/logic/saveInstruct': {
62
+ target: 'http://193.168.1.64:8082'
63
+ },
64
+ '/rs/logic/updateNetWorkValve': {
65
+ target: 'http://193.168.1.64:8082'
66
+ },
67
+ '/rs/logic/uploadSave': {
68
+ target: 'http://193.168.1.16:8003'
69
+ },
70
+ '/rs/workflow': {
71
+ target: applyinstall
72
+ },
73
+ '/apply': {
74
+ target: applyinstall
75
+ },
76
+ '/rs/vue': {
77
+ target: ldap
78
+ },
79
+ // 查找资源服务数据
80
+ '/rs/search': {
81
+ target: ldap
82
+ },
83
+ // 发票组织数据
84
+ '/rs/logic/bjEticketCharge': {
85
+ target: 'http://193.168.1.6:8082'
86
+ },
87
+ // 开发票
88
+ '/rs/logic/bjOpenEticket': {
89
+ target: 'http://193.168.1.6:8082'
90
+ },
91
+ // 获取发票明细
92
+ '/rs/logic/queryEticket': {
93
+ target: 'http://193.168.1.44:8400'
94
+ },
95
+ // 创建小区
96
+ '/rs/logic/address_updatearea': {
97
+ target: ldap
98
+ },
99
+ '/rs/phone/send': {
100
+ target: 'http://193.168.1.21:80'
101
+ },
102
+ // 用户登录服务地址
103
+ '/rs/user': {
104
+ target: ldap
105
+ },
106
+ '/rs/logic/getInitData': {
107
+ target: ldap?ldap:applyinstall
108
+ },
109
+ '/rs/logic/getLogin': {
110
+ target: ldap
111
+ },
112
+ '/rs/file': { // 文件上传
113
+ target: applyinstall
114
+ },
115
+ '/project': { // 文件回显
116
+ target: applyinstall
117
+ },
118
+ '/rs/apply': {
119
+ target: applyinstall,
120
+ pathRewrite: {
121
+ '^/rs/apply': '/rs'
122
+ }
123
+ },
124
+ '/rs': {
125
+ target: applyinstall
126
+ },
127
+ // '/ws': {
128
+ // target: applyinstall,
129
+ // ws: true // 代理webSocket
130
+ // }
131
+ }
132
+
133
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
134
+ publicPath: config.output.publicPath,
135
+ stats: {
136
+ colors: true,
137
+ chunks: false
138
+ }
139
+ })
140
+
141
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
142
+ // force page reload when html-webpack-plugin template changes
143
+ compiler.plugin('compilation', function (compilation) {
144
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
145
+ hotMiddleware.publish({action: 'reload'})
146
+ cb()
147
+ })
148
+ })
149
+
150
+ // proxy api requests
151
+ Object.keys(proxyTable).forEach(function (context) {
152
+ var options = proxyTable[context]
153
+ if (typeof options === 'string') {
154
+ options = {target: options}
155
+ }
156
+ app.use(proxyMiddleware(context, options))
157
+ })
158
+
159
+ // handle fallback for HTML5 history API
160
+ app.use(require('connect-history-api-fallback')())
161
+ // app.use(function (req, res, next) {
162
+ // res.header('Access-Control-Allow-Origin', '*')
163
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
164
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
165
+ // res.header('X-Powered-By', '3,2,1')
166
+ // res.header('Access-Control-Allow-Credentials', 'true')
167
+ // res.header('Content-Type', 'application/json;charset=utf-8')
168
+ // next()
169
+ // })
170
+
171
+ // serve webpack bundle output
172
+ app.use(devMiddleware)
173
+
174
+ // enable hot-reload and state-preserving
175
+ // compilation error display
176
+ app.use(hotMiddleware)
177
+
178
+ // serve pure static assets
179
+ app.use('/static', express.static('./static'))
180
+
181
+ module.exports = app.listen(8400, function (err) {
182
+ if (err) {
183
+ console.log(err)
184
+ return
185
+ }
186
+ console.log('Listening at http://localhost:8400')
187
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "7.1.36-yuchuan-61",
3
+ "version": "7.1.36-yuchuan-63",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -523,20 +523,23 @@ export default {
523
523
  } else if (code.startsWith('02') || code.startsWith('22')) {
524
524
  var num2 = this.getMeterBrands('千嘉NB物联网表')
525
525
  this.userfile.f_gasbrand_id = num2
526
+ } else if (code.startsWith('03')) {
527
+ var num2 = this.getMeterBrands('先锋NB民用物联网表')
528
+ this.userfile.f_gasbrand_id = num2
526
529
  }
527
530
  //气表型号
528
- if (code.substring(4, 5) == 7) {
531
+ if (code.substring(4, 5) == 7 || code.substring(4, 5) == 0) {
529
532
  await this.gasbrandValue('JGD1.6-NNB物联网表')
530
533
  const value=this.modelCode
531
534
  this.userfile.f_gasmodel_id = value
532
- } else if (code.substring(4, 5) == 8) {
535
+ } else if (code.substring(4, 5) == 8 ||code.substring(4, 5) == 1) {
533
536
 
534
537
  await this.gasbrandValue('JGD2.5-NNB物联网表')
535
538
  const value1=this.modelCode
536
539
  this.userfile.f_gasmodel_id =value1
537
- } else if (code.substring(4, 5) == 9) {
540
+ } else if (code.substring(4, 5) == 9 ||code.substring(4, 5) == 2) {
538
541
  await this.gasbrandValue('JGD4S-NNB物联网表')
539
- const value2 =this.modelCode
542
+ const value2 =this.modelCode
540
543
  this.userfile.f_gasmodel_id = value2
541
544
  }
542
545
  // 表向
@@ -469,11 +469,11 @@ export default {
469
469
  async gasbrandChange() {
470
470
  // 清空已保存的气表型号
471
471
  // this.newUserfile.f_new_gasbrand_id = null
472
- if (isEmpty(newUserfile.f_new_gasbrand_id)) {
472
+ if (isEmpty(this.newUserfile.f_new_gasbrand_id)) {
473
473
  return
474
474
  }
475
475
  let data = {
476
- f_gasbrand_id: newUserfile.f_new_gasbrand_id
476
+ f_gasbrand_id: this.newUserfile.f_new_gasbrand_id
477
477
  }
478
478
  let http = new HttpResetClass()
479
479
  let res = await http.load(
@@ -116,13 +116,23 @@ export default {
116
116
  longitude: '',
117
117
  latitude: '',
118
118
  f_qr_code: '',
119
- causeOption: this.$appdata.getParam('施封原因')
119
+ causeOption: []
120
120
  }
121
121
  },
122
122
  ready () {
123
- console.log('this.row=', JSON.stringify(this.row))
123
+ if (Vue.user.rolestr.includes('新安检员')) {
124
+ this.causeOption = [{label: '安检施封', value: '安检施封'}]
125
+ this.cause = '安检施封'
126
+ } else if (Vue.user.rolestr.includes('通气组安检')) {
127
+ this.causeOption = [{label: '通气施封', value: '通气施封'}]
128
+ this.cause = '通气施封'
129
+ } else if (Vue.user.rolestr.includes('新维修员')) {
130
+ this.causeOption = [{label: '换表施封', value: '换表施封'}, {label: '维修施封', value: '维修施封'}]
131
+ } else {
132
+ this.causeOption = this.$appdata.getParam('施封原因')
133
+ }
124
134
  this.getLocation()
125
- if (this.longitude == 0){
135
+ if (this.longitude === 0) {
126
136
  this.timer = window.setInterval(this.getLocation, 3000)
127
137
  }
128
138
  },