apply-clients 3.3.46 → 3.3.47
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/package.json +2 -2
- package/src/apply.js +4 -1
- package/src/components/android/AppSign.vue +65 -20
- package/src/components/android/Process/AppExplorationUser.vue +340 -306
- package/src/components/android/Process/Processes/AppBuildSign.vue +9 -1
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +264 -0
- package/src/components/product/Print/BuildOrder/printBuildOrder.vue +153 -0
- package/src/components/product/Process/ExplorationSelect.vue +39 -14
- package/src/components/product/Process/ExplorationUser.vue +9 -0
- package/src/components/product/Supervisory/SupervisoryhCart.vue +130 -124
- package/src/components/product/Process/Processes/Print/printBuildOrder.vue +0 -193
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apply-clients",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.47",
|
|
4
4
|
"description": "报建前端模块",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"system-clients": "3.1.87",
|
|
96
96
|
"system-phone": "1.2.80-49",
|
|
97
97
|
"url-loader": "^0.5.7",
|
|
98
|
-
"vue-client": "1.24.
|
|
98
|
+
"vue-client": "1.24.33",
|
|
99
99
|
"vue-hot-reload-api": "^1.2.0",
|
|
100
100
|
"vue-html-loader": "^1.0.0",
|
|
101
101
|
"vue-loader": "^8.2.1",
|
package/src/apply.js
CHANGED
|
@@ -61,7 +61,7 @@ export default function () {
|
|
|
61
61
|
Vue.component('apply-charge-management', (resolve) => { require(['./components/product/Process/Processes/chargeManagement'], resolve) })
|
|
62
62
|
Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Processes/Print/printCharge'], resolve) })
|
|
63
63
|
Vue.component('apply-print-refund', (resolve) => { require(['./components/product/Process/Processes/Print/printRefund'], resolve) })
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
// 补充协议
|
|
66
66
|
Vue.component('supplemental-agreement', (resolve) => { require(['./components/product/Process/Processes/supplementalAgreement'], resolve) })
|
|
67
67
|
// 选择用户信息
|
|
@@ -87,4 +87,7 @@ export default function () {
|
|
|
87
87
|
|
|
88
88
|
Vue.component('apply-material-detailed', (resolve) => { require(['./components/product/Material/MaterialDetailed'], resolve) })
|
|
89
89
|
Vue.component('apply-install-project', (resolve) => { require(['./components/product/Install/InstallProject'], resolve) })
|
|
90
|
+
|
|
91
|
+
Vue.component('build-order-list', (resolve) => { require(['./components/product/Print/BuildOrder/buildOrderList'], resolve) })
|
|
92
|
+
Vue.component('print-build-order', (resolve) => { require(['./components/product/Print/BuildOrder/printBuildOrder'], resolve) })
|
|
90
93
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<img :src="f_sign_path" width="100%" height="100%" />
|
|
6
6
|
</div>
|
|
7
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>
|
|
8
9
|
<button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
|
|
9
10
|
</div>
|
|
10
11
|
</div>
|
|
@@ -19,49 +20,93 @@ import Vue from "vue";
|
|
|
19
20
|
|
|
20
21
|
export default {
|
|
21
22
|
title: '签字',
|
|
22
|
-
props:
|
|
23
|
-
f_file_path: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default: null
|
|
26
|
-
}
|
|
27
|
-
},
|
|
23
|
+
props: ['filePath'],
|
|
28
24
|
data () {
|
|
29
25
|
return {
|
|
30
|
-
f_sign_path: null
|
|
26
|
+
f_sign_path: null,
|
|
27
|
+
fileName: null
|
|
31
28
|
}
|
|
32
29
|
},
|
|
33
30
|
ready () {
|
|
34
|
-
|
|
35
|
-
this.f_sign_path = this.f_file_path
|
|
31
|
+
this.f_sign_path = this.filePath
|
|
36
32
|
},
|
|
37
33
|
methods: {
|
|
34
|
+
clean () {
|
|
35
|
+
this.f_sign_path = null
|
|
36
|
+
this.fileName = null
|
|
37
|
+
this.$emit('sign-clean')
|
|
38
|
+
},
|
|
38
39
|
sign () {
|
|
39
40
|
this.delAudioFile(this.f_sign_path)
|
|
40
|
-
|
|
41
|
-
console.log('===================生成文件名=======================')
|
|
42
|
-
console.log(fileName)
|
|
41
|
+
this.fileName = guid() + '.jpg'
|
|
43
42
|
HostApp.__callback__ = this.signCallback
|
|
44
43
|
HostApp.__this__ = this
|
|
45
44
|
HostApp.getSignature({
|
|
46
|
-
file: fileName,
|
|
45
|
+
file: this.fileName,
|
|
47
46
|
requestCode: 111,
|
|
48
47
|
callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
|
|
49
48
|
})
|
|
50
49
|
},
|
|
51
50
|
// 签名回调
|
|
52
|
-
signCallback (prop,
|
|
53
|
-
console.log('
|
|
54
|
-
console.log(
|
|
55
|
-
HostApp.__this__.$set(prop,
|
|
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
|
+
|
|
56
59
|
HostApp.__callback__ = null
|
|
57
60
|
HostApp.__this__ = null
|
|
58
61
|
},
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
uploadFile () {
|
|
63
|
+
console.log('===================签字文件上传==============')
|
|
64
|
+
let data = {
|
|
65
|
+
username: Vue.user.name,
|
|
66
|
+
fremarks: '报装手机签字文件',
|
|
67
|
+
fileName: HostApp.__this__.fileName,
|
|
68
|
+
fileUrl: HostApp.__this__.f_sign_path
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
console.log('-----------bzLogic-----------------')
|
|
72
|
+
console.log(JSON.stringify(data))
|
|
73
|
+
let res = HostApp.bzLogic({
|
|
74
|
+
'logic': 'appFileUpload',
|
|
75
|
+
'data': data
|
|
76
|
+
})
|
|
77
|
+
console.log('===============上传回调=================')
|
|
78
|
+
console.log(JSON.stringify(res))
|
|
79
|
+
HostApp.__this__.getFiles(res.id)
|
|
80
|
+
},
|
|
81
|
+
async getFiles (fileid) {
|
|
82
|
+
let http = new HttpResetClass()
|
|
83
|
+
|
|
84
|
+
let data = {
|
|
85
|
+
tablename: 't_files',
|
|
86
|
+
condition: `id = '${fileid}'`
|
|
87
|
+
}
|
|
88
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
89
|
+
// let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
|
|
90
|
+
warnMsg: null,
|
|
91
|
+
resolveMsg: null
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
console.log('=========查询回调===============')
|
|
95
|
+
let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
96
|
+
console.log(fileUrl)
|
|
97
|
+
// HostApp.__this__.$set('f_sign_path', fileUrl)
|
|
98
|
+
// HostApp.__this__.f_sign_path = fileUrl
|
|
99
|
+
this.f_sign_path = fileUrl
|
|
100
|
+
|
|
101
|
+
this.$emit('sign-success', fileUrl)
|
|
102
|
+
},
|
|
103
|
+
delAudioFile (signPath) {
|
|
104
|
+
if (!signPath) {
|
|
61
105
|
return
|
|
62
106
|
}
|
|
63
|
-
HostApp.delfile(
|
|
107
|
+
HostApp.delfile(signPath)
|
|
64
108
|
this.f_sign_path = null
|
|
109
|
+
this.fileName = null
|
|
65
110
|
}
|
|
66
111
|
},
|
|
67
112
|
events: {
|