apply-clients 3.5.4-2 → 3.5.4-21

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 (48) hide show
  1. package/build/dev-server.js +137 -133
  2. package/package.json +1 -1
  3. package/src/App.vue +25 -25
  4. package/src/components/android/Process/AppServiceControl.vue +5 -0
  5. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +493 -493
  6. package/src/components/android/Process/Processes/AppInstallationDetails.vue +1 -3
  7. package/src/components/image/dxf.png +0 -0
  8. package/src/components/product/Process/ExplorationUser.vue +1 -0
  9. package/src/components/product/Process/Processes/addMaterialScience.vue +471 -471
  10. package/src/filiale/baiyin/android/AppServiceControl.vue +1762 -0
  11. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +801 -0
  12. package/src/filiale/baiyin/android/ByDeviceManagement.vue +917 -0
  13. package/src/filiale/baiyin/android.js +8 -0
  14. package/src/filiale/fugou/android/AppChargeManagement.vue +132 -1
  15. package/src/filiale/fugou/pc/ServiceControl.vue +27 -6
  16. package/src/filiale/qianneng/android/AppExplorationUser.vue +38 -0
  17. package/src/filiale/qianneng/android/AppInstallationDetails.vue +20 -11
  18. package/src/filiale/qianneng/pc/ApplyUpload.vue +292 -291
  19. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +11 -6
  20. package/src/filiale/qianneng/pc/InstallationDetails.vue +614 -586
  21. package/src/filiale/qianneng/pc/ServiceControl.vue +1 -0
  22. package/src/filiale/qianneng/pc/printactivatecard.vue +6 -6
  23. package/src/filiale/ruihua/pc/InstallationDetails.vue +610 -0
  24. package/src/filiale/ruihua/pc/ServiceControl.vue +20 -0
  25. package/src/filiale/ruihua/pc/printVentilation.vue +21 -6
  26. package/src/filiale/ruihua/pc.js +1 -0
  27. package/src/filiale/shexian/android/AppServiceControl.vue +1758 -1753
  28. package/src/filiale/shexian/android/AppTakePic.vue +94 -140
  29. package/src/filiale/siyangRH/pc/chargeManagement.vue +810 -0
  30. package/src/filiale/siyangRH/pc.js +1 -0
  31. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +4 -0
  32. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +12 -0
  33. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +7 -3
  34. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +17 -1
  35. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1 -1
  36. package/src/filiale/yangchunboneng/android/AppUpload.vue +50 -8
  37. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +230 -219
  38. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +53 -13
  39. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +183 -2
  40. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +140 -0
  41. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +54 -13
  42. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +613 -0
  43. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -0
  44. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -0
  45. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -0
  46. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +99 -12
  47. package/src/filiale/yangchunboneng/pc.js +6 -1
  48. package/src/main.js +23 -23
