apply-clients 3.4.50 → 3.4.52

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 (57) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/apply.js +113 -113
  4. package/src/applyAndroid.js +53 -53
  5. package/src/components/android/AppServiceView.vue +745 -745
  6. package/src/components/android/AppSign.vue +154 -154
  7. package/src/components/android/Process/AppExplorationUser.vue +507 -507
  8. package/src/components/android/Process/AppServiceControl.vue +1708 -1708
  9. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -477
  10. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -519
  11. package/src/components/android/Process/Processes/AppInstallationDetails.vue +482 -482
  12. package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -156
  13. package/src/components/product/Business/BusinessApply.vue +269 -269
  14. package/src/components/product/Business/CivilApply.vue +269 -269
  15. package/src/components/product/GroupByApply/ApplyGroupByList.vue +253 -253
  16. package/src/components/product/GroupByApply/ApplyGroupByMain.vue +53 -53
  17. package/src/components/product/GroupByApply/ApplyGroupByPaper.vue +376 -376
  18. package/src/components/product/Material/MaterialDetailed.vue +262 -262
  19. package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -360
  20. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +157 -157
  21. package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -259
  22. package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -168
  23. package/src/components/product/Process/ExplorationSelect.vue +495 -495
  24. package/src/components/product/Process/ExplorationUser.vue +189 -189
  25. package/src/components/product/Process/Processes/InstallationDetails.vue +610 -610
  26. package/src/components/product/Process/Processes/Print/printCharge.vue +166 -166
  27. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -454
  28. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +211 -211
  29. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  30. package/src/components/product/Process/Processes/devicesManagement.vue +484 -484
  31. package/src/components/product/Process/Service/ServiceControl.vue +26 -21
  32. package/src/components/product/ServiceView.vue +981 -981
  33. package/src/components/product/Supervisory/SupervisoryControl.vue +137 -137
  34. package/src/components/product/Supervisory/SupervisoryList.vue +404 -404
  35. package/src/components/product/VueUtils/ApplyUpload.vue +275 -280
  36. package/src/filiale/gehua/pc/ExplorationSelect.vue +483 -483
  37. package/src/filiale/gehua/pc/ServiceControl.vue +1929 -1929
  38. package/src/filiale/gehua/pc/SupervisoryControl.vue +137 -137
  39. package/src/filiale/gehua/pc/SupervisoryServiceControl.vue +890 -890
  40. package/src/filiale/gehua/pc/buildOrderList.vue +339 -0
  41. package/src/filiale/gehua/pc/printBuildOrder.vue +243 -0
  42. package/src/filiale/gehua/pc.js +3 -2
  43. package/src/filiale/guangxi/android/Process/AppExplorationUser.vue +503 -503
  44. package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +470 -470
  45. package/src/filiale/guangxi/android/Process/Processes/AppDevicesManagement.vue +519 -519
  46. package/src/filiale/guangxi/android/Process/Processes/AppInstallationDetails.vue +482 -482
  47. package/src/filiale/guangxi/android/Process/Processes/AppServiceControl.vue +1708 -1708
  48. package/src/filiale/guangxi/android/Process/Processes/AppServiceView.vue +766 -766
  49. package/src/filiale/guangxi/android.js +9 -9
  50. package/src/filiale/guangxi/pc/ApplyCharge/ApplyChargeList.vue +470 -470
  51. package/src/filiale/guangxi/pc/ApplyCharge/chargeManagement.vue +702 -702
  52. package/src/filiale/guangxi/pc/Process/ExplorationSelect.vue +538 -538
  53. package/src/filiale/guangxi/pc/Process/Service/ServiceControl.vue +1922 -1922
  54. package/src/filiale/guangxi/pc/Process/Service/SupervisoryServiceControl.vue +891 -891
  55. package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +482 -482
  56. package/src/filiale/guangxi/pc.js +15 -15
  57. package/src/main.js +23 -23
