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.
Files changed (124) hide show
  1. package/build/dev-server.js +14 -7
  2. package/build/versionCheck.js +31 -0
  3. package/package.json +4 -3
  4. package/src/address.js +6 -6
  5. package/src/components/AddAreaMsg.vue +485 -518
  6. package/src/components/AddCommunityManageMsg.vue +38 -97
  7. package/src/components/AddStreetOrPcd.vue +15 -19
  8. package/src/components/AddressList.vue +11 -10
  9. package/src/components/AreaList.vue +5 -14
  10. package/src/components/AreaManage.vue +1 -1
  11. package/src/components/BatchOrders.vue +1 -1
  12. package/src/components/CityList.vue +2 -1
  13. package/src/components/CommunityManage.vue +1 -1
  14. package/src/components/CommunityManageList.vue +20 -23
  15. package/src/components/NewAddressInfo.vue +1 -1
  16. package/src/components/StreetList.vue +6 -5
  17. package/src/components/StreetManageList.vue +1 -1
  18. package/src/components/UserAddress.vue +56 -193
  19. package/src/components/selectAddress/BatchList.vue +1 -1
  20. package/src/filiale/WEINAN/AddAreaMsg.vue +745 -0
  21. package/src/filiale/WEINAN/AddressList.vue +588 -0
  22. package/src/filiale/WEINAN/AddressManage.vue +122 -0
  23. package/src/filiale/WEINAN/AreaList.vue +435 -0
  24. package/src/filiale/WEINAN/AreaManage.vue +109 -0
  25. package/src/filiale/WEINAN/AreaUserList.vue +226 -0
  26. package/src/filiale/WEINAN/UserAddress.vue +783 -0
  27. package/src/filiale/WEINAN/sale.js +18 -0
  28. package/src/filiale/chengtou/UserAddress.vue +894 -0
  29. package/src/filiale/chengtou/sale.js +7 -0
  30. package/src/filiale/dongguan/AddStreetOrPcd.vue +422 -0
  31. package/src/filiale/dongguan/sale.js +7 -0
  32. package/src/filiale/gaomi/AddressList.vue +430 -0
  33. package/src/filiale/gaomi/UserAddress.vue +832 -0
  34. package/src/filiale/gaomi/sale.js +14 -0
  35. package/src/filiale/gongyi/AddAreaMsg.vue +651 -0
  36. package/src/filiale/gongyi/AreaManage.vue +100 -0
  37. package/src/filiale/gongyi/UserAddress.vue +751 -0
  38. package/src/filiale/gongyi/sale.js +14 -0
  39. package/src/filiale/haile/AddressList.vue +615 -0
  40. package/src/filiale/haile/sale.js +8 -0
  41. package/src/filiale/jingwei/UserAddress.vue +764 -0
  42. package/src/filiale/jingwei/sale.js +12 -0
  43. package/src/filiale/lixianV3/AreaList.vue +416 -0
  44. package/src/filiale/lixianV3/sale.js +12 -0
  45. package/src/filiale/macheng/AddAreaMsg.vue +635 -0
  46. package/src/filiale/macheng/AddStreetOrPcd.vue +231 -0
  47. package/src/filiale/macheng/AddressList.vue +613 -0
  48. package/src/filiale/macheng/AreaList.vue +318 -0
  49. package/src/filiale/macheng/CityManage.vue +76 -0
  50. package/src/filiale/macheng/StreetList.vue +186 -0
  51. package/src/filiale/macheng/UserAddress.vue +743 -0
  52. package/src/filiale/macheng/sale.js +17 -0
  53. package/src/filiale/meihekou/UserAddress.vue +898 -0
  54. package/src/filiale/meihekou/sale.js +8 -0
  55. package/src/filiale/qianneng/AddAreaMsg.vue +755 -0
  56. package/src/filiale/qianneng/AddStreetOrPcd.vue +328 -0
  57. package/src/filiale/qianneng/AddressList.vue +638 -0
  58. package/src/filiale/qianneng/AreaList.vue +431 -0
  59. package/src/filiale/qianneng/CityManage.vue +81 -0
  60. package/src/filiale/qianneng/UserAddress.vue +1125 -0
  61. package/src/filiale/qianneng/sale.js +20 -0
  62. package/src/filiale/qinhua/AddAreaMsg.vue +743 -0
  63. package/src/filiale/qinhua/AddressList.vue +627 -0
  64. package/src/filiale/qinhua/AddressManage.vue +117 -0
  65. package/src/filiale/qinhua/AreaList.vue +425 -0
  66. package/src/filiale/qinhua/AreaManage.vue +100 -0
  67. package/src/filiale/qinhua/CityManage.vue +76 -0
  68. package/src/filiale/qinhua/StreetList.vue +241 -0
  69. package/src/filiale/qinhua/UserAddress.vue +894 -0
  70. package/src/filiale/qinhua/sale.js +20 -0
  71. package/src/filiale/rizhao/UserAddress.vue +897 -0
  72. package/src/filiale/rizhao/sale.js +8 -0
  73. package/src/filiale/rongcheng/AddressList.vue +363 -0
  74. package/src/filiale/rongcheng/UserAddress.vue +799 -0
  75. package/src/filiale/rongcheng/sale.js +11 -0
  76. package/src/filiale/shanggao/AddAreaMsg.vue +752 -0
  77. package/src/filiale/shanggao/AddStreetOrPcd.vue +312 -0
  78. package/src/filiale/shanggao/AddressList.vue +613 -0
  79. package/src/filiale/shanggao/AreaList.vue +436 -0
  80. package/src/filiale/shanggao/BuildingList.vue +129 -0
  81. package/src/filiale/shanggao/StreetList.vue +240 -0
  82. package/src/filiale/shanggao/UserAddress.vue +953 -0
  83. package/src/filiale/shanggao/sale.js +16 -0
  84. package/src/filiale/shanxian/AddAreaMsg.vue +766 -0
  85. package/src/filiale/shanxian/AddressList.vue +658 -0
  86. package/src/filiale/shanxian/AreaList.vue +458 -0
  87. package/src/filiale/shanxian/AreaManage.vue +107 -0
  88. package/src/filiale/shanxian/UserAddress.vue +900 -0
  89. package/src/filiale/shanxian/sale.js +15 -0
  90. package/src/filiale/shaoguan/AddAreaMsg.vue +629 -0
  91. package/src/filiale/shaoguan/UserAddress.vue +762 -0
  92. package/src/filiale/shaoguan/sale.js +11 -0
  93. package/src/filiale/tongchuan/AddAreaMsg.vue +635 -0
  94. package/src/filiale/tongchuan/AddStreetOrPcd.vue +351 -0
  95. package/src/filiale/tongchuan/AddressList.vue +379 -0
  96. package/src/filiale/tongchuan/AreaList.vue +315 -0
  97. package/src/filiale/tongchuan/AreaManage.vue +100 -0
  98. package/src/filiale/tongchuan/CityList.vue +133 -0
  99. package/src/filiale/tongchuan/StreetList.vue +215 -0
  100. package/src/filiale/tongchuan/UserAddress.vue +822 -0
  101. package/src/filiale/tongchuan/sale.js +19 -0
  102. package/src/filiale/wuhai/UserAddress.vue +795 -0
  103. package/src/filiale/wuhai/sale.js +12 -0
  104. package/src/filiale/xihu/AreaList.vue +409 -0
  105. package/src/filiale/xihu/StreetList.vue +238 -0
  106. package/src/filiale/xihu/sale.js +14 -0
  107. package/src/filiale/xinkang/AddAreaMsg.vue +780 -0
  108. package/src/filiale/xinkang/AreaList.vue +413 -0
  109. package/src/filiale/xinkang/sale.js +9 -0
  110. package/src/filiale/yangchun/AddAreaMsg.vue +764 -0
  111. package/src/filiale/yangchun/sale.js +7 -0
  112. package/src/filiale/zhongsheng/AddressList.vue +671 -0
  113. package/src/filiale/zhongsheng/AreaList.vue +500 -0
  114. package/src/filiale/zhongsheng/sale.js +12 -0
  115. package/src/filiale/zhongyi/AddAreaMsg.vue +757 -0
  116. package/src/filiale/zhongyi/sale.js +12 -0
  117. package/src/filiale/zhoukou/AddAreaMsg.vue +673 -0
  118. package/src/filiale/zhoukou/AddressList.vue +391 -0
  119. package/src/filiale/zhoukou/AddressManage.vue +115 -0
  120. package/src/filiale/zhoukou/AreaList.vue +319 -0
  121. package/src/filiale/zhoukou/AreaManage.vue +100 -0
  122. package/src/filiale/zhoukou/UserAddress.vue +925 -0
  123. package/src/filiale/zhoukou/sale.js +23 -0
  124. package/src/main.js +3 -3
@@ -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://localhost:8080/', str2= 'http://192.168.50.4:8400/#'
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
- '/rs/entity': {
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-fugou",
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.68",
83
+ "system-clients": "3.2.87",
83
84
  "url-loader": "^0.5.7",
84
- "vue-client": "1.24.98",
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
- // if (filiale) {
69
- // let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
70
- // for (let key in filialeComp) {
71
- // Vue.component(key, filialeComp[key])
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
  }