apply-clients 3.4.2 → 3.4.3

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 (85) hide show
  1. package/android.html +23 -23
  2. package/build/dev-server.js +119 -119
  3. package/build/webpack.base.conf.js +2 -1
  4. package/build/webpack.dev.conf.js +12 -0
  5. package/dingding.html +23 -0
  6. package/index.html +33 -33
  7. package/package.json +2 -1
  8. package/src/AndroidApp.vue +35 -35
  9. package/src/DingDingApp.vue +51 -0
  10. package/src/android.js +21 -21
  11. package/src/apply.js +7 -1
  12. package/src/applyAndroid.js +32 -32
  13. package/src/applyDingDing.js +12 -0
  14. package/src/components/android/AppOnetomany.vue +301 -301
  15. package/src/components/android/AppServiceView.vue +566 -566
  16. package/src/components/android/AppSign.vue +142 -142
  17. package/src/components/android/AppTakePic.vue +143 -143
  18. package/src/components/android/Process/AppExplorationUser.vue +320 -320
  19. package/src/components/android/Process/AppServiceControl.vue +757 -757
  20. package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -456
  21. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -64
  22. package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -121
  23. package/src/components/android/TaskGraph.vue +125 -125
  24. package/src/components/product/Business/BusinessApply.vue +269 -0
  25. package/src/components/product/Business/CivilApply.vue +269 -0
  26. package/src/components/product/Function/InstallFunction.vue +131 -125
  27. package/src/components/product/Function/InstallInfoSelect.vue +300 -292
  28. package/src/components/product/Function/Service/FunctionServiceControl.vue +420 -222
  29. package/src/components/product/GroupByApply/ApplyGroupByList.vue +253 -0
  30. package/src/components/product/GroupByApply/ApplyGroupByMain.vue +53 -0
  31. package/src/components/product/GroupByApply/ApplyGroupByPaper.vue +376 -0
  32. package/src/components/product/Material/MaterialDetailed.vue +262 -0
  33. package/src/components/product/Onetomany.vue +377 -377
  34. package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -0
  35. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +157 -0
  36. package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -0
  37. package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -0
  38. package/src/components/product/Process/ExplorationSelect.vue +7 -0
  39. package/src/components/product/Process/ExplorationUser.vue +138 -138
  40. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -592
  41. package/src/components/product/Process/Processes/Print/printCharge.vue +142 -142
  42. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -207
  43. package/src/components/product/Process/Processes/chargeManagement.vue +638 -639
  44. package/src/components/product/Process/Service/ServiceControl.vue +10 -10
  45. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  46. package/src/components/product/ServiceView.vue +631 -631
  47. package/src/components/product/Stop/StopApply.vue +105 -103
  48. package/src/components/product/Stop/StopApplyList.vue +269 -269
  49. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -186
  50. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
  51. package/src/components/product/Supervisory/SupervisoryList.vue +233 -233
  52. package/src/components/product/Supervisory/SupervisoryhCart.vue +107 -107
  53. package/src/components/product/VueUtils/ApplyUpload.vue +273 -273
  54. package/src/components/product/VueUtils/HighMeter.vue +208 -208
  55. package/src/dingding.js +19 -0
  56. package/src/expandcssAndroid.less +1034 -1034
  57. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +735 -731
  58. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -824
  59. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -650
  60. package/src/filiale/yuchuan/android/Sign/AppSignTask.vue +182 -182
  61. package/src/filiale/yuchuan/android/Sign/BuildSign.vue +50 -50
  62. package/src/filiale/yuchuan/android/Sign/ConstructSign.vue +50 -50
  63. package/src/filiale/yuchuan/android/Sign/DesignSign.vue +50 -50
  64. package/src/filiale/yuchuan/android/Sign/SupervisorSign.vue +50 -50
  65. package/src/filiale/yuchuan/android/Task/Build/BuildTsak.vue +60 -60
  66. package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -60
  67. package/src/filiale/yuchuan/android.js +14 -14
  68. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -528
  69. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
  70. package/src/filiale/yuchuan/pc/Print/BuildOrder/buildOrderList.vue +264 -0
  71. package/src/filiale/yuchuan/pc/Print/BuildOrder/printBuildOrder.vue +152 -0
  72. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +149 -149
  73. package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +67 -67
  74. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -809
  75. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -595
  76. package/src/filiale/yuchuan/pc/Process/Processes/Print/printCharge.vue +125 -0
  77. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +621 -470
  78. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1108 -1074
  79. package/src/filiale/yuchuan/pc/Sign/SignRecord.vue +24 -0
  80. package/src/filiale/yuchuan/pc/Sign/SignRecordList.vue +174 -0
  81. package/src/filiale/yuchuan/pc.js +20 -12
  82. package/src/main.js +1 -1
  83. package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
  84. package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
  85. package/src/components/product/Function/functions/StopInstall.vue +0 -106
