address-client 3.2.3 → 3.2.4-gongyi

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.
File without changes
@@ -1,2 +1,2 @@
1
- #Mon Dec 07 15:35:10 CST 2020
2
- gradle.version=5.2.1
1
+ #Wed Jul 09 14:51:09 CST 2025
2
+ gradle.version=8.5
Binary file
Binary file
@@ -1,5 +1,7 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4
+ networkTimeout=10000
5
+ validateDistributionUrl=true
4
6
  zipStoreBase=GRADLE_USER_HOME
5
7
  zipStorePath=wrapper/dists
package/gradlew CHANGED
@@ -1,78 +1,127 @@
1
- #!/usr/bin/env sh
1
+ #!/bin/sh
2
+
3
+ #
4
+ # Copyright © 2015-2021 the original authors.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
2
18
 
3
19
  ##############################################################################
4
- ##
5
- ## Gradle start up script for UN*X
6
- ##
20
+ #
21
+ # Gradle start up script for POSIX generated by Gradle.
22
+ #
23
+ # Important for running:
24
+ #
25
+ # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26
+ # noncompliant, but you have some other compliant shell such as ksh or
27
+ # bash, then to run this script, type that shell name before the whole
28
+ # command line, like:
29
+ #
30
+ # ksh Gradle
31
+ #
32
+ # Busybox and similar reduced shells will NOT work, because this script
33
+ # requires all of these POSIX shell features:
34
+ # * functions;
35
+ # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36
+ # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37
+ # * compound commands having a testable exit status, especially «case»;
38
+ # * various built-in commands including «command», «set», and «ulimit».
39
+ #
40
+ # Important for patching:
41
+ #
42
+ # (2) This script targets any POSIX shell, so it avoids extensions provided
43
+ # by Bash, Ksh, etc; in particular arrays are avoided.
44
+ #
45
+ # The "traditional" practice of packing multiple parameters into a
46
+ # space-separated string is a well documented source of bugs and security
47
+ # problems, so this is (mostly) avoided, by progressively accumulating
48
+ # options in "$@", and eventually passing that to Java.
49
+ #
50
+ # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51
+ # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52
+ # see the in-line comments for details.
53
+ #
54
+ # There are tweaks for specific operating systems such as AIX, CygWin,
55
+ # Darwin, MinGW, and NonStop.
56
+ #
57
+ # (3) This script is generated from the Groovy template
58
+ # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
+ # within the Gradle project.
60
+ #
61
+ # You can find Gradle at https://github.com/gradle/gradle/.
62
+ #
7
63
  ##############################################################################
8
64
 
9
65
  # Attempt to set APP_HOME
66
+
10
67
  # Resolve links: $0 may be a link
11
- PRG="$0"
12
- # Need this for relative symlinks.
13
- while [ -h "$PRG" ] ; do
14
- ls=`ls -ld "$PRG"`
15
- link=`expr "$ls" : '.*-> \(.*\)$'`
16
- if expr "$link" : '/.*' > /dev/null; then
17
- PRG="$link"
18
- else
19
- PRG=`dirname "$PRG"`"/$link"
20
- fi
68
+ app_path=$0
69
+
70
+ # Need this for daisy-chained symlinks.
71
+ while
72
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73
+ [ -h "$app_path" ]
74
+ do
75
+ ls=$( ls -ld "$app_path" )
76
+ link=${ls#*' -> '}
77
+ case $link in #(
78
+ /*) app_path=$link ;; #(
79
+ *) app_path=$APP_HOME$link ;;
80
+ esac
21
81
  done
22
- SAVED="`pwd`"
23
- cd "`dirname \"$PRG\"`/" >/dev/null
24
- APP_HOME="`pwd -P`"
25
- cd "$SAVED" >/dev/null
26
-
27
- APP_NAME="Gradle"
28
- APP_BASE_NAME=`basename "$0"`
29
82
 
30
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31
- DEFAULT_JVM_OPTS='"-Xmx64m"'
83
+ # This is normally unused
84
+ # shellcheck disable=SC2034
85
+ APP_BASE_NAME=${0##*/}
86
+ # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
+ APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
32
88
 
33
89
  # Use the maximum available, or set MAX_FD != -1 to use that value.
34
- MAX_FD="maximum"
90
+ MAX_FD=maximum
35
91
 
