apply-clients 7.1.36-yuchuan-3 → 7.1.36-yuchuan-4.1

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/build/dev-server.js +173 -176
  2. package/index.html +1 -1
  3. package/package.json +119 -119
  4. package/src/apply.js +15 -3
  5. package/src/applyAndroid.js +9 -0
  6. package/src/assets//345/260/217/345/214/272.png +0 -0
  7. package/src/assets//347/224/250/346/210/267ID.png +0 -0
  8. package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
  9. package/src/components/android/AppSign.vue +7 -4
  10. package/src/components/android/AppUpload.vue +1 -1
  11. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +38 -31
  12. package/src/components/android/Process/AppServiceControl.vue +32 -5
  13. package/src/components/android/Process/Processes/AppInstallationDetails.vue +205 -92
  14. package/src/components/android/SealBind.vue +376 -0
  15. package/src/components/android/SealManage.vue +264 -0
  16. package/src/components/android/Supervisory/AppProcessSupervisory.vue +25 -15
  17. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +9 -9
  18. package/src/components/android/Task/yiban/AppShowDone.vue +442 -0
  19. package/src/components/android/Task/yiban/ShowDone.vue +95 -0
  20. package/src/components/android/Task/yiban/satisfactionShow.vue +166 -0
  21. package/src/components/product/ApplyCharge/ApplyChargeList.vue +18 -0
  22. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianViewList.vue +272 -0
  23. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +1 -1
  24. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +31 -31
  25. package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +4 -4
  26. package/src/components/product/ApplyMap/ApplyDragaboutList.vue +2 -2
  27. package/src/components/product/ApplyMap/ApplyMapLocation.vue +22 -10
  28. package/src/components/product/ChongZheng/ApplyChongZhengList.vue +1 -1
  29. package/src/components/product/Function/Service/FunctionServiceControl.vue +125 -14
  30. package/src/components/product/GongJianPush/ApplyPushDispose.vue +182 -0
  31. package/src/components/product/GongJianPush/ApplyPushList.vue +192 -0
  32. package/src/components/product/GongJianPush/ApplyPushManage.vue +83 -0
  33. package/src/components/product/Ignition/IgnitionListManage.vue +1 -1
  34. package/src/components/product/Ignition/IgnitionRecord.vue +22 -0
  35. package/src/components/product/List/OldShowDevices.vue +271 -0
  36. package/src/components/product/List/ShowAllActivity.vue +104 -19
  37. package/src/components/product/List/ShowDevices.vue +1 -1
  38. package/src/components/product/Process/ExplorationSelect.vue +41 -35
  39. package/src/components/product/Process/NewExplorationSelect.vue +31 -31
  40. package/src/components/product/Process/Processes/InstallationDetails.vue +34 -1
  41. package/src/components/product/Process/Processes/Print/printGaiXianCharge.vue +244 -0
  42. package/src/components/product/Process/Processes/devicesManagement.vue +23 -4
  43. package/src/components/product/Process/Processes/newDevicesManagement.vue +10 -1
  44. package/src/components/product/Process/Service/ServiceControl.vue +42 -3
  45. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +1 -3
  46. package/src/components/product/Supervisory/SupervisoryControl.vue +2 -0
  47. package/src/components/product/Supervisory/SupervisoryList.vue +19 -1
  48. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +0 -2
  49. package/src/components/product/VueUtils/ApplyUpload.vue +3 -2
  50. package/src/components/product/records/AdjustmentRecordList.vue +162 -0
  51. package/yarn-error.log +9968 -0
@@ -222,7 +222,12 @@ export default {
222
222
  zindex: 99999
223
223
  })
224
224
  // eslint-disable-next-line no-undef
225
- AMap.event.addListener(this.map, 'complete', this.mapInitSuccess())
225
+ // AMap.Event.addListener(this.map, 'complete', this.mapInitSuccess ()) // AMap.Event.addListener(this.map, 'complete', this.mapInitSuccess())
226
+ if (AMap.Event){
227
+ AMap.Event.addListener(this.map, 'complete',this.mapInitSuccess () )
228
+ } else {
229
+ AMap.event.addListener(this.map, 'complete',this.mapInitSuccess () )
230
+ }
226
231
  window.map = this.map
227
232
  // 异步加载地图插件
228
233
  // eslint-disable-next-line no-undef
