safecheck-client 3.0.30-9 → 3.0.30-90

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.
Files changed (102) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +2 -2
  4. package/src/components/DefectDealMain/DefectListNew.vue +5 -5
  5. package/src/components/Util.js +15 -0
  6. package/src/components/android/AddPlanItem.vue +5 -2
  7. package/src/components/android/AreaPlan.vue +2 -2
  8. package/src/components/android/CurrentCreate.vue +3 -2
  9. package/src/components/android/CurrentCreate_new.vue +563 -559
  10. package/src/components/android/PaperFeedback.vue +4 -2
  11. package/src/components/android/SafecheckOrderV.vue +2 -2
  12. package/src/components/android/UploadPage.vue +13 -123
  13. package/src/components/paper/PaperList.vue +9 -2
  14. package/src/components/paper/PlanChooser.vue +8 -6
  15. package/src/components/pc/Edit.vue +126 -0
  16. package/src/components/pc/LodopFuncs.js +159 -0
  17. package/src/components/pc/NewCheckpaper.vue +9 -5
  18. package/src/components/pc/PaperEdit.vue +151 -0
  19. package/src/components/pc/PrintData.vue +243 -0
  20. package/src/components/pc/PrintTable.vue +241 -0
  21. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  22. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  23. package/src/components/rongcheng/CheckCurrentCreate.vue +8 -0
  24. package/src/components/rongcheng/PaperStatem.vue +42 -1
  25. package/src/components/rongcheng/PhoneUpUserinfo.vue +149 -199
  26. package/src/components/rongcheng/SafecheckOrderV.vue +8 -0
  27. package/src/components/rongcheng/SafecheckUserInfo.vue +419 -0
  28. package/src/components/rongcheng/report/CheckPlanAreaList.vue +21 -3
  29. package/src/filiale/ankangyihua/pc/checkUserList.vue +1 -0
  30. package/src/filiale/bayan/android/CurrentCreate.vue +1 -1
  31. package/src/filiale/bayan/android/Edit.vue +132 -0
  32. package/src/filiale/bayan/android/SafecheckOrderV.vue +2 -2
  33. package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
  34. package/src/filiale/bayan/android.js +2 -1
  35. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  36. package/src/filiale/fugou/android.js +10 -0
  37. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -0
  38. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -0
  39. package/src/filiale/fugou/pc/PaperDefectMain.vue +890 -0
  40. package/src/filiale/fugou/pc/PaperList.vue +46 -0
  41. package/src/filiale/fugou/pc/checkUserList.vue +824 -0
  42. package/src/filiale/fugou/pc.js +5 -1
  43. package/src/filiale/hanzhong/android/SafecheckDevices.vue +24 -24
  44. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2 -2
  45. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  46. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  47. package/src/filiale/hanzhong/pc.js +4 -1
  48. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  49. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  50. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -0
  51. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -0
  52. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  53. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -0
  54. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +780 -0
  55. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  56. package/src/filiale/kelai/android.js +1 -0
  57. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -0
  58. package/src/filiale/liaoyuan/android.js +1 -0
  59. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  60. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  61. package/src/filiale/qianneng/pc/PaperList.vue +6 -0
  62. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  63. package/src/filiale/tianke/pc/checkScreen.vue +4 -4
  64. package/src/filiale/tianke/pc/cq.jpg +0 -0
  65. package/src/filiale/tianke/pc/qy.jpg +0 -0
  66. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  67. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +371 -401
  68. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  69. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  70. package/src/filiale/wensu/android.js +1 -0
  71. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  72. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  73. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  74. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  75. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  76. package/src/filiale/wensu/pc.js +2 -1
  77. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  78. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  79. package/src/filiale/wuhai/pc/NewCheckpaper.vue +26 -24
  80. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  81. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  82. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  83. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  84. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  85. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  86. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  87. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  88. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  89. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  90. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  91. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  92. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  93. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +81 -27
  94. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +56 -26
  95. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  96. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  97. package/src/filiale/yongzhou/pc.js +17 -12
  98. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  99. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  100. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  101. package/src/main.js +1 -1
  102. package/src/safecheck.js +12 -0
