manage-client 3.2.8 → 3.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +2 -2
  3. package/src/components/SellReport/BonSummary.vue +178 -244
  4. package/src/components/SellReport/DepartmentPrick.vue +1 -1
  5. package/src/components/SellReport/ManageBusSummary.vue +219 -242
  6. package/src/components/SellReport/ManageGasPrice.vue +176 -241
  7. package/src/components/SellReport/NonResidentGas.vue +203 -244
  8. package/src/components/SellReport/OutletTable.vue +258 -258
  9. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -499
  10. package/src/components/SellReport/SaleMonthReport.vue +153 -227
  11. package/src/components/SellReport/UserSellingGas.vue +177 -251
  12. package/src/components/TelReport/ZhiHuanservice.vue +162 -161
  13. package/src/components/sale/businessquery/BusinesQuery.vue +2 -2
  14. package/src/components/sale/businessquery/NoBusinessQuery.vue +4 -4
  15. package/src/components/sale/config/exportConfig.js +887 -885
  16. package/src/components/statistical/StatisticalAnalysis.vue +252 -247
  17. package/src/components/webmeter/instruction/NewQueryInstruct.vue +2 -2
  18. package/src/filiale/WEINAN/UserGasAll.vue +579 -0
  19. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -0
  20. package/src/filiale/WEINAN/UserGasList.vue +438 -0
  21. package/src/filiale/WEINAN/sale.js +36 -29
  22. package/src/filiale/meihekou/UserQuery.vue +4 -4
  23. package/src/filiale/shaoguan/sale/businessquery/oldMeterList.vue +5 -0
  24. package/src/filiale/tongchuan/sale.js +16 -19
  25. package/src/filiale/wuhai/ChargeQuery.vue +1247 -0
  26. package/src/filiale/wuhai/sale.js +10 -0
  27. package/src/main.js +1 -1
  28. package/src/filiale/tongchuan/CriteriaPaged.vue +0 -49
