apply-clients 3.3.105 → 3.3.107-2
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/.project +17 -0
- package/build/dev-server-app.js +76 -76
- package/build/dev-server.js +23 -5
- package/package.json +1 -1
- package/src/App.vue +21 -20
- package/src/apply.js +2 -0
- package/src/applyAndroid.js +2 -0
- package/src/components/android/AppServiceView.vue +6 -2
- package/src/components/android/AppSign.vue +143 -158
- package/src/components/android/AppTakePic.vue +143 -145
- package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +143 -0
- package/src/components/android/Process/AppServiceControl.vue +13 -4
- package/src/components/android/Process/Processes/AppChargeManagement.vue +2 -1
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +513 -513
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +475 -475
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +317 -317
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +152 -152
- package/src/components/product/Function/InstallInfoSelect.vue +320 -320
- package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
- package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -259
- package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -168
- package/src/components/product/Process/Processes/InstallationDetails.vue +600 -600
- package/src/components/product/Process/Service/ServiceControl.vue +42 -5
- package/src/components/product/ServiceView.vue +20 -1
- package/src/main.js +6 -5
package/.project
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<projectDescription>
|
|
3
|
+
<name>ApplyClient</name>
|
|
4
|
+
<comment></comment>
|
|
5
|
+
<projects>
|
|
6
|
+
</projects>
|
|
7
|
+
<buildSpec>
|
|
8
|
+
<buildCommand>
|
|
9
|
+
<name>org.eclipse.wst.validation.validationbuilder</name>
|
|
10
|
+
<arguments>
|
|
11
|
+
</arguments>
|
|
12
|
+
</buildCommand>
|
|
13
|
+
</buildSpec>
|
|
14
|
+
<natures>
|
|
15
|
+
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
|
16
|
+
</natures>
|
|
17
|
+
</projectDescription>
|
package/build/dev-server-app.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
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
|
-
|
|
10
|
-
// Define HTTP proxies to your custom API backend
|
|
11
|
-
// https://github.com/chimurai/http-proxy-middleware
|
|
12
|
-
var proxyTable = {
|
|
13
|
-
'/rs': {
|
|
14
|
-
target: 'http://192.168.20.27:8555'
|
|
15
|
-
// target: 'http://192.168.30.86:8077'
|
|
16
|
-
},
|
|
17
|
-
'/AndroidRest/rs': {
|
|
18
|
-
target: 'http://192.168.20.27:8555'
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
23
|
-
publicPath: config.output.publicPath,
|
|
24
|
-
stats: {
|
|
25
|
-
colors: true,
|
|
26
|
-
chunks: false
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
31
|
-
// force page reload when html-webpack-plugin template changes
|
|
32
|
-
compiler.plugin('compilation', function (compilation) {
|
|
33
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
34
|
-
hotMiddleware.publish({action: 'reload'})
|
|
35
|
-
cb()
|
|
36
|
-
})
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
// proxy api requests
|
|
40
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
41
|
-
var options = proxyTable[context]
|
|
42
|
-
if (typeof options === 'string') {
|
|
43
|
-
options = {target: options}
|
|
44
|
-
}
|
|
45
|
-
app.use(proxyMiddleware(context, options))
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
// handle fallback for HTML5 history API
|
|
49
|
-
app.use(require('connect-history-api-fallback')())
|
|
50
|
-
// app.use(function (req, res, next) {
|
|
51
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
52
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
53
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
54
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
55
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
56
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
57
|
-
// next()
|
|
58
|
-
// })
|
|
59
|
-
|
|
60
|
-
// serve webpack bundle output
|
|
61
|
-
app.use(devMiddleware)
|
|
62
|
-
|
|
63
|
-
// enable hot-reload and state-preserving
|
|
64
|
-
// compilation error display
|
|
65
|
-
app.use(hotMiddleware)
|
|
66
|
-
|
|
67
|
-
// serve pure static assets
|
|
68
|
-
app.use('/static', express.static('./static'))
|
|
69
|
-
|
|
70
|
-
module.exports = app.listen(8089, function (err) {
|
|
71
|
-
if (err) {
|
|
72
|
-
console.log(err)
|
|
73
|
-
return
|
|
74
|
-
}
|
|
75
|
-
console.log('Listening at http://localhost:8089')
|
|
76
|
-
})
|
|
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
|
+
|
|
10
|
+
// Define HTTP proxies to your custom API backend
|
|
11
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
12
|
+
var proxyTable = {
|
|
13
|
+
'/rs': {
|
|
14
|
+
target: 'http://192.168.20.27:8555'
|
|
15
|
+
// target: 'http://192.168.30.86:8077'
|
|
16
|
+
},
|
|
17
|
+
'/AndroidRest/rs': {
|
|
18
|
+
target: 'http://192.168.20.27:8555'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
23
|
+
publicPath: config.output.publicPath,
|
|
24
|
+
stats: {
|
|
25
|
+
colors: true,
|
|
26
|
+
chunks: false
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
31
|
+
// force page reload when html-webpack-plugin template changes
|
|
32
|
+
compiler.plugin('compilation', function (compilation) {
|
|
33
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
34
|
+
hotMiddleware.publish({action: 'reload'})
|
|
35
|
+
cb()
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
// proxy api requests
|
|
40
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
41
|
+
var options = proxyTable[context]
|
|
42
|
+
if (typeof options === 'string') {
|
|
43
|
+
options = {target: options}
|
|
44
|
+
}
|
|
45
|
+
app.use(proxyMiddleware(context, options))
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
// handle fallback for HTML5 history API
|
|
49
|
+
app.use(require('connect-history-api-fallback')())
|
|
50
|
+
// app.use(function (req, res, next) {
|
|
51
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
52
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
53
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
54
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
55
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
56
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
57
|
+
// next()
|
|
58
|
+
// })
|
|
59
|
+
|
|
60
|
+
// serve webpack bundle output
|
|
61
|
+
app.use(devMiddleware)
|
|
62
|
+
|
|
63
|
+
// enable hot-reload and state-preserving
|
|
64
|
+
// compilation error display
|
|
65
|
+
app.use(hotMiddleware)
|
|
66
|
+
|
|
67
|
+
// serve pure static assets
|
|
68
|
+
app.use('/static', express.static('./static'))
|
|
69
|
+
|
|
70
|
+
module.exports = app.listen(8089, function (err) {
|
|
71
|
+
if (err) {
|
|
72
|
+
console.log(err)
|
|
73
|
+
return
|
|
74
|
+
}
|
|
75
|
+
console.log('Listening at http://localhost:8089')
|
|
76
|
+
})
|
package/build/dev-server.js
CHANGED
|
@@ -8,13 +8,31 @@ var compiler = webpack(config)
|
|
|
8
8
|
// var proxy = httpProxy.createProxyServer()
|
|
9
9
|
// var ldap = 'http://121.36.79.201:8400'
|
|
10
10
|
// var applyinstall = 'http://121.36.79.201:8400'
|
|
11
|
-
var ldap = 'http://192.168.20.28:
|
|
12
|
-
var applyinstall = 'http://192.168.20.28:
|
|
13
|
-
|
|
11
|
+
var ldap = 'http://192.168.20.28:8556'
|
|
12
|
+
//var applyinstall = 'http://192.168.20.28:8556'
|
|
13
|
+
var applyinstall = 'http://192.168.20.28:8556'
|
|
14
14
|
var proxyTable = {
|
|
15
15
|
'/wx': {
|
|
16
16
|
target: ldap
|
|
17
17
|
},
|
|
18
|
+
// '/ncc': {
|
|
19
|
+
// target: 'http://192.168.20.28:7890'
|
|
20
|
+
// },
|
|
21
|
+
'/rs/logic/bjqadduser': {
|
|
22
|
+
target: 'http://127.0.0.1:8081'
|
|
23
|
+
},
|
|
24
|
+
'/rs/logic/bjqcheck': {
|
|
25
|
+
target: 'http://127.0.0.1:8081'
|
|
26
|
+
},
|
|
27
|
+
'/rs/logic/gdMapTransBMap': {
|
|
28
|
+
target: 'http://127.0.0.1:8081'
|
|
29
|
+
},
|
|
30
|
+
'/rs/logic/saveArea': {
|
|
31
|
+
target: 'http://127.0.0.1:8080'
|
|
32
|
+
},
|
|
33
|
+
'/rs/logic/applyBjqMap': {
|
|
34
|
+
target: 'http://127.0.0.1:8080'
|
|
35
|
+
},
|
|
18
36
|
'/rs/sql/filemanage_getUserfies/n': {
|
|
19
37
|
target: ldap
|
|
20
38
|
},
|
|
@@ -119,10 +137,10 @@ app.use(hotMiddleware)
|
|
|
119
137
|
// serve pure static assets
|
|
120
138
|
app.use('/static', express.static('./static'))
|
|
121
139
|
|
|
122
|
-
module.exports = app.listen(
|
|
140
|
+
module.exports = app.listen(8300, function (err) {
|
|
123
141
|
if (err) {
|
|
124
142
|
console.log(err)
|
|
125
143
|
return
|
|
126
144
|
}
|
|
127
|
-
console.log('Listening at http://localhost:
|
|
145
|
+
console.log('Listening at http://localhost:8300')
|
|
128
146
|
})
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<app-base class="bg">
|
|
4
|
-
<div class='flex'>
|
|
5
|
-
<article>
|
|
6
|
-
<route :comp="{name: 'login'}"></route
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<app-base class="bg">
|
|
4
|
+
<div class='flex'>
|
|
5
|
+
<article>
|
|
6
|
+
<!-- <route :comp="{name: 'login'}"></route>-->
|
|
7
|
+
<route :comp="{name: 'login-app'}"></route>
|
|
8
|
+
</article>
|
|
9
|
+
</div>
|
|
10
|
+
</app-base>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
</script>
|
package/src/apply.js
CHANGED
|
@@ -94,4 +94,6 @@ export default function () {
|
|
|
94
94
|
Vue.component('res-area-select', (resolve) => { require(['./components/product/AreaSelect/ResAreaSelect'], resolve) })
|
|
95
95
|
Vue.component('res-area-select-group', (resolve) => { require(['./components/product/AreaSelect/ResAreaSelectGroup'], resolve) })
|
|
96
96
|
Vue.component('area-select', (resolve) => { require(['./components/product/AreaSelect/MyAreaSelect'], resolve) })
|
|
97
|
+
// 地图组件
|
|
98
|
+
Vue.component('gaode-map', (resolve) => { require(['./components/product/GaoDeMapComponents/GaoDeMap'], resolve) })
|
|
97
99
|
}
|
package/src/applyAndroid.js
CHANGED
|
@@ -37,4 +37,6 @@ export default function () {
|
|
|
37
37
|
Vue.component('app-res-area-select-group', (resolve) => { require(['./components/android/AreaSelect/AppResAreaSelectGroup'], resolve) })
|
|
38
38
|
Vue.component('area-select', (resolve) => { require(['./components/product/AreaSelect/MyAreaSelect'], resolve) })
|
|
39
39
|
Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Processes/Print/printCharge'], resolve) })
|
|
40
|
+
//地图组件
|
|
41
|
+
Vue.component('app-res-area-map-group', (resolve) => { require(['./components/android/AreaSelect/AppResAreaMapGroup'], resolve) })
|
|
40
42
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="form-horizontal select-overspread">
|
|
3
3
|
<validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
|
|
4
|
-
|
|
4
|
+
<!--<form>-->
|
|
5
5
|
<div v-for="(index,item) in data.fields">
|
|
6
6
|
<!--input-->
|
|
7
7
|
<div :style="item.style ? item.style : ''"
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
</button>
|
|
321
321
|
</footer>
|
|
322
322
|
</modal>
|
|
323
|
-
|
|
323
|
+
<!--</form>-->
|
|
324
324
|
</div>
|
|
325
325
|
</template>
|
|
326
326
|
<script>
|
|
@@ -446,6 +446,10 @@ export default {
|
|
|
446
446
|
console.log("区域为空禁止提交:",this.areaData)
|
|
447
447
|
flag = true
|
|
448
448
|
}
|
|
449
|
+
if (this.data.onetomany[0].rows[0].f_bjq_baidu_lng ==null){
|
|
450
|
+
console.log("坐标为空禁止提交:",this.data.onetomany[0].rows[0].f_bjq_baidu_lng)
|
|
451
|
+
flag = true
|
|
452
|
+
}
|
|
449
453
|
}
|
|
450
454
|
}
|
|
451
455
|
|
|
@@ -1,158 +1,143 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="panel">
|
|
3
|
-
<div class="panel-body panel-self" style="background-color: #F8F8F8;">
|
|
4
|
-
<div class="row form-group" style="height: 240px;overflow: scroll;">
|
|
5
|
-
<img :src="f_sign_path" width="100%" height="100%" />
|
|
6
|
-
</div>
|
|
7
|
-
<div class="row text-right form-group">
|
|
8
|
-
<button class="btn" style="background-color: #f1e404;border-radius: 5px;margin-right: 10px" @click="clean">清除</button>
|
|
9
|
-
<button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
<script>
|
|
15
|
-
import {getNowDate, guid, isEmpty} from '../Util'
|
|
16
|
-
import {PagedList} from 'vue-client'
|
|
17
|
-
import {HttpResetClass} from 'vue-client'
|
|
18
|
-
import QRCode from 'qrcodejs2'
|
|
19
|
-
import Vue from "vue";
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
title: '签字',
|
|
23
|
-
props: ['filePath'
|
|
24
|
-
data () {
|
|
25
|
-
return {
|
|
26
|
-
f_sign_path: null,
|
|
27
|
-
fileName: null
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
ready () {
|
|
31
|
-
this.f_sign_path = this.filePath
|
|
32
|
-
},
|
|
33
|
-
methods: {
|
|
34
|
-
clean () {
|
|
35
|
-
this.f_sign_path = null
|
|
36
|
-
this.fileName = null
|
|
37
|
-
this.$emit('sign-clean')
|
|
38
|
-
},
|
|
39
|
-
sign () {
|
|
40
|
-
|
|
41
|
-
this.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
console.log(
|
|
56
|
-
|
|
57
|
-
HostApp.__this__
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
HostApp.__this__
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
console.log('
|
|
79
|
-
console.log(JSON.stringify(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
this
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
.
|
|
138
|
-
display:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
background-color: #F8F8F8;
|
|
145
|
-
}
|
|
146
|
-
.vertical-center {
|
|
147
|
-
display: flex;
|
|
148
|
-
align-items: center;
|
|
149
|
-
text-align: center;
|
|
150
|
-
}
|
|
151
|
-
/*清除model中的浮动*/
|
|
152
|
-
.clearfix:after,.clearfix:before{
|
|
153
|
-
display: table;
|
|
154
|
-
}
|
|
155
|
-
.clearfix:after{
|
|
156
|
-
clear: both;
|
|
157
|
-
}
|
|
158
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="panel">
|
|
3
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;">
|
|
4
|
+
<div class="row form-group" style="height: 240px;overflow: scroll;">
|
|
5
|
+
<img :src="f_sign_path" width="100%" height="100%" />
|
|
6
|
+
</div>
|
|
7
|
+
<div class="row text-right form-group">
|
|
8
|
+
<button class="btn" style="background-color: #f1e404;border-radius: 5px;margin-right: 10px" @click="clean">清除</button>
|
|
9
|
+
<button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<script>
|
|
15
|
+
import {getNowDate, guid, isEmpty} from '../Util'
|
|
16
|
+
import {PagedList} from 'vue-client'
|
|
17
|
+
import {HttpResetClass} from 'vue-client'
|
|
18
|
+
import QRCode from 'qrcodejs2'
|
|
19
|
+
import Vue from "vue";
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
title: '签字',
|
|
23
|
+
props: ['filePath'],
|
|
24
|
+
data () {
|
|
25
|
+
return {
|
|
26
|
+
f_sign_path: null,
|
|
27
|
+
fileName: null
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
ready () {
|
|
31
|
+
this.f_sign_path = this.filePath
|
|
32
|
+
},
|
|
33
|
+
methods: {
|
|
34
|
+
clean () {
|
|
35
|
+
this.f_sign_path = null
|
|
36
|
+
this.fileName = null
|
|
37
|
+
this.$emit('sign-clean')
|
|
38
|
+
},
|
|
39
|
+
sign () {
|
|
40
|
+
this.delAudioFile(this.f_sign_path)
|
|
41
|
+
this.fileName = guid() + '.jpg'
|
|
42
|
+
HostApp.__callback__ = this.signCallback
|
|
43
|
+
HostApp.__this__ = this
|
|
44
|
+
HostApp.getSignature({
|
|
45
|
+
file: this.fileName,
|
|
46
|
+
requestCode: 111,
|
|
47
|
+
callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
|
|
48
|
+
})
|
|
49
|
+
},
|
|
50
|
+
// 签名回调
|
|
51
|
+
signCallback (prop, signPath) {
|
|
52
|
+
console.log('==============签字回调============')
|
|
53
|
+
console.log(signPath)
|
|
54
|
+
HostApp.__this__.$set(prop, signPath)
|
|
55
|
+
console.log(HostApp.__this__.f_sign_path)
|
|
56
|
+
|
|
57
|
+
HostApp.__this__.uploadFile()
|
|
58
|
+
|
|
59
|
+
HostApp.__callback__ = null
|
|
60
|
+
HostApp.__this__ = null
|
|
61
|
+
},
|
|
62
|
+
uploadFile () {
|
|
63
|
+
console.log('===================签字文件上传==============')
|
|
64
|
+
let data = {
|
|
65
|
+
blodid: HostApp.__this__.blobid,
|
|
66
|
+
username: Vue.user.name,
|
|
67
|
+
fremarks: '报装手机签字文件',
|
|
68
|
+
fileName: HostApp.__this__.fileName,
|
|
69
|
+
fileUrl: HostApp.__this__.f_sign_path
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
console.log('-----------bzLogic-----------------')
|
|
73
|
+
console.log(JSON.stringify(data))
|
|
74
|
+
let res = HostApp.bzLogic({
|
|
75
|
+
'logic': 'appFileUpload',
|
|
76
|
+
'data': data
|
|
77
|
+
})
|
|
78
|
+
console.log('===============上传回调=================')
|
|
79
|
+
console.log(JSON.stringify(res))
|
|
80
|
+
HostApp.__this__.getFiles(res.id)
|
|
81
|
+
},
|
|
82
|
+
async getFiles (fileid) {
|
|
83
|
+
let http = new HttpResetClass()
|
|
84
|
+
|
|
85
|
+
let data = {
|
|
86
|
+
tablename: 't_files',
|
|
87
|
+
condition: `id = '${fileid}'`
|
|
88
|
+
}
|
|
89
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
90
|
+
// let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
|
|
91
|
+
warnMsg: null,
|
|
92
|
+
resolveMsg: null
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
console.log('=========查询回调===============')
|
|
96
|
+
let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
97
|
+
console.log(fileUrl)
|
|
98
|
+
// HostApp.__this__.$set('f_sign_path', fileUrl)
|
|
99
|
+
// HostApp.__this__.f_sign_path = fileUrl
|
|
100
|
+
this.f_sign_path = fileUrl
|
|
101
|
+
|
|
102
|
+
this.$emit('sign-success', fileUrl)
|
|
103
|
+
},
|
|
104
|
+
delAudioFile (signPath) {
|
|
105
|
+
if (!signPath) {
|
|
106
|
+
return
|
|
107
|
+
}
|
|
108
|
+
HostApp.delfile(signPath)
|
|
109
|
+
this.f_sign_path = null
|
|
110
|
+
this.fileName = null
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
events: {
|
|
114
|
+
},
|
|
115
|
+
computed: {
|
|
116
|
+
},
|
|
117
|
+
watch: {
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
</script>
|
|
121
|
+
<style scoped lang="less">
|
|
122
|
+
.qrcode {
|
|
123
|
+
display: inline-block !important;
|
|
124
|
+
margin: 10px 0px;
|
|
125
|
+
}
|
|
126
|
+
.panel-self{
|
|
127
|
+
border-radius: 10px;
|
|
128
|
+
border:1px solid #499EDF;
|
|
129
|
+
background-color: #F8F8F8;
|
|
130
|
+
}
|
|
131
|
+
.vertical-center {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
text-align: center;
|
|
135
|
+
}
|
|
136
|
+
/*清除model中的浮动*/
|
|
137
|
+
.clearfix:after,.clearfix:before{
|
|
138
|
+
display: table;
|
|
139
|
+
}
|
|
140
|
+
.clearfix:after{
|
|
141
|
+
clear: both;
|
|
142
|
+
}
|
|
143
|
+
</style>
|