address-client 3.2.41 → 3.2.43-1
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/build/versionCheck.js +31 -0
- package/package.json +99 -99
- package/src/components/AddressList.vue +4 -4
- package/src/components/AreaList.vue +1 -1
- package/src/components/StreetList.vue +1 -1
- package/src/components/UserAddress.vue +13 -13
- package/src/filiale/WEINAN/AddAreaMsg.vue +26 -1
- package/src/filiale/WEINAN/AreaManage.vue +109 -0
- package/src/filiale/WEINAN/AreaUserList.vue +226 -0
- package/src/filiale/haile/AddressList.vue +615 -0
- package/src/filiale/haile/sale.js +8 -0
- package/src/filiale/meihekou/UserAddress.vue +898 -0
- package/src/filiale/meihekou/sale.js +8 -0
- package/src/filiale/qinhua/AddAreaMsg.vue +743 -0
- package/src/filiale/qinhua/AddressList.vue +627 -0
- package/src/filiale/qinhua/AddressManage.vue +117 -0
- package/src/filiale/qinhua/AreaList.vue +425 -0
- package/src/filiale/qinhua/AreaManage.vue +100 -0
- package/src/filiale/qinhua/CityManage.vue +76 -0
- package/src/filiale/qinhua/StreetList.vue +241 -0
- package/src/filiale/qinhua/UserAddress.vue +894 -0
- package/src/filiale/qinhua/sale.js +20 -0
- package/src/filiale/shanxian/AddAreaMsg.vue +766 -0
- package/src/filiale/shanxian/AddressList.vue +630 -0
- package/src/filiale/shanxian/AreaList.vue +458 -0
- package/src/filiale/shanxian/AreaManage.vue +107 -0
- package/src/filiale/shanxian/UserAddress.vue +900 -0
- package/src/filiale/shanxian/sale.js +11 -0
- package/src/filiale/yangchun/AddAreaMsg.vue +764 -0
- package/src/filiale/yangchun/sale.js +7 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function isVersionGreaterThan (version1, version2) {
|
|
2
|
+
const v1parts = version1.split('.')
|
|
3
|
+
const v2parts = version2.split('.')
|
|
4
|
+
let flag = false
|
|
5
|
+
for (let i = 0; i < v1parts.length; ++i) {
|
|
6
|
+
if (v1parts[i] > v2parts[i]) {
|
|
7
|
+
flag = true
|
|
8
|
+
break
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return flag
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const pkg = require('../package.json')
|
|
16
|
+
const checkVersion = () => {
|
|
17
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 addressclient 版本, 会发送 api/af-revenue/sql ,api/af-revenue/logic 到v4 服务')
|
|
18
|
+
const {devDependencies} = pkg
|
|
19
|
+
if (devDependencies && devDependencies['system-clients']) {
|
|
20
|
+
if (isVersionGreaterThan(devDependencies['system-clients'], '3.2.87')) {
|
|
21
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 systemClients 版本不兼容旧版登录')
|
|
22
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '登录是会发送 api/af-auth 请求')
|
|
23
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请转发到公司 v4 测试地址或者客户 v4 网关')
|
|
24
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '如不使用新版登录,请降级 system-clients 版本到 3.2.87')
|
|
25
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请查看营收后台升级日志:' +
|
|
26
|
+
'http://aote-office.8866.org:31467/sale-doc-web/V4Product/%E8%90%A5%E6%94%B6%E5%90%8E%E5%8F%B0%E6%94%B9%E9%80%A0%E8%AF%B4%E6%98%8E')
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
module.exports = checkVersion
|
package/package.json
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
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
|
-
"system-clients": "3.1.88-5",
|
|
82
|
-
"url-loader": "^0.5.7",
|
|
83
|
-
"vue-client": "1.24.27",
|
|
84
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
85
|
-
"vue-html-loader": "^1.0.0",
|
|
86
|
-
"vue-loader": "^8.2.1",
|
|
87
|
-
"vue-resource": "^1.5.0",
|
|
88
|
-
"vue-router": "^0.7.13",
|
|
89
|
-
"vue-strap": "^1.0.9",
|
|
90
|
-
"vue-style-loader": "^1.0.0",
|
|
91
|
-
"vue-validator": "2.1.7",
|
|
92
|
-
"webpack": "^1.12.2",
|
|
93
|
-
"webpack-dev-middleware": "^1.4.0",
|
|
94
|
-
"webpack-hot-middleware": "^2.6.0",
|
|
95
|
-
"webpack-merge": "^0.8.3",
|
|
96
|
-
"jsencrypt": "3.0.0-rc.1",
|
|
97
|
-
"axios": "0.15.3"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "address-client",
|
|
3
|
+
"version": "3.2.43-1",
|
|
4
|
+
"description": "地址管理前台组件",
|
|
5
|
+
"author": "wanbochao",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"main": "src/index.js",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"sale"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"unit": "karma start test/unit/karma.conf.js",
|
|
13
|
+
"example": "node build/example-server.js",
|
|
14
|
+
"dev": "node build/dev-server.js",
|
|
15
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
16
|
+
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
17
|
+
"e2e": "node test/e2e/runner.js",
|
|
18
|
+
"make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
|
|
19
|
+
"release": "bash build/release.sh"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://gitee.com/aote/address_management.git"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"less-loader": "^2.2.3",
|
|
27
|
+
"vue": "^1.0.17"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"babel-core": "^6.0.0",
|
|
31
|
+
"babel-loader": "^6.0.0",
|
|
32
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
|
33
|
+
"babel-preset-es2015": "^6.0.0",
|
|
34
|
+
"babel-preset-stage-2": "^6.0.0",
|
|
35
|
+
"chai": "^3.5.0",
|
|
36
|
+
"co": "^4.6.0",
|
|
37
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
38
|
+
"cross-env": "^1.0.7",
|
|
39
|
+
"cross-spawn": "^2.1.5",
|
|
40
|
+
"css-loader": "^0.23.0",
|
|
41
|
+
"echarts": "^4.1.0",
|
|
42
|
+
"eslint": "^2.0.0",
|
|
43
|
+
"eslint-config-standard": "^5.1.0",
|
|
44
|
+
"eslint-friendly-formatter": "^1.2.2",
|
|
45
|
+
"eslint-loader": "^1.3.0",
|
|
46
|
+
"eslint-plugin-html": "^1.3.0",
|
|
47
|
+
"eslint-plugin-promise": "^1.0.8",
|
|
48
|
+
"eslint-plugin-standard": "^1.3.2",
|
|
49
|
+
"eslint-plugin-vue": "^0.1.1",
|
|
50
|
+
"eventsource-polyfill": "^0.9.6",
|
|
51
|
+
"express": "^4.13.3",
|
|
52
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
53
|
+
"file-loader": "^0.8.4",
|
|
54
|
+
"function-bind": "^1.0.2",
|
|
55
|
+
"html-webpack-plugin": "^2.8.1",
|
|
56
|
+
"http-proxy-middleware": "^0.11.0",
|
|
57
|
+
"inject-loader": "^2.0.1",
|
|
58
|
+
"isparta-loader": "^2.0.0",
|
|
59
|
+
"jasmine-core": "^2.4.1",
|
|
60
|
+
"jquery": "^3.3.1",
|
|
61
|
+
"json-loader": "^0.5.4",
|
|
62
|
+
"karma": "^1.4.1",
|
|
63
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
64
|
+
"karma-coverage": "^1.1.1",
|
|
65
|
+
"karma-mocha": "^1.3.0",
|
|
66
|
+
"karma-sinon-chai": "^1.3.1",
|
|
67
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
68
|
+
"karma-spec-reporter": "0.0.31",
|
|
69
|
+
"karma-webpack": "^2.0.2",
|
|
70
|
+
"less": "^2.7.3",
|
|
71
|
+
"mkdirp": "^0.5.1",
|
|
72
|
+
"mocha": "^3.2.0",
|
|
73
|
+
"ncp": "^2.0.0",
|
|
74
|
+
"rimraf": "^2.5.0",
|
|
75
|
+
"sale-client": "3.2.11-17",
|
|
76
|
+
"selenium-server": "2.52.0",
|
|
77
|
+
"sinon": "^2.1.0",
|
|
78
|
+
"sinon-chai": "^2.8.0",
|
|
79
|
+
"style": "0.0.3",
|
|
80
|
+
"style-loader": "^0.20.3",
|
|
81
|
+
"system-clients": "3.1.88-5",
|
|
82
|
+
"url-loader": "^0.5.7",
|
|
83
|
+
"vue-client": "1.24.27",
|
|
84
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
85
|
+
"vue-html-loader": "^1.0.0",
|
|
86
|
+
"vue-loader": "^8.2.1",
|
|
87
|
+
"vue-resource": "^1.5.0",
|
|
88
|
+
"vue-router": "^0.7.13",
|
|
89
|
+
"vue-strap": "^1.0.9",
|
|
90
|
+
"vue-style-loader": "^1.0.0",
|
|
91
|
+
"vue-validator": "2.1.7",
|
|
92
|
+
"webpack": "^1.12.2",
|
|
93
|
+
"webpack-dev-middleware": "^1.4.0",
|
|
94
|
+
"webpack-hot-middleware": "^2.6.0",
|
|
95
|
+
"webpack-merge": "^0.8.3",
|
|
96
|
+
"jsencrypt": "3.0.0-rc.1",
|
|
97
|
+
"axios": "0.15.3"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</res-select>
|
|
16
16
|
</div>
|
|
17
17
|
<div :class="$parent.$parent.style" v-if="$parent.$parent.showrightchange">
|
|
18
|
-
<label class="font_normal_body"
|
|
18
|
+
<label class="font_normal_body">客户编号</label>
|
|
19
19
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" style="width:60%"
|
|
20
20
|
condition="f_userinfo_code = '{}'" placeholder="用户编号"/>
|
|
21
21
|
</div>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
/>
|
|
102
102
|
</div>
|
|
103
103
|
<div :class="$parent.$parent.style" >
|
|
104
|
-
<label class="font_normal_body"
|
|
104
|
+
<label class="font_normal_body">客户地址</label>
|
|
105
105
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_address" style="width:60%"
|
|
106
106
|
condition="a.f_address like '%{}%'" placeholder="详细地址"
|
|
107
107
|
:size="model.f_address ? model.f_address.length*2 : 8"/>
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
<data-grid :model="model" partial='list' style="overflow: auto" class="list_area table_sy" :optional="true" v-ref:grid>
|
|
139
139
|
<template partial='head'>
|
|
140
140
|
<th><nobr>序号</nobr></th>
|
|
141
|
-
<th><nobr
|
|
141
|
+
<th><nobr>客户编号</nobr></th>
|
|
142
142
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>区/县</nobr></th>
|
|
143
143
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>片区/管理站</nobr></th>
|
|
144
144
|
<th><nobr>街道/乡镇</nobr></th>
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>单元</nobr></th>
|
|
148
148
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>楼层</nobr></th>
|
|
149
149
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>门牌号</nobr></th>
|
|
150
|
-
<th><nobr
|
|
150
|
+
<th><nobr>客户地址</nobr></th>
|
|
151
151
|
<th><nobr>地址状态</nobr></th>
|
|
152
152
|
<th><nobr>状态</nobr></th>
|
|
153
153
|
<th><nobr>时间</nobr></th>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
<th><nobr>街道/乡镇</nobr></th>
|
|
115
115
|
<!--民用小区信息开始-->
|
|
116
116
|
<th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
|
|
117
|
-
<th v-if="!$parent.$parent.$parent.f_special"><nobr
|
|
117
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>地址</nobr></th>
|
|
118
118
|
<th v-if="!$parent.$parent.$parent.f_special && !$parent.$parent.$parent.$parent.areaShow"><nobr>小区备注</nobr></th>
|
|
119
119
|
<!--民用小区信息结束-->
|
|
120
120
|
<!--非民用单位信息开始-->
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
:order.sync="$parent.$parent.$parent.$parent.orderFields.f_iscity"></data-order></th>
|
|
76
76
|
<th><nobr>街道/乡镇</nobr></th>
|
|
77
77
|
<th><nobr>街道编号</nobr></th>
|
|
78
|
-
<th><data-order field="f_address" name="
|
|
78
|
+
<th><data-order field="f_address" name="地址"
|
|
79
79
|
:order.sync="$parent.$parent.$parent.$parent.orderFields.f_address"></data-order></th>
|
|
80
80
|
<th><nobr>分公司</nobr></th>
|
|
81
81
|
<th title="该街道下现有的小区数"><nobr>小区数量</nobr></th>
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
<label class="font_normal_body">经 纬 度</label>
|
|
135
135
|
<input type="text" style="width:30%" v-model="model.f_lng" class="input_search" placeholder="经度"/>
|
|
136
136
|
<input type="text" style="width:30%" v-model="model.f_lat" class="input_search" placeholder="纬度"/>
|
|
137
|
-
 <span class="glyphicon glyphicon-map-marker" @click="openModal" ></span
|
|
137
|
+
<!--  <span class="glyphicon glyphicon-map-marker" @click="openModal" ></span>-->
|
|
138
138
|
</div>
|
|
139
139
|
|
|
140
140
|
<div v-if="usertype" class="col-sm-12 form-group "
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
<label class="font_normal_body">经 纬 度</label>
|
|
148
148
|
<input type="text" style="width:30%" v-model="model.f_lng" class="input_search" placeholder="经度"/>
|
|
149
149
|
<input type="text" style="width:30%" v-model="model.f_lat" class="input_search" placeholder="纬度"/>
|
|
150
|
-
 <span class="glyphicon glyphicon-map-marker" @click="openModal" ></span
|
|
150
|
+
<!--  <span class="glyphicon glyphicon-map-marker" @click="openModal" ></span>-->
|
|
151
151
|
</div>
|
|
152
152
|
<div class="col-sm-6 form-group " v-if="config.hasnumber"
|
|
153
153
|
:class="[$v.f_standard_number.required ? 'has-error' : 'has-success']">
|
|
@@ -317,17 +317,17 @@
|
|
|
317
317
|
</div>
|
|
318
318
|
</validator>
|
|
319
319
|
|
|
320
|
-
<modal :show.sync="isshow" large backdrop="false" :width="900"
|
|
321
|
-
<header slot="modal-header" class="modal-header"
|
|
322
|
-
</header
|
|
323
|
-
<article slot="modal-body" class="modal-body"
|
|
324
|
-
<amap-location :islocationclearmark="false" dom="addboxmap" v-ref:positionInfo @getmylocation="getmylocation"></amap-location
|
|
325
|
-
</article
|
|
326
|
-
<footer slot="modal-footer" class="modal-footer"
|
|
327
|
-
<button v-show="isshow" type="button" class="button_search button_spacing" @click='confirmLocation'>确认</button
|
|
328
|
-
<button v-show="isshow" type="button" class="button_clear button_spacing" @click='closeModal'>取消</button
|
|
329
|
-
</footer
|
|
330
|
-
</modal
|
|
320
|
+
<!-- <modal v-if="isshow" :show.sync="isshow" large backdrop="false" :width="900">-->
|
|
321
|
+
<!-- <header slot="modal-header" class="modal-header">-->
|
|
322
|
+
<!-- </header>-->
|
|
323
|
+
<!-- <article slot="modal-body" class="modal-body">-->
|
|
324
|
+
<!-- <amap-location :islocationclearmark="false" dom="addboxmap" v-ref:positionInfo @getmylocation="getmylocation"></amap-location>-->
|
|
325
|
+
<!-- </article>-->
|
|
326
|
+
<!-- <footer slot="modal-footer" class="modal-footer">-->
|
|
327
|
+
<!-- <button v-show="isshow" type="button" class="button_search button_spacing" @click='confirmLocation'>确认</button>-->
|
|
328
|
+
<!-- <button v-show="isshow" type="button" class="button_clear button_spacing" @click='closeModal'>取消</button>-->
|
|
329
|
+
<!-- </footer>-->
|
|
330
|
+
<!-- </modal>-->
|
|
331
331
|
|
|
332
332
|
</div>
|
|
333
333
|
</template>
|
|
@@ -56,6 +56,17 @@
|
|
|
56
56
|
class="form-control" placeholder="小区名称"
|
|
57
57
|
v-validate:f_residential_area='{required: true }'>
|
|
58
58
|
</div>
|
|
59
|
+
<div class="col-sm-6 form-group"
|
|
60
|
+
:class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
|
|
61
|
+
<label class="font_normal_body">安检片区</label>
|
|
62
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_check_book_id"
|
|
63
|
+
v-validate:f_street_id='{required: true }'>
|
|
64
|
+
<v-select
|
|
65
|
+
:value.sync="areamodel.f_check_book_id" :value-single="true"
|
|
66
|
+
:options='safeCheckArea' placeholder='请选择'
|
|
67
|
+
close-on-select search="true">
|
|
68
|
+
</v-select>
|
|
69
|
+
</div>
|
|
59
70
|
<div v-if="!f_special"
|
|
60
71
|
class="col-sm-12 form-group">
|
|
61
72
|
<label class="font_normal_body">小区地址</label>
|
|
@@ -289,7 +300,7 @@
|
|
|
289
300
|
meterbrands: [],
|
|
290
301
|
adjustables: [],
|
|
291
302
|
sliceArea: [],
|
|
292
|
-
|
|
303
|
+
safeCheckArea: [],
|
|
293
304
|
gasproperties: [],
|
|
294
305
|
meterbooks:[{label: '全部',value: ''}],
|
|
295
306
|
housetypeoptions:[{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
|
|
@@ -335,6 +346,7 @@
|
|
|
335
346
|
async initParams() {
|
|
336
347
|
await this.$LoadParams.loadParam(this.f_filialeids)
|
|
337
348
|
this.initBrands()
|
|
349
|
+
this.initSafeCheckArea()
|
|
338
350
|
// this.initAdjustables()
|
|
339
351
|
},
|
|
340
352
|
|
|
@@ -346,6 +358,19 @@
|
|
|
346
358
|
})
|
|
347
359
|
this.meterbrands = rs
|
|
348
360
|
},
|
|
361
|
+
async initSafeCheckArea () {
|
|
362
|
+
this.safeCheckArea = []
|
|
363
|
+
let data = {
|
|
364
|
+
items: 'id,f_check_book_name',
|
|
365
|
+
tablename: 't_check_book',
|
|
366
|
+
orderitem: 'id',
|
|
367
|
+
condition: `f_orgid=${this.$login.f.orgid}`
|
|
368
|
+
}
|
|
369
|
+
let ret = await this.$resetpost('rs/sql/address_singleTableOrderBy',{data: data},{resolveMsg: null, rejectMsg: null})
|
|
370
|
+
ret.data.forEach(item => {
|
|
371
|
+
this.safeCheckArea.push({label: item.f_check_book_name, value: item.id})
|
|
372
|
+
})
|
|
373
|
+
},
|
|
349
374
|
/*
|
|
350
375
|
initAdjustables () {
|
|
351
376
|
let filter = this.$login.f.orgid
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row" :class="{'binary':areaShow == 0}">
|
|
3
|
+
<div :class="{'basic-main':areaShow == 0,'binary-left':areaShow != 0}">
|
|
4
|
+
<area-list @child-dblclick="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div v-show="areaShow == 1" style="width: 60%" class="binary-right">
|
|
7
|
+
<div class="flex">
|
|
8
|
+
<add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
|
|
9
|
+
:f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
<div v-show="areaShow == 2" style="width: 60%" class="binary-right">
|
|
13
|
+
<div class="flex">
|
|
14
|
+
<area-user-list v-if="areaid" :areaid="areaid"></area-user-list>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
title: '小区管理',
|
|
23
|
+
components: {},
|
|
24
|
+
data () {
|
|
25
|
+
return {
|
|
26
|
+
// 分公司id串
|
|
27
|
+
width: '100%',
|
|
28
|
+
f_filialeids: this.$login.f.f_orgids,
|
|
29
|
+
areaShow: 0,
|
|
30
|
+
areatype: '小区',
|
|
31
|
+
arearow: {},
|
|
32
|
+
style: 'col-sm-2 form-group',
|
|
33
|
+
areaid: null
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
ready () {
|
|
37
|
+
|
|
38
|
+
},
|
|
39
|
+
props: {},
|
|
40
|
+
methods: {
|
|
41
|
+
selected (obj) {
|
|
42
|
+
console.log('======', obj)
|
|
43
|
+
this.style = 'col-sm-3 form-group'
|
|
44
|
+
if (obj && obj.id) {
|
|
45
|
+
console.log('对比分公司', obj.f_filialeid, this.f_filialeids)
|
|
46
|
+
if (obj.f_filialeid != this.f_filialeids) {
|
|
47
|
+
this.refresh()
|
|
48
|
+
return
|
|
49
|
+
}
|
|
50
|
+
this.areaShow = 1
|
|
51
|
+
this.$refs.addareamsg.cleardara()
|
|
52
|
+
this.$refs.addareamsg.operation = 'modify'
|
|
53
|
+
this.$refs.addareamsg.areatype = '小区'
|
|
54
|
+
this.$refs.addareamsg.areamodel = Object.assign({}, obj)
|
|
55
|
+
if (obj.f_slice_area) {
|
|
56
|
+
this.$refs.addareamsg.areamodel.slice_area = [{
|
|
57
|
+
name: this.$refs.addareamsg.areamodel.f_slice_area,
|
|
58
|
+
code: this.$refs.addareamsg.areamodel.f_area_code
|
|
59
|
+
}]
|
|
60
|
+
}
|
|
61
|
+
if (obj.f_meter_book != null && obj.f_meter_book != '' && obj.f_meter_book instanceof Array) {
|
|
62
|
+
this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book[0])
|
|
63
|
+
}
|
|
64
|
+
if (obj.f_meter_book != null && obj.f_meter_book != '' && !(obj.f_meter_book instanceof Array)) {
|
|
65
|
+
this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book)
|
|
66
|
+
}
|
|
67
|
+
if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && obj.f_adjustable_id instanceof Array) {
|
|
68
|
+
this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id[0])
|
|
69
|
+
}
|
|
70
|
+
if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && !(obj.f_adjustable_id instanceof Array)) {
|
|
71
|
+
this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id)
|
|
72
|
+
}
|
|
73
|
+
// this.$refs.addareamsg.initdata(obj)
|
|
74
|
+
// this.$refs.addareamsg.initrow(obj)
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
refresh () {
|
|
78
|
+
this.areaShow = false
|
|
79
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
events: {
|
|
83
|
+
'shouAreaAllUser' (row) {
|
|
84
|
+
this.style = 'col-sm-3 form-group'
|
|
85
|
+
this.areaShow = 2
|
|
86
|
+
this.areaid = row.id
|
|
87
|
+
},
|
|
88
|
+
'add'(val) {
|
|
89
|
+
this.style = 'col-sm-3 form-group'
|
|
90
|
+
this.areaShow = 1
|
|
91
|
+
this.$refs.addareamsg.cleardara()
|
|
92
|
+
this.$refs.addareamsg.operation = 'add'
|
|
93
|
+
this.$refs.addareamsg.areatype = val
|
|
94
|
+
this.$refs.addareamsg.initdata()
|
|
95
|
+
},
|
|
96
|
+
'confirm'() {
|
|
97
|
+
this.style = 'col-sm-2 form-group'
|
|
98
|
+
this.areaShow = false
|
|
99
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
100
|
+
},
|
|
101
|
+
'cancel'() {
|
|
102
|
+
this.style = 'col-sm-2 form-group'
|
|
103
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
104
|
+
this.areaShow = 0
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
</script>
|
|
109
|
+
|