@@ -1,242 +1,219 @@
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
- <p class="bg-info text-center" style="padding: 8px;">收费结账报表</p>
6
- <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
- <div class="row">
9
- <res-select-group :mul="false" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:res></res-select-group>
10
- <div class="col-sm-2 form-group" >
11
- <label class="font_normal_body" for="startDate">开始日期:</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :disabled-days-of-Week="[]"
16
- :format="'yyyy-MM-dd HH:mm:ss'"
17
- :show-reset-button="reset">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group" >
21
- <label class="font_normal_body" for="endDate">结束日期:</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :disabled-days-of-Week="[]"
26
- :format="'yyyy-MM-dd HH:mm:ss'"
27
- :show-reset-button="reset">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">收费状态</label>
32
- <v-select :value.sync="$parent.$parent.f_state" multiple
33
- v-model="$parent.$parent.f_state"
34
- :options='$parent.$parent.charge_state' placeholder='请选择'
35
- condition="f_state in {}"
36
- close-on-select></v-select>
37
- </div>
38
- </div>
39
- <div class="span" style = "float:right;">
40
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
41
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
42
- <report-excel id='gasprice'></report-excel>
43
- </div>
44
- </div>
45
- </criteria>
46
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
47
- <table class='tableprint' style="margin: 0px auto">
48
- <thead>
49
- <tr>
50
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
51
- <h3 style="text-align: center">收费结账报表</h3>
52
- </th>
53
- </tr>
54
- <tr>
55
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
56
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
57
- 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
58
- <!--打印时间:{{{$parent.printTime}}}-->
59
- 打印时间:{{$parent.printTime}}
60
- <!--收费员:{{// $parent.operatorname}}-->
61
- </th>
62
- </tr>
63
- <tr>
64
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
65
- <div>
66
- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
67
- <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
68
- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$refs.criteria.$refs.res.obj.operatornames[0]">人员:{{$parent.operatorname}}</span>
69
- </div>
70
- </th>
71
- </tr>
72
- </thead>
73
- <tr>
74
- <td :colspan='$parent.spans'>
75
- {{{ model.data.substring(26,model.data.length-8) }}}
76
- </td>
77
- </tr>
78
- <tfoot>
79
- <tr style="text-align: left">
80
- <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
81
- <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
82
- <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
83
- </tr>
84
- </tfoot>
85
- </table>
86
- {{{ $parent.reportStr}}}
87
- </div>
88
- </criteria-paged>
89
- <modal :show.sync="show" v-ref:modal small backdrop="false">
90
- <header slot="modal-header" class="modal-header">
91
- <h4 class="modal-title">输入文件名称</h4>
92
- </header>
93
- <article slot="modal-body" class="modal-body">
94
- <div class="form-group">
95
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
96
- </div>
97
- </article>
98
- <footer slot="modal-footer" class="modal-footer">
99
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
100
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
101
- </footer>
102
- </modal>
103
- </div>
104
- </template>
105
-
106
- <script>
107
- import { DataModel } from 'vue-client'
108
- import co from 'co'
109
- let saveFile = function * (self) {
110
- // 线验证文件是否重名
111
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
112
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
113
- {resolveMsg: null, rejectMsg: null})
114
- if (count.data.length > 0) {
115
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
116
- return
117
- }
118
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
119
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
120
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
121
- f_outlets: this.$login.f.depname})
122
- if (saveBack.data.status === 'succeed') {
123
- self.show = false
124
- self.filename = ''
125
- // 后台保存完成,通知刷新
126
- self.$dispatch('save-success', self.filename)
127
- }
128
- }
129
- export default {
130
- title: '收费结账报表',
131
- props: ['data'],
132
- data () {
133
- return {
134
- printTime: this.$login.toStandardTimeString(),
135
- depresid: [],
136
- userresid: [],
137
- f_orgid: this.$login.f.orgid,
138
- f_depid: this.$login.f.depids,
139
- f_operatorid: this.$login.f.id,
140
- operatorid: [],
141
- depid: [],
142
- orgname: '',
143
- depname: '',
144
- operatorname: '',
145
- orgCondtionStr: '1=1',
146
- f_state:['有效'],
147
- model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
148
- f_orgid: 'this.model.f_orgid'}),
149
- reportStr: null,
150
- show: false,
151
- spans: 0,
152
- initres: {
153
- org: [this.$login.f.orgid],
154
- dep: [],
155
- user: []
156
- }
157
- }
158
- },
159
- ready () {
160
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
161
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
162
- console.log(this.$login.f)
163
- },
164
- methods: {
165
- searchData () {
166
- this.$refs.paged.$refs.criteria.search()
167
- },
168
- selfSearch (args) {
169
- this.printTime = this.$login.toStandardTimeString()
170
- console.log('xxxxxxxxxxx',this.orgCondtionStr)
171
- let orgstr = this.f_state[0] ? "f_state in('" + this.f_state.toString().replace(new RegExp(',','g'), "','") +"') "+ this.orgCondtionStr:this.orgCondtionStr.replace('and', '')
172
- this.$refs.paged.$refs.criteria.model.f_orgid = orgstr
173
- this.$refs.paged.search(args)
174
- },
175
- // 根据文件路径获取储存的报表内容
176
- getFileContent (path) {
177
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
178
- this.reportStr = res.data.filecontent
179
- this.model.state = '正确'
180
- })
181
- },
182
- confirm () {
183
- if (!this.filename || this.filename === '') {
184
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
185
- }
186
- let saveGen = saveFile(this)
187
- co(saveGen)
188
- },
189
- close () {
190
- this.show = false
191
- },
192
- // 将报表保存成文件
193
- confirmReport () {
194
- this.show = true
195
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
196
- },
197
- async getRes (condition, obj) {
198
- this.orgCondtionStr = condition
199
- if(obj.orgnames.length>0){
200
- this.orgname = obj.orgnames[0];
201
- }
202
- if(obj.operatornames.length>0){
203
- let users = await this.$resetpost('rs/sql/manageSingleTable',
204
- {data: {tablename: 't_user', condition: ` id = '${obj.operatornames[0]}'`}},
205
- {resolveMsg: null, rejectMsg: null});
206
- if(users.data){
207
- this.operatorname = users.data[0].name;
208
- }
209
- }
210
- }
211
- },
212
- watch: {
213
- 'data' (val) {
214
- if (val.f_files_path) {
215
- this.getFileContent(val.f_files_path)
216
- } else {
217
- this.reportStr = null
218
- }
219
- },
220
- 'model.data' (val) {
221
- let len=0
222
- let a=val.split('</tr>')
223
- for(let i=0;i<a.length;i++){
224
- if(a[i].split('</td>').length-1>len){
225
- len=a[i].split('</td>').length-1
226
- }
227
- }
228
- this.spans = len
229
- }
230
- },
231
- computed: {
232
- charge_state() {
233
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
234
- }
235
- }
236
- }
237
- </script>
238
- <style scoped>
239
- .noborder{
240
- border: none;
241
- }
242
- </style>
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
+ </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 style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
56
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
57
+ </div>
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">收费状态</label>
61
+ <v-select :value.sync="$parent.$parent.f_state" multiple
62
+ v-model="$parent.$parent.f_state"
63
+ :options='$parent.$parent.charge_state' placeholder='请选择'
64
+ condition="f_state in {}"
65
+ close-on-select></v-select>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </criteria>
70
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
71
+ <table class='tableprint' style="margin: 0px auto">
72
+ <thead>
73
+ <tr>
74
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
75
+ <h3 style="text-align: center">收费结账报表</h3>
76
+ </th>
77
+ </tr>
78
+ <tr>
79
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
80
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
81
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
82
+ <!--打印时间:{{{$parent.printTime}}}-->
83
+ 打印时间:{{$parent.printTime}}
84
+ <!--收费员:{{// $parent.operatorname}}-->
85
+ </th>
86
+ </tr>
87
+ <tr>
88
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
89
+ <div>
90
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
91
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
92
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$refs.criteria.$refs.res.obj.operatornames[0]">人员:{{$parent.operatorname}}</span>
93
+ </div>
94
+ </th>
95
+ </tr>
96
+ </thead>
97
+ <tr>
98
+ <td :colspan='$parent.spans' class="noborder">
99
+ {{{ model.data.substring(26,model.data.length-8) }}}
100
+ </td>
101
+ </tr>
102
+ <tfoot>
103
+ <tr style="text-align: left">
104
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
105
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
106
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
107
+ </tr>
108
+ </tfoot>
109
+ </table>
110
+ {{{ $parent.reportStr}}}
111
+ </div>
112
+ </criteria-paged>
113
+ </div>
114
+ </template>
115
+
116
+ <script>
117
+ import { DataModel } from 'vue-client'
118
+ import co from 'co'
119
+
120
+ export default {
121
+ title: '收费结账报表',
122
+ props: ['data'],
123
+ data () {
124
+ return {
125
+ printTime: this.$login.toStandardTimeString(),
126
+ depresid: [],
127
+ userresid: [],
128
+ f_orgid: this.$login.f.orgid,
129
+ f_depid: this.$login.f.depids,
130
+ f_operatorid: this.$login.f.id,
131
+ operatorid: [],
132
+ depid: [],
133
+ orgname: '',
134
+ depname: '',
135
+ criteriaShow: false,
136
+ operatorname: '',
137
+ orgCondtionStr: '1=1',
138
+ f_state:['有效'],
139
+ model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
140
+ f_orgid: 'this.model.f_orgid'}),
141
+ reportStr: null,
142
+ spans: 0,
143
+ initres: {
144
+ org: [this.$login.f.orgid],
145
+ dep: [],
146
+ user: []
147
+ }
148
+ }
149
+ },
150
+ ready () {
151
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
152
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
153
+ console.log(this.$login.f)
154
+ },
155
+ methods: {
156
+ searchData () {
157
+ this.$refs.paged.$refs.criteria.search()
158
+ },
159
+ selfSearch (args) {
160
+ this.printTime = this.$login.toStandardTimeString()
161
+ let orgcondition ='1=1'
162
+ if (this.f_orgid && this.f_orgid[0]) {
163
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
164
+ }
165
+ if (this.f_depid && this.f_depid[0]) {
166
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
167
+ }
168
+ if(this.f_operatorid && this.f_operatorid[0]) {
169
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
170
+ }
171
+ if(this.f_state && this.f_state[0]) {
172
+ orgcondition += ` and f_state in('${this.f_state.toString().replace(/,/g,"','")}')`
173
+ }
174
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
175
+ this.$refs.paged.search(args)
176
+ },
177
+
178
+ hidden() {
179
+ this.criteriaShow = !this.criteriaShow
180
+ },
181
+ getRes (obj) {
182
+ this.orgname = obj.res[0]
183
+ this.depresid = obj.resids
184
+ this.f_orgid = obj.resids
185
+ },
186
+ getdep (obj, val) {
187
+ this.depname = val[0]
188
+ this.userresid = obj
189
+ this.f_depid = obj
190
+ },
191
+ getuser ( obj, val) {
192
+ this.operatorname = val[0]
193
+ this.f_operatorid = obj
194
+ }
195
+ },
196
+ watch: {
197
+ 'model.data' (val) {
198
+ let len=0
199
+ let a=val.split('</tr>')
200
+ for(let i=0;i<a.length;i++){
201
+ if(a[i].split('</td>').length-1>len){
202
+ len=a[i].split('</td>').length-1
203
+ }
204
+ }
205
+ this.spans = len
206
+ }
207
+ },
208
+ computed: {
209
+ charge_state() {
210
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
211
+ }
212
+ }
213
+ }
214
+ </script>
215
+ <style scoped>
216
+ .noborder{
217
+ border: none;
218
+ }
219
+ </style>