apply-clients 3.5.6-5 → 3.5.6-6

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 (45) hide show
  1. package/build/dev-server.js +5 -5
  2. package/package.json +1 -1
  3. package/src/components/android/Process/AppServiceControl.vue +1760 -1760
  4. package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
  5. package/src/components/product/Install/ContractCharge.vue +210 -210
  6. package/src/filiale/fugou/android/AppAddMaterialScience.vue +444 -444
  7. package/src/filiale/fugou/android/AppAddReplacement.vue +512 -512
  8. package/src/filiale/fugou/android/AppDevicesManagement.vue +516 -521
  9. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -542
  10. package/src/filiale/fugou/android/AppZhihuanManagement.vue +242 -242
  11. package/src/filiale/fugou/pc/AddReplacement.vue +511 -511
  12. package/src/filiale/fugou/pc/ApplyChargeList.vue +554 -554
  13. package/src/filiale/fugou/pc/Applybatchdispatch.vue +754 -754
  14. package/src/filiale/fugou/pc/InstallationDetails.vue +646 -646
  15. package/src/filiale/fugou/pc/ServiceControl.vue +1732 -1732
  16. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
  17. package/src/filiale/fugou/pc.js +19 -19
  18. package/src/filiale/gongyi/pc/addressAndUserinfoManagement.vue +187 -187
  19. package/src/filiale/gongyi/pc.js +25 -25
  20. package/src/filiale/hongda/pc/addMaterialScience.vue +723 -723
  21. package/src/filiale/jinhuang/android/AppAddMaterialScience.vue +635 -635
  22. package/src/filiale/jinhuang/android/AppServiceControl.vue +1842 -1842
  23. package/src/filiale/jinhuang/android.js +7 -7
  24. package/src/filiale/jinhuang/pc/ExplorationSelect.vue +511 -511
  25. package/src/filiale/jinhuang/pc/ServiceControl.vue +2016 -2016
  26. package/src/filiale/jinhuang/pc/SupervisoryList.vue +478 -478
  27. package/src/filiale/jinhuang/pc/addMaterialScience.vue +638 -638
  28. package/src/filiale/jinhuang/pc.js +12 -12
  29. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +786 -786
  30. package/src/filiale/qianneng/pc/ServiceControl.vue +1387 -1387
  31. package/src/filiale/ruihua/pc/ServiceControl.vue +1973 -1973
  32. package/src/filiale/shexian/android/AppServiceControl.vue +1786 -1786
  33. package/src/filiale/shexian/android/AppSign.vue +152 -152
  34. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +527 -527
  35. package/src/filiale/yangchunboneng/android/AppContractCharge.vue +222 -222
  36. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1144 -1144
  37. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1879 -1879
  38. package/src/filiale/yangchunboneng/android.js +21 -21
  39. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
  40. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +612 -612
  41. package/src/filiale/yangchunboneng/pc/SupervisoryControl.vue +141 -141
  42. package/src/filiale/yangchunboneng/pc/buildOrderList.vue +421 -421
  43. package/src/filiale/yangchunboneng/pc/printBuildOrder.vue +175 -175
  44. package/src/filiale/yangchunboneng/pc.js +29 -29
  45. package/src/main.js +3 -3
@@ -1,152 +1,152 @@
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 '../../../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 defname = '${this.defname}' and fremarks='报装手机签字文件' order by f_upload_date desc `
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
- console.log('=========查询回调===============')
105
- let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
106
- console.log(fileUrl)
107
- // HostApp.__this__.$set('f_sign_path', fileUrl)
108
- // HostApp.__this__.f_sign_path = fileUrl
109
- this.f_sign_path = fileUrl
110
- this.$emit('sign-success', fileUrl)
111
- }
112
- },
113
- delAudioFile (signPath) {
114
- if (!signPath) {
115
- return
116
- }
117
- HostApp.delfile(signPath)
118
- this.f_sign_path = null
119
- this.fileName = null
120
- }
121
- },
122
- events: {
123
- },
124
- computed: {
125
- },
126
- watch: {
127
- }
128
- }
129
- </script>
130
- <style scoped lang="less">
131
- .qrcode {
132
- display: inline-block !important;
133
- margin: 10px 0px;
134
- }
135
- .panel-self{
136
- border-radius: 10px;
137
- border:1px solid #499EDF;
138
- background-color: #F8F8F8;
139
- }
140
- .vertical-center {
141
- display: flex;
142
- align-items: center;
143
- text-align: center;
144
- }
145
- /*清除model中的浮动*/
146
- .clearfix:after,.clearfix:before{
147
- display: table;
148
- }
149
- .clearfix:after{
150
- clear: both;
151
- }
152
- </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 '../../../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 defname = '${this.defname}' and fremarks='报装手机签字文件' order by f_upload_date desc `
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
+ console.log('=========查询回调===============')
105
+ let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
106
+ console.log(fileUrl)
107
+ // HostApp.__this__.$set('f_sign_path', fileUrl)
108
+ // HostApp.__this__.f_sign_path = fileUrl
109
+ this.f_sign_path = fileUrl
110
+ this.$emit('sign-success', fileUrl)
111
+ }
112
+ },
113
+ delAudioFile (signPath) {
114
+ if (!signPath) {
115
+ return
116
+ }
117
+ HostApp.delfile(signPath)
118
+ this.f_sign_path = null
119
+ this.fileName = null
120
+ }
121
+ },
122
+ events: {
123
+ },
124
+ computed: {
125
+ },
126
+ watch: {
127
+ }
128
+ }
129
+ </script>
130
+ <style scoped lang="less">
131
+ .qrcode {
132
+ display: inline-block !important;
133
+ margin: 10px 0px;
134
+ }
135
+ .panel-self{
136
+ border-radius: 10px;
137
+ border:1px solid #499EDF;
138
+ background-color: #F8F8F8;
139
+ }
140
+ .vertical-center {
141
+ display: flex;
142
+ align-items: center;
143
+ text-align: center;
144
+ }
145
+ /*清除model中的浮动*/
146
+ .clearfix:after,.clearfix:before{
147
+ display: table;
148
+ }
149
+ .clearfix:after{
150
+ clear: both;
151
+ }
152
+ </style>