@@ -254,8 +259,14 @@ export default {
254
259
  })
255
260
  thas.map.addControl(geolocation)
256
261
  geolocation.getCurrentPosition()
257
- AMap.event.addListener(geolocation, 'complete', thas.onComplete)
258
- AMap.event.addListener(geolocation, 'error', thas.onError)
262
+ if (AMap.Event){
263
+ AMap.Event.addListener(geolocation, 'complete', thas.onComplete)
264
+ AMap.Event.addListener(geolocation, 'error', thas.onError)
265
+ } else {
266
+ AMap.event.addListener(geolocation, 'complete', thas.onComplete)
267
+ AMap.event.addListener(geolocation, 'error', thas.onError)
268
+ }
269
+
259
270
  }
260
271
  })
261
272
  },
@@ -308,7 +319,7 @@ export default {
308
319
  this.myMarker = marker
309
320
  // 对marker绑定点击时事件
310
321
  // eslint-disable-next-line no-undef
311
- AMap.event.addListener(marker, 'click', mkOnclick)
322
+ AMap.Event.addListener(marker, 'click', mkOnclick)
312
323
 
313
324
  function mkOnclick (result) {
314
325
  console.log('事件触发')
@@ -345,6 +356,7 @@ export default {
345
356
  city: result.adcode
346
357
  })
347
358
  var lnglat = result.rectangle.split(';')[0].split(',')
359
+ console.log("shujushi1"+lnglat)
348
360
  geocoder.getAddress(lnglat, function (status, data) {
349
361
  if (status === 'complete' && data.info === 'OK') {
350
362
  // result为对应的地理位置详细信息
@@ -553,7 +565,7 @@ export default {
553
565
  this.map.clearMap();
554
566
  }
555
567
  var marker = new AMap.Marker({
556
- position: _position,
568
+ position:new AMap.LngLat(_position.lng,_position.lat),
557
569
  icon: _icon,
558
570
  map: this.map
559
571
  });
@@ -570,7 +582,7 @@ export default {
570
582
  });
571
583
  if (!/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)) {
572
584
  // 鼠标移动到点触发
573
- AMap.event.addListener(marker, 'mouseover', (row) => {
585
+ AMap.Event.addListener(marker, 'mouseover', (row) => {
574
586
  // 打开信息窗体
575
587
  if (_ismoseOpen) {
576
588
  infoWindow.setContent(_data.content)
@@ -580,7 +592,7 @@ export default {
580
592
  this.$emit("diyspotmouseover", _data.data)
581
593
  })
582
594
  // 鼠标离开改点触发
583
- AMap.event.addListener(marker, 'mouseout', (row) => {
595
+ AMap.Event.addListener(marker, 'mouseout', (row) => {
584
596
  // 关闭信息窗体
585
597
  if (_ismoseOpen) {
586
598
  infoWindow.close();
@@ -591,7 +603,7 @@ export default {
591
603
 
592
604
  } else {
593
605
  // 触摸开始时触发事件,仅适用移动设备
594
- AMap.event.addListener(marker, 'touchstart', (row) => {
606
+ AMap.Event.addListener(marker, 'touchstart', (row) => {
595
607
  // 打开信息窗体
596
608
  if (_ismoseOpen) {
597
609
  infoWindow.setContent(_data.content)
@@ -601,7 +613,7 @@ export default {
601
613
  this.$emit("diyspottouchstart", _data.data)
602
614
  })
603
615
  // 触摸结束触发
604
- AMap.event.addListener(marker, 'touchend', (row) => {
616
+ AMap.Event.addListener(marker, 'touchend', (row) => {
605
617
 
606
618
  // 关闭信息窗体 (移动端长按时间离开后触发)
607
619
  if (_ismoseOpen) {
@@ -614,7 +626,7 @@ export default {
614
626
  })
615
627
  }
616
628
  // 鼠标点击触发
617
- AMap.event.addListener(marker, 'click', (row) => {
629
+ AMap.Event.addListener(marker, 'click', (row) => {
618
630
  this.$emit("diyspotmouseclick", _data.data)
619
631
  })
620
632
  this.map.setFitView();
@@ -25,7 +25,7 @@
25
25
  <export-excel :data="$parent.$parent.getCondition"
26
26
  :field="$parent.$parent.getfield"
27
27
  sqlurl="rs/logic/applyExportfile"
28
- sql-name="getApplyCharge"
28
+ sql-name="getApplyChongZheng"
29
29
  template-name='冲正记录信息导出'
30
30
  :choose-col="true"></export-excel>
31
31
  <div
@@ -10,20 +10,104 @@
10
10
  data () {
11
11
  return {
12
12
  show_data: null, // 给通用页面显示的数据
13
- showview: false // 控制通用页面
13
+ showview: false, // 控制通用页面
14
+ recording: 0, // 是否有缴费记录
14
15
  }
15
16
  },
16
17
  ready () {
17
18
  this.refurbish()
18
19
  },
19
20
  methods: {
21
+ // 判断是否有缴费记录
22
+ getCheckPayRecording () {
23
+ let http = new HttpResetClass()
24
+ let data = {
25
+ f_process_id: this.selectdata.f_process_id,
26
+ user: this.$login.f,
27
+ paynum:'',
28
+ }
29
+ let res = http.load('POST', 'rs/logic/getCheckPay', {data:data}, {
30
+ resolveMsg: null,
31
+ rejectMsg: '缴费记录查询失败!!!'
32
+ })
33
+ // 有缴费记录
34
+ if (res.data> 0) {
35
+ this.recording = 1
36
+
37
+ }
38
+ },
39
+ modifData(fields,falg){
40
+ fields.forEach(item => {
41
+ if((item.label=='工程费单价'||item.label=='应交总金额'|| item.label=='未结总金额')&&falg==1){
42
+ this.readwriteLabels(item.label)
43
+ }
44
+ if((item.label=='工程费单价'||item.label=='应交总金额'|| item.label=='未结总金额')&&falg==0){
45
+ this.readonlyLabels(item.label)
46
+ }
47
+ })
48
+ },
49
+ //根据缴费记录判断是否可编辑
50
+ async getCheckPay (fields, defname,type) {
51
+ console.log(fields)
52
+ let http = new HttpResetClass()
53
+ let data = {
54
+ f_process_id: this.selectdata.f_process_id,
55
+ user: this.$login.f,
56
+ paynum:'',
57
+ }
58
+ let res = await http.load('POST', 'rs/logic/getCheckPay', {data:data}, {
59
+ resolveMsg: null,
60
+ rejectMsg: '缴费记录查询失败!!!'
61
+ })
62
+ // 有缴费记录
63
+ if (res.data> 0) {
64
+ if(type=='非民用报建'||type=='设备变更'){
65
+ if(defname=='报装缴费'){
66
+ fields.forEach(item => {
67
+ if(item.label=='收费标准备注'){
68
+ this.showLabels(item.label)
69
+ }
70
+ })
71
+ }
72
+ }
73
+ //使用foreach遍历fields
74
+ if(defname=='报装缴费'){
75
+ fields.forEach(item => {
76
+ if(item.label=='收费标准备注'||item.label=='票据类型'||item.label=='报警器'||item.label=='购货单位识别号'||item.label=='购货单位名称'||item.label=='购货单位开户'||item.label=='购货单位地址电话'||item.label=='购货单位银行账号'){
77
+ this.readonlyLabels(item.label)
78
+ }else{
79
+ this.readonlyLabels(item.label)
80
+ }
81
+ })
82
+ }
83
+ }else{ //无缴费记录
84
+ if(type=='非民用报建'||type=='设备变更'){
85
+ if(defname=='报装缴费'){
86
+ fields.forEach(item => {
87
+ if(item.label=='收费标准备注'){
88
+ this.showLabels(item.label)
89
+ }
90
+ })
91
+ }
92
+ }
93
+ if(defname=='报装缴费'){
94
+ fields.forEach(item => {
95
+ if(item.label=='收费标准备注'||item.label=='票据类型'||item.label=='报警器'||item.label=='购货单位识别号'||item.label=='购货单位名称'||item.label=='购货单位开户'||item.label=='购货单位地址电话'||item.label=='购货单位银行账号'){
96
+
97
+ this.readwriteLabels(item.label)
98
+ }else{
99
+ this.readonlyLabels(item.label)
100
+ }
101
+ })
102
+ }
103
+ }
104
+ },
20
105
  async refurbish () {
21
106
  // fields 字段填充值
22
107
  for (const item of this.selectdata.fields) {
23
108
  if (!item.value) {
24
109
  item.value = null
25
110
  }
26
-
27
111
  if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
28
112
  if (item.eval) {
29
113
  item.value = eval(item.default)
@@ -31,7 +115,6 @@
31
115
  item.value = item.default
32
116
  }
33
117
  }
34
-
35
118
  if (this.selectdata[item.field]) {
36
119
  // 将json字符串格式化赋值给value
37
120
  if (String(this.selectdata[item.field]).startsWith("{")) {
@@ -57,7 +140,6 @@
57
140
  if (temp && temp.length > 0) {
58
141
  item.options = temp
59
142
  }
60
-
61
143
  if (item.paramLabel) {
62
144
  temp = this.$appdata.getParam(item.paramLabel)
63
145
  if (temp && temp.length > 0) {
@@ -65,13 +147,10 @@
65
147
  }
66
148
  }
67
149
  }
68
-
69
150
  if (item.ready) {
70
151
  item.options = await this[item.ready]()
71
152
  }
72
153
  }
73
-
74
-
75
154
  if (item.type === 'checkbox') {
76
155
  if (this.selectdata[item.field]) {
77
156
  item.value = JSON.parse(this.selectdata[item.field])
@@ -80,14 +159,12 @@
80
159
  }
81
160
  }
82
161
  }
83
-
84
162
  // 控制组件
85
163
  if (this.selectdata.components) {
86
164
  this.selectdata.components.forEach(item => {
87
165
  item.mark = 2
88
166
  })
89
167
  }
90
-
91
168
  // 初始化onetomany
92
169
  if (this.selectdata.onetomany) {
93
170
  for (const item of this.selectdata.onetomany) {
@@ -105,9 +182,7 @@
105
182
  {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
106
183
  )
107
184
  }
108
-
109
185
  item.rows = res.data
110
-
111
186
  // 初始化onetomany中的fields
112
187
  for (const field of item.fields) {
113
188
  if (!field.value) {
@@ -142,14 +217,29 @@
142
217
  }
143
218
  }
144
219
  }
145
-
146
220
  // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
147
221
  let temp = JSON.parse(JSON.stringify(this.selectdata))
148
-
149
222
  this.show_data = temp
150
223
  this.$nextTick(() => {
151
224
  this.showview = true
152
225
  })
226
+ const defname = this.selectdata.defname
227
+ const type = this.selectdata.f_apply_type
228
+ const title=this.selectdata.title
229
+ if(title=='信息修改' ||title=='信息变更'){
230
+ this.getCheckPay(this.selectdata.fields, defname, type)
231
+ }
232
+ if( type=='非民用报建' && title=='费用调整'){
233
+ if(defname=='报装缴费'){
234
+ this.getCheckPayRecording()
235
+ if(this.recording ==1){ //收费了
236
+ this.modifData(this.selectdata.fields,0)
237
+ }
238
+ if(this.recording ==0){ //没收费
239
+ this.modifData(this.selectdata.fields,1)
240
+ }
241
+ }
242
+ }
153
243
  },
154
244
  // 金额转大写
155
245
  smalltoBIG(n) {
@@ -346,7 +436,28 @@
346
436
  }
347
437
  })
348
438
  throw '用户已缴费,无法修改!!!'
439
+ }else{
440
+ let datas = {
441
+ data: this.show_data,
442
+ user: this.$login.f
443
+ }
444
+ let http = new HttpResetClass()
445
+ let res = http.load('POST', 'rs/logic/modifyRecords', {data:datas}, {
446
+ resolveMsg: null,
447
+ rejectMsg: '保存修改记录失败!!!'
448
+ })
449
+ }
450
+ }
451
+ if(this.selectdata.title === '费用调整'){
452
+ let data = {
453
+ data: this.show_data,
454
+ user: this.$login.f
349
455
  }
456
+ let http = new HttpResetClass()
457
+ let res = http.load('POST', 'rs/logic/modifyRecords', {data:data}, {
458
+ resolveMsg: null,
459
+ rejectMsg: '保存修改记录失败!!!'
460
+ })
350
461
  }
351
462
  console.log("保存数据")
352
463
  let res = await this.$resetpost(
@@ -354,7 +465,6 @@
354
465
  this.show_data,
355
466
  {resolveMsg: null, rejectMsg: '数据保存失败!!!'}
356
467
  )
357
-
358
468
  this.$dispatch('loadPage')
359
469
  },
360
470
  //身份证号码校验
@@ -470,6 +580,7 @@
470
580
  }
471
581
  },
472
582
  watch:{
583
+ deep: true
473
584
  }
474
585
  }
475
586
  </script>
@@ -0,0 +1,182 @@
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
4
+ <form class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-6" :class="[!model.f_user_name ? 'has-error' : '']">
7
+ <label class="font_normal_body">用户姓名</label>
8
+ <input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
9
+ </div>
10
+ <div class="col-sm-6" :class="[!model.f_phone ? 'has-error' : '']">
11
+ <label class="font_normal_body">用户电话</label>
12
+ <input type="text" v-model="model.f_phone" disabled=disabled style="width: 60%" class="input_search">
13
+ </div>
14
+ </div>
15
+
16
+ <div class="row">
17
+ <div class="col-sm-6" :class="[!model.f_address ? 'has-error' : '']">
18
+ <label class="font_normal_body">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址</label>
19
+ <input type="text" v-model="model.f_address" disabled=disabled style="width: 60%" class="input_search">
20
+ </div>
21
+ <div class="col-sm-6" :class="[!model.f_apply_num ? 'has-error' : '']">
22
+ <label class="font_normal_body">工程编号</label>
23
+ <input type="text" v-model="model.f_apply_num" style="width: 60%" class="input_search">
24
+ </div>
25
+ </div>
26
+ <div class="row">
27
+ <div class="col-sm-6" :class="[!model.f_apply_type ? 'has-error' : '']">
28
+ <label class="font_normal_body">报装类型</label>
29
+ <input type="text" v-model="model.f_apply_type" style="width: 60%" class="input_search">
30
+ </div>
31
+ <div class="col-sm-6" :class="[!model.f_apply_source ? 'has-error' : '']">
32
+ <label class="font_normal_body">报装来源</label>
33
+ <input type="text" v-model="model.f_apply_source" style="width: 60%" class="input_search">
34
+ </div>
35
+ </div>
36
+
37
+ <div class="row">
38
+ <div class="col-sm-6" :class="[!model.f_apply_nature ? 'has-error' : '']">
39
+ <label class="font_normal_body">报建性质</label>
40
+ <input type="text" v-model="model.f_apply_nature" style="width: 60%" class="input_search">
41
+ </div>
42
+ <div class="col-sm-6" :class="[!model.defname ? 'has-error' : '']">
43
+ <label class="font_normal_body">办理环节</label>
44
+ <input type="text" v-model="model.defname" style="width: 60%" class="input_search"
45
+ v-validate:f_status='{required: true}'>
46
+ </div>
47
+ <div class="col-sm-6" :class="[!model.f_sub_state ? 'has-error' : '']">
48
+ <label class="font_normal_body">流程状态</label>
49
+ <input type="text" v-model="model.f_sub_state" style="width: 60%" class="input_search"
50
+ v-validate:f_dispose_phone='{required: true}'>
51
+ </div>
52
+ <div class="col-sm-6" :class="[!model.f_apply_date ? 'has-error' : '']">
53
+ <label class="font_normal_body">报建日期</label>
54
+ <datepicker id="f_bill_date" placeholder="报建日期" style="width:60%"
55
+ v-model="model.f_apply_date"
56
+ :value.sync="model.f_apply_date"
57
+ :format="'yyyy-MM-dd HH:mm:ss'"
58
+ :show-reset-button="true"
59
+ v-validate:f_apply_date='{required: true}'>
60
+ </datepicker>
61
+ </div>
62
+ </div>
63
+ <div class="row">
64
+ <div class="col-sm-6" :class="[!model.f_project_name ? 'has-error' : '']">
65
+ <label class="font_normal_body">项目名称</label>
66
+ <input type="text" v-model="model.f_project_name" style="width: 48%" class="input_search">
67
+ </div>
68
+ <div class="col-sm-6">
69
+ <label class="font_normal_body">土地获取方式</label>
70
+ <v-select :value.sync="model.f_land_acquisition_methods" v-model="model.f_land_acquisition_methods"
71
+ placeholder='土地获取方式'
72
+ value-single="true"
73
+ :options='$parent.$parent.landMethods'
74
+ close-on-select
75
+ ></v-select>
76
+ </div>
77
+ </div>
78
+
79
+ <div class="row">
80
+ <div class="col-sm-12" :class="[!model.f_total_investment ? 'has-error' : '']">
81
+ <label class="font_normal_body">总投资(万元)</label>
82
+ <input type="text" v-model="model.f_total_investment" style="width: 30%"
83
+ class="input_search">
84
+ </div>
85
+
86
+ </div>
87
+ <div class="row">
88
+ <div class="col-sm-12" :class="[!model.f_land_area ? 'has-error' : '']">
89
+ <label class="font_normal_body">用地面积</label>
90
+ <input type="text" v-model="model.f_land_area" style="width: 30%" class="input_search">
91
+ </div>
92
+ <div class="col-sm-6" :class="[!model.f_open_date ? 'has-error' : '']">
93
+ <label class="font_normal_body">拟开工时间</label>
94
+ <datepicker id="f_bill_date" placeholder="拟开工时间" style="width:60%"
95
+ v-model="model.f_open_date"
96
+ :value.sync="model.f_open_date"
97
+ :format="'yyyy-MM-dd HH:mm:ss'"
98
+ :show-reset-button="true"
99
+ v-validate:f_open_date='{required: true}'>
100
+ </datepicker>
101
+ </div>
102
+ <div class="col-sm-6" :class="[!model.f_success_date ? 'has-error' : '']">
103
+ <label class="font_normal_body">拟建成时间</label>
104
+ <datepicker id="f_bill_date" placeholder="拟建成时间" style="width:60%"
105
+ v-model="model.f_success_date"
106
+ :value.sync="model.f_success_date"
107
+ :format="'yyyy-MM-dd HH:mm:ss'"
108
+ :show-reset-button="true"
109
+ v-validate:f_success_date='{required: true}'>
110
+ </datepicker>
111
+ </div>
112
+ <div class="col-sm-12" :class="[!model.f_national_standard_industry ? 'has-error' : '']">
113
+ <label class="font_normal_body">国标行业</label>
114
+ <input type="text" v-model="model.f_national_standard_industry" style="width: 30%" class="input_search">
115
+ </div>
116
+ </div>
117
+ <div class="row">
118
+ <div class="col-sm-12" :class="[!model.f_construction_content ? 'has-error' : '']">
119
+ <label class="font_normal_body">建设规模及内容</label>
120
+ <input type="text" v-model="model.f_construction_content" style="width: 60%" class="input_search"
121
+ v-validate:f_explain='{required: true}'>
122
+ </div>
123
+ </div>
124
+ </form>
125
+ </validator>
126
+
127
+ <div style="float: right">
128
+ <button
129
+ type="button"
130
+ class="btn button_search"
131
+ :disabled="!isFormComplete()"
132
+ @click="save">提交</button>
133
+ <button class="button_clear" @click="cancel">取消</button>
134
+ </div>
135
+ </div>
136
+ </template>
137
+
138
+ <script>
139
+
140
+ export default {
141
+ title: '报警处置',
142
+
143
+ data () {
144
+ return {
145
+ landMethods: [{label: '划拨用地', value: '划拨用地'}, {label: '自有用地', value: '自有用地'}, {label: '公开出让用地', value: '公开出让用地'}, {label: '协议出让用地', value: '协议出让用地'}, {label: '其他', value: '其他'}]
146
+ }
147
+ },
148
+
149
+ props: {
150
+ model: {
151
+ type: Object
152
+ }
153
+ },
154
+ methods: {
155
+ isFormComplete () {
156
+ const model = this.model
157
+ return (
158
+ model.f_user_name && model.f_user_phone && model.f_address && model.f_device_code && model.f_latest_alarm_value &&
159
+ model.f_alarm_type && model.f_latest_alarm_level && model.f_latest_alarm_time && model.f_dispose_status &&
160
+ model.f_dispose_person && model.f_dispose_phone && model.f_status && model.f_dispose_time && model.f_explain
161
+ )
162
+ },
163
+ cancel () {
164
+ this.$dispatch('close')
165
+ },
166
+ addressValid (val) {
167
+ console.log(val)
168
+ },
169
+ save () {
170
+ this.$resetpost('rs/logic/pushAlarmDispose', {data: this.model}).then((res) => {
171
+ console.log('this.model', this.model)
172
+ })
173
+ this.$dispatch('close')
174
+ }
175
+ }
176
+ }
177
+
178
+ </script>
179
+
180
+ <style scoped>
181
+
182
+ </style>