manage-client 1.22.43-ca → 1.22.44-ca
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
CHANGED
|
@@ -1,187 +1,187 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
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" v-show="$parent.$parent.criteriaShow">
|
|
7
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
8
|
-
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
9
|
-
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
10
|
-
v-model="model.startDate"
|
|
11
|
-
:value.sync="model.startDate"
|
|
12
|
-
:format="'yyyy-MM-dd'"
|
|
13
|
-
:show-reset-button="true"
|
|
14
|
-
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
15
|
-
</datepicker>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
18
|
-
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
19
|
-
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
20
|
-
v-model="model.endDate"
|
|
21
|
-
:value.sync="model.endDate"
|
|
22
|
-
:format="'yyyy-MM-dd'"
|
|
23
|
-
:show-reset-button="true"
|
|
24
|
-
condition="f_operate_date <= to_date('{} 23.59.59','yyyy-mm-dd hh24:mi:ss')">
|
|
25
|
-
</datepicker>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
28
|
-
<label class="font_normal_body _zoom4" >气表类型</label>
|
|
29
|
-
<v-select :value.sync="model.f_meter_type"
|
|
30
|
-
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
31
|
-
condition="f_meter_type = '{}'"
|
|
32
|
-
close-on-select></v-select>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
35
|
-
<label class="font_normal_body _zoom4" >用户类型</label>
|
|
36
|
-
<v-select :value.sync="model.f_user_type"
|
|
37
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
38
|
-
condition="f_user_type = '{}'"
|
|
39
|
-
close-on-select></v-select>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
-
<label class="font_normal_body _zoom4" >用气性质</label>
|
|
43
|
-
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
44
|
-
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
45
|
-
condition="f_gasproperties = '{}'"
|
|
46
|
-
close-on-select></v-select>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
-
<label class="font_normal_body _zoom4" >售气单位</label>
|
|
50
|
-
<v-select :value.sync="model.f_filiale"
|
|
51
|
-
v-model="model.f_filiale"
|
|
52
|
-
:options='$parent.$parent.filialelist' placeholder='请选择'
|
|
53
|
-
condition="f_filiale = '{}'"
|
|
54
|
-
close-on-select></v-select>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
57
|
-
<label class="font_normal_body _zoom4" >售气部门</label>
|
|
58
|
-
<v-select :value.sync="model.f_outlets"
|
|
59
|
-
v-model="model.f_outlets"
|
|
60
|
-
:options='$parent.$parent.selldep' placeholder='请选择'
|
|
61
|
-
condition="f_outlets = '{}'"
|
|
62
|
-
close-on-select></v-select>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
65
|
-
<label class="font_normal_body _zoom4" >售气站点</label>
|
|
66
|
-
<input type="text" class="form-control _zoom6" v-model="model.op_spot"
|
|
67
|
-
condition="op_spot = '{}'" placeholder="售气站点">
|
|
68
|
-
</div>
|
|
69
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
70
|
-
<label class="font_normal_body _zoom4" >人员编号</label>
|
|
71
|
-
<input type="text" class="form-control _zoom6" v-model="model.op_id"
|
|
72
|
-
condition="op_id = '{}'" placeholder="操作员编号">
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="row">
|
|
76
|
-
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
77
|
-
<button class="btn btn-success" @click="search()">查询</button>
|
|
78
|
-
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
79
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
80
|
-
:field="$parent.$parent.getExportField"
|
|
81
|
-
sqlurl="rs/logic/exportfile" sql-name="changan_sellgasByItem" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
82
|
-
<print-data :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
83
|
-
:defaultfield="$parent.$parent.defaultfield" print-name="售气按部门"></print-data>
|
|
84
|
-
<div
|
|
85
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
86
|
-
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</criteria>
|
|
91
|
-
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
92
|
-
<template partial='head'>
|
|
93
|
-
<tr>
|
|
94
|
-
<th><nobr>网点</nobr></th>
|
|
95
|
-
<th><nobr>气量</nobr></th>
|
|
96
|
-
<th><nobr>金额</nobr></th>
|
|
97
|
-
<th><nobr>数量</nobr></th>
|
|
98
|
-
</tr>
|
|
99
|
-
</template>
|
|
100
|
-
<template partial='body'>
|
|
101
|
-
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
102
|
-
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
103
|
-
<td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
|
|
104
|
-
<td style="text-align: center;"><nobr>{{row.c}}</nobr></td>
|
|
105
|
-
</template>
|
|
106
|
-
</data-grid>
|
|
107
|
-
</criteria-paged>
|
|
108
|
-
<table class="table-hover" >
|
|
109
|
-
<tr class="table-bordered">
|
|
110
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
111
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计: {{sumsmodel.f_pregas}}</td>
|
|
112
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计: {{sumsmodel.f_preamount}}</td>
|
|
113
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">数量合计: {{sumsmodel.c}}</td>
|
|
114
|
-
</tr>
|
|
115
|
-
</table>
|
|
116
|
-
</div>
|
|
117
|
-
</template>
|
|
118
|
-
<script>
|
|
119
|
-
import { PagedList } from 'vue-client'
|
|
120
|
-
import exportConfig from '../config/exportConfig'
|
|
121
|
-
|
|
122
|
-
export default {
|
|
123
|
-
data() {
|
|
124
|
-
return {
|
|
125
|
-
criteriaShow:true,
|
|
126
|
-
defaultfield:[],
|
|
127
|
-
sumsmodel: {},
|
|
128
|
-
model: new PagedList('rs/sql/changan_sellgasByItem', 20,{item:"'f_outlets'"},{
|
|
129
|
-
f_pregas: 0,f_preamount: 0,c:0
|
|
130
|
-
}),
|
|
131
|
-
metertypes: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
132
|
-
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
133
|
-
filialelist: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
ready(){
|
|
137
|
-
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
138
|
-
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
139
|
-
},
|
|
140
|
-
methods: {
|
|
141
|
-
selfSearch (args) {
|
|
142
|
-
this.model.search(args.condition, args.model)
|
|
143
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
144
|
-
},
|
|
145
|
-
hidden(){
|
|
146
|
-
this.criteriaShow = !this.criteriaShow
|
|
147
|
-
},
|
|
148
|
-
clear(){
|
|
149
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
150
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
151
|
-
})
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
watch:{
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
computed:{
|
|
158
|
-
gasproperties () {
|
|
159
|
-
let rs = []
|
|
160
|
-
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
161
|
-
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
162
|
-
}
|
|
163
|
-
return [{label: '全部', value: ''}, ...rs]
|
|
164
|
-
},
|
|
165
|
-
selldep () {
|
|
166
|
-
let rs = []
|
|
167
|
-
if(this.$refs.paged.$refs.cri.model.f_filiale){
|
|
168
|
-
this.$refs.paged.$refs.cri.model.f_outlets = ''
|
|
169
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_filiale) ]
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
return [{label: '全部', value: ''}]
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
getCondition(){
|
|
176
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}`,
|
|
177
|
-
item:'f_outlets'}
|
|
178
|
-
},
|
|
179
|
-
getExportField () {
|
|
180
|
-
return {
|
|
181
|
-
'f_outlets': '网点','f_pregas':'气量',
|
|
182
|
-
'f_preamount': '金额','
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
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" v-show="$parent.$parent.criteriaShow">
|
|
7
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
8
|
+
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
9
|
+
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
10
|
+
v-model="model.startDate"
|
|
11
|
+
:value.sync="model.startDate"
|
|
12
|
+
:format="'yyyy-MM-dd'"
|
|
13
|
+
:show-reset-button="true"
|
|
14
|
+
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
15
|
+
</datepicker>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
18
|
+
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
19
|
+
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
20
|
+
v-model="model.endDate"
|
|
21
|
+
:value.sync="model.endDate"
|
|
22
|
+
:format="'yyyy-MM-dd'"
|
|
23
|
+
:show-reset-button="true"
|
|
24
|
+
condition="f_operate_date <= to_date('{} 23.59.59','yyyy-mm-dd hh24:mi:ss')">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
28
|
+
<label class="font_normal_body _zoom4" >气表类型</label>
|
|
29
|
+
<v-select :value.sync="model.f_meter_type"
|
|
30
|
+
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
31
|
+
condition="f_meter_type = '{}'"
|
|
32
|
+
close-on-select></v-select>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
35
|
+
<label class="font_normal_body _zoom4" >用户类型</label>
|
|
36
|
+
<v-select :value.sync="model.f_user_type"
|
|
37
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
38
|
+
condition="f_user_type = '{}'"
|
|
39
|
+
close-on-select></v-select>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
+
<label class="font_normal_body _zoom4" >用气性质</label>
|
|
43
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
44
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
45
|
+
condition="f_gasproperties = '{}'"
|
|
46
|
+
close-on-select></v-select>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
+
<label class="font_normal_body _zoom4" >售气单位</label>
|
|
50
|
+
<v-select :value.sync="model.f_filiale"
|
|
51
|
+
v-model="model.f_filiale"
|
|
52
|
+
:options='$parent.$parent.filialelist' placeholder='请选择'
|
|
53
|
+
condition="f_filiale = '{}'"
|
|
54
|
+
close-on-select></v-select>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
57
|
+
<label class="font_normal_body _zoom4" >售气部门</label>
|
|
58
|
+
<v-select :value.sync="model.f_outlets"
|
|
59
|
+
v-model="model.f_outlets"
|
|
60
|
+
:options='$parent.$parent.selldep' placeholder='请选择'
|
|
61
|
+
condition="f_outlets = '{}'"
|
|
62
|
+
close-on-select></v-select>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
65
|
+
<label class="font_normal_body _zoom4" >售气站点</label>
|
|
66
|
+
<input type="text" class="form-control _zoom6" v-model="model.op_spot"
|
|
67
|
+
condition="op_spot = '{}'" placeholder="售气站点">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
70
|
+
<label class="font_normal_body _zoom4" >人员编号</label>
|
|
71
|
+
<input type="text" class="form-control _zoom6" v-model="model.op_id"
|
|
72
|
+
condition="op_id = '{}'" placeholder="操作员编号">
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="row">
|
|
76
|
+
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
77
|
+
<button class="btn btn-success" @click="search()">查询</button>
|
|
78
|
+
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
79
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
80
|
+
:field="$parent.$parent.getExportField"
|
|
81
|
+
sqlurl="rs/logic/exportfile" sql-name="changan_sellgasByItem" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
82
|
+
<print-data :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
83
|
+
:defaultfield="$parent.$parent.defaultfield" print-name="售气按部门"></print-data>
|
|
84
|
+
<div
|
|
85
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
86
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</criteria>
|
|
91
|
+
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
92
|
+
<template partial='head'>
|
|
93
|
+
<tr>
|
|
94
|
+
<th><nobr>网点</nobr></th>
|
|
95
|
+
<th><nobr>气量</nobr></th>
|
|
96
|
+
<th><nobr>金额</nobr></th>
|
|
97
|
+
<th><nobr>数量</nobr></th>
|
|
98
|
+
</tr>
|
|
99
|
+
</template>
|
|
100
|
+
<template partial='body'>
|
|
101
|
+
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
102
|
+
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
103
|
+
<td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
|
|
104
|
+
<td style="text-align: center;"><nobr>{{row.c}}</nobr></td>
|
|
105
|
+
</template>
|
|
106
|
+
</data-grid>
|
|
107
|
+
</criteria-paged>
|
|
108
|
+
<table class="table-hover" >
|
|
109
|
+
<tr class="table-bordered">
|
|
110
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
111
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计: {{sumsmodel.f_pregas}}</td>
|
|
112
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计: {{sumsmodel.f_preamount}}</td>
|
|
113
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">数量合计: {{sumsmodel.c}}</td>
|
|
114
|
+
</tr>
|
|
115
|
+
</table>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
<script>
|
|
119
|
+
import { PagedList } from 'vue-client'
|
|
120
|
+
import exportConfig from '../config/exportConfig'
|
|
121
|
+
|
|
122
|
+
export default {
|
|
123
|
+
data() {
|
|
124
|
+
return {
|
|
125
|
+
criteriaShow:true,
|
|
126
|
+
defaultfield:[],
|
|
127
|
+
sumsmodel: {},
|
|
128
|
+
model: new PagedList('rs/sql/changan_sellgasByItem', 20,{item:"'f_outlets'"},{
|
|
129
|
+
f_pregas: 0,f_preamount: 0,c:0
|
|
130
|
+
}),
|
|
131
|
+
metertypes: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
132
|
+
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
133
|
+
filialelist: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
ready(){
|
|
137
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
138
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
139
|
+
},
|
|
140
|
+
methods: {
|
|
141
|
+
selfSearch (args) {
|
|
142
|
+
this.model.search(args.condition, args.model)
|
|
143
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
144
|
+
},
|
|
145
|
+
hidden(){
|
|
146
|
+
this.criteriaShow = !this.criteriaShow
|
|
147
|
+
},
|
|
148
|
+
clear(){
|
|
149
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
150
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
151
|
+
})
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
watch:{
|
|
155
|
+
|
|
156
|
+
},
|
|
157
|
+
computed:{
|
|
158
|
+
gasproperties () {
|
|
159
|
+
let rs = []
|
|
160
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
161
|
+
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
162
|
+
}
|
|
163
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
164
|
+
},
|
|
165
|
+
selldep () {
|
|
166
|
+
let rs = []
|
|
167
|
+
if(this.$refs.paged.$refs.cri.model.f_filiale){
|
|
168
|
+
this.$refs.paged.$refs.cri.model.f_outlets = ''
|
|
169
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_filiale) ]
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
return [{label: '全部', value: ''}]
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
getCondition(){
|
|
176
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`,
|
|
177
|
+
item:'f_outlets'}
|
|
178
|
+
},
|
|
179
|
+
getExportField () {
|
|
180
|
+
return {
|
|
181
|
+
'f_outlets': '网点','f_pregas':'气量',
|
|
182
|
+
'f_preamount': '金额','c':'数量',
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
</script>
|
|
@@ -1,192 +1,192 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
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" v-show="$parent.$parent.criteriaShow">
|
|
7
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
8
|
-
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
9
|
-
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
10
|
-
v-model="model.startDate"
|
|
11
|
-
:value.sync="model.startDate"
|
|
12
|
-
:format="'yyyy-MM-dd'"
|
|
13
|
-
:show-reset-button="true"
|
|
14
|
-
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
15
|
-
</datepicker>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
18
|
-
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
19
|
-
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
20
|
-
v-model="model.endDate"
|
|
21
|
-
:value.sync="model.endDate"
|
|
22
|
-
:format="'yyyy-MM-dd'"
|
|
23
|
-
:show-reset-button="true"
|
|
24
|
-
condition="f_operate_date <= to_date('{} 23.59.59','yyyy-mm-dd hh24:mi:ss')">
|
|
25
|
-
</datepicker>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
28
|
-
<label class="font_normal_body _zoom4" >气表类型</label>
|
|
29
|
-
<v-select :value.sync="model.f_meter_type"
|
|
30
|
-
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
31
|
-
condition="f_meter_type = '{}'"
|
|
32
|
-
close-on-select></v-select>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
35
|
-
<label class="font_normal_body _zoom4" >用户类型</label>
|
|
36
|
-
<v-select :value.sync="model.f_user_type"
|
|
37
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
38
|
-
condition="f_user_type = '{}'"
|
|
39
|
-
close-on-select></v-select>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
-
<label class="font_normal_body _zoom4" >用气性质</label>
|
|
43
|
-
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
44
|
-
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
45
|
-
condition="f_gasproperties = '{}'"
|
|
46
|
-
close-on-select></v-select>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
-
<label class="font_normal_body _zoom4" >售气单位</label>
|
|
50
|
-
<v-select :value.sync="model.f_filiale"
|
|
51
|
-
v-model="model.f_filiale"
|
|
52
|
-
:options='$parent.$parent.filialelist' placeholder='请选择'
|
|
53
|
-
condition="f_filiale = '{}'"
|
|
54
|
-
close-on-select></v-select>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
57
|
-
<label class="font_normal_body _zoom4" >售气部门</label>
|
|
58
|
-
<v-select :value.sync="model.f_outlets"
|
|
59
|
-
v-model="model.f_outlets"
|
|
60
|
-
:options='$parent.$parent.selldep' placeholder='请选择'
|
|
61
|
-
condition="f_outlets = '{}'"
|
|
62
|
-
close-on-select></v-select>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
65
|
-
<label class="font_normal_body _zoom4" >售气站点</label>
|
|
66
|
-
<input type="text" class="form-control _zoom6" v-model="model.op_spot"
|
|
67
|
-
condition="op_spot = '{}'" placeholder="售气站点">
|
|
68
|
-
</div>
|
|
69
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
70
|
-
<label class="font_normal_body _zoom4" >人员编号</label>
|
|
71
|
-
<input type="text" class="form-control _zoom6" v-model="model.op_id"
|
|
72
|
-
condition="op_id = '{}'" placeholder="操作员编号">
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="row">
|
|
76
|
-
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
77
|
-
<button class="btn btn-success" @click="search()">查询</button>
|
|
78
|
-
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
79
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
80
|
-
:field="$parent.$parent.getExportField"
|
|
81
|
-
sqlurl="rs/logic/exportfile" sql-name="changan_sellgasByItem" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
82
|
-
<print-data :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
83
|
-
:defaultfield="$parent.$parent.defaultfield" print-name="售气按站点"></print-data>
|
|
84
|
-
<div
|
|
85
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
86
|
-
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</criteria>
|
|
91
|
-
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
92
|
-
<template partial='head'>
|
|
93
|
-
<tr>
|
|
94
|
-
<th><nobr>部门</nobr></th>
|
|
95
|
-
<th><nobr>站号</nobr></th>
|
|
96
|
-
<th><nobr>名称</nobr></th>
|
|
97
|
-
<th><nobr>气量</nobr></th>
|
|
98
|
-
<th><nobr>金额</nobr></th>
|
|
99
|
-
<th><nobr>数量</nobr></th>
|
|
100
|
-
</tr>
|
|
101
|
-
</template>
|
|
102
|
-
<template partial='body'>
|
|
103
|
-
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
104
|
-
<td style="text-align: center;"><nobr>{{row.op_spot}}</nobr></td>
|
|
105
|
-
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
106
|
-
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
107
|
-
<td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
|
|
108
|
-
<td style="text-align: center;"><nobr>{{row.c}}</nobr></td>
|
|
109
|
-
</template>
|
|
110
|
-
</data-grid>
|
|
111
|
-
</criteria-paged>
|
|
112
|
-
<table class="table-hover">
|
|
113
|
-
<tr class="table-bordered">
|
|
114
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
115
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计: {{sumsmodel.f_pregas}}</td>
|
|
116
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计: {{sumsmodel.f_preamount}}</td>
|
|
117
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">数量合计: {{sumsmodel.c}}</td>
|
|
118
|
-
</tr>
|
|
119
|
-
</table>
|
|
120
|
-
</div>
|
|
121
|
-
</template>
|
|
122
|
-
<script>
|
|
123
|
-
import { PagedList } from 'vue-client'
|
|
124
|
-
import exportConfig from '../config/exportConfig'
|
|
125
|
-
|
|
126
|
-
export default {
|
|
127
|
-
data() {
|
|
128
|
-
return {
|
|
129
|
-
defaultfield:[],
|
|
130
|
-
sumsmodel: {},
|
|
131
|
-
criteriaShow:true,
|
|
132
|
-
model: new PagedList('rs/sql/changan_sellgasByItem', 20,{item:"'f_outlets,op_spot,f_operator'"},{
|
|
133
|
-
f_pregas: 0,f_preamount: 0,c:0
|
|
134
|
-
}),
|
|
135
|
-
metertypes: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
136
|
-
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
137
|
-
filialelist: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
ready(){
|
|
141
|
-
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
142
|
-
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
143
|
-
},
|
|
144
|
-
methods: {
|
|
145
|
-
selfSearch (args) {
|
|
146
|
-
this.model.search(args.condition, args.model)
|
|
147
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
148
|
-
},
|
|
149
|
-
hidden(){
|
|
150
|
-
this.criteriaShow = !this.criteriaShow
|
|
151
|
-
},
|
|
152
|
-
clear(){
|
|
153
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
154
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
155
|
-
})
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
watch:{
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
computed:{
|
|
162
|
-
gasproperties () {
|
|
163
|
-
let rs = []
|
|
164
|
-
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
165
|
-
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
166
|
-
}
|
|
167
|
-
return [{label: '全部', value: ''}, ...rs]
|
|
168
|
-
},
|
|
169
|
-
selldep () {
|
|
170
|
-
let rs = []
|
|
171
|
-
if(this.$refs.paged.$refs.cri.model.f_filiale){
|
|
172
|
-
this.$refs.paged.$refs.cri.model.f_outlets = ''
|
|
173
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_filiale) ]
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
return [{label: '全部', value: ''}]
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
getCondition(){
|
|
180
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}`,
|
|
181
|
-
item:'f_outlets,op_spot,f_operator'}
|
|
182
|
-
},
|
|
183
|
-
getExportField () {
|
|
184
|
-
return {
|
|
185
|
-
'f_outlets': '部门','op_spot': '站号','f_operator': '名称',
|
|
186
|
-
'f_pregas':'气量',
|
|
187
|
-
'f_preamount': '金额','
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
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" v-show="$parent.$parent.criteriaShow">
|
|
7
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
8
|
+
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
9
|
+
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
10
|
+
v-model="model.startDate"
|
|
11
|
+
:value.sync="model.startDate"
|
|
12
|
+
:format="'yyyy-MM-dd'"
|
|
13
|
+
:show-reset-button="true"
|
|
14
|
+
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
15
|
+
</datepicker>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
18
|
+
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
19
|
+
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
20
|
+
v-model="model.endDate"
|
|
21
|
+
:value.sync="model.endDate"
|
|
22
|
+
:format="'yyyy-MM-dd'"
|
|
23
|
+
:show-reset-button="true"
|
|
24
|
+
condition="f_operate_date <= to_date('{} 23.59.59','yyyy-mm-dd hh24:mi:ss')">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
28
|
+
<label class="font_normal_body _zoom4" >气表类型</label>
|
|
29
|
+
<v-select :value.sync="model.f_meter_type"
|
|
30
|
+
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
31
|
+
condition="f_meter_type = '{}'"
|
|
32
|
+
close-on-select></v-select>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
35
|
+
<label class="font_normal_body _zoom4" >用户类型</label>
|
|
36
|
+
<v-select :value.sync="model.f_user_type"
|
|
37
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
38
|
+
condition="f_user_type = '{}'"
|
|
39
|
+
close-on-select></v-select>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
42
|
+
<label class="font_normal_body _zoom4" >用气性质</label>
|
|
43
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
44
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
45
|
+
condition="f_gasproperties = '{}'"
|
|
46
|
+
close-on-select></v-select>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
+
<label class="font_normal_body _zoom4" >售气单位</label>
|
|
50
|
+
<v-select :value.sync="model.f_filiale"
|
|
51
|
+
v-model="model.f_filiale"
|
|
52
|
+
:options='$parent.$parent.filialelist' placeholder='请选择'
|
|
53
|
+
condition="f_filiale = '{}'"
|
|
54
|
+
close-on-select></v-select>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
57
|
+
<label class="font_normal_body _zoom4" >售气部门</label>
|
|
58
|
+
<v-select :value.sync="model.f_outlets"
|
|
59
|
+
v-model="model.f_outlets"
|
|
60
|
+
:options='$parent.$parent.selldep' placeholder='请选择'
|
|
61
|
+
condition="f_outlets = '{}'"
|
|
62
|
+
close-on-select></v-select>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
65
|
+
<label class="font_normal_body _zoom4" >售气站点</label>
|
|
66
|
+
<input type="text" class="form-control _zoom6" v-model="model.op_spot"
|
|
67
|
+
condition="op_spot = '{}'" placeholder="售气站点">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
70
|
+
<label class="font_normal_body _zoom4" >人员编号</label>
|
|
71
|
+
<input type="text" class="form-control _zoom6" v-model="model.op_id"
|
|
72
|
+
condition="op_id = '{}'" placeholder="操作员编号">
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="row">
|
|
76
|
+
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
77
|
+
<button class="btn btn-success" @click="search()">查询</button>
|
|
78
|
+
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
79
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
80
|
+
:field="$parent.$parent.getExportField"
|
|
81
|
+
sqlurl="rs/logic/exportfile" sql-name="changan_sellgasByItem" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
82
|
+
<print-data :model="$parent.model" :field="$parent.$parent.getExportField"
|
|
83
|
+
:defaultfield="$parent.$parent.defaultfield" print-name="售气按站点"></print-data>
|
|
84
|
+
<div
|
|
85
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
86
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</criteria>
|
|
91
|
+
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
92
|
+
<template partial='head'>
|
|
93
|
+
<tr>
|
|
94
|
+
<th><nobr>部门</nobr></th>
|
|
95
|
+
<th><nobr>站号</nobr></th>
|
|
96
|
+
<th><nobr>名称</nobr></th>
|
|
97
|
+
<th><nobr>气量</nobr></th>
|
|
98
|
+
<th><nobr>金额</nobr></th>
|
|
99
|
+
<th><nobr>数量</nobr></th>
|
|
100
|
+
</tr>
|
|
101
|
+
</template>
|
|
102
|
+
<template partial='body'>
|
|
103
|
+
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
104
|
+
<td style="text-align: center;"><nobr>{{row.op_spot}}</nobr></td>
|
|
105
|
+
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
106
|
+
<td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
|
|
107
|
+
<td style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></td>
|
|
108
|
+
<td style="text-align: center;"><nobr>{{row.c}}</nobr></td>
|
|
109
|
+
</template>
|
|
110
|
+
</data-grid>
|
|
111
|
+
</criteria-paged>
|
|
112
|
+
<table class="table-hover">
|
|
113
|
+
<tr class="table-bordered">
|
|
114
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
115
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">气量合计: {{sumsmodel.f_pregas}}</td>
|
|
116
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">金额合计: {{sumsmodel.f_preamount}}</td>
|
|
117
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">数量合计: {{sumsmodel.c}}</td>
|
|
118
|
+
</tr>
|
|
119
|
+
</table>
|
|
120
|
+
</div>
|
|
121
|
+
</template>
|
|
122
|
+
<script>
|
|
123
|
+
import { PagedList } from 'vue-client'
|
|
124
|
+
import exportConfig from '../config/exportConfig'
|
|
125
|
+
|
|
126
|
+
export default {
|
|
127
|
+
data() {
|
|
128
|
+
return {
|
|
129
|
+
defaultfield:[],
|
|
130
|
+
sumsmodel: {},
|
|
131
|
+
criteriaShow:true,
|
|
132
|
+
model: new PagedList('rs/sql/changan_sellgasByItem', 20,{item:"'f_outlets,op_spot,f_operator'"},{
|
|
133
|
+
f_pregas: 0,f_preamount: 0,c:0
|
|
134
|
+
}),
|
|
135
|
+
metertypes: this.$appdata.getParam('气表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')] : [],
|
|
136
|
+
usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
|
|
137
|
+
filialelist: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
ready(){
|
|
141
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
|
|
142
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
143
|
+
},
|
|
144
|
+
methods: {
|
|
145
|
+
selfSearch (args) {
|
|
146
|
+
this.model.search(args.condition, args.model)
|
|
147
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
148
|
+
},
|
|
149
|
+
hidden(){
|
|
150
|
+
this.criteriaShow = !this.criteriaShow
|
|
151
|
+
},
|
|
152
|
+
clear(){
|
|
153
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
154
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
155
|
+
})
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
watch:{
|
|
159
|
+
|
|
160
|
+
},
|
|
161
|
+
computed:{
|
|
162
|
+
gasproperties () {
|
|
163
|
+
let rs = []
|
|
164
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
165
|
+
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
166
|
+
}
|
|
167
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
168
|
+
},
|
|
169
|
+
selldep () {
|
|
170
|
+
let rs = []
|
|
171
|
+
if(this.$refs.paged.$refs.cri.model.f_filiale){
|
|
172
|
+
this.$refs.paged.$refs.cri.model.f_outlets = ''
|
|
173
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_filiale) ]
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
return [{label: '全部', value: ''}]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
getCondition(){
|
|
180
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`,
|
|
181
|
+
item:'f_outlets,op_spot,f_operator'}
|
|
182
|
+
},
|
|
183
|
+
getExportField () {
|
|
184
|
+
return {
|
|
185
|
+
'f_outlets': '部门','op_spot': '站号','f_operator': '名称',
|
|
186
|
+
'f_pregas':'气量',
|
|
187
|
+
'f_preamount': '金额','c':'数量',
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
</script>
|