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,258 +1,258 @@
1
- <template>
2
- <div class="basic-main" style="height: 98%;">
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
- <div class="col-sm-4" >
10
- <label class="font_normal_body" for="startDate">开始日期:</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :disabled-days-of-Week="[]"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="reset">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-4" >
20
- <label class="font_normal_body" for="endDate">结束日期:</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :disabled-days-of-Week="[]"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-4">
30
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
31
- <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
- </div>
33
- <div class="col-sm-4">
34
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
35
- <res-select restype='department'
36
- is-mul="false"
37
- @res-select="$parent.$parent.getdep"
38
- :parentresid="$parent.$parent.depresid"
39
- :initresid='$parent.$parent.depid'>
40
- </res-select>
41
-
42
- </div>
43
- <div class="col-sm-4">
44
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
45
- <res-select restype='user'
46
- is-mul="false"
47
- @res-select="$parent.$parent.getuser"
48
- :parentresid="$parent.$parent.userresid"
49
- :initresid='$parent.$parent.operatorid'>
50
- </res-select>
51
- </div>
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>
58
- </div>
59
- </criteria>
60
- <div partial='list' v-el:handcollect id='gasprice'>
61
- <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
62
- <thead>
63
- <tr>
64
- <th colspan={{$parent.spans}} style="font-weight: normal; text-align: left;">
65
- <h3 style="text-align: center">营业网点统计报表</h3>
66
- </th>
67
- </tr>
68
- <tr>
69
- <th colspan={{$parent.spans}} style="font-weight: normal; text-align: center;">
70
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
71
- 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
72
- </th>
73
- </tr>
74
- <tr>
75
- <th colspan={{$parent.spans}} style="font-weight: normal; text-align: center;">
76
- 打印时间:{{{$parent.printTime}}}
77
- </th>
78
- </tr>
79
- <tr>
80
- <th colspan={{$parent.spans}} style="font-weight: normal; text-align: center;">
81
- <div>
82
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
83
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
84
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
85
- </div>
86
- </th>
87
- </tr>
88
- </thead>
89
- <tr>
90
- <td colspan={{$parent.spans}} >
91
- {{{ model.data.substring(26,model.data.length-8) }}}
92
- </td>
93
- </tr>
94
- <tfoot>
95
- <tr style="text-align: left">
96
- <th colspan={{$parent.spans/3}}>财务审核:</th>
97
- <th colspan={{$parent.spans/3}}>收款审核:</th>
98
- <th colspan={{$parent.spans/3}}>收款员:</th>
99
- </tr>
100
- </tfoot>
101
- </table>
102
- {{{ $parent.reportStr}}}
103
- </div>
104
- </criteria-paged>
105
- <modal :show.sync="show" v-ref:modal small backdrop="false">
106
- <header slot="modal-header" class="modal-header">
107
- <h4 class="modal-title">输入文件名称</h4>
108
- </header>
109
- <article slot="modal-body" class="modal-body">
110
- <div class="form-group">
111
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
112
- </div>
113
- </article>
114
- <footer slot="modal-footer" class="modal-footer">
115
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
116
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
117
- </footer>
118
- </modal>
119
- </div>
120
- </template>
121
-
122
- <script>
123
- import { DataModel } from 'vue-client'
124
- import co from 'co'
125
- let saveFile = function * (self) {
126
- // 线验证文件是否重名
127
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
128
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
129
- {resolveMsg: null, rejectMsg: null})
130
- if (count.data.length > 0) {
131
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
132
- return
133
- }
134
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
135
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
136
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
137
- f_outlets: this.$login.f.depname})
138
- if (saveBack.data.status === 'succeed') {
139
- self.show = false
140
- self.filename = ''
141
- // 后台保存完成,通知刷新
142
- self.$dispatch('save-success', self.filename)
143
- }
144
- }
145
- export default {
146
- title: '营业网点统计报表',
147
- props: ['data'],
148
- data () {
149
- return {
150
- printTime: this.$login.toStandardTimeString(),
151
- depresid: [],
152
- userresid: [],
153
- f_orgid: this.$login.f.orgid,
154
- f_depid: this.$login.f.depids,
155
- f_operatorid: this.$login.f.id,
156
- operatorid: [],
157
- depid: [],
158
- orgname: '',
159
- spans:0,
160
- depname: '',
161
- operatorname: '',
162
- orgCondtionStr: '1=1',
163
- model: new DataModel('rs/report/outletTable', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
164
- f_orgid: 'this.model.f_orgid'}),
165
- reportStr: null,
166
- show: false
167
- }
168
- },
169
- ready () {
170
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
171
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
172
- },
173
- methods: {
174
- searchData () {
175
- this.$refs.paged.$refs.criteria.search()
176
- },
177
- selfSearch (args) {
178
- this.printTime = this.$login.toStandardTimeString()
179
- let orgcondition = '1=1'
180
- if (this.f_orgid[0]) {
181
- orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
182
- }
183
- if (this.f_depid[0]) {
184
- orgcondition += ' and f_depid in (' + this.f_depid + ')'
185
- }
186
- if (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
- getRes (obj) {
193
- this.orgname = obj.res[0]
194
- this.depresid = obj.resids
195
- this.f_orgid = obj.resids
196
- },
197
- getdep (obj, val) {
198
- // this.depname = val[0]
199
- this.userresid = obj
200
- this.f_depid = obj
201
- },
202
- getuser ( obj, val) {
203
- this.operatorname = val[0]
204
- this.f_operatorid = obj
205
- },
206
-
207
- // 根据文件路径获取储存的报表内容
208
- getFileContent (path) {
209
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
210
- this.reportStr = res.data.filecontent
211
- this.model.state = '正确'
212
- })
213
- },
214
- confirm () {
215
- if (!this.filename || this.filename === '') {
216
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
217
- }
218
- let saveGen = saveFile(this)
219
- co(saveGen)
220
- },
221
- close () {
222
- this.show = false
223
- },
224
- // 将报表保存成文件
225
- confirmReport () {
226
- this.show = true
227
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
228
- }
229
- },
230
- watch: {
231
- 'data' (val) {
232
- if (val.f_files_path) {
233
- this.getFileContent(val.f_files_path)
234
- } else {
235
- this.reportStr = null
236
- }
237
- },
238
- 'model.data' (val) {
239
- let len=0
240
- let a=val.split('</tr>')
241
- for(let i=0;i<a.length;i++){
242
- if(a[i].split('</td>').length-1>len){
243
- len=a[i].split('</td>').length-1
244
- }
245
- continue
246
- }
247
- this.spans=len
248
- }
249
- },
250
- computed: {
251
- }
252
- }
253
- </script>
254
- <style scoped>
255
- .noborder{
256
- border: none;
257
- }
258
- </style>
1
+ <template>
2
+ <div class="basic-main" style="height: 98%;">
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
+ <div class="col-sm-4" >
10
+ <label class="font_normal_body" for="startDate">开始日期:</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-4" >
20
+ <label class="font_normal_body" for="endDate">结束日期:</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :disabled-days-of-Week="[]"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-4">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
31
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
+ </div>
33
+ <div class="col-sm-4">
34
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
35
+ <res-select restype='department'
36
+ is-mul="false"
37
+ @res-select="$parent.$parent.getdep"
38
+ :parentresid="$parent.$parent.depresid"
39
+ :initresid='$parent.$parent.depid'>
40
+ </res-select>
41
+
42
+ </div>
43
+ <div class="col-sm-4">
44
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
45
+ <res-select restype='user'
46
+ is-mul="false"
47
+ @res-select="$parent.$parent.getuser"
48
+ :parentresid="$parent.$parent.userresid"
49
+ :initresid='$parent.$parent.operatorid'>
50
+ </res-select>
51
+ </div>
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>
58
+ </div>
59
+ </criteria>
60
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow: scroll">
61
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
62
+ <thead>
63
+ <tr>
64
+ <th colspan={{$parent.spans}} style="font-weight: normal; text-align: left;">
65
+ <h3 style="text-align: center">营业网点统计报表</h3>
66
+ </th>
67
+ </tr>
68
+ <tr>
69
+ <th colspan={{$parent.spans}} style="font-weight: normal; text-align: center;">
70
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
71
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
72
+ </th>
73
+ </tr>
74
+ <tr>
75
+ <th colspan={{$parent.spans}} style="font-weight: normal; text-align: center;">
76
+ 打印时间:{{{$parent.printTime}}}
77
+ </th>
78
+ </tr>
79
+ <tr>
80
+ <th colspan={{$parent.spans}} style="font-weight: normal; text-align: center;">
81
+ <div>
82
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
83
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
84
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
85
+ </div>
86
+ </th>
87
+ </tr>
88
+ </thead>
89
+ <tr>
90
+ <td colspan={{$parent.spans}} >
91
+ {{{ model.data.substring(26,model.data.length-8) }}}
92
+ </td>
93
+ </tr>
94
+ <tfoot>
95
+ <tr style="text-align: left">
96
+ <th colspan={{$parent.spans/3}}>财务审核:</th>
97
+ <th colspan={{$parent.spans/3}}>收款审核:</th>
98
+ <th colspan={{$parent.spans/3}}>收款员:</th>
99
+ </tr>
100
+ </tfoot>
101
+ </table>
102
+ {{{ $parent.reportStr}}}
103
+ </div>
104
+ </criteria-paged>
105
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
106
+ <header slot="modal-header" class="modal-header">
107
+ <h4 class="modal-title">输入文件名称</h4>
108
+ </header>
109
+ <article slot="modal-body" class="modal-body">
110
+ <div class="form-group">
111
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
112
+ </div>
113
+ </article>
114
+ <footer slot="modal-footer" class="modal-footer">
115
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
116
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
117
+ </footer>
118
+ </modal>
119
+ </div>
120
+ </template>
121
+
122
+ <script>
123
+ import { DataModel } from 'vue-client'
124
+ import co from 'co'
125
+ let saveFile = function * (self) {
126
+ // 线验证文件是否重名
127
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
128
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
129
+ {resolveMsg: null, rejectMsg: null})
130
+ if (count.data.length > 0) {
131
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
132
+ return
133
+ }
134
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
135
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
136
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
137
+ f_outlets: this.$login.f.depname})
138
+ if (saveBack.data.status === 'succeed') {
139
+ self.show = false
140
+ self.filename = ''
141
+ // 后台保存完成,通知刷新
142
+ self.$dispatch('save-success', self.filename)
143
+ }
144
+ }
145
+ export default {
146
+ title: '营业网点统计报表',
147
+ props: ['data'],
148
+ data () {
149
+ return {
150
+ printTime: this.$login.toStandardTimeString(),
151
+ depresid: [],
152
+ userresid: [],
153
+ f_orgid: this.$login.f.orgid,
154
+ f_depid: this.$login.f.depids,
155
+ f_operatorid: this.$login.f.id,
156
+ operatorid: [],
157
+ depid: [],
158
+ orgname: '',
159
+ spans:0,
160
+ depname: '',
161
+ operatorname: '',
162
+ orgCondtionStr: '1=1',
163
+ model: new DataModel('rs/report/outletTable', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
164
+ f_orgid: 'this.model.f_orgid'}),
165
+ reportStr: null,
166
+ show: false
167
+ }
168
+ },
169
+ ready () {
170
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
171
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
172
+ },
173
+ methods: {
174
+ searchData () {
175
+ this.$refs.paged.$refs.criteria.search()
176
+ },
177
+ selfSearch (args) {
178
+ this.printTime = this.$login.toStandardTimeString()
179
+ let orgcondition = '1=1'
180
+ if (this.f_orgid[0]) {
181
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
182
+ }
183
+ if (this.f_depid[0]) {
184
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
185
+ }
186
+ if (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
+ getRes (obj) {
193
+ this.orgname = obj.res[0]
194
+ this.depresid = obj.resids
195
+ this.f_orgid = obj.resids
196
+ },
197
+ getdep (obj, val) {
198
+ // this.depname = val[0]
199
+ this.userresid = obj
200
+ this.f_depid = obj
201
+ },
202
+ getuser ( obj, val) {
203
+ this.operatorname = val[0]
204
+ this.f_operatorid = obj
205
+ },
206
+
207
+ // 根据文件路径获取储存的报表内容
208
+ getFileContent (path) {
209
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
210
+ this.reportStr = res.data.filecontent
211
+ this.model.state = '正确'
212
+ })
213
+ },
214
+ confirm () {
215
+ if (!this.filename || this.filename === '') {
216
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
217
+ }
218
+ let saveGen = saveFile(this)
219
+ co(saveGen)
220
+ },
221
+ close () {
222
+ this.show = false
223
+ },
224
+ // 将报表保存成文件
225
+ confirmReport () {
226
+ this.show = true
227
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
228
+ }
229
+ },
230
+ watch: {
231
+ 'data' (val) {
232
+ if (val.f_files_path) {
233
+ this.getFileContent(val.f_files_path)
234
+ } else {
235
+ this.reportStr = null
236
+ }
237
+ },
238
+ 'model.data' (val) {
239
+ let len=0
240
+ let a=val.split('</tr>')
241
+ for(let i=0;i<a.length;i++){
242
+ if(a[i].split('</td>').length-1>len){
243
+ len=a[i].split('</td>').length-1
244
+ }
245
+ continue
246
+ }
247
+ this.spans=len
248
+ }
249
+ },
250
+ computed: {
251
+ }
252
+ }
253
+ </script>
254
+ <style scoped>
255
+ .noborder{
256
+ border: none;
257
+ }
258
+ </style>