36
92
  warn () {
37
93
  echo "$*"
38
- }
94
+ } >&2
39
95
 
40
96
  die () {
41
97
  echo
42
98
  echo "$*"
43
99
  echo
44
100
  exit 1
45
- }
101
+ } >&2
46
102
 
47
103
  # OS specific support (must be 'true' or 'false').
48
104
  cygwin=false
49
105
  msys=false
50
106
  darwin=false
51
107
  nonstop=false
52
- case "`uname`" in
53
- CYGWIN* )
54
- cygwin=true
55
- ;;
56
- Darwin* )
57
- darwin=true
58
- ;;
59
- MINGW* )
60
- msys=true
61
- ;;
62
- NONSTOP* )
63
- nonstop=true
64
- ;;
108
+ case "$( uname )" in #(
109
+ CYGWIN* ) cygwin=true ;; #(
110
+ Darwin* ) darwin=true ;; #(
111
+ MSYS* | MINGW* ) msys=true ;; #(
112
+ NONSTOP* ) nonstop=true ;;
65
113
  esac
66
114
 
67
115
  CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68
116
 
117
+
69
118
  # Determine the Java command to use to start the JVM.
70
119
  if [ -n "$JAVA_HOME" ] ; then
71
120
  if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72
121
  # IBM's JDK on AIX uses strange locations for the executables
73
- JAVACMD="$JAVA_HOME/jre/sh/java"
122
+ JAVACMD=$JAVA_HOME/jre/sh/java
74
123
  else
75
- JAVACMD="$JAVA_HOME/bin/java"
124
+ JAVACMD=$JAVA_HOME/bin/java
76
125
  fi
77
126
  if [ ! -x "$JAVACMD" ] ; then
78
127
  die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
@@ -81,92 +130,120 @@ Please set the JAVA_HOME variable in your environment to match the
81
130
  location of your Java installation."
82
131
  fi
83
132
  else
84
- JAVACMD="java"
85
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
133
+ JAVACMD=java
134
+ if ! command -v java >/dev/null 2>&1
135
+ then
136
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86
137
 
87
138
  Please set the JAVA_HOME variable in your environment to match the
88
139
  location of your Java installation."
140
+ fi
89
141
  fi
90
142
 
91
143
  # Increase the maximum file descriptors if we can.
92
- if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93
- MAX_FD_LIMIT=`ulimit -H -n`
94
- if [ $? -eq 0 ] ; then
95
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96
- MAX_FD="$MAX_FD_LIMIT"
97
- fi
98
- ulimit -n $MAX_FD
99
- if [ $? -ne 0 ] ; then
100
- warn "Could not set maximum file descriptor limit: $MAX_FD"
101
- fi
102
- else
103
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104
- fi
144
+ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145
+ case $MAX_FD in #(
146
+ max*)
147
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148
+ # shellcheck disable=SC2039,SC3045
149
+ MAX_FD=$( ulimit -H -n ) ||
150
+ warn "Could not query maximum file descriptor limit"
151
+ esac
152
+ case $MAX_FD in #(
153
+ '' | soft) :;; #(
154
+ *)
155
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156
+ # shellcheck disable=SC2039,SC3045
157
+ ulimit -n "$MAX_FD" ||
158
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
159
+ esac
105
160
  fi
106
161
 
107
- # For Darwin, add options to specify how the application appears in the dock
108
- if $darwin; then
109
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110
- fi
162
+ # Collect all arguments for the java command, stacking in reverse order:
163
+ # * args from the command line
164
+ # * the main class name
165
+ # * -classpath
166
+ # * -D...appname settings
167
+ # * --module-path (only if needed)
168
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
169
+
170
+ # For Cygwin or MSYS, switch paths to Windows format before running java
171
+ if "$cygwin" || "$msys" ; then
172
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
173
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
174
+
175
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
111
176
 
112
- # For Cygwin, switch paths to Windows format before running java
113
- if $cygwin ; then
114
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116
- JAVACMD=`cygpath --unix "$JAVACMD"`
117
-
118
- # We build the pattern for arguments to be converted via cygpath
119
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120
- SEP=""
121
- for dir in $ROOTDIRSRAW ; do
122
- ROOTDIRS="$ROOTDIRS$SEP$dir"
123
- SEP="|"
124
- done
125
- OURCYGPATTERN="(^($ROOTDIRS))"
126
- # Add a user-defined pattern to the cygpath arguments
127
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129
- fi
130
177
  # Now convert the arguments - kludge to limit ourselves to /bin/sh
