apply-clients 3.5.4-73 → 3.5.4-75

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 (33) hide show
  1. package/build/dev-server.js +10 -7
  2. package/package.json +1 -1
  3. package/src/apply.js +137 -137
  4. package/src/components/android/AppCheckTakePic.vue +168 -168
  5. package/src/components/android/Process/AppServiceControl.vue +1755 -1755
  6. package/src/components/product/PcZhihuanManagement.vue +160 -160
  7. package/src/components/product/Supervisory/SupervisoryControl.vue +141 -141
  8. package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
  9. package/src/filiale/fugou/android/AppAddMaterialScience.vue +448 -442
  10. package/src/filiale/fugou/android/AppServiceControl.vue +1843 -1827
  11. package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -191
  12. package/src/filiale/fugou/pc/InstallationDetails.vue +646 -647
  13. package/src/filiale/fugou/pc/ServiceControl.vue +1704 -1702
  14. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -482
  15. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -0
  16. package/src/filiale/fugou/pc.js +11 -10
  17. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +518 -518
  18. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1087 -1085
  19. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1524 -1524
  20. package/src/filiale/yangchunboneng/android/AppUpload.vue +205 -205
  21. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +156 -156
  22. package/src/filiale/yangchunboneng/android.js +20 -20
  23. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
  24. package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -191
  25. package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +365 -365
  26. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -142
  27. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +590 -590
  28. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -628
  29. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -902
  30. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -901
  31. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -1117
  32. package/src/filiale/yangchunboneng/pc.js +24 -24
  33. package/src/main.js +1 -2
@@ -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>