manage-client 3.2.12 → 3.2.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 (87) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +24 -8
  5. package/package.json +1 -1
  6. package/src/.idea/misc.xml +9 -0
  7. package/src/.idea/modules.xml +8 -0
  8. package/src/.idea/src.iml +9 -0
  9. package/src/.idea/vcs.xml +6 -0
  10. package/src/.idea/workspace.xml +93 -0
  11. package/src/components/BasisEcharts/BarChart.vue +247 -247
  12. package/src/components/SellReport/BonSummary.vue +178 -178
  13. package/src/components/SellReport/CivilGasReport.vue +194 -0
  14. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  15. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  16. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  17. package/src/components/SellReport/NonResidentGas.vue +203 -203
  18. package/src/components/SellReport/OutletTable.vue +258 -258
  19. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  20. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  21. package/src/components/SellReport/SellingTable.vue +220 -220
  22. package/src/components/SellReport/UnCivilGasReport.vue +194 -0
  23. package/src/components/SellReport/UserSellingGas.vue +177 -177
  24. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  25. package/src/components/daping/GMap.vue +636 -636
  26. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  27. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  28. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  29. package/src/components/sale/businessquery/BusinesQuery.vue +2 -3
  30. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  31. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  32. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  33. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  34. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  35. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  36. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  37. package/src/components/sale/config/exportConfig.js +1 -1
  38. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  39. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  40. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  41. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  42. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  43. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  44. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +4 -5
  45. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  46. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  47. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  48. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  49. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  50. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  51. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  52. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  53. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  54. package/src/filiale/WEINAN/ReportDataQuery.vue +249 -249
  55. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  56. package/src/filiale/WEINAN/UserGasAll.vue +577 -579
  57. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  58. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  59. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  60. package/src/filiale/WEINAN/reportManage.js +12 -12
  61. package/src/filiale/WEINAN/sale.js +36 -36
  62. package/src/filiale/alashan/reportManage.js +10 -10
  63. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  64. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  65. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  66. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -541
  67. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  68. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  69. package/src/filiale/meihekou/config/exportConfig.js +804 -804
  70. package/src/filiale/meihekou/sale.js +26 -26
  71. package/src/filiale/pingxiang/sale.js +9 -9
  72. package/src/filiale/qingtongxia/sale.js +13 -13
  73. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  74. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  75. package/src/filiale/rongchuang/reportManage.js +11 -11
  76. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  77. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  78. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  79. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  80. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  81. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  82. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  83. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  84. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  85. package/src/main.js +5 -5
  86. package/src/reportManage.js +8 -0
  87. package/static/wuhai.json +1610 -1610
@@ -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' 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>
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>