apply-clients 3.5.4-81 → 3.5.4-83

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 (47) hide show
  1. package/build/dev-server.js +6 -6
  2. package/package.json +1 -1
  3. package/src/App.vue +25 -25
  4. package/src/applyAndroid.js +72 -72
  5. package/src/components/android/Process/Processes/AppChargeManagement.vue +635 -637
  6. package/src/components/android/Process/Processes/AppChargeManagementNew.vue +635 -637
  7. package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
  8. package/src/components/product/MaterialsManage/MaterialsBase.vue +181 -181
  9. package/src/components/product/MaterialsManage/MaterialsManage.vue +60 -60
  10. package/src/components/product/Process/ExplorationSelect.vue +497 -497
  11. package/src/components/product/Process/Processes/chargeManagement.vue +1 -1
  12. package/src/components/product/ServiceView.vue +1026 -1026
  13. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +824 -824
  14. package/src/filiale/baiyin/android/ByDeviceManagement.vue +916 -916
  15. package/src/filiale/fugou/android/AppChargeManagement.vue +8 -8
  16. package/src/filiale/fugou/android/AppServiceControl.vue +1 -1
  17. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -214
  18. package/src/filiale/gongyi/android/AppInstallationDetails.vue +500 -500
  19. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -309
  20. package/src/filiale/gongyi/android/AppSign.vue +170 -170
  21. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -298
  22. package/src/filiale/gongyi/android.js +18 -18
  23. package/src/filiale/gongyi/pc/ApplyUpload.vue +371 -371
  24. package/src/filiale/gongyi/pc/PcAddLogs.vue +221 -221
  25. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -218
  26. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -309
  27. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +894 -894
  28. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -1005
  29. package/src/filiale/gongyi/pc/addMaterialScience.vue +575 -575
  30. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -765
  31. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -277
  32. package/src/filiale/gongyi/pc.js +24 -24
  33. package/src/filiale/hongda/pc/SupervisoryList.vue +422 -422
  34. package/src/filiale/jinhuang/pc/ServiceControl.vue +1925 -1925
  35. package/src/filiale/jinhuang/pc/addressAndUserinfoManagement.vue +203 -0
  36. package/src/filiale/jinhuang/pc/chargeManagementNew.vue +589 -589
  37. package/src/filiale/jinhuang/pc.js +8 -7
  38. package/src/filiale/siyangRH/android/AppAddMaterialScience.vue +466 -466
  39. package/src/filiale/yongzhouch/pc/ApplyUpload.vue +327 -327
  40. package/src/filiale/yongzhouch/pc/ExplorationSelect.vue +490 -490
  41. package/src/filiale/yongzhouch/pc/InstallationDetails.vue +610 -610
  42. package/src/filiale/yongzhouch/pc/ServiceControl.vue +1943 -1943
  43. package/src/filiale/yongzhouch/pc/devicesManagement.vue +488 -488
  44. package/src/filiale/yongzhouch/pc.js +10 -10
  45. package/src/main.js +1 -1
  46. package/app/src/main/java/com/example/phonechatbot/MainActivity.java +0 -50
  47. package/~/chatbot/main.py +0 -57
