apply-clients 6.0.3 → 6.0.4

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 (28) hide show
  1. package/build/dev-server.js +72 -72
  2. package/package.json +1 -1
  3. package/src/components/apply/base/rightview/InstallCardList2.vue +267 -268
  4. package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +77 -77
  5. package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +116 -116
  6. package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +1 -1
  7. package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
  8. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
  9. package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
  10. package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
  11. package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
  12. package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
  13. package/src/components/build/Install/Process/CustomerFile.vue +423 -423
  14. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
  15. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -749
  16. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
  17. package/src/components/build/Install/Process/MeterType.vue +379 -379
  18. package/src/components/build/Install/Process/PlaceControler.vue +304 -304
  19. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
  20. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
  21. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
  22. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
  23. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
  24. package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
  25. package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
  26. package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
  27. package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
  28. package/src/main.js +25 -25
@@ -1,423 +1,423 @@
1
- <template>
2
- <div class="form-group col-sm-12"
3
- style="background-color: #FFFFFF;height: auto;min-height:500px;border-radius: 8px">
4
- <div style="position: relative;height: 40px;width:70%;margin: 30px auto;">
5
- <div class="inpGroup">
6
- <input v-model="tempremarks" class="inp" placeholder="文件说明"/>
7
- </div>
8
- <!--<div class="inp_button" type="button" @click="upload()">拍照</div>-->
9
- <v-select :is-all-line="true" :value.sync="tempusetype" placeholder="使用类型" class="inp_button2" :options="foptions"
10
- v-model="tempusetype"></v-select>
11
- <div class="inp_button" type="button" @click="fileUpload()">本地上传</div>
12
- </div>
13
- <div class="showList col-sm-12" style="padding: 20px">
14
-
15
- <div class="col-sm-6" style="padding:10px 10px 0px 10px;height: auto;box-sizing: border-box"
16
- v-for="row in fileinfodata">
17
- <div class="showData">
18
- <div class="left">
19
- <img :src="row.f_downloadURL"/>
20
- </div>
21
- <div class="right">
22
- <!--<div class="top">-->
23
- <!--<div class="topleft">用户ID:&nbsp;<span>{{row.f_blobid}}</span></div>-->
24
- <!--<div class="topright">{{row.f_uploaddate}}</div>-->
25
- <!--</div>-->
26
- <div class="top">
27
- <div class="topleft">使用类型:&nbsp;<span>{{row.f_usetype}}</span></div>
28
- </div>
29
- <div class="top">
30
- <div class="topleft">操作员:&nbsp;<span>{{row.f_username}}</span></div>
31
- </div>
32
- <div class="text">文件说明:&nbsp;{{row.f_remarks}}</div>
33
- <ul class="buttonList">
34
- <li>
35
- <a target="_blank" :href="row.f_downloadURL">预览</a>
36
- </li>
37
- <!--<li>-->
38
- <!--<a :href="row.f_downloadURL" :download="row.filename">下载</a>-->
39
- <!--</li>-->
40
- <!--<li>修改</li>
41
- <li>下载</li>-->
42
- <!--<li>删除</li>-->
43
- </ul>
44
- </div>
45
- </div>
46
- </div>
47
-
48
- </div>
49
- </div>
50
- <modal :show.sync="show" v-ref:modal backdrop="false">
51
- <header slot="modal-header" class="modal-header">
52
- <button type="button" class="close" @click="close"><span>&times;</span></button>
53
- <h4 class="modal-title">文件上传</h4>
54
- </header>
55
- <article slot="modal-body" class="modal-body">
56
- <div class="form-group">
57
- <file-upload class="my-file-uploader" name="myFile33"
58
- action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
59
- </div>
60
- </article>
61
- <footer slot="modal-footer" class="modal-footer">
62
- <!-- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
63
-
64
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button> -->
65
- </footer>
66
- </modal>
67
- </template>
68
- <script>
69
-
70
- export default {
71
- title: "附件",
72
- props: ['selectdata'],
73
- data() {
74
- return {
75
- foptions: this.$appdata.getParam('使用类型'),
76
- // options:[{label: '工程材料计划', value: '工程材料计划'}, {label:'设计方案', value:'设计方案'}],
77
- selectdata: {f_process_id: null},
78
- model: {},
79
- href: '',
80
- fileinfodata: [],
81
- headers: {'username': '', 'blodid': '','f_usetype':'','f_remarks':''},
82
- show: false,
83
- imgadd: '/images/mainicon/adddevice.png',
84
- tempusetype: '',
85
- tempremarks: '',
86
- timeoutHandle: '',
87
- username: '',
88
- blodid: '',
89
- host: location.host,
90
- tempindex: null
91
- }
92
- },
93
- methods: {
94
- afterCamera() {
95
- let data = {
96
- tablename: 't_files',
97
- parameters: {
98
- id: res.id,
99
- f_usetype: this.tempusetype[0],
100
- f_remarks: this.tempremarks
101
- }
102
- }
103
- this.tempremarks=null
104
- this.$resetpost('rs/logic/saveentity', {data: data}, {resolveMsg: null, rejectMsg: '文件备注上传失败'}).then((res) => {
105
- console.log('dddddddd', this)
106
- this.close()
107
- })
108
- },
109
- GetRequest() {
110
- var url = location.search;
111
- var theRequest = new Object();
112
- if(url.indexOf("?") != -1) {
113
- var str = url.substr(1);
114
- let strs = str.split("&");
115
- for(var i = 0; i < strs.length; i++) {
116
- theRequest[strs[i].split("=")[0]] = decodeURIComponent(strs[i].split("=")[1]);
117
- }
118
- }
119
- return theRequest;
120
- },
121
- upload() {
122
- console.log(JSON.stringify(this.selectdata.f_process_id))
123
- // 直接本地调用
124
- // location.href=this.href
125
- // 调用卡服务启动高拍仪
126
- let data = {
127
- f_username: this.username,
128
- f_blobid: this.blodid,
129
- f_usetype: this.tempusetype[0]
130
- }
131
- data = JSON.stringify(data)
132
- this.$resetpost('Camera/'+data.toString(), {data:null}, {resolveMsg: null, rejectMsg: '文件备注上传失败'}).then((res) => {
133
- console.log("调用卡服务启动高拍仪成功")
134
- })
135
- },
136
- load(self) {
137
- if (!self.selectdata)
138
- return
139
- let data = {
140
- tablename: 't_files',
141
- condition: 'f_blobid=\'' + self.selectdata.f_process_id + '\''
142
- }
143
- self.$resetpost('rs/sql/singleTable', {data: data}, {
144
- warnMsg: null,
145
- resolveMsg: null,
146
- rejectMsg: '查询错误!',
147
- type: 'json',
148
- silent: true
149
- })
150
- .then((res) => {
151
- console.log("读取请求发送成功")
152
- console.log(JSON.stringify(res))
153
- // 查询的数组和现在的数组‘长度’不一致就刷新
154
- if (res.data.length != self.fileinfodata.length) {
155
- for (var i = 0; i < res.data.length; i++) {
156
- if((res.data[i].f_remarks==null&&res.data[i].f_usetype==null)){
157
- res.data.splice(i,1)
158
- i--
159
- continue
160
- }
161
- let temp=''
162
- temp = res.data[i].f_downloadpath
163
- let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
164
- res.data[i].f_downloadURL = "http://" + this.host + "/" + URL
165
- res.data[i].f_uploaddate = self.formatdate(res.data[i].f_uploaddate)
166
- }
167
- self.fileinfodata = []
168
- self.fileinfodata = res.data
169
- }
170
- })
171
- },
172
- // 数据库时间格式化
173
- formatdate(val){
174
- //45012367890123
175
- //20180914151603 : 2018-09-14 15:16:03
176
- if(val.length!=14)
177
- return
178
- let year = val.substr(0,4)
179
- let month = val.substr(4,2)
180
- let day = val.substr(6,2)
181
- let hour = val.substr(8,2)
182
- let min = val.substr(10,2)
183
- let second = val.substr(12,2)
184
- return year+'-'+month+'-'+day+' '+hour+':'+min+':'+second
185
- },
186
- // 父组件更新子组件属性
187
- updateData(val) {
188
- this.selectdata = val
189
- this.headers.username=val.f_apply_operator
190
- },
191
- // 下载
192
- fileDownload(id) {
193
- console.log("id为" + id)
194
- this.$resetget('rs/file/getfile/' + id).then((res) => {
195
- console.log("下载请求发送成功")
196
- })
197
- },
198
- // 打开文件上传对话框
199
- fileUpload() {
200
- if (this.tempremarks) {
201
- this.show = true
202
- // this.tempremarks = this.fileinfodata[index].f_remarks
203
- } else {
204
- this.$showMessage("请先填写文件说明")
205
- }
206
- },
207
- // 关闭文件上传对话框
208
- close() {
209
- // this.show = false
210
- if (this.show) {
211
- this.show = false
212
- // 将选的文件清空
213
- let ddd = new Document()
214
- ddd = this.$refs.file.$el.querySelector('input').files[0]
215
- console.log("hahaha", ddd)
216
- this.$refs.file.$el.querySelector('input').value = ''
217
- }
218
- }
219
- },
220
- ready() {
221
- console.log("开始")
222
- this.load(this)
223
- },
224
- watch: {
225
- 'selectdata'() {
226
- this.headers.blodid = this.selectdata.f_process_id
227
- this.load(this)
228
- },
229
- deep: true
230
- },
231
- events: {
232
- onFileUpload: function (file, res) {
233
- console.log("上传完毕")
234
- let data = {
235
- tablename: 't_files',
236
- parameters: {
237
- id: res.id,
238
- f_usetype: this.tempusetype[0],
239
- f_remarks: this.tempremarks
240
- }
241
- }
242
- this.tempremarks=null
243
- this.$resetpost('rs/logic/saveentity', {data: data}, {resolveMsg: null, rejectMsg: '文件备注上传失败'}).then((res) => {
244
- console.log('dddddddd', this)
245
- this.close()
246
- this.load(this)
247
- })
248
- }
249
- }
250
- }
251
- </script>
252
- <style>
253
-
254
- *{
255
- padding: 0px;
256
- margin: 0px;
257
- }
258
-
259
- .inpGroup {
260
- position: absolute;
261
- left: 0px;
262
- right: 220px;
263
- height: 40px;
264
- font-family: "微软雅黑";
265
- }
266
-
267
- .inp {
268
- box-sizing: border-box;
269
- width: 100%;
270
- padding: 0px 10px;
271
- height: 40px;
272
- font-size: 18px;
273
- line-height: 36px;
274
- color: #999999;
275
- border: solid 1px #c1c1c1;
276
- border-radius: 2px;
277
- background: none;
278
- outline: none;
279
- }
280
-
281
- .inp::-webkit-input-placeholder {
282
- color: #999999;
283
- }
284
-
285
- .inp_button {
286
- float: right;
287
- margin-left: 10px;
288
- /* position: absolute;
289
- right: 35px;
290
- height: 40px;*/
291
- width: 100px;
292
- font-size: 18px;
293
- line-height: 40px;
294
- color: #ffffff;
295
- text-align: center;
296
- background-color: rgb(90, 180, 90);
297
- border-radius: 4px;
298
- cursor: pointer;
299
- }
300
- .inp_button2 {
301
- float: right;
302
- margin-left: 10px;
303
- /* position: absolute;
304
- right: 35px;
305
- height: 40px;*/
306
- width: auto;
307
- font-size: 16px;
308
- line-height: 40px;
309
- color: #ffffff;
310
- text-align: center;
311
- border-radius: 4px;
312
- cursor: pointer;
313
-
314
- }
315
- .inp_button2 button{
316
- width: 100%;
317
- height: 100%;
318
- }
319
- .inp_button:hover {
320
- background-color: rgb(80, 150, 80);
321
- }
322
-
323
- .inp_button:active {
324
- font-size: 20px;
325
- background-color: rgb(150, 200, 150);
326
- }
327
-
328
- .showData {
329
- height: auto;
330
- position: relative;
331
- padding-bottom: 7px;
332
- border-bottom: solid 1px #c1c1c1;
333
- font-family: "微软雅黑";
334
- }
335
-
336
- .showData .left {
337
- height: 120px;
338
- width: 140px;
339
- background-color: rgb(240, 240, 240);
340
- overflow: hidden;
341
- line-height: 120px;
342
- }
343
-
344
- .showData .left img {
345
- width: 100%;
346
- height: auto;
347
- }
348
-
349
- .showData .right {
350
- position: absolute;
351
- top: 0px;
352
- left: 150px;
353
- right: 0px;
354
- height: 120px;
355
- }
356
-
357
- .showData .right .top {
358
- height: 20px;
359
- font-size: 14px;
360
- line-height: 20px;
361
- color: rgb(98, 98, 98);
362
- overflow: hidden;
363
- }
364
-
365
- .showData .right .top .topleft {
366
- float: left;
367
- height: 20px;
368
- margin-right: 15px;
369
- }
370
-
371
- .showData .right .top .topright {
372
- float: right;
373
- margin-left: 15px;
374
- }
375
-
376
- .showData .right .text {
377
- word-wrap: break-word;
378
- overflow: hidden;
379
- height: 60px;
380
- font-size: 14px;
381
- color: #999999;
382
- line-height: 30px;
383
- }
384
-
385
- .showData .right ul {
386
- height: 20px;
387
- padding: 0px;
388
- margin: 0px;
389
- font-size: 0px;
390
- }
391
-
392
- .showData .right ul li {
393
- display: inline-block;
394
- height: 18px;
395
- list-style: none;
396
- font-size: 14px;
397
- line-height: 18px;
398
- color: #FFFFFF;
399
- background-color: #5bb85d;
400
- padding: 0px 7px;
401
- margin-right: 11px;
402
- cursor: pointer;
403
- }
404
-
405
- .showData .right ul li:hover {
406
- background-color: rgb(80, 150, 80);
407
- }
408
-
409
- .showData .right ul li:active {
410
- background-color: rgb(150, 200, 150);
411
- }
412
-
413
- .showData .right ul li a {
414
- width: 100%;
415
- height: 100%;
416
- text-decoration: none;
417
- color: #FFFFFF;
418
- }
419
-
420
- body {
421
- color: black;
422
- }
423
- </style>
1
+ <template>
2
+ <div class="form-group col-sm-12"
3
+ style="background-color: #FFFFFF;height: auto;min-height:500px;border-radius: 8px">
4
+ <div style="position: relative;height: 40px;width:70%;margin: 30px auto;">
5
+ <div class="inpGroup">
6
+ <input v-model="tempremarks" class="inp" placeholder="文件说明"/>
7
+ </div>
8
+ <!--<div class="inp_button" type="button" @click="upload()">拍照</div>-->
9
+ <v-select :is-all-line="true" :value.sync="tempusetype" placeholder="使用类型" class="inp_button2" :options="foptions"
10
+ v-model="tempusetype"></v-select>
11
+ <div class="inp_button" type="button" @click="fileUpload()">本地上传</div>
12
+ </div>
13
+ <div class="showList col-sm-12" style="padding: 20px">
14
+
15
+ <div class="col-sm-6" style="padding:10px 10px 0px 10px;height: auto;box-sizing: border-box"
16
+ v-for="row in fileinfodata">
17
+ <div class="showData">
18
+ <div class="left">
19
+ <img :src="row.f_downloadURL"/>
20
+ </div>
21
+ <div class="right">
22
+ <!--<div class="top">-->
23
+ <!--<div class="topleft">用户ID:&nbsp;<span>{{row.f_blobid}}</span></div>-->
24
+ <!--<div class="topright">{{row.f_uploaddate}}</div>-->
25
+ <!--</div>-->
26
+ <div class="top">
27
+ <div class="topleft">使用类型:&nbsp;<span>{{row.f_usetype}}</span></div>
28
+ </div>
29
+ <div class="top">
30
+ <div class="topleft">操作员:&nbsp;<span>{{row.f_username}}</span></div>
31
+ </div>
32
+ <div class="text">文件说明:&nbsp;{{row.f_remarks}}</div>
33
+ <ul class="buttonList">
34
+ <li>
35
+ <a target="_blank" :href="row.f_downloadURL">预览</a>
36
+ </li>
37
+ <!--<li>-->
38
+ <!--<a :href="row.f_downloadURL" :download="row.filename">下载</a>-->
39
+ <!--</li>-->
40
+ <!--<li>修改</li>
41
+ <li>下载</li>-->
42
+ <!--<li>删除</li>-->
43
+ </ul>
44
+ </div>
45
+ </div>
46
+ </div>
47
+
48
+ </div>
49
+ </div>
50
+ <modal :show.sync="show" v-ref:modal backdrop="false">
51
+ <header slot="modal-header" class="modal-header">
52
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
53
+ <h4 class="modal-title">文件上传</h4>
54
+ </header>
55
+ <article slot="modal-body" class="modal-body">
56
+ <div class="form-group">
57
+ <file-upload class="my-file-uploader" name="myFile33"
58
+ action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
59
+ </div>
60
+ </article>
61
+ <footer slot="modal-footer" class="modal-footer">
62
+ <!-- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
63
+
64
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button> -->
65
+ </footer>
66
+ </modal>
67
+ </template>
68
+ <script>
69
+
70
+ export default {
71
+ title: "附件",
72
+ props: ['selectdata'],
73
+ data() {
74
+ return {
75
+ foptions: this.$appdata.getParam('使用类型'),
76
+ // options:[{label: '工程材料计划', value: '工程材料计划'}, {label:'设计方案', value:'设计方案'}],
77
+ selectdata: {f_process_id: null},
78
+ model: {},
79
+ href: '',
80
+ fileinfodata: [],
81
+ headers: {'username': '', 'blodid': '','f_usetype':'','f_remarks':''},
82
+ show: false,
83
+ imgadd: '/images/mainicon/adddevice.png',
84
+ tempusetype: '',
85
+ tempremarks: '',
86
+ timeoutHandle: '',
87
+ username: '',
88
+ blodid: '',
89
+ host: location.host,
90
+ tempindex: null
91
+ }
92
+ },
93
+ methods: {
94
+ afterCamera() {
95
+ let data = {
96
+ tablename: 't_files',
97
+ parameters: {
98
+ id: res.id,
99
+ f_usetype: this.tempusetype[0],
100
+ f_remarks: this.tempremarks
101
+ }
102
+ }
103
+ this.tempremarks=null
104
+ this.$resetpost('rs/logic/saveentity', {data: data}, {resolveMsg: null, rejectMsg: '文件备注上传失败'}).then((res) => {
105
+ console.log('dddddddd', this)
106
+ this.close()
107
+ })
108
+ },
109
+ GetRequest() {
110
+ var url = location.search;
111
+ var theRequest = new Object();
112
+ if(url.indexOf("?") != -1) {
113
+ var str = url.substr(1);
114
+ let strs = str.split("&");
115
+ for(var i = 0; i < strs.length; i++) {
116
+ theRequest[strs[i].split("=")[0]] = decodeURIComponent(strs[i].split("=")[1]);
117
+ }
118
+ }
119
+ return theRequest;
120
+ },
121
+ upload() {
122
+ console.log(JSON.stringify(this.selectdata.f_process_id))
123
+ // 直接本地调用
124
+ // location.href=this.href
125
+ // 调用卡服务启动高拍仪
126
+ let data = {
127
+ f_username: this.username,
128
+ f_blobid: this.blodid,
129
+ f_usetype: this.tempusetype[0]
130
+ }
131
+ data = JSON.stringify(data)
132
+ this.$resetpost('Camera/'+data.toString(), {data:null}, {resolveMsg: null, rejectMsg: '文件备注上传失败'}).then((res) => {
133
+ console.log("调用卡服务启动高拍仪成功")
134
+ })
135
+ },
136
+ load(self) {
137
+ if (!self.selectdata)
138
+ return
139
+ let data = {
140
+ tablename: 't_files',
141
+ condition: 'f_blobid=\'' + self.selectdata.f_process_id + '\''
142
+ }
143
+ self.$resetpost('rs/sql/applysingleTable', {data: data}, {
144
+ warnMsg: null,
145
+ resolveMsg: null,
146
+ rejectMsg: '查询错误!',
147
+ type: 'json',
148
+ silent: true
149
+ })
150
+ .then((res) => {
151
+ console.log("读取请求发送成功")
152
+ console.log(JSON.stringify(res))
153
+ // 查询的数组和现在的数组‘长度’不一致就刷新
154
+ if (res.data.length != self.fileinfodata.length) {
155
+ for (var i = 0; i < res.data.length; i++) {
156
+ if((res.data[i].f_remarks==null&&res.data[i].f_usetype==null)){
157
+ res.data.splice(i,1)
158
+ i--
159
+ continue
160
+ }
161
+ let temp=''
162
+ temp = res.data[i].f_downloadpath
163
+ let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
164
+ res.data[i].f_downloadURL = "http://" + this.host + "/" + URL
165
+ res.data[i].f_uploaddate = self.formatdate(res.data[i].f_uploaddate)
166
+ }
167
+ self.fileinfodata = []
168
+ self.fileinfodata = res.data
169
+ }
170
+ })
171
+ },
172
+ // 数据库时间格式化
173
+ formatdate(val){
174
+ //45012367890123
175
+ //20180914151603 : 2018-09-14 15:16:03
176
+ if(val.length!=14)
177
+ return
178
+ let year = val.substr(0,4)
179
+ let month = val.substr(4,2)
180
+ let day = val.substr(6,2)
181
+ let hour = val.substr(8,2)
182
+ let min = val.substr(10,2)
183
+ let second = val.substr(12,2)
184
+ return year+'-'+month+'-'+day+' '+hour+':'+min+':'+second
185
+ },
186
+ // 父组件更新子组件属性
187
+ updateData(val) {
188
+ this.selectdata = val
189
+ this.headers.username=val.f_apply_operator
190
+ },
191
+ // 下载
192
+ fileDownload(id) {
193
+ console.log("id为" + id)
194
+ this.$resetget('rs/file/getfile/' + id).then((res) => {
195
+ console.log("下载请求发送成功")
196
+ })
197
+ },
198
+ // 打开文件上传对话框
199
+ fileUpload() {
200
+ if (this.tempremarks) {
201
+ this.show = true
202
+ // this.tempremarks = this.fileinfodata[index].f_remarks
203
+ } else {
204
+ this.$showMessage("请先填写文件说明")
205
+ }
206
+ },
207
+ // 关闭文件上传对话框
208
+ close() {
209
+ // this.show = false
210
+ if (this.show) {
211
+ this.show = false
212
+ // 将选的文件清空
213
+ let ddd = new Document()
214
+ ddd = this.$refs.file.$el.querySelector('input').files[0]
215
+ console.log("hahaha", ddd)
216
+ this.$refs.file.$el.querySelector('input').value = ''
217
+ }
218
+ }
219
+ },
220
+ ready() {
221
+ console.log("开始")
222
+ this.load(this)
223
+ },
224
+ watch: {
225
+ 'selectdata'() {
226
+ this.headers.blodid = this.selectdata.f_process_id
227
+ this.load(this)
228
+ },
229
+ deep: true
230
+ },
231
+ events: {
232
+ onFileUpload: function (file, res) {
233
+ console.log("上传完毕")
234
+ let data = {
235
+ tablename: 't_files',
236
+ parameters: {
237
+ id: res.id,
238
+ f_usetype: this.tempusetype[0],
239
+ f_remarks: this.tempremarks
240
+ }
241
+ }
242
+ this.tempremarks=null
243
+ this.$resetpost('rs/logic/saveentity', {data: data}, {resolveMsg: null, rejectMsg: '文件备注上传失败'}).then((res) => {
244
+ console.log('dddddddd', this)
245
+ this.close()
246
+ this.load(this)
247
+ })
248
+ }
249
+ }
250
+ }
251
+ </script>
252
+ <style>
253
+
254
+ *{
255
+ padding: 0px;
256
+ margin: 0px;
257
+ }
258
+
259
+ .inpGroup {
260
+ position: absolute;
261
+ left: 0px;
262
+ right: 220px;
263
+ height: 40px;
264
+ font-family: "微软雅黑";
265
+ }
266
+
267
+ .inp {
268
+ box-sizing: border-box;
269
+ width: 100%;
270
+ padding: 0px 10px;
271
+ height: 40px;
272
+ font-size: 18px;
273
+ line-height: 36px;
274
+ color: #999999;
275
+ border: solid 1px #c1c1c1;
276
+ border-radius: 2px;
277
+ background: none;
278
+ outline: none;
279
+ }
280
+
281
+ .inp::-webkit-input-placeholder {
282
+ color: #999999;
283
+ }
284
+
285
+ .inp_button {
286
+ float: right;
287
+ margin-left: 10px;
288
+ /* position: absolute;
289
+ right: 35px;
290
+ height: 40px;*/
291
+ width: 100px;
292
+ font-size: 18px;
293
+ line-height: 40px;
294
+ color: #ffffff;
295
+ text-align: center;
296
+ background-color: rgb(90, 180, 90);
297
+ border-radius: 4px;
298
+ cursor: pointer;
299
+ }
300
+ .inp_button2 {
301
+ float: right;
302
+ margin-left: 10px;
303
+ /* position: absolute;
304
+ right: 35px;
305
+ height: 40px;*/
306
+ width: auto;
307
+ font-size: 16px;
308
+ line-height: 40px;
309
+ color: #ffffff;
310
+ text-align: center;
311
+ border-radius: 4px;
312
+ cursor: pointer;
313
+
314
+ }
315
+ .inp_button2 button{
316
+ width: 100%;
317
+ height: 100%;
318
+ }
319
+ .inp_button:hover {
320
+ background-color: rgb(80, 150, 80);
321
+ }
322
+
323
+ .inp_button:active {
324
+ font-size: 20px;
325
+ background-color: rgb(150, 200, 150);
326
+ }
327
+
328
+ .showData {
329
+ height: auto;
330
+ position: relative;
331
+ padding-bottom: 7px;
332
+ border-bottom: solid 1px #c1c1c1;
333
+ font-family: "微软雅黑";
334
+ }
335
+
336
+ .showData .left {
337
+ height: 120px;
338
+ width: 140px;
339
+ background-color: rgb(240, 240, 240);
340
+ overflow: hidden;
341
+ line-height: 120px;
342
+ }
343
+
344
+ .showData .left img {
345
+ width: 100%;
346
+ height: auto;
347
+ }
348
+
349
+ .showData .right {
350
+ position: absolute;
351
+ top: 0px;
352
+ left: 150px;
353
+ right: 0px;
354
+ height: 120px;
355
+ }
356
+
357
+ .showData .right .top {
358
+ height: 20px;
359
+ font-size: 14px;
360
+ line-height: 20px;
361
+ color: rgb(98, 98, 98);
362
+ overflow: hidden;
363
+ }
364
+
365
+ .showData .right .top .topleft {
366
+ float: left;
367
+ height: 20px;
368
+ margin-right: 15px;
369
+ }
370
+
371
+ .showData .right .top .topright {
372
+ float: right;
373
+ margin-left: 15px;
374
+ }
375
+
376
+ .showData .right .text {
377
+ word-wrap: break-word;
378
+ overflow: hidden;
379
+ height: 60px;
380
+ font-size: 14px;
381
+ color: #999999;
382
+ line-height: 30px;
383
+ }
384
+
385
+ .showData .right ul {
386
+ height: 20px;
387
+ padding: 0px;
388
+ margin: 0px;
389
+ font-size: 0px;
390
+ }
391
+
392
+ .showData .right ul li {
393
+ display: inline-block;
394
+ height: 18px;
395
+ list-style: none;
396
+ font-size: 14px;
397
+ line-height: 18px;
398
+ color: #FFFFFF;
399
+ background-color: #5bb85d;
400
+ padding: 0px 7px;
401
+ margin-right: 11px;
402
+ cursor: pointer;
403
+ }
404
+
405
+ .showData .right ul li:hover {
406
+ background-color: rgb(80, 150, 80);
407
+ }
408
+
409
+ .showData .right ul li:active {
410
+ background-color: rgb(150, 200, 150);
411
+ }
412
+
413
+ .showData .right ul li a {
414
+ width: 100%;
415
+ height: 100%;
416
+ text-decoration: none;
417
+ color: #FFFFFF;
418
+ }
419
+
420
+ body {
421
+ color: black;
422
+ }
423
+ </style>