address-client 3.0.38-aode → 3.0.38-aodeToV4

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.
Files changed (38) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  7. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/8.5/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/file-system.probe +0 -0
  12. package/.gradle/vcs-1/gc.properties +0 -0
  13. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  14. package/gradle/wrapper/gradle-wrapper.properties +7 -0
  15. package/gradlew +249 -0
  16. package/gradlew.bat +92 -0
  17. package/package.json +1 -1
  18. package/src/components/AddAreaMsg.vue +42 -6
  19. package/src/components/AddStreetOrPcd.vue +3 -3
  20. package/src/components/AddressAddAddress.vue +14 -14
  21. package/src/components/AddressFiles.vue +1 -1
  22. package/src/components/AddressList.vue +7 -7
  23. package/src/components/AddressTree.vue +6 -6
  24. package/src/components/AreaFiles.vue +1 -1
  25. package/src/components/AreaList.vue +9 -12
  26. package/src/components/AreaTree.vue +6 -6
  27. package/src/components/Basch.vue +1 -1
  28. package/src/components/BatchOrders.vue +7 -7
  29. package/src/components/NewAddressInfo.vue +4 -4
  30. package/src/components/OneCodeList.vue +1 -1
  31. package/src/components/StreetList.vue +3 -3
  32. package/src/components/UserAddress.vue +12 -13
  33. package/src/components/UserAddressChange.vue +1 -1
  34. package/src/components/addressts/AddressListts.vue +6 -6
  35. package/src/components/addressts/UserAddressChangets.vue +1 -1
  36. package/src/components/addressts/UserAddressts.vue +12 -13
  37. package/src/components/areauser/AreaUser.vue +3 -3
  38. package/src/components/selectAddress/BatchList.vue +182 -177
File without changes
Binary file
File without changes
@@ -0,0 +1,7 @@
1
+ distributionBase=GRADLE_USER_HOME
2
+ distributionPath=wrapper/dists
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4
+ networkTimeout=10000
5
+ validateDistributionUrl=true
6
+ zipStoreBase=GRADLE_USER_HOME
7
+ zipStorePath=wrapper/dists
package/gradlew ADDED
@@ -0,0 +1,249 @@
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
+ #
18
+
19
+ ##############################################################################
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
+ #
63
+ ##############################################################################
64
+
65
+ # Attempt to set APP_HOME
66
+
67
+ # Resolve links: $0 may be a link
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
81
+ done
82
+
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
88
+
89
+ # Use the maximum available, or set MAX_FD != -1 to use that value.
90
+ MAX_FD=maximum
91
+
92
+ warn () {
93
+ echo "$*"
94
+ } >&2
95
+
96
+ die () {
97
+ echo
98
+ echo "$*"
99
+ echo
100
+ exit 1
101
+ } >&2
102
+
103
+ # OS specific support (must be 'true' or 'false').
104
+ cygwin=false
105
+ msys=false
106
+ darwin=false
107
+ nonstop=false
108
+ case "$( uname )" in #(
109
+ CYGWIN* ) cygwin=true ;; #(
110
+ Darwin* ) darwin=true ;; #(
111
+ MSYS* | MINGW* ) msys=true ;; #(
112
+ NONSTOP* ) nonstop=true ;;
113
+ esac
114
+
115
+ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
116
+
117
+
118
+ # Determine the Java command to use to start the JVM.
119
+ if [ -n "$JAVA_HOME" ] ; then
120
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
121
+ # IBM's JDK on AIX uses strange locations for the executables
122
+ JAVACMD=$JAVA_HOME/jre/sh/java
123
+ else
124
+ JAVACMD=$JAVA_HOME/bin/java
125
+ fi
126
+ if [ ! -x "$JAVACMD" ] ; then
127
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
128
+
129
+ Please set the JAVA_HOME variable in your environment to match the
130
+ location of your Java installation."
131
+ fi
132
+ else
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.
137
+
138
+ Please set the JAVA_HOME variable in your environment to match the
139
+ location of your Java installation."
140
+ fi
141
+ fi
142
+
143
+ # Increase the maximum file descriptors if we can.
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
160
+ fi
161
+
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" )
176
+
177
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
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" )
188
+ fi
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
198
+ done
199
+ fi
200
+
201
+
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"
221
+ fi
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
+
249
+ exec "$JAVACMD" "$@"
package/gradlew.bat ADDED
@@ -0,0 +1,92 @@
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
18
+ @rem ##########################################################################
19
+ @rem
20
+ @rem Gradle startup script for Windows
21
+ @rem
22
+ @rem ##########################################################################
23
+
24
+ @rem Set local scope for the variables with windows NT shell
25
+ if "%OS%"=="Windows_NT" setlocal
26
+
27
+ set DIRNAME=%~dp0
28
+ if "%DIRNAME%"=="" set DIRNAME=.
29
+ @rem This is normally unused
30
+ set APP_BASE_NAME=%~n0
31
+ set APP_HOME=%DIRNAME%
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
+
36
+ @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37
+ set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38
+
39
+ @rem Find java.exe
40
+ if defined JAVA_HOME goto findJavaFromJavaHome
41
+
42
+ set JAVA_EXE=java.exe
43
+ %JAVA_EXE% -version >NUL 2>&1
44
+ if %ERRORLEVEL% equ 0 goto execute
45
+
46
+ echo.
47
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48
+ echo.
49
+ echo Please set the JAVA_HOME variable in your environment to match the
50
+ echo location of your Java installation.
51
+
52
+ goto fail
53
+
54
+ :findJavaFromJavaHome
55
+ set JAVA_HOME=%JAVA_HOME:"=%
56
+ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
+
58
+ if exist "%JAVA_EXE%" goto execute
59
+
60
+ echo.
61
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62
+ echo.
63
+ echo Please set the JAVA_HOME variable in your environment to match the
64
+ echo location of your Java installation.
65
+
66
+ goto fail
67
+
68
+ :execute
69
+ @rem Setup the command line
70
+
71
+ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
+
73
+
74
+ @rem Execute Gradle
75
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76
+
77
+ :end
78
+ @rem End local scope for the variables with windows NT shell
79
+ if %ERRORLEVEL% equ 0 goto mainEnd
80
+
81
+ :fail
82
+ rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
+ rem the _cmd.exe /c_ return code!
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%
88
+
89
+ :mainEnd
90
+ if "%OS%"=="Windows_NT" endlocal
91
+
92
+ :omega
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "3.0.38-aode",
3
+ "version": "3.0.38-aodeToV4",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -56,6 +56,15 @@
56
56
  class="form-control" placeholder="小区名称"