131
- i=0
132
- for arg in "$@" ; do
133
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135
-
136
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138
- else
139
- eval `echo args$i`="\"$arg\""
178
+ for arg do
179
+ if
180
+ case $arg in #(
181
+ -*) false ;; # don't mess with options #(
182
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
183
+ [ -e "$t" ] ;; #(
184
+ *) false ;;
185
+ esac
186
+ then
187
+ arg=$( cygpath --path --ignore --mixed "$arg" )
140
188
  fi
141
- i=$((i+1))
189
+ # Roll the args list around exactly as many times as the number of
190
+ # args, so each arg winds up back in the position where it started, but
191
+ # possibly modified.
192
+ #
193
+ # NB: a `for` loop captures its iteration list before it begins, so
194
+ # changing the positional parameters here affects neither the number of
195
+ # iterations, nor the values presented in `arg`.
196
+ shift # remove old arg
197
+ set -- "$@" "$arg" # push replacement arg
142
198
  done
143
- case $i in
144
- (0) set -- ;;
145
- (1) set -- "$args0" ;;
146
- (2) set -- "$args0" "$args1" ;;
147
- (3) set -- "$args0" "$args1" "$args2" ;;
148
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154
- esac
155
199
  fi
156
200
 
157
- # Escape application args
158
- save () {
159
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160
- echo " "
161
- }
162
- APP_ARGS=$(save "$@")
163
-
164
- # Collect all arguments for the java command, following the shell quoting and substitution rules
165
- eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166
201
 
167
- # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168
- if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169
- cd "$(dirname "$0")"
202
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203
+ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204
+
205
+ # Collect all arguments for the java command:
206
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207
+ # and any embedded shellness will be escaped.
208
+ # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209
+ # treated as '${Hostname}' itself on the command line.
210
+
211
+ set -- \
212
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
213
+ -classpath "$CLASSPATH" \
214
+ org.gradle.wrapper.GradleWrapperMain \
215
+ "$@"
216
+
217
+ # Stop when "xargs" is not available.
218
+ if ! command -v xargs >/dev/null 2>&1
219
+ then
220
+ die "xargs is not available"
170
221
  fi
171
222
 
223
+ # Use "xargs" to parse quoted args.
224
+ #
225
+ # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
226
+ #
227
+ # In Bash we could simply go:
228
+ #
229
+ # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
230
+ # set -- "${ARGS[@]}" "$@"
231
+ #
232
+ # but POSIX shell has neither arrays nor command substitution, so instead we
233
+ # post-process each arg (as a line of input to sed) to backslash-escape any
234
+ # character that might be a shell metacharacter, then use eval to reverse
235
+ # that process (while maintaining the separation between arguments), and wrap
236
+ # the whole thing up as a single "set" statement.
237
+ #
238
+ # This will of course break if any of these variables contains a newline or
239
+ # an unmatched quote.
240
+ #
241
+
242
+ eval "set -- $(
243
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
244
+ xargs -n1 |
245
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
246
+ tr '\n' ' '
247
+ )" '"$@"'
248
+
172
249
  exec "$JAVACMD" "$@"
package/gradlew.bat CHANGED
@@ -1,4 +1,20 @@
1
- @if "%DEBUG%" == "" @echo off
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
+
17
+ @if "%DEBUG%"=="" @echo off
2
18
  @rem ##########################################################################
3
19
  @rem
4
20
  @rem Gradle startup script for Windows
@@ -9,19 +25,23 @@
9
25
  if "%OS%"=="Windows_NT" setlocal
10
26
 
11
27
  set DIRNAME=%~dp0
12
- if "%DIRNAME%" == "" set DIRNAME=.
28
+ if "%DIRNAME%"=="" set DIRNAME=.
29
+ @rem This is normally unused
13
30
  set APP_BASE_NAME=%~n0
14
31
  set APP_HOME=%DIRNAME%
15
32
 
33
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
+
16
36
  @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
- set DEFAULT_JVM_OPTS="-Xmx64m"
37
+ set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
18
38
 
19
39
  @rem Find java.exe
20
40
  if defined JAVA_HOME goto findJavaFromJavaHome
21
41
 
22
42
  set JAVA_EXE=java.exe
