apply-clients 3.1.36 → 3.1.37

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.
@@ -1,301 +1,301 @@
1
- <template>
2
- <div class="col-sm-12">
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' 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_orderstate"
20
- placeholder='处理状态'
21
- condition="f_orderstate like '%{}%'"
22
- :value.sync="model.f_orderstate"
23
- :options='$parent.$parent.orderState'
24
- class="select select_list"
25
- :value-single="true"
26
- close-on-select ></v-select>
27
- </div>
28
- <div class="form-group col-sm-6 button-range">
29
- <button class="button_new button_spacing" style="width: max-content" v-if="$parent.$parent.selectedData.length > 0 && $parent.$parent.selectedData[0].f_orderstate === '待审核'" @click="$parent.$parent.handleOrder('审核')">审核</button>
30
- <!-- <button class="button_new button_spacing" style="width: max-content" v-if="$parent.$parent.selectedData.length > 0 && $parent.$parent.selectedData[0].f_orderstate === '待处理'" @click="$parent.$parent.handleOrder('批量发起')">批量发起</button>-->
31
- <button class="button_new button_spacing" style="width: max-content" v-if="$parent.$parent.selectedData.length > 0 && $parent.$parent.selectedData[0].f_orderstate === '待处理'" @click="$parent.$parent.handleOrder('合并发起')">报建发起</button>
32
- <!-- <button class="button_new button_spacing" style="width: max-content" v-if="$parent.$parent.selectedData.length > 0 && $parent.$parent.selectedData[0].f_orderstate === '待处理'" @click="$parent.$parent.handleOrder('合并工程')">合并工程</button>-->
33
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
34
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
- <div
36
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
37
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
38
- class="button_spacing"
39
- style="float: right">
40
- </div>
41
- </div>
42
- </div>
43
- <div class="row" v-show="$parent.$parent.criteriaShow">
44
- <div class="form-group col-sm-3">
45
- <label class="font_normal_body">用户类型:</label>
46
- <v-select
47
- placeholder='用户类型'
48
- v-model="model.f_user_type"
49
- :value.sync="model.f_user_type"
50
- condition="f_user_type like '%{}%'"
51
- :options='$parent.$parent.userType'
52
- class="select select_list"
53
- :value-single="true"
54
- close-on-select ></v-select>
55
- </div>
56
- <div class="form-group col-sm-3">
57
- <label class="font_normal_body">用户性质:</label>
58
- <v-select
59
- placeholder='用户性质'
60
- v-model="model.f_user_nature"
61
- :value.sync="model.f_user_nature"
62
- condition="f_user_nature like '%{}%'"
63
- :options='$parent.$parent.userNature'
64
- class="select select_list"
65
- :value-single="true"
66
- close-on-select ></v-select>
67
- </div>
68
- <div class="form-group col-sm-3">
69
- <label class="font_normal_body">用户姓名:</label>
70
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
71
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='用户姓名'>
72
- </div>
73
- <div class="form-group col-sm-3">
74
- <label class="font_normal_body">联&ensp;系&ensp;人:</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_contact"
76
- v-on:keyup.enter="$parent.$parent.search()" condition="f_contact like '%{}%'" placeholder='联系人'>
77
- </div>
78
- <div class="form-group col-sm-3">
79
- <label class="font_normal_body">联系电话:</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_phone"
81
- v-on:keyup.enter="$parent.$parent.search()" condition="f_phone like '%{}%'" placeholder='联系电话'>
82
- </div>
83
- <div class="form-group col-sm-3">
84
- <label class="font_normal_body">详细地址:</label>
85
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
86
- v-on:keyup.enter="$parent.$parent.search()" condition="f_address like '%{}%'" placeholder='详细地址'>
87
- </div>
88
- <div class="form-group col-sm-3">
89
- <label class="font_normal_body">审&ensp;核&ensp;人:</label>
90
- <input type="text" style="width:60%" class="input_search" v-model="model.f_check_user"
91
- v-on:keyup.enter="$parent.$parent.search()" condition="f_check_user like '%{}%'" placeholder='审核人'>
92
- </div>
93
- <div class="form-group col-sm-3">
94
- <label class="font_normal_body">处&ensp;理&ensp;人:</label>
95
- <input type="text" style="width:60%" class="input_search" v-model="model.f_process_user"
96
- v-on:keyup.enter="$parent.$parent.search()" condition="f_process_user like '%{}%'" placeholder='处理人'>
97
- </div>
98
- <div class="form-group col-sm-3">
99
- <label class="font_normal_body">报建编号:</label>
100
- <input type="text" style="width:60%" class="input_search" v-model="model.f_apply_num"
101
- v-on:keyup.enter="$parent.$parent.search()" condition="f_apply_num like '%{}%'" placeholder='报建编号'>
102
- </div>
103
- <div class="form-group col-sm-3">
104
- <label for="startDate" class="font_normal_body">开始时间:</label>
105
- <datepicker id="startDate" placeholder="开始日期"
106
- style="width: 60%!important;"
107
- v-model="model.startDate"
108
- :value.sync="model.startDate"
109
- :format="'yyyy-MM-dd 00:00:00'"
110
- :show-reset-button="true"
111
- condition="f_orderdate >= '{}'">
112
- </datepicker>
113
- </div>
114
- <div class="form-group col-sm-3">
115
- <label for="endDate" class="font_normal_body">结束时间:</label>
116
- <datepicker id="endDate" placeholder="结束日期"
117
- style="width: 60%!important;"
118
- v-model="model.endDate"
119
- :value.sync="model.endDate"
120
- :format="'yyyy-MM-dd 23:59:59'"
121
- :show-reset-button="true"
122
- condition="f_orderdate <= '{}'">
123
- </datepicker>
124
- </div>
125
- </div>
126
- </div>
127
- </criteria>
128
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
129
- <template partial='head'>
130
- <tr>
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
- <!-- <th style="white-space: nowrap;">详细地址</th>-->
140
- <th style="white-space: nowrap;">预约时间</th>
141
- <th style="white-space: nowrap;">流水号</th>
142
- <th style="white-space: nowrap;">备注</th>
143
- <th style="white-space: nowrap;">预约状态</th>
144
- <!-- <th style="white-space: nowrap;">详细信息</th>-->
145
- </tr>
146
- </template>
147
- <template partial='body'>
148
- <tr>
149
- <td style="text-align: center;">
150
- <input type='checkbox' style="width: 22px;height: 22px;"
151
- v-if="$parent.$parent.$parent.showCheck(row)"
152
- :checked="$parent.$parent.$parent.ischecked(row)"
153
- @change="$parent.$parent.$parent.selectOne(row)"/>
154
- </td>
155
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
156
- <nobr>{{$index+1}}</nobr>
157
- </td>
158
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
159
- <nobr>{{row.khmc}}</nobr>
160
- </td>
161
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
162
- <nobr>{{row.zjlx}}</nobr>
163
- </td>
164
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
165
- <nobr>{{row.zjhm}}</nobr>
166
- </td>
167
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
168
- <nobr>{{row.lxr}}</nobr>
169
- </td>
170
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
171
- <nobr>{{row.lxdh}}</nobr>
172
- </td>
173
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
174
- <nobr>{{row.bjlx}}</nobr>
175
- </td>
176
- <!-- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">-->
177
- <!-- <nobr>{{row.dz}}</nobr>-->
178
- <!-- </td>-->
179
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
180
- <nobr>{{row.exchange_date}}</nobr>
181
- </td>
182
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
183
- <nobr>{{row.lsh}}</nobr>
184
- </td>
185
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
186
- <nobr>{{row.bz}}</nobr>
187
- </td>
188
- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
189
- <nobr>{{row.f_orderstate}}</nobr>
190
- </td>
191
- <!-- <td style="text-align: center;">-->
192
- <!-- <button class="button_search button_spacing width-60" @click="$parent.$parent.$parent.viewOrder(row)">查看</button>-->
193
- <!-- </td>-->
194
- </tr>
195
- </template>
196
- </data-grid>
197
- </criteria-paged>
198
- </div>
199
- </template>
200
- <script>
201
- import {PagedList} from 'vue-client'
202
- export default {
203
- title: '预约单',
204
- props: ['showData'],
205
- data () {
206
- return {
207
- model: new PagedList('rs/sql/getEX_TRQBJ_SB', 20, {
208
- data: {
209
- field: 'id'
210
- }
211
- }),
212
- curorgid: [this.$login.f.orgid],
213
- criteriaShow: false,
214
- selectedData: [],
215
- orderState: [
216
- {'label': '待审核', 'value': '待审核'},
217
- {'label': '待处理', 'value': '待处理'},
218
- {'label': '预约成功', 'value': '预约成功'},
219
- {'label': '预约失败', 'value': '预约失败'}
220
- ],
221
- userType: [
222
- {'label': '个人', 'value': '个人'},
223
- {'label': '整体小区', 'value': '整体小区'}
224
- ],
225
- userNature: [
226
- {'label': '民用', 'value': '民用'},
227
- {'label': '非民用', 'value': '非民用'}
228
- ]
229
- }
230
- },
231
- ready () {
232
- // 调用查询
233
- this.search()
234
- },
235
- events: {
236
- },
237
- methods: {
238
- viewOrder (row) {
239
- this.$dispatch('viewOrder', row)
240
- },
241
- handleOrder (type) {
242
- if (this.selectedData.length > 1) {
243
- this.$showMessage('选择数量只能为1个,请重新选择后在试!')
244
- } else {
245
- this.$dispatch('handleOrder', type, this.selectedData)
246
- }
247
- },
248
- // 选择
249
- selectOne (row) {
250
- if (row.f_orderstate === '预约成功' || row.f_orderstate === '预约失败') {
251
- return
252
- }
253
- if (this.selectedData.length > 0 && this.selectedData[0].f_orderstate !== row.f_orderstate) {
254
- return
255
- }
256
- if (this.ischecked(row)) {
257
- this.selectedData.splice(this.selectedData.indexOf(row),1)
258
- } else {
259
- this.selectedData.push(row)
260
- }
261
- },
262
- // 查询
263
- search () {
264
- this.$dispatch('search')
265
- },
266
- clear () {
267
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
268
- this.$refs.cp.$refs.cri.model[key] = null
269
- })
270
- },
271
- getorg (val) {
272
- if (val.length <= 0) {
273
- return
274
- }
275
- this.model.params.data.orgid = val[0]
276
- }
277
- },
278
- computed: {
279
- // 是否显示
280
- showCheck () {
281
- return function (row) {
282
- if (row.f_orderstate === '预约成功' || row.f_orderstate === '预约失败') {
283
- return false
284
- }
285
- if (!this.selectedData.length > 0) {
286
- return true
287
- }
288
- return this.selectedData[0].f_orderstate === row.f_orderstate
289
- }
290
- },
291
- // 检查是否选中
292
- ischecked () {
293
- return function (row) {
294
- return this.selectedData.includes(row)
295
- }
296
- }
297
- }
298
- }
299
- </script>
300
- <style scoped>
301
- </style>
1
+ <template>
2
+ <div class="col-sm-12">
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' 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_orderstate"
20
+ placeholder='处理状态'
21
+ condition="f_orderstate like '%{}%'"
22
+ :value.sync="model.f_orderstate"
23
+ :options='$parent.$parent.orderState'
24
+ class="select select_list"
25
+ :value-single="true"
26
+ close-on-select ></v-select>
27
+ </div>
28
+ <div class="form-group col-sm-6 button-range">
29
+ <button class="button_new button_spacing" style="width: max-content" v-if="$parent.$parent.selectedData.length > 0 && $parent.$parent.selectedData[0].f_orderstate === '待审核'" @click="$parent.$parent.handleOrder('审核')">审核</button>
30
+ <!-- <button class="button_new button_spacing" style="width: max-content" v-if="$parent.$parent.selectedData.length > 0 && $parent.$parent.selectedData[0].f_orderstate === '待处理'" @click="$parent.$parent.handleOrder('批量发起')">批量发起</button>-->
31
+ <button class="button_new button_spacing" style="width: max-content" v-if="$parent.$parent.selectedData.length > 0 && $parent.$parent.selectedData[0].f_orderstate === '待处理'" @click="$parent.$parent.handleOrder('合并发起')">报建发起</button>
32
+ <!-- <button class="button_new button_spacing" style="width: max-content" v-if="$parent.$parent.selectedData.length > 0 && $parent.$parent.selectedData[0].f_orderstate === '待处理'" @click="$parent.$parent.handleOrder('合并工程')">合并工程</button>-->
33
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
34
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
+ <div
36
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
37
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
38
+ class="button_spacing"
39
+ style="float: right">
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div class="row" v-show="$parent.$parent.criteriaShow">
44
+ <div class="form-group col-sm-3">
45
+ <label class="font_normal_body">用户类型:</label>
46
+ <v-select
47
+ placeholder='用户类型'
48
+ v-model="model.f_user_type"
49
+ :value.sync="model.f_user_type"
50
+ condition="f_user_type like '%{}%'"
51
+ :options='$parent.$parent.userType'
52
+ class="select select_list"
53
+ :value-single="true"
54
+ close-on-select ></v-select>
55
+ </div>
56
+ <div class="form-group col-sm-3">
57
+ <label class="font_normal_body">用户性质:</label>
58
+ <v-select
59
+ placeholder='用户性质'
60
+ v-model="model.f_user_nature"
61
+ :value.sync="model.f_user_nature"
62
+ condition="f_user_nature like '%{}%'"
63
+ :options='$parent.$parent.userNature'
64
+ class="select select_list"
65
+ :value-single="true"
66
+ close-on-select ></v-select>
67
+ </div>
68
+ <div class="form-group col-sm-3">
69
+ <label class="font_normal_body">用户姓名:</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
71
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='用户姓名'>
72
+ </div>
73
+ <div class="form-group col-sm-3">
74
+ <label class="font_normal_body">联&ensp;系&ensp;人:</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_contact"
76
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_contact like '%{}%'" placeholder='联系人'>
77
+ </div>
78
+ <div class="form-group col-sm-3">
79
+ <label class="font_normal_body">联系电话:</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_phone"
81
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_phone like '%{}%'" placeholder='联系电话'>
82
+ </div>
83
+ <div class="form-group col-sm-3">
84
+ <label class="font_normal_body">详细地址:</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
86
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_address like '%{}%'" placeholder='详细地址'>
87
+ </div>
88
+ <div class="form-group col-sm-3">
89
+ <label class="font_normal_body">审&ensp;核&ensp;人:</label>
90
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_check_user"
91
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_check_user like '%{}%'" placeholder='审核人'>
92
+ </div>
93
+ <div class="form-group col-sm-3">
94
+ <label class="font_normal_body">处&ensp;理&ensp;人:</label>
95
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_process_user"
96
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_process_user like '%{}%'" placeholder='处理人'>
97
+ </div>
98
+ <div class="form-group col-sm-3">
99
+ <label class="font_normal_body">报建编号:</label>
100
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_apply_num"
101
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_apply_num like '%{}%'" placeholder='报建编号'>
102
+ </div>
103
+ <div class="form-group col-sm-3">
104
+ <label for="startDate" class="font_normal_body">开始时间:</label>
105
+ <datepicker id="startDate" placeholder="开始日期"
106
+ style="width: 60%!important;"
107
+ v-model="model.startDate"
108
+ :value.sync="model.startDate"
109
+ :format="'yyyy-MM-dd 00:00:00'"
110
+ :show-reset-button="true"
111
+ condition="f_orderdate >= '{}'">
112
+ </datepicker>
113
+ </div>
114
+ <div class="form-group col-sm-3">
115
+ <label for="endDate" class="font_normal_body">结束时间:</label>
116
+ <datepicker id="endDate" placeholder="结束日期"
117
+ style="width: 60%!important;"
118
+ v-model="model.endDate"
119
+ :value.sync="model.endDate"
120
+ :format="'yyyy-MM-dd 23:59:59'"
121
+ :show-reset-button="true"
122
+ condition="f_orderdate <= '{}'">
123
+ </datepicker>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </criteria>
128
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
129
+ <template partial='head'>
130
+ <tr>
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
+ <!-- <th style="white-space: nowrap;">详细地址</th>-->
140
+ <th style="white-space: nowrap;">预约时间</th>
141
+ <th style="white-space: nowrap;">流水号</th>
142
+ <th style="white-space: nowrap;">备注</th>
143
+ <th style="white-space: nowrap;">预约状态</th>
144
+ <!-- <th style="white-space: nowrap;">详细信息</th>-->
145
+ </tr>
146
+ </template>
147
+ <template partial='body'>
148
+ <tr>
149
+ <td style="text-align: center;">
150
+ <input type='checkbox' style="width: 22px;height: 22px;"
151
+ v-if="$parent.$parent.$parent.showCheck(row)"
152
+ :checked="$parent.$parent.$parent.ischecked(row)"
153
+ @change="$parent.$parent.$parent.selectOne(row)"/>
154
+ </td>
155
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
156
+ <nobr>{{$index+1}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
159
+ <nobr>{{row.khmc}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
162
+ <nobr>{{row.zjlx}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
165
+ <nobr>{{row.zjhm}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
168
+ <nobr>{{row.lxr}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
171
+ <nobr>{{row.lxdh}}</nobr>
172
+ </td>
173
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
174
+ <nobr>{{row.bjlx}}</nobr>
175
+ </td>
176
+ <!-- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">-->
177
+ <!-- <nobr>{{row.dz}}</nobr>-->
178
+ <!-- </td>-->
179
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
180
+ <nobr>{{row.exchange_date}}</nobr>
181
+ </td>
182
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
183
+ <nobr>{{row.lsh}}</nobr>
184
+ </td>
185
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
186
+ <nobr>{{row.bz}}</nobr>
187
+ </td>
188
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
189
+ <nobr>{{row.f_orderstate}}</nobr>
190
+ </td>
191
+ <!-- <td style="text-align: center;">-->
192
+ <!-- <button class="button_search button_spacing width-60" @click="$parent.$parent.$parent.viewOrder(row)">查看</button>-->
193
+ <!-- </td>-->
194
+ </tr>
195
+ </template>
196
+ </data-grid>
197
+ </criteria-paged>
198
+ </div>
199
+ </template>
200
+ <script>
201
+ import {PagedList} from 'vue-client'
202
+ export default {
203
+ title: '预约单',
204
+ props: ['showData'],
205
+ data () {
206
+ return {
207
+ model: new PagedList('rs/sql/getEX_TRQBJ_SB', 20, {
208
+ data: {
209
+ field: 'id'
210
+ }
211
+ }),
212
+ curorgid: [this.$login.f.orgid],
213
+ criteriaShow: false,
214
+ selectedData: [],
215
+ orderState: [
216
+ {'label': '待审核', 'value': '待审核'},
217
+ {'label': '待处理', 'value': '待处理'},
218
+ {'label': '预约成功', 'value': '预约成功'},
219
+ {'label': '预约失败', 'value': '预约失败'}
220
+ ],
221
+ userType: [
222
+ {'label': '个人', 'value': '个人'},
223
+ {'label': '整体小区', 'value': '整体小区'}
224
+ ],
225
+ userNature: [
226
+ {'label': '民用', 'value': '民用'},
227
+ {'label': '非民用', 'value': '非民用'}
228
+ ]
229
+ }
230
+ },
231
+ ready () {
232
+ // 调用查询
233
+ this.search()
234
+ },
235
+ events: {
236
+ },
237
+ methods: {
238
+ viewOrder (row) {
239
+ this.$dispatch('viewOrder', row)
240
+ },
241
+ handleOrder (type) {
242
+ if (this.selectedData.length > 1) {
243
+ this.$showMessage('选择数量只能为1个,请重新选择后在试!')
244
+ } else {
245
+ this.$dispatch('handleOrder', type, this.selectedData)
246
+ }
247
+ },
248
+ // 选择
249
+ selectOne (row) {
250
+ if (row.f_orderstate === '预约成功' || row.f_orderstate === '预约失败') {
251
+ return
252
+ }
253
+ if (this.selectedData.length > 0 && this.selectedData[0].f_orderstate !== row.f_orderstate) {
254
+ return
255
+ }
256
+ if (this.ischecked(row)) {
257
+ this.selectedData.splice(this.selectedData.indexOf(row),1)
258
+ } else {
259
+ this.selectedData.push(row)
260
+ }
261
+ },
262
+ // 查询
263
+ search () {
264
+ this.$dispatch('search')
265
+ },
266
+ clear () {
267
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
268
+ this.$refs.cp.$refs.cri.model[key] = null
269
+ })
270
+ },
271
+ getorg (val) {
272
+ if (val.length <= 0) {
273
+ return
274
+ }
275
+ this.model.params.data.orgid = val[0]
276
+ }
277
+ },
278
+ computed: {
279
+ // 是否显示
280
+ showCheck () {
281
+ return function (row) {
282
+ if (row.f_orderstate === '预约成功' || row.f_orderstate === '预约失败') {
283
+ return false
284
+ }
285
+ if (!this.selectedData.length > 0) {
286
+ return true
287
+ }
288
+ return this.selectedData[0].f_orderstate === row.f_orderstate
289
+ }
290
+ },
291
+ // 检查是否选中
292
+ ischecked () {
293
+ return function (row) {
294
+ return this.selectedData.includes(row)
295
+ }
296
+ }
297
+ }
298
+ }
299
+ </script>
300
+ <style scoped>
301
+ </style>
@@ -73,6 +73,34 @@
73
73
  this.$refs.queryuser.$refs.cp.$refs.cri.search()
74
74
  }
75
75
  },
76
+ // 刷新控制层
77
+ async 'breakControl' (servicedata) {
78
+
79
+ if (servicedata.id) {
80
+ let data = {
81
+ condition: `u.id = ${servicedata.id}`,
82
+ data: {
83
+ id: this.$login.f.id,
84
+ org: this.$login.f.orgs
85
+ }
86
+ }
87
+ let res = await this.$resetpost(
88
+ 'rs/sql/checkuser',
89
+ {data: data},
90
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
91
+ )
92
+
93
+ this.selectdata = res.data[0]
94
+ } else {
95
+ this.selectdata = servicedata
96
+ }
97
+
98
+ this.showtotal = false
99
+ this.$nextTick(() => {
100
+ this.showtotal = true
101
+ })
102
+
103
+ },
76
104
  // 初始化
77
105
  async 'apply' (val) {
78
106
  this.selectdata = val