apply-clients 5.0.35-8 → 5.0.35-80

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 (51) hide show
  1. package/.eslintrc.js +16 -16
  2. package/package.json +3 -3
  3. package/src/AndroidApp.vue +28 -28
  4. package/src/android.js +18 -18
  5. package/src/apply.js +14 -1
  6. package/src/components/app_apply/ApplyDownList.vue +168 -168
  7. package/src/components/app_apply/ApplyInfo.vue +56 -56
  8. package/src/components/app_apply/ApplyListUpload.vue +268 -268
  9. package/src/components/app_apply/ApplyToDoList.vue +2820 -243
  10. package/src/components/app_apply/Gongcheng.vue +3631 -0
  11. package/src/components/app_apply/OneToMany.vue +194 -0
  12. package/src/components/app_apply/PlaceControler.vue +299 -273
  13. package/src/components/app_apply/ServiceControl.vue +736 -341
  14. package/src/components/app_apply/ServiceView.vue +383 -383
  15. package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
  16. package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
  17. package/src/components/app_apply/ezhou/MinYong.vue +92 -92
  18. package/src/components/app_apply/ezhou/ServiceView.vue +808 -626
  19. package/src/components/image/doc.jpg +0 -0
  20. package/src/components/image/dwg.png +0 -0
  21. package/src/components/image/dxf.png +0 -0
  22. package/src/components/image/excel.jpg +0 -0
  23. package/src/components/image/pdf.jpg +0 -0
  24. package/src/components/product/Common/ApplyValidateBill.vue +13 -6
  25. package/src/components/product/Common/PrintBill.vue +121 -120
  26. package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
  27. package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
  28. package/src/components/product/EngineeringManagement/EngineeringSelect.vue +587 -0
  29. package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
  30. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +130 -0
  31. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +350 -0
  32. package/src/components/product/Function/InstallInfoSelect.vue +3 -2
  33. package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
  34. package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
  35. package/src/components/product/Function/functions/BuyerMessage.vue +1 -1
  36. package/src/components/product/Function/functions/InstallFee.vue +581 -345
  37. package/src/components/product/Process/ExplorationSelect.vue +9 -5
  38. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
  39. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +124 -37
  40. package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
  41. package/src/components/product/Process/Processes/Service/ServiceControl.vue +368 -21
  42. package/src/components/product/ServiceView.vue +16 -6
  43. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +53 -6
  44. package/src/components/product/Supervisory/SupervisoryList.vue +57 -5
  45. package/src/components/product/applyReport/ApplyReport.vue +205 -0
  46. package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
  47. package/src/components/product/stopInfo/ApplyStopInfo.vue +2 -1
  48. package/src/ezhouAndroid.js +48 -45
  49. package/src/index.js +8 -8
  50. package/src/main.js +32 -32
  51. package/src/plugins/commonService.js +11 -7
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -13,6 +13,7 @@
13
13
 
14
14
  let http = new HttpResetClass()
15
15
  let param = {
16
+ f_process_id:self.data.f_process_id,
16
17
  f_bill_user: self.$login.f.name, // 票据使用人
17
18
  f_bill_type: self.data.f_bill_type, // 票据类型
18
19
  f_filialeids: self.$login.f.f_orgids, //所属分公司
@@ -37,17 +38,23 @@
37
38
  }
38
39
  },
39
40
  props: ['data','show'],