23
43
  %JAVA_EXE% -version >NUL 2>&1
24
- if "%ERRORLEVEL%" == "0" goto init
44
+ if %ERRORLEVEL% equ 0 goto execute
25
45
 
26
46
  echo.
27
47
  echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -35,7 +55,7 @@ goto fail
35
55
  set JAVA_HOME=%JAVA_HOME:"=%
36
56
  set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
57
 
38
- if exist "%JAVA_EXE%" goto init
58
+ if exist "%JAVA_EXE%" goto execute
39
59
 
40
60
  echo.
41
61
  echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -45,38 +65,26 @@ echo location of your Java installation.
45
65
 
46
66
  goto fail
47
67
 
48
- :init
49
- @rem Get command-line arguments, handling Windows variants
50
-
51
- if not "%OS%" == "Windows_NT" goto win9xME_args
52
-
53
- :win9xME_args
54
- @rem Slurp the command line arguments.
55
- set CMD_LINE_ARGS=
56
- set _SKIP=2
57
-
58
- :win9xME_args_slurp
59
- if "x%~1" == "x" goto execute
60
-
61
- set CMD_LINE_ARGS=%*
62
-
63
68
  :execute
64
69
  @rem Setup the command line
65
70
 
66
71
  set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
72
 
73
+
68
74
  @rem Execute Gradle
69
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
75
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
70
76
 
71
77
  :end
72
78
  @rem End local scope for the variables with windows NT shell
73
- if "%ERRORLEVEL%"=="0" goto mainEnd
79
+ if %ERRORLEVEL% equ 0 goto mainEnd
74
80
 
75
81
  :fail
76
82
  rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77
83
  rem the _cmd.exe /c_ return code!
78
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79
- exit /b 1
84
+ set EXIT_CODE=%ERRORLEVEL%
85
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
+ exit /b %EXIT_CODE%
80
88
 
81
89
  :mainEnd
82
90
  if "%OS%"=="Windows_NT" endlocal
