apply-clients 3.5.4-66 → 3.5.4-67

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 (44) hide show
  1. package/build/dev-server.js +19 -7
  2. package/package.json +1 -1
  3. package/src/App.vue +25 -25
  4. package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
  5. package/src/components/product/MaterialsManage/MaterialsBase.vue +181 -181
  6. package/src/components/product/MaterialsManage/MaterialsManage.vue +60 -60
  7. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  8. package/src/components/product/ServiceView.vue +1026 -1025
  9. package/src/components/product/Supervisory/SupervisoryControl.vue +141 -141
  10. package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
  11. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -214
  12. package/src/filiale/gongyi/android/AppInstallationDetails.vue +500 -500
  13. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -309
  14. package/src/filiale/gongyi/android/AppSign.vue +170 -157
  15. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -298
  16. package/src/filiale/gongyi/android.js +18 -18
  17. package/src/filiale/gongyi/pc/ApplyUpload.vue +371 -378
  18. package/src/filiale/gongyi/pc/PcAddLogs.vue +221 -217
  19. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -218
  20. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -314
  21. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +894 -894
  22. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -1005
  23. package/src/filiale/gongyi/pc/addMaterialScience.vue +575 -564
  24. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -763
  25. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -277
  26. package/src/filiale/gongyi/pc.js +24 -24
  27. package/src/filiale/hongda/pc/SupervisoryList.vue +422 -422
  28. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +518 -518
  29. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1081 -1081
  30. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1524 -1524
  31. package/src/filiale/yangchunboneng/android/AppUpload.vue +205 -205
  32. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +156 -156
  33. package/src/filiale/yangchunboneng/android.js +20 -20
  34. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
  35. package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -191
  36. package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +365 -365
  37. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -142
  38. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +590 -590
  39. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -628
  40. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -902
  41. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -901
  42. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -1117
  43. package/src/filiale/yangchunboneng/pc.js +24 -24
  44. package/src/main.js +1 -1
@@ -1,157 +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.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
- this.type='手机签字'
44
- console.log('==============签字打印this============',this)
45
- this.delAudioFile(this.f_sign_path)
46
- this.fileName = guid() + '.jpg'
47
- HostApp.__callback__ = this.signCallback
48
- HostApp.__this__ = this
49
- HostApp.getSignature({
50
- file: this.fileName,
51
- requestCode: 111,
52
- callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
53
- })
54
- },
55
- // 签名回调
56
- signCallback (prop, signPath) {
57
- console.log('==============签字回调============')
58
- console.log(signPath)
59
- HostApp.__this__.$set(prop, signPath)
60
- console.log(HostApp.__this__.f_sign_path)
61
-
62
- HostApp.__this__.uploadFile()
63
-
64
- HostApp.__callback__ = null
65
- HostApp.__this__ = null
66
- },
67
- uploadFile () {
68
- console.log('===================签字文件上传==============')
69
- console.log('===================打印id==============',HostApp.__this__.blobid)
70
- let data = {
71
- defname:HostApp.__this__.defname,
72
- type:HostApp.__this__.type,
73
- blodid: HostApp.__this__.blobid,
74
- username: Vue.user.name,
75
- fremarks: '报装手机签字文件',
76
- fileName: HostApp.__this__.fileName,
77
- fileUrl: HostApp.__this__.f_sign_path
78
- }
79
-
80
- console.log('-----------bzLogic-----------------')
81
- console.log(JSON.stringify(data))
82
- let res = HostApp.bzLogic({
83
- 'logic': 'appFileUpload',
84
- 'data': data
85
- })
86
- console.log('===============上传回调=================')
87
- console.log(JSON.stringify(res))
88
- HostApp.__this__.getFiles(res.id)
89
- },
90
- async getFiles (fileid) {
91
- console.log('=========进来===============')
92
- let http = new HttpResetClass()
93
- console.log('=========进来===============')
94
- let data = {
95
- tablename: 't_files',
96
- condition: `f_blobid = '${this.blobid}' and fremarks='报装手机签字文件' and defname = '${this.defname}' `
97
- }
98
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
99
- // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
100
- warnMsg: null,
101
- resolveMsg: null
102
- })
103
- if (res.data.length > 0){
104
- let fileUrl=''
105
- if(/^[A-Za-z]:/.test(res.data[0].f_downloadpath)){
106
- let path= res.data[0].f_downloadpath
107
- let newPath = path.substring(path.indexOf(":\\") + 5)
108
- debugger
109
- fileUrl= `${this.$androidUtil.getProxyUrl()}/${newPath}`
110
- }else {
111
- fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
112
- }
113
- console.log(fileUrl)
114
- this.f_sign_path = fileUrl
115
- this.$emit('sign-success', fileUrl)
116
- }
117
- },
118
- delAudioFile (signPath) {
119
- if (!signPath) {
120
- return
121
- }
122
- HostApp.delfile(signPath)
123
- this.f_sign_path = null
124
- this.fileName = null
125
- }
126
- },
127
- events: {
128
- },
129
- computed: {
130
- },
131
- watch: {
132
- }
133
- }
134
- </script>
135
- <style scoped lang="less">
136
- .qrcode {
137
- display: inline-block !important;
138
- margin: 10px 0px;
139
- }
140
- .panel-self{
141
- border-radius: 10px;
142
- border:1px solid #499EDF;
143
- background-color: #F8F8F8;
144
- }
145
- .vertical-center {
146
- display: flex;
147
- align-items: center;
148
- text-align: center;
149
- }
150
- /*清除model中的浮动*/
151
- .clearfix:after,.clearfix:before{
152
- display: table;
153
- }
154
- .clearfix:after{
155
- clear: both;
156
- }
157
- </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>