manage-client 3.2.126 → 3.2.127-weinan

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.
@@ -0,0 +1,2 @@
1
+ Manifest-Version: 1.0
2
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.126",
3
+ "version": "3.2.127-weinan",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,237 @@
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-2 form-group" >
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-2 form-group" >
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-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
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-2 form-group">
42
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
43
+ <res-select restype='user'
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
+ -->
51
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
+ </div>
53
+ <div class="span" style = "float:right;">
54
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
55
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
56
+ <report-excel id='gasprice'></report-excel>
57
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
58
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
59
+ </div>
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">用户类型</label>
63
+ <v-select :value.sync="$parent.$parent.f_user_type"
64
+ v-model="$parent.$parent.f_user_type"
65
+ :options='$parent.$parent.user_type' placeholder='请选择'
66
+ condition="f_user_type = '{}'"
67
+ close-on-select></v-select>
68
+ </div>
69
+ <!--<div class="col-sm-2 form-group">-->
70
+ <!--<label class="font_normal_body">收费状态</label>-->
71
+ <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
72
+ <!--v-model="$parent.$parent.f_state"-->
73
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
74
+ <!--condition="f_state in {}"-->
75
+ <!--close-on-select></v-select>-->
76
+ <!--</div>-->
77
+ </div>
78
+ </div>
79
+ </criteria>
80
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
81
+ <table class='tableprint' style="margin: 0px auto">
82
+ <thead>
83
+ <tr>
84
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
85
+ <h3 style="text-align: center">天然气售气表具月报表</h3>
86
+ </th>
87
+ </tr>
88
+ <tr>
89
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
90
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
91
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
92
+ <!--打印时间:{{{$parent.printTime}}}-->
93
+ 打印时间:{{$parent.printTime}}
94
+ <!--收费员:{{// $parent.operatorname}}-->
95
+ </th>
96
+ </tr>
97
+ <tr>
98
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
99
+ <div>
100
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
101
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
102
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$refs.criteria.$refs.res.obj.operatornames[0]">人员:{{$parent.operatorname}}</span>
103
+ </div>
104
+ </th>
105
+ </tr>
106
+ </thead>
107
+ <tr>
108
+ <td :colspan='$parent.spans' class="noborder">
109
+ {{{ model.data.substring(26,model.data.length-8) }}}
110
+ </td>
111
+ </tr>
112
+ <tfoot>
113
+ <tr style="text-align: left">
114
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
115
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
116
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
117
+ </tr>
118
+ </tfoot>
119
+ </table>
120
+ {{{ $parent.reportStr}}}
121
+ </div>
122
+ </criteria-paged>
123
+ </div>
124
+ </template>
125
+
126
+ <script>
127
+ import { DataModel } from 'vue-client'
128
+ import co from 'co'
129
+
130
+ export default {
131
+ title: '天然气售气表具月报表',
132
+ props: ['data'],
133
+ data () {
134
+ return {
135
+ printTime: this.$login.toStandardTimeString(),
136
+ depresid: [],
137
+ userresid: [],
138
+ f_orgid: this.$login.f.orgid,
139
+ f_depid: this.$login.f.depids,
140
+ f_operatorid: this.$login.f.id,
141
+ operatorid: [],
142
+ depid: [],
143
+ orgname: '',
144
+ depname: '',
145
+ criteriaShow: false,
146
+ operatorname: '',
147
+ orgCondtionStr: '1=1',
148
+ f_user_type: '',
149
+ f_state:['有效'],
150
+ model: new DataModel('rs/report/MarketMonthMoney', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
151
+ f_orgid: 'this.model.f_orgid'}),
152
+ reportStr: null,
153
+ resshow:['company','department','operator'],
154
+ spans: 0,
155
+ initres: {
156
+ org: [this.$login.f.orgid],
157
+ dep: [],
158
+ user: []
159
+ }
160
+ }
161
+ },
162
+ ready () {
163
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
164
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
165
+ console.log(this.$login.f)
166
+ },
167
+ methods: {
168
+ searchData () {
169
+ this.$refs.paged.$refs.criteria.search()
170
+ },
171
+ selfSearch (args) {
172
+ this.printTime = this.$login.toStandardTimeString()
173
+ let orgcondition = '1=1'
174
+ let orgstr = this.orgCondtionStr
175
+ orgcondition = orgcondition + orgstr
176
+ console.log('23231312321:',this.f_user_type)
177
+ if(this.f_user_type && this.f_user_type[0]) {
178
+ orgcondition += ` and f_user_type = '${ this.f_user_type} '`
179
+ }
180
+ /* if (this.f_orgid && this.f_orgid[0]) {
181
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
182
+ }
183
+ if (this.f_depid && this.f_depid[0]) {
184
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
185
+ }
186
+ if(this.f_operatorid && this.f_operatorid[0]) {
187
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
188
+ }*/
189
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
190
+ this.$refs.paged.search(args)
191
+ },
192
+
193
+ hidden() {
194
+ this.criteriaShow = !this.criteriaShow
195
+ },
196
+ getRes (condition, obj) {
197
+ this.orgCondtionStr = condition
198
+ this.orgname = obj.orgnames[0]
199
+ this.depname = obj.depnames[0]
200
+ },
201
+ getdep (obj, val) {
202
+ this.depname = val[0]
203
+ this.userresid = obj
204
+ this.f_depid = obj
205
+ },
206
+ getuser ( obj, val) {
207
+ this.operatorname = val[0]
208
+ this.f_operatorid = obj
209
+ }
210
+ },
211
+ watch: {
212
+ 'model.data' (val) {
213
+ let len=0
214
+ let a=val.split('</tr>')
215
+ for(let i=0;i<a.length;i++){
216
+ if(a[i].split('</td>').length-1>len){
217
+ len=a[i].split('</td>').length-1
218
+ }
219
+ }
220
+ this.spans = len
221
+ }
222
+ },
223
+ computed: {
224
+ charge_state() {
225
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
226
+ },
227
+ user_type () {
228
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
229
+ }
230
+ }
231
+ }
232
+ </script>
233
+ <style scoped>
234
+ .noborder{
235
+ border: none;
236
+ }
237
+ </style>
@@ -1,441 +1,439 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd 00:00:00'"
15
- :show-reset-button="true">
16
- </datepicker>
17
- </div>
18
- <div class="col-sm-2 form-group">
19
- <label for="endDate" class="font_normal_body">结束日期</label>
20
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
21
- v-model="model.endDate"
22
- :value.sync="model.endDate"
23
- :format="'yyyy-MM-dd 23:59:59'"
24
- :show-reset-button="true">
25
- </datepicker>
26
- </div>
27
- <div class="col-sm-2 form-group">
28
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
- <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
- <res-select restype='department'
34
- @res-select="$parent.$parent.getdep"
35
- :parentresid="$parent.$parent.depresid"
36
- :initresid='$parent.$parent.depid'>
37
- </res-select>
38
-
39
- </div>
40
- <div class="col-sm-2 form-group">
41
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
42
- <res-select restype='user'
43
- is-mul="false"
44
- @res-select="$parent.$parent.getuser"
45
- :parentresid="$parent.$parent.userresid"
46
- :initresid='$parent.$parent.operatorid'>
47
- </res-select>
48
- </div>
49
- <div class="span" style="float:right;">
50
- <button class="button_search button_spacing" @click="search()">查询</button>
51
-
52
- <export-excel :data="$parent.$parent.getCondition"
53
- :field="$parent.$parent.getfield"
54
- :footer="$parent.$parent.footer"
55
- :header="$parent.$parent.other"
56
- sqlurl="rs/logic/exportfile"
57
- sql-name="userGasFillCard"
58
- template-name='营业厅明细导出'
59
- :choose-col="true"></export-excel>
60
- <print-data-self :model="$parent.model" :field="$parent.$parent.getfield"
61
- :defaultfield="$parent.$parent.defaultfield" printName="营业厅明细"
62
- :sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.sumField" :page-sum="$parent.$parent.pageSum"
63
- :start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
64
- ></print-data-self>
65
- </div>
66
- </div>
67
- </div>
68
- </criteria>
69
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
70
- <template partial='head'>
71
- <tr>
72
- <th>
73
- <nobr>序号</nobr>
74
- </th>
75
- <th>
76
- <nobr>用户编号</nobr>
77
- </th>
78
- <th>
79
- <nobr>用户名称</nobr>
80
- </th>
81
- <th>
82
- <nobr>用户地址</nobr>
83
- </th>
84
- <th>
85
- <nobr>购气气量</nobr>
86
- </th>
87
- <th>
88
- <nobr>阶一气量</nobr>
89
- </th>
90
- <th>
91
- <nobr>阶二气量</nobr>
92
- </th>
93
- <th>
94
- <nobr>阶三气量</nobr>
95
- </th>
96
- <th>
97
- <nobr>收费金额</nobr>
98
- </th>
99
- <th>
100
- <nobr>用户类型</nobr>
101
- </th>
102
- <th>
103
- <nobr>收费类型</nobr>
104
- </th>
105
- <th>
106
- <nobr>日期</nobr>
107
- </th>
108
- <th>
109
- <nobr>操作员</nobr>
110
- </th>
111
- <th>
112
- <nobr>订单号</nobr>
113
- </th>
114
- <th>
115
- <nobr>发票类型</nobr>
116
- </th>
117
- </tr>
118
- </template>
119
- <template partial='body'>
120
- <td style="text-align:center">
121
- <nobr>{{$index+1}}</nobr>
122
- </td>
123
- <td style="text-align: center;">
124
- <nobr>{{row.f_userinfo_code}}</nobr>
125
- </td>
126
- <td style="text-align: center;">
127
- <nobr>{{row.f_user_name}}</nobr>
128
- </td>
129
- <td style="text-align: center;">
130
- <nobr>{{row.f_residential_area}}</nobr>
131
- </td>
132
- <td style="text-align: center;">
133
- <nobr>{{row.f_pregas}}</nobr>
134
- </td>
135
- <td style="text-align: center;">
136
- <nobr>{{row.f_gas1}}</nobr>
137
- </td>
138
- <td style="text-align: center;">
139
- <nobr>{{row.f_gas2}}</nobr>
140
- </td>
141
- <td style="text-align: center;">
142
- <nobr>{{row.f_gas3}}</nobr>
143
- </td>
144
- <td style="text-align: center;">
145
- <nobr>{{row.f_preamount}}</nobr>
146
- </td>
147
- <td style="text-align: center;">
148
- <nobr>{{row.f_user_type}}</nobr>
149
- </td>
150
- <td style="text-align: center;">
151
- <nobr>{{row.f_type}}</nobr>
152
- </td>
153
- <td style="text-align: center;">
154
- <nobr>{{row.f_date}}</nobr>
155
- </td>
156
- <td style="text-align: center;">
157
- <nobr>{{row.f_operator}}</nobr>
158
- </td>
159
- <td style="text-align: center;">
160
- <nobr>{{row.f_bill_number}}</nobr>
161
- </td>
162
- <td style="text-align: center;">
163
- <nobr>{{row.f_bill_style}}</nobr>
164
- </td>
165
- </template>
166
- <template partial='foot'></template>
167
- </data-grid>
168
- </criteria-paged>
169
- <table class="table-hover">
170
- <tr style="position: relative" class="table-bordered">
171
- <td
172
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
173
- 报表统计时间
174
- </td>
175
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
176
- {{startDate}}
177
- </td>
178
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
179
- {{startDate+" 至 "+endDate}}
180
- </td>
181
- </tr>
182
- <tr style="position: relative" class="table-bordered">
183
- <td
184
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
185
- 汇总信息
186
- </td>
187
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
188
- 卡费:&emsp;{{sumsmodel.cardfee.toFixed(2)}}
189
- </td>
190
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
191
- 合计方量:&emsp;{{sumsmodel.f_pregas.toFixed(2)}}
192
- </td>
193
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
194
- 小计:{{sumsmodel.xiaoji.toFixed(2)}}
195
- </td>
196
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
197
- 现金收入:&emsp;{{(sumsmodel.xianjin-sumsmodel.cardfee).toFixed(2)}}
198
- </td>
199
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
200
- 转账收入:&emsp;{{sumsmodel.zhuanzhang.toFixed(2)}}&emsp;
201
- </td>
202
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
203
- 合计金额:&emsp;{{(sumsmodel.f_preamount-sumsmodel.cardfee).toFixed(2)}}
204
- </td>
205
- </tr>
206
- </table>
207
- </div>
208
- </div>
209
- </div>
210
- </template>
211
- <script>
212
- import {PagedList, HttpResetClass} from 'vue-client'
213
- import defaultPrint from '../sale/config/DefaultPrint'
214
- import exportConfig from '../sale/config/exportConfig'
215
- import PrintDataSelf from '../sale/common/PrintDataSelf'
216
-
217
- let readySomething = async function (self) {
218
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
219
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
220
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
221
- }
222
- export default {
223
- title: '营业厅明细报表',
224
- props: ['data'],
225
- data() {
226
- return {
227
- depresid: [],
228
- userresid: [],
229
- f_orgid: this.$login.f.orgid,
230
- f_depid: this.$login.f.depids,
231
- f_operatorid: this.$login.f.id,
232
- operatorid: [],
233
- depid: [],
234
- orgname: '',
235
- depname: [],
236
- operatorname: '',
237
- orgCondtionStr: '1=1',
238
- data: {},
239
- other:[],
240
- footer:[],
241
- model: new PagedList('rs/sql/userGasFillCard', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
242
- cardfee:0,
243
- f_pregas:0,
244
- f_preamount:0,
245
- xianjin:0,
246
- zhuanzhang:0
247
- }),
248
- gasproperties:[],
249
- show:false,
250
- rowdata:{},
251
- residentialArea: [],
252
- modelval: [],
253
- startDate:"",
254
- endDate:"",
255
- inputtouPerson: [],
256
- printshow: false,
257
- all: false,
258
- fields: {},
259
- thead: '',
260
- tfoot: '',
261
-
262
- // 下拉框
263
-
264
- //合计数据
265
- sumsmodel: {},
266
- sumField: {
267
- 'cardfee': '卡费', 'f_pregas': '方量', 'f_preamount': '金额', 'xiaoji': '小计','xianjin': '现金',
268
- 'zhuanzhang': '转账'
269
- },
270
- pageSum: {
271
- 'cardfee': '0.00',
272
- 'f_pregas': '0.00',
273
- 'f_preamount': '0.00',
274
- 'xianjin': '0.00',
275
- 'zhuanzhang': '0.00'
276
- },
277
- defaultfield: [],
278
- config: {
279
- defaultPrint: ['f_userinfo_code', 'f_user_name']
280
- },
281
- batchmoneyShow:false
282
- }
283
- },
284
- ready() {
285
- readySomething(this).then(() => {
286
- this.$emit('ready')
287
- }).catch((error) => {
288
- this.$emit('error', error)
289
- })
290
- },
291
- methods: {
292
- getotherfooter(){
293
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
294
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
295
- this.other=[];
296
- this.footer=[];
297
- let exportdata = this.getCondition;
298
- let otherInData=[];
299
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
300
- let footerData=[],exportfield=this.getfield;
301
- footerData.push("合计");
302
- let self =this;
303
- for(var field in self.sumsmodel){
304
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
305
- }
306
- this.footer.push(footerData);
307
- this.other.push(otherInData);
308
- },
309
- search(){
310
- this.$refs.paged.$refs.cri.search()
311
- },
312
- selfSearch(args) {
313
- let orgcondition = ' s.f_orgid in (' + this.f_orgid + ')'
314
- if (this.f_depid[0]) {
315
- orgcondition += " and s.f_depid in("+this.f_depid.toString()+')'
316
- }
317
- if(this.f_operatorid[0]) {
318
- orgcondition += ' and s.f_operatorid in (' + this.f_operatorid + ')'
319
- }
320
- this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
321
- this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
322
- this.orgCondtionStr=orgcondition
323
- this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
324
- this.model.search(args.f_orgid, args.model)
325
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
326
- },
327
- getRes (obj) {
328
- this.orgname = obj.res[0]
329
- this.depresid = obj.resids
330
- this.f_orgid = obj.resids
331
- },
332
- getdep (obj, val) {
333
- this.depname = val
334
- this.userresid = obj
335
- this.f_depid = obj
336
- },
337
- getuser ( obj, val) {
338
- this.operatorname = val[0]
339
- this.f_operatorid = obj
340
- },
341
- stamp() {
342
- this.all = false
343
- //默认选择要打印的列
344
- this.modelval = defaultPrint.config
345
- this.fields = this.getfield
346
- console.log('所有打印字段', this.fields)
347
- this.printshow = true
348
- this.put()
349
- },
350
- put() {
351
- // 对Modelval进行排序
352
- this.sortModelval()
353
- this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
354
- for (let key of this.modelval) {
355
- this.thead += '<th>' + this.fields[key] + '</th>'
356
- }
357
- this.thead += '</tr>'
358
- },
359
- print() {
360
- this.$refs.print.PrintAsFile()
361
- this.printshow = false
362
- },
363
- dealmsg(val) {
364
- console.log('---------------dealmsg')
365
- this.rowdata=val
366
- this.show=true
367
- val.model = this.model.model
368
- this.$dispatch('deal-msg', val)
369
- },
370
- close() {
371
- this.printshow = false
372
- this.all = false
373
- },
374
- // 对选择的列进行排序
375
- sortModelval() {
376
- let sortModel = []
377
- Object.keys(this.fields).forEach((key) => {
378
- if (this.modelval.includes(key)) {
379
- sortModel.push(key)
380
- }
381
- })
382
- this.modelval = sortModel
383
- console.log('选择的打印的字段', this.modelval)
384
- },
385
- userTypeChange () {
386
- this.gasproperties=[]
387
- if(this.$refs.paged.$refs.criteria.model !==null) {
388
- this.$refs.paged.$refs.criteria.model.f_gasproperties=''
389
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
390
- }
391
- else{
392
- this.gasproperties =[{label: '全部', value: ''}]
393
- }
394
- },
395
- },
396
- watch: {
397
- 'all'(val) {
398
- if (val) {
399
- this.modelval = this.bodyData
400
- } else {
401
- this.modelval = defaultPrint.config
402
- this.put()
403
- }
404
- },
405
- 'modelval.length'() {
406
- this.put()
407
- },
408
- sumsmodel:{
409
- handler: function(val) {
410
- this.getotherfooter();
411
- },
412
- deep: true
413
- }
414
- },
415
- computed: {
416
- getCondition() {
417
- return {
418
- startDate: this.$refs.paged.$refs.cri.model.startDate,
419
- endDate: this.$refs.paged.$refs.cri.model.endDate,
420
- f_orgid: this.orgCondtionStr
421
-
422
- }
423
-
424
- },
425
- getfield() {
426
- return exportConfig.UserGasFillCardConfig
427
- },
428
- whetherpaies () {
429
- return [
430
- {label: '全部', value: ''},
431
- {label: '已缴费', value: '是'},
432
- {label: '未缴费', value: '否'}
433
- ]
434
- },
435
- usertypes() {
436
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
437
- }
438
-
439
- }
440
- }
441
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd 00:00:00'"
15
+ :show-reset-button="true">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label for="endDate" class="font_normal_body">结束日期</label>
20
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :format="'yyyy-MM-dd 23:59:59'"
24
+ :show-reset-button="true">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ @res-select="$parent.$parent.getdep"
35
+ :parentresid="$parent.$parent.depresid"
36
+ :initresid='$parent.$parent.depid'>
37
+ </res-select>
38
+
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
42
+ <res-select restype='user'
43
+ is-mul="false"
44
+ @res-select="$parent.$parent.getuser"
45
+ :parentresid="$parent.$parent.userresid"
46
+ :initresid='$parent.$parent.operatorid'>
47
+ </res-select>
48
+ </div>
49
+ <div class="span" style="float:right;">
50
+ <button class="button_search button_spacing" @click="search()">查询</button>
51
+
52
+ <export-excel :data="$parent.$parent.getCondition"
53
+ :field="$parent.$parent.getfield"
54
+ :footer="$parent.$parent.footer"
55
+ :header="$parent.$parent.other"
56
+ sqlurl="rs/logic/exportfile"
57
+ sql-name="userGasFillCard"
58
+ template-name='营业厅明细导出'
59
+ :choose-col="true"></export-excel>
60
+ <print-data-self :model="$parent.model" :field="$parent.$parent.getfield"
61
+ :defaultfield="$parent.$parent.defaultfield" printName="营业厅明细"
62
+ :sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.sumField" :page-sum="$parent.$parent.pageSum"
63
+ :start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
64
+ ></print-data-self>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </criteria>
69
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
70
+ <template partial='head'>
71
+ <tr>
72
+ <th>
73
+ <nobr>序号</nobr>
74
+ </th>
75
+ <th>
76
+ <nobr>用户编号</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>用户名称</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>用户地址</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>购气气量</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>阶一气量</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>阶二气量</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>阶三气量</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>收费金额</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>用户类型</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>收费类型</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>日期</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>操作员</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>订单号</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>发票类型</nobr>
116
+ </th>
117
+ </tr>
118
+ </template>
119
+ <template partial='body'>
120
+ <td style="text-align:center">
121
+ <nobr>{{$index+1}}</nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr>{{row.f_userinfo_code}}</nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr>{{row.f_user_name}}</nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>{{row.f_residential_area}}</nobr>
131
+ </td>
132
+ <td style="text-align: center;">
133
+ <nobr>{{row.f_pregas}}</nobr>
134
+ </td>
135
+ <td style="text-align: center;">
136
+ <nobr>{{row.f_gas1}}</nobr>
137
+ </td>
138
+ <td style="text-align: center;">
139
+ <nobr>{{row.f_gas2}}</nobr>
140
+ </td>
141
+ <td style="text-align: center;">
142
+ <nobr>{{row.f_gas3}}</nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr>{{row.f_preamount}}</nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr>{{row.f_user_type}}</nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr>{{row.f_type}}</nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.f_date}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.f_operator}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_bill_number}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.f_bill_style}}</nobr>
164
+ </td>
165
+ </template>
166
+ <template partial='foot'></template>
167
+ </data-grid>
168
+ </criteria-paged>
169
+ <table class="table-hover">
170
+ <tr style="position: relative" class="table-bordered">
171
+ <td
172
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
173
+ 报表统计时间
174
+ </td>
175
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
176
+ {{startDate}}
177
+ </td>
178
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
179
+ {{startDate+" 至 "+endDate}}
180
+ </td>
181
+ </tr>
182
+ <tr style="position: relative" class="table-bordered">
183
+ <td
184
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
185
+ 汇总信息
186
+ </td>
187
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
188
+ 卡费:&emsp;{{sumsmodel.cardfee.toFixed(2)}}
189
+ </td>
190
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
191
+ 合计方量:&emsp;{{sumsmodel.f_pregas.toFixed(2)}}
192
+ </td>
193
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
194
+ 小计:{{sumsmodel.xiaoji.toFixed(2)}}
195
+ </td>
196
+ <!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
197
+ <!--现金收入:&emsp;{{(sumsmodel.xianjin-sumsmodel.cardfee).toFixed(2)}}-->
198
+ <!--</td>-->
199
+ <!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
200
+ <!--转账收入:&emsp;{{sumsmodel.zhuanzhang.toFixed(2)}}&emsp;-->
201
+ <!--</td>-->
202
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
203
+ 合计金额:&emsp;{{(sumsmodel.f_preamount-sumsmodel.cardfee).toFixed(2)}}
204
+ </td>
205
+ </tr>
206
+ </table>
207
+ </div>
208
+ </div>
209
+ </div>
210
+ </template>
211
+ <script>
212
+ import {PagedList, HttpResetClass} from 'vue-client'
213
+ import defaultPrint from '../sale/config/DefaultPrint'
214
+ import exportConfig from '../sale/config/exportConfig'
215
+ import PrintDataSelf from '../sale/common/PrintDataSelf'
216
+
217
+ let readySomething = async function (self) {
218
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
219
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
220
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
221
+ }
222
+ export default {
223
+ title: '营业厅明细报表',
224
+ props: ['data'],
225
+ data() {
226
+ return {
227
+ depresid: [],
228
+ userresid: [],
229
+ f_orgid: this.$login.f.orgid,
230
+ f_depid: this.$login.f.depids,
231
+ f_operatorid: this.$login.f.id,
232
+ operatorid: [],
233
+ depid: [],
234
+ orgname: '',
235
+ depname: [],
236
+ operatorname: '',
237
+ orgCondtionStr: '1=1',
238
+ data: {},
239
+ other:[],
240
+ footer:[],
241
+ model: new PagedList('rs/sql/userGasFillCard', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
242
+ cardfee:0,
243
+ f_pregas:0,
244
+ f_preamount:0
245
+ }),
246
+ gasproperties:[],
247
+ show:false,
248
+ rowdata:{},
249
+ residentialArea: [],
250
+ modelval: [],
251
+ startDate:"",
252
+ endDate:"",
253
+ inputtouPerson: [],
254
+ printshow: false,
255
+ all: false,
256
+ fields: {},
257
+ thead: '',
258
+ tfoot: '',
259
+
260
+ // 下拉框
261
+
262
+ //合计数据
263
+ sumsmodel: {},
264
+ sumField: {
265
+ 'cardfee': '卡费', 'f_pregas': '方量', 'f_preamount': '金额', 'xiaoji': '小计','xianjin': '现金',
266
+ 'zhuanzhang': '转账'
267
+ },
268
+ pageSum: {
269
+ 'cardfee': '0.00',
270
+ 'f_pregas': '0.00',
271
+ 'f_preamount': '0.00',
272
+ 'xianjin': '0.00',
273
+ 'zhuanzhang': '0.00'
274
+ },
275
+ defaultfield: [],
276
+ config: {
277
+ defaultPrint: ['f_userinfo_code', 'f_user_name']
278
+ },
279
+ batchmoneyShow:false
280
+ }
281
+ },
282
+ ready() {
283
+ readySomething(this).then(() => {
284
+ this.$emit('ready')
285
+ }).catch((error) => {
286
+ this.$emit('error', error)
287
+ })
288
+ },
289
+ methods: {
290
+ getotherfooter(){
291
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
292
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
293
+ this.other=[];
294
+ this.footer=[];
295
+ let exportdata = this.getCondition;
296
+ let otherInData=[];
297
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
298
+ let footerData=[],exportfield=this.getfield;
299
+ footerData.push("合计");
300
+ let self =this;
301
+ for(var field in self.sumsmodel){
302
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
303
+ }
304
+ this.footer.push(footerData);
305
+ this.other.push(otherInData);
306
+ },
307
+ search(){
308
+ this.$refs.paged.$refs.cri.search()
309
+ },
310
+ selfSearch(args) {
311
+ let orgcondition = ' s.f_orgid in (' + this.f_orgid + ')'
312
+ if (this.f_depid[0]) {
313
+ orgcondition += " and s.f_depid in("+this.f_depid.toString()+')'
314
+ }
315
+ if(this.f_operatorid[0]) {
316
+ orgcondition += ' and s.f_operatorid in (' + this.f_operatorid + ')'
317
+ }
318
+ this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
319
+ this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
320
+ this.orgCondtionStr=orgcondition
321
+ this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
322
+ this.model.search(args.f_orgid, args.model)
323
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
324
+ },
325
+ getRes (obj) {
326
+ this.orgname = obj.res[0]
327
+ this.depresid = obj.resids
328
+ this.f_orgid = obj.resids
329
+ },
330
+ getdep (obj, val) {
331
+ this.depname = val
332
+ this.userresid = obj
333
+ this.f_depid = obj
334
+ },
335
+ getuser ( obj, val) {
336
+ this.operatorname = val[0]
337
+ this.f_operatorid = obj
338
+ },
339
+ stamp() {
340
+ this.all = false
341
+ //默认选择要打印的列
342
+ this.modelval = defaultPrint.config
343
+ this.fields = this.getfield
344
+ console.log('所有打印字段', this.fields)
345
+ this.printshow = true
346
+ this.put()
347
+ },
348
+ put() {
349
+ // 对Modelval进行排序
350
+ this.sortModelval()
351
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
352
+ for (let key of this.modelval) {
353
+ this.thead += '<th>' + this.fields[key] + '</th>'
354
+ }
355
+ this.thead += '</tr>'
356
+ },
357
+ print() {
358
+ this.$refs.print.PrintAsFile()
359
+ this.printshow = false
360
+ },
361
+ dealmsg(val) {
362
+ console.log('---------------dealmsg')
363
+ this.rowdata=val
364
+ this.show=true
365
+ val.model = this.model.model
366
+ this.$dispatch('deal-msg', val)
367
+ },
368
+ close() {
369
+ this.printshow = false
370
+ this.all = false
371
+ },
372
+ // 对选择的列进行排序
373
+ sortModelval() {
374
+ let sortModel = []
375
+ Object.keys(this.fields).forEach((key) => {
376
+ if (this.modelval.includes(key)) {
377
+ sortModel.push(key)
378
+ }
379
+ })
380
+ this.modelval = sortModel
381
+ console.log('选择的打印的字段', this.modelval)
382
+ },
383
+ userTypeChange () {
384
+ this.gasproperties=[]
385
+ if(this.$refs.paged.$refs.criteria.model !==null) {
386
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
387
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
388
+ }
389
+ else{
390
+ this.gasproperties =[{label: '全部', value: ''}]
391
+ }
392
+ },
393
+ },
394
+ watch: {
395
+ 'all'(val) {
396
+ if (val) {
397
+ this.modelval = this.bodyData
398
+ } else {
399
+ this.modelval = defaultPrint.config
400
+ this.put()
401
+ }
402
+ },
403
+ 'modelval.length'() {
404
+ this.put()
405
+ },
406
+ sumsmodel:{
407
+ handler: function(val) {
408
+ this.getotherfooter();
409
+ },
410
+ deep: true
411
+ }
412
+ },
413
+ computed: {
414
+ getCondition() {
415
+ return {
416
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
417
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
418
+ f_orgid: this.orgCondtionStr
419
+
420
+ }
421
+
422
+ },
423
+ getfield() {
424
+ return exportConfig.UserGasFillCardConfig
425
+ },
426
+ whetherpaies () {
427
+ return [
428
+ {label: '全部', value: ''},
429
+ {label: '已缴费', value: '是'},
430
+ {label: '未缴费', value: '否'}
431
+ ]
432
+ },
433
+ usertypes() {
434
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
435
+ }
436
+
437
+ }
438
+ }
439
+ </script>
@@ -558,6 +558,10 @@ export default function (filiale) {
558
558
  Vue.component('price-report-whwu', (resolve) => {
559
559
  require(['./components/SellReport/PriceReportWHwu'], resolve)
560
560
  })
561
+ // 天然气售气表具月报表
562
+ Vue.component('market-month-money', (resolve) => {
563
+ require(['./components/SellReport/MarketMonthMoney'], resolve)
564
+ })
561
565
  if (filiale) {
562
566
  let filialeComp = require(`./filiale/${filiale}/reportManage`).specialComp
563
567
  Vue.filialeInfo = Vue.prototype.$filialeInfo = filiale
File without changes