package/package.json CHANGED
@@ -1,99 +1,99 @@
1
- {
2
- "name": "address-client",
3
- "version": "3.2.3",
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
- "less-loader": "^2.2.3",
27
- "vue": "^1.0.17"
28
- },
29
- "devDependencies": {
30
- "babel-core": "^6.0.0",
31
- "babel-loader": "^6.0.0",
32
- "babel-plugin-transform-runtime": "^6.0.0",
33
- "babel-preset-es2015": "^6.0.0",
34
- "babel-preset-stage-2": "^6.0.0",
35
- "chai": "^3.5.0",
36
- "co": "^4.6.0",
37
- "connect-history-api-fallback": "^1.1.0",
38
- "cross-env": "^1.0.7",
39
- "cross-spawn": "^2.1.5",
40
- "css-loader": "^0.23.0",
41
- "echarts": "^4.1.0",
42
- "eslint": "^2.0.0",
43
- "eslint-config-standard": "^5.1.0",
44
- "eslint-friendly-formatter": "^1.2.2",
45
- "eslint-loader": "^1.3.0",
46
- "eslint-plugin-html": "^1.3.0",
47
- "eslint-plugin-promise": "^1.0.8",
48
- "eslint-plugin-standard": "^1.3.2",
49
- "eslint-plugin-vue": "^0.1.1",
50
- "eventsource-polyfill": "^0.9.6",
51
- "express": "^4.13.3",
52
- "extract-text-webpack-plugin": "^1.0.1",
53
- "file-loader": "^0.8.4",
54
- "function-bind": "^1.0.2",
55
- "html-webpack-plugin": "^2.8.1",
56
- "http-proxy-middleware": "^0.11.0",
57
- "inject-loader": "^2.0.1",
58
- "isparta-loader": "^2.0.0",
59
- "jasmine-core": "^2.4.1",
60
- "jquery": "^3.3.1",
61
- "json-loader": "^0.5.4",
62
- "karma": "^1.4.1",
63
- "karma-chrome-launcher": "^2.2.0",
64
- "karma-coverage": "^1.1.1",
65
- "karma-mocha": "^1.3.0",
66
- "karma-sinon-chai": "^1.3.1",
67
- "karma-sourcemap-loader": "^0.3.7",
68
- "karma-spec-reporter": "0.0.31",
69
- "karma-webpack": "^2.0.2",
70
- "less": "^2.7.3",
71
- "mkdirp": "^0.5.1",
72
- "mocha": "^3.2.0",
73
- "ncp": "^2.0.0",
74
- "rimraf": "^2.5.0",
75
- "sale-client": "3.2.11-17",
76
- "selenium-server": "2.52.0",
77
- "sinon": "^2.1.0",
78
- "sinon-chai": "^2.8.0",
79
- "style": "0.0.3",
80
- "style-loader": "^0.20.3",
81
- "system-clients": "3.1.88-5",
82
- "url-loader": "^0.5.7",
83
- "vue-client": "1.24.27",
84
- "vue-hot-reload-api": "^1.2.0",
85
- "vue-html-loader": "^1.0.0",
86
- "vue-loader": "^8.2.1",
87
- "vue-resource": "^1.5.0",
88
- "vue-router": "^0.7.13",
89
- "vue-strap": "^1.0.9",
90
- "vue-style-loader": "^1.0.0",
91
- "vue-validator": "2.1.7",
92
- "webpack": "^1.12.2",
93
- "webpack-dev-middleware": "^1.4.0",
94
- "webpack-hot-middleware": "^2.6.0",
95
- "webpack-merge": "^0.8.3",
96
- "jsencrypt": "3.0.0-rc.1",
97
- "axios": "0.15.3"
98
- }
99
- }
1
+ {
2
+ "name": "address-client",
3
+ "version": "3.2.4-gongyi",
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
+ "less-loader": "^2.2.3",
27
+ "vue": "^1.0.17"
28
+ },
29
+ "devDependencies": {
30
+ "babel-core": "^6.0.0",
31
+ "babel-loader": "^6.0.0",
32
+ "babel-plugin-transform-runtime": "^6.0.0",
33
+ "babel-preset-es2015": "^6.0.0",
34
+ "babel-preset-stage-2": "^6.0.0",
35
+ "chai": "^3.5.0",
36
+ "co": "^4.6.0",
37
+ "connect-history-api-fallback": "^1.1.0",
38
+ "cross-env": "^1.0.7",
39
+ "cross-spawn": "^2.1.5",
40
+ "css-loader": "^0.23.0",
41
+ "echarts": "^4.1.0",
42
+ "eslint": "^2.0.0",
43
+ "eslint-config-standard": "^5.1.0",
44
+ "eslint-friendly-formatter": "^1.2.2",
45
+ "eslint-loader": "^1.3.0",
46
+ "eslint-plugin-html": "^1.3.0",
47
+ "eslint-plugin-promise": "^1.0.8",
48
+ "eslint-plugin-standard": "^1.3.2",
49
+ "eslint-plugin-vue": "^0.1.1",
50
+ "eventsource-polyfill": "^0.9.6",
51
+ "express": "^4.13.3",
52
+ "extract-text-webpack-plugin": "^1.0.1",
53
+ "file-loader": "^0.8.4",
54
+ "function-bind": "^1.0.2",
55
+ "html-webpack-plugin": "^2.8.1",
56
+ "http-proxy-middleware": "^0.11.0",
57
+ "inject-loader": "^2.0.1",
58
+ "isparta-loader": "^2.0.0",
59
+ "jasmine-core": "^2.4.1",
60
+ "jquery": "^3.3.1",
61
+ "json-loader": "^0.5.4",
62
+ "karma": "^1.4.1",
63
+ "karma-chrome-launcher": "^2.2.0",
64
+ "karma-coverage": "^1.1.1",
65
+ "karma-mocha": "^1.3.0",
66
+ "karma-sinon-chai": "^1.3.1",
67
+ "karma-sourcemap-loader": "^0.3.7",
68
+ "karma-spec-reporter": "0.0.31",
69
+ "karma-webpack": "^2.0.2",
70
+ "less": "^2.7.3",
71
+ "mkdirp": "^0.5.1",
72
+ "mocha": "^3.2.0",
73
+ "ncp": "^2.0.0",
74
+ "rimraf": "^2.5.0",
75
+ "sale-client": "3.2.11-17",
76
+ "selenium-server": "2.52.0",
77
+ "sinon": "^2.1.0",
78
+ "sinon-chai": "^2.8.0",
79
+ "style": "0.0.3",
80
+ "style-loader": "^0.20.3",
81
+ "system-clients": "3.1.88-5",
82
+ "url-loader": "^0.5.7",
83
+ "vue-client": "1.24.27",
84
+ "vue-hot-reload-api": "^1.2.0",
85
+ "vue-html-loader": "^1.0.0",
86
+ "vue-loader": "^8.2.1",
87
+ "vue-resource": "^1.5.0",
88
+ "vue-router": "^0.7.13",
89
+ "vue-strap": "^1.0.9",
90
+ "vue-style-loader": "^1.0.0",
91
+ "vue-validator": "2.1.7",
92
+ "webpack": "^1.12.2",
93
+ "webpack-dev-middleware": "^1.4.0",
94
+ "webpack-hot-middleware": "^2.6.0",
95
+ "webpack-merge": "^0.8.3",
96
+ "jsencrypt": "3.0.0-rc.1",
97
+ "axios": "0.15.3"
98
+ }
99
+ }
@@ -295,6 +295,7 @@
295
295
  f_pcd_id:'',
