address-client 4.0.24 → 4.0.26

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/gradlew.bat ADDED
@@ -0,0 +1,94 @@
1
+ @rem
2
+ @rem Copyright 2015 the original author or authors.
3
+ @rem
4
+ @rem Licensed under the Apache License, Version 2.0 (the "License");
5
+ @rem you may not use this file except in compliance with the License.
6
+ @rem You may obtain a copy of the License at
7
+ @rem
8
+ @rem https://www.apache.org/licenses/LICENSE-2.0
9
+ @rem
10
+ @rem Unless required by applicable law or agreed to in writing, software
11
+ @rem distributed under the License is distributed on an "AS IS" BASIS,
12
+ @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ @rem See the License for the specific language governing permissions and
14
+ @rem limitations under the License.
15
+ @rem
16
+ @rem SPDX-License-Identifier: Apache-2.0
17
+ @rem
18
+
19
+ @if "%DEBUG%"=="" @echo off
20
+ @rem ##########################################################################
21
+ @rem
22
+ @rem Gradle startup script for Windows
23
+ @rem
24
+ @rem ##########################################################################
25
+
26
+ @rem Set local scope for the variables with windows NT shell
27
+ if "%OS%"=="Windows_NT" setlocal
28
+
29
+ set DIRNAME=%~dp0
30
+ if "%DIRNAME%"=="" set DIRNAME=.
31
+ @rem This is normally unused
32
+ set APP_BASE_NAME=%~n0
33
+ set APP_HOME=%DIRNAME%
34
+
35
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
36
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
37
+
38
+ @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
39
+ set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
40
+
41
+ @rem Find java.exe
42
+ if defined JAVA_HOME goto findJavaFromJavaHome
43
+
44
+ set JAVA_EXE=java.exe
45
+ %JAVA_EXE% -version >NUL 2>&1
46
+ if %ERRORLEVEL% equ 0 goto execute
47
+
48
+ echo. 1>&2
49
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50
+ echo. 1>&2
51
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52
+ echo location of your Java installation. 1>&2
53
+
54
+ goto fail
55
+
56
+ :findJavaFromJavaHome
57
+ set JAVA_HOME=%JAVA_HOME:"=%
58
+ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
59
+
60
+ if exist "%JAVA_EXE%" goto execute
61
+
62
+ echo. 1>&2
63
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64
+ echo. 1>&2
65
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66
+ echo location of your Java installation. 1>&2
67
+
68
+ goto fail
69
+
70
+ :execute
71
+ @rem Setup the command line
72
+
73
+ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
74
+
75
+
76
+ @rem Execute Gradle
77
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
78
+
79
+ :end
80
+ @rem End local scope for the variables with windows NT shell
81
+ if %ERRORLEVEL% equ 0 goto mainEnd
82
+
83
+ :fail
84
+ rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
85
+ rem the _cmd.exe /c_ return code!
86
+ set EXIT_CODE=%ERRORLEVEL%
87
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
88
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
89
+ exit /b %EXIT_CODE%
90
+
91
+ :mainEnd
92
+ if "%OS%"=="Windows_NT" endlocal
93
+
94
+ :omega
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
- {
2
- "name": "address-client",
3
- "version": "4.0.24",
4
- "description": "地址管理前台组件",
5
- "author": "wanbochao",
6
- "license": "ISC",
7
- "main": "src/index.js",
8
- "keywords": [
9
- "sale"
10
- ],
11
- "scripts": {
12
- "unit": "karma start test/unit/karma.conf.js",
13
- "example": "node build/example-server.js",
14
- "dev": "node build/dev-server.js",
15
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
16
- "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
17
- "e2e": "node test/e2e/runner.js",
18
- "make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
19
- "release": "bash build/release.sh"
20
- },
21
- "repository": {
22
- "type": "git",
23
- "url": "https://gitee.com/aote/address_management.git"
24
- },
25
- "dependencies": {
26
- "crypto-js": "^4.1.1",
27
- "less-loader": "^2.2.3",
28
- "vue": "^1.0.17"
29
- },
30
- "devDependencies": {
31
- "babel-core": "^6.0.0",
32
- "babel-loader": "^6.0.0",
33
- "babel-plugin-transform-runtime": "^6.0.0",
34
- "babel-preset-es2015": "^6.0.0",
35
- "babel-preset-stage-2": "^6.0.0",
36
- "chai": "^3.5.0",
37
- "co": "^4.6.0",
38
- "connect-history-api-fallback": "^1.1.0",
39
- "cross-env": "^1.0.7",
40
- "cross-spawn": "^2.1.5",
41
- "css-loader": "^0.23.0",
42
- "echarts": "^4.1.0",
43
- "eslint": "^2.0.0",
44
- "eslint-config-standard": "^5.1.0",
45
- "eslint-friendly-formatter": "^1.2.2",
46
- "eslint-loader": "^1.3.0",
47
- "eslint-plugin-html": "^1.3.0",
48
- "eslint-plugin-promise": "^1.0.8",
49
- "eslint-plugin-standard": "^1.3.2",
50
- "eslint-plugin-vue": "^0.1.1",
51
- "eventsource-polyfill": "^0.9.6",
52
- "express": "^4.13.3",
53
- "extract-text-webpack-plugin": "^1.0.1",
54
- "file-loader": "^0.8.4",
55
- "function-bind": "^1.0.2",
56
- "html-webpack-plugin": "^2.8.1",
57
- "http-proxy-middleware": "^0.11.0",
58
- "inject-loader": "^2.0.1",
59
- "isparta-loader": "^2.0.0",
60
- "jasmine-core": "^2.4.1",
61
- "jquery": "^3.3.1",
62
- "json-loader": "^0.5.4",
63
- "karma": "^1.4.1",
64
- "karma-chrome-launcher": "^2.2.0",
65
- "karma-coverage": "^1.1.1",
66
- "karma-mocha": "^1.3.0",
67
- "karma-sinon-chai": "^1.3.1",
68
- "karma-sourcemap-loader": "^0.3.7",
69
- "karma-spec-reporter": "0.0.31",
70
- "karma-webpack": "^2.0.2",
71
- "less": "^2.7.3",
72
- "mkdirp": "^0.5.1",
73
- "mocha": "^3.2.0",
74
- "ncp": "^2.0.0",
75
- "rimraf": "^2.5.0",
76
- "sale-client": "3.2.11-17",
77
- "selenium-server": "2.52.0",
78
- "sinon": "^2.1.0",
79
- "sinon-chai": "^2.8.0",
80
- "style": "0.0.3",
81
- "style-loader": "^0.20.3",
82
- "ldap-clients": "3.0.48",
83
- "system-clients": "3.3.2",
84
- "url-loader": "^0.5.7",
85
- "vue-client": "1.24.162",
86
- "vue-hot-reload-api": "^1.2.0",
87
- "vue-html-loader": "^1.0.0",
88
- "vue-loader": "^8.2.1",
89
- "vue-resource": "^1.5.0",
90
- "vue-router": "^0.7.13",
91
- "vue-strap": "^1.0.9",
92
- "vue-style-loader": "^1.0.0",
93
- "vue-validator": "2.1.7",
94
- "webpack": "^1.12.2",
95
- "webpack-dev-middleware": "^1.4.0",
96
- "webpack-hot-middleware": "^2.6.0",
97
- "webpack-merge": "^0.8.3",
98
- "jsencrypt": "3.0.0-rc.1",
99
- "axios": "0.15.3"
100
- }
101
- }
1
+ {
2
+ "name": "address-client",
3
+ "version": "4.0.26",
4
+ "description": "地址管理前台组件",
5
+ "author": "wanbochao",
6
+ "license": "ISC",
7
+ "main": "src/index.js",
8
+ "keywords": [
9
+ "sale"
10
+ ],
11
+ "scripts": {
12
+ "unit": "karma start test/unit/karma.conf.js",
13
+ "example": "node build/example-server.js",
14
+ "dev": "node build/dev-server.js",
15
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
16
+ "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
17
+ "e2e": "node test/e2e/runner.js",
18
+ "make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
19
+ "release": "bash build/release.sh"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://gitee.com/aote/address_management.git"
24
+ },
25
+ "dependencies": {
26
+ "crypto-js": "^4.1.1",
27
+ "less-loader": "^2.2.3",
28
+ "vue": "^1.0.17"
29
+ },
30
+ "devDependencies": {
31
+ "babel-core": "^6.0.0",
32
+ "babel-loader": "^6.0.0",
33
+ "babel-plugin-transform-runtime": "^6.0.0",
34
+ "babel-preset-es2015": "^6.0.0",
35
+ "babel-preset-stage-2": "^6.0.0",
36
+ "chai": "^3.5.0",
37
+ "co": "^4.6.0",
38
+ "connect-history-api-fallback": "^1.1.0",
39
+ "cross-env": "^1.0.7",
40
+ "cross-spawn": "^2.1.5",
41
+ "css-loader": "^0.23.0",
42
+ "echarts": "^4.1.0",
43
+ "eslint": "^2.0.0",
44
+ "eslint-config-standard": "^5.1.0",
45
+ "eslint-friendly-formatter": "^1.2.2",
46
+ "eslint-loader": "^1.3.0",
47
+ "eslint-plugin-html": "^1.3.0",
48
+ "eslint-plugin-promise": "^1.0.8",
49
+ "eslint-plugin-standard": "^1.3.2",
50
+ "eslint-plugin-vue": "^0.1.1",
51
+ "eventsource-polyfill": "^0.9.6",
52
+ "express": "^4.13.3",
53
+ "extract-text-webpack-plugin": "^1.0.1",
54
+ "file-loader": "^0.8.4",
55
+ "function-bind": "^1.0.2",
56
+ "html-webpack-plugin": "^2.8.1",
57
+ "http-proxy-middleware": "^0.11.0",
58
+ "inject-loader": "^2.0.1",
59
+ "isparta-loader": "^2.0.0",
60
+ "jasmine-core": "^2.4.1",
61
+ "jquery": "^3.3.1",
62
+ "json-loader": "^0.5.4",
63
+ "karma": "^1.4.1",
64
+ "karma-chrome-launcher": "^2.2.0",
65
+ "karma-coverage": "^1.1.1",
66
+ "karma-mocha": "^1.3.0",
67
+ "karma-sinon-chai": "^1.3.1",
68
+ "karma-sourcemap-loader": "^0.3.7",
69
+ "karma-spec-reporter": "0.0.31",
70
+ "karma-webpack": "^2.0.2",
71
+ "less": "^2.7.3",
72
+ "mkdirp": "^0.5.1",
73
+ "mocha": "^3.2.0",
74
+ "ncp": "^2.0.0",
75
+ "rimraf": "^2.5.0",
76
+ "sale-client": "3.2.11-17",
77
+ "selenium-server": "2.52.0",
78
+ "sinon": "^2.1.0",
79
+ "sinon-chai": "^2.8.0",
80
+ "style": "0.0.3",
81
+ "style-loader": "^0.20.3",
82
+ "ldap-clients": "3.0.48",
83
+ "system-clients": "3.3.2",
84
+ "url-loader": "^0.5.7",
85
+ "vue-client": "1.24.162",
86
+ "vue-hot-reload-api": "^1.2.0",
87
+ "vue-html-loader": "^1.0.0",
88
+ "vue-loader": "^8.2.1",
89
+ "vue-resource": "^1.5.0",
90
+ "vue-router": "^0.7.13",
91
+ "vue-strap": "^1.0.9",
92
+ "vue-style-loader": "^1.0.0",
93
+ "vue-validator": "2.1.7",
94
+ "webpack": "^1.12.2",
95
+ "webpack-dev-middleware": "^1.4.0",
96
+ "webpack-hot-middleware": "^2.6.0",
97
+ "webpack-merge": "^0.8.3",
98
+ "jsencrypt": "3.0.0-rc.1",
99
+ "axios": "0.15.3"
100
+ }
101
+ }
@@ -196,13 +196,35 @@
196
196
  }
