apply-clients 3.3.46 → 3.3.50

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 (39) hide show
  1. package/build/dev-server.js +3 -2
  2. package/package.json +2 -2
  3. package/src/AndroidApp.vue +35 -35
  4. package/src/apply.js +93 -90
  5. package/src/applyAndroid.js +31 -31
  6. package/src/components/android/AppOnetomany.vue +301 -301
  7. package/src/components/android/AppServiceView.vue +566 -566
  8. package/src/components/android/AppSign.vue +142 -97
  9. package/src/components/android/Function/AppInstallFunction.vue +366 -366
  10. package/src/components/android/Process/AppExplorationUser.vue +35 -1
  11. package/src/components/android/Process/AppServiceControl.vue +4 -0
  12. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -38
  13. package/src/components/android/Supervisory/AppProcessSupervisory.vue +300 -300
  14. package/src/components/android/Supervisory/AppSupervisoryCart.vue +4 -0
  15. package/src/components/product/ApplyCharge/ApplyChargeList.vue +382 -367
  16. package/src/components/product/Function/InstallFunction.vue +132 -132
  17. package/src/components/product/Function/InstallInfoSelect.vue +320 -310
  18. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -445
  19. package/src/components/product/Material/MaterialDetailed.vue +235 -235
  20. package/src/components/product/OldApply/Monitor/MonitorApply.vue +329 -329
  21. package/src/components/product/OldApply/OldApply.vue +150 -150
  22. package/src/components/product/Onetomany.vue +377 -377
  23. package/src/components/product/Print/BuildOrder/buildOrderList.vue +264 -0
  24. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +153 -0
  25. package/src/components/product/Process/ExplorationSelect.vue +457 -432
  26. package/src/components/product/Process/ExplorationUser.vue +147 -138
  27. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -592
  28. package/src/components/product/Process/Processes/Print/printCharge.vue +142 -142
  29. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -196
  30. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -207
  31. package/src/components/product/Process/Processes/chargeManagement.vue +17 -0
  32. package/src/components/product/Process/Service/ServiceControl.vue +1265 -1254
  33. package/src/components/product/ServiceView.vue +631 -631
  34. package/src/components/product/Supervisory/SupervisoryControl.vue +137 -137
  35. package/src/components/product/Supervisory/SupervisoryList.vue +296 -296
  36. package/src/components/product/Supervisory/SupervisoryhCart.vue +6 -0
  37. package/src/components/product/VueUtils/ApplyUpload.vue +273 -273
  38. package/src/components/product/VueUtils/HighMeter.vue +208 -208
  39. package/src/components/product/Process/Processes/Print/printBuildOrder.vue +0 -193
@@ -1,97 +1,142 @@
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: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
9
- </div>
10
- </div>
11
- </div>
12
- </template>
13
- <script>
14
- import {getNowDate, guid, isEmpty} from '../Util'
15
- import {PagedList} from 'vue-client'
16
- import {HttpResetClass} from 'vue-client'
17
- import QRCode from 'qrcodejs2'
18
- import Vue from "vue";
19
-
20
- export default {
21
- title: '签字',
22
- props: {
23
- f_file_path: {
24
- type: Object,
25
- default: null
26
- }
27
- },
28
- data () {
29
- return {
30
- f_sign_path: null
31
- }
32
- },
33
- ready () {
34
- console.log('============进入签字==============')
35
- this.f_sign_path = this.f_file_path
36
- },
37
- methods: {
38
- sign () {
39
- this.delAudioFile(this.f_sign_path)
40
- let fileName = guid() + '.jpg'
41
- console.log('===================生成文件名=======================')
42
- console.log(fileName)
43
- HostApp.__callback__ = this.signCallback
44
- HostApp.__this__ = this
45
- HostApp.getSignature({
46
- file: fileName,
47
- requestCode: 111,
48
- callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
49
- })
50
- },
51
- // 签名回调
52
- signCallback (prop, filePath) {
53
- console.log('==============签字回调========================')
54
- console.log(filePath)
55
- HostApp.__this__.$set(prop, filePath)
56
- HostApp.__callback__ = null
57
- HostApp.__this__ = null
58
- },
59
- delAudioFile (filePath) {
60
- if (!filePath) {
61
- return
62
- }
63
- HostApp.delfile(filePath)
64
- this.f_sign_path = null
65
- }
66
- },
67
- events: {
68
- },
69
- computed: {
70
- },
71
- watch: {
72
- }
73
- }
74
- </script>
75
- <style scoped lang="less">
76
- .qrcode {
77
- display: inline-block !important;
78
- margin: 10px 0px;
79
- }
80
- .panel-self{
81
- border-radius: 10px;
82
- border:1px solid #499EDF;
83
- background-color: #F8F8F8;
84
- }
85
- .vertical-center {
86
- display: flex;
87
- align-items: center;
88
- text-align: center;
89
- }
90
- /*清除model中的浮动*/
91
- .clearfix:after,.clearfix:before{
92
- display: table;
93
- }
94
- .clearfix:after{
95
- clear: both;
96
- }
97
- </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
+ 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) {
105
+ return
106
+ }
107
+ HostApp.delfile(signPath)
108
+ this.f_sign_path = null
109
+ this.fileName = null
110
+ }
111
+ },
112
+ events: {
113
+ },
114
+ computed: {
115
+ },
116
+ watch: {
117
+ }
118
+ }
119
+ </script>
120
+ <style scoped lang="less">
121
+ .qrcode {
122
+ display: inline-block !important;
123
+ margin: 10px 0px;
124
+ }
125
+ .panel-self{
126
+ border-radius: 10px;
127
+ border:1px solid #499EDF;
128
+ background-color: #F8F8F8;
129
+ }
130
+ .vertical-center {
131
+ display: flex;
132
+ align-items: center;
133
+ text-align: center;
134
+ }
135
+ /*清除model中的浮动*/
136
+ .clearfix:after,.clearfix:before{
137
+ display: table;
138
+ }
139
+ .clearfix:after{
140
+ clear: both;
141
+ }
142
+ </style>