manage-client 3.2.27 → 3.2.28

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 (70) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +174 -174
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/components/SellReport/AmountGas.vue +257 -257
  16. package/src/components/SellReport/BusinessClassify.vue +268 -317
  17. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  18. package/src/components/SellReport/BusinessReport.vue +256 -256
  19. package/src/components/SellReport/ChSellReport.vue +251 -251
  20. package/src/components/SellReport/ChargeBill.vue +244 -244
  21. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  22. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  23. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  24. package/src/components/SellReport/DepartmentPrick.vue +243 -288
  25. package/src/components/SellReport/DeptHomePage.vue +299 -299
  26. package/src/components/SellReport/FinanceSellType.vue +254 -254
  27. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  28. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -263
  29. package/src/components/SellReport/GasMoneyReport.vue +252 -254
  30. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  31. package/src/components/SellReport/GasSummary.vue +257 -257
  32. package/src/components/SellReport/Gasc.vue +257 -257
  33. package/src/components/SellReport/GetUserNum.vue +240 -240
  34. package/src/components/SellReport/HandplanBili.vue +241 -241
  35. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  36. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  37. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  38. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  39. package/src/components/SellReport/MarketMonth.vue +251 -297
  40. package/src/components/SellReport/MeterPrice.vue +244 -244
  41. package/src/components/SellReport/MeterReader.vue +231 -231
  42. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  43. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  44. package/src/components/SellReport/OtherChargePublicReport.vue +262 -262
  45. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  46. package/src/components/SellReport/PaymentMethod.vue +274 -274
  47. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  48. package/src/components/SellReport/SellDepReport.vue +264 -266
  49. package/src/components/SellReport/UserClassify.vue +222 -271
  50. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  51. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  52. package/src/components/SellReport/YuShouTable.vue +298 -298
  53. package/src/components/SellReport/chargeSchedule.vue +410 -410
  54. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  55. package/src/components/SellReport/userholds.vue +257 -257
  56. package/src/components/sale/config/exportConfig.js +898 -898
  57. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  58. package/src/components/sale/filesquery/FireQuery.vue +473 -0
  59. package/src/components/webmeter/gasStatistics/GasStatistics.vue +467 -467
  60. package/src/components/webmeter/newwebmeter/ArrearageQuery.vue +307 -307
  61. package/src/components/webmeter/recharge/RechargeList.vue +343 -343
  62. package/src/components/webmeter/report/ReportList.vue +420 -420
  63. package/src/filiale/WEINAN/BankManager.vue +139 -0
  64. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  65. package/src/filiale/WEINAN/reportManage.js +13 -12
  66. package/src/filiale/macheng/ArrearsQuery.vue +823 -823
  67. package/src/main.js +66 -66
  68. package/src/reportManage.js +498 -498
  69. package/src/saleManage.js +5 -0
  70. package/src/webmeterManage.js +117 -117
