safecheck-client 3.0.35-5 → 3.0.35-51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/package.json +1 -1
  2. package/src/bootstrap/less/pager.less +76 -76
  3. package/src/components/NewDefectList/DefectListNew.vue +617 -617
  4. package/src/components/NewDefectList/DefectPaperNew.vue +3 -3
  5. package/src/components/Util/SafecheckUpload.vue +4 -0
  6. package/src/components/android/CheckPlanDown.vue +1 -1
  7. package/src/components/android/CivilCurrentCreate.vue +56 -41
  8. package/src/components/android/NoCivilCurrentCreate.vue +10 -0
  9. package/src/components/android/PaperFeedback.vue +1 -1
  10. package/src/components/android/PhoneUpUserinfo.vue +25 -6
  11. package/src/components/android/PhoneotherInfo.vue +0 -14
  12. package/src/components/android/PhoneotherInfov3.vue +118 -0
  13. package/src/components/android/SafecheckDevices.vue +1298 -1298
  14. package/src/components/android/SafecheckOrderV.vue +2 -529
  15. package/src/components/pc/AddPlanItemYyChange.vue +743 -0
  16. package/src/components/pc/NewCheckpaper.vue +1998 -1943
  17. package/src/components/pc/SecurityCheckLedger.vue +133 -0
  18. package/src/components/pc/SecurityCheckList.vue +160 -0
  19. package/src/components/pc/SecurityCheckManage.vue +106 -0
  20. package/src/components/planmanage/PlanManage.vue +47 -2
  21. package/src/components/report/CheckPlanAreaList.vue +25 -5
  22. package/src/components/rongcheng/AddPlanItem.vue +1 -1
  23. package/src/components/rongcheng/AspiratedAreaPlan.vue +1 -0
  24. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +4 -0
  25. package/src/components/rongcheng/AspiratedUserInfo.vue +12 -4
  26. package/src/components/rongcheng/CheckSearchUser.vue +1 -1
  27. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  28. package/src/components/rongcheng/SafecheckUserInfo.vue +12 -12
  29. package/src/filiale/bayan/android/AddPlanItem.vue +450 -430
  30. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -249
  31. package/src/filiale/bayan/android/CurrentCreate.vue +10 -0
  32. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +908 -905
  33. package/src/filiale/bayan/android/SafecheckOrderV.vue +76 -20
  34. package/src/filiale/bayan/android/SafecheckUserInfo.vue +4 -0
  35. package/src/filiale/bayan/pc/DefectPaperNew.vue +22 -1
  36. package/src/filiale/bayan/pc/PlanManage.vue +962 -962
  37. package/src/filiale/bayan/pc/SelectCheckPlan.vue +6 -1
  38. package/src/filiale/dexin/pc/DefectListNew.vue +643 -0
  39. package/src/filiale/dexin/pc/DefectMainNew.vue +63 -0
  40. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -0
  41. package/src/filiale/dexin/pc.js +1 -0
  42. package/src/filiale/huaran/android/CheckPlanDown.vue +212 -0
  43. package/src/filiale/huaran/android.js +1 -0
  44. package/src/filiale/huaran/pc/PaperList.vue +22 -1
  45. package/src/filiale/huaran/pc/PlanManage.vue +66 -7
  46. package/src/filiale/huaran/pc/checkUserList.vue +55 -22
  47. package/src/filiale/huaran/pc.js +1 -0
  48. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  49. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  50. package/src/filiale/qianneng/android/SwitchValve.vue +1 -0
  51. package/src/filiale/rizhao/pc/NewCheckpaper.vue +9 -4
  52. package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
  53. package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
  54. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +21 -0
  55. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  56. package/src/filiale/siyang/android/PaperFeedback.vue +1514 -0
  57. package/src/filiale/siyang/android.js +1 -0
  58. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  59. package/src/filiale/siyang/pc/checkUserList.vue +123 -148
  60. package/src/filiale/tianke/pc/DefectListNew.vue +10 -3
  61. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3 -3
  62. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +5 -13
  63. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  64. package/src/filiale/weinan/android/PaperFeedback.vue +34 -8
  65. package/src/filiale/weinan/android/SafecheckOrderV.vue +2 -1
  66. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  67. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  68. package/src/filiale/weinan/pc/NewCheckpaper.vue +20 -0
  69. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  70. package/src/filiale/xilan/android/CurrentCreate.vue +1053 -1067
  71. package/src/filiale/xilan/android.js +0 -1
  72. package/src/filiale/xilan/pc/PaperList.vue +795 -0
  73. package/src/filiale/xilan/pc.js +13 -12
  74. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  75. package/src/filiale/zhongsheng/android/SafecheckDevices.vue +4 -4
  76. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +33 -1
  77. package/src/safecheck-android.js +1 -0
  78. package/src/safecheck.js +12 -0
  79. package/src/filiale/xilan/android/AddPlanItem.vue +0 -461