57
57
  v-validate:f_residential_area='{required: true }'>
58
58
  </div>
59
+ <div v-if="!f_special" class="col-sm-6 form-group">
60
+ <label class="font_normal_body">网&nbsp;格&nbsp;员</label>
61
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_gridman">
62
+ <v-select
63
+ :value.sync="areamodel.f_gridman" :value-single="true"
64
+ :options='gridmans' placeholder='请选择网格员'
65
+ close-on-select >
66
+ </v-select>
67
+ </div>
59
68
  <div v-if="!f_special"
60
69
  class="col-sm-12 form-group">
61
70
  <label class="font_normal_body">小区地址</label>
@@ -237,6 +246,7 @@
237
246
  f_slice_area:'',
238
247
  f_adjustable_id:'',
239
248
  f_residential_area:'',
249
+ f_gridman:'',
240
250
  f_user_type:'',
241
251
  f_gasproperties:'',
242
252
  f_meter_brand:'',
@@ -251,7 +261,7 @@
251
261
  meterbrands: [],
252
262
  adjustables: [],
253
263
  sliceArea: [],
254
-
264
+ gridmans: [],
255
265
  gasproperties: []
256
266
  }
257
267
  },
@@ -269,6 +279,32 @@
269
279
  await this.initSlice(this.f_filialeids)
270
280
  await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
271
281
  // await this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
282
+ await this.initGridmans()
283
+ },
284
+
285
+ async initGridmans () {
286
+ try {
287
+ let http = new HttpResetClass()
288
+ let param = {
289
+ tablename: 'AFV4_System.dbo.system_users',
290
+ condition: `roles like '%网格员%'`
291
+ }
292
+ let res = await http.load('POST', 'api/af-revenue/sql/saleSingleTable', {
293
+ data: param
294
+ }, {
295
+ resolveMsg: null,
296
+ rejectMsg: '获取网格员失败!'
297
+ })
298
+ let arr = []
299
+ if (res && res.data && res.data.length > 0) {
300
+ res.data.forEach(row => {
301
+ arr.push({label: row.name, value: row.name})
302
+ })
303
+ }
304
+ this.gridmans = arr
305
+ } catch (e) {
306
+ this.gridmans = []
307
+ }
272
308
  },
273
309
 