@@ -1,317 +1,268 @@
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
- <div class="col-sm-3 form-group" >
50
- <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
51
- <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%" v-ref:org></right-tree>
52
- </div>
53
- <div class="col-sm-3 form-group">
54
- <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
55
- <v-select id="dep" style="width: 60%"
56
- :multiple="false"
57
- @change="$parent.$parent.getDep"
58
- :value.sync="model.f_depid"
59
- v-model="model.f_depid"
60
- :options='$parent.$parent.depresid' placeholder='请选择'
61
- condition="f_depid in {}">
62
- </v-select>
63
-
64
- </div>
65
- <div class="col-sm-3 form-group">
66
- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
67
- <v-select id="oper" style="width: 60%"
68
- :multiple="false"
69
- @change="$parent.$parent.getOpe"
70
- :value.sync="model.f_operatorid"
71
- v-model="model.f_operatorid"
72
- :options='$parent.$parent.userresid' placeholder='请选择'
73
- condition="f_operatorid in {}">
74
- </v-select>
75
- </div>
76
- <div class="col-sm-3 form-group">
77
- <label class="font_normal_body" for="oper1">格式一</label>
78
- <input type="radio" name="reportStyle" id="oper1" v-model="$parent.$parent.reportStyle" value="1">
79
- <label class="font_normal_body" for="oper2">格式二</label>
80
- <input type="radio" name="reportStyle" id="oper2" v-model="$parent.$parent.reportStyle" value="2">
81
- </div>
82
- </div>
83
- <div class="span" style = "float:right;">
84
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
85
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
86
- <report-excel id='gasprice'></report-excel>
87
- </div>
88
- </div>
89
- </criteria>
90
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
91
- <table class='tableprint' style="margin: 0px auto">
92
- <thead>
93
- <tr>
94
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
95
- <h3 style="text-align: center">营业分类统计</h3>
96
- </th>
97
- </tr>
98
- <tr>
99
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
100
- 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
101
- 打印时间:{{$parent.printTime}}
102
- </th>
103
- </tr>
104
- <tr>
105
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
106
- <div>
107
- <span v-show="$parent.orgname[0]">公司:{{$parent.orgname}}</span>
108
- <span v-show="$parent.depname[0]"> 部门:{{$parent.depname}}</span>
109
- <span v-show="$parent.operatorname[0]">人员:{{$parent.operatorname}}</span>
110
- </div>
111
- </th>
112
- </tr>
113
- </thead>
114
- <tr>
115
- <td :colspan='$parent.tablen' class="noborder">
116
- {{{ model.data.substring(26,model.data.length-8) }}}
117
- </td>
118
- </tr>
119
- <tfoot>
120
- <tr style="text-align: left">
121
- <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
122
- <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
123
- <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
124
- </tr>
125
- </tfoot>
126
- </table>
127
- {{{ $parent.reportStr}}}
128
- </div>
129
- </criteria-paged>
130
- <modal :show.sync="show" v-ref:modal small backdrop="false">
131
- <header slot="modal-header" class="modal-header">
132
- <h4 class="modal-title">输入文件名称</h4>
133
- </header>
134
- <article slot="modal-body" class="modal-body">
135
- <div class="form-group">
136
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
137
- </div>
138
- </article>
139
- <footer slot="modal-footer" class="modal-footer">
140
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
141
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
142
- </footer>
143
- </modal>
144
- </div>
145
- </template>
146
-
147
- <script>
148
- import {DataModel, HttpResetClass} from 'vue-client'
149
- import co from 'co'
150
- let saveFile = function * (self) {
151
- // 线验证文件是否重名
152
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
153
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
154
- {resolveMsg: null, rejectMsg: null})
155
- if (count.data.length > 0) {
156
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
157
- return
158
- }
159
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
160
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
161
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
162
- f_outlets: this.$login.f.depname})
163
- if (saveBack.data.status === 'succeed') {
164
- self.show = false
165
- self.filename = ''
166
- // 后台保存完成,通知刷新
167
- self.$dispatch('save-success', self.filename)
168
- }
169
- }
170
- let getorg = async function (self) {
171
- new HttpResetClass().load("POST",'rs/sql/singleTableParam',
172
- {
173
- data: {
174
- items: 'name label,id value',
175
- tablename: 't_department',
176
- condition: `1=1`
177
- }
178
- },
179
- {resolveMsg: null, rejectMsg: null})
180
- .then((res) => {
181
- self.depresid = res.data
182
- })
183
- new HttpResetClass().load("POST",'rs/sql/singleTableParam',
184
- {
185
- data: {
186
- items: 'name label,id value',
187
- tablename: 't_user',
188
- condition: `state = '在职' and f_department_name is not null`
189
- }
190
- },
191
- {resolveMsg: null, rejectMsg: null})
192
- .then((res) => {
193
- self.userresid = res.data
194
- })
195
- }
196
- export default {
197
- title: '营业分类统计',
198
- props: ['data'],
199
- data () {
200
- return {
201
- printTime: this.$login.toStandardTimeString(),
202
- depresid: [],
203
- userresid: [],
204
- f_orgid: this.$login.f.orgid,
205
- f_depid: this.$login.f.depids,
206
- f_operatorid: this.$login.f.id,
207
- operatorid: [],
208
- depid: [],
209
- tablen:0,
210
- reportStyle: 1,
211
- orgname: '',
212
- depname: '',
213
- operatorname: '',
214
- orgCondtionStr: '1=1',
215
- model: new DataModel('rs/report/BusinessClassify', {
216
- startDate: 'this.model.startDate',
217
- endDate: 'this.model.endDate',
218
- yearStartDate: 'this.model.yearStartDate',
219
- yearEndDate: 'this.model.yearEndDate',
220
- f_orgid: 'this.model.f_orgid'}),
221
- reportStr: null,
222
- show: false,
223
- }
224
- },
225
- ready () {
226
- getorg(this)
227
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
228
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
229
- console.log(this.$login.f)
230
- },
231
- methods: {
232
- searchData () {
233
- this.$refs.paged.$refs.criteria.search()
234
- },
235
- getDep(val){
236
- this.depname = this.depresid.filter(x => x.value ==val).map(x=>x.label).toString()
237
- console.log('dep',this.depname )
238
- },
239
- getOpe(val){
240
- this.operatorname = this.userresid.filter(x => x.value ==val).map(x=>x.label).toString()
241
- console.log('dep',this.operatorname )
242
- },
243
- selfSearch (args) {
244
- if (this.reportStyle == '1') {
245
- this.model.url = 'rs/report/BusinessClassify'
246
- } else {
247
- this.model.url = 'rs/report/BusinessClassifyTwo'
248
- }
249
- console.log('---------------->', this.reportStyle)
250
- this.printTime = this.$login.toStandardTimeString()
251
- let orgcondition = '1=1'
252
- if (this.f_orgid[0]) {
253
- orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
254
- }
255
- orgcondition += ' and ' + args.condition
256
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
257
- this.$refs.paged.search(args)
258
- },
259
- getRes (obj) {
260
- this.orgname = obj.res[0]
261
- this.f_orgid = obj.resids
262
- },
263
- // 根据文件路径获取储存的报表内容
264
- getFileContent (path) {
265
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
266
- this.reportStr = res.data.filecontent
267
- this.model.state = '正确'
268
- })
269
- },
270
- confirm () {
271
- if (!this.filename || this.filename === '') {
272
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
273
- }
274
- let saveGen = saveFile(this)
275
- co(saveGen)
276
- },
277
- close () {
278
- this.show = false
279
- },
280
- // 将报表保存成文件
281
- confirmReport () {
282
- this.show = true
283
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
284
- }
285
- },
286
- watch: {
287
- 'data' (val) {
288
- if (val.f_files_path) {
289
- this.getFileContent(val.f_files_path)
290
- } else {
291
- this.reportStr = null
292
- }
293
- },
294
- 'model.data' (val) {
295
- let len=0
296
- let a=val.split('</tr>')
297
- for(let i=0;i<a.length;i++){
298
- if(a[i].split('</td>').length-1>len){
299
- len=a[i].split('</td>').length-1
300
- }
301
- }
302
- this.tablen=len
303
- },
304
- 'reportStyle'(val) {
305
- this.$refs.paged.$refs.criteria.search()
306
- }
307
- },
308
- computed: {
309
-
310
- }
311
- }
312
- </script>
313
- <style scoped>
314
- .noborder{
315
- border: none;
316
- }
317
- </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 00:00:00'"
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 23:59:59'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group" >
28
+ <label class="font_normal_body" for="yearStartDate">年开始日期:</label>
29
+ <datepicker id="yearStartDate" placeholder="年开始日期" style="width: 60%"
30
+ v-model="model.yearStartDate"
31
+ :value.sync="model.yearStartDate"
32
+ :disabled-days-of-Week="[]"
33
+ :format="'yyyy-MM-dd 00:00:00'"
34
+ :show-reset-button="reset">
35
+ </datepicker>
36
+ </div>
37
+ <div class="col-sm-2 form-group" >
38
+ <label class="font_normal_body" for="yearEndDate">年结束日期:</label>
39
+ <datepicker id="yearEndDate" placeholder="年结束日期" style="width: 60%"
40
+ v-model="model.yearEndDate"
41
+ :value.sync="model.yearEndDate"
42
+ :disabled-days-of-Week="[]"
43
+ :format="'yyyy-MM-dd 23:59:59'"
44
+ :show-reset-button="reset">
45
+ </datepicker>
46
+ </div>
47
+ <div class="col-sm-2 form-group" >
48
+ <label class="font_normal_body" for="org">公&emsp;&emsp;&emsp;司:</label>
49
+ <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%" v-ref:org></right-tree>
50
+ </div>
51
+ <div class="col-sm-2 form-group">
52
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;&emsp;门:</label>
53
+ <v-select id="dep" style="width: 60%"
54
+ :multiple="false"
55
+ @change="$parent.$parent.getDep"
56
+ :value.sync="model.f_depid"
57
+ v-model="model.f_depid"
58
+ :options='$parent.$parent.depresid' placeholder='请选择'
59
+ condition="f_depid in {}">
60
+ </v-select>
61
+
62
+ </div>
63
+ </div>
64
+ <div class="span" style = "float:right;">
65
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
66
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
67
+ <report-excel id='gasprice'></report-excel>
68
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
69
+ </div>
70
+ <div class="row" v-show="$parent.$parent.criteriaShow">
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body" for="oper">人&emsp;&emsp;&emsp;员:</label>
73
+ <v-select id="oper" style="width: 60%"
74
+ :multiple="false"
75
+ @change="$parent.$parent.getOpe"
76
+ :value.sync="model.f_operatorid"
77
+ v-model="model.f_operatorid"
78
+ :options='$parent.$parent.userresid' placeholder='请选择'
79
+ condition="f_operatorid in {}">
80
+ </v-select>
81
+ </div>
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body" for="oper1">格式一</label>
84
+ <input type="radio" name="reportStyle" id="oper1" v-model="$parent.$parent.reportStyle" value="1">&emsp;
85
+ <label class="font_normal_body" for="oper2">格式二</label>
86
+ <input type="radio" name="reportStyle" id="oper2" v-model="$parent.$parent.reportStyle" value="2">
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </criteria>
91
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
92
+ <table class='tableprint' style="margin: 0px auto">
93
+ <thead>
94
+ <tr>
95
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
96
+ <h3 style="text-align: center">营业分类统计</h3>
97
+ </th>
98
+ </tr>
99
+ <tr>
100
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
101
+ 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
102
+ 打印时间:{{$parent.printTime}}
103
+ </th>
104
+ </tr>
105
+ <tr>
106
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
107
+ <div>
108
+ <span v-show="$parent.orgname[0]">公司:{{$parent.orgname}}</span>
109
+ <span v-show="$parent.depname[0]"> 部门:{{$parent.depname}}</span>
110
+ <span v-show="$parent.operatorname[0]">人员:{{$parent.operatorname}}</span>
111
+ </div>
112
+ </th>
113
+ </tr>
114
+ </thead>
115
+ <tr>
116
+ <td :colspan='$parent.tablen' class="noborder">
117
+ {{{ model.data.substring(26,model.data.length-8) }}}
118
+ </td>
119
+ </tr>
120
+ <tfoot>
121
+ <tr style="text-align: left">
122
+ <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
123
+ <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
124
+ <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
125
+ </tr>
126
+ </tfoot>
127
+ </table>
128
+ {{{ $parent.reportStr}}}
129
+ </div>
130
+ </criteria-paged>
131
+ </div>
132
+ </template>
133
+
134
+ <script>
135
+ import {DataModel, HttpResetClass} from 'vue-client'
136
+ import co from 'co'
137
+ let getorg = async function (self) {
138
+ new HttpResetClass().load("POST",'rs/sql/singleTableParam',
139
+ {
140
+ data: {
141
+ items: 'name label,id value',
142
+ tablename: 't_department',
143
+ condition: `1=1`
144
+ }
145
+ },
146
+ {resolveMsg: null, rejectMsg: null})
147
+ .then((res) => {
148
+ self.depresid = res.data
149
+ })
150
+ new HttpResetClass().load("POST",'rs/sql/singleTableParam',
151
+ {
152
+ data: {
153
+ items: 'name label,id value',
154
+ tablename: 't_user',
155
+ condition: `state = '在职' and f_department_name is not null`
156
+ }
157
+ },
158
+ {resolveMsg: null, rejectMsg: null})
159
+ .then((res) => {
160
+ self.userresid = res.data
161
+ })
162
+ }
163
+ export default {
164
+ title: '营业分类统计',
165
+ props: ['data'],
166
+ data () {
167
+ return {
168
+ printTime: this.$login.toStandardTimeString(),
169
+ depresid: [],
170
+ userresid: [],
171
+ f_orgid: this.$login.f.orgid,
172
+ f_depid: this.$login.f.depids,
173
+ f_operatorid: this.$login.f.id,
174
+ operatorid: [],
175
+ depid: [],
176
+ tablen:0,
177
+ reportStyle: 1,
178
+ orgname: '',
179
+ depname: '',
180
+ operatorname: '',
181
+ orgCondtionStr: '1=1',
182
+ model: new DataModel('rs/report/BusinessClassify', {
183
+ startDate: 'this.model.startDate',
184
+ endDate: 'this.model.endDate',
185
+ yearStartDate: 'this.model.yearStartDate',
186
+ yearEndDate: 'this.model.yearEndDate',
187
+ f_orgid: 'this.model.f_orgid'}),
188
+ reportStr: null,
189
+ criteriaShow: false
190
+ }
191
+ },
192
+ ready () {
193
+ getorg(this)
194
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
195
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
196
+ console.log(this.$login.f)
197
+ },
198
+ methods: {
199
+ searchData () {
200
+ this.$refs.paged.$refs.criteria.search()
201
+ },
202
+ getDep(val){
203
+ this.depname = this.depresid.filter(x => x.value ==val).map(x=>x.label).toString()
204
+ console.log('dep',this.depname )
205
+ },
206
+ getOpe(val){
207
+ this.operatorname = this.userresid.filter(x => x.value ==val).map(x=>x.label).toString()
208
+ console.log('dep',this.operatorname )
209
+ },
210
+ selfSearch (args) {
211
+ if (this.reportStyle == '1') {
212
+ this.model.url = 'rs/report/BusinessClassify'
213
+ } else {
214
+ this.model.url = 'rs/report/BusinessClassifyTwo'
215
+ }
216
+ console.log('---------------->', this.reportStyle)
217
+ this.printTime = this.$login.toStandardTimeString()
218
+ let orgcondition = '1=1'
219
+ if (this.f_orgid[0]) {
220
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
221
+ }
222
+ orgcondition += ' and ' + args.condition
223
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
224
+ this.$refs.paged.search(args)
225
+ },
226
+ getRes (obj) {
227
+ this.orgname = obj.res[0]
228
+ this.f_orgid = obj.resids
229
+ },
230
+ show() {
231
+ this.criteriaShow = true
232
+ },
233
+ hidden() {
234
+ this.criteriaShow = !this.criteriaShow
235
+ }
236
+ },
237
+ watch: {
238
+ 'data' (val) {
239
+ if (val.f_files_path) {
240
+ this.getFileContent(val.f_files_path)
241
+ } else {
242
+ this.reportStr = null
243
+ }
244
+ },
245
+ 'model.data' (val) {
246
+ let len=0
247
+ let a=val.split('</tr>')
248
+ for(let i=0;i<a.length;i++){
249
+ if(a[i].split('</td>').length-1>len){
250
+ len=a[i].split('</td>').length-1
251
+ }
252
+ }
253
+ this.tablen=len
254
+ },
255
+ 'reportStyle'(val) {
256
+ this.$refs.paged.$refs.criteria.search()
257
+ }
258
+ },
259
+ computed: {
260
+
261
+ }
262
+ }
263
+ </script>
264
+ <style scoped>
265
+ .noborder{
266
+ border: none;
267
+ }
268
+ </style>