apply-clients 3.5.4-90 → 3.5.4-91

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 (49) hide show
  1. package/build/dev-server.js +6 -11
  2. package/package.json +1 -1
  3. package/src/apply.js +139 -137
  4. package/src/components/android/AppCheckTakePic.vue +168 -168
  5. package/src/components/android/AppTakePic.vue +182 -182
  6. package/src/components/android/Process/AppServiceControl.vue +1755 -1755
  7. package/src/components/product/Material/MaterialDetailed.vue +268 -268
  8. package/src/components/product/PcZhihuanManagement.vue +160 -160
  9. package/src/components/product/Process/Processes/selectApply.vue +251 -250
  10. package/src/components/product/Process/Processes/selectBcakApply.vue +250 -0
  11. package/src/filiale/fugou/android/AppAddMaterialScience.vue +440 -440
  12. package/src/filiale/fugou/android/AppAddReplacement.vue +341 -341
  13. package/src/filiale/fugou/android/AppChargeManagement.vue +739 -739
  14. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -519
  15. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -541
  16. package/src/filiale/fugou/android/AppServiceControl.vue +1845 -1845
  17. package/src/filiale/fugou/android/AppZhihuanManagement.vue +197 -197
  18. package/src/filiale/fugou/android/printCharge.vue +162 -162
  19. package/src/filiale/fugou/android.js +16 -16
  20. package/src/filiale/fugou/pc/AddReplacement.vue +340 -340
  21. package/src/filiale/fugou/pc/ExplorationSelect.vue +525 -525
  22. package/src/filiale/fugou/pc/ServiceControl.vue +1705 -1705
  23. package/src/filiale/fugou/pc/ServiceView.vue +941 -941
  24. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
  25. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -216
  26. package/src/filiale/fugou/pc/chargeReport.vue +143 -143
  27. package/src/filiale/fugou/pc/devicesManagement.vue +483 -483
  28. package/src/filiale/fugou/pc/printChargepc.vue +148 -148
  29. package/src/filiale/fugou/pc.js +15 -15
  30. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +493 -493
  31. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -686
  32. package/src/filiale/qianneng/android.js +15 -15
  33. package/src/filiale/qianneng/pc/ApplyMaterialDetailed.vue +261 -261
  34. package/src/filiale/qianneng/pc/Applydetail.vue +378 -378
  35. package/src/filiale/qianneng/pc/InstallFunction.vue +188 -188
  36. package/src/filiale/qianneng/pc.js +29 -29
  37. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +516 -516
  38. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +645 -645
  39. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1681 -1681
  40. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +547 -547
  41. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2112 -2112
  42. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +605 -605
  43. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +683 -683
  44. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +1052 -1052
  45. package/src/filiale/yangchunboneng/pc/devicesManagement.vue +574 -574
  46. package/src/main.js +3 -4
  47. package/src/test/SessionTestServlet.java +69 -0
  48. package/webapp/WEB-INF/web.xml +52 -0
  49. package/webapp/session-test.jsp +59 -0