197
197
  },
198
198
  search () {
199
+ let condition = this.$refs.paged.$refs.cri.condition || ''
200
+ if (this.areaid) {
201
+ let areaCondition = `f_residential_area_id = '${this.areaid}'`
202
+ if (condition) {
203
+ condition = `${areaCondition} and ${condition}`
204
+ } else {
205
+ condition = areaCondition
206
+ }
207
+ this.$refs.paged.$refs.cri.condition = condition
208
+ }
209
+
199
210
  this.$refs.paged.$refs.cri.search()
200
211
  },
201
212
  selfSearch (args) {
202
213
  if (!this.f_orgid) {
203
214
  this.getorg([this.$login.f.orgid])
204
215
  }
205
- args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
216
+ // 处理 areaid 条件
217
+ let condition = args.condition || ''
218
+ if (this.areaid) {
219
+ let areaCondition = `f_residential_area_id = '${this.areaid}'`
220
+ if (condition) {
221
+ condition = `${areaCondition} and ${condition}`
222
+ } else {
223
+ condition = areaCondition
224
+ }
225
+ }
226
+ condition = `${condition} and a.f_filialeid = '${this.f_filialeids}'`
227
+ args.condition = condition
206
228
  this.model.search(args.condition, args.model)
207
229
  },
208
230
 
