apply-clients 5.0.35-8 → 5.0.35-82
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 +18 -18
- package/src/apply.js +15 -1
- package/src/components/app_apply/ApplyDownList.vue +168 -168
- 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 +2582 -5
- package/src/components/app_apply/Gongcheng.vue +3631 -0
- package/src/components/app_apply/OneToMany.vue +194 -0
- package/src/components/app_apply/PlaceControler.vue +299 -273
- package/src/components/app_apply/ServiceControl.vue +411 -16
- 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 +387 -205
- 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 +7 -6
- 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 +586 -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 +340 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryServiceControl.vue +486 -0
- package/src/components/product/Function/InstallInfoSelect.vue +255 -254
- 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 +512 -512
- package/src/components/product/Function/functions/InstallFee.vue +581 -345
- package/src/components/product/Process/ExplorationSelect.vue +640 -636
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +392 -305
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2155 -1808
- 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 +57 -5
- 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 +281 -280
- package/src/ezhouAndroid.js +13 -10
- package/src/index.js +8 -8
- package/src/main.js +32 -32
- package/src/plugins/commonService.js +11 -7
|
@@ -1,16 +1,52 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<work-busy :is-busy="loading"></work-busy>
|
|
4
|
+
<service-view-app v-ref:service_show :data.sync="show_data.ppp" :model.sync="selectmodel" v-if="showview"></service-view-app>
|
|
5
5
|
</div>
|
|
6
|
+
<modal :show.sync="stop_show" v-ref:modal stop_show="false">
|
|
7
|
+
<header slot="modal-header" class="modal-header">
|
|
8
|
+
<button type="button" class="close" @click="closeback"><span>×</span></button>
|
|
9
|
+
<h4 class="modal-title">终止备注</h4>
|
|
10
|
+
</header>
|
|
11
|
+
<article slot="modal-body" class="modal-body">
|
|
12
|
+
<div class="from-group">
|
|
13
|
+
<input type="text" class="form-control" v-model="models.f_stop_remarks"/>
|
|
14
|
+
</div>
|
|
15
|
+
</article>
|
|
16
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
17
|
+
<button v-show="stop_show" type="button" class="btn btn-default" @click='stopapplys'>确认</button>
|
|
18
|
+
</footer>
|
|
19
|
+
</modal>
|
|
20
|
+
<modal :show.sync="apply_show" v-ref:modal apply_show="false" >
|
|
21
|
+
<header slot="modal-header" class="modal-header">
|
|
22
|
+
<button type="button" class="close" @click="closeapply"><span>×</span></button>
|
|
23
|
+
<h4 class="modal-title">转单报建</h4>
|
|
24
|
+
</header>
|
|
25
|
+
<article slot="modal-body" class="modal-body">
|
|
26
|
+
<div class="from-group">
|
|
27
|
+
<v-select style="min-width: 80%;"
|
|
28
|
+
placeholder='请选择'
|
|
29
|
+
:options="applytypes"
|
|
30
|
+
:search="false"
|
|
31
|
+
v-model="apply_type"
|
|
32
|
+
:value.sync="apply_type"
|
|
33
|
+
close-on-select>
|
|
34
|
+
</v-select>
|
|
35
|
+
</div>
|
|
36
|
+
</article>
|
|
37
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
38
|
+
<button v-show="apply_show" type="button" class="btn btn-default" @click='addactive()'>确认</button>
|
|
39
|
+
</footer>
|
|
40
|
+
</modal>
|
|
6
41
|
</template>
|
|
7
42
|
<script>
|
|
8
43
|
import co from 'co'
|
|
9
44
|
import Vue from 'vue'
|
|
10
45
|
import {HttpResetClass} from 'vue-client'
|
|
46
|
+
import * as Util from "../Util";
|
|
11
47
|
export default {
|
|
12
48
|
title: '报建流程业务控制层',
|
|
13
|
-
props: ['selectdata'],
|
|
49
|
+
props: ['selectdata','selectmodel','show_data'],
|
|
14
50
|
data () {
|
|
15
51
|
return {
|
|
16
52
|
model:'',
|
|
@@ -19,11 +55,138 @@ export default {
|
|
|
19
55
|
data:null, // 数据库数据,json配置文件数据的数据集合
|
|
20
56
|
json_datas:null, // Json配置文件集合
|
|
21
57
|
showview:false, // 控制显示service-view组件
|
|
22
|
-
|
|
23
|
-
department_search:null // 当前部门下所有人
|
|
58
|
+
// 给view层显示的数据
|
|
59
|
+
department_search:null, // 当前部门下所有人
|
|
60
|
+
stop_show:false, // 终止备注开关
|
|
61
|
+
apply_show:false, // 转单报建开关
|
|
62
|
+
apply_type:'',
|
|
63
|
+
applytypes:[{label:"散户报装",value:"报装申请"},{label:"集体报装",value:"集体报装申请"}],// 报建类型
|
|
64
|
+
models: {
|
|
65
|
+
f_date: Util.toStandardTimeString(),
|
|
66
|
+
f_department: Vue.user.f_parentname,
|
|
67
|
+
f_operator: Vue.user.name,
|
|
68
|
+
f_filiale: Vue.user.f_fengongsi
|
|
69
|
+
},
|
|
70
|
+
models2:{}
|
|
24
71
|
}
|
|
25
72
|
},
|
|
26
73
|
methods: {
|
|
74
|
+
// 转到报建
|
|
75
|
+
async addactive(){
|
|
76
|
+
this.selectdata.applyid = this.selectdata.id
|
|
77
|
+
// this.$resetpost('rs/logic/stopapply', {data: this.selectdata})
|
|
78
|
+
console.log(this.apply_type[0])
|
|
79
|
+
this.$workflow_vue.start_activity = this.apply_type[0]
|
|
80
|
+
let http = new HttpResetClass()
|
|
81
|
+
let res = await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/ApplyGetProcessID',{data:{filename:this.$workflow_vue.workflow_xmlfilename,start_activity:this.$workflow_vue.start_activity}}, {resolveMsg: null, rejectMsg: '获取流程ID失败,请联系开发人员'})
|
|
82
|
+
let data = {
|
|
83
|
+
defname: this.$workflow_vue.start_activity,
|
|
84
|
+
f_process_id: res.data.f_process_id,
|
|
85
|
+
f_apply_date: Util.toStandardTimeString(),
|
|
86
|
+
f_product_id: res.data.f_product_id,
|
|
87
|
+
start_activity:this.$workflow_vue.start_activity,
|
|
88
|
+
f_user_type:this.models2.f_user_type,
|
|
89
|
+
f_user_name:this.models2.f_user_name,
|
|
90
|
+
f_phone:this.models2.f_phone,
|
|
91
|
+
f_area:this.models2.f_area,
|
|
92
|
+
f_street:this.models2.f_street,
|
|
93
|
+
f_residential_area:this.models2.f_residential_area,
|
|
94
|
+
f_building:this.models2.f_building,
|
|
95
|
+
f_unit:this.models2.f_unit,
|
|
96
|
+
f_floor:this.models2.f_floor,
|
|
97
|
+
f_room:this.models2.f_room,
|
|
98
|
+
f_address:this.models2.f_address,
|
|
99
|
+
f_idnumber:this.models2.f_social_credit_code,
|
|
100
|
+
f_apply_source:this.models2.f_apply_source,
|
|
101
|
+
f_sub_state:'未完工',
|
|
102
|
+
user:Vue.user
|
|
103
|
+
}
|
|
104
|
+
await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
|
|
105
|
+
var flag = false
|
|
106
|
+
if (this.data.defname == '合同审核') {
|
|
107
|
+
flag = true
|
|
108
|
+
let http = new HttpResetClass()
|
|
109
|
+
let data = {
|
|
110
|
+
tablename: 't_singlevalue',
|
|
111
|
+
condition: `name = '合同编号' and f_filialeids = '${Vue.user.f_orgids}'`
|
|
112
|
+
}
|
|
113
|
+
let res = await http.load('POST', this.$androidUtil.getProxyUrl() +'/rs/sql/applysingleTable', {data: data}, {
|
|
114
|
+
resolveMsg: null,
|
|
115
|
+
rejectMsg: "获取合同编号失败"
|
|
116
|
+
})
|
|
117
|
+
if (this.contract != res.data[0].value && !this.selectdata.f_contract_number) {
|
|
118
|
+
this.$showMessage("合同编号已经被使用,请按F5刷新页面后重新登记")
|
|
119
|
+
return
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
let model = this.models2
|
|
123
|
+
let url = this.$androidUtil.getProxyUrl() +'/rs/logic/ApplyProductService'
|
|
124
|
+
let requestData = {
|
|
125
|
+
tables: this.data.tables, model: model
|
|
126
|
+
}
|
|
127
|
+
requestData.start_activity = '踏勘'
|
|
128
|
+
requestData.loginUser = Vue.user
|
|
129
|
+
requestData.workflow_xmlfilename = this.$workflow_vue.workflow_xmlfilename
|
|
130
|
+
requestData.model.f_sub_state = '未完工'
|
|
131
|
+
console.log('即将发送请求url=>' + url + ',参数=>' + JSON.stringify(requestData))
|
|
132
|
+
res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
133
|
+
console.log("service处理完成返回数据:", JSON.stringify(res.data))
|
|
134
|
+
if(res.data.msg=="地址重复,请修改后重新提交"){
|
|
135
|
+
this.$showMessage(res.data.msg)
|
|
136
|
+
}
|
|
137
|
+
if (res.data.code == 200) {
|
|
138
|
+
// flag 为合同编号更新标志
|
|
139
|
+
if (flag) {
|
|
140
|
+
let http = new HttpResetClass()
|
|
141
|
+
let data = {
|
|
142
|
+
tablename: 't_singlevalue',
|
|
143
|
+
condition: `name = '合同编号' and f_filialeids = '${Vue.user.f_orgids}'`,
|
|
144
|
+
value: (Number(this.contract) + 1) + ''
|
|
145
|
+
}
|
|
146
|
+
await http.load('POST', this.$androidUtil.getProxyUrl() +'/rs/logic/updatesinglevalue', {data: data}, {
|
|
147
|
+
resolveMsg: null,
|
|
148
|
+
rejectMsg: "获取合同编号更新失败"
|
|
149
|
+
})
|
|
150
|
+
}
|
|
151
|
+
this.showview = false
|
|
152
|
+
// 特殊处理
|
|
153
|
+
this.special(model)
|
|
154
|
+
this.$dispatch('close')
|
|
155
|
+
this.initializtion()
|
|
156
|
+
} else {
|
|
157
|
+
if (res.data.msg) {
|
|
158
|
+
this.$showMessage(res.data.msg)
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
this.apply_show = false
|
|
163
|
+
},
|
|
164
|
+
// 终止报建
|
|
165
|
+
async stopapplys () {
|
|
166
|
+
this.models = Object.assign({}, this.selectdata, this.models)
|
|
167
|
+
this.models.id = null
|
|
168
|
+
this.models.applyid = this.selectdata.id
|
|
169
|
+
this.models.f_operat_type = '终止报建'
|
|
170
|
+
this.models.f_state = '有效'
|
|
171
|
+
this.models.f_describe = this.selectdata.f_user_name + '已终止报建'
|
|
172
|
+
let data ={
|
|
173
|
+
tablename:'t_project_stop',
|
|
174
|
+
parameters:this.models
|
|
175
|
+
}
|
|
176
|
+
let http = new HttpResetClass()
|
|
177
|
+
await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/save', {data:data},{resolveMsg: null, rejectMsg: "添加失败"})
|
|
178
|
+
await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/stopapply', {data:this.models},{resolveMsg: null, rejectMsg: "终止失败"})
|
|
179
|
+
this.closeback()
|
|
180
|
+
this.$dispatch('close')
|
|
181
|
+
},
|
|
182
|
+
// 关闭终止备注弹框
|
|
183
|
+
closeback() {
|
|
184
|
+
this.stop_show = false
|
|
185
|
+
},
|
|
186
|
+
// 关闭报建弹框
|
|
187
|
+
closeapply() {
|
|
188
|
+
this.apply_show = false
|
|
189
|
+
},
|
|
27
190
|
// 特殊化处理
|
|
28
191
|
saveCallBack(jo){
|
|
29
192
|
console.log(JSON.stringify(jo))
|
|
@@ -62,13 +225,15 @@ export default {
|
|
|
62
225
|
if(this.data.distribute_async && model.button.button_name==='下发'){
|
|
63
226
|
// 流程异步处理
|
|
64
227
|
let http = new HttpResetClass();
|
|
65
|
-
let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
|
|
228
|
+
// let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
|
|
229
|
+
let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser: Vue.user}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
|
|
66
230
|
console.log("流程的异步处理:",JSON.stringify(res.data))
|
|
67
231
|
}
|
|
68
232
|
if(this.data.distribute_async && model.button.button_name==='完成'){
|
|
69
233
|
// 强制结束
|
|
70
234
|
let http = new HttpResetClass();
|
|
71
|
-
let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser:
|
|
235
|
+
let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser: Vue.user}}, {resolveMsg: null, rejectMsg: '流程异步完成数据保存失败'})
|
|
236
|
+
// let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步完成数据保存失败'})
|
|
72
237
|
console.log("流程的异步处理:",JSON.stringify(res.data))
|
|
73
238
|
}
|
|
74
239
|
},
|
|
@@ -110,7 +275,6 @@ export default {
|
|
|
110
275
|
// 下发人 options 处理,options初始化
|
|
111
276
|
if(this.selectdata.actorexpression){
|
|
112
277
|
//截取actorexpression
|
|
113
|
-
|
|
114
278
|
let http = new HttpResetClass()
|
|
115
279
|
var url = this.$androidUtil.getProxyUrl() + '/rs/search'
|
|
116
280
|
console.log('即将请求后台获取下发人员,url=>' + url)
|
|
@@ -157,9 +321,35 @@ export default {
|
|
|
157
321
|
console.log('$appdata中的缓存参数与单值=>' + JSON.stringify(this.$appdata))
|
|
158
322
|
var param = this.$appdata.getParam(this.data.fields[i].label)
|
|
159
323
|
console.log(param)
|
|
160
|
-
|
|
324
|
+
if (param){
|
|
325
|
+
this.data.fields[i].options = param
|
|
326
|
+
}
|
|
161
327
|
|
|
162
328
|
}
|
|
329
|
+
// 设置用户类型
|
|
330
|
+
if (this.data.fields[i].label == '用户类型') {
|
|
331
|
+
this.data.fields[i].options = [{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}]
|
|
332
|
+
}
|
|
333
|
+
// 获取县区
|
|
334
|
+
if (this.data.fields[i].label == '县/区') {
|
|
335
|
+
let http = new HttpResetClass()
|
|
336
|
+
let area = await http.load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
|
|
337
|
+
data: {
|
|
338
|
+
// items: 'f_bill_url,f_url_code',
|
|
339
|
+
tablename: 't_pcd',
|
|
340
|
+
condition: `f_filialeids = '${Vue.user.f_orgids}'`
|
|
341
|
+
}
|
|
342
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
343
|
+
let rs = []
|
|
344
|
+
for (let i = 0; i < area.data.length; i++) {
|
|
345
|
+
let temp = {
|
|
346
|
+
label: area.data[i].f_pcd,
|
|
347
|
+
value: area.data[i].f_pcd
|
|
348
|
+
}
|
|
349
|
+
rs.push(temp)
|
|
350
|
+
}
|
|
351
|
+
this.data.fields[i].options = [{label: '全部', value: ''}, ...rs]
|
|
352
|
+
}
|
|
163
353
|
}
|
|
164
354
|
// 初始化 buttons_fields
|
|
165
355
|
for(let i=0;i<this.data.buttons.length;i++){
|
|
@@ -214,7 +404,14 @@ export default {
|
|
|
214
404
|
temp['back_reason'] = this.selectdata.f_back_reason
|
|
215
405
|
}
|
|
216
406
|
console.log('即将给show_data赋值temp=>' + JSON.stringify(temp))
|
|
217
|
-
this.show_data
|
|
407
|
+
console.log(JSON.stringify(this.show_data.ppp))
|
|
408
|
+
if (JSON.stringify(this.show_data.ppp)=='{}'){
|
|
409
|
+
this.show_data.ppp = temp
|
|
410
|
+
console.log("重新赋值")
|
|
411
|
+
|
|
412
|
+
}else{
|
|
413
|
+
console.log("不重新赋值")
|
|
414
|
+
}
|
|
218
415
|
console.log('initializtion()方法结束,showview')
|
|
219
416
|
this.showview = true
|
|
220
417
|
},
|
|
@@ -224,8 +421,53 @@ export default {
|
|
|
224
421
|
}
|
|
225
422
|
},
|
|
226
423
|
events: {
|
|
424
|
+
'checkboxSelectControl'(index,index2){
|
|
425
|
+
if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
|
|
426
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
427
|
+
if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
|
|
428
|
+
//增加和删除框中的内容
|
|
429
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
430
|
+
// this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
431
|
+
this.$refs.service_show.data.fields[i].value=this.$refs.service_show.data.fields[i].value==undefined?'':this.$refs.service_show.data.fields[i].value+this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
432
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
433
|
+
}else{
|
|
434
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
435
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
436
|
+
let result = values.split(" ").filter((item)=>{
|
|
437
|
+
return item!=deleteValue;
|
|
438
|
+
}).join(" ")
|
|
439
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
440
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
441
|
+
}
|
|
442
|
+
//}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
if(this.$refs.service_show.data.fields[index].label=="验收提交资料"){
|
|
447
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
448
|
+
|
|
449
|
+
if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
|
|
450
|
+
//增加和删除框中的内容
|
|
451
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
452
|
+
this.$refs.service_show.data.fields[i].value=this.$refs.service_show.data.fields[i].value==undefined?'':this.$refs.service_show.data.fields[i].value+this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
453
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
454
|
+
}else{
|
|
455
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
456
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
457
|
+
let result = values.split(" ").filter((item)=>{
|
|
458
|
+
return item!=deleteValue;
|
|
459
|
+
}).join(" ")
|
|
460
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
461
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
462
|
+
}
|
|
463
|
+
//}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
this.$refs.service_show.update()
|
|
468
|
+
},
|
|
227
469
|
// 任意select选中时触发事件
|
|
228
|
-
'select_cascade'(index){
|
|
470
|
+
async 'select_cascade'(index){
|
|
229
471
|
// this.$refs.service_show.model_temp // 子业务显示组件
|
|
230
472
|
// 级联操作示例:
|
|
231
473
|
/*
|
|
@@ -241,11 +483,148 @@ export default {
|
|
|
241
483
|
}
|
|
242
484
|
}
|
|
243
485
|
*/
|
|
486
|
+
if (this.$refs.service_show.data.fields[index].label === '县/区') {
|
|
487
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
488
|
+
console.log('==============================县/区:' + temp)
|
|
489
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
490
|
+
// 控制设置级联
|
|
491
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
492
|
+
if (this.$refs.service_show.data.fields[i].label === '街道名称') {
|
|
493
|
+
await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
|
|
494
|
+
data: {
|
|
495
|
+
tablename: 't_street',
|
|
496
|
+
condition: `f_filialeids = '${Vue.user.f_orgids}' and f_pcd='${temp}'`
|
|
497
|
+
}
|
|
498
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
|
499
|
+
let streetrs = []
|
|
500
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
501
|
+
let temp = {
|
|
502
|
+
label: res.data[i].f_street,
|
|
503
|
+
value: res.data[i].f_street
|
|
504
|
+
}
|
|
505
|
+
streetrs.push(temp)
|
|
506
|
+
}
|
|
507
|
+
this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
|
|
508
|
+
// console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
|
|
509
|
+
this.$refs.service_show.update()
|
|
510
|
+
})
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
if (this.$refs.service_show.data.fields[index].label === '街道名称') {
|
|
515
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
516
|
+
console.log('=============================街道:' + temp)
|
|
517
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
518
|
+
// 控制设置级联
|
|
519
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
520
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
521
|
+
await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
|
|
522
|
+
data: {
|
|
523
|
+
tablename: 't_area',
|
|
524
|
+
condition: `f_filialeids = '${Vue.user.f_orgids}' and f_street='${temp}'`
|
|
525
|
+
}
|
|
526
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
|
527
|
+
let arears = []
|
|
528
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
529
|
+
let temp = {
|
|
530
|
+
label: res.data[i].f_residential_area,
|
|
531
|
+
value: res.data[i].f_residential_area
|
|
532
|
+
}
|
|
533
|
+
arears.push(temp)
|
|
534
|
+
}
|
|
535
|
+
this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...arears]
|
|
536
|
+
// console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
|
|
537
|
+
this.$refs.service_show.update()
|
|
538
|
+
})
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
// 合成地址
|
|
543
|
+
if (
|
|
544
|
+
this.$refs.service_show.data.fields[index].label === '县/区' ||
|
|
545
|
+
this.$refs.service_show.data.fields[index].label === '街道名称' ||
|
|
546
|
+
this.$refs.service_show.data.fields[index].label === '小区名称' ||
|
|
547
|
+
this.$refs.service_show.data.fields[index].label === '楼号' ||
|
|
548
|
+
this.$refs.service_show.data.fields[index].label === '单元号' ||
|
|
549
|
+
this.$refs.service_show.data.fields[index].label === '楼层' ||
|
|
550
|
+
this.$refs.service_show.data.fields[index].label === '门牌号'
|
|
551
|
+
) {
|
|
552
|
+
console.log('即将合成地址')
|
|
553
|
+
var address = ''
|
|
554
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
555
|
+
// 控制设置级联
|
|
556
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
557
|
+
// xxx xx xxx
|
|
558
|
+
if (this.$refs.service_show.data.fields[i].label === '县/区' && this.$refs.service_show.data.fields[i].value) {
|
|
559
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
560
|
+
}
|
|
561
|
+
if (this.$refs.service_show.data.fields[i].label === '街道名称' && this.$refs.service_show.data.fields[i].value) {
|
|
562
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
563
|
+
}
|
|
564
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称' && this.$refs.service_show.data.fields[i].value) {
|
|
565
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
566
|
+
}
|
|
567
|
+
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
568
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
569
|
+
}
|
|
570
|
+
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
571
|
+
address += '栋'
|
|
572
|
+
}
|
|
573
|
+
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
574
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
575
|
+
}
|
|
576
|
+
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
577
|
+
address += '单元'
|
|
578
|
+
}
|
|
579
|
+
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
580
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
581
|
+
}
|
|
582
|
+
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
583
|
+
address += '层'
|
|
584
|
+
}
|
|
585
|
+
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
586
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
587
|
+
}
|
|
588
|
+
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
589
|
+
address += '室'
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
}
|
|
593
|
+
console.log('获取到的address=>' + address)
|
|
594
|
+
// 数据获取完毕时放入地址text
|
|
595
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
596
|
+
if (this.$refs.service_show.data.fields[i].label === '地址' || this.$refs.service_show.data.fields[i].label === '报装地址') {
|
|
597
|
+
this.$refs.service_show.data.fields[i].value = address
|
|
598
|
+
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
this.$refs.service_show.update()
|
|
602
|
+
}
|
|
603
|
+
if (this.$refs.service_show.data.fields[index].label == '用户类型'){
|
|
604
|
+
if(this.$refs.service_show.data.fields[index].value == '非民用'){
|
|
605
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
606
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
607
|
+
this.$refs.service_show.data.fields[i].required=false;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}else{
|
|
611
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
612
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
613
|
+
this.$refs.service_show.data.fields[i].required=true;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
244
618
|
},
|
|
245
619
|
// 获取view层button事件
|
|
246
620
|
async 'button'(model){
|
|
621
|
+
if (this.data.defname==='踏勘'){
|
|
622
|
+
if (model.button.button_name === '终止'){
|
|
623
|
+
this.stop_show=true
|
|
624
|
+
return
|
|
625
|
+
}
|
|
626
|
+
}
|
|
247
627
|
this.loading=true
|
|
248
|
-
|
|
249
628
|
console.log('进入async button事件方法')
|
|
250
629
|
var delteLocal = true
|
|
251
630
|
// 点击保存与重置按钮不需要修改本地工单状态
|
|
@@ -269,9 +648,20 @@ export default {
|
|
|
269
648
|
console.log("button事件接收参数model=>" + JSON.stringify(model))
|
|
270
649
|
model=Object.assign({},this.selectdata,model)
|
|
271
650
|
console.log('合并selectdata与model后的model=>' + JSON.stringify(model))
|
|
651
|
+
if (this.data.defname==='踏勘'&&(model.button.button_name === '提交'||model.button.button_name === '通气')){
|
|
652
|
+
this.loading=false
|
|
653
|
+
this.apply_show=true
|
|
654
|
+
this.models2 = model
|
|
655
|
+
return
|
|
656
|
+
}
|
|
272
657
|
let http = new HttpResetClass()
|
|
658
|
+
if (this.data.defname === '通气转单'&& model.button.button_name === '提交'){
|
|
659
|
+
model.f_sub_state = '完工'
|
|
660
|
+
}else {
|
|
661
|
+
model.f_sub_state = '未完工'
|
|
662
|
+
}
|
|
273
663
|
var url = this.$androidUtil.getProxyUrl() + '/rs/logic/ApplyProductService'
|
|
274
|
-
|
|
664
|
+
// let res = await http.load('POST',url,{data:data}, {resolveMsg: null, rejectMsg: null})
|
|
275
665
|
// // 先判断是否包含code,如果服务端异常,可能不存在code
|
|
276
666
|
// console.log("service处理完成返回数据=>" + res)
|
|
277
667
|
// if(!res.code){
|
|
@@ -306,7 +696,7 @@ export default {
|
|
|
306
696
|
|
|
307
697
|
let btn_operate = function * (self, url, http, model, delteLocal) {
|
|
308
698
|
self.delteLocal=delteLocal
|
|
309
|
-
|
|
699
|
+
console.log("model的信息",model)
|
|
310
700
|
// 下发,提交,保存,退回都在后台处理
|
|
311
701
|
console.log('即将请求后台url=>' + url)
|
|
312
702
|
model.employeetemplate=''
|
|
@@ -315,8 +705,13 @@ let btn_operate = function * (self, url, http, model, delteLocal) {
|
|
|
315
705
|
let param={
|
|
316
706
|
employeetemplate:'',
|
|
317
707
|
tables:self.data.tables,
|
|
318
|
-
|
|
319
|
-
|
|
708
|
+
workflow_xmlfilename : self.$workflow_vue.workflow_xmlfilename,
|
|
709
|
+
start_activity:model.start_activity,
|
|
710
|
+
model:model,
|
|
711
|
+
loginUser:Vue.user
|
|
712
|
+
}
|
|
713
|
+
if(param.model.defname === '现场勘查定价'){
|
|
714
|
+
param.model.f_unaccounts_money = param.model.f_total_cost
|
|
320
715
|
}
|
|
321
716
|
// http.load('POST',url,{data:{employeetemplate:'',tables:self.data.tables,start_activity:self.$workflow_vue.start_activity,model:model,loginUser:Vue.user}}, {resolveMsg: null, rejectMsg: null})
|
|
322
717
|
let paramStr = JSON.stringify(param)
|