manage-client 4.0.14 → 4.0.16

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 +3 -3
  2. package/package.json +1 -1
  3. package/src/components/SellReport/ManageChargeBillBeiFangShiYe.vue +251 -0
  4. package/src/components/SellReport/ManageFillGasQueryBeiFangShiYe.vue +251 -0
  5. package/src/components/SellReport/ManageOtherChargeBeiFangShiYe.vue +251 -0
  6. package/src/components/SellReport/ManageSellGasQueryBeiFangShiYe.vue +251 -0
  7. package/src/components/SellReport/ManageUseGasQueryBeiFangShiYe.vue +251 -0
  8. package/src/components/SellReport/ManageUserClassifyBeiFangShiYe.vue +271 -0
  9. package/src/filiale/qingjian/SellingTable.vue +220 -0
  10. package/src/filiale/qingjian/reportManage.js +7 -0
  11. package/src/filiale/tongchuan/BusinessClassify.vue +386 -0
  12. package/src/filiale/tongchuan/DepartmentPrick.vue +292 -0
  13. package/src/filiale/tongchuan/GasPrice.vue +13 -39
  14. package/src/filiale/tongchuan/ManageBusSummary.vue +8 -9
  15. package/src/filiale/tongchuan/ManageHandInputtor.vue +261 -0
  16. package/src/filiale/tongchuan/ManageSellType.vue +267 -0
  17. package/src/filiale/tongchuan/ManageUserCount.vue +369 -0
  18. package/src/filiale/tongchuan/MarketMonth.vue +297 -0
  19. package/src/filiale/tongchuan/SaleMonthReport.vue +155 -0
  20. package/src/filiale/tongchuan/UserClassify.vue +249 -0
  21. package/src/filiale/tongchuan/reportManage.js +34 -1
  22. package/src/filiale/xihu/NewQueryInstruct.vue +665 -0
  23. package/src/filiale/xihu/webmeterManage.js +6 -0
  24. package/src/main.js +2 -0
  25. package/src/reportManage.js +22 -0
  26. package/src/filiale/jinbin/exportConfig.js +0 -1110
  27. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +0 -1372
  28. package/src/filiale/jinbin/sale.js +0 -7
