apply-clients 5.0.35-6 → 5.0.35-60
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.
- package/.eslintrc.js +16 -16
- package/package.json +3 -3
- package/src/AndroidApp.vue +28 -28
- package/src/android.js +1 -1
- package/src/apply.js +14 -1
- package/src/components/app_apply/ApplyDownList.vue +168 -164
- package/src/components/app_apply/ApplyInfo.vue +56 -56
- package/src/components/app_apply/ApplyListUpload.vue +268 -268
- package/src/components/app_apply/ApplyToDoList.vue +2820 -242
- package/src/components/app_apply/Gongcheng.vue +3596 -0
- package/src/components/app_apply/OneToMany.vue +194 -0
- package/src/components/app_apply/PlaceControler.vue +299 -256
- package/src/components/app_apply/ServiceControl.vue +495 -335
- package/src/components/app_apply/ServiceView.vue +383 -383
- package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
- package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
- package/src/components/app_apply/ezhou/MinYong.vue +92 -92
- package/src/components/app_apply/ezhou/ServiceView.vue +790 -620
- package/src/components/image/doc.jpg +0 -0
- package/src/components/image/dwg.png +0 -0
- package/src/components/image/dxf.png +0 -0
- package/src/components/image/excel.jpg +0 -0
- package/src/components/image/pdf.jpg +0 -0
- package/src/components/product/Common/ApplyValidateBill.vue +13 -6
- package/src/components/product/Common/PrintBill.vue +3 -2
- package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
- package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
- package/src/components/product/EngineeringManagement/EngineeringSelect.vue +588 -0
- package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +130 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +350 -0
- package/src/components/product/Function/InstallInfoSelect.vue +3 -2
- package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
- package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
- package/src/components/product/Function/functions/BuyerMessage.vue +1 -1
- package/src/components/product/Function/functions/InstallFee.vue +1145 -919
- package/src/components/product/Process/ExplorationSelect.vue +9 -5
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +123 -37
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +269 -19
- package/src/components/product/ServiceView.vue +16 -6
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +53 -6
- package/src/components/product/Supervisory/SupervisoryList.vue +3 -2
- package/src/components/product/applyReport/ApplyReport.vue +205 -0
- package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
- package/src/components/product/stopInfo/ApplyStopInfo.vue +2 -1
- package/src/ezhouAndroid.js +48 -45
- package/src/index.js +8 -8
- package/src/main.js +32 -32
- package/src/plugins/commonService.js +11 -7
|
@@ -1,268 +1,268 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="repair-bg auto" id="repair-first" style="padding-bottom:5px;overflow:auto">
|
|
3
|
-
<!--<div class="app-botton" @click="back()">-->
|
|
4
|
-
<!--<span class="glyphicon glyphicon-menu-left">返回</span>-->
|
|
5
|
-
<!--</div>-->
|
|
6
|
-
<!-- <back-page :need-back='true' @flag="back()"></back-page>-->
|
|
7
|
-
<div class="bq-parent">
|
|
8
|
-
<blockquote style="color: #499edf;border-left-color: #499edf;font-size: 16px">
|
|
9
|
-
<p>
|
|
10
|
-
待上传报建<span v-if="rows">({{rows.length}}单)</span>
|
|
11
|
-
<span v-if="!rows">(暂无待上传报建单)</span>
|
|
12
|
-
<img @click="search" src="../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
|
13
|
-
</p>
|
|
14
|
-
</blockquote>
|
|
15
|
-
</div>
|
|
16
|
-
<div style="text-align:right">
|
|
17
|
-
<button @click="uploadAll" type="button" class="btn btn-primary radius_btn" style="margin-right: 0.5%">批量上传</button>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="panel panel-default repair-info-content auto">
|
|
20
|
-
<div class="panel-body">
|
|
21
|
-
<div class="panel panel-default well" v-for="row in rows" >
|
|
22
|
-
<div class="panel-body bg-info" style="padding: 10px">
|
|
23
|
-
<div class="row form-group">
|
|
24
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
25
|
-
<div class="row" >
|
|
26
|
-
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
27
|
-
报建编号: {{row.f_apply_num}}<!--<span v-if="row.f_remindersign">(催单)</span>-->
|
|
28
|
-
</div>
|
|
29
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
30
|
-
用户姓名: {{row.f_user_name}}
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
33
|
-
用户类型: {{row.f_user_type}}
|
|
34
|
-
</div>
|
|
35
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
36
|
-
用户地址: {{row.f_address}}
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
39
|
-
用户电话: {{row.f_phone}}
|
|
40
|
-
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
43
|
-
流程状态: {{row.defname}}
|
|
44
|
-
</div>
|
|
45
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
46
|
-
报建类型: {{row.f_apply_type}}
|
|
47
|
-
</div>
|
|
48
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
49
|
-
报建日期: {{row.f_apply_date}}
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
</template>
|
|
62
|
-
<script>
|
|
63
|
-
// import FailureShow from '../pc/FailureShow'
|
|
64
|
-
import Vue from 'vue'
|
|
65
|
-
import * as Util from '../Util'
|
|
66
|
-
import co from 'co'
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* 先将数据发给本地logic,由本地logic请求后台进行数据保存,以及流程更改
|
|
70
|
-
* 之后修改本地单子的上传状态,并刷新页面
|
|
71
|
-
* @param self
|
|
72
|
-
* @param rows 所有数据
|
|
73
|
-
* @returns {IterableIterator<*>}
|
|
74
|
-
*/
|
|
75
|
-
let uploadApply = function * (self, rows) {
|
|
76
|
-
console.log('前台uploadApply接收的rows=>' + JSON.stringify(rows))
|
|
77
|
-
// var params = []
|
|
78
|
-
var param = {}
|
|
79
|
-
for(var i=0; i<rows.length; i++){
|
|
80
|
-
// rows[i].f_app_upload = '已上传'
|
|
81
|
-
param = {
|
|
82
|
-
model: {
|
|
83
|
-
f_processid: rows[i].f_process_id
|
|
84
|
-
},
|
|
85
|
-
loginUser:{
|
|
86
|
-
id: Vue.user.id,
|
|
87
|
-
name: Vue.user.name,
|
|
88
|
-
ename: Vue.user.ename
|
|
89
|
-
},
|
|
90
|
-
employeetemplate: self.employeetemplate,// 指派勘察人员
|
|
91
|
-
subdep: '提交'
|
|
92
|
-
}
|
|
93
|
-
rows[i].param = param
|
|
94
|
-
// params.push(param)
|
|
95
|
-
}
|
|
96
|
-
// let res = yield self.$resetpost(url, {data:data})
|
|
97
|
-
let res = yield self.$androidUtil.bzLogic('uploadallapp', {data:rows})
|
|
98
|
-
console.log('批量上传返回数据res=>' + JSON.stringify(res))
|
|
99
|
-
if(!res || res.code != 200){
|
|
100
|
-
self.$showMessage('批量上传失败')
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
for(var i=0; i<rows.length; i++){
|
|
104
|
-
self.updateState(rows[i])
|
|
105
|
-
}
|
|
106
|
-
self.search()
|
|
107
|
-
self.$showMessage('批量上传成功!')
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
// var succ_num = 0
|
|
111
|
-
// for(var i=0; i<rows.length; i++){
|
|
112
|
-
// console.log('rows[' + i + ']=>' + JSON.stringify(rows[i]))
|
|
113
|
-
// rows[i].f_app_upload = '已上传'
|
|
114
|
-
// var data ={tablename:'t_apply',parameters:rows[i]}
|
|
115
|
-
// var url = self.$androidUtil.getProxyUrl() + '/rs/logic/uploadapply'
|
|
116
|
-
// console.log(`即将上传,url>>>> ${url}`)
|
|
117
|
-
// let res = yield self.$resetpost(url, {data:data})
|
|
118
|
-
// console.log(`上传返回json>>>>>>>>>>>> ${JSON.stringify(res)}`)
|
|
119
|
-
// if(res.data.code != 200){
|
|
120
|
-
// self.$showMessage('第' + i + '条上传失败,批量上传终止!')
|
|
121
|
-
// return;
|
|
122
|
-
// }
|
|
123
|
-
// data = {
|
|
124
|
-
// model: {
|
|
125
|
-
// f_processid: rows[i].f_process_id
|
|
126
|
-
// },
|
|
127
|
-
// loginUser: {
|
|
128
|
-
// id: Vue.user.id,
|
|
129
|
-
// name: Vue.user.name,
|
|
130
|
-
// ename: Vue.user.ename
|
|
131
|
-
// },
|
|
132
|
-
// employeetemplate: self.employeetemplate,// 指派勘察人员
|
|
133
|
-
// subdep: '提交'
|
|
134
|
-
// }
|
|
135
|
-
// console.log(`即将请求后台修改流程,参数>>>> ${JSON.stringify(data)}`)
|
|
136
|
-
// let ret = self.$resetpost(self.$androidUtil.getProxyUrl() + '/rs/logic/grantnext',{data: data}).then(() => {
|
|
137
|
-
// console.log('修改流程成功,即将更新本地上传状态')
|
|
138
|
-
// self.updateState(rows[i])
|
|
139
|
-
// // 如果是最后一条上传成功,弹窗显示上传成功,并刷新当前列表
|
|
140
|
-
// if(i == rows.length - 1){
|
|
141
|
-
// self.$showMessage('批量上传成功!')
|
|
142
|
-
// self.search()
|
|
143
|
-
// }
|
|
144
|
-
// })
|
|
145
|
-
// }
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export default{
|
|
149
|
-
title: '报建批量上传列表',
|
|
150
|
-
data () {
|
|
151
|
-
return {
|
|
152
|
-
// rows: Object
|
|
153
|
-
rows: [],
|
|
154
|
-
editshow:false,
|
|
155
|
-
row:{
|
|
156
|
-
type:Object,
|
|
157
|
-
default:{
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
props: {
|
|
164
|
-
sourcet:{
|
|
165
|
-
type:String,
|
|
166
|
-
default:'横屏'
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
methods: {
|
|
170
|
-
selected (row) {
|
|
171
|
-
if(this.sourcet == '横屏'){
|
|
172
|
-
this.$goto('placecontrolerapp', {row: row},'self',this.search)
|
|
173
|
-
}else{
|
|
174
|
-
this.$goto('placecontrolerapp', {row: row},'self',this.search)
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
back () {
|
|
178
|
-
let _this = this
|
|
179
|
-
_this.$back()
|
|
180
|
-
},
|
|
181
|
-
search () {
|
|
182
|
-
//pc模拟开发用
|
|
183
|
-
// console.log('------app开始查询待上传代办工单------')
|
|
184
|
-
// var condition = ' (u.f_app_upload != \'已上传\' or u.f_app_upload is null) '
|
|
185
|
-
// this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getapplymobile`, {data: {'condition': condition}}).then((res) => {
|
|
186
|
-
// console.log(res)
|
|
187
|
-
// console.log(res.data)
|
|
188
|
-
// console.log(`res.data.data.rows=> ${res.data.data.rows}`)
|
|
189
|
-
// if(res.data){
|
|
190
|
-
// this.rows = res.data.data.rows
|
|
191
|
-
// }else{
|
|
192
|
-
// this.rows = []
|
|
193
|
-
// }
|
|
194
|
-
// })
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
// app正式运行程序
|
|
198
|
-
console.log('------app开始查询本地待上传工单------')
|
|
199
|
-
var condition = ' u.f_app_upload = \'已完成\' '
|
|
200
|
-
var param = {"condition": condition,"id": Vue.user.id}
|
|
201
|
-
console.log(`param=>>>${JSON.stringify(param)}`)
|
|
202
|
-
let res = this.$androidUtil.bzLogic('getapplymobile',param)
|
|
203
|
-
console.log(`前台本地报建待上传工单查询结果data=>>>${res.data}`)
|
|
204
|
-
if(res.data){
|
|
205
|
-
this.rows = res.data.rows
|
|
206
|
-
}else{
|
|
207
|
-
this.rows = []
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
//批量上传
|
|
211
|
-
uploadAll(){
|
|
212
|
-
if(this.rows.length <= 0){
|
|
213
|
-
this.$showMessage('暂无待上传报建单!')
|
|
214
|
-
return
|
|
215
|
-
}
|
|
216
|
-
let gen = uploadApply(this, this.rows)
|
|
217
|
-
co(gen)
|
|
218
|
-
},
|
|
219
|
-
makeAPhoneCall(phoneNumber) {
|
|
220
|
-
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
221
|
-
},
|
|
222
|
-
// 上传完成后回写本地上传状态
|
|
223
|
-
updateState(row){
|
|
224
|
-
row.f_app_upload = '已上传'
|
|
225
|
-
this.$androidUtil.bzLogic('saveapplyforapp', {parameters:row})
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
ready () {
|
|
229
|
-
this.search()
|
|
230
|
-
var _this = this;
|
|
231
|
-
this.timeoutHandle = window.setInterval(function() {
|
|
232
|
-
_this.search()
|
|
233
|
-
}, 6000000)//60000
|
|
234
|
-
},
|
|
235
|
-
created(){
|
|
236
|
-
var result = HostApp.readLocalFile('workflow_apply.json')
|
|
237
|
-
if(result.code == 500){
|
|
238
|
-
this.$showMessage('获取流程配置文件失败,请联系系统管理员')
|
|
239
|
-
return
|
|
240
|
-
}
|
|
241
|
-
var data = JSON.parse(result.data)
|
|
242
|
-
console.log('前台存入缓存中的data=>' + JSON.stringify(data))
|
|
243
|
-
Vue.workflow_vue = Vue.prototype.$workflow_vue = data
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
</script>
|
|
247
|
-
|
|
248
|
-
<style>
|
|
249
|
-
.app-botton {
|
|
250
|
-
position:fixed;
|
|
251
|
-
background: #87b2dd;
|
|
252
|
-
color: #FFF;
|
|
253
|
-
padding: 8px;
|
|
254
|
-
text-align: center;
|
|
255
|
-
font-size: 1.2em;
|
|
256
|
-
z-index: 10;
|
|
257
|
-
opacity:0.5;
|
|
258
|
-
bottom: 50px;
|
|
259
|
-
margin-top: -10px;
|
|
260
|
-
height: 40px;
|
|
261
|
-
}
|
|
262
|
-
.class-a{
|
|
263
|
-
border:1px solid red;
|
|
264
|
-
}
|
|
265
|
-
.padd-div-shu{
|
|
266
|
-
padding-bottom: 5px;
|
|
267
|
-
}
|
|
268
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="repair-bg auto" id="repair-first" style="padding-bottom:5px;overflow:auto">
|
|
3
|
+
<!--<div class="app-botton" @click="back()">-->
|
|
4
|
+
<!--<span class="glyphicon glyphicon-menu-left">返回</span>-->
|
|
5
|
+
<!--</div>-->
|
|
6
|
+
<!-- <back-page :need-back='true' @flag="back()"></back-page>-->
|
|
7
|
+
<div class="bq-parent">
|
|
8
|
+
<blockquote style="color: #499edf;border-left-color: #499edf;font-size: 16px">
|
|
9
|
+
<p>
|
|
10
|
+
待上传报建<span v-if="rows">({{rows.length}}单)</span>
|
|
11
|
+
<span v-if="!rows">(暂无待上传报建单)</span>
|
|
12
|
+
<img @click="search" src="../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
|
13
|
+
</p>
|
|
14
|
+
</blockquote>
|
|
15
|
+
</div>
|
|
16
|
+
<div style="text-align:right">
|
|
17
|
+
<button @click="uploadAll" type="button" class="btn btn-primary radius_btn" style="margin-right: 0.5%">批量上传</button>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="panel panel-default repair-info-content auto">
|
|
20
|
+
<div class="panel-body">
|
|
21
|
+
<div class="panel panel-default well" v-for="row in rows" >
|
|
22
|
+
<div class="panel-body bg-info" style="padding: 10px">
|
|
23
|
+
<div class="row form-group">
|
|
24
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
25
|
+
<div class="row" >
|
|
26
|
+
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
27
|
+
报建编号: {{row.f_apply_num}}<!--<span v-if="row.f_remindersign">(催单)</span>-->
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
30
|
+
用户姓名: {{row.f_user_name}}
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
33
|
+
用户类型: {{row.f_user_type}}
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
36
|
+
用户地址: {{row.f_address}}
|
|
37
|
+
</div>
|
|
38
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
39
|
+
用户电话: {{row.f_phone}}
|
|
40
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
43
|
+
流程状态: {{row.defname}}
|
|
44
|
+
</div>
|
|
45
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
46
|
+
报建类型: {{row.f_apply_type}}
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
49
|
+
报建日期: {{row.f_apply_date}}
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
<script>
|
|
63
|
+
// import FailureShow from '../pc/FailureShow'
|
|
64
|
+
import Vue from 'vue'
|
|
65
|
+
import * as Util from '../Util'
|
|
66
|
+
import co from 'co'
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 先将数据发给本地logic,由本地logic请求后台进行数据保存,以及流程更改
|
|
70
|
+
* 之后修改本地单子的上传状态,并刷新页面
|
|
71
|
+
* @param self
|
|
72
|
+
* @param rows 所有数据
|
|
73
|
+
* @returns {IterableIterator<*>}
|
|
74
|
+
*/
|
|
75
|
+
let uploadApply = function * (self, rows) {
|
|
76
|
+
console.log('前台uploadApply接收的rows=>' + JSON.stringify(rows))
|
|
77
|
+
// var params = []
|
|
78
|
+
var param = {}
|
|
79
|
+
for(var i=0; i<rows.length; i++){
|
|
80
|
+
// rows[i].f_app_upload = '已上传'
|
|
81
|
+
param = {
|
|
82
|
+
model: {
|
|
83
|
+
f_processid: rows[i].f_process_id
|
|
84
|
+
},
|
|
85
|
+
loginUser:{
|
|
86
|
+
id: Vue.user.id,
|
|
87
|
+
name: Vue.user.name,
|
|
88
|
+
ename: Vue.user.ename
|
|
89
|
+
},
|
|
90
|
+
employeetemplate: self.employeetemplate,// 指派勘察人员
|
|
91
|
+
subdep: '提交'
|
|
92
|
+
}
|
|
93
|
+
rows[i].param = param
|
|
94
|
+
// params.push(param)
|
|
95
|
+
}
|
|
96
|
+
// let res = yield self.$resetpost(url, {data:data})
|
|
97
|
+
let res = yield self.$androidUtil.bzLogic('uploadallapp', {data:rows})
|
|
98
|
+
console.log('批量上传返回数据res=>' + JSON.stringify(res))
|
|
99
|
+
if(!res || res.code != 200){
|
|
100
|
+
self.$showMessage('批量上传失败')
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
for(var i=0; i<rows.length; i++){
|
|
104
|
+
self.updateState(rows[i])
|
|
105
|
+
}
|
|
106
|
+
self.search()
|
|
107
|
+
self.$showMessage('批量上传成功!')
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
// var succ_num = 0
|
|
111
|
+
// for(var i=0; i<rows.length; i++){
|
|
112
|
+
// console.log('rows[' + i + ']=>' + JSON.stringify(rows[i]))
|
|
113
|
+
// rows[i].f_app_upload = '已上传'
|
|
114
|
+
// var data ={tablename:'t_apply',parameters:rows[i]}
|
|
115
|
+
// var url = self.$androidUtil.getProxyUrl() + '/rs/logic/uploadapply'
|
|
116
|
+
// console.log(`即将上传,url>>>> ${url}`)
|
|
117
|
+
// let res = yield self.$resetpost(url, {data:data})
|
|
118
|
+
// console.log(`上传返回json>>>>>>>>>>>> ${JSON.stringify(res)}`)
|
|
119
|
+
// if(res.data.code != 200){
|
|
120
|
+
// self.$showMessage('第' + i + '条上传失败,批量上传终止!')
|
|
121
|
+
// return;
|
|
122
|
+
// }
|
|
123
|
+
// data = {
|
|
124
|
+
// model: {
|
|
125
|
+
// f_processid: rows[i].f_process_id
|
|
126
|
+
// },
|
|
127
|
+
// loginUser: {
|
|
128
|
+
// id: Vue.user.id,
|
|
129
|
+
// name: Vue.user.name,
|
|
130
|
+
// ename: Vue.user.ename
|
|
131
|
+
// },
|
|
132
|
+
// employeetemplate: self.employeetemplate,// 指派勘察人员
|
|
133
|
+
// subdep: '提交'
|
|
134
|
+
// }
|
|
135
|
+
// console.log(`即将请求后台修改流程,参数>>>> ${JSON.stringify(data)}`)
|
|
136
|
+
// let ret = self.$resetpost(self.$androidUtil.getProxyUrl() + '/rs/logic/grantnext',{data: data}).then(() => {
|
|
137
|
+
// console.log('修改流程成功,即将更新本地上传状态')
|
|
138
|
+
// self.updateState(rows[i])
|
|
139
|
+
// // 如果是最后一条上传成功,弹窗显示上传成功,并刷新当前列表
|
|
140
|
+
// if(i == rows.length - 1){
|
|
141
|
+
// self.$showMessage('批量上传成功!')
|
|
142
|
+
// self.search()
|
|
143
|
+
// }
|
|
144
|
+
// })
|
|
145
|
+
// }
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export default{
|
|
149
|
+
title: '报建批量上传列表',
|
|
150
|
+
data () {
|
|
151
|
+
return {
|
|
152
|
+
// rows: Object
|
|
153
|
+
rows: [],
|
|
154
|
+
editshow:false,
|
|
155
|
+
row:{
|
|
156
|
+
type:Object,
|
|
157
|
+
default:{
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
props: {
|
|
164
|
+
sourcet:{
|
|
165
|
+
type:String,
|
|
166
|
+
default:'横屏'
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
methods: {
|
|
170
|
+
selected (row) {
|
|
171
|
+
if(this.sourcet == '横屏'){
|
|
172
|
+
this.$goto('placecontrolerapp', {row: row},'self',this.search)
|
|
173
|
+
}else{
|
|
174
|
+
this.$goto('placecontrolerapp', {row: row},'self',this.search)
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
back () {
|
|
178
|
+
let _this = this
|
|
179
|
+
_this.$back()
|
|
180
|
+
},
|
|
181
|
+
search () {
|
|
182
|
+
//pc模拟开发用
|
|
183
|
+
// console.log('------app开始查询待上传代办工单------')
|
|
184
|
+
// var condition = ' (u.f_app_upload != \'已上传\' or u.f_app_upload is null) '
|
|
185
|
+
// this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getapplymobile`, {data: {'condition': condition}}).then((res) => {
|
|
186
|
+
// console.log(res)
|
|
187
|
+
// console.log(res.data)
|
|
188
|
+
// console.log(`res.data.data.rows=> ${res.data.data.rows}`)
|
|
189
|
+
// if(res.data){
|
|
190
|
+
// this.rows = res.data.data.rows
|
|
191
|
+
// }else{
|
|
192
|
+
// this.rows = []
|
|
193
|
+
// }
|
|
194
|
+
// })
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
// app正式运行程序
|
|
198
|
+
console.log('------app开始查询本地待上传工单------')
|
|
199
|
+
var condition = ' u.f_app_upload = \'已完成\' '
|
|
200
|
+
var param = {"condition": condition,"id": Vue.user.id}
|
|
201
|
+
console.log(`param=>>>${JSON.stringify(param)}`)
|
|
202
|
+
let res = this.$androidUtil.bzLogic('getapplymobile',param)
|
|
203
|
+
console.log(`前台本地报建待上传工单查询结果data=>>>${res.data}`)
|
|
204
|
+
if(res.data){
|
|
205
|
+
this.rows = res.data.rows
|
|
206
|
+
}else{
|
|
207
|
+
this.rows = []
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
//批量上传
|
|
211
|
+
uploadAll(){
|
|
212
|
+
if(this.rows.length <= 0){
|
|
213
|
+
this.$showMessage('暂无待上传报建单!')
|
|
214
|
+
return
|
|
215
|
+
}
|
|
216
|
+
let gen = uploadApply(this, this.rows)
|
|
217
|
+
co(gen)
|
|
218
|
+
},
|
|
219
|
+
makeAPhoneCall(phoneNumber) {
|
|
220
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
221
|
+
},
|
|
222
|
+
// 上传完成后回写本地上传状态
|
|
223
|
+
updateState(row){
|
|
224
|
+
row.f_app_upload = '已上传'
|
|
225
|
+
this.$androidUtil.bzLogic('saveapplyforapp', {parameters:row})
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
ready () {
|
|
229
|
+
this.search()
|
|
230
|
+
var _this = this;
|
|
231
|
+
this.timeoutHandle = window.setInterval(function() {
|
|
232
|
+
_this.search()
|
|
233
|
+
}, 6000000)//60000
|
|
234
|
+
},
|
|
235
|
+
created(){
|
|
236
|
+
var result = HostApp.readLocalFile('workflow_apply.json')
|
|
237
|
+
if(result.code == 500){
|
|
238
|
+
this.$showMessage('获取流程配置文件失败,请联系系统管理员')
|
|
239
|
+
return
|
|
240
|
+
}
|
|
241
|
+
var data = JSON.parse(result.data)
|
|
242
|
+
console.log('前台存入缓存中的data=>' + JSON.stringify(data))
|
|
243
|
+
Vue.workflow_vue = Vue.prototype.$workflow_vue = data
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
</script>
|
|
247
|
+
|
|
248
|
+
<style>
|
|
249
|
+
.app-botton {
|
|
250
|
+
position:fixed;
|
|
251
|
+
background: #87b2dd;
|
|
252
|
+
color: #FFF;
|
|
253
|
+
padding: 8px;
|
|
254
|
+
text-align: center;
|
|
255
|
+
font-size: 1.2em;
|
|
256
|
+
z-index: 10;
|
|
257
|
+
opacity:0.5;
|
|
258
|
+
bottom: 50px;
|
|
259
|
+
margin-top: -10px;
|
|
260
|
+
height: 40px;
|
|
261
|
+
}
|
|
262
|
+
.class-a{
|
|
263
|
+
border:1px solid red;
|
|
264
|
+
}
|
|
265
|
+
.padd-div-shu{
|
|
266
|
+
padding-bottom: 5px;
|
|
267
|
+
}
|
|
268
|
+
</style>
|