apply-clients 5.0.35-7 → 5.0.35-73

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 +1 -1
  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 +2582 -4
  10. package/src/components/app_apply/Gongcheng.vue +3614 -0
  11. package/src/components/app_apply/OneToMany.vue +194 -0
  12. package/src/components/app_apply/PlaceControler.vue +299 -256
  13. package/src/components/app_apply/ServiceControl.vue +410 -15
  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 +396 -208
  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 +7 -6
  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 +588 -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 +255 -254
  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 +512 -512
  36. package/src/components/product/Function/functions/InstallFee.vue +570 -345
  37. package/src/components/product/Process/ExplorationSelect.vue +640 -636
  38. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
  39. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +123 -37
  40. package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
  41. package/src/components/product/Process/Processes/Service/ServiceControl.vue +2150 -1808
  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 +350 -349
  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 +281 -280
  48. package/src/ezhouAndroid.js +13 -10
  49. package/src/index.js +8 -8
  50. package/src/main.js +32 -32
  51. package/src/plugins/commonService.js +11 -7
@@ -1,25 +1,189 @@
1
1
  <template>
2
- <service-view-app v-ref:service_show :data="show_data" v-if="showview"></service-view-app>
2
+ <div>
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
+ </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>&times;</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>&times;</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>
3
41
  </template>
4
42
  <script>
5
43
  import co from 'co'
6
44
  import Vue from 'vue'
7
45
  import {HttpResetClass} from 'vue-client'
46
+ import * as Util from "../Util";
8
47
  export default {
9
48
  title: '报建流程业务控制层',
10
- props: ['selectdata'],
49
+ props: ['selectdata','selectmodel','show_data'],
11
50
  data () {
12
51
  return {
13
52
  model:'',
14
53
  delteLocal:false,
54
+ loading:false,
15
55
  data:null, // 数据库数据,json配置文件数据的数据集合
16
56
  json_datas:null, // Json配置文件集合
17
57
  showview:false, // 控制显示service-view组件
18
- show_data:null, // 给view层显示的数据
19
- 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:{}
20
71
  }
21
72
  },
22
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
+ user:Vue.user
101
+ }
102
+ await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
103
+ var flag = false
104
+ if (this.data.defname == '合同审核') {
105
+ flag = true
106
+ let http = new HttpResetClass()
107
+ let data = {
108
+ tablename: 't_singlevalue',
109
+ condition: `name = '合同编号' and f_filialeids = '${Vue.user.f_orgids}'`
110
+ }
111
+ let res = await http.load('POST', this.$androidUtil.getProxyUrl() +'/rs/sql/applysingleTable', {data: data}, {
112
+ resolveMsg: null,
113
+ rejectMsg: "获取合同编号失败"
114
+ })
115
+ if (this.contract != res.data[0].value && !this.selectdata.f_contract_number) {
116
+ this.$showMessage("合同编号已经被使用,请按F5刷新页面后重新登记")
117
+ return
118
+ }
119
+ }
120
+ let model = this.models2
121
+ let url = this.$androidUtil.getProxyUrl() +'/rs/logic/ApplyProductService'
122
+ let requestData = {
123
+ tables: this.data.tables, model: model
124
+ }
125
+ requestData.start_activity = '踏勘'
126
+ requestData.loginUser = Vue.user
127
+ requestData.workflow_xmlfilename = this.$workflow_vue.workflow_xmlfilename
128
+ console.log('即将发送请求url=>' + url + ',参数=>' + JSON.stringify(requestData))
129
+ res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
130
+ console.log("service处理完成返回数据:", JSON.stringify(res.data))
131
+ if(res.data.msg=="地址重复,请修改后重新提交"){
132
+ this.$showMessage(res.data.msg)
133
+ }
134
+ if (res.data.code == 200) {
135
+ // flag 为合同编号更新标志
136
+ if (flag) {
137
+ let http = new HttpResetClass()
138
+ let data = {
139
+ tablename: 't_singlevalue',
140
+ condition: `name = '合同编号' and f_filialeids = '${Vue.user.f_orgids}'`,
141
+ value: (Number(this.contract) + 1) + ''
142
+ }
143
+ await http.load('POST', this.$androidUtil.getProxyUrl() +'/rs/logic/updatesinglevalue', {data: data}, {
144
+ resolveMsg: null,
145
+ rejectMsg: "获取合同编号更新失败"
146
+ })
147
+ }
148
+ this.showview = false
149
+ // 特殊处理
150
+ this.special(model)
151
+ this.$dispatch('close')
152
+ this.initializtion()
153
+ } else {
154
+ if (res.data.msg) {
155
+ this.$showMessage(res.data.msg)
156
+ }
157
+ }
158
+
159
+ this.apply_show = false
160
+ },
161
+ // 终止报建
162
+ async stopapplys () {
163
+ this.models = Object.assign({}, this.selectdata, this.models)
164
+ this.models.id = null
165
+ this.models.applyid = this.selectdata.id
166
+ this.models.f_operat_type = '终止报建'
167
+ this.models.f_state = '有效'
168
+ this.models.f_describe = this.selectdata.f_user_name + '已终止报建'
169
+ let data ={
170
+ tablename:'t_project_stop',
171
+ parameters:this.models
172
+ }
173
+ let http = new HttpResetClass()
174
+ await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/save', {data:data},{resolveMsg: null, rejectMsg: "添加失败"})
175
+ await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/stopapply', {data:this.models},{resolveMsg: null, rejectMsg: "终止失败"})
176
+ this.closeback()
177
+ this.$dispatch('close')
178
+ },
179
+ // 关闭终止备注弹框
180
+ closeback() {
181
+ this.stop_show = false
182
+ },
183
+ // 关闭报建弹框
184
+ closeapply() {
185
+ this.apply_show = false
186
+ },
23
187
  // 特殊化处理