40
- ready () {
41
-
41
+ async ready () {
42
+ /*debugger
42
43
  console.log(this.data.f_bill_type)
43
44
  if (this.data.f_bill_type) {
44
- getCurrentBill(this)
45
+ await getCurrentBill(this)
46
+ console.log('打印参数',this.data.f_process_id)
45
47
 
46
- }
48
+ }*/
47
49
  },
48
50
  watch : {
49
- 'show' (val) {
50
- getCurrentBill(this)
51
+ data:{
52
+ deep:true,
53
+ immediate:true,
54
+ async handler(){
55
+ console.log('1111155555')
56
+ await getCurrentBill(this)
57
+ }
51
58
  }
52
59
  }
53
60
  }
@@ -1,120 +1,121 @@
1
- <template>
2
- <div class="auto form-horizontal" >
3
- <modal :show.sync="show" v-ref:modal large backdrop="false">
4
- <header slot="modal-header" class="modal-header">
5
- <h3 style="color:black" class="modal-title" >{{billConfig.billtype}}</h3>
6
- <button type="button" class="close" @click="closebuyerinfo"><span>&times;</span></button>
7
- </header>
8
- <article slot="modal-body" class="modal-body">
9
- <!-- <div v-if="bill.data">-->
10
- <!-- {{{bill.data}}}-->
11
- <!-- </div>-->
12
- <validator name='v'>
13
- <form class="form-horizontal select-overspread">
14
- <div class="row" style="display: flex;justify-content: center;" id='normal-bill' v-if="bill.data">
15
- {{{bill.data}}}
16
- </div>
17
- </form>
18
- </validator>
19
- </article>
20
- <footer slot="modal-footer" class="modal-footer">
21
- <div v-if="billConfig.hasBillManage">
22
- <div class="col-sm-2" >
23
- <span><strong>发票号:{{model.f_using_number}}</strong></span>
24
- </div>
25
- </div>
26
- <button type="button" class="btn btn-success" @click='print()'>打印</button>
27
- <report-print id='normal-bill' top='15mm' left='5mm' width='90%' height='70%' :notrepeat="false" :showbtn="false" v-ref:reportprint></report-print>
28
- <button type="button" class="btn btn-default" @click='cancel()' v-if="!billConfig.hasBillManage">取消</button>
29
- </footer>
30
- </modal>
31
- </div>
32
- </template>
33
- <script>
34
- import { DataModel } from 'vue-client'
35
- import Vue from "vue";
36
-
37
- let getBillData = async function(self, val) {
38
- self.bill = new DataModel(self.billData.url, {reprint: "'正常'"})
39
- await self.bill.search(self.data.chargeid)
40
- // self.bill.condition=
41
- // 获取发票号
42
- self.model.f_using_number = self.billData.bill.number
43
- console.log(self.bill)
44
- }
45
-
46
- export default {
47
- title: '收费发票',
48
- data () {
49
- return {
50
- model: {
51
- f_using_number: null
52
- },
53
- bill: {},
54
- messShow: false
55
- }
56
- },
57
- props: ['show', 'data', 'billData', 'billConfig','titleName'],
58
- ready () {
59
- console.log('打票!!!!!!!!!!!!!!!!!')
60
-
61
-
62
- },
63
- methods: {
64
- closebuyerinfo(){
65
- this.show=false;
66
- },
67
- cancel () {
68
- this.$dispatch('toggle')
69
- },
70
-
71
-
72
- async print () {
73
- // 更新系统发票
74
- this.data.f_operator=this.$login.f.name,
75
- this.data.f_filiale= this.$login.f.f_fengongsi,
76
- this.data.f_outlets= this.$login.f.f_parentname,
77
- this.data.f_orgstr=this.$login.f.orgpathstr,
78
- this.data.f_filialeids=this.$login.f.f_orgids
79
-
80
- try {
81
- if (this.billConfig.hasBillManage) {
82
- console.log("进入hasBillManage====================================")
83
- await this.$commonService.openPaperBill(this.data.chargeid, this.data.f_bill_type, this.billConfig.billType, this.billData.bill, '正常',this.data.f_operator,this.data.f_filiale,this.data.f_outlets,this.data.f_orgstr,this.data.f_filialeids)
84
- }
85
- //票据打印!!!!!!!!!!!!!!!!!!!!
86
- this.$refs.reportprint.print()
87
- this.$dispatch('selfsearch')
88
- this.$parent.model.f_charge_money=0
89
- this.$parent.model.f_amount_words=0
90
- this.$parent.model.f_amount_words=0
91
- this.show=false
92
- } catch (error) {
93
- this.$dispatch('refresh')
94
- }
95
- }
96
- },
97
- watch: {
98
- 'show' (val) {
99
- if (val) {
100
- getBillData(this, val).then(() => {
101
- }).catch((error) => {
102
-
103
- this.$emit('error', error)
104
- })
105
- }
106
- }
107
- },
108
- events: {
109
- 'print' () {
110
- this.$dispatch('printok', '发票打印', this.data)
111
- },
112
- 'print-error' () {
113
- this.$dispatch('error', '发票打印', this.data, null)
114
- }
115
- }
116
- }
117
-
118
- </script>
119
- <style >
120
- </style>
1
+ <template>
2
+ <div class="auto form-horizontal" >
3
+ <modal :show.sync="show" v-if="show" v-ref:modal large backdrop="false">
4
+ <header slot="modal-header" class="modal-header">
5
+ <h3 style="color:black" class="modal-title" >{{billConfig.billtype}}</h3>
6
+ <button type="button" class="close" @click="closebuyerinfo"><span>&times;</span></button>
7
+ </header>
8
+ <article slot="modal-body" class="modal-body">
9
+ <!-- <div v-if="bill.data">-->
10
+ <!-- {{{bill.data}}}-->
11
+ <!-- </div>-->
12
+ <validator name='v'>
13
+ <form class="form-horizontal select-overspread">
14
+ <div class="row" style="display: flex;justify-content: center;" id='normal-bill_xx' v-if="bill.data" v-html="bill.data">
15
+
16
+ </div>
17
+ </form>
18
+ </validator>
19
+ </article>
20
+ <footer slot="modal-footer" class="modal-footer">
21
+ <div v-if="billConfig.hasBillManage">
22
+ <div class="col-sm-2" >
23
+ <span><strong>发票号:{{model.f_using_number}}</strong></span>
24
+ </div>
25
+ </div>
26
+ <button type="button" class="btn btn-success" @click='print()'>打印</button>
27
+ <report-print :id="'normal-bill_xx'" top='15mm' left='5mm' width='90%' height='70%' :notrepeat="false" :showbtn="false" v-ref:reportprint></report-print>
28
+ <button type="button" class="btn btn-default" @click='cancel()' v-if="!billConfig.hasBillManage">取消</button>
29
+ </footer>
30
+ </modal>
31
+ </div>
32
+ </template>
33
+ <script>
34
+ import { DataModel } from 'vue-client'
35
+ import Vue from "vue";
36
+
37
+ let getBillData = async function(self, val) {
38
+ debugger
39
+ self.bill = new DataModel(self.billData.url, {reprint: "'正常'"})
40
+ await self.bill.search(self.data.chargeid)
41
+ // self.bill.condition=
42
+ // 获取发票号
43
+ self.model.f_using_number = self.billData.bill.number
44
+ console.log(self.bill)
45
+ }
46
+
47
+ export default {
48
+ title: '收费发票',
49
+ data () {
50
+ return {
51
+ model: {
52
+ f_using_number: null
53
+ },
54
+ bill: {data:''},
55
+ messShow: false
56
+ }
57
+ },
58
+ props: ['show', 'data', 'billData', 'billConfig','titleName','billDataantai'],
59
+ ready () {
60
+ console.log('打票!!!!!!!!!!!!!!!!!')
61
+
62
+
63
+ },
64
+ methods: {
65
+ closebuyerinfo(){
66
+ this.show=false;
67
+ },
68
+ cancel () {
69
+ this.$dispatch('toggle')
70
+ },
71
+
72
+
73
+ async print () {
74
+ // 更新系统发票
75
+ this.data.f_operator=this.$login.f.name,
76
+ this.data.f_filiale= this.$login.f.f_fengongsi,
77
+ this.data.f_outlets= this.$login.f.f_parentname,
78
+ this.data.f_orgstr=this.$login.f.orgpathstr,
79
+ this.data.f_filialeids=this.$login.f.f_orgids
80
+
81
+ try {
82
+ if (this.billConfig.hasBillManage) {
83
+ console.log("进入hasBillManage====================================")
84
+ await this.$commonService.openPaperBill(this.data.chargeid, this.data.f_bill_type, this.billConfig.billType, this.billData.bill, '正常',this.data.f_operator,this.data.f_filiale,this.data.f_outlets,this.data.f_orgstr,this.data.f_filialeids)
85
+ }
86
+ //票据打印!!!!!!!!!!!!!!!!!!!!
87
+ this.$refs.reportprint.print()
88
+ this.$dispatch('selfsearch')
89
+ this.$parent.model.f_charge_money=0
90
+ this.$parent.model.f_amount_words=0
91
+ this.$parent.model.f_amount_words=0
92
+ this.show=false
93
+ } catch (error) {
94
+ this.$dispatch('refresh')
95
+ }
96
+ }
97
+ },
98
+ watch: {
99
+ 'show' (val) {
100
+ if (val) {
101
+ getBillData(this, val).then(() => {
102
+ }).catch((error) => {
103
+
104
+ this.$emit('error', error)
105
+ })
106
+ }
107
+ }
108
+ },
109
+ events: {
110
+ 'print' () {
111
+ this.$dispatch('printok', '发票打印', this.data)
112
+ },
113
+ 'print-error' () {
114
+ this.$dispatch('error', '发票打印', this.data, null)
115
+ }
116
+ }
117
+ }
118
+
119
+ </script>
120
+ <style >
121
+ </style>
@@ -0,0 +1,304 @@
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.png" alt="" />
34
+ <img v-if="row.f_filetype === 'dxf'" src="../../image/dxf.png" 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==='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-if="row.f_filetype === 'dwg' || row.f_filetype==='dxf'" style="background:#6aa6e2" class="btn btn-primary" :href="row.f_downloadURL" role="button" download>下载</a>
46
+ <a v-if="row.f_filetype !=='jpg' && row.f_filetype !=='png' && row.f_filetype !=='gif' && row.f_filetype !=='bmp' && row.f_filetype !=='dxf' && row.f_filetype !=='dwg'"
47
+ @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
48
+ <a v-if="isdelete && row.defname === defname" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
49
+ </p>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ <high-meter :show.sync="showhighmeter"
56
+ @photo-finish="newPhoto"
57
+ v-if="showhighmeter"
58
+ :isusetype="isusetype"
59
+ :isremark="isremark"
60
+ v-ref:ltgao></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
+ methods: {
112
+ delet(index, row) {
113
+ this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
114
+ this.$dispatch("delResid",row.id)
115
+ this.load()
116
+ })
117
+ },
118
+ // 下载
119
+ downloadfile(filepath){
120
+ var link = document.createElement('a');
121
+ link.href = filepath;
122
+ link.target='_blank'
123
+ link.dispatchEvent(new MouseEvent('click'));
124
+ },
125
+ // 关闭文件上传对话框
126
+ close () {
127
+ this.showUpload = false
128
+ this.showhighmeter = false
129
+ // 将选的文件清空
130
+ this.$refs.file.$el.querySelector('input').value = ''
131
+ this.headers.fusetype = ''
132
+ this.headers.fremarks = ''
133
+ this.load()
134
+ },
135
+ // 查询
136
+ async load() {
137
+ let condition = ''
138
+ if(this.businessid){
139
+ condition = `f_businessid= '${this.headers.businessid}' `
140
+ }else{
141
+ condition = `f_blobid= '${this.headers.blodid}' `
142
+ }
143
+ if (this.useType != undefined && this.useType != null && this.useType != '') {
144
+ condition += `and fusetype = '${this.useType}'`
145
+ }
146
+ let http = new HttpResetClass()
147
+ let data = {
148
+ tablename: 't_files',
149
+ condition: condition + ` order by f_uploaddate desc `
150
+ }
151
+ console.log("当前数据",data)
152
+ let getFile = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
153
+ warnMsg: null,
154
+ resolveMsg: null
155
+ })
156
+
157
+ for (var i = 0; i < getFile.data.length; i++) {
158
+ // 如果使用类型包含导入字样,则是execl文件导入的,不做显示
159
+ if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
160
+ getFile.data.splice(i,1)
161
+ i--
162
+ continue
163
+ }
164
+ let temp = getFile.data[i].f_downloadpath
165
+ if (temp.includes('http:')){
166
+ getFile.data[i].f_downloadURL = temp
167
+ } else {
168
+ let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
169
+ getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
170
+ }
171
+ }
172
+ this.fileInfoData = []
173
+ this.fileInfoData = getFile.data
174
+ },
175
+ // 打开高拍仪
176
+ upload () {
177
+ if(this.showhighmeter){
178
+ this.$refs.ltgao.closeVideo()
179
+ }
180
+ this.showhighmeter = !this.showhighmeter
181
+ },
182
+ // 高拍仪回调
183
+ newPhoto(Imgbase64, fusetype, fremarks) {
184
+ this.headers.fusetype = fusetype
185
+ this.headers.fremarks = fremarks
186
+
187
+ let form = new FormData()
188
+ let xhr = new XMLHttpRequest()
189
+ let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
190
+ form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
191
+ form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
192
+ xhr.open("POST", "rs/file/uploadFile")
193
+
194
+ if (this.headers) {
195
+ for (var header in this.headers) {
196
+ xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
197
+ }
198
+ }
199
+ xhr.send(form)
200
+ setTimeout(() => {
201
+ this.close()
202
+ }, 5000)
203
+ },
204
+ convertBase64ToBlob(base64String) {
205
+ // 将base64解码
206
+ var bytes = atob(base64String);
207
+ //var bytes = base64;
208
+ var bytesCode = new ArrayBuffer(bytes.length);
209
+ // 转换为类型化数组
210
+ var byteArray = new Uint8Array(bytesCode);
211
+
212
+ // 将base64转换为ascii码
213
+ for (var i = 0; i < bytes.length; i++) {
214
+ byteArray[i] = bytes.charCodeAt(i);
215
+ }
216
+ // 生成Blob对象(文件对象)
217
+ return new Blob([bytesCode], {type: 'image/jpeg'});
218
+ },
219
+ },
220
+ ready () {
221
+ console.log("当前的流程标asdasd识",this.blodid+'adada'+ this.defname)
222
+ this.headers.blodid = this.blodid
223
+ this.headers.businessid = this.businessid
224
+ this.headers.defname = this.defname
225
+ if (this.blodid || this.businessid) {
226
+ this.load()
227
+ }
228
+ },
229
+ computed: {
230
+ typeOfUse () {
231
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('工程管理文件类型')]
232
+ }
233
+ },
234
+ events: {
235
+ onFileUpload: function (file, res) {
236
+ this.$dispatch("resid",res.id)
237
+ this.headers.fremarks=''
238
+ this.close()
239
+ }
240
+ },
241
+ watch: {
242
+ 'blodid'(val) {
243
+ if (val) {
244
+ console.log('观察blodid', val)
245
+ this.headers.blodid = this.blodid
246
+ this.load(this)
247
+ }
248
+ },
249
+ 'businessid'(val) {
250
+ console.log('观察businessid')
251
+ if (val) {
252
+ console.log('观察businessid', val)
253
+ this.headers.businessid = this.businessid
254
+ this.load(this)
255
+ }
256
+ },
257
+ 'useType'() {
258
+ this.headers.fusetype = this.useType[0] ? this.useType[0] : ''
259
+ },
260
+ 'defname'() {
261
+ this.headers.defname=this.defname
262
+ }
263
+ },
264
+ }
265
+ </script>
266
+
267
+ <style scoped>
268
+ .clears{
269
+ overflow:hidden;
270
+ text-overflow:ellipsis;
271
+ white-space:nowrap;
272
+ }
273
+ .showData {
274
+ padding: 15px 10px 0px 10px;
275
+ box-sizing: border-box;
276
+ height: 230px;
277
+ font-family: "微软雅黑";
278
+ }
279
+ .showData .item{
280
+ padding-bottom: 10px;
281
+ border-bottom: solid 1px #c1c1c1;
282
+ }
283
+ .left {
284
+ padding-right: 10px;
285
+ }
286
+ .left img{
287
+ height: 100%;
288
+ width: 100%;
289
+ }
290
+ .right{
291
+ height: 100%;
292
+ /*display: -webkit-flex;*/
293
+ /*display: flex;*/
294
+ /*flex-direction: column;*/
295
+ /*justify-content: space-around;*/
296
+ }
297
+ .item_btn{
298
+ width: 80%;
299
+ background-color: #6aa6e2;
300
+ border-radius: 4px;
301
+ color: #FFFFFF;
302
+ font-family: PingFang;
303
+ }
304
+ </style>