@@ -218,8 +240,18 @@
218
240
  },
219
241
  computed: {
220
242
  getCondition() {
243
+ let condition = this.$refs.paged.$refs.cri.condition || '';
244
+ if (this.areaid) {
245
+ let areaCondition = `f_residential_area_id = '${this.areaid}'`
246
+ if (condition) {
247
+ condition = `${areaCondition} and ${condition}`
248
+ } else {
249
+ condition = areaCondition
250
+ }
251
+ }
221
252
  return {
222
- condition: `${this.$refs.paged.$refs.cri.condition}` + `and a.f_filialeid = '${this.f_filialeids}'`}
253
+ condition: `${condition} and a.f_filialeid = '${this.f_filialeids}'`
254
+ }
223
255
  }
224
256
  }
225
257
 
@@ -102,6 +102,12 @@
102
102
  close-on-select condition="f_inputtor='{}'"
103
103
  placeholder='抄表员' v-model="model.f_inputtor"></v-select>
104
104
  </div>
105
+ <div :class="$parent.$parent.style">
106
+ <label class="font_normal_body">维修片区</label>
107
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_slice_area"
108
+ condition="f_slice_area like '%{}%'" placeholder="维修片区"
109
+ :size="model.f_slice_area ? model.f_slice_area.length*2 : 6"/>
110
+ </div>
105
111
  </div>