@@ -1,291 +1,292 @@
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="../../../components/image/pdf.jpg" alt="" />
31
- <img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../../components/image/excel.jpg" alt="" />
32
- <img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../../components/image/doc.jpg" alt="" />
33
- <img v-if="row.f_filetype === 'dwg'" src="../../../components/image/dwg.jpg" alt="" />
34
- <img v-if="row.f_filetype === 'txt'" src="../../../components/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
- <high-meter :show.sync="showhighmeter" @photo-finish="newPhoto" v-if="showhighmeter"></high-meter>
54
- <!-- <apply-high-meter
55
- v-if="showhighmeter"
56
- :show.sync="showhighmeter"
57
- :isusetype="isusetype"
58
- :isremark="isremark"
59
- @photo-finish="newPhoto"
60
- v-ref:ltgao
61
- ></apply-high-meter>-->
62
- <modal :show.sync="showUpload" v-ref:modal backdrop="false">
63
- <header slot="modal-header" class="modal-header">
64
- <button type="button" class="close" @click="close"><span class="glyphicon glyphicon-remove"></span></button>
65
- <h4 class="modal-title" style="text-align: center">文件上传</h4>
66
- </header>
67
- <article slot="modal-body" class="modal-body form-horizontal">
68
- <div class="form-group" style="text-align: center">
69
- <file-upload class="my-file-uploader" :name="'myFile' + blodid"
70
- action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
71
- </div>
72
- <div class="form-group" v-if="isusetype">
73
- <label class="col-sm-2 control-label">文件类型:</label>
74
- <div class="col-sm-10">
75
- <input-select
76
- class="select select_list"
77
- :value.sync="headers.fusetype"
78
- v-model="headers.fusetype"
79
- :options="$appdata.getParam('报建-使用类型')"
80
- :valueSingle="true"></input-select>
81
- </div>
82
- </div>
83
- <div class="form-group" v-if="isremark">
84
- <label class="col-sm-2 control-label">文件说明:</label>
85
- <div class="col-sm-10">
86
- <input class="form-control input_view" style=""
87
- v-model="headers.fremarks"
88
- :value="headers.fremarks"/>
89
- </div>
90
- </div>
91
- </article>
92
- <footer slot="modal-footer" class="modal-footer">
93
- </footer>
94
- </modal>
95
- </template>
96
-
97
- <script>
98
- import {HttpResetClass} from 'vue-client'
99
- import {isEmpty} from "../../../components/Util";
100
- export default {
101
- title: '附件',
102
- props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch'],
103
- data () {
104
- return {
105
- fileInfoData: [], // 数据库存储的文件记录对象数组
106
- headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
107
- showUpload: false, // 上传模态框控制
108
- showhighmeter: false, // 高拍仪组件控制
109
- useType: null
110
- }
111
- },
112
- ready () {
113
- this.headers.blodid = this.blodid
114
- this.headers.businessid = this.businessid
115
- this.headers.defname = this.defname
116
- if (this.blodid || this.businessid) {
117
- this.load()
118
- }
119
- },
120
- methods: {
121
- delet(index, row) {
122
- this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
123
- this.$dispatch("delResid",row.id)
124
- this.load()
125
- })
126
- },
127
- // 下载
128
- downloadfile(filepath){
129
- var link = document.createElement('a');
130
- link.href = filepath;
131
- link.target='_blank'
132
- link.dispatchEvent(new MouseEvent('click'));
133
- },
134
- // 关闭文件上传对话框
135
- close () {
136
- this.showUpload = false
137
- this.showhighmeter = false
138
- // 将选的文件清空
139
- this.$refs.file.$el.querySelector('input').value = ''
140
- this.headers.fusetype = ''
141
- this.headers.fremarks = ''
142
- this.load()
143
- },
144
- // 查询
145
- async load() {
146
- let condition = ''
147
- if(!isEmpty(this.businessid)){
148
- condition = `f_businessid= '${this.headers.businessid}' `
149
- }else{
150
- condition = `f_blobid= '${this.headers.blodid}' `
151
- }
152
- if (!isEmpty(this.useType)) {
153
- condition += `and fusetype like '${this.useType}'`
154
- }
155
- if (!this.$login.f.rolesnames.includes('市场部报装') && !this.$login.f.rolesnames.includes('财务部报装') ){
156
- condition += ` and defname not in ('合同签订','报装缴费','市场部审核','财务审核')`
157
- }
158
- let http = new HttpResetClass()
159
- let data = {
160
- tablename: 't_files',
161
- condition: condition + ` order by f_uploaddate desc `
162
- }
163
- let getFile = await http.load('POST', 'rs/sql/apply_singleTable', {data: data}, {
164
- warnMsg: null,
165
- resolveMsg: null
166
- })
167
-
168
- for (var i = 0; i < getFile.data.length; i++) {
169
- // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
170
- if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
171
- getFile.data.splice(i,1)
172
- i--
173
- continue
174
- }
175
- let temp = getFile.data[i].f_downloadpath
176
- let URL = temp.substring(3)
177
- getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
178
- }
179
- for (var i = 0; i < getFile.data.length; i++) {
180
- if(getFile.data[i].f_downloadpath.includes('http:')){
181
- let temp = getFile.data[i].f_downloadpath
182
- getFile.data[i].f_downloadURL = temp
183
- console.log('打印',i)
184
- }else{
185
- let temp = getFile.data[i].f_downloadpath
186
- let URL = temp.substring(3)
187
- getFile.data[i].f_downloadURL ="http://" + location.host + "/" + URL
188
- }
189
-
190
- }
191
- this.fileInfoData = []
192
- this.fileInfoData = getFile.data
193
- },
194
- // 打开高拍仪
195
- upload () {
196
- if(this.showhighmeter){
197
- this.$refs.ltgao.closeVideo()
198
- }
199
- this.showhighmeter = !this.showhighmeter
200
- },
201
- // 高拍仪回调
202
- newPhoto(Imgbase64, fusetype, fremarks) {
203
- this.headers.fusetype = fusetype
204
- this.headers.fremarks = fremarks
205
-
206
- let form = new FormData()
207
- let xhr = new XMLHttpRequest()
208
- let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
209
- form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
210
- form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
211
- xhr.open("POST", "rs/file/uploadFile")
212
-
213
- if (this.headers) {
214
- for (var header in this.headers) {
215
- xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
216
- }
217
- }
218
- xhr.send(form)
219
- setTimeout(() => {
220
- this.close()
221
- }, 5000)
222
- },
223
- convertBase64ToBlob(base64String) {
224
- // 将base64解码
225
- var bytes = atob(base64String);
226
- //var bytes = base64;
227
- var bytesCode = new ArrayBuffer(bytes.length);
228
- // 转换为类型化数组
229
- var byteArray = new Uint8Array(bytesCode);
230
-
231
- // 将base64转换为ascii码
232
- for (var i = 0; i < bytes.length; i++) {
233
- byteArray[i] = bytes.charCodeAt(i);
234
- }
235
- // 生成Blob对象(文件对象)
236
- return new Blob([bytesCode], {type: 'image/jpeg'});
237
- },
238
- },
239
- computed: {
240
- typeOfUse () {
241
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建-使用类型')]
242
- }
243
- },
244
- events: {
245
- onFileUpload: function (file, res) {
246
- this.$dispatch("resid",res.id)
247
- this.headers.fremarks=''
248
- this.close()
249
- }
250
- }
251
- }
252
- </script>
253
-
254
- <style scoped>
255
- .clears{
256
- overflow:hidden;
257
- text-overflow:ellipsis;
258
- white-space:nowrap;
259
- }
260
- .showData {
261
- padding: 15px 10px 0px 10px;
262
- box-sizing: border-box;
263
- height: 230px;
264
- font-family: "微软雅黑";
265
- }
266
- .showData .item{
267
- padding-bottom: 10px;
268
- border-bottom: solid 1px #c1c1c1;
269
- }
270
- .left {
271
- padding-right: 10px;
272
- }
273
- .left img{
274
- height: 100%;
275
- width: 100%;
276
- }
277
- .right{
278
- height: 100%;
279
- /*display: -webkit-flex;*/
280
- /*display: flex;*/
281
- /*flex-direction: column;*/
282
- /*justify-content: space-around;*/
283
- }
284
- .item_btn{
285
- width: 80%;
286
- background-color: #6aa6e2;
287
- border-radius: 4px;
288
- color: #FFFFFF;
289
- font-family: PingFang;
290
- }
291
- </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="../../../components/image/pdf.jpg" alt="" />
31
+ <img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../../components/image/excel.jpg" alt="" />
32
+ <img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../../components/image/doc.jpg" alt="" />
33
+ <img v-if="row.f_filetype === 'dwg'" src="../../../components/image/dwg.jpg" alt="" />
34
+ <img v-if="row.f_filetype === 'txt'" src="../../../components/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
+ <high-meter :show.sync="showhighmeter" @photo-finish="newPhoto" v-if="showhighmeter"></high-meter>
54
+ <!-- <apply-high-meter
55
+ v-if="showhighmeter"
56
+ :show.sync="showhighmeter"
57
+ :isusetype="isusetype"
58
+ :isremark="isremark"
59
+ @photo-finish="newPhoto"
60
+ v-ref:ltgao
61
+ ></apply-high-meter>-->
62
+ <modal :show.sync="showUpload" v-ref:modal backdrop="false">
63
+ <header slot="modal-header" class="modal-header">
64
+ <button type="button" class="close" @click="close"><span class="glyphicon glyphicon-remove"></span></button>
65
+ <h4 class="modal-title" style="text-align: center">文件上传</h4>
66
+ </header>
67
+ <article slot="modal-body" class="modal-body form-horizontal">
68
+ <div class="form-group" style="text-align: center">
69
+ <file-upload class="my-file-uploader" :name="'myFile' + blodid"
70
+ action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
71
+ </div>
72
+ <div class="form-group" v-if="isusetype">
73
+ <label class="col-sm-2 control-label">文件类型:</label>
74
+ <div class="col-sm-10">
75
+ <input-select
76
+ class="select select_list"
77
+ :value.sync="headers.fusetype"
78
+ v-model="headers.fusetype"
79
+ :options="$appdata.getParam('报建-使用类型')"
80
+ :valueSingle="true"></input-select>
81
+ </div>
82
+ </div>
83
+ <div class="form-group" v-if="isremark">
84
+ <label class="col-sm-2 control-label">文件说明:</label>
85
+ <div class="col-sm-10">
86
+ <input class="form-control input_view" style=""
87
+ v-model="headers.fremarks"
88
+ :value="headers.fremarks"/>
89
+ </div>
90
+ </div>
91
+ </article>
92
+ <footer slot="modal-footer" class="modal-footer">
93
+ </footer>
94
+ </modal>
95
+ </template>
96
+
97
+ <script>
98
+ import {HttpResetClass} from 'vue-client'
99
+ import {isEmpty} from "../../../components/Util";
100
+ export default {
101
+ title: '附件',
102
+ props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch'],
103
+ data () {
104
+ return {
105
+ fileInfoData: [], // 数据库存储的文件记录对象数组
106
+ headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
107
+ showUpload: false, // 上传模态框控制
108
+ showhighmeter: false, // 高拍仪组件控制
109
+ useType: null
110
+ }
111
+ },
112
+ ready () {
113
+ this.headers.blodid = this.blodid
114
+ this.headers.businessid = this.businessid
115
+ this.headers.defname = this.defname
116
+ if (this.blodid || this.businessid) {
117
+ this.load()
118
+ }
119
+ },
120
+ methods: {
121
+ delet(index, row) {
122
+ this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
123
+ this.$dispatch("delResid",row.id)
124
+ this.load()
125
+ })
126
+ },
127
+ // 下载
128
+ downloadfile(filepath){
129
+ var link = document.createElement('a');
130
+ link.href = filepath;
131
+ link.target='_blank'
132
+ link.dispatchEvent(new MouseEvent('click'));
133
+ },
134
+ // 关闭文件上传对话框
135
+ close () {
136
+ this.showUpload = false
137
+ this.showhighmeter = false
138
+ // 将选的文件清空
139
+ this.$refs.file.$el.querySelector('input').value = ''
140
+ this.headers.fusetype = ''
141
+ this.headers.fremarks = ''
142
+ this.load()
143
+ },
144
+ // 查询
145
+ async load() {
146
+ let condition = ''
147
+ if(!isEmpty(this.businessid)){
148
+ condition = `f_businessid= '${this.headers.businessid}' `
149
+ }else{
150
+ condition = `f_blobid= '${this.headers.blodid}' `
151
+ }
152
+ if (!isEmpty(this.useType)) {
153
+ condition += `and fusetype like '${this.useType}'`
154
+ }
155
+ if (!this.$login.f.rolesnames.includes('市场部报装') && !this.$login.f.rolesnames.includes('财务部报装') ){
156
+ condition += ` and defname not in ('合同签订','报装缴费','市场部审核','财务审核')`
157
+ }
158
+ let http = new HttpResetClass()
159
+ let data = {
160
+ tablename: 't_files',
161
+ condition: condition + ` order by f_uploaddate desc `
162
+ }
163
+ let getFile = await http.load('POST', 'rs/sql/apply_singleTable', {data: data}, {
164
+ warnMsg: null,
165
+ resolveMsg: null
166
+ })
167
+
168
+ for (var i = 0; i < getFile.data.length; i++) {
169
+ // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
170
+ if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
171
+ getFile.data.splice(i,1)
172
+ i--
173
+ continue
174
+ }
175
+ let temp = getFile.data[i].f_downloadpath
176
+ let URL = temp.substring(3)
177
+ getFile.data[i].f_downloadURL = "https://" + location.host + "/" + URL
178
+ }
179
+ console.log('下载->>>',getFile.data,location.host)
180
+ for (var i = 0; i < getFile.data.length; i++) {
181
+ if(getFile.data[i].f_downloadpath.includes('https:')){
182
+ let temp = getFile.data[i].f_downloadpath
183
+ getFile.data[i].f_downloadURL = temp
184
+ }else{
185
+ let temp = getFile.data[i].f_downloadpath
186
+ let URL = temp.substring(3)
187
+ getFile.data[i].f_downloadURL ="https://" + location.host + "/" + URL
188
+ }
189
+
190
+ }
191
+ this.fileInfoData = []
192
+ this.fileInfoData = getFile.data
193
+ console.log('下载->>>',this.fileInfoData)
194
+ },
195
+ // 打开高拍仪
196
+ upload () {
197
+ if(this.showhighmeter){
198
+ this.$refs.ltgao.closeVideo()
199
+ }
200
+ this.showhighmeter = !this.showhighmeter
201
+ },
202
+ // 高拍仪回调
203
+ newPhoto(Imgbase64, fusetype, fremarks) {
204
+ this.headers.fusetype = fusetype
205
+ this.headers.fremarks = fremarks
206
+
207
+ let form = new FormData()
208
+ let xhr = new XMLHttpRequest()
209
+ let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
210
+ form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
211
+ form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
212
+ xhr.open("POST", "rs/file/uploadFile")
213
+
214
+ if (this.headers) {
215
+ for (var header in this.headers) {
216
+ xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
217
+ }
218
+ }
219
+ xhr.send(form)
220
+ setTimeout(() => {
221
+ this.close()
222
+ }, 5000)
223
+ },
224
+ convertBase64ToBlob(base64String) {
225
+ // 将base64解码
226
+ var bytes = atob(base64String);
227
+ //var bytes = base64;
228
+ var bytesCode = new ArrayBuffer(bytes.length);
229
+ // 转换为类型化数组
230
+ var byteArray = new Uint8Array(bytesCode);
231
+
232
+ // 将base64转换为ascii码
233
+ for (var i = 0; i < bytes.length; i++) {
234
+ byteArray[i] = bytes.charCodeAt(i);
235
+ }
236
+ // 生成Blob对象(文件对象)
237
+ return new Blob([bytesCode], {type: 'image/jpeg'});
238
+ },
239
+ },
240
+ computed: {
241
+ typeOfUse () {
242
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建-使用类型')]
243
+ }
244
+ },
245
+ events: {
246
+ onFileUpload: function (file, res) {
247
+ this.$dispatch("resid",res.id)
248
+ this.headers.fremarks=''
249
+ this.close()
250
+ }
251
+ }
252
+ }
253
+ </script>
254
+
255
+ <style scoped>
256
+ .clears{
257
+ overflow:hidden;
258
+ text-overflow:ellipsis;
259
+ white-space:nowrap;
260
+ }
261
+ .showData {
262
+ padding: 15px 10px 0px 10px;
263
+ box-sizing: border-box;
264
+ height: 230px;
265
+ font-family: "微软雅黑";
266
+ }
267
+ .showData .item{
268
+ padding-bottom: 10px;
269
+ border-bottom: solid 1px #c1c1c1;
270
+ }
271
+ .left {
272
+ padding-right: 10px;
273
+ }
274
+ .left img{
275
+ height: 100%;
276
+ width: 100%;
277
+ }
278
+ .right{
279
+ height: 100%;
280
+ /*display: -webkit-flex;*/
281
+ /*display: flex;*/
282
+ /*flex-direction: column;*/
283
+ /*justify-content: space-around;*/
284
+ }
285
+ .item_btn{
286
+ width: 80%;
287
+ background-color: #6aa6e2;
288
+ border-radius: 4px;
289
+ color: #FFFFFF;
290
+ font-family: PingFang;
291
+ }
292
+ </style>
@@ -129,6 +129,11 @@
129
129
  :value-single="true"
