safecheck-client 4.0.2-6 → 4.0.2-62

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 (69) hide show
  1. package/package.json +1 -1
  2. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  3. package/src/components/android/AndroidNotifiedDeal.vue +417 -0
  4. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  5. package/src/components/android/SafeRightTree.vue +218 -218
  6. package/src/components/android/SafecheckDevices.vue +1340 -1340
  7. package/src/components/android/week/CheckResultSimple.vue +251 -0
  8. package/src/components/android/week/FirstWeekCheck.vue +275 -0
  9. package/src/components/android/week/StepHeaderBar.vue +457 -0
  10. package/src/components/android/week/WeekCheck.vue +209 -0
  11. package/src/components/android/week/WeekCheckPaper.vue +219 -0
  12. package/src/components/android/week/WeekCheckPlan.vue +145 -0
  13. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  14. package/src/components/paper/safetyledger.vue +198 -0
  15. package/src/components/pc/CheckBook.vue +303 -303
  16. package/src/components/pc/CheckBookArea.vue +146 -146
  17. package/src/components/pc/CheckBookCompany.vue +144 -144
  18. package/src/components/pc/CheckBookDetails.vue +161 -161
  19. package/src/components/pc/CheckBookEntry.vue +60 -60
  20. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  21. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  22. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  23. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  24. package/src/components/pc/DefectDeal.vue +6 -2
  25. package/src/components/planmanage/checkUserList.vue +1 -1
  26. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  27. package/src/components/report/CheckPlanAreaList.vue +53 -7
  28. package/src/filiale/jinhong/android/AddPlanItem.vue +481 -0
  29. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +722 -0
  30. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +521 -0
  31. package/src/filiale/jinhong/android/CurrentCreate.vue +1355 -1313
  32. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  33. package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
  34. package/src/filiale/jinhong/android.js +15 -11
  35. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  36. package/src/filiale/jinhong/pc/CheckSearchUser.vue +42 -2
  37. package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
  38. package/src/filiale/jinhong/pc/PaperList.vue +5 -1
  39. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  40. package/src/filiale/jinhong/pc/checkUserList.vue +806 -770
  41. package/src/filiale/jinhong/pc.js +1 -0
  42. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  43. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  44. package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
  45. package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
  46. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  47. package/src/filiale/meihekou/android/SafecheckOrderV.vue +27 -28
  48. package/src/filiale/meihekou/android.js +22 -22
  49. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
  50. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  51. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
  52. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -1
  53. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
  54. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
  55. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  56. package/src/filiale/meihekou/pc.js +18 -15
  57. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  58. package/src/filiale/taiyuan/android/AddPlanItem.vue +1 -0
  59. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  60. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +17 -17
  61. package/src/filiale/taiyuan/android.js +1 -0
  62. package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
  63. package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
  64. package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
  65. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  66. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  67. package/src/filiale/xinliansihui/pc.js +13 -0
  68. package/src/safecheck-android.js +12 -0
  69. package/src/safecheck.js +3 -0
