apply-clients 3.3.110 → 3.3.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 +128 -127
- package/package.json +1 -1
- package/src/components/android/AppSign.vue +154 -143
- package/src/components/android/Process/AppServiceControl.vue +3 -1
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +513 -513
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +152 -152
- 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/Service/ServiceControl.vue +3 -1
- package/.gradle/4.9/fileChanges/last-build.bin +0 -0
- package/.gradle/4.9/fileHashes/fileHashes.lock +0 -0
- package/yarn.lock +0 -9013
package/build/dev-server.js
CHANGED
|
@@ -1,127 +1,128 @@
|
|
|
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.20.
|
|
12
|
-
var applyinstall = 'http://192.168.20.
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
//
|
|
103
|
-
// res.header('Access-Control-Allow-
|
|
104
|
-
// res.header('Access-Control-Allow-
|
|
105
|
-
// res.header('
|
|
106
|
-
// res.header('
|
|
107
|
-
// res.header('
|
|
108
|
-
//
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
//
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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.20.28:8400'
|
|
12
|
+
var applyinstall = 'http://192.168.20.28:8400'
|
|
13
|
+
// var applyinstall = 'http://127.0.0.1:8081'
|
|
14
|
+
var proxyTable = {
|
|
15
|
+
'/wx': {
|
|
16
|
+
target: ldap
|
|
17
|
+
},
|
|
18
|
+
'/rs/sql/filemanage_getUserfies/n': {
|
|
19
|
+
target: ldap
|
|
20
|
+
},
|
|
21
|
+
'/rs/sql/filemanage_getUserfies': {
|
|
22
|
+
target: ldap
|
|
23
|
+
},
|
|
24
|
+
'/rs/logic/saveInsInfo': {
|
|
25
|
+
target: ldap
|
|
26
|
+
},
|
|
27
|
+
'/rs/logic/exportfile': {
|
|
28
|
+
target: ldap
|
|
29
|
+
},
|
|
30
|
+
'/rs/logic/getBatchOperaPro': {
|
|
31
|
+
target: ldap
|
|
32
|
+
},
|
|
33
|
+
'/rs/logic/updateApplyOrder': {
|
|
34
|
+
target: ldap
|
|
35
|
+
},
|
|
36
|
+
'/rs/logic/getSaleInitData': {
|
|
37
|
+
target: ldap
|
|
38
|
+
},
|
|
39
|
+
'/rs/workflow': {
|
|
40
|
+
target: applyinstall
|
|
41
|
+
},
|
|
42
|
+
'/rs/vue': {
|
|
43
|
+
target: ldap
|
|
44
|
+
},
|
|
45
|
+
// 查找资源服务数据
|
|
46
|
+
'/rs/search': {
|
|
47
|
+
target: ldap
|
|
48
|
+
},
|
|
49
|
+
// 用户登录服务地址
|
|
50
|
+
'/rs/user': {
|
|
51
|
+
target: ldap
|
|
52
|
+
},
|
|
53
|
+
'/rs/logic/getInitData': {
|
|
54
|
+
target: ldap
|
|
55
|
+
},
|
|
56
|
+
'/rs/logic/getLogin': {
|
|
57
|
+
target: ldap
|
|
58
|
+
},
|
|
59
|
+
'/rs/file': { // 文件上传
|
|
60
|
+
target: applyinstall
|
|
61
|
+
},
|
|
62
|
+
'/project': { // 文件回显
|
|
63
|
+
target: applyinstall
|
|
64
|
+
},
|
|
65
|
+
'/rs': {
|
|
66
|
+
target: applyinstall
|
|
67
|
+
},
|
|
68
|
+
'/ws': {
|
|
69
|
+
target: applyinstall,
|
|
70
|
+
ws: true // 代理webSocket
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
75
|
+
publicPath: config.output.publicPath,
|
|
76
|
+
stats: {
|
|
77
|
+
colors: true,
|
|
78
|
+
chunks: false
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
83
|
+
// force page reload when html-webpack-plugin template changes
|
|
84
|
+
compiler.plugin('compilation', function (compilation) {
|
|
85
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
86
|
+
hotMiddleware.publish({action: 'reload'})
|
|
87
|
+
cb()
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
// proxy api requests
|
|
92
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
93
|
+
var options = proxyTable[context]
|
|
94
|
+
if (typeof options === 'string') {
|
|
95
|
+
options = {target: options}
|
|
96
|
+
}
|
|
97
|
+
app.use(proxyMiddleware(context, options))
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
// handle fallback for HTML5 history API
|
|
101
|
+
app.use(require('connect-history-api-fallback')())
|
|
102
|
+
// app.use(function (req, res, next) {
|
|
103
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
104
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
105
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
106
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
107
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
108
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
109
|
+
// next()
|
|
110
|
+
// })
|
|
111
|
+
|
|
112
|
+
// serve webpack bundle output
|
|
113
|
+
app.use(devMiddleware)
|
|
114
|
+
|
|
115
|
+
// enable hot-reload and state-preserving
|
|
116
|
+
// compilation error display
|
|
117
|
+
app.use(hotMiddleware)
|
|
118
|
+
|
|
119
|
+
// serve pure static assets
|
|
120
|
+
app.use('/static', express.static('./static'))
|
|
121
|
+
|
|
122
|
+
module.exports = app.listen(8600, function (err) {
|
|
123
|
+
if (err) {
|
|
124
|
+
console.log(err)
|
|
125
|
+
return
|
|
126
|
+
}
|
|
127
|
+
console.log('Listening at http://localhost:8600')
|
|
128
|
+
})
|
package/package.json
CHANGED
|
@@ -1,143 +1,154 @@
|
|
|
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.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
HostApp.__this__
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
let
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
console.log('
|
|
96
|
-
let
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
this.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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','blobid','type', 'defname'],
|
|
24
|
+
data () {
|
|
25
|
+
return {
|
|
26
|
+
f_sign_path: null,
|
|
27
|
+
fileName: null
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
ready () {
|
|
31
|
+
console.log('在ready里打印一下this.filePath',this.filePath)
|
|
32
|
+
this.f_sign_path = this.filePath
|
|
33
|
+
console.log('在ready里打印一下this.f_sign_path',this.f_sign_path)
|
|
34
|
+
this.getFiles()
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
clean () {
|
|
38
|
+
this.f_sign_path = null
|
|
39
|
+
this.fileName = null
|
|
40
|
+
this.$emit('sign-clean')
|
|
41
|
+
},
|
|
42
|
+
sign () {
|
|
43
|
+
debugger
|
|
44
|
+
this.type='手机签字'
|
|
45
|
+
console.log('==============签字打印this============',this)
|
|
46
|
+
this.delAudioFile(this.f_sign_path)
|
|
47
|
+
this.fileName = guid() + '.jpg'
|
|
48
|
+
HostApp.__callback__ = this.signCallback
|
|
49
|
+
HostApp.__this__ = this
|
|
50
|
+
HostApp.getSignature({
|
|
51
|
+
file: this.fileName,
|
|
52
|
+
requestCode: 111,
|
|
53
|
+
callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
|
|
54
|
+
})
|
|
55
|
+
},
|
|
56
|
+
// 签名回调
|
|
57
|
+
signCallback (prop, signPath) {
|
|
58
|
+
console.log('==============签字回调============')
|
|
59
|
+
console.log(signPath)
|
|
60
|
+
HostApp.__this__.$set(prop, signPath)
|
|
61
|
+
console.log(HostApp.__this__.f_sign_path)
|
|
62
|
+
|
|
63
|
+
HostApp.__this__.uploadFile()
|
|
64
|
+
|
|
65
|
+
HostApp.__callback__ = null
|
|
66
|
+
HostApp.__this__ = null
|
|
67
|
+
},
|
|
68
|
+
uploadFile () {
|
|
69
|
+
console.log('===================签字文件上传==============')
|
|
70
|
+
console.log('===================打印id==============',HostApp.__this__.blobid)
|
|
71
|
+
let data = {
|
|
72
|
+
defname:HostApp.__this__.defname,
|
|
73
|
+
type:HostApp.__this__.type,
|
|
74
|
+
blodid: HostApp.__this__.blobid,
|
|
75
|
+
username: Vue.user.name,
|
|
76
|
+
fremarks: '报装手机签字文件',
|
|
77
|
+
fileName: HostApp.__this__.fileName,
|
|
78
|
+
fileUrl: HostApp.__this__.f_sign_path
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
console.log('-----------bzLogic-----------------')
|
|
82
|
+
console.log(JSON.stringify(data))
|
|
83
|
+
let res = HostApp.bzLogic({
|
|
84
|
+
'logic': 'appFileUpload',
|
|
85
|
+
'data': data
|
|
86
|
+
})
|
|
87
|
+
console.log('===============上传回调=================')
|
|
88
|
+
console.log(JSON.stringify(res))
|
|
89
|
+
HostApp.__this__.getFiles(res.id)
|
|
90
|
+
},
|
|
91
|
+
async getFiles (fileid) {
|
|
92
|
+
debugger
|
|
93
|
+
console.log('=========进来===============')
|
|
94
|
+
let http = new HttpResetClass()
|
|
95
|
+
console.log('=========进来===============')
|
|
96
|
+
let data = {
|
|
97
|
+
tablename: 't_files',
|
|
98
|
+
condition: `f_blobid = '${this.blobid}' `
|
|
99
|
+
}
|
|
100
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
101
|
+
// let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
|
|
102
|
+
warnMsg: null,
|
|
103
|
+
resolveMsg: null
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
console.log('=========查询回调===============')
|
|
107
|
+
let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
108
|
+
console.log(fileUrl)
|
|
109
|
+
// HostApp.__this__.$set('f_sign_path', fileUrl)
|
|
110
|
+
// HostApp.__this__.f_sign_path = fileUrl
|
|
111
|
+
this.f_sign_path = fileUrl
|
|
112
|
+
|
|
113
|
+
this.$emit('sign-success', fileUrl)
|
|
114
|
+
},
|
|
115
|
+
delAudioFile (signPath) {
|
|
116
|
+
if (!signPath) {
|
|
117
|
+
return
|
|
118
|
+
}
|
|
119
|
+
HostApp.delfile(signPath)
|
|
120
|
+
this.f_sign_path = null
|
|
121
|
+
this.fileName = null
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
events: {
|
|
125
|
+
},
|
|
126
|
+
computed: {
|
|
127
|
+
},
|
|
128
|
+
watch: {
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
</script>
|
|
132
|
+
<style scoped lang="less">
|
|
133
|
+
.qrcode {
|
|
134
|
+
display: inline-block !important;
|
|
135
|
+
margin: 10px 0px;
|
|
136
|
+
}
|
|
137
|
+
.panel-self{
|
|
138
|
+
border-radius: 10px;
|
|
139
|
+
border:1px solid #499EDF;
|
|
140
|
+
background-color: #F8F8F8;
|
|
141
|
+
}
|
|
142
|
+
.vertical-center {
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
text-align: center;
|
|
146
|
+
}
|
|
147
|
+
/*清除model中的浮动*/
|
|
148
|
+
.clearfix:after,.clearfix:before{
|
|
149
|
+
display: table;
|
|
150
|
+
}
|
|
151
|
+
.clearfix:after{
|
|
152
|
+
clear: both;
|
|
153
|
+
}
|
|
154
|
+
</style>
|
|
@@ -976,7 +976,8 @@ export default {
|
|
|
976
976
|
"sid":"",
|
|
977
977
|
"bjqtype":"",
|
|
978
978
|
"f_process_id":"",
|
|
979
|
-
"bjqstate":""
|
|
979
|
+
"bjqstate":"",
|
|
980
|
+
"f_userinfo_code":""
|
|
980
981
|
}
|
|
981
982
|
let numOne = [];
|
|
982
983
|
this.show_data.onetomany.forEach(item=>{
|
|
@@ -1012,6 +1013,7 @@ export default {
|
|
|
1012
1013
|
}
|
|
1013
1014
|
datatemp.sqvalue = this.show_data.areaData.sqvalue
|
|
1014
1015
|
|
|
1016
|
+
bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
|
|
1015
1017
|
//判断是否推送 及推送的状态
|
|
1016
1018
|
//查询是否存在, 以型号及厂家判断
|
|
1017
1019
|
let bjqres = await this.$resetpost(
|