296
296
  f_street_id:'',
297
297
  f_residential_area:'',
298
+ f_residential_area_id:''
298
299
  },
299
300
  //初始化省市区数据
300
301
  pcdslist:[],
@@ -403,11 +404,15 @@
403
404
  this.f_filialeids = val[0]
404
405
  },
405
406
  async modifyBatch () {
406
- if(this.$refs.paged.$refs.grid.getRowData().length != 0){
407
- this.areamodel.f_pcd_id = this.$refs.paged.$refs.grid.getRowData()[0].f_pcd_id
408
- this.showModify = true
407
+ if (this.f_filialeids) {
408
+ if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
409
+ this.areamodel.f_pcd_id = this.$refs.paged.$refs.grid.getRowData()[0].f_pcd_id
410
+ this.showModify = true
411
+ } else {
412
+ this.$showAlert('请至少选择一项!', 'warning', 2000)
413
+ }
409
414
  }else {
410
- this.$showAlert('请至少选择一项!', 'warning', 2000)
415
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
411
416
  }
412
417
  },
413
418
  confirmModify () {
@@ -415,14 +420,10 @@
415
420
  this.$refs.paged.$refs.grid.getRowData().forEach((row,n) => {
416
421
  this.userInfos[n] = {
417
422
  userid: row.id,
418
- userBuilding: row.f_building,
419
- userBuildingSuffix: row.f_building_suffix,
420
- userUnit: row.f_unit,
421
- userUnitSuffix: row.f_unit_suffix,
422
- userFloor: row.f_floor,
423
- userFloorSuffix: row.f_floor_suffix,
424
- userRoom: row.f_room,
425
- userRoomSuffix: row.f_room_suffix
423
+ f_residential_area: row.f_residential_area,
424
+ f_street: row.f_street,
425
+ f_address: row.f_address,
426
+ f_address_rest: row.f_street + row.f_residential_area + (row.f_building?row.f_building+row.f_building_suffix:'') + (row.f_unit?row.f_unit+row.f_unit_suffix:'') + (row.f_floor?row.f_floor+row.f_floor_suffix:'') + (row.f_room?row.f_room+row.f_room_suffix:'')
426
427
  }
427
428
  })
428
429
  let modifyBatchData = {
@@ -435,13 +436,14 @@
435
436
  f_orgid: this.$login.f.orgid,
436
437
  f_orgname: this.$login.f.orgs,
437
438
  f_depid: this.$login.f.depids,
438
- f_depname: this.$login.f.deps
439
+ f_depname: this.$login.f.deps,
440
+ f_filialeid: this.f_filialeids
439
441
  }
440
442
  this.$resetpost('rs/logic/modifyBatch',modifyBatchData)
441
443
  this.initpcds(`f_filialeid = '${this.f_filialeids}'`)
442
444
  this.showModify = false
443
445
  this.$refs.paged.$refs.grid.selectInit()
444
- this.search()
446
+ this.$refs.paged.$refs.cri.search()
445
447
  },
