apply-clients 3.3.72 → 3.3.75

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/.project ADDED
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>ApplyClient</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ <buildCommand>
9
+ <name>org.eclipse.wst.validation.validationbuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ </buildSpec>
14
+ <natures>
15
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
16
+ </natures>
17
+ </projectDescription>
@@ -1,76 +1,76 @@
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
-
10
- // Define HTTP proxies to your custom API backend
11
- // https://github.com/chimurai/http-proxy-middleware
12
- var proxyTable = {
13
- '/rs': {
14
- target: 'http://192.168.20.27:8555'
15
- // target: 'http://192.168.30.86:8077'
16
- },
17
- '/AndroidRest/rs': {
18
- target: 'http://192.168.20.27:8555'
19
- }
20
- }
21
-
22
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
23
- publicPath: config.output.publicPath,
24
- stats: {
25
- colors: true,
26
- chunks: false
27
- }
28
- })
29
-
30
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
31
- // force page reload when html-webpack-plugin template changes
32
- compiler.plugin('compilation', function (compilation) {
33
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
34
- hotMiddleware.publish({action: 'reload'})
35
- cb()
36
- })
37
- })
38
-
39
- // proxy api requests
40
- Object.keys(proxyTable).forEach(function (context) {
41
- var options = proxyTable[context]
42
- if (typeof options === 'string') {
43
- options = {target: options}
44
- }
45
- app.use(proxyMiddleware(context, options))
46
- })
47
-
48
- // handle fallback for HTML5 history API
49
- app.use(require('connect-history-api-fallback')())
50
- // app.use(function (req, res, next) {
51
- // res.header('Access-Control-Allow-Origin', '*')
52
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
53
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
54
- // res.header('X-Powered-By', '3,2,1')
55
- // res.header('Access-Control-Allow-Credentials', 'true')
56
- // res.header('Content-Type', 'application/json;charset=utf-8')
57
- // next()
58
- // })
59
-
60
- // serve webpack bundle output
61
- app.use(devMiddleware)
62
-
63
- // enable hot-reload and state-preserving
64
- // compilation error display
65
- app.use(hotMiddleware)
66
-
67
- // serve pure static assets
68
- app.use('/static', express.static('./static'))
69
-
70
- module.exports = app.listen(8089, function (err) {
71
- if (err) {
72
- console.log(err)
73
- return
74
- }
75
- console.log('Listening at http://localhost:8089')
76
- })
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
+
10
+ // Define HTTP proxies to your custom API backend
11
+ // https://github.com/chimurai/http-proxy-middleware
12
+ var proxyTable = {
13
+ '/rs': {
14
+ target: 'http://192.168.20.27:8555'
15
+ // target: 'http://192.168.30.86:8077'
16
+ },
17
+ '/AndroidRest/rs': {
18
+ target: 'http://192.168.20.27:8555'
19
+ }
20
+ }
21
+
22
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
23
+ publicPath: config.output.publicPath,
24
+ stats: {
25
+ colors: true,
26
+ chunks: false
27
+ }
28
+ })
29
+
30
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
31
+ // force page reload when html-webpack-plugin template changes
32
+ compiler.plugin('compilation', function (compilation) {
33
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
34
+ hotMiddleware.publish({action: 'reload'})
35
+ cb()
36
+ })
37
+ })
38
+
39
+ // proxy api requests
40
+ Object.keys(proxyTable).forEach(function (context) {
41
+ var options = proxyTable[context]
42
+ if (typeof options === 'string') {
43
+ options = {target: options}
44
+ }
45
+ app.use(proxyMiddleware(context, options))
46
+ })
47
+
48
+ // handle fallback for HTML5 history API
49
+ app.use(require('connect-history-api-fallback')())
50
+ // app.use(function (req, res, next) {
51
+ // res.header('Access-Control-Allow-Origin', '*')
52
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
53
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
54
+ // res.header('X-Powered-By', '3,2,1')
55
+ // res.header('Access-Control-Allow-Credentials', 'true')
56
+ // res.header('Content-Type', 'application/json;charset=utf-8')
57
+ // next()
58
+ // })
59
+
60
+ // serve webpack bundle output
61
+ app.use(devMiddleware)
62
+
63
+ // enable hot-reload and state-preserving
64
+ // compilation error display
65
+ app.use(hotMiddleware)
66
+
67
+ // serve pure static assets
68
+ app.use('/static', express.static('./static'))
69
+
70
+ module.exports = app.listen(8089, function (err) {
71
+ if (err) {
72
+ console.log(err)
73
+ return
74
+ }
75
+ console.log('Listening at http://localhost:8089')
76
+ })
@@ -8,8 +8,8 @@ var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
9
  // var ldap = 'http://121.36.79.201:8400'
