telephone-clients 3.0.104-71 → 3.0.104-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telephone-clients",
3
- "version": "3.0.104-71",
3
+ "version": "3.0.104-73",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -6,8 +6,8 @@
6
6
  <div novalidate class="form-inline" partial>
7
7
  <div class="row" >
8
8
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
9
- <label class="font_normal_body" style="width: 40%">开始时间</label>
10
- <datepicker placeholder="开始时间"
9
+ <label class="font_normal_body" style="width: 40%">派单时间</label>
10
+ <datepicker placeholder="派单开始时间"
11
11
  :value.sync="model.f_created_startdate"
12
12
  v-model="model.f_created_startdate"
13
13
  :format="'yyyy-MM-dd 00:00:00'"
@@ -15,14 +15,32 @@
15
15
  ></datepicker>
16
16
  </div>
17
17
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
18
- <label class="font_normal_body" style="width: 40%">结束时间</label>
19
- <datepicker placeholder="结束时间"
18
+ <label class="font_normal_body" style="width: 40%">派单时间</label>
19
+ <datepicker placeholder="派单结束时间"
20
20
  :value.sync="model.f_created_enddate"
21
21
  v-model="model.f_created_enddate"
22
22
  :format="'yyyy-MM-dd 23:59:59'"
23
23
  condition="swo.f_created_date < '{}'"
24
24
  ></datepicker>
25
25
  </div>
26
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
27
+ <label class="font_normal_body" style="width: 40%">完工时间</label>
28
+ <datepicker placeholder="完工起始时间"
29
+ :value.sync="model.f_leave_startdate"
30
+ v-model="model.f_leave_startdate"
31
+ :format="'yyyy-MM-dd 00:00:00'"
32
+ condition="sw.f_date_leave> '{}'"
33
+ ></datepicker>
34
+ </div>
35
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
36
+ <label class="font_normal_body" style="width: 40%">完工时间</label>
37
+ <datepicker placeholder="完工截止时间"
38
+ :value.sync="model.f_leave_enddate"
39
+ v-model="model.f_leave_enddate"
40
+ :format="'yyyy-MM-dd 23:59:59'"
41
+ condition="sw.f_date_leave < '{}'"
42
+ ></datepicker>
43
+ </div>
26
44
  <div class="col-sm-3 form-group form-input-group" style="width: 20%">
27
45
  <button type="button" name="button" style="float: right;margin-top: 8px" class="button_search button_spacing" @click="search(),$dispatch('search')">查询</button>
28
46
  <export-excel-tel :data="$parent.$parent.searchData"