446
448
  cancelModify() {
447
449
  this.initpcds(`f_filialeid = '${this.f_filialeids}'`)
@@ -40,6 +40,7 @@
40
40
  </div>
41
41
  <div class="col-sm-4 form-group button-range">
42
42
  <button class="button_search button_spacing" @click="search()" >查询</button>
43
+ <button class="button_search button_spacing" @click="$parent.$parent.batchDelete()">批量删除</button>
43
44
  <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
44
45
  <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
45
46
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
@@ -97,12 +98,10 @@
97
98
  </div>
98
99
  </div>
99
100
  </div>
100
-
101
-
102
101
  </criteria>
103
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
102
+
103
+ <data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
104
104
  <template partial='head'>
105
- <tr>
106
105
  <th><nobr>序号</nobr></th>
107
106
  <th v-if="false"><nobr>省份</nobr></th>
108
107
  <th v-if="false"><nobr>城市</nobr></th>
@@ -127,11 +126,8 @@
127
126
  <th><nobr>操作日期</nobr></th>
128
127
  <th title="该小区下现有的地址数"><nobr>地址数</nobr></th>
129
128
  <th><nobr>操作</nobr></th>
130
-
131
- </tr>
132
129
  </template>
133
130
  <template partial='body'>
134
- <tr>
135
131
  <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
136
132
  <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
137
133
  <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
@@ -157,12 +153,34 @@
157
153
  <button v-if="!row.f_residential_area_id" type="button" name="button" class="btn btn-danger"
158
154
  style="padding: 5px 12px"
159
155
  @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
160
- </nobr></td>
161
- </tr>
156
+ </nobr>
157
+ </td>
162
158
  </template>
163
159
  <template partial='foot'></template>
164
160
  </data-grid>
165
161
  </criteria-paged>
162
+ <modal :show="showDelete" large backdrop="false" :width="900">
163
+ <header slot="modal-header" class="modal-header">
164
+ <p class="bg-info text-center" style="padding: 8px;">请选择目标小区</p>
165
+ </header>
166
+ <article slot="modal-body" class="modal-body">
167
+ <validator name='v'>
168
+ <div class="col-sm-6 form-group ">
169
+ <label class="font_normal_body">小区名称</label>
170
+ <input type="text" style="width:41%" v-show="false" v-validate:f_residential_area_id='{required: true }' v-model="areamodel.f_residential_area_id">
171
+ <v-select :value.sync="areamodel.f_residential_area_id" :value-single="true"
172
+ @change="areaChange"
173
+ :options='areaslist' placeholder='请选择'
174
+ close-on-select search="true">
175
+ </v-select>
176
+ </div>
177
+ </validator>
178
+ </article>
179
+ <footer slot="modal-footer" class="modal-footer">
180
+ <button v-show="showDelete" type="button" class="button_search button_spacing" @click='confirmDelete()' :disabled='!$v.valid'>确认</button>
181
+ <button v-show="showDelete" type="button" class="button_clear button_spacing" @click='cancelDelete()'>取消</button>
182
+ </footer>
183
+ </modal>
166
184
  </div>
167
185
  </template>
168
186
 
@@ -176,7 +194,18 @@
176
194
 
177
195
  data () {
178
196
  return {
197
+ showDelete: false,
179
198
  criteriaShow: false,
199
+ // 目标小区数据
200
+ areamodel: {
201
+ f_residential_area_id: '',
202
+ f_pcd: '',
203
+ f_pcd_id: '',
204
+ f_street: '',
205
+ f_street_id: '',
206
+ f_slice_area: '',
207
+ f_residential_area: ''
208
+ },
180
209
  model: new PagedList('rs/sql/address_getarealist',20),
181
210
  addflag: false,
182
211
  addtitle:'',
@@ -184,6 +213,8 @@
184
213
  // 公司下拉
185
214
  curorgid: [this.$login.f.orgid],
186
215
  f_orgid: '',
216
+ //初始化小区数据
217
+ areaslist:[],
187
218
  config: {
188
219
  // 导出列要和查询列相同
189
220
  excelHeaders: {
@@ -280,7 +311,89 @@
280
311
  getorg (val) {
281
312
  this.f_orgid = this.$login.convertToIn(val)
282
313
  this.f_filialeids = val[0]
283
- }
314
+ },
315
+ async batchDelete () {
316
+ if (this.f_filialeids) {
317
+ if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
318
+ this.showDelete = true
319
+ let condition = `a.f_orgid = '${this.f_filialeids}'`
320
+ let req = await this.$resetpost('rs/sql/address_getresidential', {
321
+ data: {
322
+ condition: condition
323
+ }
324
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
325
+ let redata = []
326
+ req.data.forEach((row) => {
327
+ redata.push({
328
+ label: row.f_residential_area,
329
+ value: row.id,
330
+ data: row,
331
+ id: row.id
332
+ })
333
+ })
334
+ this.areaslist = redata
335
+ } else {
336
+ this.$showAlert('请至少选择一项!', 'warning', 2000)
337
+ }
338
+ }else {
339
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
340
+ }
341
+ },
342
+ confirmDelete () {
343
+ let msg = {
344
+ resolveMsg: '批量删除成功',
345
+ rejectMsg: '批量删除失败!'
346
+ }
347
+ let oldAreaIds = []
348
+ // 获取要批量删除的小区数据
349
+ this.$refs.paged.$refs.grid.getRowData().forEach((row,n) => {
350
+ oldAreaIds[n] = row.id
351
+ })
352
+ this.$resetpost('rs/logic/batchDelete',{
353
+ data:{
354
+ areamodel:this.areamodel,
355
+ oldAreaIds:oldAreaIds,
356
+ f_operator: this.$login.f.name,
357
+ f_operatorid: this.$login.f.id,
358
+ f_orgid: this.$login.f.orgid,
359
+ f_orgname: this.$login.f.orgs,
360
+ f_depid: this.$login.f.depids,
361
+ f_depname: this.$login.f.deps
362
+ }
363
+ },msg)
364
+ this.$refs.paged.$refs.grid.selectInit()
365
+ this.$refs.paged.$refs.cri.search()
366
+ this.areamodel.f_residential_area_id = ''
367
+ this.showDelete = false
368
+ },
369
+ cancelDelete () {
370
+ this.$refs.paged.$refs.grid.selectInit()
371
+ this.$refs.paged.$refs.cri.search()
372
+ this.areamodel.f_residential_area_id = ''
373
+ this.showDelete = false
374
+ },
375
+ areaChange(val){
376
+ console.log("小区变化",val)
377
+ let selectArea // 选中的小区数据
378
+ for (let row of this.areaslist) {
379
+ if (val == row.value) {
380
+ selectArea = row.data
381
+ break
382
+ }
383
+ }
384
+ if (selectArea) {
385
+ this.areamodel.f_residential_area_id = selectArea.id
386
+ this.areamodel.f_pcd = selectArea.f_pcd
387
+ this.areamodel.f_pcd_id = selectArea.f_pcd_id
388
+ this.areamodel.f_street = selectArea.f_street
389
+ this.areamodel.f_street_id = selectArea.f_street_id
390
+ this.areamodel.f_slice_area = selectArea.f_slice_area
391
+ this.areamodel.f_residential_area = selectArea.f_residential_area
392
+ }
393
+ this.$nextTick(() => {
394
+ this.$resetValidation()
395
+ })
396
+ },
284
397
  },
285
398
  watch:{
286
399
 
@@ -38,12 +38,23 @@
38
38
  close-on-select search="true" @change="streetChange">
39
39
  </v-select>
40
40
  </div>
41
+ <div class="col-sm-6 form-group"
42
+ :class="[$v.f_hand_month.required ? 'has-error' : 'has-success']">
43
+ <label class="font_normal_body">抄表月份</label>
44
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_hand_month"
45
+ v-validate:f_hand_month='{required: true }'>
46
+ <v-select
47
+ :value.sync="areamodel.f_hand_month" :value-single="true"
48
+ :options='handmonth' placeholder='请选择'
49
+ close-on-select search="true" v-ref:f_hand_month>
50
+ </v-select>
51
+ </div>
41
52
  <div class="col-sm-6 form-group" :class="[$v.slice.required ? 'has-error' : 'has-success']">
42
53
  <label class="font_normal_body">片&emsp;&emsp;区</label>
43
54
  <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
44
55
  v-validate:slice='{required: true }'>
45
56
  <v-select :value.sync="areamodel.slice_area" v-model="areamodel.slice_area"
46
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
57
+ :options='sliceAreaConfig' placeholder='片区/管理站' filer-key="name"
47
58
  close-on-select v-ref:slice>
48
59
  </v-select>
49
60
  </div>
@@ -558,6 +569,9 @@ export default {
558
569
  }
559
570
  },
560
571
  computed: {
572
+ sliceAreaConfig() {
573
+ return this.$appdata.getParam('小区片区')
574
+ },
561
575
  metertypes() {
562
576
  return this.$appdata.getParam('气表类型')
563
577
  },