274
310
  async initParams() {
@@ -299,7 +335,7 @@
299
335
  async initSlice (val) {
300
336
  if (val) {
301
337
  this.sliceArea = [];
302
- let getAllArea = await this.$resetpost('/rs/sql/address_singleTableOrderBy', {
338
+ let getAllArea = await this.$resetpost('/api/af-revenue/sql/address_singleTableOrderBy', {
303
339
  data:{
304
340
  items: '*',
305
341
  tablename: 't_zone',
@@ -321,7 +357,7 @@
321
357
  async initpcds(pconditon){
322
358
  this.pcdslist = []
323
359
  let HttpReset = new HttpResetClass()
324
- let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
360
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
325
361
  data: {
326
362
  items: '*',
327
363
  tablename: 't_pcd',
@@ -345,7 +381,7 @@
345
381
  async initstreets(pconditon){
346
382
  this.streetslist = []
347
383
  let HttpReset = new HttpResetClass()
348
- let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
384
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
349
385
  data: {
350
386
  items: '*',
351
387
  tablename: 't_street',
@@ -374,7 +410,7 @@
374
410
  f_filialeid: this.f_filialeids
375
411
  }
376
412
 
377
- let res = await this.$resetpost('rs/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
413
+ let res = await this.$resetpost('api/af-revenue/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
378
414
  console.log('验证小区是否存在', res)
379
415
  if (res.data) {
380
416
  this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
@@ -460,7 +496,7 @@
460
496
  this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
461
497
  this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
462
498
 
463
- await this.$resetpost('rs/logic/address_updatearea', this.areamodel)
499
+ await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
464
500
  },
465
501
  cleardara(){
466
502
  this.areamodel= {
@@ -107,7 +107,7 @@
107
107
  initpcds(pconditon){
108
108
  console.log("省市区准备")
109
109
  let HttpReset = new HttpResetClass()
110
- HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
110
+ HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
111
111
  data: {
112
112
  items: '*',
113
113
  tablename: 't_pcd',
@@ -173,7 +173,7 @@
173
173
  this.pcdmodel.f_depid = this.$login.f.depids
174
174
  this.pcdmodel.f_depname = this.$login.f.deps
175
175
  this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
176
- await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel)
176
+ await this.$resetpost('api/af-revenue/logic/address_updatepcd', this.pcdmodel)
177
177
  },
178
178
  //保存街道
179
179
  async savestreet(){
@@ -186,7 +186,7 @@
186
186
  this.streetmodel.f_depname = this.$login.f.deps
187
187
  this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
188
188
  console.log('获取街道model', this.streetmodel)
189
- await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel)
189
+ await this.$resetpost('api/af-revenue/logic/address_updatestreet', this.streetmodel)
190
190
  },
191
191
  cancel(){
192
192
  this.cleardara()
@@ -72,10 +72,10 @@
72
72
  //新增 || 修改
73
73
  if(val.id != null) {
74
74
  console.log("asyncAddChild=" , val)
75
- result = await self.$resetpost(`rs/logic/address_addAddress`, val, {resolveMsg: null})
75
+ result = await self.$resetpost(`api/af-revenue/logic/address_addAddress`, val, {resolveMsg: null})
76
76
  // 添加小区 t_area
77
77
  if(val.f_type=='小区') {
78
- let parent = await self.$resetpost(`rs/logic/address_parent`, {id: val.id + ""}, {resolveMsg: null})
78
+ let parent = await self.$resetpost(`api/af-revenue/logic/address_parent`, {id: val.id + ""}, {resolveMsg: null})
79
79
  await self.$refs.newaddressinfo.confirm(result.data.id, parent.data)
80
80
  }
81
81
  } else {
@@ -95,11 +95,11 @@
95
95
  throw err = new Error( '该地址已存在' )
96
96
  } else {
97
97
  console.log("调剂的速度val: ", val)
98
- result = await self.$resetpost(`rs/logic/address_addAddress`, val, {resolveMsg: null})
98
+ result = await self.$resetpost(`api/af-revenue/logic/address_addAddress`, val, {resolveMsg: null})
99
99
  // 添加小区 t_area
100
100
  console.log("result=" , result)
101
101
  if(result.data && val.f_type=='小区') {
102
- let parent = await self.$resetpost(`rs/logic/address_parent`, {id: result.data.id+""}, {resolveMsg: null})
102
+ let parent = await self.$resetpost(`api/af-revenue/logic/address_parent`, {id: result.data.id+""}, {resolveMsg: null})
103
103
  await self.$refs.newaddressinfo.confirm(result.data.id, parent.data)
104
104
  }
105
105
  }
@@ -111,9 +111,9 @@
111
111
  let data = {data: {f_parentId: null, condition: `id='${self.f_parentid}'`}}
112
112
  let result
113
113
  if(num == 1){ //添加
114
- result = await self.$resetpost('rs/sql/address_getSelf', {data: {id: self.f_parentid}}, {resolveMsg: null})
114
+ result = await self.$resetpost('api/af-revenue/sql/address_getSelf', {data: {id: self.f_parentid}}, {resolveMsg: null})
115
115
  } else { //修改
116
- result = await self.$resetpost('rs/sql/address_getParent', {data: {id: self.model.id}}, {resolveMsg: null})
116
+ result = await self.$resetpost('api/af-revenue/sql/address_getParent', {data: {id: self.model.id}}, {resolveMsg: null})
117
117
  }
118
118
  if(result.data.length > 0) {
119
119
  self.parent = result.data[0]
@@ -245,9 +245,9 @@
245
245
  // 添加
246
246
  async addinit(val){
247
247
  let http = new HttpResetClass()
248
- let res = await http.load('POST', 'rs/sql/address_getSelf', {data: {id: this.f_parentid}}, {resolveMsg: null})
248
+ let res = await http.load('POST', 'api/af-revenue/sql/address_getSelf', {data: {id: this.f_parentid}}, {resolveMsg: null})
249
249
  this.parent = res.data.length > 0 ? res.data[0]: {}
250
- let parent = await http.load('POST', `rs/logic/address_parent`, {id: val+""}, {resolveMsg: null, rejectMsg:'请求address_parent报错!!'})
250
+ let parent = await http.load('POST', `api/af-revenue/logic/address_parent`, {id: val+""}, {resolveMsg: null, rejectMsg:'请求address_parent报错!!'})
251
251
  this.areatype = parent.data.f_area
252
252
  },
253
253
  // 初始化
@@ -255,9 +255,9 @@
255
255
  let data = {data: {f_parentId: null, condition: `id='${this.f_parentid}'`}}
256
256
  let result
257
257
  if(num == 1){ //添加
258
- result = await this.$resetpost('rs/sql/address_getSelf', {data: {id: this.f_parentid}}, {resolveMsg: null})
258
+ result = await this.$resetpost('api/af-revenue/sql/address_getSelf', {data: {id: this.f_parentid}}, {resolveMsg: null})
259
259
  } else { //修改
260
- result = await this.$resetpost('rs/sql/address_getParent', {data: {id: this.model.id}}, {resolveMsg: null})
260
+ result = await this.$resetpost('api/af-revenue/sql/address_getParent', {data: {id: this.model.id}}, {resolveMsg: null})
261
261
  }
262
262
  if(result.data.length > 0) {
263
263
  this.parent = result.data[0]
@@ -345,7 +345,7 @@
345
345
  this.isselected = true
346
346
  this.$parent.showAddress = !this.$parent.showAddress
347
347
  let http = new HttpResetClass()
348
- http.load('POST', 'rs/logic/address_batch', {id: id.id+"", json: batchs}, {rejectMsg:'批量上传出错', resolveMsg: '地址导入完成'}, 0).then(() => {
348
+ http.load('POST', 'api/af-revenue/logic/address_batch', {id: id.id+"", json: batchs}, {rejectMsg:'批量上传出错', resolveMsg: '地址导入完成'}, 0).then(() => {
349
349
  this.$showMessage('导入完成。。!', ['confirm']).then((res) => {
350
350
  if (res === 'confirm') {
351
351
  this.initModel()
@@ -356,7 +356,7 @@
356
356
  }
357
357
  })
358
358
  // let http = new HttpResetClass()
359
- // await http.load('POST', `rs/logic/address_batch`, {id: id.id+"", json: batchs})
359
+ // await http.load('POST', `api/af-revenue/logic/address_batch`, {id: id.id+"", json: batchs})
360
360
  // this.isselected = true
361
361
  // this.initModel()
362
362
  // this.$parent.showAddress = !this.$parent.showAddress
@@ -383,12 +383,12 @@
383
383
  //
384
384
  async getParent(val) {
385
385
  let http = new HttpResetClass()
386
- let parent = await http.load('POST', `rs/logic/address_parent`, {id: val.id+""}, {resolveMsg: null, rejectMsg:'请求address_parent报错!!'})
386
+ let parent = await http.load('POST', `api/af-revenue/logic/address_parent`, {id: val.id+""}, {resolveMsg: null, rejectMsg:'请求address_parent报错!!'})
387
387
  this.areatype = parent.data.f_area
388
388
 
389
389
  this.model = Object.assign({}, this.model, val)
390
390
 
391
- let res = await http.load('POST', 'rs/sql/address_getParent', {data: {id: this.model.id}}, {resolveMsg: null, rejectMsg:'请求address_getParent报错!!'})
391
+ let res = await http.load('POST', 'api/af-revenue/sql/address_getParent', {data: {id: this.model.id}}, {resolveMsg: null, rejectMsg:'请求address_getParent报错!!'})
392
392
  if(res.data.length > 0) {
393
393
  this.parent = res.data[0]
394
394
  } else {
@@ -102,7 +102,7 @@
102
102
  // 是否支持一对多
103
103
  oneToMany: false
104
104
  },
105
- model: new PagedList('rs/sql/address_files',30,{orderitem: `'f_create_date desc'`}),
105
+ model: new PagedList('api/af-revenue/sql/address_files',30,{orderitem: `'f_create_date desc'`}),
106
106
  //分公司id串
107
107
  // f_filialeids: this.$login.f.orgid,
108
108
  filenums: [{label: '全部', value: ''},{label: '多表', value: '> 1'}, {label: '一表', value: '= 1'}]