address-client 3.0.36-aodeToV4 → 3.0.38-aode
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/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/package.json +105 -105
- package/src/components/AddAreaMsg.vue +5 -5
- package/src/components/AddStreetOrPcd.vue +3 -3
- package/src/components/AddressAddAddress.vue +14 -14
- package/src/components/AddressFiles.vue +1 -1
- package/src/components/AddressList.vue +7 -7
- package/src/components/AddressTree.vue +6 -6
- package/src/components/AreaFiles.vue +1 -1
- package/src/components/AreaList.vue +11 -8
- package/src/components/AreaTree.vue +6 -6
- package/src/components/Basch.vue +1 -1
- package/src/components/BatchOrders.vue +7 -7
- package/src/components/NewAddressInfo.vue +4 -4
- package/src/components/OneCodeList.vue +1 -1
- package/src/components/StreetList.vue +3 -3
- package/src/components/UserAddress.vue +13 -12
- package/src/components/UserAddressChange.vue +1 -1
- package/src/components/addressts/AddressListts.vue +6 -6
- package/src/components/addressts/UserAddressChangets.vue +1 -1
- package/src/components/addressts/UserAddressts.vue +13 -12
- package/src/components/areauser/AreaUser.vue +3 -3
- package/src/components/selectAddress/BatchList.vue +326 -329
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/gradlew +0 -234
- package/gradlew.bat +0 -89
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "address-client",
|
|
3
|
-
"version": "3.0.
|
|
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
|
-
"axios": "0.15.3",
|
|
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
|
-
"ldap-clients": "3.0.28",
|
|
39
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
40
|
-
"cross-env": "^1.0.7",
|
|
41
|
-
"cross-spawn": "^2.1.5",
|
|
42
|
-
"css-loader": "^0.23.0",
|
|
43
|
-
"echarts": "^4.1.0",
|
|
44
|
-
"eslint": "^2.0.0",
|
|
45
|
-
"eslint-config-standard": "^5.1.0",
|
|
46
|
-
"eslint-friendly-formatter": "^1.2.2",
|
|
47
|
-
"eslint-loader": "^1.3.0",
|
|
48
|
-
"eslint-plugin-html": "^1.3.0",
|
|
49
|
-
"eslint-plugin-promise": "^1.0.8",
|
|
50
|
-
"eslint-plugin-standard": "^1.3.2",
|
|
51
|
-
"eslint-plugin-vue": "^0.1.1",
|
|
52
|
-
"eventsource-polyfill": "^0.9.6",
|
|
53
|
-
"express": "^4.13.3",
|
|
54
|
-
"extract-text-webpack-plugin": "^1.0.1",
|
|
55
|
-
"file-loader": "^0.8.4",
|
|
56
|
-
"function-bind": "^1.0.2",
|
|
57
|
-
"html-webpack-plugin": "^2.8.1",
|
|
58
|
-
"http-proxy-middleware": "^0.11.0",
|
|
59
|
-
"inject-loader": "^2.0.1",
|
|
60
|
-
"isparta-loader": "^2.0.0",
|
|
61
|
-
"jasmine-core": "^2.4.1",
|
|
62
|
-
"jquery": "^3.3.1",
|
|
63
|
-
"json-loader": "^0.5.4",
|
|
64
|
-
"karma": "^1.4.1",
|
|
65
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
66
|
-
"karma-coverage": "^1.1.1",
|
|
67
|
-
"karma-mocha": "^1.3.0",
|
|
68
|
-
"karma-sinon-chai": "^1.3.1",
|
|
69
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
70
|
-
"karma-spec-reporter": "0.0.31",
|
|
71
|
-
"karma-webpack": "^2.0.2",
|
|
72
|
-
"less": "^2.7.3",
|
|
73
|
-
"mkdirp": "^0.5.1",
|
|
74
|
-
"mocha": "^3.2.0",
|
|
75
|
-
"ncp": "^2.0.0",
|
|
76
|
-
"rimraf": "^2.5.0",
|
|
77
|
-
"sale-client": "1.0.66-aode",
|
|
78
|
-
"selenium-server": "2.52.0",
|
|
79
|
-
"sinon": "^2.1.0",
|
|
80
|
-
"sinon-chai": "^2.8.0",
|
|
81
|
-
"style": "0.0.3",
|
|
82
|
-
"style-loader": "^0.20.3",
|
|
83
|
-
"system-clients": "3.1.84",
|
|
84
|
-
"url-loader": "^0.5.7",
|
|
85
|
-
"vue-client": "1.22.20-5",
|
|
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
|
-
},
|
|
100
|
-
"directories": {
|
|
101
|
-
"doc": "doc",
|
|
102
|
-
"example": "examples",
|
|
103
|
-
"test": "test"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "address-client",
|
|
3
|
+
"version": "3.0.38-aode",
|
|
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
|
+
"axios": "0.15.3",
|
|
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
|
+
"ldap-clients": "3.0.28",
|
|
39
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
40
|
+
"cross-env": "^1.0.7",
|
|
41
|
+
"cross-spawn": "^2.1.5",
|
|
42
|
+
"css-loader": "^0.23.0",
|
|
43
|
+
"echarts": "^4.1.0",
|
|
44
|
+
"eslint": "^2.0.0",
|
|
45
|
+
"eslint-config-standard": "^5.1.0",
|
|
46
|
+
"eslint-friendly-formatter": "^1.2.2",
|
|
47
|
+
"eslint-loader": "^1.3.0",
|
|
48
|
+
"eslint-plugin-html": "^1.3.0",
|
|
49
|
+
"eslint-plugin-promise": "^1.0.8",
|
|
50
|
+
"eslint-plugin-standard": "^1.3.2",
|
|
51
|
+
"eslint-plugin-vue": "^0.1.1",
|
|
52
|
+
"eventsource-polyfill": "^0.9.6",
|
|
53
|
+
"express": "^4.13.3",
|
|
54
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
55
|
+
"file-loader": "^0.8.4",
|
|
56
|
+
"function-bind": "^1.0.2",
|
|
57
|
+
"html-webpack-plugin": "^2.8.1",
|
|
58
|
+
"http-proxy-middleware": "^0.11.0",
|
|
59
|
+
"inject-loader": "^2.0.1",
|
|
60
|
+
"isparta-loader": "^2.0.0",
|
|
61
|
+
"jasmine-core": "^2.4.1",
|
|
62
|
+
"jquery": "^3.3.1",
|
|
63
|
+
"json-loader": "^0.5.4",
|
|
64
|
+
"karma": "^1.4.1",
|
|
65
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
66
|
+
"karma-coverage": "^1.1.1",
|
|
67
|
+
"karma-mocha": "^1.3.0",
|
|
68
|
+
"karma-sinon-chai": "^1.3.1",
|
|
69
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
70
|
+
"karma-spec-reporter": "0.0.31",
|
|
71
|
+
"karma-webpack": "^2.0.2",
|
|
72
|
+
"less": "^2.7.3",
|
|
73
|
+
"mkdirp": "^0.5.1",
|
|
74
|
+
"mocha": "^3.2.0",
|
|
75
|
+
"ncp": "^2.0.0",
|
|
76
|
+
"rimraf": "^2.5.0",
|
|
77
|
+
"sale-client": "1.0.66-aode",
|
|
78
|
+
"selenium-server": "2.52.0",
|
|
79
|
+
"sinon": "^2.1.0",
|
|
80
|
+
"sinon-chai": "^2.8.0",
|
|
81
|
+
"style": "0.0.3",
|
|
82
|
+
"style-loader": "^0.20.3",
|
|
83
|
+
"system-clients": "3.1.84",
|
|
84
|
+
"url-loader": "^0.5.7",
|
|
85
|
+
"vue-client": "1.22.20-5",
|
|
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
|
+
},
|
|
100
|
+
"directories": {
|
|
101
|
+
"doc": "doc",
|
|
102
|
+
"example": "examples",
|
|
103
|
+
"test": "test"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
async initSlice (val) {
|
|
300
300
|
if (val) {
|
|
301
301
|
this.sliceArea = [];
|
|
302
|
-
let getAllArea = await this.$resetpost('/
|
|
302
|
+
let getAllArea = await this.$resetpost('/rs/sql/address_singleTableOrderBy', {
|
|
303
303
|
data:{
|
|
304
304
|
items: '*',
|
|
305
305
|
tablename: 't_zone',
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
async initpcds(pconditon){
|
|
322
322
|
this.pcdslist = []
|
|
323
323
|
let HttpReset = new HttpResetClass()
|
|
324
|
-
let req = await HttpReset.load('POST', '
|
|
324
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
325
325
|
data: {
|
|
326
326
|
items: '*',
|
|
327
327
|
tablename: 't_pcd',
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
async initstreets(pconditon){
|
|
346
346
|
this.streetslist = []
|
|
347
347
|
let HttpReset = new HttpResetClass()
|
|
348
|
-
let req = await HttpReset.load('POST', '
|
|
348
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
349
349
|
data: {
|
|
350
350
|
items: '*',
|
|
351
351
|
tablename: 't_street',
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
f_filialeid: this.f_filialeids
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
let res = await this.$resetpost('
|
|
377
|
+
let res = await this.$resetpost('rs/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
|
|
378
378
|
console.log('验证小区是否存在', res)
|
|
379
379
|
if (res.data) {
|
|
380
380
|
this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
|
|
461
461
|
this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
|
|
462
462
|
|
|
463
|
-
await this.$resetpost('
|
|
463
|
+
await this.$resetpost('rs/logic/address_updatearea', this.areamodel)
|
|
464
464
|
},
|
|
465
465
|
cleardara(){
|
|
466
466
|
this.areamodel= {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
initpcds(pconditon){
|
|
108
108
|
console.log("省市区准备")
|
|
109
109
|
let HttpReset = new HttpResetClass()
|
|
110
|
-
HttpReset.load('POST', '
|
|
110
|
+
HttpReset.load('POST', 'rs/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('
|
|
176
|
+
await this.$resetpost('rs/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('
|
|
189
|
+
await this.$resetpost('rs/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(`
|
|
75
|
+
result = await self.$resetpost(`rs/logic/address_addAddress`, val, {resolveMsg: null})
|
|
76
76
|
// 添加小区 t_area
|
|
77
77
|
if(val.f_type=='小区') {
|
|
78
|
-
let parent = await self.$resetpost(`
|
|
78
|
+
let parent = await self.$resetpost(`rs/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(`
|
|
98
|
+
result = await self.$resetpost(`rs/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(`
|
|
102
|
+
let parent = await self.$resetpost(`rs/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('
|
|
114
|
+
result = await self.$resetpost('rs/sql/address_getSelf', {data: {id: self.f_parentid}}, {resolveMsg: null})
|
|
115
115
|
} else { //修改
|
|
116
|
-
result = await self.$resetpost('
|
|
116
|
+
result = await self.$resetpost('rs/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', '
|
|
248
|
+
let res = await http.load('POST', 'rs/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', `
|
|
250
|
+
let parent = await http.load('POST', `rs/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('
|
|
258
|
+
result = await this.$resetpost('rs/sql/address_getSelf', {data: {id: this.f_parentid}}, {resolveMsg: null})
|
|
259
259
|
} else { //修改
|
|
260
|
-
result = await this.$resetpost('
|
|
260
|
+
result = await this.$resetpost('rs/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', '
|
|
348
|
+
http.load('POST', 'rs/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', `
|
|
359
|
+
// await http.load('POST', `rs/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', `
|
|
386
|
+
let parent = await http.load('POST', `rs/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', '
|
|
391
|
+
let res = await http.load('POST', 'rs/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('
|
|
105
|
+
model: new PagedList('rs/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'}]
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
43
43
|
<export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.getfield"
|
|
44
44
|
:field="$parent.$parent.getfield"
|
|
45
|
-
sqlurl="
|
|
45
|
+
sqlurl="rs/logic/addressexportfile" sql-name="address_getAddress" template-name='地址导出'
|
|
46
46
|
:choose-col="true"></export-excel>
|
|
47
47
|
<button class="button_export button_spacing" @click="$parent.$parent.importAddress">导入地址</button>
|
|
48
48
|
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
</header>
|
|
160
160
|
<article slot="modal-body" class="modal-body">
|
|
161
161
|
<div class="form-group">
|
|
162
|
-
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="
|
|
162
|
+
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
163
163
|
</div>
|
|
164
164
|
</article>
|
|
165
165
|
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
return {
|
|
177
177
|
iswork: false,
|
|
178
178
|
criteriaShow: false,
|
|
179
|
-
model: new PagedList('
|
|
179
|
+
model: new PagedList('rs/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
|
|
180
180
|
addflag: false,
|
|
181
181
|
addtitle:'',
|
|
182
182
|
condition:'',
|
|
@@ -235,8 +235,8 @@
|
|
|
235
235
|
|
|
236
236
|
if(row.id){
|
|
237
237
|
var id = row.id
|
|
238
|
-
let userfiles = await this.$resetpost('
|
|
239
|
-
let isdelete = await this.$resetpost('
|
|
238
|
+
let userfiles = await this.$resetpost('rs/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state in ('正常','待开通')`}},{resolveMsg: null, rejectMsg: null})
|
|
239
|
+
let isdelete = await this.$resetpost('rs/sql/isDeleteAddress', {data: {f_addressid: id}},{resolveMsg: null, rejectMsg: null})
|
|
240
240
|
if(userfiles.data.length){
|
|
241
241
|
this.$showAlert('该地址下已有正常/待开通表具档案,无法删除!','warning',1000)
|
|
242
242
|
return
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
this.$showAlert('该地址下已有正在工作的置换单,无法删除!','warning',1000)
|
|
246
246
|
return
|
|
247
247
|
}
|
|
248
|
-
this.$resetdelete('
|
|
248
|
+
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
249
249
|
this.$dispatch('cancel')
|
|
250
250
|
})
|
|
251
251
|
}
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
}
|
|
307
307
|
this.closeFile();
|
|
308
308
|
try{
|
|
309
|
-
await this.$resetpost(`
|
|
309
|
+
await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
|
|
310
310
|
this.$showAlert("导入成功",'success', 2000);
|
|
311
311
|
this.iswork = false
|
|
312
312
|
this.init()
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</header>
|
|
91
91
|
<article slot="modal-body" class="modal-body">
|
|
92
92
|
<div class="form-group">
|
|
93
|
-
<file-upload class="my-file-uploader" name="addressUploadFile" action="
|
|
93
|
+
<file-upload class="my-file-uploader" name="addressUploadFile" action="rs/file/uploadFile" tagname="文件导入" :headers="headers" multiple v-ref:file></file-upload>
|
|
94
94
|
</div>
|
|
95
95
|
</article>
|
|
96
96
|
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
id: this.f_location.f_locationId+"",
|
|
370
370
|
type: this.f_location.f_locationType
|
|
371
371
|
}
|
|
372
|
-
let res = await this.$resetpost(`
|
|
372
|
+
let res = await this.$resetpost(`rs/logic/address_search`, {data: {condition: condition, login: login}},{resolveMsg: null})
|
|
373
373
|
this.model = res.data
|
|
374
374
|
//刷新dom
|
|
375
375
|
await new Promise(resolve => {
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
}
|
|
442
442
|
// 导入地址
|
|
443
443
|
let asyncImport = async function (self, data) {
|
|
444
|
-
let result = await self.$resetpost(`
|
|
444
|
+
let result = await self.$resetpost(`rs/logic/address_import`,data, {resolveMsg: '导入成功', rejectMsg: '导入失败', silent: true}, 0)
|
|
445
445
|
return result
|
|
446
446
|
}
|
|
447
447
|
// 获取根地址
|
|
@@ -461,15 +461,15 @@
|
|
|
461
461
|
}
|
|
462
462
|
// 删除地址
|
|
463
463
|
let asyncDelete = async function(self, row, type) {
|
|
464
|
-
let result = await self.$resetpost(`
|
|
464
|
+
let result = await self.$resetpost(`rs/logic/address_deleteAddress`, {childId: `${row.data.id}`}, {resolveMsg: null})
|
|
465
465
|
if(type == '小区') {
|
|
466
|
-
await self.$resetpost(`
|
|
466
|
+
await self.$resetpost(`rs/logic/address_deleteArea`,{areaId: `${row.data.id}`}, {resolveMsg: null})
|
|
467
467
|
}
|
|
468
468
|
return result
|
|
469
469
|
}
|
|
470
470
|
//查询地址
|
|
471
471
|
let asyncQuery = async function(self, condition, login) {
|
|
472
|
-
let result = await self.$resetpost(`
|
|
472
|
+
let result = await self.$resetpost(`rs/logic/address_query`, {data: {condition: condition, login: login}},{resolveMsg: null})
|
|
473
473
|
return result
|
|
474
474
|
}
|
|
475
475
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
57
57
|
<export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.getfield"
|
|
58
58
|
:field="$parent.$parent.getfield"
|
|
59
|
-
sqlurl="
|
|
59
|
+
sqlurl="rs/logic/addressexportfile" sql-name="address_getarealist" template-name='小区导出'
|
|
60
60
|
:choose-col="true"></export-excel>
|
|
61
61
|
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
62
62
|
</div>
|
|
@@ -120,9 +120,11 @@
|
|
|
120
120
|
<!--非民用单位信息结束-->
|
|
121
121
|
<th><nobr>片区/管理站 </nobr></th>
|
|
122
122
|
<th><nobr>使用人数 </nobr></th>
|
|
123
|
-
<th><nobr
|
|
123
|
+
<th><nobr>地址数量 </nobr></th>
|
|
124
124
|
<th><nobr>通气年限 </nobr></th>
|
|
125
|
-
<th><nobr
|
|
125
|
+
<th><nobr>首次通气时间 </nobr></th>
|
|
126
|
+
|
|
127
|
+
<!-- <th><nobr>关联地址 </nobr></th>-->
|
|
126
128
|
<th><nobr>操作人</nobr></th>
|
|
127
129
|
<th><nobr>操作日期</nobr></th>
|
|
128
130
|
<th><nobr>操作</nobr></th>
|
|
@@ -155,8 +157,9 @@
|
|
|
155
157
|
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
156
158
|
<td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operate(row.id,row.f_residential_area)" class="btn btn-link">{{row.areacount}}</button></td>
|
|
157
159
|
<td style="text-align:center"><nobr>{{row.addresscount}}</nobr></td>
|
|
158
|
-
<td style="text-align:center"><nobr>{{row.open_date}}</nobr></td>
|
|
159
160
|
<td style="text-align:center"><nobr>{{row.yeardiff}}</nobr></td>
|
|
161
|
+
<td style="text-align:center"><nobr>{{row.open_date}}</nobr></td>
|
|
162
|
+
|
|
160
163
|
<td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
|
|
161
164
|
<td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
162
165
|
<td><nobr>
|
|
@@ -183,7 +186,7 @@
|
|
|
183
186
|
checkall:false,
|
|
184
187
|
checkitem:[],
|
|
185
188
|
criteriaShow: false,
|
|
186
|
-
model: new PagedList('
|
|
189
|
+
model: new PagedList('rs/sql/address_getarealist',50),
|
|
187
190
|
addflag: false,
|
|
188
191
|
addtitle:'',
|
|
189
192
|
condition:'',
|
|
@@ -283,7 +286,7 @@
|
|
|
283
286
|
async delete(row){
|
|
284
287
|
if(row.id){
|
|
285
288
|
var id = row.id
|
|
286
|
-
let useraredss = await this.$resetpost('
|
|
289
|
+
let useraredss = await this.$resetpost('rs/sql/address_singleTable',
|
|
287
290
|
{data: {
|
|
288
291
|
items: 'f_residential_area_id',
|
|
289
292
|
tablename: 't_user_address',
|
|
@@ -293,7 +296,7 @@
|
|
|
293
296
|
if(useraredss.data.length>0){
|
|
294
297
|
this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
|
|
295
298
|
}else{
|
|
296
|
-
this.$resetdelete('
|
|
299
|
+
this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
297
300
|
this.$dispatch('cancel')
|
|
298
301
|
})
|
|
299
302
|
}
|
|
@@ -304,7 +307,7 @@
|
|
|
304
307
|
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
305
308
|
if (res === 'confirm') {
|
|
306
309
|
//发出事件,用于建档或修正档案
|
|
307
|
-
this.$resetpost('
|
|
310
|
+
this.$resetpost('rs/logic/deleteAreaAll',{data:{arr:this.checkitem}}).then((res)=>{
|
|
308
311
|
this.search()
|
|
309
312
|
})
|
|
310
313
|
}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
</header>
|
|
95
95
|
<article slot="modal-body" class="modal-body">
|
|
96
96
|
<div class="form-group">
|
|
97
|
-
<file-upload class="my-file-uploader" name="addressUploadFile" action="
|
|
97
|
+
<file-upload class="my-file-uploader" name="addressUploadFile" action="rs/file/uploadFile" tagname="文件导入" :headers="headers" multiple v-ref:file></file-upload>
|
|
98
98
|
</div>
|
|
99
99
|
</article>
|
|
100
100
|
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
id: this.f_location.f_locationId+"",
|
|
377
377
|
type: this.f_location.f_locationType
|
|
378
378
|
}
|
|
379
|
-
let res = await this.$resetpost(`
|
|
379
|
+
let res = await this.$resetpost(`rs/logic/address_search`, {data: {condition: condition, login: login}},{resolveMsg: null})
|
|
380
380
|
this.model = res.data
|
|
381
381
|
//刷新dom
|
|
382
382
|
await new Promise(resolve => {
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
}
|
|
449
449
|
// 导入地址
|
|
450
450
|
let asyncImport = async function (self, data) {
|
|
451
|
-
let result = await self.$resetpost(`
|
|
451
|
+
let result = await self.$resetpost(`rs/logic/address_import`,data, {resolveMsg: '导入成功', rejectMsg: '导入失败', silent: true}, 0)
|
|
452
452
|
return result
|
|
453
453
|
}
|
|
454
454
|
// 获取根地址
|
|
@@ -468,15 +468,15 @@
|
|
|
468
468
|
}
|
|
469
469
|
// 删除地址
|
|
470
470
|
let asyncDelete = async function(self, row, type) {
|
|
471
|
-
let result = await self.$resetpost(`
|
|
471
|
+
let result = await self.$resetpost(`rs/logic/address_deleteAddress`, {childId: `${row.data.id}`}, {resolveMsg: null})
|
|
472
472
|
if(type == '小区') {
|
|
473
|
-
await self.$resetpost(`
|
|
473
|
+
await self.$resetpost(`rs/logic/address_deleteArea`,{areaId: `${row.data.id}`}, {resolveMsg: null})
|
|
474
474
|
}
|
|
475
475
|
return result
|
|
476
476
|
}
|
|
477
477
|
//查询地址
|
|
478
478
|
let asyncQuery = async function(self, condition, login) {
|
|
479
|
-
let result = await self.$resetpost(`
|
|
479
|
+
let result = await self.$resetpost(`rs/logic/address_query`, {data: {condition: condition, login: login}},{resolveMsg: null})
|
|
480
480
|
return result
|
|
481
481
|
}
|
|
482
482
|
|
package/src/components/Basch.vue
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
batchs.push({type: '门牌号', names: this.name_m})
|
|
60
60
|
}
|
|
61
61
|
console.log(batchs)
|
|
62
|
-
await this.$resetpost(`
|
|
62
|
+
await this.$resetpost(`rs/logic/address_batch`, {id: this.id, json: batchs})
|
|
63
63
|
this.$emit('addChild')
|
|
64
64
|
}
|
|
65
65
|
}
|