apply-clients 3.3.56 → 3.3.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.
@@ -477,9 +477,60 @@ export default {
477
477
  value: item
478
478
  }
479
479
  })
480
+ },
481
+ async getDesignerPeople () {
482
+ let data = {
483
+ source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
484
+ userid: this.$login.f.id
485
+ }
486
+
487
+ let http = new HttpResetClass()
488
+ let res = await http.load(
489
+ 'POST',
490
+ `rs/search`,
491
+ {data: data},
492
+ {resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
493
+ )
494
+
495
+ return res.data.map(item => {
496
+ return {
497
+ label: item.name,
498
+ value: item.id
499
+ }
500
+ })
501
+ },
502
+ async surveyStopApply () {
503
+ console.log('终止报建!!!!!')
504
+
505
+ this.show_data.f_stop_reason = '现场勘察不符合报装条件'
506
+
507
+ let data = {
508
+ data: this.show_data,
509
+ user: Vue.user
510
+ }
511
+
512
+ let res = await this.$resetpost(
513
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/surveyStopApply`,
514
+ {data: data},
515
+ {resolveMsg: null, rejectMsg: '终止报建失败!!!'}
516
+ )
517
+
518
+ this.$dispatch('loadPage')
519
+
520
+ throw '终止报建!!!'
480
521
  }
481
522
  },
482
523
  events: {
524
+ 'complyInstallation' (index) {
525
+ if (this.show_data.f_is_have === '否') {
526
+ this.hideButtons('提交', '出图', '缴费')
527
+ this.showButtons('终止')
528
+ }
529
+ if (this.show_data.f_is_have === '是') {
530
+ this.hideButtons('终止')
531
+ this.showButtons('提交', '出图', '缴费')
532
+ }
533
+ },
483
534
  async 'igniteDispatchReadyEvent' () {
484
535
  let data = {
485
536
  tablename: 'activityins',
@@ -581,6 +632,7 @@ export default {
581
632
  },
582
633
  // 通气点火初始化
583
634
  async 'gasReadyEvent' () {
635
+ console.log('----通气点火初始化----')
584
636
  if (!isEmpty(this.show_data.f_price_id)) {
585
637
  let priceList = await this.getPrice(this.show_data.f_price_id)
586
638
  this.setLabelValue('气价名称', priceList[0].value)
@@ -590,6 +642,8 @@ export default {
590
642
  tablename: 't_userfees',
591
643
  condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
592
644
  }
645
+
646
+ console.log('---------查询是否有待执行保险-----------')
593
647
  let http = new HttpResetClass()
594
648
  let res = await http.load(
595
649
  'POST',
@@ -598,6 +652,7 @@ export default {
598
652
  {resolveMsg: null, rejectMsg: '保险查询失败!!!'}
599
653
  )
600
654
  if (res.data.length > 0) {
655
+ console.log('----------具有待执行保险------------')
601
656
  this.setLabelValue('待执行保险', '是')
602
657
  for (const item of this.show_data.fields) {
603
658
  if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
@@ -606,7 +661,9 @@ export default {
606
661
  item.value = null
607
662
  }
608
663
  }
664
+ console.log('----------具有待执行保险------------')
609
665
  } else {
666
+ console.log('----------不有待执行保险------------')
610
667
  this.setLabelValue('待执行保险', '否')
611
668
  for (const item of this.show_data.fields) {
612
669
  if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
@@ -614,6 +671,7 @@ export default {
614
671
  item.required = true
615
672
  }
616
673
  }
674
+ console.log('----------具有待执行保险------------')
617
675
  }
618
676
 
619
677
  // 初始化显示内容
@@ -1,263 +1,263 @@
1
- <template>
2
- <div class="col-sm-12">
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3">
8
- <label class="font_normal_body">组织机构:</label>
9
- <res-select
10
- restype='organization'
11
- :initresid='$parent.$parent.curorgid'
12
- @res-select="$parent.$parent.getorg"
13
- is-mul="false"
14
- ></res-select>
15
- </div>
16
- <div class="form-group col-sm-3">
17
- <label class="font_normal_body">预约类型:</label>
18
- <v-select
19
- v-model="model.f_ordertype"
20
- placeholder='预约类型'
21
- condition="o.f_ordertype = '{}'"
22
- :value.sync="model.f_ordertype"
23
- :options='$parent.$parent.orderType'
24
- class="select select_list"
25
- :value-single="true"
26
- close-on-select ></v-select>
27
- </div>
28
- <div class="form-group col-sm-3">
29
- <label class="font_normal_body">处理状态:</label>
30
- <v-select
31
- v-model="model.f_orderstate"
32
- placeholder='处理状态'
33
- condition="o.f_orderstate = '{}'"
34
- :value.sync="model.f_orderstate"
35
- :options='$parent.$parent.orderState'
36
- class="select select_list"
37
- :value-single="true"
38
- close-on-select ></v-select>
39
- </div>
40
- <div class="form-group col-sm-6 button-range">
41
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <div
44
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
46
- class="button_spacing"
47
- style="float: right">
48
- </div>
49
- </div>
50
- </div>
51
- <div class="row" v-show="$parent.$parent.criteriaShow">
52
- <div class="form-group col-sm-3">
53
- <label class="font_normal_body">预约来源:</label>
54
- <v-select
55
- placeholder='预约来源'
56
- v-model="model.f_order_source"
57
- :value.sync="model.f_order_source"
58
- condition="o.f_order_source = '{}'"
59
- :options='$parent.$parent.orderSource'
60
- class="select select_list"
61
- :value-single="true"
62
- close-on-select ></v-select>
63
- </div>
64
- <div class="form-group col-sm-3">
65
- <label class="font_normal_body">用户编号:</label>
66
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
67
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_userinfo_code like '%{}%'" placeholder='用户编号'>
68
- </div>
69
- <div class="form-group col-sm-3">
70
- <label class="font_normal_body">用户姓名:</label>
71
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
72
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_user_name like '%{}%'" placeholder='用户姓名'>
73
- </div>
74
- <div class="form-group col-sm-3">
75
- <label class="font_normal_body">联系电话:</label>
76
- <input type="text" style="width:60%" class="input_search" v-model="model.f_phone"
77
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_phone like '%{}%'" placeholder='联系电话'>
78
- </div>
79
- <div class="form-group col-sm-3">
80
- <label class="font_normal_body">详细地址:</label>
81
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
82
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_address like '%{}%'" placeholder='详细地址'>
83
- </div>
84
- <div class="form-group col-sm-3">
85
- <label class="font_normal_body">审&ensp;核&ensp;人:</label>
86
- <input type="text" style="width:60%" class="input_search" v-model="model.f_check_user"
87
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_check_user like '%{}%'" placeholder='审核人'>
88
- </div>
89
- <div class="form-group col-sm-3">
90
- <label class="font_normal_body">处&ensp;理&ensp;人:</label>
91
- <input type="text" style="width:60%" class="input_search" v-model="model.f_process_user"
92
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_process_user like '%{}%'" placeholder='处理人'>
93
- </div>
94
- <div class="form-group col-sm-3">
95
- <label class="font_normal_body">报建编号:</label>
96
- <input type="text" style="width:60%" class="input_search" v-model="model.f_apply_num"
97
- v-on:keyup.enter="$parent.$parent.search()" condition="u.f_apply_num like '%{}%'" placeholder='报建编号'>
98
- </div>
99
- <div class="form-group col-sm-3">
100
- <label for="startDate" class="font_normal_body">开始时间:</label>
101
- <datepicker id="startDate" placeholder="开始日期"
102
- style="width: 60%!important;"
103
- v-model="model.startDate"
104
- :value.sync="model.startDate"
105
- :format="'yyyy-MM-dd 00:00:00'"
106
- :show-reset-button="true"
107
- condition="o.f_orderdate >= '{}'">
108
- </datepicker>
109
- </div>
110
- <div class="form-group col-sm-3">
111
- <label for="endDate" class="font_normal_body">结束时间:</label>
112
- <datepicker id="endDate" placeholder="结束日期"
113
- style="width: 60%!important;"
114
- v-model="model.endDate"
115
- :value.sync="model.endDate"
116
- :format="'yyyy-MM-dd 23:59:59'"
117
- :show-reset-button="true"
118
- condition="o.f_orderdate <= '{}'">
119
- </datepicker>
120
- </div>
121
- </div>
122
- </div>
123
- </criteria>
124
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
125
- <template partial='head'>
126
- <tr>
127
- <th style="white-space: nowrap;">序号</th>
128
- <th style="white-space: nowrap;">预约类型</th>
129
- <th style="white-space: nowrap;">处理状态</th>
130
- <th style="white-space: nowrap;">预约来源</th>
131
- <th style="white-space: nowrap;">用户编号</th>
132
- <th style="white-space: nowrap;">用户姓名</th>
133
- <th style="white-space: nowrap;">联系电话</th>
134
- <th style="white-space: nowrap;">预约地址</th>
135
- <th style="white-space: nowrap;">备注信息</th>
136
- <th style="white-space: nowrap;">预约时间</th>
137
- <th style="white-space: nowrap;">报建编号</th>
138
- <th style="white-space: nowrap;">操作</th>
139
- </tr>
140
- </template>
141
- <template partial='body'>
142
- <tr>
143
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
144
- <nobr>{{$index+1}}</nobr>
145
- </td>
146
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
147
- <nobr>{{row.f_ordertype}}</nobr>
148
- </td>
149
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
150
- <nobr>{{row.f_orderstate}}</nobr>
151
- </td>
152
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
153
- <nobr>{{row.f_order_source}}</nobr>
154
- </td>
155
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
156
- <nobr>{{row.f_userinfo_code}}</nobr>
157
- </td>
158
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
159
- <nobr>{{row.f_user_name}}</nobr>
160
- </td>
161
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
162
- <nobr>{{row.f_phone}}</nobr>
163
- </td>
164
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
165
- <nobr>{{row.f_address}}</nobr>
166
- </td>
167
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
168
- <nobr>{{row.f_orderremark}}</nobr>
169
- </td>
170
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
171
- <nobr>{{row.f_orderdate}}</nobr>
172
- </td>
173
- <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
174
- <nobr>{{row.f_apply_num}}</nobr>
175
- </td>
176
- <td style="text-align: center;">
177
- <button class="button_search button_spacing width-60"
178
- @click="$parent.$parent.$parent.handleOrder('check', row)"
179
- v-if="row.f_orderstate === '待审核'"
180
- >审核</button>
181
- <button class="button_search button_spacing width-60"
182
- @click="$parent.$parent.$parent.handleOrder('process', row)"
183
- v-if="row.f_orderstate === '待处理' && row.f_ordertype !== '预约点火'"
184
- >处理</button>
185
- </td>
186
- </tr>
187
- </template>
188
- </data-grid>
189
- </criteria-paged>
190
- </div>
191
- </template>
192
- <script>
193
- import {PagedList} from 'vue-client'
194
- export default {
195
- title: '预约单',
196
- data () {
197
- return {
198
- model: new PagedList('rs/sql/getOrderApply', 20, null),
199
- curorgid: [this.$login.f.orgid],
200
- criteriaShow: false,
201
- orderType: [
202
- {'label': '预约报装', 'value': '预约报装'},
203
- {'label': '预约改管', 'value': '预约改管'},
204
- {'label': '预约增容', 'value': '预约增容'},
205
- {'label': '预约点火', 'value': '预约点火'}
206
- ],
207
- orderState: [
208
- {'label': '待审核', 'value': '待审核'},
209
- {'label': '待处理', 'value': '待处理'},
210
- {'label': '预约成功', 'value': '预约成功'},
211
- {'label': '预约失败', 'value': '预约失败'}
212
- ],
213
- orderSource: [
214
- {'label': '微客服', 'value': '微客服'},
215
- {'label': '呼叫中心', 'value': '呼叫中心'}
216
- ],
217
- userType: [
218
- {'label': '个人', 'value': '个人'},
219
- {'label': '整体小区', 'value': '整体小区'}
220
- ],
221
- userNature: [
222
- {'label': '民用', 'value': '民用'},
223
- {'label': '非民用', 'value': '非民用'}
224
- ]
225
- }
226
- },
227
- ready () {
228
- // 调用查询
229
- this.search()
230
- },
231
- events: {
232
- },
233
- methods: {
234
- // 处理
235
- handleOrder (type, row) {
236
- this.$dispatch('handleOrder', type, row)
237
- },
238
- searchCondition (args) {
239
- args.condition = args.condition + ` and o.f_orgid = '${this.curorgid[0]}'`
240
- this.model.search(args.condition, args.model)
241
- },
242
- search () {
243
- this.$dispatch('search')
244
- },
245
- clear () {
246
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
247
- this.$refs.cp.$refs.cri.model[key] = null
248
- })
249
- },
250
- getorg (val) {
251
- if (val.length <= 0) {
252
- return
253
- }
254
- this.curorgid = val
255
- this.search()
256
- }
257
- },
258
- computed: {
259
- }
260
- }
261
- </script>
262
- <style scoped>
263
- </style>
1
+ <template>
2
+ <div class="col-sm-12">
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">组织机构:</label>
9
+ <res-select
10
+ restype='organization'
11
+ :initresid='$parent.$parent.curorgid'
12
+ @res-select="$parent.$parent.getorg"
13
+ is-mul="false"
14
+ ></res-select>
15
+ </div>
16
+ <div class="form-group col-sm-3">
17
+ <label class="font_normal_body">预约类型:</label>
18
+ <v-select
19
+ v-model="model.f_ordertype"
20
+ placeholder='预约类型'
21
+ condition="o.f_ordertype = '{}'"
22
+ :value.sync="model.f_ordertype"
23
+ :options='$parent.$parent.orderType'
24
+ class="select select_list"
25
+ :value-single="true"
26
+ close-on-select ></v-select>
27
+ </div>
28
+ <div class="form-group col-sm-3">
29
+ <label class="font_normal_body">处理状态:</label>
30
+ <v-select
31
+ v-model="model.f_orderstate"
32
+ placeholder='处理状态'
33
+ condition="o.f_orderstate = '{}'"
34
+ :value.sync="model.f_orderstate"
35
+ :options='$parent.$parent.orderState'
36
+ class="select select_list"
37
+ :value-single="true"
38
+ close-on-select ></v-select>
39
+ </div>
40
+ <div class="form-group col-sm-6 button-range">
41
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <div
44
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
46
+ class="button_spacing"
47
+ style="float: right">
48
+ </div>
49
+ </div>
50
+ </div>
51
+ <div class="row" v-show="$parent.$parent.criteriaShow">
52
+ <div class="form-group col-sm-3">
53
+ <label class="font_normal_body">预约来源:</label>
54
+ <v-select
55
+ placeholder='预约来源'
56
+ v-model="model.f_order_source"
57
+ :value.sync="model.f_order_source"
58
+ condition="o.f_order_source = '{}'"
59
+ :options='$parent.$parent.orderSource'`
60
+ class="select select_list"
61
+ :value-single="true"
62
+ close-on-select ></v-select>
63
+ </div>
64
+ <div class="form-group col-sm-3">
65
+ <label class="font_normal_body">用户编号:</label>
66
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
67
+ v-on:keyup.enter="$parent.$parent.search()" condition="o.f_userinfo_code like '%{}%'" placeholder='用户编号'>
68
+ </div>
69
+ <div class="form-group col-sm-3">
70
+ <label class="font_normal_body">用户姓名:</label>
71
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
72
+ v-on:keyup.enter="$parent.$parent.search()" condition="o.f_user_name like '%{}%'" placeholder='用户姓名'>
73
+ </div>
74
+ <div class="form-group col-sm-3">
75
+ <label class="font_normal_body">联系电话:</label>
76
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_phone"
77
+ v-on:keyup.enter="$parent.$parent.search()" condition="o.f_phone like '%{}%'" placeholder='联系电话'>
78
+ </div>
79
+ <div class="form-group col-sm-3">
80
+ <label class="font_normal_body">详细地址:</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
82
+ v-on:keyup.enter="$parent.$parent.search()" condition="o.f_address like '%{}%'" placeholder='详细地址'>
83
+ </div>
84
+ <div class="form-group col-sm-3">
85
+ <label class="font_normal_body">审&ensp;核&ensp;人:</label>
86
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_check_user"
87
+ v-on:keyup.enter="$parent.$parent.search()" condition="o.f_check_user like '%{}%'" placeholder='审核人'>
88
+ </div>
89
+ <div class="form-group col-sm-3">
90
+ <label class="font_normal_body">处&ensp;理&ensp;人:</label>
91
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_process_user"
92
+ v-on:keyup.enter="$parent.$parent.search()" condition="o.f_process_user like '%{}%'" placeholder='处理人'>
93
+ </div>
94
+ <div class="form-group col-sm-3">
95
+ <label class="font_normal_body">报建编号:</label>
96
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_apply_num"
97
+ v-on:keyup.enter="$parent.$parent.search()" condition="u.f_apply_num like '%{}%'" placeholder='报建编号'>
98
+ </div>
99
+ <div class="form-group col-sm-3">
100
+ <label for="startDate" class="font_normal_body">开始时间:</label>
101
+ <datepicker id="startDate" placeholder="开始日期"
102
+ style="width: 60%!important;"
103
+ v-model="model.startDate"
104
+ :value.sync="model.startDate"
105
+ :format="'yyyy-MM-dd 00:00:00'"
106
+ :show-reset-button="true"
107
+ condition="o.f_orderdate >= '{}'">
108
+ </datepicker>
109
+ </div>
110
+ <div class="form-group col-sm-3">
111
+ <label for="endDate" class="font_normal_body">结束时间:</label>
112
+ <datepicker id="endDate" placeholder="结束日期"
113
+ style="width: 60%!important;"
114
+ v-model="model.endDate"
115
+ :value.sync="model.endDate"
116
+ :format="'yyyy-MM-dd 23:59:59'"
117
+ :show-reset-button="true"
118
+ condition="o.f_orderdate <= '{}'">
119
+ </datepicker>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </criteria>
124
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
125
+ <template partial='head'>
126
+ <tr>
127
+ <th style="white-space: nowrap;">序号</th>
128
+ <th style="white-space: nowrap;">预约类型</th>
129
+ <th style="white-space: nowrap;">处理状态</th>
130
+ <th style="white-space: nowrap;">预约来源</th>
131
+ <th style="white-space: nowrap;">用户编号</th>
132
+ <th style="white-space: nowrap;">用户姓名</th>
133
+ <th style="white-space: nowrap;">联系电话</th>
134
+ <th style="white-space: nowrap;">预约地址</th>
135
+ <th style="white-space: nowrap;">备注信息</th>
136
+ <th style="white-space: nowrap;">预约时间</th>
137
+ <th style="white-space: nowrap;">报建编号</th>
138
+ <th style="white-space: nowrap;">操作</th>
139
+ </tr>
140
+ </template>
141
+ <template partial='body'>
142
+ <tr>
143
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
144
+ <nobr>{{$index+1}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
147
+ <nobr>{{row.f_ordertype}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
150
+ <nobr>{{row.f_orderstate}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
153
+ <nobr>{{row.f_order_source}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
156
+ <nobr>{{row.f_userinfo_code}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
159
+ <nobr>{{row.f_user_name}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
162
+ <nobr>{{row.f_phone}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
165
+ <nobr>{{row.f_address}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
168
+ <nobr>{{row.f_orderremark}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
171
+ <nobr>{{row.f_orderdate}}</nobr>
172
+ </td>
173
+ <td style="text-align: center;" @click="$parent.$parent.$parent.handleOrder('view', row)">
174
+ <nobr>{{row.f_apply_num}}</nobr>
175
+ </td>
176
+ <td style="text-align: center;">
177
+ <button class="button_search button_spacing width-60"
178
+ @click="$parent.$parent.$parent.handleOrder('check', row)"
179
+ v-if="row.f_orderstate === '待审核'"
180
+ >审核</button>
181
+ <button class="button_search button_spacing width-60"
182
+ @click="$parent.$parent.$parent.handleOrder('process', row)"
183
+ v-if="row.f_orderstate === '待处理' && row.f_ordertype !== '预约点火'"
184
+ >处理</button>
185
+ </td>
186
+ </tr>
187
+ </template>
188
+ </data-grid>
189
+ </criteria-paged>
190
+ </div>
191
+ </template>
192
+ <script>
193
+ import {PagedList} from 'vue-client'
194
+ export default {
195
+ title: '预约单',
196
+ data () {
197
+ return {
198
+ model: new PagedList('rs/sql/getOrderApply', 20, null),
199
+ curorgid: [this.$login.f.orgid],
200
+ criteriaShow: false,
201
+ orderType: [
202
+ {'label': '预约报装', 'value': '预约报装'},
203
+ {'label': '预约改管', 'value': '预约改管'},
204
+ {'label': '预约增容', 'value': '预约增容'},
205
+ {'label': '预约点火', 'value': '预约点火'}
206
+ ],
207
+ orderState: [
208
+ {'label': '待审核', 'value': '待审核'},
209
+ {'label': '待处理', 'value': '待处理'},
210
+ {'label': '预约成功', 'value': '预约成功'},
211
+ {'label': '预约失败', 'value': '预约失败'}
212
+ ],
213
+ orderSource: [
214
+ {'label': '微客服', 'value': '微客服'},
215
+ {'label': '呼叫中心', 'value': '呼叫中心'}
216
+ ],
217
+ userType: [
218
+ {'label': '个人', 'value': '个人'},
219
+ {'label': '整体小区', 'value': '整体小区'}
220
+ ],
221
+ userNature: [
222
+ {'label': '民用', 'value': '民用'},
223
+ {'label': '非民用', 'value': '非民用'}
224
+ ]
225
+ }
226
+ },
227
+ ready () {
228
+ // 调用查询
229
+ this.search()
230
+ },
231
+ events: {
232
+ },
233
+ methods: {
234
+ // 处理
235
+ handleOrder (type, row) {
236
+ this.$dispatch('handleOrder', type, row)
237
+ },
238
+ searchCondition (args) {
239
+ args.condition = args.condition + ` and o.f_orgid = '${this.curorgid[0]}'`
240
+ this.model.search(args.condition, args.model)
241
+ },
242
+ search () {
243
+ this.$dispatch('search')
244
+ },
245
+ clear () {
246
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
247
+ this.$refs.cp.$refs.cri.model[key] = null
248
+ })
249
+ },
250
+ getorg (val) {
251
+ if (val.length <= 0) {
252
+ return
253
+ }
254
+ this.curorgid = val
255
+ this.search()
256
+ }
257
+ },
258
+ computed: {
259
+ }
260
+ }
261
+ </script>
262
+ <style scoped>
263
+ </style>