@@ -1,315 +1,318 @@
1
- <template >
2
- <div id="pc-finduser-page1" class="aaa4" style="background-color: #f8f8f8">
3
- <criteria-paged :model="model" v-ref:paged :simple="true">
4
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" style="margin:10px 10px 0 10px">
7
- <div class="form-group col-sm-4" >
8
- <label class="font_normal_body" style="width:55%">电话号码:</label>
9
- <input type="text" class="input_search" v-model="model.f_user_phone" placeholder='电话号码'
10
- :size="model.f_user_phone ? model.f_user_phone.length : 8" style="height: 95%;width: 90%"></input>
11
- </div>
12
- <div class="form-group col-sm-4" >
13
- <label class="font_normal_body" style="width:55%">用户编号:</label>
14
- <input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='用户编号'
15
- condition="ti.f_userinfo_code like '%{}%'"
16
- :size="model.f_userinfo_code ? model.f_userinfo_code.length : 8" style="height: 95%;width: 90%"></input>
17
- </div>
18
- <div class="form-group col-sm-4">
19
- <button type="button" name="button" class="button_spacing button_search" style="float: right" @click="search()">查询</button>
20
- <button type="button" name="button" style="background-color: #5ac0d9;border-radius: 4px;" class="button_spacing button_search" @click="$parent.$parent.clear()">清空</button>
21
- </div>
22
- <div class="form-group col-sm-4">
23
- <label class="font_normal_body" style="width:55%">表号:</label>
24
- <input type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
25
- condition="tu.f_meternumber like '%{}%'"
26
- :size="model.f_meternumber ? model.f_meternumber.length : 8" style="height: 95%;width: 90%"></input>
27
- </div>
28
- <div class="form-group col-sm-4" >
29
- <label class="font_normal_body" style="width:55%">用户名称:</label>
30
- <input type="text" class="input_search" v-model="model.f_user_name" placeholder='姓名'
31
- condition="ti.f_user_name like '%{}%'"
32
- :size="model.f_user_name ? model.f_user_name.length * 2 : 4" style="height: 95%;width: 90%"></input>
33
- </div>
34
- <div class="form-group col-sm-4" >
35
- <label class="font_normal_body" style="width:55%">用户地址:</label>
36
- <input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
37
- condition="ta.f_address like '%{}%'"
38
- :size="model.f_address ? model.f_address.length * 2 : 4" style="height: 95%;width: 90%" ></input>
39
- </div>
40
- <div class="form-group col-sm-4" v-if="$parent.$parent.enter_number_show">
41
- <label class="font_normal_body" style="width:55%">入户证号:</label>
42
- <input type="text" class="input_search" v-model="model.f_enter_number" placeholder='入户证号'
43
- condition="ta.f_enter_number like '%{}%'"
44
- style="height: 95%;width: 90%"></input>
45
- </div>
46
- <div class="form-group col-sm-4" v-if="$parent.$parent.residential_area_show">
47
- <label class="font_normal_body" style="width:55%">小区:</label>
48
- <input type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
49
- condition="ta.f_residential_area like '%{}%'"
50
- style="height: 95%;width: 90%"></input>
51
- </div>
52
- <div class="form-group col-sm-4" v-if="$parent.$parent.building_show">
53
- <label class="font_normal_body" style="width:55%">楼栋:</label>
54
- <input type="text" class="input_search" v-model="model.f_building" placeholder='楼栋'
55
- condition="ta.f_building = '{}'"
56
- style="height: 95%;width: 90%"></input>
57
- </div>
58
- <div class="form-group col-sm-4" v-if="$parent.$parent.unit_show">
59
- <label class="font_normal_body" style="width:55%">单元:</label>
60
- <input type="text" class="input_search" v-model="model.f_unit" placeholder='单元'
61
- condition="ta.f_unit = '{}'"
62
- style="height: 95%;width: 90%"></input>
63
- </div>
64
- <div class="form-group col-sm-4" v-if="$parent.$parent.floor_show">
65
- <label class="font_normal_body" style="width:55%">楼层:</label>
66
- <input type="text" class="input_search" v-model="model.f_floor" placeholder='楼层'
67
- condition="ta.f_floor = '{}'"
68
- style="height: 95%;width: 90%"></input>
69
- </div>
70
- <div class="form-group col-sm-4" v-if="$parent.$parent.room_show">
71
- <label class="font_normal_body" style="width:55%">房间号:</label>
72
- <input type="text" class="input_search" v-model="model.f_room" placeholder='房间号'
73
- condition="ta.f_room = '{}'"
74
- style="height: 95%;width: 90%"></input>
75
- </div>
76
- <!-- <div class="form-group col-sm-2" >-->
77
- <!-- <v-select :value.sync="model.f_residential_area" :options='$parent.$parent.areaselected' placeholder='小区' close-on-select width="90%"-->
78
- <!-- :size="model.f_residential_area?model.f_residential_area.length * 2 : 4" class="select select_list form-group" v-model='model.f_residential_area' condition="ta.f_residential_area like '%{}%'" :search='true'></v-select>-->
79
- <!-- </div>-->
80
-
81
- </div>
82
- </div>
83
- </criteria>
84
- <list :model='model' partial='list' style="background-color: #f8f8f8;overflow: auto;">
85
- <div partial class="panel panel-default well" style="margin: 15px 10px 0 10px;background-color: #ffffff;border-radius: 8px;border: solid 1px #dddddd;">
86
- <div class="panel-body inbg" :class="{aaa: $parent.$parent.$parent.tempnumber === row.f_userinfo_code}">
87
- <div class="row">
88
- <div class="col-sm-4">
89
- <label style="color: #666666"> 用户编号:</label> {{row.f_userinfo_code}}
90
- </div>
91
- <div class="col-sm-4">
92
- <label style="color: #666666">用户姓名:</label> {{row.f_user_name}}
93
- </div>
94
- <div class="col-sm-4">
95
- <label style="color: #666666">用户状态: </label>{{row.f_user_state}}
96
- </div>
97
-
98
- </div>
99
- <div class="row">
100
- <div class="col-sm-4">
101
- <label style="color: #666666">用户电话:</label> {{row.f_user_phone}}
102
- </div>
103
- <div class="col-sm-4">
104
- <label style="color: #666666">用户类别: </label>{{row.f_user_type}}
105
- </div>
106
- <div class="col-sm-4">
107
- <label style="color: #666666">账户结余: </label>{{row.f_balance}}
108
- </div>
109
- </div>
110
- <div class="row">
111
- <div class="col-sm-6" v-if="$parent.$parent.$parent.enter_number_show">
112
- <label style="color: #666666">入户证号: </label>{{row.f_enter_number}}
113
- </div>
114
- <div class="col-sm-6">
115
- <label style="color: #666666">详细地址: </label>{{row.f_address}}
116
- </div>
117
- <div class="col-sm-6">
118
- <label style="color: #666666">区域信息: </label>{{row.f_slice_area}}
119
- </div>
120
- </div>
121
- <div class="row">
122
- <div class="col-sm-6" v-if="$parent.$parent.$parent.isText">
123
- <button type="button" name="button" class="btn btn-link"
124
- @click.stop="$parent.$parent.$parent.bind(row)">绑定</button>
125
- </div>
126
- </div>
127
- </div>
128
- </div>
129
- </list>
130
- </criteria-paged>
131
- </div>
132
- </template>
133
-
134
- <script>
135
- import {HttpResetClass, PagedList} from 'vue-client'
136
- export default {
137
- title: '查询用户',
138
- data () {
139
- return {
140
- model: new PagedList('rs/sql/tel_getUserInfoAdressNew', 10,{phone:'this.phone'}),
141
- show: false,
142
- row: Object,
143
- tempnumber: '',
144
- rows:[],
145
- enter_number_show:true,
146
- residential_area_show:true,
147
- building_show:true,
148
- unit_show:true,
149
- room_show:true,
150
- floor_show:true
151
- }
152
- },
153
- props: {
154
- isText: {
155
- type: Boolean,
156
- default: false
157
- },
158
- user: {},
159
- callObj:{
160
- type: Object
161
- },
162
- },
163
- methods: {
164
- clear(){
165
- //清空查询条件
166
- this.$refs.paged.$refs.criteria.model={
167
- f_room:'',
168
- f_floor:'',
169
- f_unit:'',
170
- f_building:'',
171
- f_residential_area:'',
172
- f_enter_number:'',
173
- f_address:'',
174
- f_meternumber:'',
175
- f_user_name:'',
176
- f_userinfo_code:'',
177
- f_user_phone:''
178
- }
179
- },
180
-
181
- // 获取该组件配置文件
182
- getTelFindUserConfig(){
183
- let http = new HttpResetClass()
184
- http.load('GET', `/phone/rs/vue`, {}, {resolveMsg: null, rejectMsg: null}).then(res=>{
185
- if(res.data.telephone){
186
- if (res.data.telephone.TelFindUser){
187
- let telconfig = res.data.telephone.TelFindUser.data
188
- if(telconfig.criteria){
189
- telconfig.criteria.forEach((item)=>{
190
- if(item.name =='入户证号'){
191
- this.enter_number_show = item.ifshow
192
- }
193
- if(item.name =='小区'){
194
- this.residential_area_show = item.ifshow
195
- }
196
- if(item.name =='楼栋'){
197
- this.building_show = item.ifshow
198
- }
199
- if(item.name =='单元'){
200
- this.unit_show = item.ifshow
201
- }
202
- if(item.name =='房间号'){
203
- this.room_show = item.ifshow
204
- }
205
- if(item.name =='楼层'){
206
- this.floor_show = item.ifshow
207
- }
208
-
209
- })
210
- }
211
- }
212
- }
213
- })
214
- },
215
- search (args) {
216
- this.model.phone = args.model.f_user_phone
217
- if(args.model.f_user_phone){
218
- args.condition += ` and (f_user_phone = '${args.model.f_user_phone}' or f_zuhu_phone = '${args.model.f_user_phone}' or f_rent_phone = '${args.model.f_user_phone}' or tp.phonenums > 0)`
219
- }
220
- args.condition += ` and ti.f_filialeid = '${this.$login.f.orgid}' and ti.f_user_state in('正常','停用','预备')`
221
- this.model.search(args.condition, args.model)
222
- },
223
- bind (row) {
224
- //tag
225
- },
226
- teleNoQuery (teleNo) {
227
- this.$refs.paged.$refs.criteria.model.f_user_phone = teleNo
228
- this.$refs.paged.$refs.criteria.search()
229
- }
230
- },
231
- ready(){
232
- this.model.phone = ''
233
- this.getTelFindUserConfig()
234
- this.$refs.paged.$refs.criteria.search()
235
-
236
- },
237
- watch: {
238
- 'callObj.callNum' () {
239
- // 查找用户的 业务逻辑
240
- let http = new HttpResetClass()
241
- http.load('POST', 'rs/sql/tel_getUserInfoAdressNew', {data: {
242
- condition: `(f_user_phone = '${this.callObj.callNum}' or f_zuhu_phone = '${this.callObj.callNum}' or f_rent_phone = '${this.callObj.callNum}' or tp.phonenums > 0) and ti.f_user_state = '正常' `,phone:this.callObj.callNum
243
- }},{resolveMsg: null, rejectMsg: null}).then((req) => {
244
- this.model.rows = req.data
245
- this.model.state = '正确'
246
- })
247
- },
248
- 'user' (val) {
249
- // this.$resetpost('rs/sql/singleTable', {data: { tablename: 't_userinfo', condition: "f_user_name='" + this.user.name + "' and f_userinfo_id=" + this.user.userId }}).then((req) => {
250
- // this.row = req.data
251
- // })
252
- if (val.name === '' && val.userId === '') { // 用户未绑定
253
- // 清空查询条件
254
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
255
- this.$refs.paged.$refs.criteria.model[key] = ''
256
- })
257
- this.model.rows = []
258
- this.model.state = '错误'
259
- this.model.error = '未找到用户或用户未绑定'
260
- this.$emit('find-error', '未找到用户或用户未绑定')
261
- return
262
- }
263
- this.$refs.paged.$refs.criteria.model.f_user_name = this.user.name
264
- this.$refs.paged.$refs.criteria.model.f_userinfo_id = this.user.userId
265
- this.$refs.paged.$refs.criteria.search()
266
- // this.model.search(`f_user_name = '${this.user.name}' and f_userinfo_id = ${this.user.userId}`, this.model)
267
- },
268
- 'model.state' (val) {
269
- if (val === '正确' && this.model.rows.length === 1) {
270
- this.$emit('find-one', this.model.rows[0])
271
- }
272
- }
273
- },
274
- events: {
275
- //点击用户信息后变色
276
- 'select-changed' :function (val) {
277
- this.tempnumber = val.val.f_userinfo_code
278
- }
279
- }
280
- }
281
- </script>
282
- <style scoped>
283
- label {
284
- width: 80px;
285
- }
286
- #pc-finduser-page .form-input-group {
287
- margin: 5px 0px;
288
- height: auto;
289
- }
290
- .themeOne .span{
291
- overflow-y: scroll;
292
- }
293
- .pager{
294
- margin: 5px 0px !important;
295
- background-color: #f8f8f8;
296
- }
297
- .inbg{
298
- font-family: PingFang-SC-Medium;
299
- font-size: 14px;
300
- font-weight: normal;
301
- font-stretch: normal;
302
- line-height: 18px;
303
- letter-spacing: 0px;
304
- color: #333333;
305
- }
306
- .aaa{
307
- background-color: #d8eafb;
308
- }
309
- </style>
310
- <style>
311
- #pc-finduser-page1 ul{
312
- margin: 5px 0px !important;
313
- background-color: #f8f8f8 !important;
314
- }
315
- </style>
1
+ <template >
2
+ <div id="pc-finduser-page1" class="aaa4" style="background-color: #f8f8f8">
3
+ <criteria-paged :model="model" v-ref:paged :simple="true">
4
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" style="margin:10px 10px 0 10px">
7
+ <div class="form-group col-sm-4" >
8
+ <label class="font_normal_body" style="width:55%">电话号码:</label>
9
+ <input type="text" class="input_search" v-model="model.f_user_phone" placeholder='电话号码'
10
+ :size="model.f_user_phone ? model.f_user_phone.length : 8" style="height: 95%;width: 90%"></input>
11
+ </div>
12
+ <div class="form-group col-sm-4" >
13
+ <label class="font_normal_body" style="width:55%">用户编号:</label>
14
+ <input type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='用户编号'
15
+ condition="ti.f_userinfo_code like '%{}%'"
16
+ :size="model.f_userinfo_code ? model.f_userinfo_code.length : 8" style="height: 95%;width: 90%"></input>
17
+ </div>
18
+ <div class="form-group col-sm-4">
19
+ <button type="button" name="button" class="button_spacing button_search" style="float: right" @click="search()">查询</button>
20
+ <button type="button" name="button" style="background-color: #5ac0d9;border-radius: 4px;" class="button_spacing button_search" @click="$parent.$parent.clear()">清空</button>
21
+ </div>
22
+ <div class="form-group col-sm-4">
23
+ <label class="font_normal_body" style="width:55%">表号:</label>
24
+ <input type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
25
+ condition="tu.f_meternumber like '%{}%'"
26
+ :size="model.f_meternumber ? model.f_meternumber.length : 8" style="height: 95%;width: 90%"></input>
27
+ </div>
28
+ <div class="form-group col-sm-4" >
29
+ <label class="font_normal_body" style="width:55%">用户名称:</label>
30
+ <input type="text" class="input_search" v-model="model.f_user_name" placeholder='姓名'
31
+ condition="ti.f_user_name like '%{}%'"
32
+ :size="model.f_user_name ? model.f_user_name.length * 2 : 4" style="height: 95%;width: 90%"></input>
33
+ </div>
34
+ <div class="form-group col-sm-4" >
35
+ <label class="font_normal_body" style="width:55%">用户地址:</label>
36
+ <input type="text" class="input_search" v-model="model.f_address" placeholder='地址'
37
+ condition="ta.f_address like '%{}%'"
38
+ :size="model.f_address ? model.f_address.length * 2 : 4" style="height: 95%;width: 90%" ></input>
39
+ </div>
40
+ <div class="form-group col-sm-4" v-if="$parent.$parent.enter_number_show">
41
+ <label class="font_normal_body" style="width:55%">入户证号:</label>
42
+ <input type="text" class="input_search" v-model="model.f_enter_number" placeholder='入户证号'
43
+ condition="ta.f_enter_number like '%{}%'"
44
+ style="height: 95%;width: 90%"></input>
45
+ </div>
46
+ <div class="form-group col-sm-4" v-if="$parent.$parent.residential_area_show">
47
+ <label class="font_normal_body" style="width:55%">小区:</label>
48
+ <input type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
49
+ condition="ta.f_residential_area like '%{}%'"
50
+ style="height: 95%;width: 90%"></input>
51
+ </div>
52
+ <div class="form-group col-sm-4" v-if="$parent.$parent.building_show">
53
+ <label class="font_normal_body" style="width:55%">楼栋:</label>
54
+ <input type="text" class="input_search" v-model="model.f_building" placeholder='楼栋'
55
+ condition="ta.f_building = '{}'"
56
+ style="height: 95%;width: 90%"></input>
57
+ </div>
58
+ <div class="form-group col-sm-4" v-if="$parent.$parent.unit_show">
59
+ <label class="font_normal_body" style="width:55%">单元:</label>
60
+ <input type="text" class="input_search" v-model="model.f_unit" placeholder='单元'
61
+ condition="ta.f_unit = '{}'"
62
+ style="height: 95%;width: 90%"></input>
63
+ </div>
64
+ <div class="form-group col-sm-4" v-if="$parent.$parent.floor_show">
65
+ <label class="font_normal_body" style="width:55%">楼层:</label>
66
+ <input type="text" class="input_search" v-model="model.f_floor" placeholder='楼层'
67
+ condition="ta.f_floor = '{}'"
68
+ style="height: 95%;width: 90%"></input>
69
+ </div>
70
+ <div class="form-group col-sm-4" v-if="$parent.$parent.room_show">
71
+ <label class="font_normal_body" style="width:55%">房间号:</label>
72
+ <input type="text" class="input_search" v-model="model.f_room" placeholder='房间号'
73
+ condition="ta.f_room = '{}'"
74
+ style="height: 95%;width: 90%"></input>
75
+ </div>
76
+ <!-- <div class="form-group col-sm-2" >-->
77
+ <!-- <v-select :value.sync="model.f_residential_area" :options='$parent.$parent.areaselected' placeholder='小区' close-on-select width="90%"-->
78
+ <!-- :size="model.f_residential_area?model.f_residential_area.length * 2 : 4" class="select select_list form-group" v-model='model.f_residential_area' condition="ta.f_residential_area like '%{}%'" :search='true'></v-select>-->
79
+ <!-- </div>-->
80
+
81
+ </div>
82
+ </div>
83
+ </criteria>
84
+ <list :model='model' partial='list' style="background-color: #f8f8f8;overflow: auto;">
85
+ <div partial class="panel panel-default well" style="margin: 15px 10px 0 10px;background-color: #ffffff;border-radius: 8px;border: solid 1px #dddddd;">
86
+ <div class="panel-body inbg" :class="{aaa: $parent.$parent.$parent.tempnumber === row.f_userinfo_code}">
87
+ <div class="row">
88
+ <div class="col-sm-4">
89
+ <label style="color: #666666"> 用户编号:</label> {{row.f_userinfo_code}}
90
+ </div>
91
+ <div class="col-sm-4">
92
+ <label style="color: #666666">用户姓名:</label> {{row.f_user_name}}
93
+ </div>
94
+ <div class="col-sm-4">
95
+ <label style="color: #666666">用户状态: </label>{{row.f_user_state}}
96
+ </div>
97
+
98
+ </div>
99
+ <div class="row">
100
+ <div class="col-sm-4">
101
+ <label style="color: #666666">用户电话:</label> {{row.f_user_phone}}
102
+ </div>
103
+ <div class="col-sm-4">
104
+ <label style="color: #666666">用户类别: </label>{{row.f_user_type}}
105
+ </div>
106
+ <div class="col-sm-4">
107
+ <label style="color: #666666">账户结余: </label>{{row.f_balance}}
108
+ </div>
109
+ </div>
110
+ <div class="row">
111
+ <div class="col-sm-6" v-if="$parent.$parent.$parent.enter_number_show">
112
+ <label style="color: #666666">入户证号: </label>{{row.f_enter_number}}
113
+ </div>
114
+ <div class="col-sm-6">
115
+ <label style="color: #666666">详细地址: </label>{{row.f_address}}
116
+ </div>
117
+ <div class="col-sm-6">
118
+ <label style="color: #666666">区域信息: </label>{{row.f_slice_area}}
119
+ </div>
120
+ <div class="col-sm-6">
121
+ <label style="color: #666666">欠费金额: </label>{{row.f_oughtfee}}
122
+ </div>
123
+ </div>
124
+ <div class="row">
125
+ <div class="col-sm-6" v-if="$parent.$parent.$parent.isText">
126
+ <button type="button" name="button" class="btn btn-link"
127
+ @click.stop="$parent.$parent.$parent.bind(row)">绑定</button>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </list>
133
+ </criteria-paged>
134
+ </div>
135
+ </template>
136
+
137
+ <script>
138
+ import {HttpResetClass, PagedList} from 'vue-client'
139
+ export default {
140
+ title: '查询用户',
141
+ data () {
142
+ return {
143
+ model: new PagedList('rs/sql/tel_getUserInfoAdressNew', 10,{phone:'this.phone'}),
144
+ show: false,
145
+ row: Object,
146
+ tempnumber: '',
147
+ rows:[],
148
+ enter_number_show:true,
149
+ residential_area_show:true,
150
+ building_show:true,
151
+ unit_show:true,
152
+ room_show:true,
153
+ floor_show:true
154
+ }
155
+ },
156
+ props: {
157
+ isText: {
158
+ type: Boolean,
159
+ default: false
160
+ },
161
+ user: {},
162
+ callObj:{
163
+ type: Object
164
+ },
165
+ },
166
+ methods: {
167
+ clear(){
168
+ //清空查询条件
169
+ this.$refs.paged.$refs.criteria.model={
170
+ f_room:'',
171
+ f_floor:'',
172
+ f_unit:'',
173
+ f_building:'',
174
+ f_residential_area:'',
175
+ f_enter_number:'',
176
+ f_address:'',
177
+ f_meternumber:'',
178
+ f_user_name:'',
179
+ f_userinfo_code:'',
180
+ f_user_phone:''
181
+ }
182
+ },
183
+
184
+ // 获取该组件配置文件
185
+ getTelFindUserConfig(){
186
+ let http = new HttpResetClass()
187
+ http.load('GET', `/phone/rs/vue`, {}, {resolveMsg: null, rejectMsg: null}).then(res=>{
188
+ if(res.data.telephone){
189
+ if (res.data.telephone.TelFindUser){
190
+ let telconfig = res.data.telephone.TelFindUser.data
191
+ if(telconfig.criteria){
192
+ telconfig.criteria.forEach((item)=>{
193
+ if(item.name =='入户证号'){
194
+ this.enter_number_show = item.ifshow
195
+ }
196
+ if(item.name =='小区'){
197
+ this.residential_area_show = item.ifshow
198
+ }
199
+ if(item.name =='楼栋'){
200
+ this.building_show = item.ifshow
201
+ }
202
+ if(item.name =='单元'){
203
+ this.unit_show = item.ifshow
204
+ }
205
+ if(item.name =='房间号'){
206
+ this.room_show = item.ifshow
207
+ }
208
+ if(item.name =='楼层'){
209
+ this.floor_show = item.ifshow
210
+ }
211
+
212
+ })
213
+ }
214
+ }
215
+ }
216
+ })
217
+ },
218
+ search (args) {
219
+ this.model.phone = args.model.f_user_phone
220
+ if(args.model.f_user_phone){
221
+ args.condition += ` and (f_user_phone = '${args.model.f_user_phone}' or f_zuhu_phone = '${args.model.f_user_phone}' or f_rent_phone = '${args.model.f_user_phone}' or tp.phonenums > 0)`
222
+ }
223
+ args.condition += ` and ti.f_filialeid = '${this.$login.f.orgid}' and ti.f_user_state in('正常','停用','预备')`
224
+ this.model.search(args.condition, args.model)
225
+ },
226
+ bind (row) {
227
+ //tag
228
+ },
229
+ teleNoQuery (teleNo) {
230
+ this.$refs.paged.$refs.criteria.model.f_user_phone = teleNo
231
+ this.$refs.paged.$refs.criteria.search()
232
+ }
233
+ },
234
+ ready(){
235
+ this.model.phone = ''
236
+ this.getTelFindUserConfig()
237
+ this.$refs.paged.$refs.criteria.search()
238
+
239
+ },
240
+ watch: {
241
+ 'callObj.callNum' () {
242
+ // 查找用户的 业务逻辑
243
+ let http = new HttpResetClass()
244
+ http.load('POST', 'rs/sql/tel_getUserInfoAdressNew', {data: {
245
+ condition: `(f_user_phone = '${this.callObj.callNum}' or f_zuhu_phone = '${this.callObj.callNum}' or f_rent_phone = '${this.callObj.callNum}' or tp.phonenums > 0) and ti.f_user_state = '正常' `,phone:this.callObj.callNum
246
+ }},{resolveMsg: null, rejectMsg: null}).then((req) => {
247
+ this.model.rows = req.data
248
+ this.model.state = '正确'
249
+ })
250
+ },
251
+ 'user' (val) {
252
+ // this.$resetpost('rs/sql/singleTable', {data: { tablename: 't_userinfo', condition: "f_user_name='" + this.user.name + "' and f_userinfo_id=" + this.user.userId }}).then((req) => {
253
+ // this.row = req.data
254
+ // })
255
+ if (val.name === '' && val.userId === '') { // 用户未绑定
256
+ // 清空查询条件
257
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
258
+ this.$refs.paged.$refs.criteria.model[key] = ''
259
+ })
260
+ this.model.rows = []
261
+ this.model.state = '错误'
262
+ this.model.error = '未找到用户或用户未绑定'
263
+ this.$emit('find-error', '未找到用户或用户未绑定')
264
+ return
265
+ }
266
+ this.$refs.paged.$refs.criteria.model.f_user_name = this.user.name
267
+ this.$refs.paged.$refs.criteria.model.f_userinfo_id = this.user.userId
268
+ this.$refs.paged.$refs.criteria.search()
269
+ // this.model.search(`f_user_name = '${this.user.name}' and f_userinfo_id = ${this.user.userId}`, this.model)
270
+ },
271
+ 'model.state' (val) {
272
+ if (val === '正确' && this.model.rows.length === 1) {
273
+ this.$emit('find-one', this.model.rows[0])
274
+ }
275
+ }
276
+ },
277
+ events: {
278
+ //点击用户信息后变色
279
+ 'select-changed' :function (val) {
280
+ this.tempnumber = val.val.f_userinfo_code
281
+ }
282
+ }
283
+ }
284
+ </script>
285
+ <style scoped>
286
+ label {
287
+ width: 80px;
288
+ }
289
+ #pc-finduser-page .form-input-group {
290
+ margin: 5px 0px;
291
+ height: auto;
292
+ }
293
+ .themeOne .span{
294
+ overflow-y: scroll;
295
+ }
296
+ .pager{
297
+ margin: 5px 0px !important;
298
+ background-color: #f8f8f8;
299
+ }
300
+ .inbg{
301
+ font-family: PingFang-SC-Medium;
302
+ font-size: 14px;
303
+ font-weight: normal;
304
+ font-stretch: normal;
305
+ line-height: 18px;
306
+ letter-spacing: 0px;
307
+ color: #333333;
308
+ }
309
+ .aaa{
310
+ background-color: #d8eafb;
311
+ }
312
+ </style>
313
+ <style>
314
+ #pc-finduser-page1 ul{
315
+ margin: 5px 0px !important;
316
+ background-color: #f8f8f8 !important;
317
+ }
318
+ </style>