@@ -1,170 +1,170 @@
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 {guid, toStandardTimeString} from "../../../components/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.filePath
35
- if (this.filePath !== null || this.filePath !== '') {
36
- // 定义照片格式的扩展名数组
37
- const imageExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff'];
38
- // 获取文件扩展名
39
- const fileExtension = this.filePath.toLowerCase().substring(this.filePath.lastIndexOf('.'));
40
- // 判断文件扩展名是否在照片格式数组中
41
- if (imageExtensions.includes(fileExtension)) {
42
- console.log('这是一个照片文件');
43
- } else {
44
- this.f_sign_path=null
45
- }
46
- }
47
- this.getFiles()
48
- },
49
- methods: {
50
- clean () {
51
- this.f_sign_path = null
52
- this.fileName = null
53
- this.$emit('sign-clean')
54
- },
55
- sign () {
56
- this.type='手机签字'
57
- console.log('==============签字打印this============',this)
58
- this.delAudioFile(this.f_sign_path)
59
- this.fileName = guid() + '.jpg'
60
- HostApp.__callback__ = this.signCallback
61
- HostApp.__this__ = this
62
- HostApp.getSignature({
63
- file: this.fileName,
64
- requestCode: 111,
65
- callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
66
- })
67
- },
68
- // 签名回调
69
- signCallback (prop, signPath) {
70
- console.log('==============签字回调============')
71
- console.log(signPath)
72
- HostApp.__this__.$set(prop, signPath)
73
- console.log(HostApp.__this__.f_sign_path)
74
-
75
- HostApp.__this__.uploadFile()
76
-
77
- HostApp.__callback__ = null
78
- HostApp.__this__ = null
79
- },
80
- uploadFile () {
81
- console.log('===================签字文件上传==============')
82
- console.log('===================打印id==============',HostApp.__this__.blobid)
83
- let data = {
84
- defname:HostApp.__this__.defname,
85
- type:HostApp.__this__.type,
86
- blodid: HostApp.__this__.blobid,
87
- username: Vue.user.name,
88
- fremarks: '报装手机签字文件',
89
- fileName: HostApp.__this__.fileName,
90
- fileUrl: HostApp.__this__.f_sign_path
91
- }
92
-
93
- console.log('-----------bzLogic-----------------')
94
- console.log(JSON.stringify(data))
95
- let res = HostApp.bzLogic({
96
- 'logic': 'appFileUpload',
97
- 'data': data
98
- })
99
- console.log('===============上传回调=================')
100
- console.log(JSON.stringify(res))
101
- HostApp.__this__.getFiles(res.id)
102
- },
103
- async getFiles (fileid) {
104
- console.log('=========进来===============')
105
- let http = new HttpResetClass()
106
- console.log('=========进来===============')
107
- let data = {
108
- tablename: 't_files',
109
- condition: `f_blobid = '${this.blobid}' and fremarks='报装手机签字文件' and defname = '${this.defname}' `
110
- }
111
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
112
- // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
113
- warnMsg: null,
114
- resolveMsg: null
115
- })
116
- if (res.data.length > 0){
117
- let fileUrl=''
118
- if(/^[A-Za-z]:/.test(res.data[0].f_downloadpath)){
119
- let path= res.data[0].f_downloadpath
120
- let newPath = path.substring(path.indexOf(":\\") + 5)
121
- debugger
122
- fileUrl= `${this.$androidUtil.getProxyUrl()}/${newPath}`
123
- }else {
124
- fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
125
- }
126
- console.log(fileUrl)
127
- this.f_sign_path = fileUrl
128
- this.$emit('sign-success', fileUrl)
129
- }
130
- },
131
- delAudioFile (signPath) {
132
- if (!signPath) {
133
- return
134
- }
135
- HostApp.delfile(signPath)
136
- this.f_sign_path = null
137
- this.fileName = null
138
- }
139
- },
140
- events: {
141
- },
142
- computed: {
143
- },
144
- watch: {
145
- }
146
- }
147
- </script>
148
- <style scoped lang="less">
149
- .qrcode {
150
- display: inline-block !important;
151
- margin: 10px 0px;
152
- }
153
- .panel-self{
154
- border-radius: 10px;
155
- border:1px solid #499EDF;
156
- background-color: #F8F8F8;
157
- }
158
- .vertical-center {
159
- display: flex;
160
- align-items: center;
161
- text-align: center;
162
- }
163
- /*清除model中的浮动*/
164
- .clearfix:after,.clearfix:before{
165
- display: table;
166
- }
167
- .clearfix:after{
168
- clear: both;
169
- }
170
- </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 {guid, toStandardTimeString} from "../../../components/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.filePath
35
+ if (this.filePath !== null || this.filePath !== '') {
36
+ // 定义照片格式的扩展名数组
37
+ const imageExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff'];
38
+ // 获取文件扩展名
39
+ const fileExtension = this.filePath.toLowerCase().substring(this.filePath.lastIndexOf('.'));
40
+ // 判断文件扩展名是否在照片格式数组中
41
+ if (imageExtensions.includes(fileExtension)) {
42
+ console.log('这是一个照片文件');
43
+ } else {
44
+ this.f_sign_path=null
45
+ }
46
+ }
47
+ this.getFiles()
48
+ },
49
+ methods: {
50
+ clean () {
51
+ this.f_sign_path = null
52
+ this.fileName = null
53
+ this.$emit('sign-clean')
54
+ },
55
+ sign () {
56
+ this.type='手机签字'
57
+ console.log('==============签字打印this============',this)
58
+ this.delAudioFile(this.f_sign_path)
59
+ this.fileName = guid() + '.jpg'
60
+ HostApp.__callback__ = this.signCallback
61
+ HostApp.__this__ = this
62
+ HostApp.getSignature({
63
+ file: this.fileName,
64
+ requestCode: 111,
65
+ callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
66
+ })
67
+ },
68
+ // 签名回调
69
+ signCallback (prop, signPath) {
70
+ console.log('==============签字回调============')
71
+ console.log(signPath)
72
+ HostApp.__this__.$set(prop, signPath)
73
+ console.log(HostApp.__this__.f_sign_path)
74
+
75
+ HostApp.__this__.uploadFile()
76
+
77
+ HostApp.__callback__ = null
78
+ HostApp.__this__ = null
79
+ },
80
+ uploadFile () {
81
+ console.log('===================签字文件上传==============')
82
+ console.log('===================打印id==============',HostApp.__this__.blobid)
83
+ let data = {
84
+ defname:HostApp.__this__.defname,
85
+ type:HostApp.__this__.type,
86
+ blodid: HostApp.__this__.blobid,
87
+ username: Vue.user.name,
88
+ fremarks: '报装手机签字文件',
89
+ fileName: HostApp.__this__.fileName,
90
+ fileUrl: HostApp.__this__.f_sign_path
91
+ }
92
+
93
+ console.log('-----------bzLogic-----------------')
94
+ console.log(JSON.stringify(data))
95
+ let res = HostApp.bzLogic({
96
+ 'logic': 'appFileUpload',
97
+ 'data': data
98
+ })
99
+ console.log('===============上传回调=================')
100
+ console.log(JSON.stringify(res))
101
+ HostApp.__this__.getFiles(res.id)
102
+ },
103
+ async getFiles (fileid) {
104
+ console.log('=========进来===============')
105
+ let http = new HttpResetClass()
106
+ console.log('=========进来===============')
107
+ let data = {
108
+ tablename: 't_files',
109
+ condition: `f_blobid = '${this.blobid}' and fremarks='报装手机签字文件' and defname = '${this.defname}' `
110
+ }
111
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
112
+ // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
113
+ warnMsg: null,
114
+ resolveMsg: null
115
+ })
116
+ if (res.data.length > 0){
117
+ let fileUrl=''
118
+ if(/^[A-Za-z]:/.test(res.data[0].f_downloadpath)){
119
+ let path= res.data[0].f_downloadpath
120
+ let newPath = path.substring(path.indexOf(":\\") + 5)
121
+ debugger
122
+ fileUrl= `${this.$androidUtil.getProxyUrl()}/${newPath}`
123
+ }else {
124
+ fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
125
+ }
126
+ console.log(fileUrl)
127
+ this.f_sign_path = fileUrl
128
+ this.$emit('sign-success', fileUrl)
129
+ }
130
+ },
131
+ delAudioFile (signPath) {
132
+ if (!signPath) {
133
+ return
134
+ }
135
+ HostApp.delfile(signPath)
136
+ this.f_sign_path = null
137
+ this.fileName = null
138
+ }
139
+ },
140
+ events: {
141
+ },
142
+ computed: {
143
+ },
144
+ watch: {
145
+ }
146
+ }
147
+ </script>
148
+ <style scoped lang="less">
149
+ .qrcode {
150
+ display: inline-block !important;
151
+ margin: 10px 0px;
152
+ }
153
+ .panel-self{
154
+ border-radius: 10px;
155
+ border:1px solid #499EDF;
156
+ background-color: #F8F8F8;
157
+ }
158
+ .vertical-center {
159
+ display: flex;
160
+ align-items: center;
161
+ text-align: center;
162
+ }
163
+ /*清除model中的浮动*/
164
+ .clearfix:after,.clearfix:before{
165
+ display: table;
166
+ }
167
+ .clearfix:after{
168
+ clear: both;
169
+ }
170
+ </style>