apply-clients 3.4.1 → 3.4.2-FuGu-4

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 (83) hide show
  1. package/android.html +23 -23
  2. package/build/css-loaders.js +34 -0
  3. package/build/dev-android.js +101 -0
  4. package/build/dev-client.js +8 -0
  5. package/build/dev-server-app.js +76 -0
  6. package/build/dev-server.js +119 -0
  7. package/build/example-server.js +80 -0
  8. package/build/release.sh +28 -0
  9. package/build/utils.js +80 -0
  10. package/build/webpack.base.conf.js +85 -0
  11. package/build/webpack.baseandroid.conf.js +84 -0
  12. package/build/webpack.dev.conf.js +51 -0
  13. package/build/webpack.devandroid.conf.js +34 -0
  14. package/build/webpack.example.conf.js +49 -0
  15. package/build/webpack.prod.conf.js +60 -0
  16. package/build/webpack.prodandroid.conf.js +60 -0
  17. package/build/webpack.test.conf.js +31 -0
  18. package/dingding.html +23 -0
  19. package/index.html +33 -33
  20. package/package.json +2 -1
  21. package/src/AndroidApp.vue +35 -35
  22. package/src/DingDingApp.vue +51 -0
  23. package/src/android.js +21 -21
  24. package/src/apply.js +2 -8
  25. package/src/applyAndroid.js +2 -8
  26. package/src/applyDingDing.js +12 -0
  27. package/src/components/android/AppOnetomany.vue +301 -301
  28. package/src/components/android/AppServiceView.vue +566 -566
  29. package/src/components/android/AppSign.vue +142 -142
  30. package/src/components/android/AppTakePic.vue +143 -143
  31. package/src/components/android/Process/AppExplorationUser.vue +320 -320
  32. package/src/components/android/Process/AppServiceControl.vue +757 -757
  33. package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -456
  34. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -64
  35. package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -121
  36. package/src/components/android/TaskGraph.vue +125 -125
  37. package/src/components/build/Install/ExplorationUser.vue +304 -0
  38. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -0
  39. package/src/components/product/{Process/Processes/Print → ApplyCharge}/printCharge.vue +2 -2
  40. package/src/components/product/Function/InstallFunction.vue +131 -125
  41. package/src/components/product/Function/InstallInfoSelect.vue +300 -292
  42. package/src/components/product/Function/Service/FunctionServiceControl.vue +420 -222
  43. package/src/components/product/Onetomany.vue +377 -377
  44. package/src/components/product/Process/ExplorationSelect.vue +11 -20
  45. package/src/components/product/Process/ExplorationUser.vue +138 -138
  46. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -592
  47. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -207
  48. package/src/components/product/Process/Processes/chargeManagement.vue +23 -28
  49. package/src/components/product/Process/Service/ServiceControl.vue +50 -63
  50. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  51. package/src/components/product/ServiceView.vue +631 -631
  52. package/src/components/product/Stop/StopApply.vue +105 -103
  53. package/src/components/product/Stop/StopApplyList.vue +269 -269
  54. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -186
  55. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
  56. package/src/components/product/Supervisory/SupervisoryList.vue +233 -233
  57. package/src/components/product/Supervisory/SupervisoryhCart.vue +14 -11
  58. package/src/components/product/VueUtils/ApplyUpload.vue +3 -3
  59. package/src/components/product/VueUtils/HighMeter.vue +208 -208
  60. package/src/dingding.js +20 -0
  61. package/src/expandcssAndroid.less +1034 -1034
  62. package/src/main.js +23 -23
  63. package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
  64. package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
  65. package/src/components/product/Function/functions/StopInstall.vue +0 -106
  66. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  67. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  68. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  69. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  70. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  71. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -548
  72. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -754
  73. package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +0 -60
  74. package/src/filiale/yuchuan/android.js +0 -7
  75. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -528
  76. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
  77. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -395
  78. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -147
  79. package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +0 -66
  80. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +0 -759
  81. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +0 -470
  82. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -879
  83. package/src/filiale/yuchuan/pc.js +0 -11
