safecheck-client 3.0.33-18 → 3.0.33-19

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,609 +1,609 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div partial>
6
- <div class="row " >
7
- <label class="form-group font_normal_body"><b>用户信息</b></label>
8
-
9
- <div class="form-group col-sm-1" >
10
- <input type="text" class="input_search" v-model="model.f_userinfo_start"
11
- style="width: 95%" placeholder="编号起始" condition="ui.f_userinfo_code >= '{}'">
12
- </div>
13
- <div class="form-group col-sm-1" >
14
- <input type="text" class="input_search" v-model="model.f_userinfo_end"
15
- style="width: 95%" placeholder="编号结束" condition="ui.f_userinfo_code <= '{}'">
16
- </div>
17
- <div class="form-group col-sm-1" >
18
- <input type="text" class="input_search" v-model="model.f_user_name"
19
- style="width: 95%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
20
- </div>
21
- <div class="form-group col-sm-1" >
22
- <input type="text" class="input_search" v-model="model.f_address"
23
- style="width: 95%" placeholder="客户地址" condition="ua.f_address like '%{}%'">
24
- </div>
25
- <div class="form-group col-sm-1 upuserinfo_sel" >
26
- <v-select
27
- class="select select_list"
28
- :width="'95%'"
29
- :value.sync="model.f_area"
30
- v-model="model.f_area"
31
- :options='$parent.$parent.areaList'
32
- :timeout="500"
33
- @select-search="$parent.$parent.select_search"
34
- placeholder='小区选择'
35
- condition="ua.f_residential_area = '{}'"
36
- close-on-select
37
- value-single
38
- >
39
- </v-select>
40
- </div>
41
- <div class="form-group col-sm-4" >
42
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
43
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUploadCodeCondition()">导入编号</button>
44
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.clearUserInfoId()">清空编号</button>
45
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
46
- </div>
47
- <div class="form-group col-sm-1" style="float: right">
48
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.dragtoPlanItem()">添入计划</button>
49
- </div>
50
- <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
51
- <div slot="modal-header" class="modal-header">
52
- <h4 class="modal-title">
53
- 用户查询条件
54
- </h4>
55
- </div>
56
- <div slot="modal-body" class="modal-body">
57
- <div class="row">
58
- <div class="form-group col-sm-4" >
59
- <label class="font_normal_body">用户类型:</label>
60
- <v-select
61
- class="select select_list"
62
- :value.sync="model.f_user_type"
63
- v-model="model.f_user_type"
64
- :options='$parent.$parent.userTypes'
65
- placeholder='请选择'
66
- condition="uf.f_user_type='{}'"
67
- :search="false"
68
- close-on-select
69
- value-single
70
- >
71
- </v-select>
72
- </div>
73
- <div class="form-group col-sm-4" >
74
- <label class="font_normal_body">用户状态:</label>
75
- <v-select
76
- class="select select_list"
77
- :value.sync="model.f_user_state"
78
- v-model="model.f_user_state"
79
- :options='$parent.$parent.userStates'
80
- placeholder='请选择'
81
- condition="ui.f_user_state='{}'"
82
- :search="false"
83
- close-on-select
84
- value-single
85
- >
86
- </v-select>
87
- </div>
88
- <div class="form-group col-sm-4" >
89
- <label class="font_normal_body">用气性质:</label>
90
- <v-select
91
- class="select select_list"
92
- :value.sync="model.f_gasproperties"
93
- v-model="model.f_gasproperties"
94
- :options='$parent.$parent.gasproperties'
95
- placeholder='请选择'
96
- condition="uf.f_gasproperties='{}'"
97
- :search="false"
98
- close-on-select
99
- value-single
100
- >
101
- </v-select>
102
- </div>
103
- <div class="form-group col-sm-4" >
104
- <label class="font_normal_body">气表类型:</label>
105
- <v-select
106
- class="select select_list"
107
- :value.sync="model.meter_classify"
108
- v-model="model.meter_classify"
109
- :options='$parent.$parent.meter_classifys'
110
- placeholder='请选择'
111
- condition="uf.F_METER_CLASSIFY='{}'"
112
- :search="false"
113
- close-on-select
114
- value-single
115
- >
116
- </v-select>
117
- </div>
118
- <!--<div class="form-group col-sm-4" >
119
- <label class="font_normal_body">小区名称:</label>
120
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
121
- style="width: 60%" placeholder="请选择" condition="ua.f_residential_area = '{}'">
122
- </div>-->
123
- <div class="form-group col-sm-4" >
124
- <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
125
- <input type="text" class="input_search" v-model="model.f_building"
126
- style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
127
- </div>
128
- <div class="form-group col-sm-4" >
129
- <label class="font_normal_body">单&ensp;元&ensp;号:</label>
130
- <input type="text" class="input_search" v-model="model.f_unit"
131
- style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
132
- </div>
133
- <div class="form-group col-sm-4" >
134
- <label class="font_normal_body">开户起始:</label>
135
- <datepicker
136
- placeholder='请选择'
137
- style="width:60%"
138
- :disabled-days-of-week="[]"
139
- :format="'yyyy-MM-dd'"
140
- :show-rest-button="reset"
141
- :value.sync="model.f_startfile_time"
142
- v-model="model.f_startfile_time"
143
- condition="ui.f_createfile_date >= '{} 00:00:00'">
144
- </datepicker>
145
- </div>
146
- <div class="form-group col-sm-4" >
147
- <label class="font_normal_body">开户截止:</label>
148
- <datepicker
149
- placeholder='请选择'
150
- :disabled-days-of-week="[]"
151
- style="width:60%"
152
- :format="'yyyy-MM-dd'"
153
- :show-rest-button="reset"
154
- :value.sync="model.f_endfile_time"
155
- v-model="model.f_endfile_time"
156
- condition="ui.f_createfile_date <= '{} 00:00:00'">
157
- </datepicker>
158
- </div>
159
- <div class="form-group col-sm-4" >
160
- <label class="font_normal_body">表&ensp;箱&ensp;号:</label>
161
- <input type="text" class="input_search" v-model="model.f_metertitles"
162
- style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">
163
- </div>
164
- <div class="form-group col-sm-4" >
165
- <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
166
- <v-select
167
- class="select select_list"
168
- :value.sync="model.f_book_slice_area"
169
- v-model="model.f_book_slice_area"
170
- :options='$parent.$parent.sliceArea'
171
- @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
172
- placeholder='请选择'
173
- condition="ua.f_slice_area ='{}'"
174
- close-on-select
175
- value-single
176
- >
177
- </v-select>
178
- </div>
179
- <div class="form-group col-sm-4" >
180
- <label class="font_normal_body">抄&ensp;表&ensp;册:</label>
181
- <v-select
182
- class="select select_list"
183
- :value.sync="model.f_meter_book_num"
184
- v-model="model.f_meter_book_num"
185
- :options='$parent.$parent.cbc'
186
- placeholder='请选择'
187
- condition="uf.f_meter_book_num='{}'"
188
- close-on-select
189
- value-single
190
- >
191
- </v-select>
192
- </div>
193
- <div class="form-group col-sm-4" >
194
- <label class="font_normal_body">派发情况:</label>
195
- <v-select
196
- class="select select_list"
197
- :value.sync="model.yearCheck"
198
- v-model="model.yearCheck"
199
- :options='$parent.$parent.yearCheckList'
200
- placeholder='请选择'
201
- condition="{}"
202
- :search="false"
203
- close-on-select
204
- value-single
205
- >
206
- </v-select>
207
- </div>
208
- <div class="form-group col-sm-4" >
209
- <label class="font_normal_body">安全等级:</label>
210
- <v-select
211
- class="select select_list"
212
- :value.sync="model.f_security_level"
213
- v-model="model.f_security_level"
214
- :options='$parent.$parent.security_level'
215
- placeholder='请选择'
216
- condition="ui.f_security_level = '{}'"
217
- :search="false"
218
- close-on-select
219
- value-single
220
- >
221
- </v-select>
222
- </div>
223
- <!--<div class="form-group col-sm-4" >
224
- <label class="font_normal_body">入户情况:</label>
225
- <v-select
226
- class="select select_list"
227
- :value.sync="model.f_hasHousehold"
228
- v-model="model.f_hasHousehold"
229
- :options='$parent.$parent.hasHousehold'
230
- placeholder='请选择'
231
- close-on-select
232
- :search="false"
233
- value-single
234
- >
235
- </v-select>
236
- </div>-->
237
-
238
- </div>
239
- </div>
240
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
241
- <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
242
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
243
- </div>
244
- </modal>
245
- <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
246
- <div slot="modal-header" class="modal-header">
247
- <h4 class="modal-title">
248
- 导入用户编号
249
- </h4>
250
- </div>
251
- <div slot="modal-body" class="modal-body">
252
- <div class="row">
253
- <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
254
- action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
255
- <img src="../../../assets/Excelformat.png" style="width: 100%"/>
256
- </div>
257
- </div>
258
- <footer slot="modal-footer" class="modal-footer">
259
- </footer>
260
- </modal>
261
- <!--<div class="form-group col-sm-4 button-range" >
262
-
263
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
264
- <export-excel-safe :data="$parent.$parent.exportParameter"
265
- :field="$parent.$parent.excelHeaders"
266
- sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
267
- template-name='安检计划明细' :choose-col="true">
268
- </export-excel-safe>
269
-
270
- </div>-->
271
- </div>
272
- </div>
273
- </criteria>
274
- <data-grid :model="model" partial='list' class="table_sy">
275
-
276
- <template partial='head'>
277
- <tr>
278
- <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
279
- <th><nobr>用户编号</nobr></th>
280
- <th><nobr>用户名称</nobr></th>
281
- <th><nobr>用户类型</nobr></th>
282
- <th><nobr>小区名称</nobr></th>
283
- <th><nobr>片区</nobr></th>
284
- <th><nobr>抄表册</nobr></th>
285
- <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
286
- <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
287
- <th><nobr>详细地址</nobr></th>
288
- </tr>
289
- </template>
290
- <template partial='body'>
291
- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)" /></td>
292
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
293
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
294
- <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
295
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
296
- <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
297
- <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
298
- <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
299
- <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
300
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
301
- </template>
302
- </data-grid>
303
- </criteria-paged>
304
- </div>
305
- </template>
306
-
307
- <script>
308
- import {HttpResetClass, PagedList} from "vue-client";
309
- import * as Util from "../../../components/Util";
310
- import Vue from "vue";
311
-
312
- export default {
313
- name: "PlanManage",
314
- title: '计划管理',
315
- data() {
316
- return {
317
- model:new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
318
- "orderitem": "'f_userinfo_code'",
319
- "f_usertype": "''",
320
- "month": "''",
321
- "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
322
- "SafeCheckCQ": "''",
323
- "startday":"''",
324
- "endday":"''"}),
325
- a:'1',
326
- opt:[{label:"测试",value:"测试"}],
327
- showCondtion:false,
328
- userTypes:[],//用户类型
329
- userStates:[],//用户状态
330
- gasproperties:[],//用气性质
331
- meter_classifys:[],//气表类型
332
- security_level:[{label:"全部",value:""},...this.$appdata.getParam('用户安全等级')],
333
- hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
334
- yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
335
- sliceArea:[],
336
- meterbooks:[],
337
- cbc:[],
338
- areaList:[],
339
- checkAll:false,
340
- checkes:[],
341
- excelUserCondtion:false,
342
- uploadCodeCondition:''
343
- }
344
- },
345
- props:["selectplan","userlogin"],
346
- ready(){
347
- // this.$refs.paged.$refs.criteria.model.f_user_state='正常'
348
- // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
349
- //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
350
- this.setConList()
351
- this.loadpage()
352
- },
353
- methods: {
354
- loadpage(){
355
- this.select_search()
356
- this.Mreadibook()
357
- this.getSliceArea()
358
- },
359
- cancel(){
360
- this.showCondtion=false
361
- this.excelUserCondtion=false
362
- },
363
- //清空用户编号
364
- clearUserInfoId(){
365
- this.uploadCodeCondition=''
366
- Vue.showMessage("已清空用户编号")
367
- },
368
- showUploadCodeCondition(){
369
- this.excelUserCondtion=true
370
- },
371
- selfSearch (args) {
372
- //tag)
373
- // args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
374
- /*if(args.model.f_hasHousehold=='已入户'){
375
- args.condition +=` and Extract(year from TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'))=2021 and ua.F_LAST_CHECK_STATE='入户'`
376
- }else if(args.model.f_hasHousehold=='未入户'){
377
- args.condition +=` and (Extract(year from nvl(TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'),'1990-01-01 00:00:00'))!=2021 or nvl(ua.F_LAST_CHECK_STATE,'未入户')!='入户')`
378
- }*/
379
- if(this.uploadCodeCondition){
380
- args.condition +=` and ${this.uploadCodeCondition}`
381
- }
382
- this.cancel()
383
- this.checkes=[]
384
- this.checkAll=false
385
- this.model.search(args.condition, args.model, args.condValue)
386
- },
387
- showUserCondition(){
388
- this.showCondtion=true
389
- },
390
- setConList(){
391
- this.userTypes=this.$appdata.getParam('用户类型') ? [{
392
- label: '全部',
393
- value: ''
394
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
395
-
396
- this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
397
- this.gasproperties=this.$appdata.getParam('用气性质') ? [{
398
- label: '全部',
399
- value: ''
400
- }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
401
- this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
402
- label: '全部',
403
- value: ''
404
- }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
405
- },
406
- select_search(text){
407
- //tag
408
- let pcdText=text?` and f_residential_area like '%${text}%'`:''
409
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
410
- ////tag)
411
- this.areaList=[]
412
- if(res.data.length>0){
413
- this.areaList.push({label:"全部",value:""})
414
- res.data.forEach((result)=>{
415
- this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
416
- })
417
- }
418
-
419
- })
420
- },
421
- //获取抄表册
422
- async Mreadibook(){
423
- this.cbc=[]
424
- this.sliceArea=[]
425
- let http = new HttpResetClass()
426
- let getMeterReadingBooks = await http.load('POST','rs/logic/getMeterBooksData',
427
- {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
428
- {resolveMsg: null, rejectMsg: '获取失败!!!'})
429
- this.cbc = [{label: '全部', value: ''}]
430
- //tag
431
- //tag)
432
- //tag
433
- this.meterbooks=[]
434
- this.meterbooks=getMeterReadingBooks.data.meterbooks
435
- this.meterbooks.forEach((res) => {
436
- this.cbc.push({label: res.f_book_name, value: res.id})
437
- /*if(res.f_book_slice_area){
438
- if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
439
- this.sliceArea.push(res.f_book_slice_area)
440
- }
441
- }*/
442
- })
443
-
444
- },
445
- //片区获取
446
- async getSliceArea() {
447
- let http = new HttpResetClass()
448
- let getAllArea = await http.load('POST', '/rs/search', {
449
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
450
- userid: this.userlogin.id
451
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
452
- this.sliceArea = [{label: '全部', value: ''}]
453
- //tag
454
- //tag
455
- //tag
456
- getAllArea.data.forEach((res) => {
457
- if(res.parentid==this.userlogin.orgid){
458
- this.sliceArea.push({label:res.name,value:res.name})
459
- }
460
- })
461
- //tag
462
- },
463
- //片区改变-对应抄表册下拉重新赋值
464
- slice_areaChange(value) {
465
- //tag
466
- if(!value){
467
- this.cbc=[]
468
- this.meterbooks.forEach((res) => {
469
- this.cbc.push({label: res.f_book_name, value: res.id})
470
- })
471
- }else{
472
- this.cbc=[]
473
- this.meterbooks.forEach((res) => {
474
- if(res.f_book_slice_area==value){
475
- this.cbc.push({label: res.f_book_name, value: res.id})
476
- }
477
- })
478
- }
479
- },
480
- isChecked(v) {
481
- // 如果全选,不在的按选中算,否则,在的按选中算
482
- if (this.checkAll) {
483
- return this.checkes.indexOf(v) == -1
484
- } else {
485
- return this.checkes.indexOf(v) != -1
486
- }
487
- },
488
- setCheckAll() {
489
- this.checkAll=this.checkAll?false:true;
490
- // 全选改变后,清空选中数据
491
- this.checkes = []
492
- },
493
- setCheckes(id) {
494
- let index=this.checkes.indexOf(id)
495
- if(index<0){
496
- this.checkes.push(id)
497
- }else{
498
- this.checkes.splice(index,1)
499
- }
500
- },
501
- //将客户信息拖至计划中
502
- async dragtoPlanItem() {
503
- if(this.model.rows.length==0){
504
- Vue.showMessage("未检测到列表中有用户!")
505
- return
506
- }
507
- if(!this.checkAll && this.checkes.length==0){
508
- Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
509
- return
510
- }
511
- if(this.selectplan && this.selectplan.id){
512
- this.$parent.isSend=true
513
- try{
514
- let res=await new HttpResetClass().load("POST", "/rs/logic/AddCheckPlanItem", {
515
- data:{
516
- f_operator:this.userlogin.name,
517
- f_plan_id:this.selectplan.id,
518
- f_safecheck_type:this.selectplan.f_safecheck_type,
519
- f_filialeid:this.userlogin.orgid,
520
- f_subscribe_date:'',
521
- condition:this.model.condition,
522
- switchCheckAll:true,
523
- checkAll:this.checkAll,
524
- param:this.checkes,
525
- columnName: "ua.id"
526
- }
527
- }, {resolveMsg: null, rejectMsg: null})
528
- //tag+"---"+res.data.result.length)
529
- this.$parent.isSend=false
530
- if(res.data.code==200){
531
- //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
532
- this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
533
- this.$parent.refresh()
534
- }else{
535
- this.$showMessage("添加失败!")
536
- }
537
- }catch (e) {
538
- this.$showMessage("添加失败!")
539
- }
540
- }else{
541
- this.$parent.isSend=false
542
- this.$showMessage("请先打开一个计划再进行操作")
543
- }
544
- }
545
- },
546
- events: {
547
- onFileUpload: function (file, res) {
548
- //tag)
549
- //tag)
550
- let data = {
551
- filepath: res.f_downloadpath
552
- }
553
- new HttpResetClass().load('POST','/rs/logic/safe_GetUserInfoFromExcel', {data: data}, {
554
- resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
555
- rejectMsg: '导入失败'
556
- }).then((res) => {
557
- this.uploadCodeCondition=res.data.condition
558
- this.excelUserCondtion = false
559
- })
560
- },
561
-
562
- }
563
- }
564
- </script>
565
-
566
- <style scoped>
567
- .safe-planfont{
568
- font-family: MicrosoftYaHei;
569
- font-size: 15px;
570
- font-weight: normal;
571
- font-stretch: normal;
572
- letter-spacing: 2px;
573
- color: #333333;
574
- line-height: 25px;
575
- }
576
- .safe-bodyfont{
577
- font-family: MicrosoftYaHei;
578
- font-size: 14px;
579
- font-weight: normal;
580
- font-stretch: normal;
581
- letter-spacing: 0px;
582
- color: #999999;
583
- line-height: 30px;
584
- }
585
- .safe-leftplan{
586
- height:auto;
587
- border-bottom:1px solid #ececec;
588
- padding: 10px 5px
589
- }
590
- .leftplan-center{
591
- border-top:1px solid #ececec;
592
- border-bottom:1px solid #ececec;
593
- }
594
- .safe_p{
595
- white-space: nowrap;
596
- overflow: hidden;
597
- text-overflow: ellipsis;
598
- }
599
- .safe-div-p{
600
- color: #4792de;
601
- text-align: end;
602
- padding: 8px 15px;
603
- }
604
- </style>
605
- <style lang="less">
606
- .upuserinfo_sel ul{
607
- width: 150% !important;
608
- }
609
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <div class="row " >
7
+ <label class="form-group font_normal_body"><b>用户信息</b></label>
8
+
9
+ <div class="form-group col-sm-1" >
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_start"
11
+ style="width: 95%" placeholder="编号起始" condition="ui.f_userinfo_code >= '{}'">
12
+ </div>
13
+ <div class="form-group col-sm-1" >
14
+ <input type="text" class="input_search" v-model="model.f_userinfo_end"
15
+ style="width: 95%" placeholder="编号结束" condition="ui.f_userinfo_code <= '{}'">
16
+ </div>
17
+ <div class="form-group col-sm-1" >
18
+ <input type="text" class="input_search" v-model="model.f_user_name"
19
+ style="width: 95%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
20
+ </div>
21
+ <div class="form-group col-sm-1" >
22
+ <input type="text" class="input_search" v-model="model.f_address"
23
+ style="width: 95%" placeholder="客户地址" condition="ua.f_address like '%{}%'">
24
+ </div>
25
+ <div class="form-group col-sm-1 upuserinfo_sel" >
26
+ <v-select
27
+ class="select select_list"
28
+ :width="'95%'"
29
+ :value.sync="model.f_area"
30
+ v-model="model.f_area"
31
+ :options='$parent.$parent.areaList'
32
+ :timeout="500"
33
+ @select-search="$parent.$parent.select_search"
34
+ placeholder='小区选择'
35
+ condition="ua.f_residential_area = '{}'"
36
+ close-on-select
37
+ value-single
38
+ >
39
+ </v-select>
40
+ </div>
41
+ <div class="form-group col-sm-4" >
42
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
43
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUploadCodeCondition()">导入编号</button>
44
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.clearUserInfoId()">清空编号</button>
45
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
46
+ </div>
47
+ <div class="form-group col-sm-1" style="float: right">
48
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.dragtoPlanItem()">添入计划</button>
49
+ </div>
50
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
51
+ <div slot="modal-header" class="modal-header">
52
+ <h4 class="modal-title">
53
+ 用户查询条件
54
+ </h4>
55
+ </div>
56
+ <div slot="modal-body" class="modal-body">
57
+ <div class="row">
58
+ <div class="form-group col-sm-4" >
59
+ <label class="font_normal_body">用户类型:</label>
60
+ <v-select
61
+ class="select select_list"
62
+ :value.sync="model.f_user_type"
63
+ v-model="model.f_user_type"
64
+ :options='$parent.$parent.userTypes'
65
+ placeholder='请选择'
66
+ condition="uf.f_user_type='{}'"
67
+ :search="false"
68
+ close-on-select
69
+ value-single
70
+ >
71
+ </v-select>
72
+ </div>
73
+ <div class="form-group col-sm-4" >
74
+ <label class="font_normal_body">用户状态:</label>
75
+ <v-select
76
+ class="select select_list"
77
+ :value.sync="model.f_user_state"
78
+ v-model="model.f_user_state"
79
+ :options='$parent.$parent.userStates'
80
+ placeholder='请选择'
81
+ condition="ui.f_user_state='{}'"
82
+ :search="false"
83
+ close-on-select
84
+ value-single
85
+ >
86
+ </v-select>
87
+ </div>
88
+ <div class="form-group col-sm-4" >
89
+ <label class="font_normal_body">用气性质:</label>
90
+ <v-select
91
+ class="select select_list"
92
+ :value.sync="model.f_gasproperties"
93
+ v-model="model.f_gasproperties"
94
+ :options='$parent.$parent.gasproperties'
95
+ placeholder='请选择'
96
+ condition="uf.f_gasproperties='{}'"
97
+ :search="false"
98
+ close-on-select
99
+ value-single
100
+ >
101
+ </v-select>
102
+ </div>
103
+ <div class="form-group col-sm-4" >
104
+ <label class="font_normal_body">气表类型:</label>
105
+ <v-select
106
+ class="select select_list"
107
+ :value.sync="model.meter_classify"
108
+ v-model="model.meter_classify"
109
+ :options='$parent.$parent.meter_classifys'
110
+ placeholder='请选择'
111
+ condition="uf.F_METER_CLASSIFY='{}'"
112
+ :search="false"
113
+ close-on-select
114
+ value-single
115
+ >
116
+ </v-select>
117
+ </div>
118
+ <!--<div class="form-group col-sm-4" >
119
+ <label class="font_normal_body">小区名称:</label>
120
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
121
+ style="width: 60%" placeholder="请选择" condition="ua.f_residential_area = '{}'">
122
+ </div>-->
123
+ <div class="form-group col-sm-4" >
124
+ <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
125
+ <input type="text" class="input_search" v-model="model.f_building"
126
+ style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
127
+ </div>
128
+ <div class="form-group col-sm-4" >
129
+ <label class="font_normal_body">单&ensp;元&ensp;号:</label>
130
+ <input type="text" class="input_search" v-model="model.f_unit"
131
+ style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
132
+ </div>
133
+ <div class="form-group col-sm-4" >
134
+ <label class="font_normal_body">开户起始:</label>
135
+ <datepicker
136
+ placeholder='请选择'
137
+ style="width:60%"
138
+ :disabled-days-of-week="[]"
139
+ :format="'yyyy-MM-dd'"
140
+ :show-rest-button="reset"
141
+ :value.sync="model.f_startfile_time"
142
+ v-model="model.f_startfile_time"
143
+ condition="ui.f_createfile_date >= '{} 00:00:00'">
144
+ </datepicker>
145
+ </div>
146
+ <div class="form-group col-sm-4" >
147
+ <label class="font_normal_body">开户截止:</label>
148
+ <datepicker
149
+ placeholder='请选择'
150
+ :disabled-days-of-week="[]"
151
+ style="width:60%"
152
+ :format="'yyyy-MM-dd'"
153
+ :show-rest-button="reset"
154
+ :value.sync="model.f_endfile_time"
155
+ v-model="model.f_endfile_time"
156
+ condition="ui.f_createfile_date <= '{} 00:00:00'">
157
+ </datepicker>
158
+ </div>
159
+ <div class="form-group col-sm-4" >
160
+ <label class="font_normal_body">表&ensp;箱&ensp;号:</label>
161
+ <input type="text" class="input_search" v-model="model.f_metertitles"
162
+ style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">
163
+ </div>
164
+ <div class="form-group col-sm-4" >
165
+ <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
166
+ <v-select
167
+ class="select select_list"
168
+ :value.sync="model.f_book_slice_area"
169
+ v-model="model.f_book_slice_area"
170
+ :options='$parent.$parent.sliceArea'
171
+ @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
172
+ placeholder='请选择'
173
+ condition="ua.f_slice_area ='{}'"
174
+ close-on-select
175
+ value-single
176
+ >
177
+ </v-select>
178
+ </div>
179
+ <div class="form-group col-sm-4" >
180
+ <label class="font_normal_body">抄&ensp;表&ensp;册:</label>
181
+ <v-select
182
+ class="select select_list"
183
+ :value.sync="model.f_meter_book_num"
184
+ v-model="model.f_meter_book_num"
185
+ :options='$parent.$parent.cbc'
186
+ placeholder='请选择'
187
+ condition="uf.f_meter_book_num='{}'"
188
+ close-on-select
189
+ value-single
190
+ >
191
+ </v-select>
192
+ </div>
193
+ <div class="form-group col-sm-4" >
194
+ <label class="font_normal_body">派发情况:</label>
195
+ <v-select
196
+ class="select select_list"
197
+ :value.sync="model.yearCheck"
198
+ v-model="model.yearCheck"
199
+ :options='$parent.$parent.yearCheckList'
200
+ placeholder='请选择'
201
+ condition="{}"
202
+ :search="false"
203
+ close-on-select
204
+ value-single
205
+ >
206
+ </v-select>
207
+ </div>
208
+ <div class="form-group col-sm-4" >
209
+ <label class="font_normal_body">安全等级:</label>
210
+ <v-select
211
+ class="select select_list"
212
+ :value.sync="model.f_security_level"
213
+ v-model="model.f_security_level"
214
+ :options='$parent.$parent.security_level'
215
+ placeholder='请选择'
216
+ condition="ui.f_security_level = '{}'"
217
+ :search="false"
218
+ close-on-select
219
+ value-single
220
+ >
221
+ </v-select>
222
+ </div>
223
+ <!--<div class="form-group col-sm-4" >
224
+ <label class="font_normal_body">入户情况:</label>
225
+ <v-select
226
+ class="select select_list"
227
+ :value.sync="model.f_hasHousehold"
228
+ v-model="model.f_hasHousehold"
229
+ :options='$parent.$parent.hasHousehold'
230
+ placeholder='请选择'
231
+ close-on-select
232
+ :search="false"
233
+ value-single
234
+ >
235
+ </v-select>
236
+ </div>-->
237
+
238
+ </div>
239
+ </div>
240
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
241
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
242
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
243
+ </div>
244
+ </modal>
245
+ <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
246
+ <div slot="modal-header" class="modal-header">
247
+ <h4 class="modal-title">
248
+ 导入用户编号
249
+ </h4>
250
+ </div>
251
+ <div slot="modal-body" class="modal-body">
252
+ <div class="row">
253
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
254
+ action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
255
+ <img src="../../../assets/Excelformat.png" style="width: 100%"/>
256
+ </div>
257
+ </div>
258
+ <footer slot="modal-footer" class="modal-footer">
259
+ </footer>
260
+ </modal>
261
+ <!--<div class="form-group col-sm-4 button-range" >
262
+
263
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
264
+ <export-excel-safe :data="$parent.$parent.exportParameter"
265
+ :field="$parent.$parent.excelHeaders"
266
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
267
+ template-name='安检计划明细' :choose-col="true">
268
+ </export-excel-safe>
269
+
270
+ </div>-->
271
+ </div>
272
+ </div>
273
+ </criteria>
274
+ <data-grid :model="model" partial='list' class="table_sy">
275
+
276
+ <template partial='head'>
277
+ <tr>
278
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
279
+ <th><nobr>用户编号</nobr></th>
280
+ <th><nobr>用户名称</nobr></th>
281
+ <th><nobr>用户类型</nobr></th>
282
+ <th><nobr>小区名称</nobr></th>
283
+ <th><nobr>片区</nobr></th>
284
+ <th><nobr>抄表册</nobr></th>
285
+ <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
286
+ <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
287
+ <th><nobr>详细地址</nobr></th>
288
+ </tr>
289
+ </template>
290
+ <template partial='body'>
291
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)" /></td>
292
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
293
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
294
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
295
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
296
+ <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
297
+ <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
298
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
299
+ <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
300
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
301
+ </template>
302
+ </data-grid>
303
+ </criteria-paged>
304
+ </div>
305
+ </template>
306
+
307
+ <script>
308
+ import {HttpResetClass, PagedList} from "vue-client";
309
+ import * as Util from "../../../components/Util";
310
+ import Vue from "vue";
311
+
312
+ export default {
313
+ name: "PlanManage",
314
+ title: '计划管理',
315
+ data() {
316
+ return {
317
+ model:new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
318
+ "orderitem": "'f_userinfo_code'",
319
+ "f_usertype": "''",
320
+ "month": "''",
321
+ "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
322
+ "SafeCheckCQ": "''",
323
+ "startday":"''",
324
+ "endday":"''"}),
325
+ a:'1',
326
+ opt:[{label:"测试",value:"测试"}],
327
+ showCondtion:false,
328
+ userTypes:[],//用户类型
329
+ userStates:[],//用户状态
330
+ gasproperties:[],//用气性质
331
+ meter_classifys:[],//气表类型
332
+ security_level:[{label:"全部",value:""},...this.$appdata.getParam('用户安全等级')],
333
+ hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
334
+ yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
335
+ sliceArea:[],
336
+ meterbooks:[],
337
+ cbc:[],
338
+ areaList:[],
339
+ checkAll:false,
340
+ checkes:[],
341
+ excelUserCondtion:false,
342
+ uploadCodeCondition:''
343
+ }
344
+ },
345
+ props:["selectplan","userlogin"],
346
+ ready(){
347
+ // this.$refs.paged.$refs.criteria.model.f_user_state='正常'
348
+ // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
349
+ //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
350
+ this.setConList()
351
+ this.loadpage()
352
+ },
353
+ methods: {
354
+ loadpage(){
355
+ this.select_search()
356
+ this.Mreadibook()
357
+ this.getSliceArea()
358
+ },
359
+ cancel(){
360
+ this.showCondtion=false
361
+ this.excelUserCondtion=false
362
+ },
363
+ //清空用户编号
364
+ clearUserInfoId(){
365
+ this.uploadCodeCondition=''
366
+ Vue.showMessage("已清空用户编号")
367
+ },
368
+ showUploadCodeCondition(){
369
+ this.excelUserCondtion=true
370
+ },
371
+ selfSearch (args) {
372
+ //tag)
373
+ // args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
374
+ /*if(args.model.f_hasHousehold=='已入户'){
375
+ args.condition +=` and Extract(year from TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'))=2021 and ua.F_LAST_CHECK_STATE='入户'`
376
+ }else if(args.model.f_hasHousehold=='未入户'){
377
+ args.condition +=` and (Extract(year from nvl(TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'),'1990-01-01 00:00:00'))!=2021 or nvl(ua.F_LAST_CHECK_STATE,'未入户')!='入户')`
378
+ }*/
379
+ if(this.uploadCodeCondition){
380
+ args.condition +=` and ${this.uploadCodeCondition}`
381
+ }
382
+ this.cancel()
383
+ this.checkes=[]
384
+ this.checkAll=false
385
+ this.model.search(args.condition, args.model, args.condValue)
386
+ },
387
+ showUserCondition(){
388
+ this.showCondtion=true
389
+ },
390
+ setConList(){
391
+ this.userTypes=this.$appdata.getParam('用户类型') ? [{
392
+ label: '全部',
393
+ value: ''
394
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
395
+
396
+ this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
397
+ this.gasproperties=this.$appdata.getParam('用气性质') ? [{
398
+ label: '全部',
399
+ value: ''
400
+ }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
401
+ this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
402
+ label: '全部',
403
+ value: ''
404
+ }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
405
+ },
406
+ select_search(text){
407
+ //tag
408
+ let pcdText=text?` and f_residential_area like '%${text}%'`:''
409
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
410
+ ////tag)
411
+ this.areaList=[]
412
+ if(res.data.length>0){
413
+ this.areaList.push({label:"全部",value:""})
414
+ res.data.forEach((result)=>{
415
+ this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
416
+ })
417
+ }
418
+
419
+ })
420
+ },
421
+ //获取抄表册
422
+ async Mreadibook(){
423
+ this.cbc=[]
424
+ this.sliceArea=[]
425
+ let http = new HttpResetClass()
426
+ let getMeterReadingBooks = await http.load('POST','rs/logic/getMeterBooksData',
427
+ {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
428
+ {resolveMsg: null, rejectMsg: '获取失败!!!'})
429
+ this.cbc = [{label: '全部', value: ''}]
430
+ //tag
431
+ //tag)
432
+ //tag
433
+ this.meterbooks=[]
434
+ this.meterbooks=getMeterReadingBooks.data.meterbooks
435
+ this.meterbooks.forEach((res) => {
436
+ this.cbc.push({label: res.f_book_name, value: res.id})
437
+ /*if(res.f_book_slice_area){
438
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
439
+ this.sliceArea.push(res.f_book_slice_area)
440
+ }
441
+ }*/
442
+ })
443
+
444
+ },
445
+ //片区获取
446
+ async getSliceArea() {
447
+ let http = new HttpResetClass()
448
+ let getAllArea = await http.load('POST', '/rs/search', {
449
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
450
+ userid: this.userlogin.id
451
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
452
+ this.sliceArea = [{label: '全部', value: ''}]
453
+ //tag
454
+ //tag
455
+ //tag
456
+ getAllArea.data.forEach((res) => {
457
+ if(res.parentid==this.userlogin.orgid){
458
+ this.sliceArea.push({label:res.name,value:res.name})
459
+ }
460
+ })
461
+ //tag
462
+ },
463
+ //片区改变-对应抄表册下拉重新赋值
464
+ slice_areaChange(value) {
465
+ //tag
466
+ if(!value){
467
+ this.cbc=[]
468
+ this.meterbooks.forEach((res) => {
469
+ this.cbc.push({label: res.f_book_name, value: res.id})
470
+ })
471
+ }else{
472
+ this.cbc=[]
473
+ this.meterbooks.forEach((res) => {
474
+ if(res.f_book_slice_area==value){
475
+ this.cbc.push({label: res.f_book_name, value: res.id})
476
+ }
477
+ })
478
+ }
479
+ },
480
+ isChecked(v) {
481
+ // 如果全选,不在的按选中算,否则,在的按选中算
482
+ if (this.checkAll) {
483
+ return this.checkes.indexOf(v) == -1
484
+ } else {
485
+ return this.checkes.indexOf(v) != -1
486
+ }
487
+ },
488
+ setCheckAll() {
489
+ this.checkAll=this.checkAll?false:true;
490
+ // 全选改变后,清空选中数据
491
+ this.checkes = []
492
+ },
493
+ setCheckes(id) {
494
+ let index=this.checkes.indexOf(id)
495
+ if(index<0){
496
+ this.checkes.push(id)
497
+ }else{
498
+ this.checkes.splice(index,1)
499
+ }
500
+ },
501
+ //将客户信息拖至计划中
502
+ async dragtoPlanItem() {
503
+ if(this.model.rows.length==0){
504
+ Vue.showMessage("未检测到列表中有用户!")
505
+ return
506
+ }
507
+ if(!this.checkAll && this.checkes.length==0){
508
+ Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
509
+ return
510
+ }
511
+ if(this.selectplan && this.selectplan.id){
512
+ this.$parent.isSend=true
513
+ try{
514
+ let res=await new HttpResetClass().load("POST", "/rs/logic/AddCheckPlanItem", {
515
+ data:{
516
+ f_operator:this.userlogin.name,
517
+ f_plan_id:this.selectplan.id,
518
+ f_safecheck_type:this.selectplan.f_safecheck_type,
519
+ f_filialeid:this.userlogin.orgid,
520
+ f_subscribe_date:'',
521
+ condition:this.model.condition,
522
+ switchCheckAll:true,
523
+ checkAll:this.checkAll,
524
+ param:this.checkes,
525
+ columnName: "ua.id"
526
+ }
527
+ }, {resolveMsg: null, rejectMsg: null})
528
+ //tag+"---"+res.data.result.length)
529
+ this.$parent.isSend=false
530
+ if(res.data.code==200){
531
+ //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
532
+ this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
533
+ this.$parent.refresh()
534
+ }else{
535
+ this.$showMessage("添加失败!")
536
+ }
537
+ }catch (e) {
538
+ this.$showMessage("添加失败!")
539
+ }
540
+ }else{
541
+ this.$parent.isSend=false
542
+ this.$showMessage("请先打开一个计划再进行操作")
543
+ }
544
+ }
545
+ },
546
+ events: {
547
+ onFileUpload: function (file, res) {
548
+ //tag)
549
+ //tag)
550
+ let data = {
551
+ filepath: res.f_downloadpath
552
+ }
553
+ new HttpResetClass().load('POST','/rs/logic/safe_GetUserInfoFromExcel', {data: data}, {
554
+ resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
555
+ rejectMsg: '导入失败'
556
+ }).then((res) => {
557
+ this.uploadCodeCondition=res.data.condition
558
+ this.excelUserCondtion = false
559
+ })
560
+ },
561
+
562
+ }
563
+ }
564
+ </script>
565
+
566
+ <style scoped>
567
+ .safe-planfont{
568
+ font-family: MicrosoftYaHei;
569
+ font-size: 15px;
570
+ font-weight: normal;
571
+ font-stretch: normal;
572
+ letter-spacing: 2px;
573
+ color: #333333;
574
+ line-height: 25px;
575
+ }
576
+ .safe-bodyfont{
577
+ font-family: MicrosoftYaHei;
578
+ font-size: 14px;
579
+ font-weight: normal;
580
+ font-stretch: normal;
581
+ letter-spacing: 0px;
582
+ color: #999999;
583
+ line-height: 30px;
584
+ }
585
+ .safe-leftplan{
586
+ height:auto;
587
+ border-bottom:1px solid #ececec;
588
+ padding: 10px 5px
589
+ }
590
+ .leftplan-center{
591
+ border-top:1px solid #ececec;
592
+ border-bottom:1px solid #ececec;
593
+ }
594
+ .safe_p{
595
+ white-space: nowrap;
596
+ overflow: hidden;
597
+ text-overflow: ellipsis;
598
+ }
599
+ .safe-div-p{
600
+ color: #4792de;
601
+ text-align: end;
602
+ padding: 8px 15px;
603
+ }
604
+ </style>
605
+ <style lang="less">
606
+ .upuserinfo_sel ul{
607
+ width: 150% !important;
608
+ }
609
+ </style>