manage-client 3.2.69 → 3.2.72
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/.gradle/{5.5 → 4.4}/fileChanges/last-build.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/build/dev-server.js +176 -174
- package/package.json +1 -1
- package/src/components/MeterManage/MeterList.vue +2 -2
- package/src/components/SellReport/GYReportWH.vue +181 -0
- package/src/components/SellReport/ReportItems.vue +10 -1
- package/src/components/SellReport/ReportItemsSpecial.vue +246 -0
- package/src/components/SellReport/ReportPoolSpecial.vue +60 -0
- package/src/components/SellReport/SYReportWH.vue +181 -0
- package/src/components/SellReport/tongchuan/ReportGasType.vue +235 -0
- package/src/components/sale/filesquery/DeviceQuery.vue +1 -1
- package/src/components/sale/filesquery/RecordInfoQuery.vue +1 -1
- package/src/components/webmeter/DrillData/UserGasAll.vue +607 -607
- package/src/filiale/liaoyuan/GasInspection.vue +572 -0
- package/src/filiale/liaoyuan/sale.js +3 -1
- package/src/filiale/shaoguan/HandplanQuery.vue +22 -24
- package/src/filiale/zhongsheng/UserGasAll.vue +625 -0
- package/src/main.js +2 -2
- package/src/reportManage.js +27 -1
- package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.5/gc.properties +0 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<partial-view v-ref:pv>
|
|
4
|
+
<div class="span" v-show="!filtrate">
|
|
5
|
+
<p class="bg-info text-center" style="padding: 8px;background: #5ac0d9;color: white;border-radius:10px 10px 0 0" title="选中报表后双击查看报表的配置信息" @dblclick="Update()">报表类型</p>
|
|
6
|
+
<div style="height: 94%;overflow: auto;width: 104%">
|
|
7
|
+
<div style="padding:3px" :style="{background: index===row ? '#dfedfb' : 'white'}" :class="styles=='2'?'col-sm-6 auto':'col-sm-12 auto'" v-for="(index,type) in types"
|
|
8
|
+
@click="$dispatch('select-type',index, type),changecolor(index,type)"
|
|
9
|
+
:id="'div-'+index">
|
|
10
|
+
<div class="row auto"><img :src="type.f_image_path" alt="图片加载失败" class="img-rounded" style="width: 60px;"></div>
|
|
11
|
+
<div style="height:40px" class="row auto">{{index+1}}、{{type.f_report_name}}</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
</div>
|
|
16
|
+
<div class="span" v-show="filtrate">
|
|
17
|
+
<p class="bg-info text-center" style="padding: 8px;" @dblclick="filtrate=!filtrate">相关配置</p>
|
|
18
|
+
<div style="height: 94%;overflow: auto;width: 104%">
|
|
19
|
+
<table style="border-style: none;width: 95%;">
|
|
20
|
+
<tr style="display:block;margin:15px 0;">
|
|
21
|
+
<td style="text-align: left">
|
|
22
|
+
<label class="font_normal_body">报表名称:</label>
|
|
23
|
+
<v-select multiple
|
|
24
|
+
:value.sync="modelinfo.f_report_name"
|
|
25
|
+
class="select_list select"
|
|
26
|
+
v-model="modelinfo.f_report_name"
|
|
27
|
+
:options='reportNames' placeholder='请选择'
|
|
28
|
+
close-on-select></v-select>
|
|
29
|
+
</td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr style="display:block;margin:15px 0;">
|
|
32
|
+
<td style="text-align: left">
|
|
33
|
+
<label class="font_normal_body">报表类型:</label>
|
|
34
|
+
<v-select
|
|
35
|
+
:value.sync="modelinfo.f_report_type"
|
|
36
|
+
:search="false"
|
|
37
|
+
class="select_list select"
|
|
38
|
+
v-model="modelinfo.f_report_type"
|
|
39
|
+
:options='reportTypes' placeholder='请选择'
|
|
40
|
+
close-on-select></v-select>
|
|
41
|
+
</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr style="display:block;margin:15px 0;">
|
|
44
|
+
<td style="text-align: left">
|
|
45
|
+
<label class="font_normal_body">报表状态:</label>
|
|
46
|
+
<v-select
|
|
47
|
+
:value.sync="modelinfo.f_rank"
|
|
48
|
+
:search="false"
|
|
49
|
+
class="select_list select"
|
|
50
|
+
v-model="modelinfo.f_rank"
|
|
51
|
+
:options='reportState' placeholder='请选择'
|
|
52
|
+
close-on-select></v-select>
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr style="display:block;margin:15px 0;">
|
|
56
|
+
<td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="filtrate=!filtrate">返回</button></td>
|
|
57
|
+
<td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear()">清空</button></td>
|
|
58
|
+
<td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="chaxun()">查询</button></td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr style="display:block;margin:15px 0;" v-for="(key,value) in infos">
|
|
61
|
+
<td style="text-align: left;">
|
|
62
|
+
<label class="font_normal_body" style="text-align: right;">{{key}}:</label>
|
|
63
|
+
<input type="text" style="width: 70%;" class="input_search" v-model="value" v-bind:title="[key =='报表状态'?'1表示显示其他表示不显示':'']"/>
|
|
64
|
+
</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr style="display:block;margin:15px 0;">
|
|
67
|
+
<td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="saveOrUpdate(1)">修改</button></td>
|
|
68
|
+
<td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear(true)">清空</button></td>
|
|
69
|
+
<td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="saveOrUpdate(2)">保存</button></td>
|
|
70
|
+
</tr>
|
|
71
|
+
</table>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
</div>
|
|
75
|
+
</partial-view>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
|
|
79
|
+
<script>
|
|
80
|
+
import {HttpResetClass} from "vue-client";
|
|
81
|
+
|
|
82
|
+
export default {
|
|
83
|
+
title: '报表选项',
|
|
84
|
+
props: {
|
|
85
|
+
inindex:{}
|
|
86
|
+
},
|
|
87
|
+
data () {
|
|
88
|
+
return {
|
|
89
|
+
types: [],
|
|
90
|
+
row:null,
|
|
91
|
+
infos: {
|
|
92
|
+
'报表名称': '',
|
|
93
|
+
'连接页面': '',
|
|
94
|
+
'报表类型': '',
|
|
95
|
+
'图片路径': '',
|
|
96
|
+
'添 加 人': '',
|
|
97
|
+
'报表状态': ''
|
|
98
|
+
},
|
|
99
|
+
styles:this.$appdata.getSingleValue('报表样式')?this.$appdata.getSingleValue('报表样式'):'2',
|
|
100
|
+
saveinfo:{},
|
|
101
|
+
filtrate:false,
|
|
102
|
+
modelinfo: {
|
|
103
|
+
f_report_name: '',
|
|
104
|
+
f_report_type: '',
|
|
105
|
+
f_rank: '1'
|
|
106
|
+
},
|
|
107
|
+
config:{
|
|
108
|
+
f_report_name: '报表名称',
|
|
109
|
+
f_report_path: '连接页面',
|
|
110
|
+
f_report_type: '报表类型',
|
|
111
|
+
f_image_path: '图片路径',
|
|
112
|
+
f_operator: '添 加 人',
|
|
113
|
+
f_rank: '报表状态'
|
|
114
|
+
},
|
|
115
|
+
conditionStr:'1=1',
|
|
116
|
+
reportNames: [],
|
|
117
|
+
reportTypes: [],
|
|
118
|
+
reportState : [{label: '全部', value: ''},{label: '显示', value: '1'},{label: '未显示', value: 'null'},],
|
|
119
|
+
tablename: 't_report_type'
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
ready (){
|
|
123
|
+
// 获取所有报表类型
|
|
124
|
+
this.getReportInfo(null,'1=1 and f_rank=3')
|
|
125
|
+
this.getReportName()
|
|
126
|
+
this.getReportType()
|
|
127
|
+
},
|
|
128
|
+
methods: {
|
|
129
|
+
getReportInfo(tname,cond){
|
|
130
|
+
this.$refs.pv.load('rs/sql/manageSingleTable', {
|
|
131
|
+
data: {
|
|
132
|
+
tablename: tname ? tname:this.tablename,
|
|
133
|
+
condition: cond ? cond:this.conditionStr
|
|
134
|
+
}
|
|
135
|
+
}).then((res) => {
|
|
136
|
+
console.log('sssss:',res.data)
|
|
137
|
+
this.types = res.data
|
|
138
|
+
}).catch((error) => {
|
|
139
|
+
|
|
140
|
+
})
|
|
141
|
+
},
|
|
142
|
+
chaxun(){
|
|
143
|
+
this.getReportInfo()
|
|
144
|
+
this.filtrate = !this.filtrate
|
|
145
|
+
},
|
|
146
|
+
changecolor(index,type){
|
|
147
|
+
this.row=index
|
|
148
|
+
},
|
|
149
|
+
async getReportName(){
|
|
150
|
+
let HttpReset = new HttpResetClass()
|
|
151
|
+
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
152
|
+
data: {
|
|
153
|
+
condition: this.conditionStr,
|
|
154
|
+
tablename: this.tablename,
|
|
155
|
+
groupitem: 'f_report_name',
|
|
156
|
+
orderitem: 'f_report_name',
|
|
157
|
+
items: 'f_report_name'
|
|
158
|
+
}
|
|
159
|
+
}, {resolveMsg: null, rejectMsg: '获取报表名称失败!'})
|
|
160
|
+
let nameArr = [{label: '全部', value: ''}]
|
|
161
|
+
for (let row of data.data){
|
|
162
|
+
nameArr.push({label: row.f_report_name, value: row.f_report_name})
|
|
163
|
+
}
|
|
164
|
+
this.reportNames = nameArr
|
|
165
|
+
},
|
|
166
|
+
clear(val){
|
|
167
|
+
if(val){
|
|
168
|
+
for (let key in this.infos) {
|
|
169
|
+
this.infos[key] =''
|
|
170
|
+
}
|
|
171
|
+
}else{
|
|
172
|
+
for (let key in this.modelinfo) {
|
|
173
|
+
this.modelinfo[key] =[]
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
async getReportType(){
|
|
178
|
+
let HttpReset = new HttpResetClass()
|
|
179
|
+
var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
|
|
180
|
+
data: {
|
|
181
|
+
condition: this.conditionStr,
|
|
182
|
+
tablename: this.tablename,
|
|
183
|
+
groupitem: 'f_report_type',
|
|
184
|
+
orderitem: 'f_report_type',
|
|
185
|
+
items: 'f_report_type'
|
|
186
|
+
}
|
|
187
|
+
}, {resolveMsg: null, rejectMsg: '获取报表类型失败!'})
|
|
188
|
+
let typeArr = [{label: '全部', value: ''}]
|
|
189
|
+
for (let row of data.data){
|
|
190
|
+
typeArr.push({label: row.f_report_type, value: row.f_report_type})
|
|
191
|
+
}
|
|
192
|
+
this.reportTypes = typeArr
|
|
193
|
+
},
|
|
194
|
+
Update(){
|
|
195
|
+
if (this.$login.r.includes('报表配置权限')) {
|
|
196
|
+
this.filtrate=!this.filtrate
|
|
197
|
+
} else {
|
|
198
|
+
this.$showMessage('您没有【报表配置权限】,若要进行报表配置,请联系管理员获取权限!')
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
saveOrUpdate(val){
|
|
202
|
+
// let sv={}
|
|
203
|
+
for(let [key, value] of Object.entries(this.config)){
|
|
204
|
+
let vl=this.infos[value]
|
|
205
|
+
this.saveinfo[key]=vl
|
|
206
|
+
}
|
|
207
|
+
this.saveinfo['type']=val
|
|
208
|
+
this.$resetpost('rs/logic/saveReport', this.saveinfo, {resolveMsg: '恭喜!提交成功!', rejectMsg: '提交错误!'}).then((res) => {
|
|
209
|
+
this.$showAlert('保存成功', 'success', 3000)
|
|
210
|
+
this.getReportInfo(null,'1=1 and f_rank=3')
|
|
211
|
+
this.filtrate=!this.filtrate
|
|
212
|
+
})
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
watch :{
|
|
216
|
+
'modelinfo': {
|
|
217
|
+
deep: true,
|
|
218
|
+
handler(val) {
|
|
219
|
+
let c='1=1 '
|
|
220
|
+
for (let [key, value] of Object.entries(val)) {
|
|
221
|
+
if (value && value!='') {
|
|
222
|
+
if(key=='f_rank' && value=='null'){
|
|
223
|
+
c+='and '+ key + " is " + value +' or '+ key +" = ''"
|
|
224
|
+
}else{
|
|
225
|
+
c+='and '+ key + " in ('" + value.toString().replace(new RegExp(',','g'),"','") + "') "
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
this.conditionStr = c
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
'inindex' (val){
|
|
233
|
+
this.infos={}
|
|
234
|
+
this.saveinfo=this.types[val]
|
|
235
|
+
let flag={}
|
|
236
|
+
for(let [key, value] of Object.entries(this.saveinfo)){
|
|
237
|
+
let name=this.config[key]
|
|
238
|
+
if (name!=null){
|
|
239
|
+
flag[name]=value
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
this.infos=flag
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
</script>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row binary">
|
|
3
|
+
<div class="three-left" :style="{width:'18%'}">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<report-items-special @select-type="showReportType" :inindex="index"></report-items-special>
|
|
6
|
+
<!--<report-history @select-changed="showReport" v-ref:history></report-history>-->
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<!-- 使用动态页签
|
|
10
|
+
<dynamic :comps='[]' name='report'></dynamic> -->
|
|
11
|
+
<!-- 使用路由切换 -->
|
|
12
|
+
<div :style="{width:'82%'}">
|
|
13
|
+
<div class="flex" v-if="$refs.route.cards.length === 0">
|
|
14
|
+
<echarts-box></echarts-box>
|
|
15
|
+
</div>
|
|
16
|
+
<route v-ref:route @save-success="$refs.history.search" v-show="!($refs.route.cards.length === 0)"></route>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
export default {
|
|
23
|
+
title: '报表汇总',
|
|
24
|
+
data () {
|
|
25
|
+
return {
|
|
26
|
+
comp: [],
|
|
27
|
+
index:''
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
// 根据选择的数据直接显示保存的报表
|
|
32
|
+
showReport (row) {
|
|
33
|
+
this.$refs.route.init(row.val.f_component_name, {data: row.val})
|
|
34
|
+
},
|
|
35
|
+
// 根据报表的类型选择显示报表
|
|
36
|
+
showReportType (index,row) {
|
|
37
|
+
let m=document.getElementsByName('style')
|
|
38
|
+
console.log(m.length)
|
|
39
|
+
for(let i=0; i < m.length; i++){
|
|
40
|
+
m[i].style.backgroundColor="#ffffff"
|
|
41
|
+
m[i].style.borderColor="#000000"
|
|
42
|
+
m[i].style.color="#000000"
|
|
43
|
+
|
|
44
|
+
if(i==index){
|
|
45
|
+
m[i].style.backgroundColor="#0688ce"
|
|
46
|
+
m[i].style.borderColor="#0688ce"
|
|
47
|
+
m[i].style.color="#ffffff"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
this.index=index
|
|
51
|
+
this.$refs.route.init(row.f_report_path, {data: row})
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
</script>
|
|
56
|
+
<style>
|
|
57
|
+
. mystyle{
|
|
58
|
+
background-color: #05c3c7;
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 100%">
|
|
3
|
+
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-sm-4" >
|
|
8
|
+
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
9
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
10
|
+
v-model="model.startDate"
|
|
11
|
+
:value.sync="model.startDate"
|
|
12
|
+
:disabled-days-of-Week="[]"
|
|
13
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
14
|
+
:show-reset-button="reset">
|
|
15
|
+
</datepicker>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-4" >
|
|
18
|
+
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
19
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
20
|
+
v-model="model.endDate"
|
|
21
|
+
:value.sync="model.endDate"
|
|
22
|
+
:disabled-days-of-Week="[]"
|
|
23
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
24
|
+
:show-reset-button="reset">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-4 form-group" >
|
|
28
|
+
<label class="font_normal_body" for="org">公  司:</label>
|
|
29
|
+
<right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-4 form-group">
|
|
32
|
+
<label class="font_normal_body" for="dep" >部  门:</label>
|
|
33
|
+
<res-select id="dep" restype='department' style="width: 60%"
|
|
34
|
+
is-mul="false"
|
|
35
|
+
@res-select="$parent.$parent.getdep"
|
|
36
|
+
:parentresid="$parent.$parent.depresid"
|
|
37
|
+
:initresid='$parent.$parent.depid' >
|
|
38
|
+
</res-select>
|
|
39
|
+
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-4 form-group">
|
|
42
|
+
<label class="font_normal_body" for="oper">人  员:</label>
|
|
43
|
+
<res-select id="oper" restype='user' style="width: 60%"
|
|
44
|
+
is-mul="false"
|
|
45
|
+
@res-select="$parent.$parent.getuser"
|
|
46
|
+
:parentresid="$parent.$parent.userresid"
|
|
47
|
+
:initresid='$parent.$parent.operatorid'>
|
|
48
|
+
</res-select>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="span" style = "float:right;">
|
|
52
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
53
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
54
|
+
<report-excel id='gasprice'></report-excel>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</criteria>
|
|
58
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
59
|
+
<table class='tableprint' style="margin: 0px auto">
|
|
60
|
+
<thead>
|
|
61
|
+
<tr>
|
|
62
|
+
<th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
|
|
63
|
+
<h3 style="text-align: center">{{$parent.data.f_report_name}}</h3>
|
|
64
|
+
</th>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
|
|
68
|
+
时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
|
|
69
|
+
打印时间:{{$parent.printTime}}
|
|
70
|
+
</th>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr>
|
|
73
|
+
<th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
|
|
74
|
+
<div>
|
|
75
|
+
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
76
|
+
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
77
|
+
<span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
|
|
78
|
+
</div>
|
|
79
|
+
</th>
|
|
80
|
+
</tr>
|
|
81
|
+
</thead>
|
|
82
|
+
<tr>
|
|
83
|
+
<td :colspan='$parent.tablen' class="noborder">
|
|
84
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
85
|
+
</td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tfoot>
|
|
88
|
+
<tr style="text-align: left">
|
|
89
|
+
<th :colspan='Math.floor($parent.tablen/4)'>部门负责人:</th>
|
|
90
|
+
<th :colspan='Math.floor($parent.tablen/4)'>财务审核:</th>
|
|
91
|
+
<th :colspan='Math.round($parent.tablen/4)'>审核人:</th>
|
|
92
|
+
<th :colspan='Math.round($parent.tablen/4)'>制表人:</th>
|
|
93
|
+
</tr>
|
|
94
|
+
</tfoot>
|
|
95
|
+
</table>
|
|
96
|
+
</div>
|
|
97
|
+
</criteria-paged>
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<script>
|
|
102
|
+
import { DataModel } from 'vue-client'
|
|
103
|
+
|
|
104
|
+
export default {
|
|
105
|
+
title: '报表',
|
|
106
|
+
props: ['data'],
|
|
107
|
+
data () {
|
|
108
|
+
return {
|
|
109
|
+
printTime: this.$login.toStandardTimeString(),
|
|
110
|
+
depresid: [],
|
|
111
|
+
userresid: [],
|
|
112
|
+
f_orgid: this.$login.f.orgid,
|
|
113
|
+
f_depid: this.$login.f.depids,
|
|
114
|
+
f_operatorid: this.$login.f.id,
|
|
115
|
+
operatorid: [],
|
|
116
|
+
depid: [],
|
|
117
|
+
tablen: 0,
|
|
118
|
+
orgname: '',
|
|
119
|
+
depname: '',
|
|
120
|
+
operatorname: '',
|
|
121
|
+
orgCondtionStr: '1=1',
|
|
122
|
+
model: new DataModel('rs/report/wuhai_syreport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
123
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
124
|
+
reportStr: null,
|
|
125
|
+
show: false
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
ready () {
|
|
129
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
130
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
131
|
+
console.log(this.$login.f)
|
|
132
|
+
},
|
|
133
|
+
methods: {
|
|
134
|
+
searchData () {
|
|
135
|
+
this.$refs.paged.$refs.criteria.search()
|
|
136
|
+
},
|
|
137
|
+
selfSearch (args) {
|
|
138
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
139
|
+
let orgcondition = '1=1'
|
|
140
|
+
if (this.f_orgid && this.f_orgid[0]) {
|
|
141
|
+
orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
|
|
142
|
+
}
|
|
143
|
+
if (this.f_depid && this.f_depid[0]) {
|
|
144
|
+
orgcondition += ' and f_depid in (' + this.f_depid + ')'
|
|
145
|
+
}
|
|
146
|
+
if (this.f_operatorid && this.f_operatorid[0]) {
|
|
147
|
+
orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
|
|
148
|
+
}
|
|
149
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
150
|
+
this.$refs.paged.search(args)
|
|
151
|
+
},
|
|
152
|
+
getRes (obj) {
|
|
153
|
+
this.orgname = obj.res[0]
|
|
154
|
+
this.depresid = obj.resids
|
|
155
|
+
this.userresid = obj.resids
|
|
156
|
+
this.f_orgid = obj.resids
|
|
157
|
+
},
|
|
158
|
+
getdep (obj, val) {
|
|
159
|
+
this.depname = val[0]
|
|
160
|
+
// this.userresid = obj
|
|
161
|
+
this.f_depid = obj
|
|
162
|
+
},
|
|
163
|
+
getuser (obj, val) {
|
|
164
|
+
this.operatorname = val[0]
|
|
165
|
+
this.f_operatorid = obj
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
watch: {
|
|
169
|
+
'model.data' (val) {
|
|
170
|
+
this.tablen = val.split('</tr>').map(item => item.split('</td>').length - 1).reduce((x, y) => x > y ? x : y)
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
computed: {
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
</script>
|
|
177
|
+
<style scoped>
|
|
178
|
+
.noborder{
|
|
179
|
+
border: none;
|
|
180
|
+
}
|
|
181
|
+
</style>
|