@@ -0,0 +1,297 @@
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
+ <div class="col-sm-3" >
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 00:00:00'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-3" >
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 23:59:59'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-3" >
30
+ <label class="font_normal_body" for="yearStartDate">年开始日期:</label>
31
+ <datepicker id="yearStartDate" placeholder="年开始日期" style="width: 60%"
32
+ v-model="model.yearStartDate"
33
+ :value.sync="model.yearStartDate"
34
+ :disabled-days-of-Week="[]"
35
+ :format="'yyyy-MM-dd 00:00:00'"
36
+ :show-reset-button="reset">
37
+ </datepicker>
38
+ </div>
39
+ <div class="col-sm-3" >
40
+ <label class="font_normal_body" for="yearEndDate">年结束日期:</label>
41
+ <datepicker id="yearEndDate" placeholder="年结束日期" style="width: 60%"
42
+ v-model="model.yearEndDate"
43
+ :value.sync="model.yearEndDate"
44
+ :disabled-days-of-Week="[]"
45
+ :format="'yyyy-MM-dd 23:59:59'"
46
+ :show-reset-button="reset">
47
+ </datepicker>
48
+ </div>
49
+ <res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
50
+ <div class="col-sm-3 form-group">
51
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
52
+ <v-select id="dep" style="width: 60%"
53
+ :multiple="true"
54
+ @change="$parent.$parent.getDep"
55
+ :value.sync="model.f_depid"
56
+ v-model="model.f_depid"
57
+ :options='$parent.$parent.depresid' placeholder='请选择'
58
+ condition="f_depid in {}">
59
+ </v-select>
60
+
61
+ </div>
62
+ <div class="col-sm-3 form-group">
63
+ <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
64
+ <v-select id="oper" style="width: 60%"
65
+ :multiple="true"
66
+ @change="$parent.$parent.getOpe"
67
+ :value.sync="model.f_operatorid"
68
+ v-model="model.f_operatorid"
69
+ :options='$parent.$parent.userresid' placeholder='请选择'
70
+ condition="f_operatorid in {}">
71
+ </v-select>
72
+ </div>
73
+ </div>
74
+ <div class="span" style = "float:right;">
75
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
76
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
77
+ <report-excel id='gasprice'></report-excel>
78
+ </div>
79
+ </div>
80
+ </criteria>
81
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
82
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
83
+ <thead>
84
+ <tr>
85
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
86
+ <h3 style="text-align: center">天然气销售月报表</h3>
87
+ </th>
88
+ </tr>
89
+ <tr>
90
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
91
+ 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
92
+ 打印时间:{{$parent.printTime}}
93
+ </th>
94
+ </tr>
95
+ <tr>
96
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
97
+ <div>
98
+ <span v-show="$parent.orgname[0]">公司:{{$parent.orgname}}</span>
99
+ <span v-show="$parent.depname[0]"> 部门:{{$parent.depname}}</span>
100
+ <span v-show="$parent.operatorname[0]">人员:{{$parent.operatorname}}</span>
101
+ </div>
102
+ </th>
103
+ </tr>
104
+ </thead>
105
+ <tr>
106
+ <td :colspan='$parent.tablen' class="noborder">
107
+ {{{ model.data.substring(26,model.data.length-8) }}}
108
+ </td>
109
+ </tr>
110
+ <tfoot>
111
+ <tr style="text-align: left">
112
+ <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
113
+ <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
114
+ <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
115
+ </tr>
116
+ </tfoot>
117
+ </table>
118
+ {{{ $parent.reportStr}}}
119
+ </div>
120
+ </criteria-paged>
121
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
122
+ <header slot="modal-header" class="modal-header">
123
+ <h4 class="modal-title">输入文件名称</h4>
124
+ </header>
125
+ <article slot="modal-body" class="modal-body">
126
+ <div class="form-group">
127
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
128
+ </div>
129
+ </article>
130
+ <footer slot="modal-footer" class="modal-footer">
131
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
132
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
133
+ </footer>
134
+ </modal>
135
+ </div>
136
+ </template>
137
+
138
+ <script>
139
+ import {DataModel, HttpResetClass} from 'vue-client'
140
+ import co from 'co'
141
+ let saveFile = function * (self) {
142
+ // 线验证文件是否重名
143
+ let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
144
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
145
+ {resolveMsg: null, rejectMsg: null})
146
+ if (count.data.length > 0) {
147
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
148
+ return
149
+ }
150
+ let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
151
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
152
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
153
+ f_outlets: this.$login.f.depname})
154
+ if (saveBack.data.status === 'succeed') {
155
+ self.show = false
156
+ self.filename = ''
157
+ // 后台保存完成,通知刷新
158
+ self.$dispatch('save-success', self.filename)
159
+ }
160
+ }
161
+ let getorg = async function (self) {
162
+ new HttpResetClass().load("POST",'api/af-revenue/sql/singleTableParam',
163
+ {
164
+ data: {
165
+ items: 'name label,id value',
166
+ tablename: 't_department',
167
+ condition: `1=1`
168
+ }
169
+ },
170
+ {resolveMsg: null, rejectMsg: null})
171
+ .then((res) => {
172
+ self.depresid = res.data
173
+ })
174
+ new HttpResetClass().load("POST",'api/af-revenue/sql/singleTableParam',
175
+ {
176
+ data: {
177
+ items: 'name label,id value',
178
+ tablename: 't_user',
179
+ condition: `state = '在职' and f_department_name is not null`
180
+ }
181
+ },
182
+ {resolveMsg: null, rejectMsg: null})
183
+ .then((res) => {
184
+ self.userresid = res.data
185
+ })
186
+ }
187
+ export default {
188
+ title: '天然气销售月报表',
189
+ props: ['data'],
190
+ data () {
191
+ return {
192
+ printTime: this.$login.toStandardTimeString(),
193
+ depresid: [],
194
+ userresid: [],
195
+ f_orgid: this.$login.f.orgid,
196
+ f_depid: this.$login.f.depids,
197
+ f_operatorid: this.$login.f.id,
198
+ operatorid: [],
199
+ depid: [],
200
+ tablen:0,
201
+ orgname: '',
202
+ depname: '',
203
+ operatorname: '',
204
+ orgCondtionStr: '1=1',
205
+ model: new DataModel('api/af-revenue/report/MarketMonth', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
206
+ yearStartDate: 'this.model.yearStartDate', yearEndDate: 'this.model.yearEndDate',f_orgid: 'this.model.f_orgid'}),
207
+ reportStr: null,
208
+ show: false,
209
+ initres: {
210
+ org: [this.$login.f.orgid],
211
+ dep: [],
212
+ user: []
213
+ }
214
+ }
215
+ },
216
+ ready () {
217
+ getorg(this)
218
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
219
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
220
+ console.log(this.$login.f)
221
+ },
222
+ methods: {
223
+ searchData () {
224
+ this.$refs.paged.$refs.criteria.search()
225
+ },
226
+ getDep(val){
227
+ this.depname = this.depresid.filter(x => x.value ==val).map(x=>x.label).toString()
228
+ console.log('dep',this.depname )
229
+ },
230
+ getOpe(val){
231
+ this.operatorname = this.userresid.filter(x => x.value ==val).map(x=>x.label).toString()
232
+ console.log('dep',this.operatorname )
233
+ },
234
+ selfSearch (args) {
235
+ this.printTime = this.$login.toStandardTimeString()
236
+ let orgstr = this.orgCondtionStr
237
+ let orgcondition = orgstr
238
+ this.$refs.paged.$refs.criteria.model.f_orgid = args.condition + orgcondition
239
+ this.$refs.paged.search(args)
240
+ },
241
+ getRes (condition, obj) {
242
+ this.orgCondtionStr = condition
243
+ this.orgname = obj.orgnames[0]
244
+ this.depname = obj.depnames[0]
245
+ },
246
+ // 根据文件路径获取储存的报表内容
247
+ getFileContent (path) {
248
+ this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
249
+ this.reportStr = res.data.filecontent
250
+ this.model.state = '正确'
251
+ })
252
+ },
253
+ confirm () {
254
+ if (!this.filename || this.filename === '') {
255
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
256
+ }
257
+ let saveGen = saveFile(this)
258
+ co(saveGen)
259
+ },
260
+ close () {
261
+ this.show = false
262
+ },
263
+ // 将报表保存成文件
264
+ confirmReport () {
265
+ this.show = true
266
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
267
+ }
268
+ },
269
+ watch: {
270
+ 'data' (val) {
271
+ if (val.f_files_path) {
272
+ this.getFileContent(val.f_files_path)
273
+ } else {
274
+ this.reportStr = null
275
+ }
276
+ },
277
+ 'model.data' (val) {
278
+ let len=0
279
+ let a=val.split('</tr>')
280
+ for(let i=0;i<a.length;i++){
281
+ if(a[i].split('</td>').length-1>len){
282
+ len=a[i].split('</td>').length-1
283
+ }
284
+ }
285
+ this.tablen=len
286
+ }
287
+ },
288
+ computed: {
289
+
290
+ }
291
+ }
292
+ </script>
293
+ <style scoped>
294
+ .noborder{
295
+ border: none;
296
+ }
297
+ </style>
@@ -0,0 +1,155 @@
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" >
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" >
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
+ <res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
28
+ </div>
29
+ <div class="span" style = "float:right;">
30
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
31
+ <report-print id='gasprice' top='1cm' left='0' width='100%' height='100%' :preview="true"></report-print>
32
+ <report-excel id='gasprice'></report-excel>
33
+ </div>
34
+ </div>
35
+ </criteria>
36
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
37
+ <table class='tableprint' style="margin: 0px auto">
38
+ <thead>
39
+ <tr>
40
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
41
+ <h3 style="text-align: center">销售月报表</h3>
42
+ </th>
43
+ </tr>
44
+ <tr>
45
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
46
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
47
+ 结束时间:{{ model.model.endDate }}
48
+ </th>
49
+ </tr>
50
+ <tr>
51
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
52
+ 打印时间:{{{$parent.printTime}}}
53
+ </th>
54
+ </tr>
55
+ <tr>
56
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
57
+ <div>
58
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
59
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
60
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
61
+ </div>
62
+ </th>
63
+ </tr>
64
+ </thead>
65
+ <tr>
66
+ <td :colspan='$parent.spans' class="noborder">
67
+ {{{ model.data.substring(26,model.data.length-8) }}}
68
+ </td>
69
+ </tr>
70
+ <tfoot>
71
+ <tr style="text-align: left">
72
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
73
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
74
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
75
+ </tr>
76
+ </tfoot>
77
+ </table>
78
+ </div>
79
+ </criteria-paged>
80
+ </div>
81
+ </template>
82
+
83
+ <script>
84
+ import { DataModel } from 'vue-client'
85
+ import co from 'co'
86
+ export default {
87
+ title: '销售月报表',
88
+ props: ['data'],
89
+ data () {
90
+ return {
91
+ printTime: this.$login.toStandardTimeString(),
92
+ depresid: [],
93
+ userresid: [],
94
+ f_orgid: this.$login.f.orgid,
95
+ f_depid: this.$login.f.depids,
96
+ f_operatorid: this.$login.f.id,
97
+ operatorid: [],
98
+ depid: [],
99
+ orgname: '',
100
+ depname: '',
101
+ operatorname: '',
102
+ f_inputtor:[],
103
+ f_user_type:'',
104
+ orgCondtionStr: '1=1',
105
+ model: new DataModel('api/af-revenue/report/saleMonthReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
106
+ f_orgid: 'this.model.f_orgid'}),
107
+ reportStr: null,
108
+ spans: 0,
109
+ initres: {
110
+ org: [this.$login.f.orgid],
111
+ dep: [],
112
+ user: []
113
+ }
114
+ }
115
+ },
116
+ ready () {
117
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
118
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
119
+ },
120
+ methods: {
121
+ searchData () {
122
+ this.$refs.paged.$refs.criteria.search()
123
+ },
124
+ selfSearch (args) {
125
+ let orgstr = this.orgCondtionStr
126
+ let orgcondition = orgstr
127
+ this.$refs.paged.$refs.criteria.model.f_orgid = args.condition + orgcondition
128
+ this.$refs.paged.search(args)
129
+ },
130
+ getRes (condition, obj) {
131
+ this.orgCondtionStr = condition
132
+ this.orgname = obj.orgnames[0]
133
+ this.depname = obj.depnames[0]
134
+ }
135
+ },
136
+ watch: {
137
+ 'model.data' (val) {
138
+ this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
139
+ }
140
+ },
141
+ computed: {
142
+ usertypes() {
143
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
144
+ },
145
+ inputtor() {
146
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
147
+ },
148
+ }
149
+ }
150
+ </script>
151
+ <style scoped>
152
+ .noborder{
153
+ border: none;
154
+ }
155
+ </style>