24
188
  saveCallBack(jo){
25
189
  console.log(JSON.stringify(jo))
@@ -41,7 +205,7 @@ export default {
41
205
  // 特殊处理
42
206
  this.special(this.model)
43
207
  console.log("hhhhhhhhhhhhhhhhh7")
44
-
208
+ this.loading=false
45
209
  this.$dispatch('close')
46
210
  console.log("hhhhhhhhhhhhhhhhh8")
47
211
  this.initializtion()
@@ -58,13 +222,15 @@ export default {
58
222
  if(this.data.distribute_async && model.button.button_name==='下发'){
59
223
  // 流程异步处理
60
224
  let http = new HttpResetClass();
61
- let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
225
+ // let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
226
+ let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser: Vue.user}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
62
227
  console.log("流程的异步处理:",JSON.stringify(res.data))
63
228
  }
64
229
  if(this.data.distribute_async && model.button.button_name==='完成'){
65
230
  // 强制结束
66
231
  let http = new HttpResetClass();
67
- let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步完成数据保存失败'})
232
+ let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser: Vue.user}}, {resolveMsg: null, rejectMsg: '流程异步完成数据保存失败'})
233
+ // let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步完成数据保存失败'})
68
234
  console.log("流程的异步处理:",JSON.stringify(res.data))
69
235
  }
70
236
  },
@@ -106,7 +272,6 @@ export default {
106
272
  // 下发人 options 处理,options初始化
107
273
  if(this.selectdata.actorexpression){
108
274
  //截取actorexpression
109
-
110
275
  let http = new HttpResetClass()
111
276
  var url = this.$androidUtil.getProxyUrl() + '/rs/search'
112
277
  console.log('即将请求后台获取下发人员,url=>' + url)
@@ -153,9 +318,35 @@ export default {
153
318
  console.log('$appdata中的缓存参数与单值=>' + JSON.stringify(this.$appdata))
154
319
  var param = this.$appdata.getParam(this.data.fields[i].label)
155
320
  console.log(param)
156
- this.data.fields[i].options = param
321
+ if (param){
322
+ this.data.fields[i].options = param
323
+ }
157
324
 
158
325
  }
326
+ // 设置用户类型
327
+ if (this.data.fields[i].label == '用户类型') {
328
+ this.data.fields[i].options = [{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}]
329
+ }
330
+ // 获取县区
331
+ if (this.data.fields[i].label == '县/区') {
332
+ let http = new HttpResetClass()
333
+ let area = await http.load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
334
+ data: {
335
+ // items: 'f_bill_url,f_url_code',
336
+ tablename: 't_pcd',
337
+ condition: `f_filialeids = '${Vue.user.f_orgids}'`
338
+ }
339
+ }, {resolveMsg: null, rejectMsg: null})
340
+ let rs = []
341
+ for (let i = 0; i < area.data.length; i++) {
342
+ let temp = {
343
+ label: area.data[i].f_pcd,
344
+ value: area.data[i].f_pcd
345
+ }
346
+ rs.push(temp)
347
+ }
348
+ this.data.fields[i].options = [{label: '全部', value: ''}, ...rs]
349
+ }
159
350
  }
160
351
  // 初始化 buttons_fields
161
352
  for(let i=0;i<this.data.buttons.length;i++){
@@ -210,7 +401,14 @@ export default {
210
401
  temp['back_reason'] = this.selectdata.f_back_reason
211
402
  }
212
403
  console.log('即将给show_data赋值temp=>' + JSON.stringify(temp))
213
- this.show_data = temp
404
+ console.log(JSON.stringify(this.show_data.ppp))
405
+ if (JSON.stringify(this.show_data.ppp)=='{}'){
406
+ this.show_data.ppp = temp
407
+ console.log("重新赋值")
408
+
409
+ }else{
410
+ console.log("不重新赋值")
411
+ }
214
412
  console.log('initializtion()方法结束,showview')
215
413
  this.showview = true
216
414
  },
