apply-clients 3.5.1 → 3.5.3

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 +142 -133
  2. package/package.json +118 -118
  3. package/src/App.vue +26 -21
  4. package/src/applyAndroid.js +58 -58
  5. package/src/components/android/AppSign.vue +152 -152
  6. package/src/components/android/AppTakePic.vue +181 -181
  7. package/src/components/android/Process/AppChargeList.vue +224 -224
  8. package/src/components/android/Process/AppExplorationUser.vue +508 -508
  9. package/src/components/android/Process/AppOtherChargeList.vue +255 -219
  10. package/src/components/product/Install/ContractCharge.vue +210 -210
  11. package/src/filiale/fugou/android/AppChargeManagement.vue +625 -625
  12. package/src/filiale/hongda/pc/FunctionServiceControl.vue +526 -525
  13. package/src/filiale/qianneng/android/AppExplorationUser.vue +441 -441
  14. package/src/filiale/qianneng/android/AppServiceControl.vue +1608 -1608
  15. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +685 -685
  16. package/src/filiale/qianneng/pc/ExplorationSelect.vue +492 -492
  17. package/src/filiale/qianneng/pc/FunctionServiceControl.vue +521 -521
  18. package/src/filiale/qianneng/pc/InstallInfoSelect.vue +392 -392
  19. package/src/filiale/qianneng/pc/InstallationDetails.vue +561 -561
  20. package/src/filiale/qianneng/pc/ServiceControl.vue +1351 -1340
  21. package/src/filiale/qianneng/pc/SupervisoryList.vue +344 -344
  22. package/src/filiale/qianneng/pc/SupervisoryServiceControl.vue +871 -871
  23. package/src/filiale/qianneng/pc/chargeManagement.vue +656 -656
  24. package/src/filiale/qianneng/pc/printactivatecard.vue +295 -295
  25. package/src/filiale/qianneng/pc/supplementalAgreement.vue +344 -344
  26. package/src/filiale/yangchunboneng/android/AppAddMaterialScience.vue +390 -390
  27. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +120 -120
  28. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +552 -552
  29. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +507 -507
  30. package/src/filiale/yangchunboneng/android/AppInstallationDetails.vue +492 -492
  31. package/src/filiale/yangchunboneng/android/AppOtherChargeManagement.vue +116 -116
  32. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1552 -1552
  33. package/src/filiale/yangchunboneng/android/AppTakePic.vue +181 -181
  34. package/src/filiale/yangchunboneng/android/chargesList.vue +170 -170
  35. package/src/filiale/yangchunboneng/android.js +16 -16
  36. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +496 -496
  37. package/src/filiale/yangchunboneng/pc/InstallationDetails.vue +609 -609
  38. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +1782 -1782
  39. package/src/filiale/yangchunboneng/pc/ServiceView.vue +1005 -1005
  40. package/src/filiale/yangchunboneng/pc/addMaterialScience.vue +374 -374
  41. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +960 -960
  42. package/src/filiale/yangchunboneng/pc/devicesManagement.vue +511 -511
  43. package/src/filiale/yangchunboneng/pc/otherchargeManagement.vue +214 -214
  44. package/src/filiale/yangchunboneng/pc.js +17 -17
  45. package/src/main.js +23 -23
