apply-clients 3.5.4-80 → 3.5.4-81

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/app/src/main/java/com/example/phonechatbot/MainActivity.java +50 -0
  2. package/build/dev-server.js +9 -5
  3. package/package.json +1 -1
  4. package/src/App.vue +5 -5
  5. package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
  6. package/src/components/product/Material/MaterialDetailed.vue +268 -268
  7. package/src/components/product/MaterialsManage/MaterialsBase.vue +181 -181
  8. package/src/components/product/MaterialsManage/MaterialsManage.vue +60 -60
  9. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  10. package/src/components/product/ServiceView.vue +1026 -1026
  11. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +824 -823
  12. package/src/filiale/fugou/android/AppChargeManagement.vue +739 -739
  13. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -519
  14. package/src/filiale/fugou/pc/ExplorationSelect.vue +525 -525
  15. package/src/filiale/fugou/pc/ServiceView.vue +941 -941
  16. package/src/filiale/fugou/pc/devicesManagement.vue +483 -483
  17. package/src/filiale/fugou/pc.js +13 -13
  18. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +493 -493
  19. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -214
  20. package/src/filiale/gongyi/android/AppInstallationDetails.vue +500 -500
  21. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -309
  22. package/src/filiale/gongyi/android/AppSign.vue +170 -170
  23. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -298
  24. package/src/filiale/gongyi/android.js +18 -18
  25. package/src/filiale/gongyi/pc/ApplyUpload.vue +371 -371
  26. package/src/filiale/gongyi/pc/PcAddLogs.vue +221 -221
  27. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -218
  28. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -309
  29. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +894 -894
  30. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -1005
  31. package/src/filiale/gongyi/pc/addMaterialScience.vue +575 -575
  32. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -765
  33. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -277
  34. package/src/filiale/gongyi/pc.js +24 -24
  35. package/src/filiale/hongda/pc/SupervisoryList.vue +422 -422
  36. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -686
  37. package/src/filiale/qianneng/android.js +15 -15
  38. package/src/filiale/qianneng/pc/Applydetail.vue +378 -378
  39. package/src/filiale/qianneng/pc/InstallFunction.vue +188 -188
  40. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +527 -527
  41. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +639 -639
  42. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1681 -1681
  43. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +548 -548
  44. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2075 -2075
  45. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +1059 -1059
  46. package/src/main.js +3 -3
  47. package/~/chatbot/main.py +57 -0
@@ -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>