@@ -755,11 +755,11 @@ export default {
755
755
  if (Number(this.gasDeviation) < 0) {
756
756
  console.log("ww"+JSON.stringify(this.f_items[this.f_gas_aberrant_number.index].f_item_value))
757
757
  if (this.f_items[this.f_gas_aberrant_number.index].f_item_value < Number(this.gasDeviation)) {
758
- this.f_items[this.f_gas_aberrant_number.index].f_is_defect = true
758
+ // this.f_items[this.f_gas_aberrant_number.index].f_is_defect = true
759
759
  }
760
760
  } else {
761
761
  if (Math.abs(this.f_items[this.f_gas_aberrant_number.index].f_item_value) > Number(this.gasDeviation)) {
762
- this.f_items[this.f_gas_aberrant_number.index].f_is_defect = false
762
+ // this.f_items[this.f_gas_aberrant_number.index].f_is_defect = false
763
763
  }
764
764
  }
765
765
 
@@ -797,7 +797,7 @@ export default {
797
797
  //tag ===> ' + JSON.stringify(Number(this.feeDeviation)))
798
798
  // 计算差值是否在范围内
799
799
  if (Math.abs(this.f_items[this.f_fee_aberrant_number.index].f_item_value) > Number(this.feeDeviation)) {
800
- this.f_items[this.f_fee_aberrant_number.index].f_is_defect = true
800
+ // this.f_items[this.f_fee_aberrant_number.index].f_is_defect = true
801
801
  }
802
802
 
803
803
  //tag)
@@ -825,7 +825,7 @@ export default {
825
825
  // 计算差值是否在范围内
826
826
  //tag)
827
827
  if (Math.abs(this.f_items[this.f_meter_aberrant_number1.index].f_item_value) > Number(this.meterbase)) {
828
- this.f_items[this.f_meter_aberrant_number1.index].f_is_defect = true
828
+ // this.f_items[this.f_meter_aberrant_number1.index].f_is_defect = true
829
829
  }
830
830
 
831
831
  //tag)
@@ -108,6 +108,9 @@
108
108
  <label for="f_checker_name">安检员</label>
109
109
  <input type="checkbox" id="f_user_number" value="f_user_number" v-model="$parent.$parent.nameForSql"/>
110
110
  <label for="f_checker_name">档案数量</label>
111
+ <label style="float: right">计划用户数:{{$parent.$parent.plan_num}}</label>
112
+ <label style="float: right">已检数:{{$parent.$parent.yes_safe_num}}</label>
113
+ <label style="float: right">未检数:{{$parent.$parent.no_safe_num}}</label>
111
114
  </div>
112
115
  </div>
113
116
  </div>
@@ -198,6 +201,9 @@ export default {
198
201
  listflag:false,
199
202
  nameflag:false,
200
203
  criteriaShow: false,
204
+ plan_num:0,
205
+ yes_safe_num:0,
206
+ no_safe_num:0,
201
207
  f_check_start:'',
202
208
  f_check_end:'',
203
209
  planName:[{label: '全部', value: ''}],
@@ -307,13 +313,17 @@ export default {
307
313
  if (!this.f_orgid) {
308
314
  this.getorg([this.$login.f.orgid])
309
315
  }
316
+ let condition = '1=1'
310
317
  if (this.f_orgid) {
311
318
  args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
319
+ condition += ` and tcpi.f_filialeid in ${this.f_orgid}`
312
320
  }
313
321
  if(this.f_check_start){
322
+ condition += ` and f_plan_year>=${new Date(this.f_check_start).getFullYear()} and f_plan_month>=${new Date(this.f_check_start).getMonth()+1} `
314
323
  args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1} `
315
324
  }
316
325
  if(this.f_check_end){
326
+ condition += ` and f_plan_year<=${new Date(this.f_check_end).getFullYear()} and f_plan_month<=${new Date(this.f_check_end).getMonth()+1} `
317
327
  args.condition += ` and f_year<=${new Date(this.f_check_end).getFullYear()} and f_month<=${new Date(this.f_check_end).getMonth()+1} `
318
328
  }
319
329
  this.$refs.paged.$refs.grid.$el.scrollTop = 0
@@ -322,10 +332,32 @@ export default {
322
332
  this.$showMessage("请至少选择一项进行汇总")
323
333
  return
324
334
  }
335
+ if (args.model.f_residential_area){
336
+ condition += ` and tcpi.f_residential_area like '%${args.model.f_residential_area}%'`
337
+ }
338
+ if (args.model.f_plan_name){
339
+ condition += ` and tcp.id = '${args.model.f_plan_name}'`
340
+ }
325
341
  this.model.paramSource = {groupName: `'${this.groupNameForSql}'`}
326
342
  this.model.search(args.condition, args.model)
343
+ this.initNum(condition)
344
+ },
345
+ initNum(condition){
346
+ new HttpResetClass().load('POST', `rs/sql/safe_singleTable_OrderBy`, {
347
+ data: {
348
+ items: "count(0) as num,sum(case when f_state = '已检' then 1 else 0 end) as yj,sum(case when f_state = '未检' then 1 else 0 end) as wj",
349
+ tablename: "t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id",
350
+ condition: `${condition}`,
351
+ orderitem: "1"
352
+ }
353
+ }, {resolveMsg: null, rejectMsg: null}).then(response=>{
354
+ this.plan_num = response.data[0].num || 0
355
+ this.yes_safe_num = response.data[0].yj || 0
356
+ this.no_safe_num = response.data[0].wj || 0
357
+ }).catch(error=>{
358
+ debugger
359
+ })
327
360
  },
328
-
329
361
  // 拼接groupName1
330
362
  getGroupName1 () {
331
363
  var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
@@ -294,6 +294,7 @@ export default function (filiale) {
294
294
  Vue.component('safecheck-devices-temp', (resolve) => { require(['./components/android/SafecheckDevicesTemp'], resolve) })
295
295
  Vue.component('paper-feedback-temp', (resolve) => { require(['./components/android/PaperFeedbackTemp'], resolve) })
296
296
  Vue.component('online-repair-safe', (resolve) => {require(['./components/android/OnlineRepairSafe'], resolve)})
297
+ Vue.component('phone-other-info-v3', (resolve) => {require(['./components/android/PhoneotherInfov3'], resolve)})
297
298
  Vue.component('phone-other-info', (resolve) => {require(['./components/android/PhoneotherInfo'], resolve)})
298
299
  //特殊目录给这里加
299
300
  if (filiale) {
package/src/safecheck.js CHANGED
@@ -294,6 +294,15 @@ export default function (filiale) {
294
294
  Vue.component('safecheck-file-upload', (resolve) => {
295
295
  require(['./components/Util/SafecheckUpload'], resolve)
296
296
  })
297
+ Vue.component('security-check-ledger', (resolve) => {
298
+ require(['./components/pc/SecurityCheckManage'], resolve)
299
+ })
300
+ Vue.component('security-check-ledger2', (resolve) => {
301
+ require(['./components/pc/SecurityCheckList'], resolve)
302
+ })
303
+ Vue.component('security-check-ledger1', (resolve) => {
304
+ require(['./components/pc/SecurityCheckLedger'], resolve)
305
+ })
297
306
  //附件上传2
298
307
  Vue.component('file-uploader', (resolve) => {
299
308
  require(['./components/FileUpload'], resolve)
@@ -887,6 +896,9 @@ export default function (filiale) {
887
896
  Vue.component('print-table-safe', (resolve) => {
888
897
  require(['./components/pc/PrintTable'], resolve)
889
898
  })
899
+ Vue.component('add-plan-item-yy-change', (resolve) => {
900
+ require(['./components/pc/AddPlanItemYyChange'], resolve)
901
+ })
890
902
 
891
903
  if (filiale) {
892
904
  let filialeComp = require(`./filiale/${filiale}/pc`).specialComp
@@ -1,461 +0,0 @@
1
- <template>
2
- <div class="auto">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div partial>
6
- <form>
7
- <div class="row app-row">
8
- <div class="col-xs-4">
9
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
10
- <label class="font text-left" style="padding: 0">旧用户编号:</label>
11
- </div>
12
- <div class="col-xs-8" >
13
- <input class="search_input input-font"
14
- v-model=model.f_olduserinfo_code condition="f_olduserinfo_code = '{}'" placeholder="请输入旧用户编号" />
15
- </div>
16
- </div>
17
- <div class="row app-row">
18
- <div class="col-xs-4">
19
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
20
- <label class="font text-left">用户编号:</label>
21
- </div>
22
- <div class="col-xs-8" >
23
- <input class="search_input input-font"
24
- v-model=model.f_userinfo_code condition="f_userinfo_code = '{}'" placeholder="请输入用户编号" />
25
- </div>
26
- </div>
27
- <div class="row app-row">
28
- <div class="col-xs-4">
29
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
30
- <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
31
- </div>
32
- <div class="col-xs-8" >
33
- <input class="search_input input-font"
34
- v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
35
- <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
36
- </div>
37
- </div>
38
- <div class="row app-row">
39
- <div class="col-xs-4">
40
- <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
41
- <label class="font text-left">用户名称:</label>
42
- </div>
43
- <div class="col-xs-8" >
44
- <input class="search_input input-font" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
45
- </div>
46
- </div>
47
- <div class="row app-row">
48
- <div class="col-xs-4">
49
- <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
50
- <label class="font text-left">用户类型:</label>
51
- </div>
52
- <div class="col-xs-8" >
53
- <v-select :value.sync="$parent.$parent.model.f_user_type" class="input-font"
54
- :options='$parent.$parent.user_types' placeholder='请选择用户类型' :value-single="true"
55
- v-model="$parent.$parent.model.f_user_type" close-on-select clear-button></v-select>
56
- </div>
57
- </div>
58
- <div class="row app-row">
59
- <div class="col-xs-4">
60
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
61
- <label class="font text-left">小区名称:</label>
62
- </div>
63
- <div class="col-xs-8" >
64
- <input style="width: 100%" class="search_input input-font" v-model="model.f_districtname" placeholder="请输入用户小区(可模糊查询)">
65
- </div>
66
- </div>
67
- <div class="row app-row">
68
- <div class="col-xs-4">
69
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
70
- <label class="font text-left">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
71
- </div>
72
- <div class="col-xs-8" >
73
- <input style="width: 100%" class="search_input input-font" v-model="model.f_building" placeholder="请输入用户楼号">
74
- </div>
75
- </div>
76
- <div class="row app-row">
77
- <div class="col-xs-4">
78
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
79
- <label class="font text-left">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元:</label>
80
- </div>
81
- <div class="col-xs-8" >
82
- <input style="width: 100%" class="search_input input-font" v-model="model.f_unit" placeholder="请输入用户单元">
83
- </div>
84
- </div>
85
- <div class="row app-row">
86
- <div class="col-xs-4">
87
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
88
- <label class="font text-left">用户地址:</label>
89
- </div>
90
- <div class="col-xs-8" >
91
- <input style="width: 100%" class="search_input input-font" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
92
- </div>
93
- </div>
94
- <div class="row app-row">
95
- <div class="col-xs-4">
96
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
97
- <label class="font text-left">表&nbsp;&nbsp;封&nbsp;&nbsp;号:</label>
98
- </div>
99
- <div class="col-xs-8" >
100
- <input style="width: 100%" class="search_input input-font" v-model="model.f_metertitles" placeholder="请输入表封号" condition="uf.f_metertitles='{}'">
101
- </div>
102
- </div>
103
- <div class="row app-row">
104
- <div class="col-xs-4">
105
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
106
- <label class="font text-left">电&nbsp;&nbsp;话&nbsp;&nbsp;号:</label>
107
- </div>
108
- <div class="col-xs-8" >
109
- <input style="width: 100%" class="search_input input-font" v-model="model.f_user_phone" placeholder="请输入电话号" condition="ui.f_user_phone like '%{}%'">
110
- </div>
111
- </div>
112
- <div class="row app-row">
113
- <div class="col-xs-4">
114
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
115
- <label class="font text-left">卡&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
116
- </div>
117
- <div class="col-xs-8" >
118
- <input style="width: 100%" class="search_input input-font" v-model="model.f_card_id" placeholder="请输入卡号" condition="uf.f_card_id like '%{}%'">
119
- </div>
120
- </div>
121
- <div class="row app-row">
122
- <div class="col-xs-4">
123
- <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
124
- <label class="font text-left">抄&nbsp;&nbsp;表&nbsp;&nbsp;册:</label>
125
- </div>
126
- <div class="col-xs-8" >
127
- <v-select class="input-font"
128
- placeholder='请选择抄表册'
129
- :value.sync="model.f_meter_book_num"
130
- v-model="model.f_meter_book_num"
131
- :options='$parent.$parent.cbc'
132
- condition="uf.f_meter_book_num='{}'"
133
- close-on-select clear-button></v-select>
134
- </div>
135
- </div>
136
- <!-- <div class="row app-row">
137
- <div class="col-xs-4">
138
- <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
139
- <label class="font text-left">安检情况</label>
140
- </div>
141
- <div class="col-xs-8" >
142
- <v-select class="input-font"
143
- placeholder='请选择安检情况'
144
- :value.sync="model.f_ischeck"
145
- v-model="model.f_ischeck"
146
- :options='$parent.$parent.ischecks'
147
- condition="{}"
148
- close-on-select clear-button></v-select>
149
- </div>
150
- </div>
151
- <div class="row app-row">
152
- <div class="col-xs-4">
153
- <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
154
- <label class="font text-left">档案状态:</label>
155
- </div>
156
- <div class="col-xs-8" >
157
- <v-select class="input-font"
158
- placeholder='请选择档案状态'
159
- :value.sync="$parent.$parent.model.f_user_state"
160
- :options='$parent.$parent.f_user_states'
161
- close-on-select clear-button></v-select>
162
- </div>
163
- </div>-->
164
-
165
-
166
-
167
- <div class="row text-center" style="margin-top: 20px;">
168
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
169
- </div>
170
- <div style="height:30px;"></div>
171
- </form>
172
- </div>
173
- </criteria>
174
-
175
- <list :model="model" partial='list'>
176
- <div partial>
177
- <div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
178
- <div class="panel" style="padding: 10px 10px 5px 10px;">
179
- <div class="panel-body panel-self">
180
- <div class="row">
181
- <p class="panel-title col-xs-4 text-left font">用户编号</p>
182
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
183
- </div>
184
- <div class="row">
185
- <p class="panel-title col-xs-4 text-left font">旧用户编号</p>
186
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_olduserinfo_code }}</p>
187
- </div>
188
- <div class="row">
189
- <p class="panel-title col-xs-4 text-left font">用户名称</p>
190
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
191
- </div>
192
- <div class="row">
193
- <p class="panel-title col-xs-4 text-left font">表号</p>
194
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
195
- </div>
196
- <div class="row">
197
- <p class="panel-title col-xs-4 text-left font">用户类型</p>
198
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
199
- </div>
200
- <div class="row">
201
- <p class="panel-title col-xs-4 text-left font">用户电话</p>
202
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
203
- </div>
204
-
205
- <div class="row">
206
- <p class="panel-title col-xs-4 text-left font">小区名称</p>
207
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
208
- </div>
209
- <div class="row">
210
- <p class="panel-title col-xs-4 text-left font">用户地址</p>
211
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
212
- </div>
213
- <div class="row">
214
- <p class="panel-title col-xs-4 text-left font">最后安检日期</p>
215
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
216
- </div>
217
- <div class="row">
218
- <p class="panel-title col-xs-4 text-left font">最后安检状态</p>
219
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
220
- </div>
221
- </div>
222
- </div>
223
-
224
- </div>
225
- </div>
226
- </list>
227
- </criteria-paged>
228
- <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
229
- </div>
230
- </template>
231
-
232
- <script>
233
- import {HttpResetClass, PagedList} from 'vue-client'
234
- import Vue from 'vue'
235
- import * as Util from '../../Util'
236
-
237
- export default {
238
- title: '安检员B',
239
- data () {
240
- let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, 20, { groupitem: '""', orderitem: '"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room"',f_check_type:'this.f_check_type[0]',
241
- f_user_name:'this.model.f_username',myCycle: 'this.myCycle',fyCycle: 'this.fyCycle', f_user_type:'this.f_user_type',f_sign: 'this.f_sign[0]', f_residential_area:'this.model.f_districtname', f_address:'this.model.f_address',f_user_state: 'this.f_user_state[0]',f_orgids:'this.f_orgids',f_unit:'this.model.f_unit',f_building:'this.model.f_building',f_filialeid:'this.f_filialeid'})
242
- model.f_sign = ['']
243
- model.f_user_type = ''
244
- model.f_user_state =['']
245
- model.f_check_type =['']
246
- model.myCycle = 0
247
- model.fyCycle = 0
248
- model.f_filialeid = Vue.user.orgid
249
- //model.f_filialeid = 287
250
- return {
251
- model: model,
252
- cbc:[],
253
- showModal:false,
254
- signs: [
255
- {label:'请选择录入状态', value:''},
256
- {label:'录入', value:'1'},
257
- {label:'非录入', value:'0'},
258
- ],
259
- ischecks: [
260
- ],
261
- user_types: [
262
- {label: '请选择用户类型', value: ''},
263
- {label: '民用', value: '民用'},
264
- {label: '非民用', value: '非民用'},
265
- ],
266
- f_user_states: [
267
- {label:'请选择档案状态', value:''},
268
- {label:'正常', value:'正常'},
269
- {label:'点火', value:'点火'},
270
- ],
271
- f_check_types: [
272
- {label:'请选择安检类型', value:''},
273
- {label:'应检', value:'应检'},
274
- {label:'超期', value:'超期'},
275
- ],
276
- }
277
- },
278
- ready () {
279
- // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
280
- // //tag)
281
- // if(res.data.code == 200){
282
- // this.model.myCycle = res.data.civil.value
283
- // this.model.fyCycle = res.data.civilian.value
284
- // }else{
285
- // //this.$showMessage(res.data.msg)
286
- // }
287
- //
288
- // })
289
- // this.getCheckTime()
290
- // this.Mreadibook()
291
- },
292
- computed: {
293
- reload(){
294
- this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
295
- },
296
- selected () {
297
- return this.$refs.paged.$refs.grid.selected
298
- }
299
- },
300
- methods:{
301
- scan(){
302
- HostApp.__this__=this,
303
- HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
304
- },
305
- getCode(){
306
- let datapa = HostApp.getCode().data;
307
- let indexnum = datapa.indexOf("]C1")
308
- if(indexnum != -1){
309
- datapa = datapa.substring(indexnum+3,datapa.length)
310
- }
311
- this.$refs.paged.$refs.cri.model.f_meternumber=datapa
312
- },
313
- getCheckTime(){
314
- //tag
315
- new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
316
- items: 'f_circle,f_start_time',
317
- tablename: 't_safe_circle',
318
- condition: `f_filialeid = '${Vue.user.orgid}'`,
319
- orderitem: 'id'
320
- }}).then(res=>{
321
- //tag)
322
- let nocheck=''
323
- let ischeck=''
324
- if (res.data[0]){
325
- if (res.data[0].f_circle=='1'){
326
- nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
327
- ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
328
-
329
- }else{
330
- let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
331
- //tag
332
- let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
333
- //tag
334
- nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
335
- ischeck=`ua.f_last_check_date>'${time}'`
336
- }
337
- //tag
338
- this.ischecks=[
339
- {label: '全部', value: ''},
340
- {label: '已检', value: ischeck },
341
- {label: '未检', value: nocheck},
342
- ]
343
- //tag
344
- }else{
345
- this.$showMessage("未配置安检周期")
346
- }
347
-
348
- })
349
- //tag
350
- },
351
- inspect (info){
352
- if(info.f_last_check_date){
353
- this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
354
- if(butt=="confirm"){
355
- info.id = ''
356
- info.f_state = '未检'
357
- info.f_no_checkplan = '无计划安检'
358
- //tag
359
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
360
- //tag)
361
- info['f_plan_meters'] = response.data
362
- var pardate = {
363
- _this:this,
364
- tittle:'安检详情',
365
- safe:true
366
- }
367
- this.$dispatch('gotoson',pardate)
368
- this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
369
-
370
- })
371
- }
372
- })
373
- }else{
374
- info.id = ''
375
- info.f_state = '未检'
376
- info.f_no_checkplan = '无计划安检'
377
- //tag
378
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
379
- //tag)
380
- info['f_plan_meters'] = response.data
381
- var pardate = {
382
- _this:this,
383
- tittle:'安检详情',
384
- safe:true
385
- }
386
- this.$dispatch('gotoson',pardate)
387
- this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
388
-
389
- })
390
- }
391
- },
392
- Mreadibook(){
393
- this.cbc=[]
394
- let http = new HttpResetClass()
395
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterBooksData`,
396
- {data: {f_orgid: "('"+Vue.user.orgid+"')"}},
397
- {resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
398
- this.cbc = [{label: '全部', value: ''}]
399
- //tag
400
- //tag)
401
- //tag
402
- getMeterReadingBooks.data.meterbooks.forEach((res) => {
403
- this.cbc.push({label: res.f_book_name, value: res.id})
404
- /*if(res.f_book_slice_area){
405
- if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
406
- this.sliceArea.push(res.f_book_slice_area)
407
- }
408
- }*/
409
- })
410
- })
411
-
412
-
413
- }
414
- }
415
- }
416
- </script>
417
- <style scoped>
418
- .app-row {
419
- background-color: white;
420
- padding: 10px 10px 0 10px;
421
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
422
- }
423
- .search_input {
424
- border: 0;
425
- outline: none;
426
- }
427
- .font{
428
- font: 15px PingFang-SC-Medium;
429
- color: #666666;
430
- }
431
- .input-font{
432
- font: 15px PingFang-SC-Medium;
433
- color: #333333;
434
- }
435
- .btn-font{
436
- font:600 16px PingFang-SC-Bold;
437
- color: #499EDF;
438
- }
439
- .btn-color{
440
- background-color: #FFFFFF;
441
- border-radius: 10px ;
442
- border: 1px solid #499EDF;
443
- }
444
- .app-text {
445
- font-size: 12px;
446
- }
447
- .panel-self{
448
- border-radius: 10px;
449
- border:1px solid #499EDF;
450
- background-color: #F8F8F8;
451
- }
452
- .yybtn-color{
453
- border-radius: 4px ;
454
- border: 1px solid #499EDF;
455
- }
456
- .qxbtn-color{
457
- background-color: #FFFFFF;
458
- border-radius: 4px ;
459
- border: 1px solid #499EDF;
460
- }
461
- </style>