safecheck-client 4.0.0-65 → 4.0.0-67
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 +132 -132
- package/src/components/NewDefectList/DefectListNew.vue +11 -11
- package/src/components/NewDefectList/DefectPaperNew.vue +44 -44
- package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +280 -280
- package/src/components/paper/PaperList.vue +342 -342
- package/src/components/planmanage/PlanManage.vue +819 -819
- package/src/components/planmanage/checkUserList.vue +346 -346
- package/src/components/querycheckpaper/CheckSearchUser.vue +68 -68
- package/src/components/report/CheckPlanAreaList.vue +266 -266
- package/src/filiale/jinhong/android/CurrentCreate.vue +1192 -0
- package/src/filiale/jinhong/android.js +2 -1
- package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +511 -0
- package/src/filiale/jinhong/pc/CheckSearchUser.vue +1094 -0
- package/src/filiale/jinhong/pc/DefectListNew.vue +663 -0
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +1100 -0
- package/src/filiale/jinhong/pc/PaperList.vue +823 -0
- package/src/filiale/jinhong/pc/PlanManage.vue +891 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +776 -0
- package/src/filiale/jinhong/pc.js +11 -0
- package/src/filiale/meihekou/android/PhoneInsurancePurchaseDetail.vue +293 -293
- package/src/filiale/meihekou/android.js +20 -20
- package/src/main.js +1 -1
@@ -57,11 +57,11 @@
|
|
57
57
|
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
58
58
|
@click="$parent.$parent.hidden()">
|
59
59
|
</div>
|
60
|
-
<!-- <export-excel :data="$parent.$parent.exportParameter"
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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
65
|
<button id="btnaaaa" style="float: right" class="button_search"
|
66
66
|
@click="$parent.$parent.exportexcel()"
|
67
67
|
v-el:cx>导出</button>
|
@@ -154,11 +154,11 @@
|
|
154
154
|
<template partial='body'>
|
155
155
|
<tr>
|
156
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_checker_name')">{{row.f_checker_name && row.f_checker_name.indexOf('*&')!=-1?'':row.f_checker_name}}</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_checker_name')">{{row.f_checker_name && row.f_checker_name.indexOf('*&')!=-1?'':row.f_checker_name}}</td>-->
|
162
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
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
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>
|
@@ -193,260 +193,260 @@
|
|
193
193
|
</template>
|
194
194
|
|
195
195
|
<script>
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
row: {},
|
210
|
-
f_orgid: '',
|
211
|
-
nameForSql: [],
|
212
|
-
groupNameForSql: '',
|
213
|
-
listflag:false,
|
214
|
-
nameflag:false,
|
215
|
-
criteriaShow: false,
|
216
|
-
f_check_start:new Date().getFullYear() + '-01',
|
217
|
-
f_check_end:new Date().getFullYear() + '-12',
|
218
|
-
planName:[{label: '全部', value: ''}],
|
219
|
-
exportExcelField: {
|
220
|
-
'f_weijian':'未检',
|
221
|
-
'f_yijian':'已检',
|
222
|
-
'f_ruhu':'入户',
|
223
|
-
'f_buyu':'到访不遇',
|
224
|
-
'f_jujian':'拒检',
|
225
|
-
'f_check_bv':'安检率'
|
226
|
-
}
|
227
|
-
}
|
228
|
-
},
|
229
|
-
props: {
|
196
|
+
/**
|
197
|
+
*阶梯气价查询列表
|
198
|
+
*/
|
199
|
+
import {PagedList} from 'vue-client'
|
200
|
+
import { HttpResetClass } from 'vue-client'
|
201
|
+
import * as Util from "../Util";
|
202
|
+
import XLSX from 'xlsx'
|
203
|
+
export default {
|
204
|
+
data () {
|
205
|
+
return {
|
206
|
+
model: new PagedList('api/af-safecheck/sql/getCheckPlanAreaList', 99999,{},{f_plan_total:'',f_weijian:'',f_yijian:'',f_ruhu:'',f_buyu:'',f_jujian:''}),
|
207
|
+
// 公司下拉
|
208
|
+
curorgid: [this.$login.f.orgid],
|
230
209
|
row: {},
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
210
|
+
f_orgid: '',
|
211
|
+
nameForSql: [],
|
212
|
+
groupNameForSql: '',
|
213
|
+
listflag:false,
|
214
|
+
nameflag:false,
|
215
|
+
criteriaShow: false,
|
216
|
+
f_check_start:new Date().getFullYear() + '-01',
|
217
|
+
f_check_end:new Date().getFullYear() + '-12',
|
218
|
+
planName:[{label: '全部', value: ''}],
|
219
|
+
exportExcelField: {
|
220
|
+
'f_weijian':'未检',
|
221
|
+
'f_yijian':'已检',
|
222
|
+
'f_ruhu':'入户',
|
223
|
+
'f_buyu':'到访不遇',
|
224
|
+
'f_jujian':'拒检',
|
225
|
+
'f_check_bv':'安检率'
|
235
226
|
}
|
236
|
-
}
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
227
|
+
}
|
228
|
+
},
|
229
|
+
props: {
|
230
|
+
row: {},
|
231
|
+
config: {},
|
232
|
+
ispartial: false,
|
233
|
+
f_filialeid: {
|
234
|
+
type: String
|
235
|
+
}
|
236
|
+
},
|
237
|
+
ready () {
|
238
|
+
this.nameForSql = ['f_plan_month', 'f_plan_name','f_checker_name']
|
239
|
+
this.groupNameForSql = 'f_plan_month', 'f_plan_name','f_checker_name'
|
240
|
+
this.pl()
|
241
|
+
// this.search()
|
242
242
|
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
243
|
+
},
|
244
|
+
methods: {
|
245
|
+
exportexcel(){
|
246
|
+
//tag
|
247
247
|
// 以上四行也可以直接一行搞定,如果不需要对表格数据进行修改的话
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
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='计划月份'
|
255
273
|
}
|
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':'计划总数'
|
274
|
+
if (ff==='f_no_checkplan') {
|
275
|
+
this.exportExcelField.f_no_checkplan='计划类型'
|
267
276
|
}
|
268
|
-
|
269
|
-
|
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_checker_name') {
|
281
|
-
this.exportExcelField.f_checker_name='安检员'
|
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
|
-
}
|
277
|
+
if (ff==='f_plan_name') {
|
278
|
+
this.exportExcelField.f_plan_name='计划名称'
|
287
279
|
}
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
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}`
|
280
|
+
if (ff==='f_checker_name') {
|
281
|
+
this.exportExcelField.f_checker_name='安检员'
|
282
|
+
}if (ff==='f_residential_area') {
|
283
|
+
this.exportExcelField.f_residential_area='小区名称'
|
284
|
+
}if (ff==='f_user_number') {
|
285
|
+
this.exportExcelField.f_user_number='档案数量'
|
327
286
|
}
|
328
|
-
|
329
|
-
|
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"
|
330
297
|
}
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
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
336
|
(f_year = ${new Date(this.f_check_start).getFullYear()} and f_month >= ${new Date(this.f_check_start).getMonth()+1})
|
337
337
|
or
|
338
338
|
( f_year > ${new Date(this.f_check_start).getFullYear()} and f_year < ${new Date(this.f_check_end).getFullYear()})
|
339
339
|
or
|
340
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
341
|
}
|
350
|
-
|
351
|
-
if
|
352
|
-
|
353
|
-
|
354
|
-
|
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}`
|
355
348
|
}
|
356
|
-
|
357
|
-
|
358
|
-
|
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
359
|
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
360
|
+
// 拼接groupName1
|
361
|
+
getGroupName1 () {
|
362
|
+
var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
|
363
|
+
var newtemp=[]
|
364
364
|
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
}
|
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])
|
371
370
|
}
|
372
371
|
}
|
373
|
-
|
372
|
+
}
|
373
|
+
let str = ''
|
374
374
|
|
375
|
-
|
376
|
-
|
377
|
-
}
|
378
|
-
str += newtemp[i]
|
379
|
-
this.groupNameForSql = str.trim()
|
375
|
+
for (var i=0;i < newtemp.length - 1; i++) {
|
376
|
+
str += newtemp[i] + ','
|
380
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);
|
381
391
|
},
|
382
|
-
|
383
|
-
//
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
}
|
397
|
-
this.listflag=true
|
398
|
-
//tag
|
399
|
-
var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','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
|
-
}
|
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_checker_name','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])
|
407
406
|
}
|
408
407
|
}
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
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
413
|
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
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
|
-
}
|
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
|
434
426
|
//tag
|
435
|
-
|
436
|
-
|
437
|
-
|
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
|
438
432
|
}
|
439
433
|
}
|
440
|
-
|
441
|
-
|
442
|
-
}else {
|
434
|
+
//tag
|
435
|
+
if(flag){
|
443
436
|
ss=temp[j][newtemp[i]]
|
437
|
+
continue
|
444
438
|
}
|
445
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
|
+
}
|
446
445
|
}
|
447
|
-
|
448
|
-
|
449
|
-
|
446
|
+
}
|
447
|
+
//tag
|
448
|
+
this.model.rows=JSON.parse(JSON.stringify(temp))
|
449
|
+
},
|
450
450
|
'model.rows.length'() {
|
451
451
|
// 如果查询无结果,将合计置为0
|
452
452
|
if(this.model.rows.length < 1){
|
@@ -458,48 +458,48 @@
|
|
458
458
|
this.model.sums.f_jujian = 0
|
459
459
|
}
|
460
460
|
}
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
}
|
461
|
+
},
|
462
|
+
computed:{
|
463
|
+
exportParameter(){
|
464
|
+
// excel 导出条件拼接
|
465
|
+
return {
|
466
|
+
condition: this.$refs.paged.model.condition,
|
467
|
+
groupName: this.groupNameForSql
|
469
468
|
}
|
470
469
|
}
|
471
470
|
}
|
471
|
+
}
|
472
472
|
</script>
|
473
473
|
|
474
474
|
<style scoped>
|
475
475
|
|
476
|
-
|
477
|
-
|
478
|
-
|
476
|
+
.td-0{
|
477
|
+
border: 1px solid #000000;
|
478
|
+
}
|
479
479
|
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
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
486
|
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
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
505
|
</style>
|