@@ -0,0 +1,84 @@
1
+ //path is a built-in node.js module,
2
+ var path = require('path')
3
+ //css-loaders.js in the same directory
4
+ var cssLoaders = require('./css-loaders')
5
+ //__dirname The name of the directory that the currently executing script resides in.
6
+ var projectRoot = path.resolve(__dirname, '../')
7
+
8
+ module.exports = {
9
+ //entry point
10
+ entry: {
11
+ app: './src/android.js'
12
+ },
13
+ //output
14
+ output: {
15
+ //build output absolute directory
16
+ path: path.resolve(__dirname, '../dist-android/static'),
17
+ //public URL address of the output files when referenced in a browser
18
+ publicPath: './static/',
19
+ filename: '[name].js'
20
+ },
21
+ //resolve modules and files path
22
+ resolve: {
23
+ extensions: ['', '.js', '.vue'],
24
+ fallback: [path.join(__dirname, '../node_modules')],
25
+ alias: {
26
+ 'src': path.resolve(__dirname, '../src')
27
+ }
28
+ },
29
+ //resolve loaders path
30
+ resolveLoader: {
31
+ fallback: [path.join(__dirname, '../node_modules')]
32
+ },
33
+ module: {
34
+ loaders: [
35
+ {
36
+ test: /\.vue$/,
37
+ loader: 'vue'
38
+ },
39
+ {
40
+ test: /\.js$/,
41
+ loader: 'babel',
42
+ include: [
43
+ `${projectRoot}\\src`,
44
+ `${projectRoot}\\build`,
45
+ `${projectRoot}\\examples`,
46
+ `${projectRoot}\\test`,
47
+ `${projectRoot}\\node_modules\\vue-client\\src`,
48
+ `${projectRoot}\\node_modules\\vue-strap\\src`,
49
+ `${projectRoot}\\node_modules\\system-phone\\src`
50
+ ]
51
+ },
52
+ {
53
+ test: /\.json$/,
54
+ loader: 'json'
55
+ },
56
+ {
57
+ test: /\.html$/,
58
+ loader: 'vue-html'
59
+ },
60
+ {
61
+ test: /\.less$/,
62
+ loader: 'style!css!less'
63
+ },
64
+ {
65
+ test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
66
+ loader: 'url',
67
+ query: {
68
+ limit: 10000,
69
+ name: '[name].[ext]?[hash:7]'
70
+ }
71
+ }
72
+ ]
73
+ },
74
+ vue: {
75
+ loaders: cssLoaders({
76
+ sourceMap: false,
77
+ extract: false
78
+ })
79
+ },
80
+ plugins: [],
81
+ eslint: {
82
+ formatter: require('eslint-friendly-formatter')
83
+ }
84
+ }
@@ -0,0 +1,51 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.base.conf')
4
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
5
+
6
+ // add hot-reload related code to entry chunks
7
+ Object.keys(baseConfig.entry).forEach(function (name) {
8
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
9
+ })
10
+
11
+ module.exports = merge(baseConfig, {
12
+ // eval-source-map is faster for development
13
+ devtool: '#eval-source-map',
14
+ devServer: {
15
+ historyApiFallback: true,
16
+ host: '0.0.0.0',
17
+ disableHostCheck: true,
18
+ noInfo: true
19
+ },
20
+ output: {
21
+ // necessary for the html plugin to work properly
22
+ // when serving the html from in-memory
23
+ publicPath: '/'
24
+ },
25
+ plugins: [
26
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
27
+ new webpack.optimize.OccurenceOrderPlugin(),
28
+ new webpack.HotModuleReplacementPlugin(),
29
+ new webpack.NoErrorsPlugin(),
30
+ // https://github.com/ampedandwired/html-webpack-plugin
31
+ new HtmlWebpackPlugin({
32
+ filename: 'index.html',
33
+ template: 'index.html',
34
+ inject: true,
35
+ chunks: ['app']
36
+ }),
37
+ // 安卓模拟页面
38
+ new HtmlWebpackPlugin({
39
+ filename: 'android.html',
40
+ template: 'android.html',
41
+ inject: true,
42
+ chunks: ['android-app']
43
+ }),
44
+ new HtmlWebpackPlugin({
45
+ filename: 'dingding.html',
46
+ template: 'dingding.html',
47
+ inject: true,
48
+ chunks: ['dingding-app']
49
+ })
50
+ ]
51
+ })
@@ -0,0 +1,34 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.baseandroid.conf')
4
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
5
+
6
+ // add hot-reload related code to entry chunks
7
+ Object.keys(baseConfig.entry).forEach(function (name) {
8
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
9
+ })
10
+
11
+ module.exports = merge(baseConfig, {
12
+ // eval-source-map is faster for development
13
+ devtool: 'source-map',
14
+ //devtool: '#eval-source-map',
15
+ output: {
16
+ // necessary for the html plugin to work properly
17
+ // when serving the html from in-memory
18
+ publicPath: '/'
19
+ },
20
+ plugins: [
21
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
22
+ new webpack.optimize.OccurenceOrderPlugin(),
23
+ new webpack.HotModuleReplacementPlugin(),
24
+ new webpack.NoErrorsPlugin(),
25
+ // https://github.com/ampedandwired/html-webpack-plugin
26
+ //plugin trick
27
+ new HtmlWebpackPlugin({
28
+ filename: 'android.html',
29
+ template: 'android.html',
30
+ inject: true,
31
+ chunks: ['android-app']
32
+ })
33
+ ]
34
+ })
@@ -0,0 +1,49 @@
1
+ var fs = require('fs')
2
+ var webpack = require('webpack')
3
+ var merge = require('webpack-merge')
4
+ var baseConfig = require('./webpack.base.conf')
5
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
6
+
7
+ // add hot-reload related code to entry chunks
8
+ Object.keys(baseConfig.entry).forEach(function (name) {
9
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
10
+ })
11
+
12
+ // 把examples下所有index.html转换成测试例子.html
13
+ fs.readdirSync('./examples').forEach((file) => {
14
+ baseConfig.plugins.push(
15
+ // https://github.com/ampedandwired/html-webpack-plugin
16
+ new HtmlWebpackPlugin({
17
+ filename: file + '.html',
18
+ template: `examples/${file}/index.html`,
19
+ inject: false
20
+ })
21
+ )
22
+ })
23
+
24
+ // 把examples下子目录里的main.js打包成对应组件名的App.js
25
+ fs.readdirSync('./examples').forEach((file) => {
26
+ baseConfig.entry[file + 'App'] = `./examples/${file}/main.js`
27
+ })
28
+
29
+ module.exports = merge(baseConfig, {
30
+ // eval-source-map is faster for development
31
+ devtool: '#eval-source-map',
32
+ output: {
33
+ // necessary for the html plugin to work properly
34
+ // when serving the html from in-memory
35
+ publicPath: '/'
36
+ },
37
+ plugins: [
38
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
39
+ new webpack.optimize.OccurenceOrderPlugin(),
40
+ new webpack.HotModuleReplacementPlugin(),
41
+ new webpack.NoErrorsPlugin(),
42
+ // https://github.com/ampedandwired/html-webpack-plugin
43
+ new HtmlWebpackPlugin({
44
+ filename: 'index.html',
45
+ template: 'index.html',
46
+ inject: true
47
+ })
48
+ ]
49
+ })
@@ -0,0 +1,60 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.base.conf')
4
+ var cssLoaders = require('./css-loaders')
5
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
7
+
8
+ // whether to generate source map for production files.
9
+ // disabling this can speed up the build.
10
+ var SOURCE_MAP = true
11
+
12
+ module.exports = merge(baseConfig, {
13
+ stats: {
14
+ children: false
15
+ },
16
+ devtool: SOURCE_MAP ? '#source-map' : false,
17
+ output: {
18
+ // naming output files with hashes for better caching.
19
+ // dist/index.html will be auto-generated with correct URLs.
20
+ filename: '[name][chunkhash].js',
21
+ chunkFilename: '[id].[chunkhash].js'
22
+ },
23
+ vue: {
24
+ loaders: cssLoaders({
25
+ sourceMap: SOURCE_MAP,
26
+ extract: true
27
+ })
28
+ },
29
+ plugins: [
30
+ // http://vuejs.github.io/vue-loader/workflow/production.html
31
+ new webpack.DefinePlugin({
32
+ 'process.env': {
33
+ NODE_ENV: '"production"'
34
+ }
35
+ }),
36
+ new webpack.optimize.UglifyJsPlugin({
37
+ compress: {
38
+ warnings: false
39
+ }
40
+ }),
41
+ new webpack.optimize.OccurenceOrderPlugin(),
42
+ // extract css into its own file
43
+ new ExtractTextPlugin('[name].css'),
44
+ // generate dist index.html with correct asset hash for caching.
45
+ // you can customize output by editing /index.html
46
+ // see https://github.com/ampedandwired/html-webpack-plugin
47
+ new HtmlWebpackPlugin({
48
+ filename: '../index.html',
49
+ template: 'index.html',
50
+ inject: true,
51
+ minify: {
52
+ removeComments: true,
53
+ collapseWhitespace: true,
54
+ removeAttributeQuotes: true
55
+ // more options:
56
+ // https://github.com/kangax/html-minifier#options-quick-reference
57
+ }
58
+ })
59
+ ]
60
+ })
@@ -0,0 +1,60 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.baseandroid.conf')
4
+ var cssLoaders = require('./css-loaders')
5
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
7
+
8
+ // whether to generate source map for production files.
9
+ // disabling this can speed up the build.
10
+ var SOURCE_MAP = true
11
+
12
+ module.exports = merge(baseConfig, {
13
+ stats: {
14
+ children: false
15
+ },
16
+ devtool: SOURCE_MAP ? '#source-map' : false,
17
+ output: {
18
+ // naming output files with hashes for better caching.
19
+ // dist/index.html will be auto-generated with correct URLs.
20
+ filename: '[name].js',
21
+ chunkFilename: '[id].js'
22
+ },
23
+ vue: {
24
+ loaders: cssLoaders({
25
+ sourceMap: SOURCE_MAP,
26
+ extract: true
27
+ })
28
+ },
29
+ plugins: [
30
+ // http://vuejs.github.io/vue-loader/workflow/production.html
31
+ new webpack.DefinePlugin({
32
+ 'process.env': {
33
+ NODE_ENV: '"production"'
34
+ }
35
+ }),
36
+ new webpack.optimize.UglifyJsPlugin({
37
+ compress: {
38
+ warnings: false
39
+ }
40
+ }),
41
+ new webpack.optimize.OccurenceOrderPlugin(),
42
+ // extract css into its own file
43
+ new ExtractTextPlugin('[name].css'),
44
+ // generate dist index.html with correct asset hash for caching.
45
+ // you can customize output by editing /index.html
46
+ // see https://github.com/ampedandwired/html-webpack-plugin
47
+ new HtmlWebpackPlugin({
48
+ filename: '../index.html',
49
+ template: 'android.html',
50
+ inject: true,
51
+ minify: {
52
+ removeComments: true,
53
+ collapseWhitespace: true,
54
+ removeAttributeQuotes: true
55
+ // more options:
56
+ // https://github.com/kangax/html-minifier#options-quick-reference
57
+ }
58
+ })
59
+ ]
60
+ })
@@ -0,0 +1,31 @@
1
+ // This is the webpack config used for unit tests.
2
+
3
+ var utils = require('./utils')
4
+ var webpack = require('webpack')
5
+ var merge = require('webpack-merge')
6
+ var baseConfig = require('./webpack.base.conf')
7
+
8
+ var webpackConfig = merge(baseConfig, {
9
+ module: {
10
+ rules: utils.styleLoaders()
11
+ },
12
+ // use inline sourcemap for karma-sourcemap-loader
13
+ devtool: '#inline-source-map',
14
+ resolveLoader: {
15
+ alias: {
16
+ // necessary to to make lang="scss" work in test when using vue-loader's ?inject option
17
+ // see discussion at https://github.com/vuejs/vue-loader/issues/724
18
+ 'scss-loader': 'sass-loader'
19
+ }
20
+ },
21
+ plugins: [
22
+ new webpack.DefinePlugin({
23
+ 'process.env': require('../config/test.env')
24
+ })
25
+ ]
26
+ })
27
+
28
+ // no need for app entry during tests
29
+ delete webpackConfig.entry
30
+
31
+ module.exports = webpackConfig
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.1",
3
+ "version": "3.4.2-FuGu-4",
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: 'app-exploration-user'}" 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
@@ -4,7 +4,7 @@ import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
4
4
  import ApplyLoadParams from './stores/ApplyLoadParams'