106
112
  </div>
107
113
  </criteria>
@@ -55,6 +55,13 @@
55
55
  close-on-select v-ref:slice>
56
56
  </v-select>
57
57
  </div>
58
+ <div class="col-sm-6 form-group">
59
+ <label class="font_normal_body">社&emsp;&emsp;区</label>
60
+ <v-select :value.sync="areamodel.f_community_id" v-model="areamodel.f_community_id"
61
+ :options='communitys' placeholder='社区' filer-key="name" :value-single="true"
62
+ close-on-select v-ref:community>
63
+ </v-select>
64
+ </div>
58
65
  <!--小区(特殊)信息-->
59
66
  <div v-if="!f_special"
60
67
  class="col-sm-6 form-group"
@@ -311,6 +318,7 @@ export default {
311
318
  pcdslist: [],
312
319
  //初始化街道数据
313
320
  streetslist: [],
321
+ communitys:[],
314
322
  //小区
315
323
  areamodel: {
316
324
  f_area_id: '',
@@ -369,6 +377,7 @@ export default {
369
377
  // 初始化片区
370
378
  await this.initSlice(this.f_filialeids)
371
379
  await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
380
+ await this.initcommunitys(` f_filialeid = '${this.f_filialeids}'`)
372
381
  },
373
382
  initrow(val) {
374
383
  this.areamodel.f_meter_book = val.f_meter_book;
@@ -466,6 +475,29 @@ export default {
466
475
  this.pcdslist = redata
467
476
 
468
477
  },
478
+ //初始化社区
479
+ async initcommunitys(conditon){
480
+ this.communitys = []
481
+ let HttpReset = new HttpResetClass()
482
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
483
+ data: {
484
+ items: 'id,f_community_name',
485
+ tablename: 't_community',
486
+ orderitem: 'id',
487
+ condition: conditon
488
+ }
489
+ }, {resolveMsg: null, rejectMsg: '获取社区失败!'})
490
+ let redata = []
491
+ req.data.forEach((row, n) => {
492
+ redata[n] = {
493
+ label: row.f_community_name,
494
+ value: row.id,
495
+ data:row,
496
+ id:row.id
497
+ }
498
+ })
499
+ this.communitys=redata
500
+ },
469
501
  //初始化街道 添加小区
470
502
  async initstreets(pconditon) {
471
503
  this.streetslist = []
@@ -622,6 +654,9 @@ export default {
622
654
  }
623
655
  }
624
656
  this.areamodel.f_pcd = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd
657
+ if (this.findbyid(this.communitys,this.areamodel.f_community_id)) {
658
+ this.areamodel.f_community=this.findbyid(this.communitys,this.areamodel.f_community_id).f_community_name
659
+ }
625
660
  this.areamodel.f_street = this.findbyid(this.streetslist, this.areamodel.f_street_id).f_street
626
661
 
627
662
  await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)