130
130
  close-on-select ></v-select>
131
131
  </div>
132
+ <div class="form-group col-sm-3">
133
+ <label class="font_normal_body">备注:</label>
134
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_apply_remarks"
135
+ condition="f_apply_remarks like '%{}%'" placeholder='备注'>
136
+ </div>
132
137
  </div>
133
138
  </div>
134
139
  </criteria>
@@ -289,7 +294,7 @@
289
294
  <td class="input-center" :style="stylecss">联系人:</td>
290
295
  <td class="input-center" :style="stylecss">{{userinfo.f_contact}}</td>
291
296
  </tr>
292
- <tr style="height: 80px;">
297
+ <tr style="height: 60px;">
293
298
  <td class="input-center" :style="stylecss">工程备注:</td>
294
299
  <td class="input-center" colspan="3" :style="'font-weight: bolder;'+stylecss">{{userinfo.f_apply_remarks}}</td>
295
300
  <td class="input-center" :style="stylecss">联系人电话:</td>
@@ -305,9 +310,9 @@
305
310
  </tr>
306
311
  <tr>
307
312
  <td class="input-center" :style="stylecss">用气设备:</td>
308
- <td class="input-center" colspan="3" :style="stylecss">{{f_gas_appliances}}</td>
313
+ <td class="input-center" colspan="2" :style="stylecss">{{f_gas_appliances}}</td>
309
314
  <td class="input-center" :style="stylecss">防盗卡号:</td>
