address-client 3.2.102 → 3.2.103-ls
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/package.json +100 -100
- package/src/address.js +74 -74
- package/src/components/AddStreetOrPcd.vue +321 -320
- package/src/components/CityList.vue +1 -0
- package/src/components/CommunityManage.vue +78 -78
- package/src/filiale/xinkang/sale.js +9 -9
package/package.json
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "address-client",
|
|
3
|
-
"version": "3.2.
|
|
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
|
-
"ldap-clients": "3.0.48",
|
|
82
|
-
"system-clients": "3.2.68",
|
|
83
|
-
"url-loader": "^0.5.7",
|
|
84
|
-
"vue-client": "1.24.98",
|
|
85
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
86
|
-
"vue-html-loader": "^1.0.0",
|
|
87
|
-
"vue-loader": "^8.2.1",
|
|
88
|
-
"vue-resource": "^1.5.0",
|
|
89
|
-
"vue-router": "^0.7.13",
|
|
90
|
-
"vue-strap": "^1.0.9",
|
|
91
|
-
"vue-style-loader": "^1.0.0",
|
|
92
|
-
"vue-validator": "2.1.7",
|
|
93
|
-
"webpack": "^1.12.2",
|
|
94
|
-
"webpack-dev-middleware": "^1.4.0",
|
|
95
|
-
"webpack-hot-middleware": "^2.6.0",
|
|
96
|
-
"webpack-merge": "^0.8.3",
|
|
97
|
-
"jsencrypt": "3.0.0-rc.1",
|
|
98
|
-
"axios": "0.15.3"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "address-client",
|
|
3
|
+
"version": "3.2.103-ls",
|
|
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
|
+
"ldap-clients": "3.0.48",
|
|
82
|
+
"system-clients": "3.2.68",
|
|
83
|
+
"url-loader": "^0.5.7",
|
|
84
|
+
"vue-client": "1.24.98",
|
|
85
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
86
|
+
"vue-html-loader": "^1.0.0",
|
|
87
|
+
"vue-loader": "^8.2.1",
|
|
88
|
+
"vue-resource": "^1.5.0",
|
|
89
|
+
"vue-router": "^0.7.13",
|
|
90
|
+
"vue-strap": "^1.0.9",
|
|
91
|
+
"vue-style-loader": "^1.0.0",
|
|
92
|
+
"vue-validator": "2.1.7",
|
|
93
|
+
"webpack": "^1.12.2",
|
|
94
|
+
"webpack-dev-middleware": "^1.4.0",
|
|
95
|
+
"webpack-hot-middleware": "^2.6.0",
|
|
96
|
+
"webpack-merge": "^0.8.3",
|
|
97
|
+
"jsencrypt": "3.0.0-rc.1",
|
|
98
|
+
"axios": "0.15.3"
|
|
99
|
+
}
|
|
100
|
+
}
|
package/src/address.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App'
|
|
3
|
-
import { all } from 'vue-client'
|
|
4
|
-
// import 'babel-polyfill'
|
|
5
|
-
|
|
6
|
-
export default function (filiale) {
|
|
7
|
-
Vue.config.silent = false
|
|
8
|
-
/** ********************** pc端 *********************** **/
|
|
9
|
-
Vue.component('address-select', (resolve) => { require(['./components/AddressModel'], resolve) })
|
|
10
|
-
Vue.component('address-model', (resolve) => { require(['./components/AddressModel'], resolve) })
|
|
11
|
-
// 添加地址
|
|
12
|
-
Vue.component('address-add-address', (resolve) => { require(['./components/AddressAddAddress'], resolve) })
|
|
13
|
-
// 地址树
|
|
14
|
-
Vue.component('address-tree', (resolve) => { require(['./components/AddressTree'], resolve) })
|
|
15
|
-
//小区树
|
|
16
|
-
Vue.component('area-tree', (resolve) => { require(['./components/AreaTree'], resolve) })
|
|
17
|
-
/** ********************** 新地址管理 *********************** **/
|
|
18
|
-
//地址建档
|
|
19
|
-
Vue.component('address-files', (resolve) => { require(['./components/AddressFiles'], resolve) })
|
|
20
|
-
//小区建档
|
|
21
|
-
Vue.component('area-files', (resolve) => { require(['./components/AreaFiles'], resolve) })
|
|
22
|
-
//街道列表
|
|
23
|
-
Vue.component('street-list', (resolve) => { require(['./components/StreetList'], resolve) })
|
|
24
|
-
//省市区列表
|
|
25
|
-
Vue.component('city-list', (resolve) => { require(['./components/CityList'], resolve) })
|
|
26
|
-
//街道管理(包含街道,省区县的添加)
|
|
27
|
-
Vue.component('city-manage', (resolve) => { require(['./components/CityManage'], resolve) })
|
|
28
|
-
//街道区县添加
|
|
29
|
-
Vue.component('add-street-pcd', (resolve) => { require(['./components/AddStreetOrPcd'], resolve) })
|
|
30
|
-
//小区列表
|
|
31
|
-
Vue.component('area-list', (resolve) => { require(['./components/AreaList'], resolve) })
|
|
32
|
-
//小区管理(包含修改表具,小区的添加)
|
|
33
|
-
Vue.component('area-manage', (resolve) => { require(['./components/AreaManage'], resolve) })
|
|
34
|
-
// 楼栋列表
|
|
35
|
-
Vue.component('building-list', (resolve) => { require(['./components/BuildingList'], resolve) })
|
|
36
|
-
//单位管理()
|
|
37
|
-
Vue.component('company-manage', (resolve) => { require(['./components/CompanyManage'], resolve) })
|
|
38
|
-
//小区添加
|
|
39
|
-
Vue.component('add-area-msg', (resolve) => { require(['./components/AddAreaMsg'], resolve) })
|
|
40
|
-
//地址管理父组件
|
|
41
|
-
Vue.component('address-manage', (resolve) => { require(['./components/AddressManage'], resolve) })
|
|
42
|
-
//地址列表
|
|
43
|
-
Vue.component('address-list', (resolve) => { require(['./components/AddressList'], resolve) })
|
|
44
|
-
//地址管理
|
|
45
|
-
Vue.component('user-address', (resolve) => { require(['./components/UserAddress'], resolve) })
|
|
46
|
-
//地址变更记录
|
|
47
|
-
Vue.component('user-address-change', (resolve) => { require(['./components/UserAddressChange'], resolve) })
|
|
48
|
-
//批量置换接单
|
|
49
|
-
Vue.component('batch_orders', (resolve) => { require(['./components/selectAddress/BatchOrders'], resolve) })
|
|
50
|
-
// 地址管理琉璃
|
|
51
|
-
Vue.component('address-list-liuli', (resolve) => { require(['./components/AddressListLiuLi'], resolve) })
|
|
52
|
-
// 街道办管理
|
|
53
|
-
Vue.component('street-manage-manage', (resolve) => { require(['./components/StreetManage'], resolve) })
|
|
54
|
-
// 街道办列表
|
|
55
|
-
Vue.component('street-manage-list', (resolve) => { require(['./components/StreetManageList'], resolve) })
|
|
56
|
-
// 新增/修改 街道办信息
|
|
57
|
-
Vue.component('add-street-manage-msg', (resolve) => { require(['./components/AddStreetManageMsg'], resolve) })
|
|
58
|
-
// 社区管理
|
|
59
|
-
Vue.component('community-manage', (resolve) => { require(['./components/CommunityManage'], resolve) })
|
|
60
|
-
// 街道办列表
|
|
61
|
-
Vue.component('community-manage-list', (resolve) => { require(['./components/CommunityManageList'], resolve) })
|
|
62
|
-
// 新增/修改 街道办信息
|
|
63
|
-
Vue.component('add-community-manage-msg', (resolve) => { require(['./components/AddCommunityManageMsg'], resolve) })
|
|
64
|
-
// 新增/修改 街道办信息
|
|
65
|
-
Vue.component('community-area-list', (resolve) => { require(['./components/CommunityAreaList'], resolve) })
|
|
66
|
-
|
|
67
|
-
// 分公司特殊页面注册替换
|
|
68
|
-
if (filiale) {
|
|
69
|
-
let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
|
|
70
|
-
for (let key in filialeComp) {
|
|
71
|
-
Vue.component(key, filialeComp[key])
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App'
|
|
3
|
+
import { all } from 'vue-client'
|
|
4
|
+
// import 'babel-polyfill'
|
|
5
|
+
|
|
6
|
+
export default function (filiale) {
|
|
7
|
+
Vue.config.silent = false
|
|
8
|
+
/** ********************** pc端 *********************** **/
|
|
9
|
+
Vue.component('address-select', (resolve) => { require(['./components/AddressModel'], resolve) })
|
|
10
|
+
Vue.component('address-model', (resolve) => { require(['./components/AddressModel'], resolve) })
|
|
11
|
+
// 添加地址
|
|
12
|
+
Vue.component('address-add-address', (resolve) => { require(['./components/AddressAddAddress'], resolve) })
|
|
13
|
+
// 地址树
|
|
14
|
+
Vue.component('address-tree', (resolve) => { require(['./components/AddressTree'], resolve) })
|
|
15
|
+
//小区树
|
|
16
|
+
Vue.component('area-tree', (resolve) => { require(['./components/AreaTree'], resolve) })
|
|
17
|
+
/** ********************** 新地址管理 *********************** **/
|
|
18
|
+
//地址建档
|
|
19
|
+
Vue.component('address-files', (resolve) => { require(['./components/AddressFiles'], resolve) })
|
|
20
|
+
//小区建档
|
|
21
|
+
Vue.component('area-files', (resolve) => { require(['./components/AreaFiles'], resolve) })
|
|
22
|
+
//街道列表
|
|
23
|
+
Vue.component('street-list', (resolve) => { require(['./components/StreetList'], resolve) })
|
|
24
|
+
//省市区列表
|
|
25
|
+
Vue.component('city-list', (resolve) => { require(['./components/CityList'], resolve) })
|
|
26
|
+
//街道管理(包含街道,省区县的添加)
|
|
27
|
+
Vue.component('city-manage', (resolve) => { require(['./components/CityManage'], resolve) })
|
|
28
|
+
//街道区县添加
|
|
29
|
+
Vue.component('add-street-pcd', (resolve) => { require(['./components/AddStreetOrPcd'], resolve) })
|
|
30
|
+
//小区列表
|
|
31
|
+
Vue.component('area-list', (resolve) => { require(['./components/AreaList'], resolve) })
|
|
32
|
+
//小区管理(包含修改表具,小区的添加)
|
|
33
|
+
Vue.component('area-manage', (resolve) => { require(['./components/AreaManage'], resolve) })
|
|
34
|
+
// 楼栋列表
|
|
35
|
+
Vue.component('building-list', (resolve) => { require(['./components/BuildingList'], resolve) })
|
|
36
|
+
//单位管理()
|
|
37
|
+
Vue.component('company-manage', (resolve) => { require(['./components/CompanyManage'], resolve) })
|
|
38
|
+
//小区添加
|
|
39
|
+
Vue.component('add-area-msg', (resolve) => { require(['./components/AddAreaMsg'], resolve) })
|
|
40
|
+
//地址管理父组件
|
|
41
|
+
Vue.component('address-manage', (resolve) => { require(['./components/AddressManage'], resolve) })
|
|
42
|
+
//地址列表
|
|
43
|
+
Vue.component('address-list', (resolve) => { require(['./components/AddressList'], resolve) })
|
|
44
|
+
//地址管理
|
|
45
|
+
Vue.component('user-address', (resolve) => { require(['./components/UserAddress'], resolve) })
|
|
46
|
+
//地址变更记录
|
|
47
|
+
Vue.component('user-address-change', (resolve) => { require(['./components/UserAddressChange'], resolve) })
|
|
48
|
+
//批量置换接单
|
|
49
|
+
Vue.component('batch_orders', (resolve) => { require(['./components/selectAddress/BatchOrders'], resolve) })
|
|
50
|
+
// 地址管理琉璃
|
|
51
|
+
Vue.component('address-list-liuli', (resolve) => { require(['./components/AddressListLiuLi'], resolve) })
|
|
52
|
+
// 街道办管理
|
|
53
|
+
Vue.component('street-manage-manage', (resolve) => { require(['./components/StreetManage'], resolve) })
|
|
54
|
+
// 街道办列表
|
|
55
|
+
Vue.component('street-manage-list', (resolve) => { require(['./components/StreetManageList'], resolve) })
|
|
56
|
+
// 新增/修改 街道办信息
|
|
57
|
+
Vue.component('add-street-manage-msg', (resolve) => { require(['./components/AddStreetManageMsg'], resolve) })
|
|
58
|
+
// 社区管理
|
|
59
|
+
Vue.component('community-manage', (resolve) => { require(['./components/CommunityManage'], resolve) })
|
|
60
|
+
// 街道办列表
|
|
61
|
+
Vue.component('community-manage-list', (resolve) => { require(['./components/CommunityManageList'], resolve) })
|
|
62
|
+
// 新增/修改 街道办信息
|
|
63
|
+
Vue.component('add-community-manage-msg', (resolve) => { require(['./components/AddCommunityManageMsg'], resolve) })
|
|
64
|
+
// 新增/修改 街道办信息
|
|
65
|
+
Vue.component('community-area-list', (resolve) => { require(['./components/CommunityAreaList'], resolve) })
|
|
66
|
+
|
|
67
|
+
// 分公司特殊页面注册替换
|
|
68
|
+
if (filiale) {
|
|
69
|
+
let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
|
|
70
|
+
for (let key in filialeComp) {
|
|
71
|
+
Vue.component(key, filialeComp[key])
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -1,320 +1,321 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="span">
|
|
3
|
-
<validator name='v'>
|
|
4
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='add'">添加{{areatype}}</p>
|
|
5
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='街道'">修改【{{streetmodel.f_street}}】街道</p>
|
|
6
|
-
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='省市区'">修改【{{pcdmodel.f_pcd}}】</p>
|
|
7
|
-
<div class="auto select-overspread form-horizontal">
|
|
8
|
-
<div style="text-align:right;margin-top:6px;" class="col-sm-12">
|
|
9
|
-
<!-- 省市区-->
|
|
10
|
-
<div v-if="areatype=='省市区'" class="row">
|
|
11
|
-
<div class="col-sm-6 form-group "
|
|
12
|
-
:class="[$v.f_province.required ? 'has-error' : 'has-success']">
|
|
13
|
-
<label class="font_normal_body">省  份</label>
|
|
14
|
-
<input type="text" v-model="pcdmodel.f_province"
|
|
15
|
-
class="input_search" style="width:60%" placeholder="省份"
|
|
16
|
-
v-validate:f_province='{required: true }'>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-6 form-group "
|
|
19
|
-
:class="[$v.f_city.required ? 'has-error' : 'has-success']">
|
|
20
|
-
<label class="font_normal_body">城  市</label>
|
|
21
|
-
<input type="text" v-model="pcdmodel.f_city"
|
|
22
|
-
class="input_search" style="width:60%" placeholder="城市"
|
|
23
|
-
v-validate:f_city='{required: true }'>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="col-sm-6 form-group "
|
|
26
|
-
:class="[$v.f_district.required ? 'has-error' : 'has-success']">
|
|
27
|
-
<label class="font_normal_body">区  / 县</label>
|
|
28
|
-
<input type="text" v-model="pcdmodel.f_district"
|
|
29
|
-
class="input_search" style="width:60%" placeholder="区/县"
|
|
30
|
-
v-validate:f_district='{required: true }'>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-sm-6 form-group " v-if="config.hasnumber"
|
|
33
|
-
:class="[$v.f_pcd_number.required ? 'has-error' : 'has-success']">
|
|
34
|
-
<label class="font_normal_body">区域编码</label>
|
|
35
|
-
<input type="number" v-model="pcdmodel.f_pcd_number"
|
|
36
|
-
class="input_search" style="width:60%" placeholder="区/县"
|
|
37
|
-
@change="numberyanzheng"
|
|
38
|
-
v-validate:f_pcd_number='{required: true }'>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="col-sm-12 form-group">
|
|
41
|
-
<label class="font_normal_body " style="">备  注</label>
|
|
42
|
-
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<!-- 街道-->
|
|
46
|
-
<div v-if="areatype=='街道'" class="row">
|
|
47
|
-
<div class="col-sm-6 form-group "
|
|
48
|
-
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
49
|
-
<label class="font_normal_body">省 市 区</label>
|
|
50
|
-
<input type="text" v-show="false" v-model="streetmodel.f_pcd_id"
|
|
51
|
-
v-validate:f_pcd_id='{required: true }'>
|
|
52
|
-
<v-select
|
|
53
|
-
:value.sync="streetmodel.f_pcd_id" :value-single="true"
|
|
54
|
-
:options='pcdslist' placeholder='请选择'
|
|
55
|
-
close-on-select search="true" @change="pcdChange">
|
|
56
|
-
</v-select>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="col-sm-6 form-group "
|
|
59
|
-
:class="[$v.f_street.required ? 'has-error' : 'has-success']">
|
|
60
|
-
<label class="font_normal_body">街道/乡镇</label>
|
|
61
|
-
<input type="text" v-model="streetmodel.f_street"
|
|
62
|
-
class="input_search" style="width:60%" placeholder="街道/乡镇"
|
|
63
|
-
v-validate:f_street='{required: true }'>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="col-sm-6 form-group " v-if="config.hasnumber"
|
|
66
|
-
:class="[$v.f_street_number.required ? 'has-error' : 'has-success']">
|
|
67
|
-
<label class="font_normal_body">街道编号</label>
|
|
68
|
-
<input type="text" v-model="streetmodel.f_street_number"
|
|
69
|
-
@change="streetyanzheng"
|
|
70
|
-
class="input_search" style="width:60%" placeholder="街道编号"
|
|
71
|
-
v-validate:f_street_number='{required: true }'>
|
|
72
|
-
</div>
|
|
73
|
-
<div class="col-sm-6 form-group "
|
|
74
|
-
:class="[$v.f_iscity.required ? 'has-error' : 'has-success']">
|
|
75
|
-
<label class="font_normal_body">地区类型</label>
|
|
76
|
-
<input type="text" v-show="false" v-model="streetmodel.f_iscity"
|
|
77
|
-
v-validate:f_iscity='{required: true }'>
|
|
78
|
-
<v-select
|
|
79
|
-
:value.sync="streetmodel.f_iscity" :value-single="true"
|
|
80
|
-
:options='iscity' placeholder='请选择'
|
|
81
|
-
close-on-select>
|
|
82
|
-
</v-select>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="col-sm-12 form-group">
|
|
85
|
-
<label class="font_normal_body " style="">备  注</label>
|
|
86
|
-
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
|
|
90
|
-
<div class="row">
|
|
91
|
-
<div style="margin-top:40px;text-align:right;">
|
|
92
|
-
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
93
|
-
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
94
|
-
</div>
|
|
95
|
-
<div v-if="areatype=='省市区'" class="row" style="margin-top:40px;height: 580px;">
|
|
96
|
-
<city-list v-ref:addpcd @select-changed="selected" :f_filialeids.sync="f_filialeids"></city-list>
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
</validator>
|
|
101
|
-
</div>
|
|
102
|
-
</template>
|
|
103
|
-
|
|
104
|
-
<script>
|
|
105
|
-
import {HttpResetClass} from 'vue-client'
|
|
106
|
-
|
|
107
|
-
let getAreaConfig = async function (self) {
|
|
108
|
-
// 获取气价里面的配置
|
|
109
|
-
await self.$getConfig(self, 'UserPcd')
|
|
110
|
-
console.log('原地址配置',self.config)
|
|
111
|
-
console.log('获取地址配置',self.config)
|
|
112
|
-
Object.assign(self.model, self.config)
|
|
113
|
-
}
|
|
114
|
-
export default {
|
|
115
|
-
title: '区域地址添加',
|
|
116
|
-
data () {
|
|
117
|
-
return {
|
|
118
|
-
//初始化省市区数据
|
|
119
|
-
config:{
|
|
120
|
-
hasnumber: false
|
|
121
|
-
},
|
|
122
|
-
pcdslist:[],
|
|
123
|
-
iscity:[{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'}],
|
|
124
|
-
//省市区
|
|
125
|
-
pcdmodel: {
|
|
126
|
-
f_province:'',
|
|
127
|
-
f_city:'',
|
|
128
|
-
f_district:'',
|
|
129
|
-
f_comments:'',
|
|
130
|
-
f_pcd_number: ''
|
|
131
|
-
},
|
|
132
|
-
//街道
|
|
133
|
-
streetmodel: {
|
|
134
|
-
f_pcd_id:'',
|
|
135
|
-
f_street_id:'',
|
|
136
|
-
slice_area: null,
|
|
137
|
-
f_slice_area: null,
|
|
138
|
-
f_adjustable_id: null,
|
|
139
|
-
f_street:'',
|
|
140
|
-
f_comments:'',
|
|
141
|
-
f_street_number:''
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
props: ['f_filialeids', 'areatype','row','operation'],
|
|
146
|
-
ready(){
|
|
147
|
-
this.initdata()
|
|
148
|
-
getAreaConfig(this)
|
|
149
|
-
},
|
|
150
|
-
methods: {
|
|
151
|
-
async streetyanzheng(){
|
|
152
|
-
console.log(this.streetmodel.f_street_number.length)
|
|
153
|
-
if (this.streetmodel.f_street_number.length != 2){
|
|
154
|
-
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
155
|
-
this.streetmodel.f_street_number = ''
|
|
156
|
-
}else{
|
|
157
|
-
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
158
|
-
data: {
|
|
159
|
-
items: '*',
|
|
160
|
-
tablename: 't_street',
|
|
161
|
-
orderitem: 'id',
|
|
162
|
-
condition: `f_street_number = '${this.streetmodel.f_street_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
163
|
-
}
|
|
164
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
165
|
-
if (res.data.length>0){
|
|
166
|
-
if (res.data[0].id != this.streetmodel.id) {
|
|
167
|
-
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
168
|
-
this.streetmodel.f_street_number = ''
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
async numberyanzheng(){
|
|
174
|
-
console.log(this.pcdmodel.f_pcd_number.length)
|
|
175
|
-
if (this.pcdmodel.f_pcd_number.length != 3){
|
|
176
|
-
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
177
|
-
this.pcdmodel.f_pcd_number = ''
|
|
178
|
-
}else{
|
|
179
|
-
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
180
|
-
data: {
|
|
181
|
-
items: '*',
|
|
182
|
-
tablename: 't_pcd',
|
|
183
|
-
orderitem: 'id',
|
|
184
|
-
condition: `f_pcd_number = '${this.pcdmodel.f_pcd_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
185
|
-
}
|
|
186
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
187
|
-
if (res.data.length>0){
|
|
188
|
-
if (res.data[0].id != this.pcdmodel.id) {
|
|
189
|
-
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
190
|
-
this.pcdmodel.f_pcd_number = ''
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
//初始化省市区,添加街道
|
|
196
|
-
initpcds(pconditon){
|
|
197
|
-
console.log("省市区准备")
|
|
198
|
-
let HttpReset = new HttpResetClass()
|
|
199
|
-
HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
200
|
-
data: {
|
|
201
|
-
items: '*',
|
|
202
|
-
tablename: 't_pcd',
|
|
203
|
-
orderitem: 'id',
|
|
204
|
-
condition: pconditon
|
|
205
|
-
}
|
|
206
|
-
}, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
|
|
207
|
-
let redata = []
|
|
208
|
-
req.data.forEach((row, n) => {
|
|
209
|
-
redata[n] = {
|
|
210
|
-
label: row.f_pcd,
|
|
211
|
-
value: row.id,
|
|
212
|
-
data:row,
|
|
213
|
-
id:row.id
|
|
214
|
-
}
|
|
215
|
-
})
|
|
216
|
-
this.pcdslist=redata
|
|
217
|
-
})
|
|
218
|
-
},
|
|
219
|
-
//根据名字找数据
|
|
220
|
-
findbyid(list,name){
|
|
221
|
-
var result
|
|
222
|
-
list.forEach((row, n) => {
|
|
223
|
-
if(name==row.id){
|
|
224
|
-
result= row.data
|
|
225
|
-
}
|
|
226
|
-
})
|
|
227
|
-
return result
|
|
228
|
-
},
|
|
229
|
-
//初始化数据
|
|
230
|
-
initdata(){
|
|
231
|
-
if(this.areatype=='街道'){
|
|
232
|
-
this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
233
|
-
}
|
|
234
|
-
if(this.areatype=='小区'){
|
|
235
|
-
this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
236
|
-
this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
//省/市/区变化
|
|
240
|
-
pcdChange(val){
|
|
241
|
-
console.log("省/市/区变化",val)
|
|
242
|
-
this.$resetValidation()
|
|
243
|
-
},
|
|
244
|
-
//保存
|
|
245
|
-
async confirm(){
|
|
246
|
-
if(this.areatype=='省市区'){
|
|
247
|
-
await this.savepcd()
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
this
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
this.pcdmodel.
|
|
259
|
-
this.pcdmodel.
|
|
260
|
-
this.pcdmodel.
|
|
261
|
-
this.pcdmodel.
|
|
262
|
-
this.pcdmodel.
|
|
263
|
-
this.pcdmodel.
|
|
264
|
-
this.pcdmodel.
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
this.streetmodel.
|
|
271
|
-
this.streetmodel.
|
|
272
|
-
this.streetmodel.
|
|
273
|
-
this.streetmodel.
|
|
274
|
-
this.streetmodel.
|
|
275
|
-
this.streetmodel.
|
|
276
|
-
this.streetmodel.
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
this
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="span">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='add'">添加{{areatype}}</p>
|
|
5
|
+
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='街道'">修改【{{streetmodel.f_street}}】街道</p>
|
|
6
|
+
<p class="bg-info text-center" style="padding: 8px;" v-if="operation=='modify'&&areatype=='省市区'">修改【{{pcdmodel.f_pcd}}】</p>
|
|
7
|
+
<div class="auto select-overspread form-horizontal">
|
|
8
|
+
<div style="text-align:right;margin-top:6px;" class="col-sm-12">
|
|
9
|
+
<!-- 省市区-->
|
|
10
|
+
<div v-if="areatype=='省市区'" class="row">
|
|
11
|
+
<div class="col-sm-6 form-group "
|
|
12
|
+
:class="[$v.f_province.required ? 'has-error' : 'has-success']">
|
|
13
|
+
<label class="font_normal_body">省  份</label>
|
|
14
|
+
<input type="text" v-model="pcdmodel.f_province"
|
|
15
|
+
class="input_search" style="width:60%" placeholder="省份"
|
|
16
|
+
v-validate:f_province='{required: true }'>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-6 form-group "
|
|
19
|
+
:class="[$v.f_city.required ? 'has-error' : 'has-success']">
|
|
20
|
+
<label class="font_normal_body">城  市</label>
|
|
21
|
+
<input type="text" v-model="pcdmodel.f_city"
|
|
22
|
+
class="input_search" style="width:60%" placeholder="城市"
|
|
23
|
+
v-validate:f_city='{required: true }'>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="col-sm-6 form-group "
|
|
26
|
+
:class="[$v.f_district.required ? 'has-error' : 'has-success']">
|
|
27
|
+
<label class="font_normal_body">区  / 县</label>
|
|
28
|
+
<input type="text" v-model="pcdmodel.f_district"
|
|
29
|
+
class="input_search" style="width:60%" placeholder="区/县"
|
|
30
|
+
v-validate:f_district='{required: true }'>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-sm-6 form-group " v-if="config.hasnumber"
|
|
33
|
+
:class="[$v.f_pcd_number.required ? 'has-error' : 'has-success']">
|
|
34
|
+
<label class="font_normal_body">区域编码</label>
|
|
35
|
+
<input type="number" v-model="pcdmodel.f_pcd_number"
|
|
36
|
+
class="input_search" style="width:60%" placeholder="区/县"
|
|
37
|
+
@change="numberyanzheng"
|
|
38
|
+
v-validate:f_pcd_number='{required: true }'>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-sm-12 form-group">
|
|
41
|
+
<label class="font_normal_body " style="">备  注</label>
|
|
42
|
+
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="pcdmodel.f_comments"></textarea>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<!-- 街道-->
|
|
46
|
+
<div v-if="areatype=='街道'" class="row">
|
|
47
|
+
<div class="col-sm-6 form-group "
|
|
48
|
+
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
49
|
+
<label class="font_normal_body">省 市 区</label>
|
|
50
|
+
<input type="text" v-show="false" v-model="streetmodel.f_pcd_id"
|
|
51
|
+
v-validate:f_pcd_id='{required: true }'>
|
|
52
|
+
<v-select
|
|
53
|
+
:value.sync="streetmodel.f_pcd_id" :value-single="true"
|
|
54
|
+
:options='pcdslist' placeholder='请选择'
|
|
55
|
+
close-on-select search="true" @change="pcdChange">
|
|
56
|
+
</v-select>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="col-sm-6 form-group "
|
|
59
|
+
:class="[$v.f_street.required ? 'has-error' : 'has-success']">
|
|
60
|
+
<label class="font_normal_body">街道/乡镇</label>
|
|
61
|
+
<input type="text" v-model="streetmodel.f_street"
|
|
62
|
+
class="input_search" style="width:60%" placeholder="街道/乡镇"
|
|
63
|
+
v-validate:f_street='{required: true }'>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-6 form-group " v-if="config.hasnumber"
|
|
66
|
+
:class="[$v.f_street_number.required ? 'has-error' : 'has-success']">
|
|
67
|
+
<label class="font_normal_body">街道编号</label>
|
|
68
|
+
<input type="text" v-model="streetmodel.f_street_number"
|
|
69
|
+
@change="streetyanzheng"
|
|
70
|
+
class="input_search" style="width:60%" placeholder="街道编号"
|
|
71
|
+
v-validate:f_street_number='{required: true }'>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-6 form-group "
|
|
74
|
+
:class="[$v.f_iscity.required ? 'has-error' : 'has-success']">
|
|
75
|
+
<label class="font_normal_body">地区类型</label>
|
|
76
|
+
<input type="text" v-show="false" v-model="streetmodel.f_iscity"
|
|
77
|
+
v-validate:f_iscity='{required: true }'>
|
|
78
|
+
<v-select
|
|
79
|
+
:value.sync="streetmodel.f_iscity" :value-single="true"
|
|
80
|
+
:options='iscity' placeholder='请选择'
|
|
81
|
+
close-on-select>
|
|
82
|
+
</v-select>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-12 form-group">
|
|
85
|
+
<label class="font_normal_body " style="">备  注</label>
|
|
86
|
+
<textarea class="input_textarea" rows="3" style="margin-top:25px;width:80%;height: auto;" v-model="streetmodel.f_comments"></textarea>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div class="row">
|
|
91
|
+
<div style="margin-top:40px;text-align:right;">
|
|
92
|
+
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
93
|
+
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
94
|
+
</div>
|
|
95
|
+
<div v-if="areatype=='省市区'" class="row" style="margin-top:40px;height: 580px;">
|
|
96
|
+
<city-list v-ref:addpcd @select-changed="selected" :f_filialeids.sync="f_filialeids"></city-list>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</validator>
|
|
101
|
+
</div>
|
|
102
|
+
</template>
|
|
103
|
+
|
|
104
|
+
<script>
|
|
105
|
+
import {HttpResetClass} from 'vue-client'
|
|
106
|
+
|
|
107
|
+
let getAreaConfig = async function (self) {
|
|
108
|
+
// 获取气价里面的配置
|
|
109
|
+
await self.$getConfig(self, 'UserPcd')
|
|
110
|
+
console.log('原地址配置',self.config)
|
|
111
|
+
console.log('获取地址配置',self.config)
|
|
112
|
+
Object.assign(self.model, self.config)
|
|
113
|
+
}
|
|
114
|
+
export default {
|
|
115
|
+
title: '区域地址添加',
|
|
116
|
+
data () {
|
|
117
|
+
return {
|
|
118
|
+
//初始化省市区数据
|
|
119
|
+
config:{
|
|
120
|
+
hasnumber: false
|
|
121
|
+
},
|
|
122
|
+
pcdslist:[],
|
|
123
|
+
iscity:[{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'}],
|
|
124
|
+
//省市区
|
|
125
|
+
pcdmodel: {
|
|
126
|
+
f_province:'',
|
|
127
|
+
f_city:'',
|
|
128
|
+
f_district:'',
|
|
129
|
+
f_comments:'',
|
|
130
|
+
f_pcd_number: ''
|
|
131
|
+
},
|
|
132
|
+
//街道
|
|
133
|
+
streetmodel: {
|
|
134
|
+
f_pcd_id:'',
|
|
135
|
+
f_street_id:'',
|
|
136
|
+
slice_area: null,
|
|
137
|
+
f_slice_area: null,
|
|
138
|
+
f_adjustable_id: null,
|
|
139
|
+
f_street:'',
|
|
140
|
+
f_comments:'',
|
|
141
|
+
f_street_number:''
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
props: ['f_filialeids', 'areatype','row','operation'],
|
|
146
|
+
ready(){
|
|
147
|
+
this.initdata()
|
|
148
|
+
getAreaConfig(this)
|
|
149
|
+
},
|
|
150
|
+
methods: {
|
|
151
|
+
async streetyanzheng(){
|
|
152
|
+
console.log(this.streetmodel.f_street_number.length)
|
|
153
|
+
if (this.streetmodel.f_street_number.length != 2){
|
|
154
|
+
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
155
|
+
this.streetmodel.f_street_number = ''
|
|
156
|
+
}else{
|
|
157
|
+
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
158
|
+
data: {
|
|
159
|
+
items: '*',
|
|
160
|
+
tablename: 't_street',
|
|
161
|
+
orderitem: 'id',
|
|
162
|
+
condition: `f_street_number = '${this.streetmodel.f_street_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
163
|
+
}
|
|
164
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
165
|
+
if (res.data.length>0){
|
|
166
|
+
if (res.data[0].id != this.streetmodel.id) {
|
|
167
|
+
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
168
|
+
this.streetmodel.f_street_number = ''
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
async numberyanzheng(){
|
|
174
|
+
console.log(this.pcdmodel.f_pcd_number.length)
|
|
175
|
+
if (this.pcdmodel.f_pcd_number.length != 3){
|
|
176
|
+
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
177
|
+
this.pcdmodel.f_pcd_number = ''
|
|
178
|
+
}else{
|
|
179
|
+
let res =await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
180
|
+
data: {
|
|
181
|
+
items: '*',
|
|
182
|
+
tablename: 't_pcd',
|
|
183
|
+
orderitem: 'id',
|
|
184
|
+
condition: `f_pcd_number = '${this.pcdmodel.f_pcd_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
185
|
+
}
|
|
186
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
187
|
+
if (res.data.length>0){
|
|
188
|
+
if (res.data[0].id != this.pcdmodel.id) {
|
|
189
|
+
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
190
|
+
this.pcdmodel.f_pcd_number = ''
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
//初始化省市区,添加街道
|
|
196
|
+
initpcds(pconditon){
|
|
197
|
+
console.log("省市区准备")
|
|
198
|
+
let HttpReset = new HttpResetClass()
|
|
199
|
+
HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
200
|
+
data: {
|
|
201
|
+
items: '*',
|
|
202
|
+
tablename: 't_pcd',
|
|
203
|
+
orderitem: 'id',
|
|
204
|
+
condition: pconditon
|
|
205
|
+
}
|
|
206
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
|
|
207
|
+
let redata = []
|
|
208
|
+
req.data.forEach((row, n) => {
|
|
209
|
+
redata[n] = {
|
|
210
|
+
label: row.f_pcd,
|
|
211
|
+
value: row.id,
|
|
212
|
+
data:row,
|
|
213
|
+
id:row.id
|
|
214
|
+
}
|
|
215
|
+
})
|
|
216
|
+
this.pcdslist=redata
|
|
217
|
+
})
|
|
218
|
+
},
|
|
219
|
+
//根据名字找数据
|
|
220
|
+
findbyid(list,name){
|
|
221
|
+
var result
|
|
222
|
+
list.forEach((row, n) => {
|
|
223
|
+
if(name==row.id){
|
|
224
|
+
result= row.data
|
|
225
|
+
}
|
|
226
|
+
})
|
|
227
|
+
return result
|
|
228
|
+
},
|
|
229
|
+
//初始化数据
|
|
230
|
+
initdata(){
|
|
231
|
+
if(this.areatype=='街道'){
|
|
232
|
+
this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
233
|
+
}
|
|
234
|
+
if(this.areatype=='小区'){
|
|
235
|
+
this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
236
|
+
this.initstreets(` f_filialeid = '${this.f_filialeids}'`)
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
//省/市/区变化
|
|
240
|
+
pcdChange(val){
|
|
241
|
+
console.log("省/市/区变化",val)
|
|
242
|
+
this.$resetValidation()
|
|
243
|
+
},
|
|
244
|
+
//保存
|
|
245
|
+
async confirm(){
|
|
246
|
+
if(this.areatype=='省市区'){
|
|
247
|
+
await this.savepcd()
|
|
248
|
+
this.$refs.addpcd.search()
|
|
249
|
+
}
|
|
250
|
+
if(this.areatype=='街道'){
|
|
251
|
+
await this.savestreet()
|
|
252
|
+
}
|
|
253
|
+
this.cleardara()
|
|
254
|
+
this.$dispatch('confirm')
|
|
255
|
+
},
|
|
256
|
+
//保存省市区
|
|
257
|
+
async savepcd(){
|
|
258
|
+
this.pcdmodel.f_filialeid = this.f_filialeids
|
|
259
|
+
this.pcdmodel.f_operator = this.$login.f.name
|
|
260
|
+
this.pcdmodel.f_operatorid = this.$login.f.id
|
|
261
|
+
this.pcdmodel.f_orgid = this.$login.f.orgid
|
|
262
|
+
this.pcdmodel.f_orgname = this.$login.f.orgs
|
|
263
|
+
this.pcdmodel.f_depid = this.$login.f.depids
|
|
264
|
+
this.pcdmodel.f_depname = this.$login.f.deps
|
|
265
|
+
this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
|
|
266
|
+
await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel)
|
|
267
|
+
},
|
|
268
|
+
//保存街道
|
|
269
|
+
async savestreet(){
|
|
270
|
+
this.streetmodel.f_filialeid = this.f_filialeids
|
|
271
|
+
this.streetmodel.f_operator= this.$login.f.name
|
|
272
|
+
this.streetmodel.f_operatorid = this.$login.f.id
|
|
273
|
+
this.streetmodel.f_orgid = this.$login.f.orgid
|
|
274
|
+
this.streetmodel.f_orgname = this.$login.f.orgs
|
|
275
|
+
this.streetmodel.f_depid = this.$login.f.depids
|
|
276
|
+
this.streetmodel.f_depname = this.$login.f.deps
|
|
277
|
+
this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
|
|
278
|
+
console.log('获取街道model', this.streetmodel)
|
|
279
|
+
await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel)
|
|
280
|
+
},
|
|
281
|
+
cancel(){
|
|
282
|
+
this.cleardara()
|
|
283
|
+
this.$dispatch('cancel')
|
|
284
|
+
},
|
|
285
|
+
cleardara () {
|
|
286
|
+
this.pcdmodel = {
|
|
287
|
+
f_province: '',
|
|
288
|
+
f_city: '',
|
|
289
|
+
f_district: '',
|
|
290
|
+
f_comments:''
|
|
291
|
+
}
|
|
292
|
+
this.streetmodel = {
|
|
293
|
+
f_pcd_id: '',
|
|
294
|
+
f_slice_area: '',
|
|
295
|
+
f_adjustable_id: '',
|
|
296
|
+
f_street: '',
|
|
297
|
+
f_comments:''
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
},
|
|
302
|
+
watch: {
|
|
303
|
+
'areatype'(){
|
|
304
|
+
this.initdata()
|
|
305
|
+
},
|
|
306
|
+
'f_filialeids'(){
|
|
307
|
+
if (this.streetmodel.f_filialeid) {
|
|
308
|
+
if (this.streetmodel.f_filialeid != this.f_filialeids) {
|
|
309
|
+
this.$dispatch('cancel')
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if (this.pcdmodel.f_filialeid) {
|
|
313
|
+
if (this.pcdmodel.f_filialeid != this.f_filialeids) {
|
|
314
|
+
this.$dispatch('cancel')
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
this.initdata()
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
</script>
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row " :class="{'binary':communityManageShow == 0}">
|
|
3
|
-
<div :class="{'basic-main':communityManageShow == 0,'binary-left':communityManageShow != 0}">
|
|
4
|
-
<community-manage-list @child-dblclick="selected"
|
|
5
|
-
:f_filialeids.sync="f_filialeids"
|
|
6
|
-
v-ref:communitymanage>
|
|
7
|
-
</community-manage-list>
|
|
8
|
-
</div>
|
|
9
|
-
<div v-show="communityManageShow == 1" class="binary-right">
|
|
10
|
-
<add-community-manage-msg v-ref:addcommunitymanage
|
|
11
|
-
:f_filialeids.sync="f_filialeids">
|
|
12
|
-
</add-community-manage-msg>
|
|
13
|
-
</div>
|
|
14
|
-
<div v-show="communityManageShow == 2" style="width: 60%" class="binary-right">
|
|
15
|
-
<div class="flex">
|
|
16
|
-
<community-area-list v-if="communityid" :communityid="communityid"></community-area-list>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
export default {
|
|
24
|
-
title: '社区管理',
|
|
25
|
-
components: {},
|
|
26
|
-
data () {
|
|
27
|
-
return {
|
|
28
|
-
// 分公司id串
|
|
29
|
-
f_filialeids: this.$login.f.orgid,
|
|
30
|
-
communityid: null,
|
|
31
|
-
communityManageShow: 0
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
props: {},
|
|
35
|
-
methods: {
|
|
36
|
-
selected (obj) {
|
|
37
|
-
if (obj && obj.id) {
|
|
38
|
-
if (obj.f_filialeid != this.f_filialeids) {
|
|
39
|
-
this.refresh()
|
|
40
|
-
return
|
|
41
|
-
}
|
|
42
|
-
this.communityManageShow = 1
|
|
43
|
-
this.$refs.addcommunitymanage.businesstype = '修改' + obj.f_community_name
|
|
44
|
-
this.$refs.addcommunitymanage.communitymodel = Object.assign({}, obj)
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
refresh () {
|
|
48
|
-
this.communityManageShow = 0
|
|
49
|
-
this.$refs.communitymanage.$refs.paged.$refs.cri.search()
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
events: {
|
|
53
|
-
'shouAllArea' (row) {
|
|
54
|
-
this.style = 'col-sm-3 form-group'
|
|
55
|
-
this.communityManageShow = 2
|
|
56
|
-
this.communityid = row.id
|
|
57
|
-
},
|
|
58
|
-
'add' (areatype) {
|
|
59
|
-
this.style = 'col-sm-3 '
|
|
60
|
-
this.communityManageShow = 1
|
|
61
|
-
this.$refs.addcommunitymanage.businesstype = '新增'
|
|
62
|
-
this.$refs.addcommunitymanage.clearData()
|
|
63
|
-
},
|
|
64
|
-
'confirm' () {
|
|
65
|
-
this.style = 'col-sm-2 '
|
|
66
|
-
this.refresh()
|
|
67
|
-
},
|
|
68
|
-
'cancel' () {
|
|
69
|
-
this.style = 'col-sm-2 '
|
|
70
|
-
this.communityManageShow = 0
|
|
71
|
-
this.communityid = null
|
|
72
|
-
this.$refs.communitymanage.$refs.paged.$refs.cri.search()
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
</script>
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row " :class="{'binary':communityManageShow == 0}">
|
|
3
|
+
<div :class="{'basic-main':communityManageShow == 0,'binary-left':communityManageShow != 0}">
|
|
4
|
+
<community-manage-list @child-dblclick="selected"
|
|
5
|
+
:f_filialeids.sync="f_filialeids"
|
|
6
|
+
v-ref:communitymanage>
|
|
7
|
+
</community-manage-list>
|
|
8
|
+
</div>
|
|
9
|
+
<div v-show="communityManageShow == 1" class="binary-right">
|
|
10
|
+
<add-community-manage-msg v-ref:addcommunitymanage
|
|
11
|
+
:f_filialeids.sync="f_filialeids">
|
|
12
|
+
</add-community-manage-msg>
|
|
13
|
+
</div>
|
|
14
|
+
<div v-show="communityManageShow == 2" style="width: 60%" class="binary-right">
|
|
15
|
+
<div class="flex">
|
|
16
|
+
<community-area-list v-if="communityid" :communityid="communityid"></community-area-list>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
export default {
|
|
24
|
+
title: '社区管理',
|
|
25
|
+
components: {},
|
|
26
|
+
data () {
|
|
27
|
+
return {
|
|
28
|
+
// 分公司id串
|
|
29
|
+
f_filialeids: this.$login.f.orgid,
|
|
30
|
+
communityid: null,
|
|
31
|
+
communityManageShow: 0
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
props: {},
|
|
35
|
+
methods: {
|
|
36
|
+
selected (obj) {
|
|
37
|
+
if (obj && obj.id) {
|
|
38
|
+
if (obj.f_filialeid != this.f_filialeids) {
|
|
39
|
+
this.refresh()
|
|
40
|
+
return
|
|
41
|
+
}
|
|
42
|
+
this.communityManageShow = 1
|
|
43
|
+
this.$refs.addcommunitymanage.businesstype = '修改' + obj.f_community_name
|
|
44
|
+
this.$refs.addcommunitymanage.communitymodel = Object.assign({}, obj)
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
refresh () {
|
|
48
|
+
this.communityManageShow = 0
|
|
49
|
+
this.$refs.communitymanage.$refs.paged.$refs.cri.search()
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
events: {
|
|
53
|
+
'shouAllArea' (row) {
|
|
54
|
+
this.style = 'col-sm-3 form-group'
|
|
55
|
+
this.communityManageShow = 2
|
|
56
|
+
this.communityid = row.id
|
|
57
|
+
},
|
|
58
|
+
'add' (areatype) {
|
|
59
|
+
this.style = 'col-sm-3 '
|
|
60
|
+
this.communityManageShow = 1
|
|
61
|
+
this.$refs.addcommunitymanage.businesstype = '新增'
|
|
62
|
+
this.$refs.addcommunitymanage.clearData()
|
|
63
|
+
},
|
|
64
|
+
'confirm' () {
|
|
65
|
+
this.style = 'col-sm-2 '
|
|
66
|
+
this.refresh()
|
|
67
|
+
},
|
|
68
|
+
'cancel' () {
|
|
69
|
+
this.style = 'col-sm-2 '
|
|
70
|
+
this.communityManageShow = 0
|
|
71
|
+
this.communityid = null
|
|
72
|
+
this.$refs.communitymanage.$refs.paged.$refs.cri.search()
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
</script>
|
|
77
|
+
|
|
78
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// 添加小区管理
|
|
2
|
-
import Vue from 'vue'
|
|
3
|
-
|
|
4
|
-
let specialComp = {
|
|
5
|
-
'area-list': (resolve) => { require(['./AreaList'], resolve) },
|
|
6
|
-
// 添加小区
|
|
7
|
-
'add-area-msg': (resolve) => { require(['./AddAreaMsg'], resolve) }
|
|
8
|
-
}
|
|
9
|
-
exports.specialComp = specialComp
|
|
1
|
+
// 添加小区管理
|
|
2
|
+
import Vue from 'vue'
|
|
3
|
+
|
|
4
|
+
let specialComp = {
|
|
5
|
+
'area-list': (resolve) => { require(['./AreaList'], resolve) },
|
|
6
|
+
// 添加小区
|
|
7
|
+
'add-area-msg': (resolve) => { require(['./AddAreaMsg'], resolve) }
|
|
8
|
+
}
|
|
9
|
+
exports.specialComp = specialComp
|