@@ -220,8 +418,53 @@ export default {
220
418
  }
221
419
  },
222
420
  events: {
421
+ 'checkboxSelectControl'(index,index2){
422
+ if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
423
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
424
+ if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
425
+ //增加和删除框中的内容
426
+ if(this.$refs.service_show.data.fields[index].items[index2].value == false){
427
+ // this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
428
+ 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+" ";
429
+ this.$refs.service_show.data.fields[index].items[index2].value=true;
430
+ }else{
431
+ let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
432
+ let values =this.$refs.service_show.data.fields[i].value;
433
+ let result = values.split(" ").filter((item)=>{
434
+ return item!=deleteValue;
435
+ }).join(" ")
436
+ this.$refs.service_show.data.fields[i].value =result;
437
+ this.$refs.service_show.data.fields[index].items[index2].value=false;
438
+ }
439
+ //}
440
+ }
441
+ }
442
+ }
443
+ if(this.$refs.service_show.data.fields[index].label=="验收提交资料"){
444
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
445
+
446
+ if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
447
+ //增加和删除框中的内容
448
+ if(this.$refs.service_show.data.fields[index].items[index2].value == false){
449
+ 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+" ";
450
+ this.$refs.service_show.data.fields[index].items[index2].value=true;
451
+ }else{
452
+ let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
453
+ let values =this.$refs.service_show.data.fields[i].value;
454
+ let result = values.split(" ").filter((item)=>{
455
+ return item!=deleteValue;
456
+ }).join(" ")
457
+ this.$refs.service_show.data.fields[i].value =result;
458
+ this.$refs.service_show.data.fields[index].items[index2].value=false;
459
+ }
460
+ //}
461
+ }
462
+ }
463
+ }
464
+ this.$refs.service_show.update()
465
+ },
223
466
  // 任意select选中时触发事件
224
- 'select_cascade'(index){
467
+ async 'select_cascade'(index){
225
468
  // this.$refs.service_show.model_temp // 子业务显示组件
226
469
  // 级联操作示例:
227
470
  /*
@@ -237,9 +480,147 @@ export default {
237
480
  }
238
481
  }
239
482
  */
483
+ if (this.$refs.service_show.data.fields[index].label === '县/区') {
484
+ let temp = this.$refs.service_show.data.fields[index].value
485
+ console.log('==============================县/区:' + temp)
486
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
487
+ // 控制设置级联
488
+ // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
489
+ if (this.$refs.service_show.data.fields[i].label === '街道名称') {
490
+ await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
491
+ data: {
492
+ tablename: 't_street',
493
+ condition: `f_filialeids = '${Vue.user.f_orgids}' and f_pcd='${temp}'`
494
+ }
495
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
496
+ let streetrs = []
497
+ for (let i = 0; i < res.data.length; i++) {
498
+ let temp = {
499
+ label: res.data[i].f_street,
500
+ value: res.data[i].f_street
501
+ }
502
+ streetrs.push(temp)
503
+ }
504
+ this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
505
+ // console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
506
+ this.$refs.service_show.update()
507
+ })
508
+ }
509
+ }
510
+ }
511
+ if (this.$refs.service_show.data.fields[index].label === '街道名称') {
512
+ let temp = this.$refs.service_show.data.fields[index].value
513
+ console.log('=============================街道:' + temp)
514
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
515
+ // 控制设置级联
516
+ // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
517
+ if (this.$refs.service_show.data.fields[i].label === '小区名称') {
518
+ await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
519
+ data: {
520
+ tablename: 't_area',
521
+ condition: `f_filialeids = '${Vue.user.f_orgids}' and f_street='${temp}'`
522
+ }
523
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
524
+ let arears = []
525
+ for (let i = 0; i < res.data.length; i++) {
526
+ let temp = {
527
+ label: res.data[i].f_residential_area,
528
+ value: res.data[i].f_residential_area
529
+ }
530
+ arears.push(temp)
531
+ }
532
+ this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...arears]
533
+ // console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
534
+ this.$refs.service_show.update()
535
+ })
536
+ }
537
+ }
538
+ }
539
+ // 合成地址
540
+ if (
541
+ this.$refs.service_show.data.fields[index].label === '县/区' ||
542
+ this.$refs.service_show.data.fields[index].label === '街道名称' ||
543
+ this.$refs.service_show.data.fields[index].label === '小区名称' ||
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
+ ) {
549
+ console.log('即将合成地址')
550
+ var address = ''
551
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
552
+ // 控制设置级联
553
+ // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
554
+ // xxx xx xxx
555
+ if (this.$refs.service_show.data.fields[i].label === '县/区' && this.$refs.service_show.data.fields[i].value) {
556
+ address += this.$refs.service_show.data.fields[i].value
557
+ }
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 += '栋'
569
+ }
570
+ if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
571
+ address += '-' +this.$refs.service_show.data.fields[i].value
572
+ }
573
+ if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
574
+ address += '单元'
575
+ }
576
+ if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
577
+ address += '-' +this.$refs.service_show.data.fields[i].value
578
+ }
579
+ if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
580
+ address += '层'
581
+ }
582
+ if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
583
+ address += '-' +this.$refs.service_show.data.fields[i].value
584
+ }
585
+ if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
586
+ address += '室'
587
+ }
588
+
589
+ }
590
+ console.log('获取到的address=>' + address)
591
+ // 数据获取完毕时放入地址text
592
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
593
+ if (this.$refs.service_show.data.fields[i].label === '地址' || this.$refs.service_show.data.fields[i].label === '报装地址') {
594
+ this.$refs.service_show.data.fields[i].value = address
595
+ console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
596
+ }
597
+ }
598
+ }
599
+ if (this.$refs.service_show.data.fields[index].label == '用户类型'){
600
+ if(this.$refs.service_show.data.fields[index].value == '非民用'){
601
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
602
+ if (this.$refs.service_show.data.fields[i].label === '小区名称') {
603
+ this.$refs.service_show.data.fields[i].required=false;
604
+ }
605
+ }
606
+ }else{
607
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
608
+ if (this.$refs.service_show.data.fields[i].label === '小区名称') {
609
+ this.$refs.service_show.data.fields[i].required=true;
610
+ }
611
+ }
612
+ }
613
+ }
240
614
  },