@@ -52,13 +52,12 @@
52
52
  :field="$parent.$parent.excelHeaders"
53
53
  progress="safeGetExportProgress"
54
54
  sqlurl="rs/logic/SafeExportExcel" sql-name="communityTypeDetailG"
55
- template-name='居民隐患类型明细' :choose-col="true"></export-excel-safe>
55
+ template-name='工商隐患类型明细' :choose-col="true"></export-excel-safe>
56
56
  </div>
57
- <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
58
- :field="$parent.$parent.excelHeaders"
59
- :defaultfield="$parent.$parent.defaultPrint"
60
- titletable="居民隐患类型明细" :starthead="$parent.$parent.getstart"
61
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
+ <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"
58
+ :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"
59
+ :titletable="'工商隐患类型明细'" :starthead="$parent.$parent.getstart"
60
+ ></print-data-safe>
62
61
  <button class="button_spacing button_search" @click="search()">查询</button>
63
62
  </div>
64
63
  </div>
@@ -105,7 +104,7 @@
105
104
  <td style="text-align: center">{{ row.yhhs }}</td>
106
105
  <td style="text-align: center">{{ row.yclyh }}</td>
107
106
  <td style="text-align: center">{{ row.clzyh }}</td>
108
- <td style="text-align: center">{{ row.yhhs - row.yclyh }}</td>
107
+ <td style="text-align: center">{{ row.wcl }}</td>
109
108
  </template>
110
109
  <template partial="foot">
111
110
  <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
@@ -115,7 +114,7 @@
115
114
  <td style="text-align: center">{{ model.sums.rqjcount }}</td>
116
115
  <td style="text-align: center">{{ model.sums.yclyh }}</td>
117
116
  <td style="text-align: center">{{ model.sums.clzyh }}</td>
118
- <td style="text-align: center">{{ model.sums.yhhs - model.sums.yclyh }}</td>
117
+ <td style="text-align: center">{{ model.sums.wcl }}</td>
119
118
  </template>
120
119
  </data-grid>
121
120
  </criteria-paged>
@@ -128,7 +127,7 @@ import {PagedList} from "vue-client";
128
127
 