5
5
  /** ****************服务插件*********************/
6
6
 
7
- export default function (filiale) {
7
+ export default function () {
8
8
  Vue.use(ApplyGetSaleParam)
9
9
  Vue.use(ApplyLoadParams)
10
10
  /** ***************************报建模块*********************************/
@@ -51,6 +51,7 @@ export default function (filiale) {
51
51
  /** 报建收费记录 **/
52
52
  Vue.component('apply-charge-search', (resolve) => { require(['./components/product/ApplyCharge/ApplyChargeSearch'], resolve) })
53
53
  Vue.component('apply-charge-list', (resolve) => { require(['./components/product/ApplyCharge/ApplyChargeList'], resolve) })
54
+ Vue.component('apply-print-charge', (resolve) => { require(['./components/product/ApplyCharge/printCharge'], resolve) })
54
55
 
55
56
  // 地址管理
56
57
  Vue.component('apply-address-userinfo-management', (resolve) => { require(['./components/product/Process/Processes/addressAndUserinfoManagement'], resolve) })
@@ -71,11 +72,4 @@ export default function (filiale) {
71
72
  /** VueUtils **/
72
73
  Vue.component('apply-upload', (resolve) => { require(['./components/product/VueUtils/ApplyUpload'], resolve) })
73
74
  Vue.component('apply-high-meter', (resolve) => { require(['./components/product/VueUtils/HighMeter'], resolve) })
74
-
75
- if (filiale) {
76
- let filialeComp = require(`./filiale/${filiale}/pc`).specialComp
77
- for (let key in filialeComp) {
78
- Vue.component(key, filialeComp[key])
79
- }
80
- }
81
75
  }