241
615
  // 获取view层button事件
242
616
  async 'button'(model){
617
+ if (this.data.defname==='踏勘'){
618
+ if (model.button.button_name === '终止'){
619
+ this.stop_show=true
620
+ return
621
+ }
622
+ }
623
+ this.loading=true
243
624
  console.log('进入async button事件方法')
244
625
  var delteLocal = true
245
626
  // 点击保存与重置按钮不需要修改本地工单状态
@@ -263,9 +644,18 @@ export default {
263
644
  console.log("button事件接收参数model=>" + JSON.stringify(model))
264
645
  model=Object.assign({},this.selectdata,model)
265
646
  console.log('合并selectdata与model后的model=>' + JSON.stringify(model))
647
+ if (this.data.defname==='踏勘'&&(model.button.button_name === '提交'||model.button.button_name === '通气')){
648
+ this.loading=false
649
+ this.apply_show=true
650
+ this.models2 = model
651
+ return
652
+ }
266
653
  let http = new HttpResetClass()
654
+ if (this.data.defname === '通气转单'&& model.button.button_name === '提交'){
655
+ requestData.model.f_sub_state = '完工'
656
+ }
267
657
  var url = this.$androidUtil.getProxyUrl() + '/rs/logic/ApplyProductService'
268
- // let res = await http.load('POST',url,{data:{tables:this.data.tables,start_activity:this.$workflow_vue.start_activity,model:model,loginUser:Vue.user}}, {resolveMsg: null, rejectMsg: null})
658
+ // let res = await http.load('POST',url,{data:data}, {resolveMsg: null, rejectMsg: null})
269
659
  // // 先判断是否包含code,如果服务端异常,可能不存在code
270
660
  // console.log("service处理完成返回数据=>" + res)
271
661
  // if(!res.code){
@@ -300,7 +690,7 @@ export default {
300
690
 
301
691
  let btn_operate = function * (self, url, http, model, delteLocal) {
302
692
  self.delteLocal=delteLocal
303
-
693
+ console.log("model的信息",model)
304
694
  // 下发,提交,保存,退回都在后台处理
305
695
  console.log('即将请求后台url=>' + url)
306
696
  model.employeetemplate=''
@@ -309,8 +699,13 @@ let btn_operate = function * (self, url, http, model, delteLocal) {
309
699
  let param={
310
700
  employeetemplate:'',
311
701
  tables:self.data.tables,
312
- start_activity:self.$workflow_vue.start_activity,
313
- model:model,loginUser:Vue.user
702
+ workflow_xmlfilename : self.$workflow_vue.workflow_xmlfilename,
703
+ start_activity:model.start_activity,
704
+ model:model,
705
+ loginUser:Vue.user
706
+ }
707
+ if(param.model.defname === '现场勘查定价'){
708
+ param.model.f_unaccounts_money = param.model.f_total_cost
314
709
  }
315
710
  // 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})
316
711
  let paramStr = JSON.stringify(param)