310
- <td class="input-center" :style="stylecss"></td>
315
+ <td class="input-center" colspan="2" :style="stylecss"></td>
311
316
  </tr>
312
317
  <tr>
313
318
  <td class="input-center" :style="stylecss">派工人员:</td>
@@ -398,7 +403,7 @@
398
403
  <td class="input-center" :style="stylecss">联系人电话:</td>
399
404
  <td class="input-center" :style="stylecss">{{userinfo.f_standby_phone}}</td>
400
405
  </tr>
401
- <tr style="height: 80px;">
406
+ <tr style="height: 60px;">
402
407
  <td class="input-center" :style="stylecss">工程备注:</td>
403
408
  <td class="input-center" colspan="5" :style="'font-weight: bolder;'+stylecss">{{userinfo.f_apply_remarks}}</td>
404
409
  </tr>
@@ -412,9 +417,9 @@
412
417
  </tr>
413
418
  <tr>
414
419
  <td class="input-center" :style="stylecss">用气设备:</td>
415
- <td class="input-center" colspan="3" :style="stylecss">{{f_gas_appliances}}</td>
420
+ <td class="input-center" colspan="2" :style="stylecss">{{f_gas_appliances}}</td>
416
421
  <td class="input-center" :style="stylecss">防盗卡号:</td>
417
- <td class="input-center" :style="stylecss"></td>
422
+ <td class="input-center" colspan="2" :style="stylecss"></td>
418
423
  </tr>
419
424
  <tr>
420
425
  <td class="input-center" :style="stylecss">派工人员:</td>