@@ -0,0 +1,505 @@
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged :pager="false">
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
8
+ <label class="font_normal_body">组织机构</label>
9
+ <res-select restype='organization'
10
+ class="select select_list"
11
+ style="width: 60%"
12
+ @res-select="$parent.$parent.getorg"
13
+ :initresid='$parent.$parent.curorgid'>
14
+ </res-select>
15
+ </div>-->
16
+ <div :class="{'col-sm-6':$parent.$parent.$parent.isdetail,'col-sm-4':!$parent.$parent.$parent.isdetail}">
17
+ <role-selector-safe
18
+ role-name="安检员"
19
+ role-lable="安&ensp;检&ensp;员"
20
+ @re-res="$parent.$parent.getorg"
21
+ :value.sync="model.f_checker_id"
22
+ v-model="model.f_checker_id"
23
+ condition="f_checker_name like '%{}%'">
24
+ </role-selector-safe>
25
+ </div>
26
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
27
+ <label class="font_normal_body">小区名称</label>
28
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area" placeholder='小区名称'
29
+ condition="f_residential_area like '%{}%'" v-next-el="cx" v-el:qjmc>
30
+ </div>
31
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
32
+ <label class="font_normal_body">计划名称</label>
33
+ <v-select class="select_list select"
34
+ placeholder='计划名称' style="width: 60%"
35
+ :search="true"
36
+ v-model="model.f_plan_name"
37
+ :value.sync="model.f_plan_name"
38
+ :options='$parent.$parent.planName'
39
+ condition="f_plan_id = '{}'"
40
+ :value-single="true"
41
+ close-on-select clear-button></v-select>
42
+
43
+ </div>
44
+ <!--<div :class="{
45
+ 'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
46
+ <label class="font_normal_body">安&ensp;检&ensp;员</label>
47
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_building" placeholder='楼栋'
48
+ condition="f_building like '%{}%'" v-next-el="cx" v-el:qjmc>
49
+ </div>-->
50
+ <div class="form-group col-sm-2" v-if="!$parent.$parent.$parent.isdetail"></div>
51
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" style="float:right; padding-right: 25px">
52
+ <div class="span" style="float:right;">
53
+ <div style="float: right;margin-left:10px" class="button_spacing"
54
+ :class="{'button_shrink_left':!$parent.$parent.$parent.isdetail,'button_shrink_right':$parent.$parent.$parent.isdetail}"
55
+ @click="$parent.$parent.hiddenr()"></div>
56
+ <div class="button_spacing" style="float: right;margin-left:10px"
57
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
58
+ @click="$parent.$parent.hidden()">
59
+ </div>
60
+ <!-- <export-excel :data="$parent.$parent.exportParameter"
61
+ :field="$parent.$parent.exportExcelField"
62
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="getCheckPlanAreaList"
63
+ template-name='安检汇总' :choose-col="true">
64
+ </export-excel>-->
65
+ <button id="btnaaaa" style="float: right" class="button_search"
66
+ @click="$parent.$parent.exportexcel()"
67
+ v-el:cx>导出</button>
68
+ <button id="btnaaa" style="float: right" class="button_search"
69
+ @click="$parent.$parent.getGroupName1(),search(),$parent.$parent.getexportExcelField(),$parent.$parent.$parent.isdetail=false,$parent.$parent.listflag=false"
70
+ v-el:cx>查询</button>
71
+ </div>
72
+ </div>
73
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" v-if="$parent.$parent.criteriaShow">
74
+ <label class="font_normal_body">起始时间</label>
75
+ <datepicker
76
+ :value.sync="$parent.$parent.f_check_start"
77
+ placeholder='起始时间' style="width:60%"
78
+ :disabled-days-of-week="[]"
79
+ :format="'yyyy-MM'"
80
+ :select-month="true"
81
+ :show-rest-button="reset">
82
+ </datepicker>
83
+ </div>
84
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" v-if="$parent.$parent.criteriaShow">
85
+ <label class="font_normal_body">结束时间</label>
86
+ <datepicker
87
+ :value.sync="$parent.$parent.f_check_end"
88
+ placeholder='结束时间' style="width:60%"
89
+ :disabled-days-of-week="[]"
90
+ :format="'yyyy-MM'"
91
+ :select-month="true"
92
+ :show-rest-button="reset">
93
+ </datepicker>
94
+ </div>
95
+ </div>
96
+ <div class="row">
97
+ <div class="col-sm-12">
98
+ <label class="control-label" style="color: #c7254e">汇 总 项</label>
99
+ <input type="checkbox" id="f_plan_month" value="f_plan_month" v-model="$parent.$parent.nameForSql"/>
100
+ <label for="f_plan_month">计划月份</label>
101
+ <input type="checkbox" id="f_no_checkplan" value="f_no_checkplan" v-model="$parent.$parent.nameForSql"/>
102
+ <label for="f_no_checkplan">计划类型</label>
103
+ <input type="checkbox" id="f_residential_area" value="f_residential_area" v-model="$parent.$parent.nameForSql"/>
104
+ <label for="f_residential_area">小区名称</label>
105
+ <input type="checkbox" id="f_plan_name" value="f_plan_name" v-model="$parent.$parent.nameForSql"/>
106
+ <label for="f_plan_name">计划名称</label>
107
+ <input type="checkbox" id="f_building" value="f_building" v-model="$parent.$parent.nameForSql"/>
108
+ <label for="f_building">楼栋</label>
109
+ <input type="checkbox" id="f_user_number" value="f_user_number" v-model="$parent.$parent.nameForSql"/>
110
+ <label for="f_building">档案数量</label>
111
+ </div>
112
+ </div>
113
+ </div>
114
+
115
+ </criteria>
116
+ <data-grid id="excelid" :model="model" partial='list' class="list_area table_sy excelid" v-ref:grid>
117
+ <template partial='head'>
118
+ <tr>
119
+ <th>
120
+ <nobr>序号</nobr>
121
+ </th>
122
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')"><nobr>计划月份</nobr></th>
123
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')"><nobr>计划类型</nobr></th>
124
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')"><nobr>小区名称</nobr></th>
125
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')"><nobr>计划名称</nobr></th>
126
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_building')"><nobr>楼栋</nobr></th>
127
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')"><nobr>档案数量</nobr></th>
128
+ <th>
129
+ <nobr>计划总数</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>未检</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>已检</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>入户</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>到访不遇</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>拒检</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>安检率</nobr>
148
+ </th>
149
+ <!--<th>-->
150
+ <!--<nobr>查看</nobr>-->
151
+ <!--</th>-->
152
+ </tr>
153
+ </template>
154
+ <template partial='body'>
155
+ <tr>
156
+ <td style="text-align:center;border-right: 1px solid ">{{$index + 1}}</td>
157
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')">{{row.f_plan_month.indexOf('*&')!=-1?'':row.f_plan_month}}</td>-->
158
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')">{{row.f_no_checkplan.indexOf('*&')!=-1?'':row.f_no_checkplan}}</td>-->
159
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')">{{row.f_residential_area.indexOf('*&')!=-1?'':row.f_residential_area}}</td>-->
160
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')">{{row.f_plan_name.indexOf('*&')!=-1?'':row.f_plan_name}}</td>-->
161
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql && $parent.$parent.$parent.nameForSql.includes('f_building')">{{row.f_building && row.f_building.indexOf('*&')!=-1?'':row.f_building}}</td>-->
162
+ <td style="text-align:center" :class="{'td-0':row.f_plan_month==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_plan_month.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_plan_month.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_plan_month.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_plan_month.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')">{{row.f_plan_month.indexOf('*&')!=-1?'':row.f_plan_month}}</td>
163
+ <td style="text-align:center" :class="{'td-0':row.f_no_checkplan==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_no_checkplan.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_no_checkplan.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_no_checkplan.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_no_checkplan.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')">{{row.f_no_checkplan.indexOf('*&')!=-1?'':row.f_no_checkplan}}</td>
164
+ <td style="text-align:center" :class="{'td-0':row.f_residential_area==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_residential_area.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_residential_area.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_residential_area.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_residential_area.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')">{{row.f_residential_area.indexOf('*&')!=-1?'':row.f_residential_area}}</td>
165
+ <td style="text-align:center" :class="{'td-0':row.f_plan_name==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')">{{row.f_plan_name.indexOf('*&')!=-1?'':row.f_plan_name}}</td>
166
+ <td style="text-align:center" :class="{'td-0':row && !row.f_building,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_building && row.f_building.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_building &&row.f_building.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_building &&row.f_building.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_building &&row.f_building.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql && $parent.$parent.$parent.nameForSql.includes('f_building')">{{row.f_building && row.f_building.indexOf('*&')!=-1?'':row.f_building}}</td>
167
+ <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')">{{row.f_user_number}}</td>
168
+ <td style="text-align:center">{{row.f_plan_total}}</td>
169
+ <td style="text-align:center">{{row.f_weijian}}</td>
170
+ <td style="text-align:center"><nobr>{{row.f_yijian}}</nobr></td>
171
+ <td style="text-align:center"><nobr>{{row.f_ruhu}}</nobr></td>
172
+ <td style="text-align:center">{{row.f_buyu}}</td>
173
+ <td style="text-align:center"><nobr>{{row.f_jujian}}</nobr></td>
174
+ <td style="text-align:center"><nobr>{{row.f_check_bv}}</nobr></td>
175
+ </tr>
176
+ </template>
177
+ <template partial="foot">
178
+ <tr>
179
+ <td style="text-align:center"><strong>合计:</strong></td>
180
+ <td style="text-align:center" :colspan="$parent.$parent.$parent.nameForSql.length"></td>
181
+ <td style="text-align:center"><strong>{{model.sums.f_plan_total}}</strong></td>
182
+ <td style="text-align:center"><strong>{{model.sums.f_weijian}}</strong></td>
183
+ <td style="text-align:center"><nobr><strong>{{model.sums.f_yijian}}</strong></nobr></td>
184
+ <td style="text-align:center"><nobr><strong>{{model.sums.f_ruhu}}</strong></nobr></td>
185
+ <td style="text-align:center"><nobr><strong>{{model.sums.f_buyu}}</strong></nobr></td>
186
+ <td style="text-align:center"><nobr><strong>{{model.sums.f_jujian}}</strong></nobr></td>
187
+ <td style="text-align:center"><strong>{{model.sums.f_plan_total>0?(model.sums.f_yijian/model.sums.f_plan_total*100).toFixed(2)+'%':0}}</strong></td>
188
+ </tr >
189
+ </template>
190
+ </data-grid>
191
+ </criteria-paged>
192
+ </div>
193
+ </template>
194
+
195
+ <script>
196
+ /**
197
+ *阶梯气价查询列表
198
+ */
199
+ import {PagedList} from 'vue-client'
200
+ import { HttpResetClass } from 'vue-client'
201
+ import XLSX from 'xlsx'
202
+ export default {
203
+ data () {
204
+ return {
205
+ model: new PagedList('api/af-safecheck/sql/getCheckPlanAreaList', 99999,{},{f_plan_total:'',f_weijian:'',f_yijian:'',f_ruhu:'',f_buyu:'',f_jujian:''}),
206
+ // 公司下拉
207
+ curorgid: [this.$login.f.orgid],
208
+ row: {},
209
+ f_orgid: '',
210
+ nameForSql: [],
211
+ groupNameForSql: '',
212
+ listflag:false,
213
+ nameflag:false,
214
+ criteriaShow: false,
215
+ f_check_start:new Date().getFullYear() + '-01',
216
+ f_check_end:new Date().getFullYear() + '-12',
217
+ planName:[{label: '全部', value: ''}],
218
+ exportExcelField: {
219
+ 'f_weijian':'未检',
220
+ 'f_yijian':'已检',
221
+ 'f_ruhu':'入户',
222
+ 'f_buyu':'到访不遇',
223
+ 'f_jujian':'拒检',
224
+ 'f_check_bv':'安检率'
225
+ }
226
+ }
227
+ },
228
+ props: {
229
+ row: {},
230
+ config: {},
231
+ ispartial: false,
232
+ f_filialeid: {
233
+ type: String
234
+ }
235
+ },
236
+ ready () {
237
+ this.nameForSql = ['f_plan_month', 'f_plan_name']
238
+ this.groupNameForSql = 'f_plan_month', 'f_plan_name'
239
+ debugger
240
+ this.pl()
241
+ // this.search()
242
+
243
+ },
244
+ methods: {
245
+ exportexcel(){
246
+ //tag
247
+ // 以上四行也可以直接一行搞定,如果不需要对表格数据进行修改的话
248
+ const aa = document.getElementsByClassName("list_area table_sy excelid")[0]
249
+ console.log(aa)
250
+ let workbook = XLSX.utils.table_to_book(document.getElementsByClassName("list_area table_sy excelid")[0])
251
+ try {
252
+ XLSX.writeFile(workbook, '安检情况汇总导出.xlsx');
253
+ } catch(e) {
254
+ //tag;
255
+ }
256
+ },
257
+ // 获取导出列
258
+ getexportExcelField(){
259
+ this.exportExcelField = {
260
+ 'f_weijian':'未检',
261
+ 'f_yijian':'已检',
262
+ 'f_ruhu':'入户',
263
+ 'f_buyu':'到访不遇',
264
+ 'f_jujian':'拒检',
265
+ 'f_check_bv':'安检率',
266
+ 'f_plan_total':'计划总数'
267
+ }
268
+ let forName = this.groupNameForSql.split(",")
269
+ for (let i = 0; i < forName.length; i++) {
270
+ let ff = forName[i]
271
+ if (ff==='f_plan_month') {
272
+ this.exportExcelField.f_plan_month='计划月份'
273
+ }
274
+ if (ff==='f_no_checkplan') {
275
+ this.exportExcelField.f_no_checkplan='计划类型'
276
+ }
277
+ if (ff==='f_plan_name') {
278
+ this.exportExcelField.f_plan_name='计划名称'
279
+ }
280
+ if (ff==='f_building') {
281
+ this.exportExcelField.f_building='楼栋'
282
+ }if (ff==='f_residential_area') {
283
+ this.exportExcelField.f_residential_area='小区名称'
284
+ }if (ff==='f_user_number') {
285
+ this.exportExcelField.f_user_number='档案数量'
286
+ }
287
+ }
288
+ },
289
+ pl() {
290
+ let getGasman = new HttpResetClass()
291
+ getGasman.load('POST', `api/af-safecheck/sql/safe_singleTable_OrderBy`, {
292
+ data: {
293
+ items: "id,f_plan_name",
294
+ tablename: "t_check_plan",
295
+ condition: `f_filialeid = '${this.curorgid}'`,
296
+ orderitem: "id"
297
+ }
298
+ }, {resolveMsg: null, rejectMsg: null}).then((plne) => {
299
+ //tag
300
+ //tag
301
+ //tag
302
+ for (let i = 0; i < plne.data.length; i++) {
303
+ this.planName.push({label: plne.data[i].f_plan_name, value: plne.data[i].id})
304
+ }
305
+ //tag
306
+ })
307
+ },
308
+ hiddenr() {
309
+ this.$parent.isdetail = !this.$parent.isdetail
310
+ },
311
+ hidden() {
312
+ this.criteriaShow = !this.criteriaShow
313
+ },
314
+ search () {
315
+ this.$refs.paged.$refs.cri.search()
316
+ this.$dispatch('search')
317
+ },
318
+ getorg (val) {
319
+ this.f_orgid = this.$login.convertToIn(val.resids)
320
+ this.f_filialeid = val[0]
321
+
322
+ },
323
+ selfSearch (args) {
324
+ if (!this.f_orgid) {
325
+ this.getorg([this.$login.f.orgid])
326
+ args.condition = `f_filialeid in ('${this.$login.f.orgid}') and ${args.condition}`
327
+ }
328
+ if (this.f_orgid) {
329
+ args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
330
+ }
331
+ if(this.f_check_start && this.f_check_end){
332
+ if(new Date(this.f_check_start).getFullYear() == new Date(this.f_check_end).getFullYear() ){
333
+ args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1} and f_month<=${new Date(this.f_check_end).getMonth()+1}`
334
+ }else {
335
+ args.condition += ` and (
336
+ (f_year = ${new Date(this.f_check_start).getFullYear()} and f_month >= ${new Date(this.f_check_start).getMonth()+1})
337
+ or
338
+ ( f_year > ${new Date(this.f_check_start).getFullYear()} and f_year < ${new Date(this.f_check_end).getFullYear()})
339
+ or
340
+ (f_year = ${new Date(this.f_check_end).getFullYear()} and f_month <= ${new Date(this.f_check_end).getMonth()+1}))`
341
+ }
342
+ } else {
343
+ if(this.f_check_start){
344
+ args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1}`
345
+ }
346
+ if(this.f_check_end){
347
+ args.condition += ` and f_year<=${new Date(this.f_check_end).getFullYear()} and f_month<=${new Date(this.f_check_end).getMonth()+1}`
348
+ }
349
+ }
350
+ this.$refs.paged.$refs.grid.$el.scrollTop = 0
351
+ if (this.groupNameForSql=='undefined'){
352
+ //tag
353
+ this.$showMessage("请至少选择一项进行汇总")
354
+ return
355
+ }
356
+ this.model.paramSource = {groupName: `'${this.groupNameForSql}'`}
357
+ this.model.search(args.condition, args.model)
358
+ },
359
+
360
+ // 拼接groupName1
361
+ getGroupName1 () {
362
+ var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_building','f_user_number']
363
+ var newtemp=[]
364
+
365
+ for (var i=0;i<temp.length;i++){
366
+ for (var j=0;j<this.nameForSql.length;j++){
367
+ //tag
368
+ if(temp[i]==this.nameForSql[j]){
369
+ newtemp.push(this.nameForSql[j])
370
+ }
371
+ }
372
+ }
373
+ let str = ''
374
+
375
+ for (var i=0;i < newtemp.length - 1; i++) {
376
+ str += newtemp[i] + ','
377
+ }
378
+ str += newtemp[i]
379
+ this.groupNameForSql = str.trim()
380
+ }
381
+ },
382
+ watch: {
383
+ // 'nameForSql' () {
384
+ //
385
+ // this.getGroupName1()
386
+ // },
387
+ 'nameForSql' () {
388
+ var e = document.createEvent("MouseEvents");
389
+ e.initEvent("click", true, true);
390
+ document.getElementById("btnaaa").dispatchEvent(e);
391
+ },
392
+ 'model.rows'(){
393
+ //tag
394
+ if(this.listflag){
395
+ return;
396
+ }
397
+ this.listflag=true
398
+ //tag
399
+ var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_building','f_user_number']
400
+ var newtemp=[]
401
+ for (var i=0;i<temp.length;i++){
402
+ for (var j=0;j<this.nameForSql.length;j++){
403
+ //tag
404
+ if(temp[i]==this.nameForSql[j]){
405
+ newtemp.push(this.nameForSql[j])
406
+ }
407
+ }
408
+ }
409
+ if((newtemp.includes('f_user_number')&&newtemp.length==2)||(!newtemp.includes('f_user_number')&&newtemp.length==1)){
410
+ return
411
+ }
412
+ var temp=JSON.parse(JSON.stringify(this.model.rows))
413
+
414
+ //遍历查询结果 为指定列增加样式
415
+ for (var i=0;i<newtemp.length-1;i++){
416
+ if(newtemp[i]=='f_user_number'){
417
+ return;
418
+ }
419
+ //tag
420
+ var ss=''
421
+ for (var j=0;j<temp.length;j++){
422
+ if(j>0&&i>0){
423
+ var flag=false
424
+ for(var t=i-1;t>-1;t--){
425
+ //tag
426
+ //tag
427
+ //tag
428
+ //tag
429
+ if(temp[j-1][newtemp[t]]!=temp[j][newtemp[t]]&&(temp[j][newtemp[t]] !=null && temp[j][newtemp[t]].indexOf('*&') )==-1){
430
+ flag=true
431
+ break
432
+ }
433
+ }
434
+ //tag
435
+ if(flag){
436
+ ss=temp[j][newtemp[i]]
437
+ continue
438
+ }
439
+ }
440
+ if(temp[j][newtemp[i]]==ss){
441
+ temp[j][newtemp[i]]=temp[j][newtemp[i]]+'*&'
442
+ }else {
443
+ ss=temp[j][newtemp[i]]
444
+ }
445
+ }
446
+ }
447
+ //tag
448
+ this.model.rows=JSON.parse(JSON.stringify(temp))
449
+ },
450
+ 'model.rows.length'() {
451
+ // 如果查询无结果,将合计置为0
452
+ if(this.model.rows.length < 1){
453
+ this.model.sums.f_plan_total = 0
454
+ this.model.sums.f_weijian = 0
455
+ this.model.sums.f_yijian = 0
456
+ this.model.sums.f_ruhu = 0
457
+ this.model.sums.f_buyu = 0
458
+ this.model.sums.f_jujian = 0
459
+ }
460
+ }
461
+ },
462
+ computed:{
463
+ exportParameter(){
464
+ // excel 导出条件拼接
465
+ return {
466
+ condition: this.$refs.paged.model.condition,
467
+ groupName: this.groupNameForSql
468
+ }
469
+ }
470
+ }
471
+ }
472
+ </script>
473
+
474
+ <style scoped>
475
+
476
+ .td-0{
477
+ border: 1px solid #000000;
478
+ }
479
+
480
+ .td-1{
481
+ border: none;
482
+ border-top: 1px solid #000000;
483
+ border-left: 1px solid #000000;
484
+ border-right: 1px solid #000000;
485
+ }
486
+
487
+ .td-2{
488
+ border: none;
489
+ border-left: 1px solid #000000;
490
+ border-right: 1px solid #000000;
491
+ }
492
+ .td-4{
493
+ border: none;
494
+ border-top: 1px solid #000000;
495
+ border-left: 1px solid #000000;
496
+ border-right: 1px solid #000000;
497
+ border-bottom: 1px solid #000000;
498
+ }
499
+ .td-3{
500
+ border: none;
501
+ border-left: 1px solid #000000;
502
+ border-right: 1px solid #000000;
503
+ border-bottom: 1px solid #000000;
504
+ }
505
+ </style>
@@ -1184,6 +1184,7 @@ export default {
1184
1184
  operator: "success",
1185
1185
  audit_time: Util.getNowDate(),
1186
1186
  user_name: this.$login.f.name,
1187
+ ename: this.$login.f.ename,
1187
1188
  id: this.item.id,
1188
1189
  f_check_item_id: this.item.f_check_item_id
1189
1190
  }
@@ -1201,7 +1202,6 @@ export default {
1201
1202
  this.showModel = true;
1202
1203
  },
1203
1204
  auditFailOK() {
1204
-
1205
1205
  this.loading = true;
1206
1206
  var reqdata = {
1207
1207
  message: this.message,
@@ -1209,6 +1209,7 @@ export default {
1209
1209
  operator: "fail",
1210
1210
  audit_time: Util.getNowDate(),
1211
1211
  user_name: this.$login.f.name,
1212
+ ename: this.$login.f.ename,
1212
1213
  id: this.item.id,
1213
1214
  f_check_item_id: this.item.f_check_item_id
1214
1215
  }