package/android.html CHANGED
@@ -1,23 +1,23 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
- <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
- <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
- <META HTTP-EQUIV="expires" CONTENT="0">
9
- <title>移动报建系统</title>
10
-
11
- <script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
12
- <!--引入UI组件库(1.1版本) -->
13
- <script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
14
- <style media="screen">
15
- /*url(./static/newmainbg.jpg)*/
16
- body{width: 100%;background:#7f8eaf no-repeat center bottom; background-size: cover;}
17
- body .loginbg{ width:100%; height:100%; background:url(./static/loginbg.jpg) no-repeat center top;}
18
- </style>
19
- </head>
20
- <body>
21
- <android-app></android-app>
22
- </body>
23
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
+ <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
+ <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
+ <META HTTP-EQUIV="expires" CONTENT="0">
9
+ <title>移动报建系统</title>
10
+
11
+ <script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
12
+ <!--引入UI组件库(1.1版本) -->
13
+ <script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
14
+ <style media="screen">
15
+ /*url(./static/newmainbg.jpg)*/
16
+ body{width: 100%;background:#7f8eaf no-repeat center bottom; background-size: cover;}
17
+ body .loginbg{ width:100%; height:100%; background:url(./static/loginbg.jpg) no-repeat center top;}
18
+ </style>
19
+ </head>
20
+ <body>
21
+ <android-app></android-app>
22
+ </body>
23
+ </html>
@@ -1,119 +1,119 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- // var httpProxy = require('http-proxy')
6
- var app = express()
7
- var compiler = webpack(config)
8
- // var proxy = httpProxy.createProxyServer()
9
- // var ldap = 'http://121.36.79.201:8400'
10
- // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://192.168.50.4:8400'
12
- var applyinstall = 'http://127.0.0.1:8080'
13
-
14
- var proxyTable = {
15
- '/rs/logic/getSaleInitData': {
16
- target: ldap
17
- },
18
- '/rs/workflow': {
19
- target: applyinstall
20
- },
21
- '/rs/vue': {
22
- target: ldap
23
- },
24
- // 查找资源服务数据
25
- '/rs/search': {
26
- target: ldap
27
- },
28
- // 街道查询
29
- '/rs/sql/address_getstreetlist': {
30
- target: ldap
31
- },
32
- // 创建街道
33
- '/rs/logic/address_updatestreet': {
34
- target: ldap
35
- },
36
- // 创建小区
37
- '/rs/logic/address_updatearea': {
38
- target: ldap
39
- },
40
- // 用户登录服务地址
41
- '/rs/user': {
42
- target: ldap
43
- },
44
- '/rs/logic/getInitData': {
45
- target: ldap?ldap:applyinstall
46
- },
47
- '/rs/logic/getLogin': {
48
- target: ldap
49
- },
50
- '/rs/file': { // 文件上传
51
- target: applyinstall
52
- },
53
- '/project': { // 文件回显
54
- target: applyinstall
55
- },
56
- '/rs': {
57
- target: applyinstall
58
- },
59
- '/ws': {
60
- target: applyinstall,
61
- ws: true // 代理webSocket
62
- }
63
- }
64
-
65
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
66
- publicPath: config.output.publicPath,
67
- stats: {
68
- colors: true,
69
- chunks: false
70
- }
71
- })
72
-
73
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
74
- // force page reload when html-webpack-plugin template changes
75
- compiler.plugin('compilation', function (compilation) {
76
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
77
- hotMiddleware.publish({action: 'reload'})
78
- cb()
79
- })
80
- })
81
-
82
- // proxy api requests
83
- Object.keys(proxyTable).forEach(function (context) {
84
- var options = proxyTable[context]
85
- if (typeof options === 'string') {
86
- options = {target: options}
87
- }
88
- app.use(proxyMiddleware(context, options))
89
- })
90
-
91
- // handle fallback for HTML5 history API
92
- app.use(require('connect-history-api-fallback')())
93
- // app.use(function (req, res, next) {
94
- // res.header('Access-Control-Allow-Origin', '*')
95
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
96
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
97
- // res.header('X-Powered-By', '3,2,1')
98
- // res.header('Access-Control-Allow-Credentials', 'true')
99
- // res.header('Content-Type', 'application/json;charset=utf-8')
100
- // next()
101
- // })
102
-
103
- // serve webpack bundle output
104
- app.use(devMiddleware)
105
-
106
- // enable hot-reload and state-preserving
107
- // compilation error display
108
- app.use(hotMiddleware)
109
-
110
- // serve pure static assets
111
- app.use('/static', express.static('./static'))
112
-
113
- module.exports = app.listen(8300, function (err) {
114
- if (err) {
115
- console.log(err)
116
- return
117
- }
118
- console.log('Listening at http://localhost:8300')
119
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+ var app = express()
7
+ var compiler = webpack(config)
8
+ // var proxy = httpProxy.createProxyServer()
9
+ // var ldap = 'http://121.36.79.201:8400'
10
+ // var applyinstall = 'http://121.36.79.201:8400'
11
+ var ldap = 'http://192.168.50.4:8400'
12
+ var applyinstall = 'http://127.0.0.1:8080'
13
+
14
+ var proxyTable = {
15
+ '/rs/logic/getSaleInitData': {
16
+ target: ldap
17
+ },
18
+ '/rs/workflow': {
19
+ target: applyinstall
20
+ },
21
+ '/rs/vue': {
22
+ target: ldap
23
+ },
24
+ // 查找资源服务数据
25
+ '/rs/search': {
26
+ target: ldap
27
+ },
28
+ // 街道查询
29
+ '/rs/sql/address_getstreetlist': {
30
+ target: ldap
31
+ },
32
+ // 创建街道
33
+ '/rs/logic/address_updatestreet': {
34
+ target: ldap
35
+ },
36
+ // 创建小区
37
+ '/rs/logic/address_updatearea': {
38
+ target: ldap
39
+ },
40
+ // 用户登录服务地址
41
+ '/rs/user': {
42
+ target: ldap
43
+ },
44
+ '/rs/logic/getInitData': {
45
+ target: ldap?ldap:applyinstall
46
+ },
47
+ '/rs/logic/getLogin': {
48
+ target: ldap
49
+ },
50
+ '/rs/file': { // 文件上传
51
+ target: applyinstall
52
+ },
53
+ '/project': { // 文件回显
54
+ target: applyinstall
55
+ },
56
+ '/rs': {
57
+ target: applyinstall
58
+ },
59
+ '/ws': {
60
+ target: applyinstall,
61
+ ws: true // 代理webSocket
62
+ }
63
+ }
64
+
65
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
66
+ publicPath: config.output.publicPath,
67
+ stats: {
68
+ colors: true,
69
+ chunks: false
70
+ }
71
+ })
72
+
73
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
74
+ // force page reload when html-webpack-plugin template changes
75
+ compiler.plugin('compilation', function (compilation) {
76
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
77
+ hotMiddleware.publish({action: 'reload'})
78
+ cb()
79
+ })
80
+ })
81
+
82
+ // proxy api requests
83
+ Object.keys(proxyTable).forEach(function (context) {
84
+ var options = proxyTable[context]
85
+ if (typeof options === 'string') {
86
+ options = {target: options}
87
+ }
88
+ app.use(proxyMiddleware(context, options))
89
+ })
90
+
91
+ // handle fallback for HTML5 history API
92
+ app.use(require('connect-history-api-fallback')())
93
+ // app.use(function (req, res, next) {
94
+ // res.header('Access-Control-Allow-Origin', '*')
95
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
96
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
97
+ // res.header('X-Powered-By', '3,2,1')
98
+ // res.header('Access-Control-Allow-Credentials', 'true')
99
+ // res.header('Content-Type', 'application/json;charset=utf-8')
100
+ // next()
101
+ // })
102
+
103
+ // serve webpack bundle output
104
+ app.use(devMiddleware)
105
+
106
+ // enable hot-reload and state-preserving
107
+ // compilation error display
108
+ app.use(hotMiddleware)
109
+
110
+ // serve pure static assets
111
+ app.use('/static', express.static('./static'))
112
+
113
+ module.exports = app.listen(8300, function (err) {
114
+ if (err) {
115
+ console.log(err)
116
+ return
117
+ }
118
+ console.log('Listening at http://localhost:8300')
119
+ })
@@ -5,7 +5,8 @@ var projectRoot = path.resolve(__dirname, '../')
5
5
  module.exports = {
6
6
  entry: {
7
7
  app: './src/main.js',
8
- 'android-app': './src/android.js'
8
+ 'android-app': './src/android.js',
9
+ 'dingding-app': './src/dingding.js'
9
10
  },
10
11
  output: {
11
12
  path: path.resolve(__dirname, '../dist/static'),
@@ -11,6 +11,12 @@ Object.keys(baseConfig.entry).forEach(function (name) {
11
11
  module.exports = merge(baseConfig, {
12
12
  // eval-source-map is faster for development
13
13
  devtool: '#eval-source-map',
14
+ devServer: {
15
+ historyApiFallback: true,
16
+ host: '0.0.0.0',
17
+ disableHostCheck: true,
18
+ noInfo: true
19
+ },
14
20
  output: {
15
21
  // necessary for the html plugin to work properly
16
22
  // when serving the html from in-memory
@@ -34,6 +40,12 @@ module.exports = merge(baseConfig, {
34
40
  template: 'android.html',
35
41
  inject: true,
36
42
  chunks: ['android-app']
43
+ }),
44
+ new HtmlWebpackPlugin({
45
+ filename: 'dingding.html',
46
+ template: 'dingding.html',
47
+ inject: true,
48
+ chunks: ['dingding-app']
37
49
  })
38
50
  ]
39
51
  })
package/dingding.html ADDED
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
+ <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
+ <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
+ <META HTTP-EQUIV="expires" CONTENT="0">
9
+ <title>报建系统</title>
10
+ <script src="https://g.alicdn.com/code/npm/@ali/dingtalk-h5-remote-debug-sdk/0.1.3/app.bundle.js"></script>
11
+ <script>
12
+ h5RemoteDebugSdk.init({
13
+ uuid: "31c780c4-2919-427d-a4fb-73e5a451f5b0",
14
+ observerElement: document.documentElement,
15
+ });
16
+ </script>
17
+ </head>
18
+ <body>
19
+ <ding-ding-app></ding-ding-app>
20
+ </body>
21
+ </html>
22
+ <script>
23
+ </script>
package/index.html CHANGED
@@ -1,33 +1,33 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
- <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
- <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
- <META HTTP-EQUIV="expires" CONTENT="0">
9
- <title>报建系统</title>
10
- <script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
11
- <!--引入UI组件库(1.1版本) -->
12
- <script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
13
- <style media="screen">
14
- /*url(./static/newmainbg.jpg)*/
15
-
16
- body {
17
- font-size:16px !important;
18
- width: 100%;
19
- background: #7f8eaf no-repeat center bottom;
20
- background-size: cover;
21
- }
22
-
23
- body .loginbg {
24
- width: 100%;
25
- height: 100%;
26
- background: url(./static/loginbg.jpg) no-repeat center top;
27
- }
28
- </style>
29
- </head>
30
- <body id="bodymain" class="themeOne">
31
- <app></app>
32
- </body>
33
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
+ <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
+ <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
+ <META HTTP-EQUIV="expires" CONTENT="0">
9
+ <title>报建系统</title>
10
+ <script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
11
+ <!--引入UI组件库(1.1版本) -->
12
+ <script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
13
+ <style media="screen">
14
+ /*url(./static/newmainbg.jpg)*/
15
+
16
+ body {
17
+ font-size:16px !important;
18
+ width: 100%;
19
+ background: #7f8eaf no-repeat center bottom;
20
+ background-size: cover;
21
+ }
22
+
23
+ body .loginbg {
24
+ width: 100%;
25
+ height: 100%;
26
+ background: url(./static/loginbg.jpg) no-repeat center top;
27
+ }
28
+ </style>
29
+ </head>
30
+ <body id="bodymain" class="themeOne">
31
+ <app></app>
32
+ </body>
33
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "@logicflow/core": "^0.4.3",
31
31
  "co": "4.6.0",
32
+ "dingtalk-jsapi": "^2.13.68",
32
33
  "jsencrypt": "^3.0.0-rc.1",
33
34
  "less": "^2.7.1",
34
35
  "less-loader": "^2.2.3",
@@ -1,35 +1,35 @@
1
- <template>
2
- <!-- <app-base> -->
3
- <div id="android-app">
4
- <article>
5
- <!-- <route :comp="{name: 'build-tsak'}" name="root"></route>-->
6
- <!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
7
- <!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
8
- <!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
9
- <!-- <route :comp="{name: 'app-istall-function'}" name="root"></route>-->
10
- <route :comp="{name: 'login-app'}" name="root"></route>
11
- </article>
12
- <time-out></time-out>
13
- <message-box></message-box>
14
- <alert-box></alert-box>
15
- <alert-box-batch></alert-box-batch>
16
- </div>
17
- </template>
18
-
19
- <script>
20
-
21
- import AlertBox from "vue-client/src/components/AlertBox";
22
- import AlertBoxBatch from "vue-client/src/components/AlertBoxBatch";
23
-
24
- export default {
25
- ready () {
26
- if(!window.onerror) {
27
- window.onerror = function (message, file, line, col, error) {
28
- // HostApp.alert("Error occured: " + error.message)
29
- return false
30
- }
31
- }
32
- },
33
- components: { AlertBox, AlertBoxBatch }
34
- }
35
- </script>
1
+ <template>
2
+ <!-- <app-base> -->
3
+ <div id="android-app">
4
+ <article>
5
+ <!-- <route :comp="{name: 'build-tsak'}" name="root"></route>-->
6
+ <!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
7
+ <!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
8
+ <!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
9
+ <!-- <route :comp="{name: 'app-istall-function'}" name="root"></route>-->
10
+ <route :comp="{name: 'login-app'}" name="root"></route>
11
+ </article>
12
+ <time-out></time-out>
13
+ <message-box></message-box>
14
+ <alert-box></alert-box>
15
+ <alert-box-batch></alert-box-batch>
16
+ </div>
17
+ </template>
18
+
19
+ <script>
20
+
21
+ import AlertBox from "vue-client/src/components/AlertBox";
22
+ import AlertBoxBatch from "vue-client/src/components/AlertBoxBatch";
23
+
24
+ export default {
25
+ ready () {
26
+ if(!window.onerror) {
27
+ window.onerror = function (message, file, line, col, error) {
28
+ // HostApp.alert("Error occured: " + error.message)
29
+ return false
30
+ }
31
+ }
32
+ },
33
+ components: { AlertBox, AlertBoxBatch }
34
+ }
35
+ </script>
@@ -0,0 +1,51 @@
1
+ <template>
2
+ <div id="dingding-app">
3
+ {{ title }}
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ title: '报建系统',
10
+ data () {
11
+ return {
12
+ title: 'Hello DingDing'
13
+ }
14
+ },
15
+ ready () {
16
+ // 获取免登授权码
17
+ this.$dd.ready(() => {
18
+ console.log('加载成功')
19
+
20
+ this.test2()
21
+ })
22
+ },
23
+ methods: {
24
+ test (res) {
25
+ this.$dd.device.notification.alert({
26
+ title: '提示',
27
+ message: res,
28
+ buttonName: '确认',
29
+ onSuccess: () => {
30
+ },
31
+ onFail: () => {}
32
+ })
33
+ },
34
+ test2 () {
35
+ this.$dd.runtime.permission.requestAuthCode({
36
+ corpId: 'ding6406c45c1a45736df2c783f7214b6d69',
37
+ onSuccess: (res) => {
38
+ console.info('获取成功')
39
+ console.info(res.code)
40
+ this.test(res.code)
41
+ },
42
+ onFail: (err) => {
43
+ console.info('获取失败')
44
+ console.info(err)
45
+ this.test('失败')
46
+ }
47
+ })
48
+ }
49
+ }
50
+ }
51
+ </script>
package/src/android.js CHANGED
@@ -1,21 +1,21 @@
1
- import Vue from 'vue'
2
- import AndroidApp from './AndroidApp'
3
- import { all } from 'vue-client'
4
- import apply from './apply'
5
- import {systemphonegrid} from 'system-phone'
6
- import applyAndroid from './applyAndroid'
7
-
8
- all()
9
- apply()
10
- applyAndroid('yuchuan')
11
- systemphonegrid()
12
-
13
- require('./android-bootstrap/less/bootstrap.less')
14
- require('./expandcssAndroid.less')
15
-
16
- Vue.android = true
17
- /* eslint-disable no-new */
18
- new Vue({
19
- el: 'body',
20
- components: { AndroidApp }
21
- })
1
+ import Vue from 'vue'
2
+ import AndroidApp from './AndroidApp'
3
+ import { all } from 'vue-client'
4
+ import apply from './apply'
5
+ import {systemphonegrid} from 'system-phone'
6
+ import applyAndroid from './applyAndroid'
7
+
8
+ all()
9
+ apply()
10
+ applyAndroid('yuchuan')
11
+ systemphonegrid()
12
+
13
+ require('./android-bootstrap/less/bootstrap.less')
14
+ require('./expandcssAndroid.less')
15
+
16
+ Vue.android = true
17
+ /* eslint-disable no-new */
18
+ new Vue({
19
+ el: 'body',
20
+ components: { AndroidApp }
21
+ })
package/src/apply.js CHANGED
@@ -58,9 +58,15 @@ export default function (filiale) {
58
58
  Vue.component('installation-details', (resolve) => { require(['./components/product/Process/Processes/InstallationDetails'], resolve) })
59
59
  // 收费管理
60
60
  Vue.component('apply-charge-management', (resolve) => { require(['./components/product/Process/Processes/chargeManagement'], resolve) })
61
-
61
+ Vue.component('apply-material-detailed', (resolve) => { require(['./components/product/Material/MaterialDetailed'], resolve) })
62
62
  // 补充协议
63
63
  Vue.component('supplemental-agreement', (resolve) => { require(['./components/product/Process/Processes/supplementalAgreement'], resolve) })
64
+ Vue.component('build-order-list', (resolve) => { require(['./components/product/Print/BuildOrder/buildOrderList'], resolve) })
65
+ /** 团购转散户 **/
66
+ Vue.component('apply-group-by-paper', (resolve) => { require(['./components/product/GroupByApply/ApplyGroupByPaper'], resolve) })
67
+ Vue.component('apply-group-by-main', (resolve) => { require(['./components/product/GroupByApply/ApplyGroupByMain'], resolve) })
68
+ Vue.component('apply-group-by-list', (resolve) => { require(['./components/product/GroupByApply/ApplyGroupByList'], resolve) })
69
+ Vue.component('business-apply', (resolve) => { require(['./components/product/Business/BusinessApply'], resolve) })
64
70
  // 选择用户信息
65
71
  Vue.component('select-userinfo', (resolve) => { require(['./components/product/Process/Processes/selectUserinfo'], resolve) })
66
72
  // 选择报建项目