@@ -1,168 +1,168 @@
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
- <div class="col-xs-4 col-sm-3 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" v-for="(index,file) in fileList">
6
- <img-self :src="$androidUtil.getProxyUrl()+'/rs/image/file/'+file.f_filename" :width="120" :height="170"></img-self>
7
- <img v-if="isdelete" src="../../../src/assets/删除.png" style="width: 15px;margin-top: -80px" @click.prevent="delfile(file, index)">
8
- </div>
9
- </div>
10
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
11
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic1(type)">相册</button>
12
- </div>
13
- </div>
14
- </template>
15
-
16
- <script>
17
- import {HttpResetClass} from 'vue-client'
18
- import {guid, toStandardTimeString} from '../Util'
19
- import Vue from 'vue'
20
- export default {
21
- title: '附件',
22
- props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic','flag'],
23
- data () {
24
- return {
25
- fileList: []
26
- }
27
- },
28
- ready () {
29
- this.getFiles()
30
- },
31
- methods: {
32
- async getFiles () {
33
- console.log('----------------开始查询图片----------------')
34
- this.fileList = []
35
-
36
- let http = new HttpResetClass()
37
-
38
- let data = {
39
- tablename: 't_files',
40
- condition: `f_blobid = '${this.blobid}' and fremarks='${this.flag}' order by f_uploaddate desc `
41
- }
42
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
43
- // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
44
- warnMsg: null,
45
- resolveMsg: null
46
- })
47
-
48
- for (var i = 0; i < res.data.length; i++) {
49
- console.log('-----------地址----------------')
50
- console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
51
- res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
52
- }
53
-
54
- this.fileList = res.data
55
- },
56
- delfile (file, index) {
57
- this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
58
- this.$dispatch("delResid", file.id)
59
- this.getFiles()
60
- })
61
- },
62
- cameraCallBack (fileName, fileUrl) {
63
- console.log('-----------cameraCallBack-----------------')
64
- let data = {
65
- blodid: HostApp.__this__.blobid,
66
- type: HostApp.__this__.type,
67
- defname: HostApp.__this__.defname,
68
- username: Vue.user.name,
69
- fremarks: this.flag,
70
- fileName: fileName,
71
- fileUrl: fileUrl
72
- }
73
- console.log('-----------bzLogic-----------------')
74
- let res=HostApp.bzLogic({
75
- 'logic': 'appFileUpload',
76
- 'data': data
77
- })
78
- console.log('----------------开始回调查询-------------------')
79
- HostApp.__this__.getFiles()
80
- console.log('----------------查询回调结束-------------------')
81
- HostApp.__callback__ = null
82
- HostApp.__this__ = null
83
- },
84
- takePic (title) {
85
- // 拍照成功回调
86
- HostApp.__callback__ = this.cameraCallBack
87
- HostApp.__this__ = this
88
- let fileName = guid() + '.jpg'
89
- // 打开相机
90
- HostApp._open_a_page({
91
- type: 'boomerang',
92
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
93
- param: {
94
- file: fileName,
95
- requestCode: 200,
96
- callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
97
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
98
- }
99
- })
100
- },
101
- cameraCallBack1 (fileName, fileUrl) {
102
- if(fileUrl instanceof Array){
103
- fileUrl.forEach((row)=>{
104
- console.log('照片名字',row.match(/[^\/]+$/)[0])
105
- let data = {
106
- blodid: HostApp.__this__.blobid,
107
- type: HostApp.__this__.type,
108
- defname: HostApp.__this__.defname,
109
- username: Vue.user.name,
110
- fremarks: this.flag,
111
- fileName: row.match(/[^\/]+$/)[0],
112
- fileUrl: row
113
- }
114
- console.log('-----------bzLogic-----------------')
115
- let res=HostApp.bzLogic({
116
- 'logic': 'appFileUpload',
117
- 'data': data
118
- })
119
- })
120
- HostApp.__this__.getFiles()
121
- HostApp.__callback__ = null
122
- HostApp.__this__ = null
123
- }
124
- },
125
- takePic1(title) {
126
- HostApp.__callback__ = this.cameraCallBack1
127
- HostApp.__this__ = this
128
- let idx = 'aofeng'
129
- let fileName = guid() + '.jpg'
130
- HostApp._open_a_page({
131
- type: 'boomerang',
132
- page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
133
- param: {
134
- file: fileName,
135
- requestCode: 200,
136
- callback: 'javascript:HostApp.__callback__("' + fileName + '", %s);',
137
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
138
- }
139
- })
140
- },
141
-
142
- },
143
- computed: {
144
- typeList () {
145
- if (this.typelabel) {
146
- return this.$appdata.getParam(this.typelabel)
147
- }
148
- return this.$appdata.getParam('使用类型')
149
- }
150
- },
151
- events: {
152
- }
153
- }
154
- </script>
155
-
156
- <style lang="less">
157
- .fileType {
158
- float: left;
159
- .select-style {
160
- background: #f8f8f8;
161
- border: 0px;
162
- }
163
- input {
164
- border-left: none;
165
- width: 100%;
166
- }
167
- }
168
- </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
+ <div class="col-xs-4 col-sm-3 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" v-for="(index,file) in fileList">
6
+ <img-self :src="$androidUtil.getProxyUrl()+'/rs/image/file/'+file.f_filename" :width="120" :height="170"></img-self>
7
+ <img v-if="isdelete" src="../../../src/assets/删除.png" style="width: 15px;margin-top: -80px" @click.prevent="delfile(file, index)">
8
+ </div>
9
+ </div>
10
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
11
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic1(type)">相册</button>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ import {HttpResetClass} from 'vue-client'
18
+ import {guid, toStandardTimeString} from '../Util'
19
+ import Vue from 'vue'
20
+ export default {
21
+ title: '附件',
22
+ props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic','flag'],
23
+ data () {
24
+ return {
25
+ fileList: []
26
+ }
27
+ },
28
+ ready () {
29
+ this.getFiles()
30
+ },
31
+ methods: {
32
+ async getFiles () {
33
+ console.log('----------------开始查询图片----------------')
34
+ this.fileList = []
35
+
36
+ let http = new HttpResetClass()
37
+
38
+ let data = {
39
+ tablename: 't_files',
40
+ condition: `f_blobid = '${this.blobid}' and fremarks='${this.flag}' order by f_uploaddate desc `
41
+ }
42
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
43
+ // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
44
+ warnMsg: null,
45
+ resolveMsg: null
46
+ })
47
+
48
+ for (var i = 0; i < res.data.length; i++) {
49
+ console.log('-----------地址----------------')
50
+ console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
51
+ res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
52
+ }
53
+
54
+ this.fileList = res.data
55
+ },
56
+ delfile (file, index) {
57
+ this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
58
+ this.$dispatch("delResid", file.id)
59
+ this.getFiles()
60
+ })
61
+ },
62
+ cameraCallBack (fileName, fileUrl) {
63
+ console.log('-----------cameraCallBack-----------------')
64
+ let data = {
65
+ blodid: HostApp.__this__.blobid,
66
+ type: HostApp.__this__.type,
67
+ defname: HostApp.__this__.defname,
68
+ username: Vue.user.name,
69
+ fremarks: this.flag,
70
+ fileName: fileName,
71
+ fileUrl: fileUrl
72
+ }
73
+ console.log('-----------bzLogic-----------------')
74
+ let res=HostApp.bzLogic({
75
+ 'logic': 'appFileUpload',
76
+ 'data': data
77
+ })
78
+ console.log('----------------开始回调查询-------------------')
79
+ HostApp.__this__.getFiles()
80
+ console.log('----------------查询回调结束-------------------')
81
+ HostApp.__callback__ = null
82
+ HostApp.__this__ = null
83
+ },
84
+ takePic (title) {
85
+ // 拍照成功回调
86
+ HostApp.__callback__ = this.cameraCallBack
87
+ HostApp.__this__ = this
88
+ let fileName = guid() + '.jpg'
89
+ // 打开相机
90
+ HostApp._open_a_page({
91
+ type: 'boomerang',
92
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
93
+ param: {
94
+ file: fileName,
95
+ requestCode: 200,
96
+ callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
97
+ watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
98
+ }
99
+ })
100
+ },
101
+ cameraCallBack1 (fileName, fileUrl) {
102
+ if(fileUrl instanceof Array){
103
+ fileUrl.forEach((row)=>{
104
+ console.log('照片名字',row.match(/[^\/]+$/)[0])
105
+ let data = {
106
+ blodid: HostApp.__this__.blobid,
107
+ type: HostApp.__this__.type,
108
+ defname: HostApp.__this__.defname,
109
+ username: Vue.user.name,
110
+ fremarks: this.flag,
111
+ fileName: row.match(/[^\/]+$/)[0],
112
+ fileUrl: row
113
+ }
114
+ console.log('-----------bzLogic-----------------')
115
+ let res=HostApp.bzLogic({
116
+ 'logic': 'appFileUpload',
117
+ 'data': data
118
+ })
119
+ })
120
+ HostApp.__this__.getFiles()
121
+ HostApp.__callback__ = null
122
+ HostApp.__this__ = null
123
+ }
124
+ },
125
+ takePic1(title) {
126
+ HostApp.__callback__ = this.cameraCallBack1
127
+ HostApp.__this__ = this
128
+ let idx = 'aofeng'
129
+ let fileName = guid() + '.jpg'
130
+ HostApp._open_a_page({
131
+ type: 'boomerang',
132
+ page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
133
+ param: {
134
+ file: fileName,
135
+ requestCode: 200,
136
+ callback: 'javascript:HostApp.__callback__("' + fileName + '", %s);',
137
+ watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
138
+ }
139
+ })
140
+ },
141
+
142
+ },
143
+ computed: {
144
+ typeList () {
145
+ if (this.typelabel) {
146
+ return this.$appdata.getParam(this.typelabel)
147
+ }
148
+ return this.$appdata.getParam('使用类型')
149
+ }
150
+ },
151
+ events: {
152
+ }
153
+ }
154
+ </script>
155
+
156
+ <style lang="less">
157
+ .fileType {
158
+ float: left;
159
+ .select-style {
160
+ background: #f8f8f8;
161
+ border: 0px;
162
+ }
163
+ input {
164
+ border-left: none;
165
+ width: 100%;
166
+ }
167
+ }
168
+ </style>