10
10
  // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://192.168.50.4:8400'
12
- var applyinstall = 'http://192.168.50.4:8400'
11
+ var ldap = 'http://192.168.20.28:8400'
12
+ var applyinstall = 'http://192.168.20.28:8400'
13
13
  var proxyTable = {
14
14
  '/wx': {
15
15
  target: ldap
@@ -32,6 +32,9 @@ var proxyTable = {
32
32
  '/rs/logic/updateApplyOrder': {
33
33
  target: ldap
34
34
  },
35
+ '/rs/sql/getStockMaterial': {
36
+ target: 'http://127.0.0.1:8080'
37
+ },
35
38
  '/rs/logic/getSaleInitData': {
36
39
  target: ldap
37
40
  },
@@ -58,9 +61,6 @@ var proxyTable = {
58
61
  '/rs/file': { // 文件上传
59
62
  target: applyinstall
60
63
  },
61
- '/files': {
62
- target: applyinstall
63
- },
64
64
  '/project': { // 文件回显
65
65
  target: applyinstall
66
66
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.72",
3
+ "version": "3.3.75",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,20 +1,20 @@
1
- <template>
2
- <div>
3
- <app-base class="bg">
4
- <div class='flex'>
5
- <article>
6
- <route :comp="{name: 'login'}"></route>
7
- </article>
8
- </div>
9
- </app-base>
10
- </div>
11
- </template>
12
-
13
- <script>
14
-
15
-
16
- export default {
17
-
18
-
19
- }
20
- </script>
1
+ <template>
2
+ <div>
3
+ <app-base class="bg">
4
+ <div class='flex'>
5
+ <article>
6
+ <route :comp="{name: 'login'}"></route>
7
+ </article>
8
+ </div>
9
+ </app-base>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+
15
+
16
+ export default {
17
+
18
+
19
+ }
20
+ </script>
@@ -26,6 +26,9 @@ export default function () {
26
26
  Vue.component('app-apply-devices-management', (resolve) => { require(['./components/android/Process/Processes/AppDevicesManagement'], resolve) })
27
27
  Vue.component('app-charge-management', (resolve) => { require(['./components/android/Process/Processes/AppChargeManagement'], resolve) })
28
28
  Vue.component('app-supplemental-agreement', (resolve) => { require(['./components/android/Process/Processes/AppSupplementalAgreement'], resolve) })
29
-
29
+ // 选择用户信息
30
+ Vue.component('select-userinfo', (resolve) => { require(['./components/android/Process/Processes/selectUserinfo'], resolve) })
31
+ // 选择报建项目
32
+ Vue.component('select-apply', (resolve) => { require(['./components/android/Process/Processes/selectApply'], resolve) })
30
33
  Vue.component('app-build-sign', (resolve) => { require(['./components/android/Process/Processes/AppBuildSign'], resolve) })
31
34
  }
@@ -1,9 +1,11 @@
1
1
  <template>
2
2
  <div class="form-horizontal select-overspread">
3
+ <validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
4
+ <form>
3
5
  <div v-for="(index,item) in data.fields">
4
6
  <!--input-->
5
7
  <div :style="item.style ? item.style : ''"
6
- v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'app' || !item.device)"
8
+ v-if="(item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email') && !item.hidden && (item.device === 'app' || !item.device)&& (item.label !== '证件号码')&&(item.label !== '身份证') && (item.label !== '用户电话')"
7
9
  :class="[item.required && !(item.value) ? 'apply-has-error' : '', item.bootstraped ? item.bootstraped + ' form-group app-input':'col-xs-12 form-group app-input']">
8
10
  <label class="control-label-justify">{{item.label}}</label>
9
11
  <div :style="item.value_style ? item.value_style:''"
@@ -22,6 +24,54 @@
22
24
  </div>
23
25
  </div>
24
26
 
27
+ <!--input身份证验证-->
28
+ <div :style="item.style ? item.style : ''"
29
+ v-if="(item.label==='身份证') || (data.f_credentials === '身份证' && item.label === '证件号码')"
30
+ :class="[$v.f_idnumber2.identityCardValid ? 'apply-has-error' : '',item.bootstraped ? item.bootstraped + ' form-group app-input':'col-xs-12 form-group app-input']">
31
+ <label class="control-label-justify">{{item.label}}</label>
32
+ <div :style="item.value_style ? item.value_style:''"
33
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
34
+ <input class="" style="width: 100%"
35
+ :type="item.type"
36
+ maxlength="18"
37
+ v-model="data.fields[index].value"
38
+ :placeholder="item.placeholder"
39
+ :value="data.fields[index].value"
40
+ onKeypress="return(/[\d\.]/.test(String.fromCharCode(event.keyCode)))"
41
+ :readonly="item.readonly"
42
+ v-validate:f_idnumber2='{identityCardValid: true}'
43
+ @change="onchange(index)"
44
+ @blur="onblur(index)"
45
+ @input="oninput(index)"
46
+ />
47
+ </div>
48
+ </div>
49
+
50
+
51
+ <!--input手机号验证-->
52
+ <div :style="item.style ? item.style : ''"
53
+ v-if="item.label === '用户电话'"
54
+ :class="[$v.f_user_phone.minlength || $v.f_user_phone.maxlength ? 'apply-has-error' : '',item.bootstraped ? item.bootstraped + ' form-group app-input':'col-xs-12 form-group app-input']">
55
+ <label class="control-label-justify">{{item.label}}</label>
56
+ <div :style="item.value_style ? item.value_style:''"
57
+ :class="item.value_bootstraped ? item.value_bootstraped : 'col-xs-8'">
58
+ <input class="" style="width: 100%"
59
+ maxlength="18"
60
+ type="number"
61
+ onKeypress="return(/[\d\.]/.test(String.fromCharCode(event.keyCode)))"
62
+ oninput="if(value.length > 11) value=value.slice(0,11)"
63
+ v-validate:f_user_phone="{minlength: 11, maxlength: 11 }"
64
+ v-model="data.fields[index].value"
65
+ :placeholder="item.placeholder"
66
+ :value="data.fields[index].value"
67
+ :readonly="item.readonly"
68
+ @change="onchange(index)"
69
+ @blur="onblur(index)"
70
+ @input="oninput(index)"
71
+ />
72
+ </div>
73
+ </div>
74
+
25
75
  <!--select-->
26
76
  <div :style="item.style ? item.style : ''"
27
77
  v-if="item.type==='select' && !item.hidden && (item.device === 'app' || !item.device)"
@@ -34,6 +84,7 @@
34
84
  :placeholder="item.placeholder"
35
85
  :search="item.search"
36
86
  close-on-select value-single
87
+ @select-search="selectSearch($arguments,index)"
37
88
  :options="data.fields[index].options"
38
89
  v-model="data.fields[index].value"
39
90
  :value.sync="data.fields[index].value"
@@ -108,7 +159,7 @@
108
159
  </div>
109
160
  </div>
110
161
 
111
- <div class="col-sm-12 col-xs-12">
162
+ <div class="col-sm-12 col-xs-12" id="test11">
112
163
  <accordion one-at-a-time="true">
113
164
  <panel v-for="(i,item) in data.onetomany" :header="item.title" :is-open="false" type="primary">
114
165
  <app-onetomany :onetomany="item" :index="i"></app-onetomany>
@@ -128,7 +179,16 @@
128
179
  :disabled="button.disabled && disable_button"
129
180
  style="min-width:100px"
130
181
  :class="button.disabled && disable_button ? 'btn btn-default button_spacing' : 'btn btn-primary button_spacing'"
131
- v-if="!button.hidden"
182
+ v-if="!button.hidden && button.button_name !=='提交'&& button.button_name !=='确认'"
183
+ @click.prevent="click_but(button)"
184
+ >
185
+ {{button.button_name}}
186
+ </button>
187
+ <button v-for="(index,button) in data.buttons"
188
+ :disabled="(button.disabled && disable_button) || (!$v.valid)"
189
+ style="min-width:100px"
190
+ :class="button.disabled && disable_button || (!$v.valid) ? 'btn btn-default button_spacing' : 'btn btn-primary button_spacing'"
191
+ v-if="!button.hidden && (button.button_name ==='提交'||button.button_name ==='确认')"
132
192
  @click.prevent="click_but(button)"
133
193
  >
134
194
  {{button.button_name}}
@@ -238,6 +298,7 @@
238
298
  </button>
239
299
  </footer>
240
300
  </modal>
301
+ </form>>
241
302
  </div>
242
303
  </template>
243
304
  <script>
@@ -519,6 +580,12 @@ export default {
519
580
  }
520
581
  }
521
582
  }
583
+ },
584
+ selectSearch(event, index) {
585
+ if (this.data.fields[index].selectSearch) {
586
+ this.$dispatch(this.data.fields[index].selectSearch, event[0], index)
587
+ }
588
+ this.$dispatch('selectSearch', event[0], index)
522
589
  }
523
590
  },
524
591
  events: {