@@ -1,181 +1,181 @@
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-2 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="file.f_downloadURL" :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
- <div class="row text-right form-group" v-if="istakepic">
11
- <v-select
12
- class="fileType"
13
- placeholder="请选择使用类型"
14
- v-if="istype"
15
- :search="false"
16
- close-on-select
17
- value-single
18
- :options="typeList"
19
- v-model="type"
20
- :value.sync="type"
21
- ></v-select>
22
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
23
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic1(type)">相册</button>
24
- </div>
25
- </div>
26
- </div>
27
- </template>
28
-
29
- <script>
30
- import {HttpResetClass} from 'vue-client'
31
- import {guid, toStandardTimeString} from '../../../components/Util'
32
- import Vue from 'vue'
33
- export default {
34
- title: '附件',
35
- props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic'],
36
- data () {
37
- return {
38
- fileList: []
39
- }
40
- },
41
- ready () {
42
- this.getFiles()
43
- },
44
- methods: {
45
- async getFiles () {
46
- console.log('----------------开始查询图片----------------')
47
- this.fileList = []
48
-
49
- let http = new HttpResetClass()
50
-
51
- let data = {
52
- tablename: 't_files',
53
- condition: `f_blobid = '${this.blobid}' and f_filetype in ('jpg','png') order by f_uploaddate desc `
54
- }
55
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
56
- // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
57
- warnMsg: null,
58
- resolveMsg: null
59
- })
60
-
61
- for (var i = 0; i < res.data.length; i++) {
62
- console.log('-----------地址----------------')
63
- console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
64
- res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
65
- }
66
-
67
- this.fileList = res.data
68
- },
69
- delfile (file, index) {
70
- this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
71
- this.$dispatch("delResid", file.id)
72
- this.getFiles()
73
- })
74
- },
75
- cameraCallBack (fileName, fileUrl) {
76
- console.log('-----------cameraCallBack-----------------')
77
- let data = {
78
- blodid: HostApp.__this__.blobid,
79
- type: HostApp.__this__.type,
80
- defname: HostApp.__this__.defname,
81
- username: Vue.user.name,
82
- fremarks: '手机拍照',
83
- fileName: fileName,
84
- fileUrl: fileUrl
85
- }
86
- console.log('-----------bzLogic-----------------')
87
- let res=HostApp.bzLogic({
88
- 'logic': 'appFileUpload',
89
- 'data': data
90
- })
91
- console.log('----------------开始回调查询-------------------')
92
- HostApp.__this__.getFiles()
93
- console.log('----------------查询回调结束-------------------')
94
- HostApp.__callback__ = null
95
- HostApp.__this__ = null
96
- },
97
- takePic (title) {
98
- // 拍照成功回调
99
- HostApp.__callback__ = this.cameraCallBack
100
- HostApp.__this__ = this
101
- let fileName = guid() + '.jpg'
102
- // 打开相机
103
- HostApp._open_a_page({
104
- type: 'boomerang',
105
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
106
- param: {
107
- file: fileName,
108
- requestCode: 200,
109
- callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
110
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
111
- }
112
- })
113
- },
114
- cameraCallBack1 (fileName, fileUrl) {
115
- if(fileUrl instanceof Array){
116
- fileUrl.forEach((row)=>{
117
- console.log('照片名字',row.match(/[^\/]+$/)[0])
118
- let data = {
119
- blodid: HostApp.__this__.blobid,
120
- type: HostApp.__this__.type,
121
- defname: HostApp.__this__.defname,
122
- username: Vue.user.name,
123
- fremarks: '相册选择',
124
- fileName: row.match(/[^\/]+$/)[0],
125
- fileUrl: row
126
- }
127
- console.log('-----------bzLogic-----------------')
128
- let res=HostApp.bzLogic({
129
- 'logic': 'appFileUpload',
130
- 'data': data
131
- })
132
- })
133
- HostApp.__this__.getFiles()
134
- HostApp.__callback__ = null
135
- HostApp.__this__ = null
136
- }
137
- },
138
- takePic1(title) {
139
- HostApp.__callback__ = this.cameraCallBack1
140
- HostApp.__this__ = this
141
- let idx = 'aofeng'
142
- let fileName = guid() + '.jpg'
143
- HostApp._open_a_page({
144
- type: 'boomerang',
145
- page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
146
- param: {
147
- file: fileName,
148
- requestCode: 200,
149
- callback: 'javascript:HostApp.__callback__("' + fileName + '", %s);',
150
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
151
- }
152
- })
153
- },
154
-
155
- },
156
- computed: {
157
- typeList () {
158
- if (this.typelabel) {
159
- return this.$appdata.getParam(this.typelabel)
160
- }
161
- return this.$appdata.getParam('报建-使用类型')
162
- }
163
- },
164
- events: {
165
- }
166
- }
167
- </script>
168
-
169
- <style lang="less">
170
- .fileType {
171
- float: left;
172
- .select-style {
173
- background: #f8f8f8;
174
- border: 0px;
175
- }
176
- input {
177
- border-left: none;
178
- width: 100%;
179
- }
180
- }
181
- </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-2 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="file.f_downloadURL" :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
+ <div class="row text-right form-group" v-if="istakepic">
11
+ <v-select
12
+ class="fileType"
13
+ placeholder="请选择使用类型"
14
+ v-if="istype"
15
+ :search="false"
16
+ close-on-select
17
+ value-single
18
+ :options="typeList"
19
+ v-model="type"
20
+ :value.sync="type"
21
+ ></v-select>
22
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
23
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic1(type)">相册</button>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </template>
28
+
29
+ <script>
30
+ import {HttpResetClass} from 'vue-client'
31
+ import {guid, toStandardTimeString} from '../../../components/Util'
32
+ import Vue from 'vue'
33
+ export default {
34
+ title: '附件',
35
+ props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic'],
36
+ data () {
37
+ return {
38
+ fileList: []
39
+ }
40
+ },
41
+ ready () {
42
+ this.getFiles()
43
+ },
44
+ methods: {
45
+ async getFiles () {
46
+ console.log('----------------开始查询图片----------------')
47
+ this.fileList = []
48
+
49
+ let http = new HttpResetClass()
50
+
51
+ let data = {
52
+ tablename: 't_files',
53
+ condition: `f_blobid = '${this.blobid}' and f_filetype in ('jpg','png') order by f_uploaddate desc `
54
+ }
55
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
56
+ // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
57
+ warnMsg: null,
58
+ resolveMsg: null
59
+ })
60
+
61
+ for (var i = 0; i < res.data.length; i++) {
62
+ console.log('-----------地址----------------')
63
+ console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
64
+ res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
65
+ }
66
+
67
+ this.fileList = res.data
68
+ },
69
+ delfile (file, index) {
70
+ this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
71
+ this.$dispatch("delResid", file.id)
72
+ this.getFiles()
73
+ })
74
+ },
75
+ cameraCallBack (fileName, fileUrl) {
76
+ console.log('-----------cameraCallBack-----------------')
77
+ let data = {
78
+ blodid: HostApp.__this__.blobid,
79
+ type: HostApp.__this__.type,
80
+ defname: HostApp.__this__.defname,
81
+ username: Vue.user.name,
82
+ fremarks: '手机拍照',
83
+ fileName: fileName,
84
+ fileUrl: fileUrl
85
+ }
86
+ console.log('-----------bzLogic-----------------')
87
+ let res=HostApp.bzLogic({
88
+ 'logic': 'appFileUpload',
89
+ 'data': data
90
+ })
91
+ console.log('----------------开始回调查询-------------------')
92
+ HostApp.__this__.getFiles()
93
+ console.log('----------------查询回调结束-------------------')
94
+ HostApp.__callback__ = null
95
+ HostApp.__this__ = null
96
+ },
97
+ takePic (title) {
98
+ // 拍照成功回调
99
+ HostApp.__callback__ = this.cameraCallBack
100
+ HostApp.__this__ = this
101
+ let fileName = guid() + '.jpg'
102
+ // 打开相机
103
+ HostApp._open_a_page({
104
+ type: 'boomerang',
105
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
106
+ param: {
107
+ file: fileName,
108
+ requestCode: 200,
109
+ callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
110
+ watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
111
+ }
112
+ })
113
+ },
114
+ cameraCallBack1 (fileName, fileUrl) {
115
+ if(fileUrl instanceof Array){
116
+ fileUrl.forEach((row)=>{
117
+ console.log('照片名字',row.match(/[^\/]+$/)[0])
118
+ let data = {
119
+ blodid: HostApp.__this__.blobid,
120
+ type: HostApp.__this__.type,
121
+ defname: HostApp.__this__.defname,
122
+ username: Vue.user.name,
123
+ fremarks: '相册选择',
124
+ fileName: row.match(/[^\/]+$/)[0],
125
+ fileUrl: row
126
+ }
127
+ console.log('-----------bzLogic-----------------')
128
+ let res=HostApp.bzLogic({
129
+ 'logic': 'appFileUpload',
130
+ 'data': data
131
+ })
132
+ })
133
+ HostApp.__this__.getFiles()
134
+ HostApp.__callback__ = null
135
+ HostApp.__this__ = null
136
+ }
137
+ },
138
+ takePic1(title) {
139
+ HostApp.__callback__ = this.cameraCallBack1
140
+ HostApp.__this__ = this
141
+ let idx = 'aofeng'
142
+ let fileName = guid() + '.jpg'
143
+ HostApp._open_a_page({
144
+ type: 'boomerang',
145
+ page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
146
+ param: {
147
+ file: fileName,
148
+ requestCode: 200,
149
+ callback: 'javascript:HostApp.__callback__("' + fileName + '", %s);',
150
+ watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
151
+ }
152
+ })
153
+ },
154
+
155
+ },
156
+ computed: {
157
+ typeList () {
158
+ if (this.typelabel) {
159
+ return this.$appdata.getParam(this.typelabel)
160
+ }
161
+ return this.$appdata.getParam('报建-使用类型')
162
+ }
163
+ },
164
+ events: {
165
+ }
166
+ }
167
+ </script>
168
+
169
+ <style lang="less">
170
+ .fileType {
171
+ float: left;
172
+ .select-style {
173
+ background: #f8f8f8;
174
+ border: 0px;
175
+ }
176
+ input {
177
+ border-left: none;
178
+ width: 100%;
179
+ }
180
+ }
181
+ </style>