129
128
  export default {
130
129
  name: "communityTypeDetailG",
131
- title: "居民隐患类型明细",
130
+ title: "工商隐患类型明细",
132
131
  data() {
133
132
  return {
134
133
  model: new PagedList("/rs/sql/communityTypeDetailG", 999, {orgid: this.$login.f.orgid}, {
@@ -137,9 +136,11 @@ export default {
137
136
  clzyh: '',
138
137
  rqjcount: '',
139
138
  ljcount: '',
139
+ wcl:'',
140
140
  jgcount: ''
141
141
  }),
142
142
  resids: {},
143
+ print_model:{},
143
144
  searchData: {
144
145
  condition: "1=1",
145
146
  orgid: this.$login.f.orgid
@@ -152,20 +153,33 @@ export default {
152
153
  'yhhs': '存在隐患户数',
153
154
  'yclyh': '已处理户数',
154
155
  'clzyh': '处理中户数',
156
+ 'wcl' : '未处理户数'
155
157
  },
156
158
  printshow: false,
157
- defaultPrint:['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh'],
159
+ defaultPrint:['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh','wcl'],
158
160
  sumsmodel: {},
159
161
  }
160
162
  },
161
163
  ready() {
162
- this.model.search('1=1')
164
+ // this.model.search('1=1')
163
165
  },
164
166
  methods: {
165
- selfSearch(args) {
166
- this.model.search(args.condition, args.model, args.condValue)
167
+ async selfSearch(args) {
168
+ await this.model.search(args.condition, args.model, args.condValue)
167
169
  this.searchData.condition = args.condition
170
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
168
171
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
172
+ this.print_model.rows.push({
173
+ f_residential_area: '合计',
174
+ ljcount : this.sumsmodel.ljcount,
175
+ jgcount : this.sumsmodel.jgcount,
176
+ rqjcount : this.sumsmodel.rqjcount,
177
+ yhhs: this.sumsmodel.yhhs,
178
+ yclyh: this.sumsmodel.yclyh,
179
+ clzyh: this.sumsmodel.clzyh,
180
+ wcl: this.sumsmodel.wcl,
181
+ })
182
+ this.print_model.totalPage = 0
169
183
  },
170
184
  getRes(obj) {
171
185
  //tag
@@ -182,7 +196,7 @@ export default {
182
196
  },
183
197
  computed: {
184
198
  getstart() {
185
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
199
+ return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
186
200
  },
187
201
  }
188
202
  }
@@ -52,13 +52,12 @@
52
52
  :field="$parent.$parent.excelHeaders"
53
53
  progress="safeGetExportProgress"
54
54
  sqlurl="rs/logic/SafeExportExcel" sql-name="communityTypeDetailM"
55
- template-name='工商隐患类型明细' :choose-col="true"></export-excel-safe>
55
+ template-name='居民隐患类型明细' :choose-col="true"></export-excel-safe>
56
56
  </div>
57
- <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
58
- :field="$parent.$parent.excelHeaders"
59
- :defaultfield="$parent.$parent.defaultPrint"
60
- titletable="工商隐患类型明细" :starthead="$parent.$parent.getstart"
61
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
+ <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"
58
+ :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"
59
+ :titletable="'居民隐患类型明细'" :starthead="$parent.$parent.getstart"
60
+ ></print-data-safe>
62
61
  <button class="button_spacing button_search" @click="search()">查询</button>
63
62
  </div>
64
63
  </div>
@@ -105,7 +104,7 @@
105
104
  <td style="text-align: center">{{ row.yhhs }}</td>
106
105
  <td style="text-align: center">{{ row.yclyh }}</td>
107
106
  <td style="text-align: center">{{ row.clzyh }}</td>
108
- <td style="text-align: center">{{ row.yhhs - row.yclyh }}</td>
107
+ <td style="text-align: center">{{ row.wcl }}</td>
109
108
  </template>
110
109
  <template partial="foot">
111
110
  <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
@@ -115,7 +114,7 @@
115
114
  <td style="text-align: center">{{ model.sums.rqjcount }}</td>
116
115
  <td style="text-align: center">{{ model.sums.yclyh }}</td>
117
116
  <td style="text-align: center">{{ model.sums.clzyh }}</td>
118
- <td style="text-align: center">{{ model.sums.yhhs - model.sums.yclyh }}</td>
117
+ <td style="text-align: center">{{ model.sums.wcl }}</td>
119
118
  </template>
120
119
  </data-grid>
121
120
  </criteria-paged>
@@ -128,7 +127,7 @@ import {PagedList} from "vue-client";
128
127
 
129
128
  export default {
130
129
  name: "communityTypeDetailM",
131
- title: "工商隐患类型明细",
130
+ title: "居民隐患类型明细",
132
131
  data() {
133
132
  return {
134
133
  model: new PagedList("/rs/sql/communityTypeDetailM", 999, {orgid: this.$login.f.orgid}, {
@@ -137,9 +136,11 @@ export default {
137
136
  clzyh: '',
138
137
  rqjcount: '',
139
138
  ljcount: '',
139
+ wcl:'',
140
140
  jgcount: ''
141
141
  }),
142
142
  resids: {},
143
+ print_model:{},
143
144
  searchData: {
144
145
  condition: "1=1",
145
146
  orgid: this.$login.f.orgid
@@ -152,20 +153,33 @@ export default {
152
153
  'yhhs': '存在隐患户数',
153
154
  'yclyh': '已处理户数',
154
155
  'clzyh': '处理中户数',
156
+ 'wcl' : '未处理户数'
155
157
  },
156
158
  printshow: false,
157
- defaultPrint: ['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh'],
159
+ defaultPrint: ['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh','wcl'],
158
160
  sumsmodel: {},
159
161
  }
160
162
  },
161
163
  ready() {
162
- this.model.search('1=1')
164
+ // this.model.search('1=1')
163
165
  },
164
166
  methods: {
165
- selfSearch(args) {
166
- this.model.search(args.condition, args.model, args.condValue)
167
+ async selfSearch(args) {
168
+ await this.model.search(args.condition, args.model, args.condValue)
167
169
  this.searchData.condition = args.condition
170
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
168
171
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
172
+ this.print_model.rows.push({
173
+ f_residential_area: '合计',
174
+ ljcount : this.sumsmodel.ljcount,
175
+ jgcount : this.sumsmodel.jgcount,
176
+ rqjcount : this.sumsmodel.rqjcount,
177
+ yhhs: this.sumsmodel.yhhs,
178
+ yclyh: this.sumsmodel.yclyh,
179
+ clzyh: this.sumsmodel.clzyh,
180
+ wcl: this.sumsmodel.wcl,
181
+ })
182
+ this.print_model.totalPage = 0
169
183
  },
170
184
  getRes(obj) {
171
185
  //tag
@@ -182,7 +196,7 @@ export default {
182
196
  },
183
197
  computed: {
184
198
  getstart() {
185
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
199
+ return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
186
200
  },
187
201
  }
188
202
  }
@@ -15,7 +15,7 @@
15
15
  :show-rest-button="reset"
16
16
  :value.sync="model.start_time"
17
17
  v-model="model.start_time"
18
- condition="tcp.f_upload_date >= '{} 00:00:00'">
18
+ condition="tcp.f_create_time >= '{} 00:00:00'">
19
19
  </datepicker>
20
20
  </div>
21
21
  <div class="form-group col-sm-4">
@@ -28,13 +28,22 @@
28
28
  :show-rest-button="reset"
29
29
  :value.sync="model.end_time"
30
30
  v-model="model.end_time"
31
- condition="tcp.f_upload_date <= '{} 23:59:59'">
31
+ condition="tcp.f_create_time <= '{} 23:59:59'">
32
32
  </datepicker>
33
33
  </div>
34
34
  <div class="col-sm-4 form-group">
35
35
  <label class="font_normal_body">小区名称:</label>
36
36
  <input style="width: 60%" class="input_search" v-model="model.f_residential_area"
37
- placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
37
+ placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
38
+ </div>
39
+ <div class="form-group col-sm-4">
40
+ <label class="font_normal_body">用户类型</label>
41
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
42
+ :value-single="true" style="width: 60%"
43
+ class="select_list select"
44
+ :options='$parent.$parent.user_types' placeholder='用户类型'
45
+ close-on-select
46
+ condition="tcpi.f_user_type = '{}'"></v-select>
38
47
  </div>
39
48
  <div class="col-sm-4 form-group" style="margin: 0">
40
49
  <role-selector-safe
@@ -54,11 +63,11 @@
54
63
  sqlurl="rs/logic/SafeExportExcel" sql-name="safeDetail" template-name='安检情况明细'
55
64
  :choose-col="true"></export-excel-safe>
56
65
  </div>
57
- <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
66
+ <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
58
67
  :field="$parent.$parent.excelHeaders"
59
68
  :defaultfield="$parent.$parent.defaultPrint"
60
- titletable="安检情况明细" :starthead="$parent.$parent.getstart"
61
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
69
+ :titletable="'安检情况明细'" :starthead="$parent.$parent.getstart"
70
+ ></print-data-safe>
62
71
  <button class="button_spacing button_search" @click="search()">查询</button>
63
72
  </div>
64
73
  </div>
@@ -110,14 +119,14 @@
110
119
  <td style="text-align: center">{{ row.f_residential_area }}</td>
111
120
  <td style="text-align: center">{{ row.totalcount }}</td>
112
121
  <td style="text-align: center">{{ row.wjcount }}</td>
113
- <td style="text-align: center">{{ row.rhcount + row.dfbycount3 }}</td>
122
+ <td style="text-align: center">{{ row.yjcount }}</td>
114
123
  <td style="text-align: center">{{ row.rhcount }}</td>
115
124
  <td style="text-align: center">{{ row.dfbycount1 }}</td>
116
125
  <td style="text-align: center">{{ row.dfbycount2 }}</td>
117
126
  <td style="text-align: center">{{ row.dfbycount3 }}</td>
118
127
  <td style="text-align: center">{{ row.unique_dfby_count }}</td>
119
128
  <td style="text-align: center">{{ row.jjcount }}</td>
120
- <td style="text-align: center">{{ ((row.rhcount + row.dfbycount3) / row.totalcount).toFixed(2) }}%</td>
129
+ <td style="text-align: center">{{ row.check_bv }}</td>
121
130
  </template>
122
131
  <template partial="foot">
123
132
  <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
@@ -125,7 +134,7 @@
125
134
 
126
135
  <td style="text-align: center">{{ model.sums.wjcount }}</td>
127
136
 
128
- <td style="text-align: center">{{ model.sums.rhcount + model.sums.dfbycount3 }}</td>
137
+ <td style="text-align: center">{{ model.sums.yjcount }}</td>
129
138
 
130
139
  <td style="text-align: center">{{ model.sums.rhcount }}</td>
131
140
 
@@ -135,7 +144,7 @@
135
144
  <td style="text-align: center">{{ model.sums.unique_dfby_count }}</td>
136
145
  <td style="text-align: center">{{ model.sums.jjcount }}</td>
137
146
  <td style="text-align: center">
138
- {{ ((model.sums.rhcount + model.sums.dfbycount3) / model.sums.totalcount).toFixed(2) }}%
147
+ {{ ((model.sums.yjcount / model.sums.totalcount)*100.0).toFixed(2) }}%
139
148
  </td>
140
149
 
141
150
  </template>
@@ -157,6 +166,7 @@ export default {
157
166
  model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
158
167
  totalcount: '',
159
168
  wjcount: '',
169
+ yjcount: '',
160
170
  rhcount: '',
161
171
  dfbycount1: '',
162
172
  dfbycount2: '',
@@ -169,30 +179,48 @@ export default {
169
179
  condition: "1=1",
170
180
  orgid: this.$login.f.orgid
171
181
  },
182
+ print_model:{},
183
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
172
184
  excelHeaders: {
173
185
  'f_residential_area': '小区名称',
174
186
  'totalcount': '计划安检总户数',
175
187
  'wjcount': '未检户数',
188
+ 'yjcount': '已检户数',
176
189
  'rhcount': '入户户数',
177
190
  'dfbycount1': '到访不遇-1次',
178
191
  'dfbycount2': '到访不遇-2次',
179
192
  'dfbycount3': '到访不遇-3次',
180
193
  'unique_dfby_count': '到访不遇小计',
181
194
  'jjcount': '拒检户数',
195
+ 'check_bv':'安检率'
182
196
  },
183
197
  printshow: false,
184
- defaultPrint: ['f_residential_area', 'totalcount', 'wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount'],
198
+ defaultPrint: ['f_residential_area', 'totalcount', 'wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv'],
185
199
  sumsmodel: {},
186
200
  }
187
201
  },
188
202
  ready() {
189
- this.model.search('1=1')
203
+ // this.model.search('1=1')
190
204
  },
191
205
  methods: {
192
- selfSearch(args) {
193
- this.model.search(args.condition, args.model, args.condValue)
206
+ async selfSearch(args) {
207
+ await this.model.search(args.condition, args.model, args.condValue)
194
208
  this.searchData.condition = args.condition
195
209
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
210
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
211
+ this.print_model.rows.push({
212
+ f_residential_area:'合计',
213
+ totalcount: this.sumsmodel.totalcount,
214
+ wjcount: this.sumsmodel.wjcount,
215
+ yjcount: this.sumsmodel.yjcount,
216
+ rhcount: this.sumsmodel.rhcount,
217
+ dfbycount1: this.sumsmodel.dfbycount1,
218
+ dfbycount2: this.sumsmodel.dfbycount2,
219
+ dfbycount3: this.sumsmodel.dfbycount3,
220
+ unique_dfby_count: this.sumsmodel.unique_dfby_count,
221
+ check_bv:`${((this.sumsmodel.yjcount / this.sumsmodel.totalcount)*100.0).toFixed(2)}%`
222
+ })
223
+ this.print_model.totalPage = 0
196
224
  },
197
225
  getRes(obj) {
198
226
  //tag
@@ -209,7 +237,7 @@ export default {
209
237
  },
210
238
  computed: {
211
239
  getstart() {
212
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
240
+ return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
213
241
  },
214
242
  }
215
243
  }
@@ -38,6 +38,15 @@
38
38
  :show-reset-button="reset">
39
39
  </datepicker>
40
40
  </div>
41
+ <div class="form-group col-sm-2">
42
+ <label class="font_normal_body">用户类型</label>
43
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
44
+ :value-single="true" style="width: 60%"
45
+ class="select_list select"
46
+ :options='$parent.$parent.user_types' placeholder='用户类型'
47
+ close-on-select
48
+ condition="tcpi.f_user_type = '{}'"></v-select>
49
+ </div>
41
50
  <div class="form-group col-sm-2" >
42
51
  <label class="font_normal_body">小&emsp;&emsp;区</label>
43
52
  <input type="text" class="input_search" v-model="model.f_residential_area"
@@ -45,29 +54,29 @@
45
54
  </div>
46
55
  <div class="col-sm-4 form-group" style="margin-top: 8px">
47
56
  <button class="button_search button_spacing" @click="search()">查询</button>
48
- <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
49
- <report-excel class="button_export button_spacing" style="width:28%" id='shexian'></report-excel>
57
+ <report-print id='checkerPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
58
+ <report-excel id='checkerPrint'></report-excel>
50
59
  </div>
51
60
  </div>
52
61
  </div>
53
62
  </criteria>
54
- <div partial='list' id='shexian' class="list_area" style="overflow-y: scroll">
63
+ <div partial='list' id='checkerPrint' class="list_area" style="overflow-y: scroll">
55
64
  <table class='tableprint' style="margin: 0px auto">
56
65
  <thead>
57
66
  <tr>
58
- <th colspan='5' style="font-weight: normal; text-align: left;">
67
+ <th colspan='9' style="font-weight: normal; text-align: left;">
59
68
  <h3 style="text-align: center">安检员明细报表</h3>
60
69
  </th>
61
70
  </tr>
62
71
  <tr>
63
- <th colspan='5' style="font-weight: normal; text-align: center;">
72
+ <th colspan='9' style="font-weight: normal; text-align: center;">
64
73
  开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
65
74
  结束时间:{{ model.model.endDate }}
66
75
  </th>
67
76
  </tr>
68
77
  </thead>
69
78
  <tr>
70
- <th colspan='5' style="font-weight: normal;">
79
+ <th colspan='9' style="font-weight: normal;">
71
80
  {{{ model.data.substring(26,model.data.length-8) }}}
72
81
  </th>
73
82
  </tr>
@@ -87,6 +96,7 @@
87
96
  let model = new DataModel('rs/report/checkerReport', {})
88
97
  // model.f_filialeid = '(' + this.$login.f.orgid + ')'
89
98
  return {
99
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
90
100
  userid: this.$login.f.id,
91
101
  source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
92
102
  model: model
@@ -6,7 +6,7 @@
6
6
  <div partial>
7
7
  <div class="row">
8
8
  <div class="form-group col-sm-4">
9
- <label class="font_normal_body">开始时间:</label>
9
+ <label class="font_normal_body">时间选择:</label>
10
10
  <datepicker
11
11
  placeholder='请选择'
12
12
  style="width:60%"
@@ -16,27 +16,36 @@
16
16
  :show-rest-button="reset"
17
17
  :value.sync="model.start_time"
18
18
  v-model="model.start_time"
19
- condition="tcp.f_upload_date >= '{}-01 00:00:00'">
20
- </datepicker>
21
- </div>
22
- <div class="form-group col-sm-4">
23
- <label class="font_normal_body">结束时间:</label>
24
- <datepicker
25
- placeholder='请选择'
26
- :select-month="true"
27
- :disabled-days-of-week="[]"
28
- style="width:60%"
29
- :format="'yyyy-MM'"
30
- :show-rest-button="reset"
31
- :value.sync="model.end_time"
32
- v-model="model.end_time"
33
- condition="tcp.f_upload_date <= '{}-31 23:59:59'">
19
+ condition="tcpi.f_last_check_date >= '{}-01 00:00:00' and tcpi.f_last_check_date <= '{}-31 23:59:59'">
34
20
  </datepicker>
35
21
  </div>
22
+ <!-- <div class="form-group col-sm-4">-->
23
+ <!-- <label class="font_normal_body">结束时间:</label>-->
24
+ <!-- <datepicker-->
25
+ <!-- placeholder='请选择'-->
26
+ <!-- :select-month="true"-->
27
+ <!-- :disabled-days-of-week="[]"-->
28
+ <!-- style="width:60%"-->
29
+ <!-- :format="'yyyy-MM'"-->
30
+ <!-- :show-rest-button="reset"-->
31
+ <!-- :value.sync="model.end_time"-->
32
+ <!-- v-model="model.end_time"-->
33
+ <!-- condition="tcpi.f_last_check_date <= '{}-31 23:59:59'">-->
34
+ <!-- </datepicker>-->
35
+ <!-- </div>-->
36
36
  <div class="col-sm-4 form-group">
37
37
  <label class="font_normal_body">小区名称:</label>
38
38
  <input style="width: 60%" class="input_search" v-model="model.f_residential_area"
39
- placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
39
+ placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
40
+ </div>
41
+ <div class="form-group col-sm-4">
42
+ <label class="font_normal_body">用户类型</label>
43
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
44
+ :value-single="true" style="width: 60%"
45
+ class="select_list select"
46
+ :options='$parent.$parent.user_types' placeholder='用户类型'
47
+ close-on-select
48
+ condition="tcpi.f_user_type = '{}'"></v-select>
40
49
  </div>
41
50
  <div class="col-sm-4 form-group" style="margin: 0">
42
51
  <role-selector-safe
@@ -46,7 +55,7 @@
46
55
  @re-res="$parent.$parent.getRes"
47
56
  :value.sync="model.f_checker_id"
48
57
  v-model="model.f_checker_id"
49
- condition="tcp.f_checker_name = '{}'">
58
+ condition="tcp.f_checker = '{}'">
50
59
  </role-selector-safe>
51
60
  </div>
52
61
  <div style="float: right">
@@ -56,11 +65,11 @@
56
65
  sqlurl="rs/logic/SafeExportExcel" sql-name="safeStatisticsDay" template-name='安检报表日'
57
66
  :choose-col="true"></export-excel-safe>
58
67
  </div>
59
- <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
68
+ <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
60
69
  :field="$parent.$parent.excelHeaders"
61
70
  :defaultfield="$parent.$parent.defaultPrint"
62
- titletable="安检报表日" :starthead="$parent.$parent.getstart"
63
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
71
+ :titletable="'安检日报表'" :starthead="$parent.$parent.getstart"
72
+ ></print-data-safe>
64
73
  <button class="button_spacing button_search" @click="search()">查询</button>
65
74
  </div>
66
75
  </div>
@@ -297,6 +306,7 @@ export default {
297
306
  condition: "1=1",
298
307
  orgid: this.$login.f.orgid
299
308
  },
309
+ print_model:{},
300
310
  excelHeaders: {
301
311
  'f_residential_area': '小区名称',
302
312
  'day1': '1日',
@@ -329,8 +339,10 @@ export default {
329
339
  'day28': '28日',
330
340
  'day29': '29日',
331
341
  'day30': '30日',
332
- 'day31': '31日'
342
+ 'day31': '31日',
343
+ 'countarea':'小计'
333
344
  },
345
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
334
346
  printshow: false,
335
347
  defaultPrint: ['f_residential_area', 'day1',
336
348
  'day2',
@@ -362,18 +374,60 @@ export default {
362
374
  'day28',
363
375
  'day29',
364
376
  'day30',
365
- 'day31'],
377
+ 'day31','countarea'],
366
378
  sumsmodel: {},
367
379
  }
368
380
  },
369
381
  ready() {
370
- this.model.search('1=1')
382
+ let a = new Date()
383
+ let year = a.getFullYear()
384
+ let month = '0'+(a.getMonth()+1)
385
+ this.$refs.paged.$refs.criteria.model.start_time = year + '-'+ (month.substring(month.length-2))
386
+ this.$refs.paged.$refs.criteria.model.end_time = year + '-'+ (month.substring(month.length-2))
371
387
  },
372
388
  methods: {
373
- selfSearch(args) {
374
- this.model.search(args.condition, args.model, args.condValue)
389
+ async selfSearch(args) {
390
+ await this.model.search(args.condition, args.model, args.condValue)
375
391
  this.searchData.condition = args.condition
376
392
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
393
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
394
+ this.print_model.rows.push({
395
+ 'f_residential_area': '合计',
396
+ 'day1': this.sumsmodel.day1,
397
+ 'day2': this.sumsmodel.day2,
398
+ 'day3': this.sumsmodel.day3,
399
+ 'day4': this.sumsmodel.day4,
400
+ 'day5': this.sumsmodel.day5,
401
+ 'day6': this.sumsmodel.day6,
402
+ 'day7': this.sumsmodel.day7,
403
+ 'day8': this.sumsmodel.day8,
404
+ 'day9': this.sumsmodel.day9,
405
+ 'day10': this.sumsmodel.day10,
406
+ 'day11': this.sumsmodel.day11,
407
+ 'day12': this.sumsmodel.day12,
408
+ 'day13': this.sumsmodel.day13,
409
+ 'day14': this.sumsmodel.day14,
410
+ 'day15': this.sumsmodel.day15,
411
+ 'day16': this.sumsmodel.day16,
412
+ 'day17': this.sumsmodel.day17,
413
+ 'day18': this.sumsmodel.day18,
414
+ 'day19': this.sumsmodel.day19,
415
+ 'day20': this.sumsmodel.day20,
416
+ 'day21': this.sumsmodel.day21,
417
+ 'day22': this.sumsmodel.day22,
418
+ 'day23': this.sumsmodel.day23,
419
+ 'day24': this.sumsmodel.day24,
420
+ 'day25': this.sumsmodel.day25,
421
+ 'day26': this.sumsmodel.day26,
422
+ 'day27': this.sumsmodel.day27,
423
+ 'day28': this.sumsmodel.day28,
424
+ 'day29': this.sumsmodel.day29,
425
+ 'day30': this.sumsmodel.day30,
426
+ 'day31': this.sumsmodel.day31,
427
+ 'countarea':this.sumsmodel.countarea
428
+
429
+ })
430
+ this.print_model.totalPage = 0
377
431
  },
378
432
  getRes(obj) {
379
433
  //tag
@@ -390,7 +444,7 @@ export default {
390
444
  },
391
445
  computed: {
392
446
  getstart() {
393
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
447
+ return `时间:${this.$refs.paged.$refs.criteria.model.start_time ? this.$refs.paged.$refs.criteria.model.start_time : ''}`
394
448
  },
395
449
  }
396
450
  }