@@ -1,280 +1,275 @@
1
- <template>
2
- <div class="col-sm-12" style="background-color: #FFFFFF">
3
- <div class="col-sm-12" style="padding:50px 100px;height: 25%">
4
- <div class="form-group col-sm-5" v-if="issearch">
5
- <v-select
6
- class="select select_list"
7
- :value.sync="useType"
8
- width="90%"
9
- v-model="useType"
10
- :options='typeOfUse'
11
- :valueSingle="true"></v-select>
12
- </div>
13
- <div class="form-group col-sm-2" style="text-align: center" v-if="issearch">
14
- <button type="button" class="btn btn-primary item_btn" @click="load">搜索</button>
15
- </div>
16
- <div class="form-group col-sm-2" style="text-align: center" v-if="isupload">
17
- <button type="button" class="btn btn-primary item_btn" @click="showUpload = !showUpload">本地上传</button>
18
- </div>
19
- <div class="form-group col-sm-2" style="text-align: center" v-if="takeimg">
20
- <button type="button" class="btn btn-primary item_btn" @click="upload()">拍照</button>
21
- </div>
22
- </div>
23
- <hr style="width: 90%;margin: 0px auto;border: #999999 1px solid;"/>
24
- <div class="col-sm-12" style="overflow: scroll;height: 75%">
25
- <div :class="bootstraped ? bootstraped + ' showData' : 'col-sm-6 showData'" v-for="row in fileInfoData">
26
- <div class="col-sm-12 item">
27
- <div class="left col-sm-5">
28
- <a href="#" class="thumbnail" style="width: 100%;height: 100%">
29
- <img v-if="row.f_filetype === 'jpg'||row.f_filetype === 'png'||row.f_filetype === 'gif'||row.f_filetype === 'bmp'" :src="row.f_downloadURL" alt="..."/>
30
- <img v-if="row.f_filetype === 'pdf'" src="../../image/pdf.jpg" alt="" />
31
- <img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../image/excel.jpg" alt="" />
32
- <img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../image/doc.jpg" alt="" />
33
- <img v-if="row.f_filetype === 'dwg'" src="../../image/dwg.jpg" alt="" />
34
- <img v-if="row.f_filetype === 'txt'" src="../../image/txt.jpg" alt="" />
35
- </a>
36
- </div>
37
- <div class="right col-sm-7">
38
- <p :title="row.f_filename" class="clears"><strong>文件名:</strong>{{row.f_filename}}</p>
39
- <p :title="row.f_username" class="clears"><strong>操作员:</strong><span>{{row.f_username}}</span></p>
40
- <p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{row.fusetype}}</span></p>
41
- <p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{row.f_uploaddate}}</span></p>
42
- <p :title="row.fremarks" class="clears"><strong>文件说明:</strong>{{row.fremarks}}</p>
43
- <p class="clears">
44
- <a v-if="row.f_filetype === 'jpg' || row.f_filetype === 'txt' || row.f_filetype === 'dwg' || row.f_filetype==='png' || row.f_filetype==='gif' || row.f_filetype==='bmp'" :href="row.f_downloadURL" style="background:#6aa6e2" class="btn btn-primary" target="_blank" role="button">预览</a>
45
- <a v-else @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
46
- <a v-if="isdelete" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
47
- </p>
48
- </div>
49
- </div>
50
- </div>
51
- </div>
52
- </div>
53
- <apply-high-meter
54
- v-if="showhighmeter"
55
- :show.sync="showhighmeter"
56
- :isusetype="isusetype"
57
- :isremark="isremark"
58
- @photo-finish="newPhoto"
59
- v-ref:ltgao
60
- ></apply-high-meter>
61
- <modal :show.sync="showUpload" v-ref:modal backdrop="false">
62
- <header slot="modal-header" class="modal-header">
63
- <button type="button" class="close" @click="close"><span class="glyphicon glyphicon-remove"></span></button>
64
- <h4 class="modal-title" style="text-align: center">文件上传</h4>
65
- </header>
66
- <article slot="modal-body" class="modal-body form-horizontal">
67
- <div class="form-group" style="text-align: center">
68
- <file-upload class="my-file-uploader" :name="'myFile' + blodid"
69
- action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
70
- </div>
71
- <div class="form-group" v-if="isusetype">
72
- <label class="col-sm-2 control-label">文件类型:</label>
73
- <div class="col-sm-10">
74
- <input-select
75
- class="select select_list"
76
- :value.sync="headers.fusetype"
77
- v-model="headers.fusetype"
78
- :options="$appdata.getParam('使用类型')"
79
- :valueSingle="true"></input-select>
80
- </div>
81
- </div>
82
- <div class="form-group" v-if="isremark">
83
- <label class="col-sm-2 control-label">文件说明:</label>
84
- <div class="col-sm-10">
85
- <input class="form-control input_view" style=""
86
- v-model="headers.fremarks"
87
- :value="headers.fremarks"/>
88
- </div>
89
- </div>
90
- </article>
91
- <footer slot="modal-footer" class="modal-footer">
92
- </footer>
93
- </modal>
94
- </template>
95
-
96
- <script>
97
- import {HttpResetClass} from 'vue-client'
98
- import {isEmpty} from "../../Util";
99
- export default {
100
- title: '附件',
101
- props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch'],
102
- data () {
103
- return {
104
- fileInfoData: [], // 数据库存储的文件记录对象数组
105
- headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
106
- showUpload: false, // 上传模态框控制
107
- showhighmeter: false, // 高拍仪组件控制
108
- useType: null
109
- }
110
- },
111
- ready () {
112
- this.headers.blodid = this.blodid
113
- this.headers.businessid = this.businessid
114
- this.headers.defname = this.defname
115
- if (this.blodid || this.businessid) {
116
- this.load()
117
- }
118
- },
119
- methods: {
120
- delet(index, row) {
121
- this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
122
- this.$dispatch("delResid",row.id)
123
- this.load()
124
- })
125
- },
126
- // 下载
127
- downloadfile(filepath){
128
- var link = document.createElement('a');
129
- link.href = filepath;
130
- link.target='_blank'
131
- link.dispatchEvent(new MouseEvent('click'));
132
- },
133
- // 关闭文件上传对话框
134
- close () {
135
- this.showUpload = false
136
- this.showhighmeter = false
137
- // 将选的文件清空
138
- this.$refs.file.$el.querySelector('input').value = ''
139
- this.headers.fusetype = ''
140
- this.headers.fremarks = ''
141
- this.load()
142
- },
143
- // 查询
144
- async load() {
145
- let condition = ''
146
- if(!isEmpty(this.businessid)){
147
- condition = `f_businessid= '${this.headers.businessid}' `
148
- }else{
149
- condition = `f_blobid= '${this.headers.blodid}' `
150
- }
151
- if (!isEmpty(this.useType)) {
152
- condition += `and fusetype like '${this.useType}'`
153
- }
154
- let http = new HttpResetClass()
155
- let data = {
156
- tablename: 't_files',
157
- condition: condition + ` order by f_uploaddate desc `
158
- }
159
- let getFile = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
160
- warnMsg: null,
161
- resolveMsg: null
162
- })
163
-
164
- for (var i = 0; i < getFile.data.length; i++) {
165
- // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
166
- if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
167
- getFile.data.splice(i,1)
168
- i--
169
- continue
170
- }
171
- let temp = getFile.data[i].f_downloadpath
172
- if(temp.startsWith('http')){
173
- debugger
174
- i++
175
- continue
176
- }
177
- let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
178
- getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
179
- }
180
- this.fileInfoData = []
181
- this.fileInfoData = getFile.data
182
- },
183
- // 打开高拍仪
184
- upload () {
185
- if(this.showhighmeter){
186
- this.$refs.ltgao.closeVideo()
187
- }
188
- this.showhighmeter = !this.showhighmeter
189
- },
190
- // 高拍仪回调
191
- newPhoto(Imgbase64, fusetype, fremarks) {
192
- this.headers.fusetype = fusetype
193
- this.headers.fremarks = fremarks
194
-
195
- let form = new FormData()
196
- let xhr = new XMLHttpRequest()
197
- let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
198
- form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
199
- form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
200
- xhr.open("POST", "rs/file/uploadFile")
201
-
202
- if (this.headers) {
203
- for (var header in this.headers) {
204
- xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
205
- }
206
- }
207
- xhr.send(form)
208
- setTimeout(() => {
209
- this.close()
210
- }, 5000)
211
- },
212
- convertBase64ToBlob(base64String) {
213
- // 将base64解码
214
- var bytes = atob(base64String);
215
- //var bytes = base64;
216
- var bytesCode = new ArrayBuffer(bytes.length);
217
- // 转换为类型化数组
218
- var byteArray = new Uint8Array(bytesCode);
219
-
220
- // 将base64转换为ascii码
221
- for (var i = 0; i < bytes.length; i++) {
222
- byteArray[i] = bytes.charCodeAt(i);
223
- }
224
- // 生成Blob对象(文件对象)
225
- return new Blob([bytesCode], {type: 'image/jpeg'});
226
- },
227
- },
228
- computed: {
229
- typeOfUse () {
230
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
231
- }
232
- },
233
- events: {
234
- onFileUpload: function (file, res) {
235
- this.$dispatch("resid",res.id)
236
- this.headers.fremarks=''
237
- this.close()
238
- }
239
- }
240
- }
241
- </script>
242
-
243
- <style scoped>
244
- .clears{
245
- overflow:hidden;
246
- text-overflow:ellipsis;
247
- white-space:nowrap;
248
- }
249
- .showData {
250
- padding: 15px 10px 0px 10px;
251
- box-sizing: border-box;
252
- height: 230px;
253
- font-family: "微软雅黑";
254
- }
255
- .showData .item{
256
- padding-bottom: 10px;
257
- border-bottom: solid 1px #c1c1c1;
258
- }
259
- .left {
260
- padding-right: 10px;
261
- }
262
- .left img{
263
- height: 100%;
264
- width: 100%;
265
- }
266
- .right{
267
- height: 100%;
268
- /*display: -webkit-flex;*/
269
- /*display: flex;*/
270
- /*flex-direction: column;*/
271
- /*justify-content: space-around;*/
272
- }
273
- .item_btn{
274
- width: 80%;
275
- background-color: #6aa6e2;
276
- border-radius: 4px;
277
- color: #FFFFFF;
278
- font-family: PingFang;
279
- }
280
- </style>
1
+ <template>
2
+ <div class="col-sm-12" style="background-color: #FFFFFF">
3
+ <div class="col-sm-12" style="padding:50px 100px;height: 25%">
4
+ <div class="form-group col-sm-5" v-if="issearch">
5
+ <v-select
6
+ class="select select_list"
7
+ :value.sync="useType"
8
+ width="90%"
9
+ v-model="useType"
10
+ :options='typeOfUse'
11
+ :valueSingle="true"></v-select>
12
+ </div>
13
+ <div class="form-group col-sm-2" style="text-align: center" v-if="issearch">
14
+ <button type="button" class="btn btn-primary item_btn" @click="load">搜索</button>
15
+ </div>
16
+ <div class="form-group col-sm-2" style="text-align: center" v-if="isupload">
17
+ <button type="button" class="btn btn-primary item_btn" @click="showUpload = !showUpload">本地上传</button>
18
+ </div>
19
+ <div class="form-group col-sm-2" style="text-align: center" v-if="takeimg">
20
+ <button type="button" class="btn btn-primary item_btn" @click="upload()">拍照</button>
21
+ </div>
22
+ </div>
23
+ <hr style="width: 90%;margin: 0px auto;border: #999999 1px solid;"/>
24
+ <div class="col-sm-12" style="overflow: scroll;height: 75%">
25
+ <div :class="bootstraped ? bootstraped + ' showData' : 'col-sm-6 showData'" v-for="row in fileInfoData">
26
+ <div class="col-sm-12 item">
27
+ <div class="left col-sm-5">
28
+ <a href="#" class="thumbnail" style="width: 100%;height: 100%">
29
+ <img v-if="row.f_filetype === 'jpg'||row.f_filetype === 'png'||row.f_filetype === 'gif'||row.f_filetype === 'bmp'" :src="row.f_downloadURL" alt="..."/>
30
+ <img v-if="row.f_filetype === 'pdf'" src="../../image/pdf.jpg" alt="" />
31
+ <img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../image/excel.jpg" alt="" />
32
+ <img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../image/doc.jpg" alt="" />
33
+ <img v-if="row.f_filetype === 'dwg'" src="../../image/dwg.jpg" alt="" />
34
+ <img v-if="row.f_filetype === 'txt'" src="../../image/txt.jpg" alt="" />
35
+ </a>
36
+ </div>
37
+ <div class="right col-sm-7">
38
+ <p :title="row.f_filename" class="clears"><strong>文件名:</strong>{{row.f_filename}}</p>
39
+ <p :title="row.f_username" class="clears"><strong>操作员:</strong><span>{{row.f_username}}</span></p>
40
+ <p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{row.fusetype}}</span></p>
41
+ <p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{row.f_uploaddate}}</span></p>
42
+ <p :title="row.fremarks" class="clears"><strong>文件说明:</strong>{{row.fremarks}}</p>
43
+ <p class="clears">
44
+ <a v-if="row.f_filetype === 'jpg' || row.f_filetype === 'txt' || row.f_filetype === 'dwg' || row.f_filetype==='png' || row.f_filetype==='gif' || row.f_filetype==='bmp'" :href="row.f_downloadURL" style="background:#6aa6e2" class="btn btn-primary" target="_blank" role="button">预览</a>
45
+ <a v-else @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
46
+ <a v-if="isdelete" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
47
+ </p>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <apply-high-meter
54
+ v-if="showhighmeter"
55
+ :show.sync="showhighmeter"
56
+ :isusetype="isusetype"
57
+ :isremark="isremark"
58
+ @photo-finish="newPhoto"
59
+ v-ref:ltgao
60
+ ></apply-high-meter>
61
+ <modal :show.sync="showUpload" v-ref:modal backdrop="false">
62
+ <header slot="modal-header" class="modal-header">
63
+ <button type="button" class="close" @click="close"><span class="glyphicon glyphicon-remove"></span></button>
64
+ <h4 class="modal-title" style="text-align: center">文件上传</h4>
65
+ </header>
66
+ <article slot="modal-body" class="modal-body form-horizontal">
67
+ <div class="form-group" style="text-align: center">
68
+ <file-upload class="my-file-uploader" :name="'myFile' + blodid"
69
+ action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
70
+ </div>
71
+ <div class="form-group" v-if="isusetype">
72
+ <label class="col-sm-2 control-label">文件类型:</label>
73
+ <div class="col-sm-10">
74
+ <input-select
75
+ class="select select_list"
76
+ :value.sync="headers.fusetype"
77
+ v-model="headers.fusetype"
78
+ :options="$appdata.getParam('使用类型')"
79
+ :valueSingle="true"></input-select>
80
+ </div>
81
+ </div>
82
+ <div class="form-group" v-if="isremark">
83
+ <label class="col-sm-2 control-label">文件说明:</label>
84
+ <div class="col-sm-10">
85
+ <input class="form-control input_view" style=""
86
+ v-model="headers.fremarks"
87
+ :value="headers.fremarks"/>
88
+ </div>
89
+ </div>
90
+ </article>
91
+ <footer slot="modal-footer" class="modal-footer">
92
+ </footer>
93
+ </modal>
94
+ </template>
95
+
96
+ <script>
97
+ import {HttpResetClass} from 'vue-client'
98
+ import {isEmpty} from "../../Util";
99
+ export default {
100
+ title: '附件',
101
+ props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch'],
102
+ data () {
103
+ return {
104
+ fileInfoData: [], // 数据库存储的文件记录对象数组
105
+ headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
106
+ showUpload: false, // 上传模态框控制
107
+ showhighmeter: false, // 高拍仪组件控制
108
+ useType: null
109
+ }
110
+ },
111
+ ready () {
112
+ this.headers.blodid = this.blodid
113
+ this.headers.businessid = this.businessid
114
+ this.headers.defname = this.defname
115
+ if (this.blodid || this.businessid) {
116
+ this.load()
117
+ }
118
+ },
119
+ methods: {
120
+ delet(index, row) {
121
+ this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
122
+ this.$dispatch("delResid",row.id)
123
+ this.load()
124
+ })
125
+ },
126
+ // 下载
127
+ downloadfile(filepath){
128
+ var link = document.createElement('a');
129
+ link.href = filepath;
130
+ link.target='_blank'
131
+ link.dispatchEvent(new MouseEvent('click'));
132
+ },
133
+ // 关闭文件上传对话框
134
+ close () {
135
+ this.showUpload = false
136
+ this.showhighmeter = false
137
+ // 将选的文件清空
138
+ this.$refs.file.$el.querySelector('input').value = ''
139
+ this.headers.fusetype = ''
140
+ this.headers.fremarks = ''
141
+ this.load()
142
+ },
143
+ // 查询
144
+ async load() {
145
+ let condition = ''
146
+ if(!isEmpty(this.businessid)){
147
+ condition = `f_businessid= '${this.headers.businessid}' `
148
+ }else{
149
+ condition = `f_blobid= '${this.headers.blodid}' `
150
+ }
151
+ if (!isEmpty(this.useType)) {
152
+ condition += `and fusetype like '${this.useType}'`
153
+ }
154
+ let http = new HttpResetClass()
155
+ let data = {
156
+ tablename: 't_files',
157
+ condition: condition + ` order by f_uploaddate desc `
158
+ }
159
+ let getFile = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
160
+ warnMsg: null,
161
+ resolveMsg: null
162
+ })
163
+
164
+ for (var i = 0; i < getFile.data.length; i++) {
165
+ // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
166
+ if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
167
+ getFile.data.splice(i,1)
168
+ i--
169
+ continue
170
+ }
171
+ let temp = getFile.data[i].f_downloadpath
172
+ let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
173
+ getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
174
+ }
175
+ this.fileInfoData = []
176
+ this.fileInfoData = getFile.data
177
+ },
178
+ // 打开高拍仪
179
+ upload () {
180
+ if(this.showhighmeter){
181
+ this.$refs.ltgao.closeVideo()
182
+ }
183
+ this.showhighmeter = !this.showhighmeter
184
+ },
185
+ // 高拍仪回调
186
+ newPhoto(Imgbase64, fusetype, fremarks) {
187
+ this.headers.fusetype = fusetype
188
+ this.headers.fremarks = fremarks
189
+
190
+ let form = new FormData()
191
+ let xhr = new XMLHttpRequest()
192
+ let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
193
+ form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
194
+ form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
195
+ xhr.open("POST", "rs/file/uploadFile")
196
+
197
+ if (this.headers) {
198
+ for (var header in this.headers) {
199
+ xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
200
+ }
201
+ }
202
+ xhr.send(form)
203
+ setTimeout(() => {
204
+ this.close()
205
+ }, 5000)
206
+ },
207
+ convertBase64ToBlob(base64String) {
208
+ // 将base64解码
209
+ var bytes = atob(base64String);
210
+ //var bytes = base64;
211
+ var bytesCode = new ArrayBuffer(bytes.length);
212
+ // 转换为类型化数组
213
+ var byteArray = new Uint8Array(bytesCode);
214
+
215
+ // base64转换为ascii码
216
+ for (var i = 0; i < bytes.length; i++) {
217
+ byteArray[i] = bytes.charCodeAt(i);
218
+ }
219
+ // 生成Blob对象(文件对象)
220
+ return new Blob([bytesCode], {type: 'image/jpeg'});
221
+ },
222
+ },
223
+ computed: {
224
+ typeOfUse () {
225
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
226
+ }
227
+ },
228
+ events: {
229
+ onFileUpload: function (file, res) {
230
+ this.$dispatch("resid",res.id)
231
+ this.headers.fremarks=''
232
+ this.close()
233
+ }
234
+ }
235
+ }
236
+ </script>
237
+
238
+ <style scoped>
239
+ .clears{
240
+ overflow:hidden;
241
+ text-overflow:ellipsis;
242
+ white-space:nowrap;
243
+ }
244
+ .showData {
245
+ padding: 15px 10px 0px 10px;
246
+ box-sizing: border-box;
247
+ height: 230px;
248
+ font-family: "微软雅黑";
249
+ }
250
+ .showData .item{
251
+ padding-bottom: 10px;
252
+ border-bottom: solid 1px #c1c1c1;
253
+ }
254
+ .left {
255
+ padding-right: 10px;
256
+ }
257
+ .left img{
258
+ height: 100%;
259
+ width: 100%;
260
+ }
261
+ .right{
262
+ height: 100%;
263
+ /*display: -webkit-flex;*/
264
+ /*display: flex;*/
265
+ /*flex-direction: column;*/
266
+ /*justify-content: space-around;*/
267
+ }
268
+ .item_btn{
269
+ width: 80%;
270
+ background-color: #6aa6e2;
271
+ border-radius: 4px;
272
+ color: #FFFFFF;
273
+ font-family: PingFang;
274
+ }
275
+ </style>