address-client 3.2.111-fugou → 3.2.111
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/dev-server.js +14 -7
- package/build/versionCheck.js +31 -0
- package/package.json +4 -3
- package/src/address.js +6 -6
- package/src/components/AddAreaMsg.vue +485 -518
- package/src/components/AddCommunityManageMsg.vue +38 -97
- package/src/components/AddStreetOrPcd.vue +15 -19
- package/src/components/AddressList.vue +11 -10
- package/src/components/AreaList.vue +5 -14
- package/src/components/AreaManage.vue +1 -1
- package/src/components/BatchOrders.vue +1 -1
- package/src/components/CityList.vue +2 -1
- package/src/components/CommunityManage.vue +1 -1
- package/src/components/CommunityManageList.vue +20 -23
- package/src/components/NewAddressInfo.vue +1 -1
- package/src/components/StreetList.vue +6 -5
- package/src/components/StreetManageList.vue +1 -1
- package/src/components/UserAddress.vue +56 -193
- package/src/components/selectAddress/BatchList.vue +1 -1
- package/src/filiale/WEINAN/AddAreaMsg.vue +745 -0
- package/src/filiale/WEINAN/AddressList.vue +588 -0
- package/src/filiale/WEINAN/AddressManage.vue +122 -0
- package/src/filiale/WEINAN/AreaList.vue +435 -0
- package/src/filiale/WEINAN/AreaManage.vue +109 -0
- package/src/filiale/WEINAN/AreaUserList.vue +226 -0
- package/src/filiale/WEINAN/UserAddress.vue +783 -0
- package/src/filiale/WEINAN/sale.js +18 -0
- package/src/filiale/chengtou/UserAddress.vue +894 -0
- package/src/filiale/chengtou/sale.js +7 -0
- package/src/filiale/dongguan/AddStreetOrPcd.vue +422 -0
- package/src/filiale/dongguan/sale.js +7 -0
- package/src/filiale/gaomi/AddressList.vue +430 -0
- package/src/filiale/gaomi/UserAddress.vue +832 -0
- package/src/filiale/gaomi/sale.js +14 -0
- package/src/filiale/gongyi/AddAreaMsg.vue +651 -0
- package/src/filiale/gongyi/AreaManage.vue +100 -0
- package/src/filiale/gongyi/UserAddress.vue +751 -0
- package/src/filiale/gongyi/sale.js +14 -0
- package/src/filiale/haile/AddressList.vue +615 -0
- package/src/filiale/haile/sale.js +8 -0
- package/src/filiale/jingwei/UserAddress.vue +764 -0
- package/src/filiale/jingwei/sale.js +12 -0
- package/src/filiale/lixianV3/AreaList.vue +416 -0
- package/src/filiale/lixianV3/sale.js +12 -0
- package/src/filiale/macheng/AddAreaMsg.vue +635 -0
- package/src/filiale/macheng/AddStreetOrPcd.vue +231 -0
- package/src/filiale/macheng/AddressList.vue +613 -0
- package/src/filiale/macheng/AreaList.vue +318 -0
- package/src/filiale/macheng/CityManage.vue +76 -0
- package/src/filiale/macheng/StreetList.vue +186 -0
- package/src/filiale/macheng/UserAddress.vue +743 -0
- package/src/filiale/macheng/sale.js +17 -0
- package/src/filiale/meihekou/UserAddress.vue +898 -0
- package/src/filiale/meihekou/sale.js +8 -0
- package/src/filiale/qianneng/AddAreaMsg.vue +755 -0
- package/src/filiale/qianneng/AddStreetOrPcd.vue +328 -0
- package/src/filiale/qianneng/AddressList.vue +638 -0
- package/src/filiale/qianneng/AreaList.vue +431 -0
- package/src/filiale/qianneng/CityManage.vue +81 -0
- package/src/filiale/qianneng/UserAddress.vue +1125 -0
- package/src/filiale/qianneng/sale.js +20 -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/rizhao/UserAddress.vue +897 -0
- package/src/filiale/rizhao/sale.js +8 -0
- package/src/filiale/rongcheng/AddressList.vue +363 -0
- package/src/filiale/rongcheng/UserAddress.vue +799 -0
- package/src/filiale/rongcheng/sale.js +11 -0
- package/src/filiale/shanggao/AddAreaMsg.vue +752 -0
- package/src/filiale/shanggao/AddStreetOrPcd.vue +312 -0
- package/src/filiale/shanggao/AddressList.vue +613 -0
- package/src/filiale/shanggao/AreaList.vue +436 -0
- package/src/filiale/shanggao/BuildingList.vue +129 -0
- package/src/filiale/shanggao/StreetList.vue +240 -0
- package/src/filiale/shanggao/UserAddress.vue +953 -0
- package/src/filiale/shanggao/sale.js +16 -0
- package/src/filiale/shanxian/AddAreaMsg.vue +766 -0
- package/src/filiale/shanxian/AddressList.vue +658 -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 +15 -0
- package/src/filiale/shaoguan/AddAreaMsg.vue +629 -0
- package/src/filiale/shaoguan/UserAddress.vue +762 -0
- package/src/filiale/shaoguan/sale.js +11 -0
- package/src/filiale/tongchuan/AddAreaMsg.vue +635 -0
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +351 -0
- package/src/filiale/tongchuan/AddressList.vue +379 -0
- package/src/filiale/tongchuan/AreaList.vue +315 -0
- package/src/filiale/tongchuan/AreaManage.vue +100 -0
- package/src/filiale/tongchuan/CityList.vue +133 -0
- package/src/filiale/tongchuan/StreetList.vue +215 -0
- package/src/filiale/tongchuan/UserAddress.vue +822 -0
- package/src/filiale/tongchuan/sale.js +19 -0
- package/src/filiale/wuhai/UserAddress.vue +795 -0
- package/src/filiale/wuhai/sale.js +12 -0
- package/src/filiale/xihu/AreaList.vue +409 -0
- package/src/filiale/xihu/StreetList.vue +238 -0
- package/src/filiale/xihu/sale.js +14 -0
- package/src/filiale/xinkang/AddAreaMsg.vue +780 -0
- package/src/filiale/xinkang/AreaList.vue +413 -0
- package/src/filiale/xinkang/sale.js +9 -0
- package/src/filiale/yangchun/AddAreaMsg.vue +764 -0
- package/src/filiale/yangchun/sale.js +7 -0
- package/src/filiale/zhongsheng/AddressList.vue +671 -0
- package/src/filiale/zhongsheng/AreaList.vue +500 -0
- package/src/filiale/zhongsheng/sale.js +12 -0
- package/src/filiale/zhongyi/AddAreaMsg.vue +757 -0
- package/src/filiale/zhongyi/sale.js +12 -0
- package/src/filiale/zhoukou/AddAreaMsg.vue +673 -0
- package/src/filiale/zhoukou/AddressList.vue +391 -0
- package/src/filiale/zhoukou/AddressManage.vue +115 -0
- package/src/filiale/zhoukou/AreaList.vue +319 -0
- package/src/filiale/zhoukou/AreaManage.vue +100 -0
- package/src/filiale/zhoukou/UserAddress.vue +925 -0
- package/src/filiale/zhoukou/sale.js +23 -0
- package/src/main.js +3 -3
package/build/dev-server.js
CHANGED
|
@@ -3,26 +3,33 @@ var webpack = require('webpack')
|
|
|
3
3
|
var config = require('./webpack.dev.conf')
|
|
4
4
|
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
5
|
var httpProxy = require('http-proxy')
|
|
6
|
-
|
|
6
|
+
var checkVersion = require('./versionCheck.js')
|
|
7
|
+
checkVersion()
|
|
7
8
|
var app = express()
|
|
8
9
|
var compiler = webpack(config)
|
|
9
10
|
var proxy = httpProxy.createProxyServer()
|
|
10
11
|
|
|
11
12
|
// Define HTTP proxies to your custom API backend
|
|
12
13
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var str = 'http://
|
|
14
|
-
var str3= 'http://192.168.50.4:8400
|
|
14
|
+
var str = 'http://192.168.50.4:8400', str2= 'http://192.168.50.4:8400'
|
|
15
|
+
var str3= 'http://192.168.50.4:8400'
|
|
15
16
|
var proxyTable = {
|
|
16
|
-
'/
|
|
17
|
+
'/api/af-auth': {
|
|
18
|
+
target: str
|
|
19
|
+
},
|
|
20
|
+
'/api/af-system': {
|
|
17
21
|
target: str
|
|
18
|
-
// secure:true,
|
|
19
|
-
// changeOrigin:true
|
|
20
|
-
// target: 'http://127.0.0.1:8080'
|
|
21
22
|
},
|
|
22
23
|
'/api/af-revenue': {
|
|
23
24
|
pathRewrite: {'/api/af-revenue': '/'},
|
|
24
25
|
target: 'http://127.0.0.1:9026'
|
|
25
26
|
},
|
|
27
|
+
'/rs/entity': {
|
|
28
|
+
target: str
|
|
29
|
+
// secure:true,
|
|
30
|
+
// changeOrigin:true
|
|
31
|
+
// target: 'http://127.0.0.1:8080'
|
|
32
|
+
},
|
|
26
33
|
'/webapps':{
|
|
27
34
|
target: str3,
|
|
28
35
|
secure:true,
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "address-client",
|
|
3
|
-
"version": "3.2.111
|
|
3
|
+
"version": "3.2.111",
|
|
4
4
|
"description": "地址管理前台组件",
|
|
5
5
|
"author": "wanbochao",
|
|
6
6
|
"license": "ISC",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"url": "https://gitee.com/aote/address_management.git"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"crypto-js": "^4.1.1",
|
|
26
27
|
"less-loader": "^2.2.3",
|
|
27
28
|
"vue": "^1.0.17"
|
|
28
29
|
},
|
|
@@ -79,9 +80,9 @@
|
|
|
79
80
|
"style": "0.0.3",
|
|
80
81
|
"style-loader": "^0.20.3",
|
|
81
82
|
"ldap-clients": "3.0.48",
|
|
82
|
-
"system-clients": "3.2.
|
|
83
|
+
"system-clients": "3.2.87",
|
|
83
84
|
"url-loader": "^0.5.7",
|
|
84
|
-
"vue-client": "1.24.
|
|
85
|
+
"vue-client": "1.24.150",
|
|
85
86
|
"vue-hot-reload-api": "^1.2.0",
|
|
86
87
|
"vue-html-loader": "^1.0.0",
|
|
87
88
|
"vue-loader": "^8.2.1",
|
package/src/address.js
CHANGED
|
@@ -65,10 +65,10 @@ export default function (filiale) {
|
|
|
65
65
|
Vue.component('community-area-list', (resolve) => { require(['./components/CommunityAreaList'], resolve) })
|
|
66
66
|
|
|
67
67
|
// 分公司特殊页面注册替换
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
74
|
}
|