safecheck-client 4.0.0-60 → 4.0.0-61
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 +1 -1
- package/src/App.vue +31 -31
- package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
- package/src/components/DefectDealMain/DefectListNew.vue +642 -642
- package/src/components/android/AddPlanItem.vue +447 -447
- package/src/components/android/AddPlanItemYy.vue +451 -451
- package/src/components/android/AddSpecialPlanItem.vue +426 -426
- package/src/components/android/AndroidDefectDetails.vue +725 -725
- package/src/components/android/CurrentCreateYy.vue +1051 -1051
- package/src/components/android/Devices.vue +327 -327
- package/src/components/android/Devicesm.vue +327 -327
- package/src/components/android/PaperFeedbackm.vue +1026 -1026
- package/src/components/android/PhoneRecordInfo.vue +113 -113
- package/src/components/android/PhoneSellInfo.vue +113 -113
- package/src/components/android/PhoneUpDetail.vue +1040 -1040
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
- package/src/components/android/QRCode/QRCodePage.vue +212 -212
- package/src/components/android/SafePlanItem.vue +509 -509
- package/src/components/android/UserinfoSelect.vue +714 -714
- package/src/components/android/examples/SafeListExamples.vue +296 -296
- package/src/components/android/old/PaperFeedback.vue +1015 -1015
- package/src/components/android/recheck/Recheck.vue +402 -402
- package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
- package/src/components/checkplan/checkmsg.vue +459 -459
- package/src/components/defect/DefectList.vue +507 -507
- package/src/components/defect/DefectListWeixiu.vue +484 -484
- package/src/components/filialCircle/CircleList.vue +139 -139
- package/src/components/inspections/AddInspectPlanItem.vue +325 -325
- package/src/components/inspections/AddInspectPlanItems.vue +325 -325
- package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
- package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
- package/src/components/inspections/inspectionOrderV.vue +1853 -1853
- package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
- package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
- package/src/components/inspections/inspectionUserInfo.vue +398 -398
- package/src/components/pc/AnnouncementPC.vue +524 -524
- package/src/components/pc/DefectList.vue +742 -742
- package/src/components/pc/DeviceChange.vue +1068 -1068
- package/src/components/pc/SafeVisitInfo.vue +261 -261
- package/src/components/planmanage/PlanManage.vue +886 -886
- package/src/components/planmanage/checkPlanList.vue +368 -368
- package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
- package/src/components/report/HiddenSituation.vue +165 -165
- package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
- package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
- package/src/components/rongcheng/DefectList.vue +560 -560
- package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
- package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
- package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
- package/src/components/safecheckNew/android/Recheck.vue +379 -379
- package/src/components/sendsingle/EquipmentManagement.vue +727 -727
- package/src/components/shaoguan/DefectList.vue +473 -473
- package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
- package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
- package/src/components/userfile/SecurityAudit.vue +243 -243
- package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
- package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
- package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
- package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
- package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
- package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
- package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
- package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
- package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
- package/src/filiale/bayan/android/Edit.vue +132 -132
- package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
- package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
- package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
- package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
- package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
- package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
- package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
- package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
- package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
- package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
- package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
- package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
- package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
- package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
- package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
- package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
- package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
- package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
- package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
- package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
- package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
- package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
- package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
- package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +437 -437
- package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +346 -346
- package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
- package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
- package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
- package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
- package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
- package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
- package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
- package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
- package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
- package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
- package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
- package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
- package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
- package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2400 -2398
- package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
- package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
- package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
- package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
- package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
- package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
- package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
- package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
- package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
- package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
- package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
- package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
- package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
- package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
- package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
- package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
- package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
- package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
- package/src/filiale/rizhao/pc/DefectList.vue +489 -489
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
- package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
- package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
- package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
- package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
- package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
- package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
- package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
- package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
- package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
- package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
- package/src/filiale/shimen/pc/DefectList.vue +473 -473
- package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
- package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
- package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
- package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
- package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
- package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
- package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
- package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
- package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
- package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
- package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
- package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
- package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
- package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
- package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
- package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
- package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
- package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
- package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
- package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
- package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
- package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
- package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
- package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
- package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
- package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
- package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
- package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
- package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
- package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
- package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
- package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
- package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
- package/src/filiale/wenxi/pc/DefectList.vue +653 -653
- package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
- package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
- package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
- package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
- package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
- package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
- package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
- package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
- package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
- package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
- package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
- package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
- package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
- package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
- package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
- package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
- package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
- package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
- package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2848 -2848
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
- package/src/filiale/yunchengminsheng/android.js +15 -15
- package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
- package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
- package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
- package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
- package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
- package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
- package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
- package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
- package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
- package/src/main.js +33 -32
@@ -1,368 +1,368 @@
|
|
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
|
-
<div class="form-group col-sm-1" v-show="false">
|
9
|
-
<!--隐藏条件-->
|
10
|
-
<input type="text" class="input_search" v-model="model.f_plan_id"
|
11
|
-
style="width: 95%" placeholder="计划id" condition=" i.f_plan_id='{}'">
|
12
|
-
</div>
|
13
|
-
<div class="form-group col-sm-1" >
|
14
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
15
|
-
style="width: 95%" placeholder="客户编号" condition="i.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="i.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="i.f_address like '%{}%'">
|
24
|
-
</div>
|
25
|
-
<!--<div class="form-group col-sm-1" >
|
26
|
-
<v-select :width="'95%'"
|
27
|
-
class="select select_list"
|
28
|
-
:value.sync="$parent.$parent.f_state"
|
29
|
-
v-model="$parent.$parent.f_state"
|
30
|
-
:options='$parent.$parent.checkState'
|
31
|
-
placeholder='安检状态'
|
32
|
-
close-on-select
|
33
|
-
value-single
|
34
|
-
>
|
35
|
-
</v-select>
|
36
|
-
</div>-->
|
37
|
-
<div class="form-group col-sm-3" >
|
38
|
-
<button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
|
39
|
-
<button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
|
40
|
-
<!-- <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>-->
|
41
|
-
<export-excel :data="$parent.$parent.exportParameter"
|
42
|
-
:field="$parent.$parent.exportExcelField"
|
43
|
-
style="margin-left: 0px"
|
44
|
-
sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItem"
|
45
|
-
:template-name="'安检计划导出'" :choose-col="true">
|
46
|
-
</export-excel>
|
47
|
-
</div>
|
48
|
-
<div class="form-group col-sm-2 safe_p">
|
49
|
-
<label class="font_normal_body" :title="$parent.$parent.selectplan.f_plan_name">{{$parent.$parent.selectplan.f_plan_name?'当前选中 : '+$parent.$parent.selectplan.f_plan_name:''}}</label>
|
50
|
-
</div>
|
51
|
-
<div class="form-group col-sm-2" style="float: right">
|
52
|
-
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
|
53
|
-
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()" v-show="$parent.$parent.isdelete">移出计划</button>
|
54
|
-
</div>
|
55
|
-
<modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
|
56
|
-
<div slot="modal-header" class="modal-header">
|
57
|
-
<h4 class="modal-title">
|
58
|
-
计划内用户查询条件
|
59
|
-
</h4>
|
60
|
-
</div>
|
61
|
-
<div slot="modal-body" class="modal-body">
|
62
|
-
<div class="row">
|
63
|
-
<div class="form-group col-sm-4" >
|
64
|
-
<label class="font_normal_body">是否已检:</label>
|
65
|
-
<v-select
|
66
|
-
class="select select_list"
|
67
|
-
:value.sync="model.f_state"
|
68
|
-
v-model="model.f_state"
|
69
|
-
:options='$parent.$parent.checkState'
|
70
|
-
@change="$parent.$parent.checkStateChange(model.f_state)"
|
71
|
-
placeholder='请选择'
|
72
|
-
condition="i.f_state='{}'"
|
73
|
-
close-on-select
|
74
|
-
value-single
|
75
|
-
>
|
76
|
-
</v-select>
|
77
|
-
</div>
|
78
|
-
<div class="form-group col-sm-4" >
|
79
|
-
<label class="font_normal_body">安检结果:</label>
|
80
|
-
<v-select
|
81
|
-
class="select select_list"
|
82
|
-
:value.sync="model.f_check_state"
|
83
|
-
v-model="model.f_check_state"
|
84
|
-
:options='$parent.$parent.checkResults'
|
85
|
-
placeholder='请选择'
|
86
|
-
condition="i.f_last_check_state='{}'"
|
87
|
-
close-on-select
|
88
|
-
value-single
|
89
|
-
>
|
90
|
-
</v-select>
|
91
|
-
</div>
|
92
|
-
<div class="form-group col-sm-4" >
|
93
|
-
<label class="font_normal_body">安检起始:</label>
|
94
|
-
<datepicker
|
95
|
-
placeholder='请选择'
|
96
|
-
style="width:60%"
|
97
|
-
:disabled-days-of-week="[]"
|
98
|
-
:format="'yyyy-MM-dd'"
|
99
|
-
:show-rest-button="reset"
|
100
|
-
:value.sync="model.f_startfile_time"
|
101
|
-
v-model="model.f_startfile_time"
|
102
|
-
condition="i.f_last_check_date >='{} 00:00:00'">
|
103
|
-
</datepicker>
|
104
|
-
</div>
|
105
|
-
<div class="form-group col-sm-4" >
|
106
|
-
<label class="font_normal_body">安检截止:</label>
|
107
|
-
<datepicker
|
108
|
-
placeholder='请选择'
|
109
|
-
:disabled-days-of-week="[]"
|
110
|
-
style="width:60%"
|
111
|
-
:format="'yyyy-MM-dd'"
|
112
|
-
:show-rest-button="reset"
|
113
|
-
:value.sync="model.f_endfile_time"
|
114
|
-
v-model="model.f_endfile_time"
|
115
|
-
condition="i.f_last_check_date <='{} 00:00:00'">
|
116
|
-
</datepicker>
|
117
|
-
</div>
|
118
|
-
</div>
|
119
|
-
</div>
|
120
|
-
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
121
|
-
<button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
|
122
|
-
<button class="button_search" @click="$parent.$parent.cancel">取消</button>
|
123
|
-
</div>
|
124
|
-
</modal>
|
125
|
-
</div>
|
126
|
-
</div>
|
127
|
-
</criteria>
|
128
|
-
<data-grid :model="model" partial='list' class="table_sy">
|
129
|
-
|
130
|
-
<template partial='head'>
|
131
|
-
<tr>
|
132
|
-
<th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
|
133
|
-
<th><nobr>用户编号</nobr></th>
|
134
|
-
<th><nobr>用户名称</nobr></th>
|
135
|
-
<th><nobr>用户电话</nobr></th>
|
136
|
-
<th><nobr>用户类型</nobr></th>
|
137
|
-
<th><nobr>小区名称</nobr></th>
|
138
|
-
<th><nobr>安检状态</nobr></th>
|
139
|
-
<th><nobr>地址</nobr></th>
|
140
|
-
</tr>
|
141
|
-
</template>
|
142
|
-
<template partial='body'>
|
143
|
-
<td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)" @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)" /></td>
|
144
|
-
<td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
145
|
-
<td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
|
146
|
-
<td style="text-align: center"><nobr>{{row.f_user_phone}}</nobr></td>
|
147
|
-
<td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
|
148
|
-
<td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
|
149
|
-
<td style="text-align: center"><nobr>{{row.f_state==='已检'?row.f_last_check_state:'未检'}}</nobr></td>
|
150
|
-
<td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
|
151
|
-
</template>
|
152
|
-
</data-grid>
|
153
|
-
</criteria-paged>
|
154
|
-
<modal :show.sync="showPlanModal" v-ref:modalp>
|
155
|
-
<div slot="modal-header" class="modal-header">
|
156
|
-
<h4 class="modal-title">
|
157
|
-
计划内用户调整
|
158
|
-
</h4>
|
159
|
-
</div>
|
160
|
-
<div slot="modal-body" class="modal-body">
|
161
|
-
<plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
|
162
|
-
</div>
|
163
|
-
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
164
|
-
<button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
|
165
|
-
<button class="button_search" @click="cancel">取消</button>
|
166
|
-
</div>
|
167
|
-
</modal>
|
168
|
-
</div>
|
169
|
-
</template>
|
170
|
-
|
171
|
-
<script>
|
172
|
-
import {HttpResetClass, PagedList} from "vue-client";
|
173
|
-
import Vue from "vue";
|
174
|
-
|
175
|
-
export default {
|
176
|
-
name: "PlanManage",
|
177
|
-
title: '计划管理',
|
178
|
-
data() {
|
179
|
-
return {
|
180
|
-
model:new PagedList('/api/af-safecheck/sql/planItem', 100, {}),
|
181
|
-
isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
|
182
|
-
a:'1',
|
183
|
-
opt:[{label:"测试",value:"测试"}],
|
184
|
-
showCondtion:false,
|
185
|
-
checkAll:false,
|
186
|
-
checkes:[],
|
187
|
-
checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
|
188
|
-
checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
|
189
|
-
showPlanModal:false,
|
190
|
-
exportExcelField: {
|
191
|
-
'f_userinfo_code':'用户编号',
|
192
|
-
'f_user_name':'用户名称',
|
193
|
-
'f_user_type':'用户类型',
|
194
|
-
'f_residential_area':'小区名称',
|
195
|
-
'f_state':'安检状态',
|
196
|
-
'f_address':'地址',
|
197
|
-
'f_user_phone':'用户电话',
|
198
|
-
'f_newfile_date':'建档日期'
|
199
|
-
}
|
200
|
-
}
|
201
|
-
},
|
202
|
-
props:["selectplan","userlogin"],
|
203
|
-
ready(){
|
204
|
-
|
205
|
-
},
|
206
|
-
computed:{
|
207
|
-
exportParameter(){
|
208
|
-
// excel 导出条件拼接
|
209
|
-
return {
|
210
|
-
condition: this.$refs.paged.model.condition,
|
211
|
-
groupName: this.groupNameForSql
|
212
|
-
}
|
213
|
-
}
|
214
|
-
},
|
215
|
-
methods:{
|
216
|
-
clear(){
|
217
|
-
this.model.f_plan_id = '';
|
218
|
-
this.model.f_userinfo_code = '';
|
219
|
-
this.model.f_user_name = '';
|
220
|
-
this.model.f_address='';
|
221
|
-
},
|
222
|
-
//将某个计划下的一项拖到另一个计划
|
223
|
-
async dragtoOtherPlanIteem() {
|
224
|
-
//tag)
|
225
|
-
|
226
|
-
if (!this.$refs.modalp.$children[0].selectedRow.id) {
|
227
|
-
this.$showMessage("请选择需要调整到那个计划中!")
|
228
|
-
return
|
229
|
-
}
|
230
|
-
this.$parent.isSend=true
|
231
|
-
try{
|
232
|
-
let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItem", {
|
233
|
-
data:{
|
234
|
-
f_operator:this.userlogin.name,
|
235
|
-
f_plan_id:this.$refs.modalp.$children[0].selectedRow.id,
|
236
|
-
condition:this.model.condition,
|
237
|
-
switchCheckAll:true,
|
238
|
-
checkAll:this.checkAll,
|
239
|
-
param:this.checkes,
|
240
|
-
columnName: "i.id"
|
241
|
-
}
|
242
|
-
}, {resolveMsg: null, rejectMsg: null})
|
243
|
-
this.$parent.isSend=false
|
244
|
-
if(res.data.code==200){
|
245
|
-
this.$showMessage("更换安检计划成功!")
|
246
|
-
this.$parent.refreshPlan()
|
247
|
-
}else{
|
248
|
-
this.$showMessage("更换安检计划失败!")
|
249
|
-
}
|
250
|
-
}catch (e) {
|
251
|
-
this.$parent.isSend=false
|
252
|
-
this.$showMessage("更换安检计划失败!")
|
253
|
-
}
|
254
|
-
},
|
255
|
-
showplanModal(){
|
256
|
-
if(!this.selectplan || !this.selectplan.id){
|
257
|
-
this.$showMessage("请先打开一个计划再进行操作")
|
258
|
-
return
|
259
|
-
}
|
260
|
-
if(!this.checkAll && this.checkes.length==0){
|
261
|
-
this.$showMessage("请先在计划中勾选你要调整的用户!")
|
262
|
-
return
|
263
|
-
}
|
264
|
-
this.showPlanModal=true
|
265
|
-
},
|
266
|
-
showUserCondition(){
|
267
|
-
this.showCondtion=true
|
268
|
-
},
|
269
|
-
isChecked(v) {
|
270
|
-
// 如果全选,不在的按选中算,否则,在的按选中算
|
271
|
-
if (this.checkAll) {
|
272
|
-
return this.checkes.indexOf(v) == -1
|
273
|
-
} else {
|
274
|
-
return this.checkes.indexOf(v) != -1
|
275
|
-
}
|
276
|
-
},
|
277
|
-
setCheckAll() {
|
278
|
-
this.checkAll=this.checkAll?false:true;
|
279
|
-
// 全选改变后,清空选中数据
|
280
|
-
this.checkes = []
|
281
|
-
},
|
282
|
-
setCheckes(id) {
|
283
|
-
let index=this.checkes.indexOf(id)
|
284
|
-
if(index<0){
|
285
|
-
this.checkes.push(id)
|
286
|
-
}else{
|
287
|
-
this.checkes.splice(index,1)
|
288
|
-
}
|
289
|
-
},
|
290
|
-
cancel(){
|
291
|
-
this.showCondtion=false
|
292
|
-
this.showPlanModal=false
|
293
|
-
},
|
294
|
-
selfSearch (args) {
|
295
|
-
if(!this.selectplan.id){
|
296
|
-
this.$showMessage("请先选择一个计划!")
|
297
|
-
return
|
298
|
-
}
|
299
|
-
this.cancel()
|
300
|
-
this.checkes=[]
|
301
|
-
this.checkAll=false
|
302
|
-
args.condition+= ` and i.f_state!= '作废'`
|
303
|
-
this.model.search(args.condition, args.model, args.condValue)
|
304
|
-
},
|
305
|
-
checkStateChange(val){
|
306
|
-
if(val=='未检'){
|
307
|
-
this.checkResults=[]
|
308
|
-
this.$refs.paged.$refs.criteria.model.f_check_state=''
|
309
|
-
}else{
|
310
|
-
this.checkResults=[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}]
|
311
|
-
}
|
312
|
-
},
|
313
|
-
//修改计划项状态为作废
|
314
|
-
async delPlanItem() {
|
315
|
-
if(!this.selectplan || !this.selectplan.id){
|
316
|
-
this.$showMessage("请先打开一个计划再进行操作")
|
317
|
-
return
|
318
|
-
}
|
319
|
-
if(!this.checkAll && this.checkes.length==0){
|
320
|
-
this.$showMessage("请先在计划中勾选你要作废的用户!")
|
321
|
-
return
|
322
|
-
}
|
323
|
-
this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?",['confirm','cancel']).then((button)=>{
|
324
|
-
if(button=='confirm'){
|
325
|
-
let resu=new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItemState", {
|
326
|
-
data: {
|
327
|
-
f_operator:this.userlogin.name,
|
328
|
-
condition:this.model.condition,
|
329
|
-
switchCheckAll:true,
|
330
|
-
checkAll:this.checkAll,
|
331
|
-
param:this.checkes,
|
332
|
-
columnName: "i.id"
|
333
|
-
}
|
334
|
-
}, {resolveMsg: null, rejectMsg: null}).then((resu)=>{
|
335
|
-
|
336
|
-
//tag)
|
337
|
-
if(resu.data.code==200){
|
338
|
-
this.$showMessage("移除安检单成功! 成功移除:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
|
339
|
-
//this.checkes=[]
|
340
|
-
//this.checkAll=false
|
341
|
-
this.$parent.refresh()
|
342
|
-
}else{
|
343
|
-
this.$showMessage("取消安检计划失败!")
|
344
|
-
}
|
345
|
-
})
|
346
|
-
}
|
347
|
-
})
|
348
|
-
}
|
349
|
-
},
|
350
|
-
watch:{
|
351
|
-
'selectplan.id' (){
|
352
|
-
//tag
|
353
|
-
if(this.selectplan.id){
|
354
|
-
this.$refs.paged.$refs.criteria.model.f_plan_id=this.selectplan.id
|
355
|
-
this.$refs.paged.$refs.criteria.search()
|
356
|
-
}
|
357
|
-
}
|
358
|
-
}
|
359
|
-
}
|
360
|
-
</script>
|
361
|
-
|
362
|
-
<style scoped>
|
363
|
-
.safe_p{
|
364
|
-
white-space: nowrap;
|
365
|
-
overflow: hidden;
|
366
|
-
text-overflow: ellipsis;
|
367
|
-
}
|
368
|
-
</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
|
+
<div class="form-group col-sm-1" v-show="false">
|
9
|
+
<!--隐藏条件-->
|
10
|
+
<input type="text" class="input_search" v-model="model.f_plan_id"
|
11
|
+
style="width: 95%" placeholder="计划id" condition=" i.f_plan_id='{}'">
|
12
|
+
</div>
|
13
|
+
<div class="form-group col-sm-1" >
|
14
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
15
|
+
style="width: 95%" placeholder="客户编号" condition="i.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="i.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="i.f_address like '%{}%'">
|
24
|
+
</div>
|
25
|
+
<!--<div class="form-group col-sm-1" >
|
26
|
+
<v-select :width="'95%'"
|
27
|
+
class="select select_list"
|
28
|
+
:value.sync="$parent.$parent.f_state"
|
29
|
+
v-model="$parent.$parent.f_state"
|
30
|
+
:options='$parent.$parent.checkState'
|
31
|
+
placeholder='安检状态'
|
32
|
+
close-on-select
|
33
|
+
value-single
|
34
|
+
>
|
35
|
+
</v-select>
|
36
|
+
</div>-->
|
37
|
+
<div class="form-group col-sm-3" >
|
38
|
+
<button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
|
39
|
+
<button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
|
40
|
+
<!-- <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>-->
|
41
|
+
<export-excel :data="$parent.$parent.exportParameter"
|
42
|
+
:field="$parent.$parent.exportExcelField"
|
43
|
+
style="margin-left: 0px"
|
44
|
+
sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItem"
|
45
|
+
:template-name="'安检计划导出'" :choose-col="true">
|
46
|
+
</export-excel>
|
47
|
+
</div>
|
48
|
+
<div class="form-group col-sm-2 safe_p">
|
49
|
+
<label class="font_normal_body" :title="$parent.$parent.selectplan.f_plan_name">{{$parent.$parent.selectplan.f_plan_name?'当前选中 : '+$parent.$parent.selectplan.f_plan_name:''}}</label>
|
50
|
+
</div>
|
51
|
+
<div class="form-group col-sm-2" style="float: right">
|
52
|
+
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
|
53
|
+
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()" v-show="$parent.$parent.isdelete">移出计划</button>
|
54
|
+
</div>
|
55
|
+
<modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
|
56
|
+
<div slot="modal-header" class="modal-header">
|
57
|
+
<h4 class="modal-title">
|
58
|
+
计划内用户查询条件
|
59
|
+
</h4>
|
60
|
+
</div>
|
61
|
+
<div slot="modal-body" class="modal-body">
|
62
|
+
<div class="row">
|
63
|
+
<div class="form-group col-sm-4" >
|
64
|
+
<label class="font_normal_body">是否已检:</label>
|
65
|
+
<v-select
|
66
|
+
class="select select_list"
|
67
|
+
:value.sync="model.f_state"
|
68
|
+
v-model="model.f_state"
|
69
|
+
:options='$parent.$parent.checkState'
|
70
|
+
@change="$parent.$parent.checkStateChange(model.f_state)"
|
71
|
+
placeholder='请选择'
|
72
|
+
condition="i.f_state='{}'"
|
73
|
+
close-on-select
|
74
|
+
value-single
|
75
|
+
>
|
76
|
+
</v-select>
|
77
|
+
</div>
|
78
|
+
<div class="form-group col-sm-4" >
|
79
|
+
<label class="font_normal_body">安检结果:</label>
|
80
|
+
<v-select
|
81
|
+
class="select select_list"
|
82
|
+
:value.sync="model.f_check_state"
|
83
|
+
v-model="model.f_check_state"
|
84
|
+
:options='$parent.$parent.checkResults'
|
85
|
+
placeholder='请选择'
|
86
|
+
condition="i.f_last_check_state='{}'"
|
87
|
+
close-on-select
|
88
|
+
value-single
|
89
|
+
>
|
90
|
+
</v-select>
|
91
|
+
</div>
|
92
|
+
<div class="form-group col-sm-4" >
|
93
|
+
<label class="font_normal_body">安检起始:</label>
|
94
|
+
<datepicker
|
95
|
+
placeholder='请选择'
|
96
|
+
style="width:60%"
|
97
|
+
:disabled-days-of-week="[]"
|
98
|
+
:format="'yyyy-MM-dd'"
|
99
|
+
:show-rest-button="reset"
|
100
|
+
:value.sync="model.f_startfile_time"
|
101
|
+
v-model="model.f_startfile_time"
|
102
|
+
condition="i.f_last_check_date >='{} 00:00:00'">
|
103
|
+
</datepicker>
|
104
|
+
</div>
|
105
|
+
<div class="form-group col-sm-4" >
|
106
|
+
<label class="font_normal_body">安检截止:</label>
|
107
|
+
<datepicker
|
108
|
+
placeholder='请选择'
|
109
|
+
:disabled-days-of-week="[]"
|
110
|
+
style="width:60%"
|
111
|
+
:format="'yyyy-MM-dd'"
|
112
|
+
:show-rest-button="reset"
|
113
|
+
:value.sync="model.f_endfile_time"
|
114
|
+
v-model="model.f_endfile_time"
|
115
|
+
condition="i.f_last_check_date <='{} 00:00:00'">
|
116
|
+
</datepicker>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
</div>
|
120
|
+
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
121
|
+
<button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
|
122
|
+
<button class="button_search" @click="$parent.$parent.cancel">取消</button>
|
123
|
+
</div>
|
124
|
+
</modal>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
</criteria>
|
128
|
+
<data-grid :model="model" partial='list' class="table_sy">
|
129
|
+
|
130
|
+
<template partial='head'>
|
131
|
+
<tr>
|
132
|
+
<th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
|
133
|
+
<th><nobr>用户编号</nobr></th>
|
134
|
+
<th><nobr>用户名称</nobr></th>
|
135
|
+
<th><nobr>用户电话</nobr></th>
|
136
|
+
<th><nobr>用户类型</nobr></th>
|
137
|
+
<th><nobr>小区名称</nobr></th>
|
138
|
+
<th><nobr>安检状态</nobr></th>
|
139
|
+
<th><nobr>地址</nobr></th>
|
140
|
+
</tr>
|
141
|
+
</template>
|
142
|
+
<template partial='body'>
|
143
|
+
<td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)" @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)" /></td>
|
144
|
+
<td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
145
|
+
<td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
|
146
|
+
<td style="text-align: center"><nobr>{{row.f_user_phone}}</nobr></td>
|
147
|
+
<td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
|
148
|
+
<td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
|
149
|
+
<td style="text-align: center"><nobr>{{row.f_state==='已检'?row.f_last_check_state:'未检'}}</nobr></td>
|
150
|
+
<td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
|
151
|
+
</template>
|
152
|
+
</data-grid>
|
153
|
+
</criteria-paged>
|
154
|
+
<modal :show.sync="showPlanModal" v-ref:modalp>
|
155
|
+
<div slot="modal-header" class="modal-header">
|
156
|
+
<h4 class="modal-title">
|
157
|
+
计划内用户调整
|
158
|
+
</h4>
|
159
|
+
</div>
|
160
|
+
<div slot="modal-body" class="modal-body">
|
161
|
+
<plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
|
162
|
+
</div>
|
163
|
+
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
164
|
+
<button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
|
165
|
+
<button class="button_search" @click="cancel">取消</button>
|
166
|
+
</div>
|
167
|
+
</modal>
|
168
|
+
</div>
|
169
|
+
</template>
|
170
|
+
|
171
|
+
<script>
|
172
|
+
import {HttpResetClass, PagedList} from "vue-client";
|
173
|
+
import Vue from "vue";
|
174
|
+
|
175
|
+
export default {
|
176
|
+
name: "PlanManage",
|
177
|
+
title: '计划管理',
|
178
|
+
data() {
|
179
|
+
return {
|
180
|
+
model:new PagedList('/api/af-safecheck/sql/planItem', 100, {}),
|
181
|
+
isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
|
182
|
+
a:'1',
|
183
|
+
opt:[{label:"测试",value:"测试"}],
|
184
|
+
showCondtion:false,
|
185
|
+
checkAll:false,
|
186
|
+
checkes:[],
|
187
|
+
checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
|
188
|
+
checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
|
189
|
+
showPlanModal:false,
|
190
|
+
exportExcelField: {
|
191
|
+
'f_userinfo_code':'用户编号',
|
192
|
+
'f_user_name':'用户名称',
|
193
|
+
'f_user_type':'用户类型',
|
194
|
+
'f_residential_area':'小区名称',
|
195
|
+
'f_state':'安检状态',
|
196
|
+
'f_address':'地址',
|
197
|
+
'f_user_phone':'用户电话',
|
198
|
+
'f_newfile_date':'建档日期'
|
199
|
+
}
|
200
|
+
}
|
201
|
+
},
|
202
|
+
props:["selectplan","userlogin"],
|
203
|
+
ready(){
|
204
|
+
|
205
|
+
},
|
206
|
+
computed:{
|
207
|
+
exportParameter(){
|
208
|
+
// excel 导出条件拼接
|
209
|
+
return {
|
210
|
+
condition: this.$refs.paged.model.condition,
|
211
|
+
groupName: this.groupNameForSql
|
212
|
+
}
|
213
|
+
}
|
214
|
+
},
|
215
|
+
methods:{
|
216
|
+
clear(){
|
217
|
+
this.model.f_plan_id = '';
|
218
|
+
this.model.f_userinfo_code = '';
|
219
|
+
this.model.f_user_name = '';
|
220
|
+
this.model.f_address='';
|
221
|
+
},
|
222
|
+
//将某个计划下的一项拖到另一个计划
|
223
|
+
async dragtoOtherPlanIteem() {
|
224
|
+
//tag)
|
225
|
+
|
226
|
+
if (!this.$refs.modalp.$children[0].selectedRow.id) {
|
227
|
+
this.$showMessage("请选择需要调整到那个计划中!")
|
228
|
+
return
|
229
|
+
}
|
230
|
+
this.$parent.isSend=true
|
231
|
+
try{
|
232
|
+
let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItem", {
|
233
|
+
data:{
|
234
|
+
f_operator:this.userlogin.name,
|
235
|
+
f_plan_id:this.$refs.modalp.$children[0].selectedRow.id,
|
236
|
+
condition:this.model.condition,
|
237
|
+
switchCheckAll:true,
|
238
|
+
checkAll:this.checkAll,
|
239
|
+
param:this.checkes,
|
240
|
+
columnName: "i.id"
|
241
|
+
}
|
242
|
+
}, {resolveMsg: null, rejectMsg: null})
|
243
|
+
this.$parent.isSend=false
|
244
|
+
if(res.data.code==200){
|
245
|
+
this.$showMessage("更换安检计划成功!")
|
246
|
+
this.$parent.refreshPlan()
|
247
|
+
}else{
|
248
|
+
this.$showMessage("更换安检计划失败!")
|
249
|
+
}
|
250
|
+
}catch (e) {
|
251
|
+
this.$parent.isSend=false
|
252
|
+
this.$showMessage("更换安检计划失败!")
|
253
|
+
}
|
254
|
+
},
|
255
|
+
showplanModal(){
|
256
|
+
if(!this.selectplan || !this.selectplan.id){
|
257
|
+
this.$showMessage("请先打开一个计划再进行操作")
|
258
|
+
return
|
259
|
+
}
|
260
|
+
if(!this.checkAll && this.checkes.length==0){
|
261
|
+
this.$showMessage("请先在计划中勾选你要调整的用户!")
|
262
|
+
return
|
263
|
+
}
|
264
|
+
this.showPlanModal=true
|
265
|
+
},
|
266
|
+
showUserCondition(){
|
267
|
+
this.showCondtion=true
|
268
|
+
},
|
269
|
+
isChecked(v) {
|
270
|
+
// 如果全选,不在的按选中算,否则,在的按选中算
|
271
|
+
if (this.checkAll) {
|
272
|
+
return this.checkes.indexOf(v) == -1
|
273
|
+
} else {
|
274
|
+
return this.checkes.indexOf(v) != -1
|
275
|
+
}
|
276
|
+
},
|
277
|
+
setCheckAll() {
|
278
|
+
this.checkAll=this.checkAll?false:true;
|
279
|
+
// 全选改变后,清空选中数据
|
280
|
+
this.checkes = []
|
281
|
+
},
|
282
|
+
setCheckes(id) {
|
283
|
+
let index=this.checkes.indexOf(id)
|
284
|
+
if(index<0){
|
285
|
+
this.checkes.push(id)
|
286
|
+
}else{
|
287
|
+
this.checkes.splice(index,1)
|
288
|
+
}
|
289
|
+
},
|
290
|
+
cancel(){
|
291
|
+
this.showCondtion=false
|
292
|
+
this.showPlanModal=false
|
293
|
+
},
|
294
|
+
selfSearch (args) {
|
295
|
+
if(!this.selectplan.id){
|
296
|
+
this.$showMessage("请先选择一个计划!")
|
297
|
+
return
|
298
|
+
}
|
299
|
+
this.cancel()
|
300
|
+
this.checkes=[]
|
301
|
+
this.checkAll=false
|
302
|
+
args.condition+= ` and i.f_state!= '作废'`
|
303
|
+
this.model.search(args.condition, args.model, args.condValue)
|
304
|
+
},
|
305
|
+
checkStateChange(val){
|
306
|
+
if(val=='未检'){
|
307
|
+
this.checkResults=[]
|
308
|
+
this.$refs.paged.$refs.criteria.model.f_check_state=''
|
309
|
+
}else{
|
310
|
+
this.checkResults=[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}]
|
311
|
+
}
|
312
|
+
},
|
313
|
+
//修改计划项状态为作废
|
314
|
+
async delPlanItem() {
|
315
|
+
if(!this.selectplan || !this.selectplan.id){
|
316
|
+
this.$showMessage("请先打开一个计划再进行操作")
|
317
|
+
return
|
318
|
+
}
|
319
|
+
if(!this.checkAll && this.checkes.length==0){
|
320
|
+
this.$showMessage("请先在计划中勾选你要作废的用户!")
|
321
|
+
return
|
322
|
+
}
|
323
|
+
this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?",['confirm','cancel']).then((button)=>{
|
324
|
+
if(button=='confirm'){
|
325
|
+
let resu=new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItemState", {
|
326
|
+
data: {
|
327
|
+
f_operator:this.userlogin.name,
|
328
|
+
condition:this.model.condition,
|
329
|
+
switchCheckAll:true,
|
330
|
+
checkAll:this.checkAll,
|
331
|
+
param:this.checkes,
|
332
|
+
columnName: "i.id"
|
333
|
+
}
|
334
|
+
}, {resolveMsg: null, rejectMsg: null}).then((resu)=>{
|
335
|
+
|
336
|
+
//tag)
|
337
|
+
if(resu.data.code==200){
|
338
|
+
this.$showMessage("移除安检单成功! 成功移除:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
|
339
|
+
//this.checkes=[]
|
340
|
+
//this.checkAll=false
|
341
|
+
this.$parent.refresh()
|
342
|
+
}else{
|
343
|
+
this.$showMessage("取消安检计划失败!")
|
344
|
+
}
|
345
|
+
})
|
346
|
+
}
|
347
|
+
})
|
348
|
+
}
|
349
|
+
},
|
350
|
+
watch:{
|
351
|
+
'selectplan.id' (){
|
352
|
+
//tag
|
353
|
+
if(this.selectplan.id){
|
354
|
+
this.$refs.paged.$refs.criteria.model.f_plan_id=this.selectplan.id
|
355
|
+
this.$refs.paged.$refs.criteria.search()
|
356
|
+
}
|
357
|
+
}
|
358
|
+
}
|
359
|
+
}
|
360
|
+
</script>
|
361
|
+
|
362
|
+
<style scoped>
|
363
|
+
.safe_p{
|
364
|
+
white-space: nowrap;
|
365
|
+
overflow: hidden;
|
366
|
+
text-overflow: ellipsis;
|
367
|
+
}
|
368
|
+
</style>
|