manage-client 3.1.26 → 3.1.27

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 (76) hide show
  1. package/build/dev-server.js +28 -21
  2. package/package.json +1 -1
  3. package/src/App.vue +29 -28
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/BasisEcharts/RingChart.vue +196 -196
  6. package/src/components/SellReport/BusinessClassify.vue +251 -251
  7. package/src/components/SellReport/ChargePrick.vue +245 -262
  8. package/src/components/SellReport/DepartmentPrick.vue +262 -262
  9. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  10. package/src/components/SellReport/ManageSellType.vue +284 -284
  11. package/src/components/SellReport/ManageUserCount.vue +347 -347
  12. package/src/components/SellReport/MarketMonth.vue +251 -251
  13. package/src/components/SellReport/SellingTable.vue +220 -220
  14. package/src/components/SellReport/UserClassify.vue +251 -251
  15. package/src/components/SellReport/UserSellingGas.vue +251 -251
  16. package/src/components/daping/CallCenter.vue +366 -366
  17. package/src/components/daping/DataManagement.vue +543 -703
  18. package/src/components/daping/GMap.vue +636 -636
  19. package/src/components/daping/ManageMain.vue +267 -255
  20. package/src/components/daping/NetWork.vue +238 -0
  21. package/src/components/daping/RedactDaPing.vue +454 -0
  22. package/src/components/daping/Ring.vue +212 -217
  23. package/src/components/daping/SafeCheck.vue +446 -0
  24. package/src/components/daping/SafeCheckRing.vue +149 -160
  25. package/src/components/daping/SafecheckBarChart.vue +48 -133
  26. package/src/components/daping/WuHaiMap.vue +418 -0
  27. package/src/components/qinhua/BarChart.vue +256 -256
  28. package/src/components/qinhua/Pie.vue +132 -116
  29. package/src/components/qinhua/SellEcharts.vue +115 -94
  30. package/src/components/qinhua/qinHuaMap.vue +414 -390
  31. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  32. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  33. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  34. package/src/components/sale/businessquery/NewHandplanQuery.vue +995 -0
  35. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  36. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  37. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  38. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  39. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  40. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  41. package/src/components/webmeter/DrillData/UserGasAll.vue +596 -596
  42. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  43. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  44. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  45. package/src/components/webmeter/instruction/NewQueryInstruct.vue +396 -396
  46. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -170
  47. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  48. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +899 -899
  49. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  50. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -238
  51. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -266
  52. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +606 -606
  53. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +252 -252
  54. package/src/components/webmeter/newwebmeter/UserGasList.vue +440 -440
  55. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  56. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  57. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  58. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  59. package/src/filiale/alashan/SellingTable.vue +231 -231
  60. package/src/filiale/alashan/reportManage.js +10 -10
  61. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  62. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  63. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  64. package/src/filiale/meihekou/sale.js +26 -26
  65. package/src/filiale/rongcheng/exportConfig.js +257 -257
  66. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  67. package/src/filiale/rongchuang/reportManage.js +11 -11
  68. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  69. package/src/main.js +5 -5
  70. package/src/newmanage.js +525 -504
  71. package/src/reportManage.js +458 -458
  72. package/static/wuhai.json +1610 -1610
  73. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  74. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  75. package/.gradle/buildOutputCleanup/built.bin +0 -0
  76. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -1,284 +1,284 @@
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-4 form-group" >
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 form-group" >
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 form-group" >
30
- <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
- <right-tree id="org" @re-res="$parent.$parent.getRes"></right-tree>
32
- </div>
33
- <div class="col-sm-4 form-group">
34
- <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
35
- <res-select id="dep" restype='department'
36
- @res-select="$parent.$parent.getdep"
37
- :parentresid="$parent.$parent.depresid"
38
- :initresid='$parent.$parent.depid' >
39
- </res-select>
40
-
41
- </div>
42
- <div class="col-sm-4 form-group">
43
- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
44
- <res-select id="oper" restype='user'
45
- is-mul="false"
46
- @res-select="$parent.$parent.getuser"
47
- :parentresid="$parent.$parent.userresid"
48
- :initresid='$parent.$parent.operatorid'>
49
- </res-select>
50
- </div>
51
- <div class="col-sm-4 form-group">
52
- <label class="font_normal_body">收费状态:</label>
53
- <v-select :value.sync="$parent.$parent.f_state" multiple
54
- v-model="$parent.$parent.f_state"
55
- :options='$parent.$parent.charge_state' placeholder='请选择'
56
- condition="f_state in {}"
57
- close-on-select></v-select>
58
- </div>
59
- <div style = "float:right;">
60
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
61
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
62
- <report-excel id='gasprice'></report-excel>
63
- </div>
64
- </div>
65
- <!--<div class="span" style = "float:right;">-->
66
-
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" v-if="!$parent.data.f_files_path">
72
- <thead>
73
- <tr>
74
- <th :colspan='$parent.spans' style="font-weight: bold; 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;
82
- </th>
83
- </tr>
84
- <tr>
85
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
86
- 打印时间:{{{$parent.printTime}}}
87
- </th>
88
- </tr>
89
- <tr>
90
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
91
- <div>
92
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
93
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
94
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
95
- </div>
96
- </th>
97
- </tr>
98
- </thead>
99
- <tr>
100
- <td :colspan='$parent.spans' class="noborder">
101
- {{{ model.data.substring(26,model.data.length-8) }}}
102
- </td>
103
- </tr>
104
- <tfoot>
105
- <tr style="text-align: left">
106
- <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
107
- 收款人:
108
- </th>
109
- <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
110
- 审核人:
111
- </th>
112
- <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
113
- 经手人:
114
- </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 } from 'vue-client'
140
- import co from 'co'
141
- let saveFile = function * (self) {
142
- // 线验证文件是否重名
143
- let count = yield self.$resetpost('rs/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('rs/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
- export default {
162
- title: '营业厅分项汇总表',
163
- props: ['data'],
164
- data () {
165
- return {
166
- printTime: this.$login.toStandardTimeString(),
167
- depresid: [],
168
- userresid: [],
169
- initres: {
170
- org:[this.$login.f.orgid],
171
- dep:[],
172
- user:[]
173
- },
174
- f_orgid: this.$login.f.orgid,
175
- f_depid: this.$login.f.depids,
176
- f_operatorid: this.$login.f.id,
177
- operatorid: [],
178
- depid: [],
179
- f_state:['有效'],
180
- orgname: '',
181
- depname: '',
182
- operatorname: '',
183
- orgCondtionStr: '1=1',
184
- model: new DataModel('rs/report/fenxiangsell', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
185
- f_orgid: 'this.model.f_orgid'}),
186
- reportStr: null,
187
- show: false,
188
- spans: ''
189
- }
190
- },
191
- ready () {
192
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
193
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
194
- // this.$refs.paged.$refs.criteria.search()
195
- },
196
- methods: {
197
- searchData () {
198
- this.$refs.paged.$refs.criteria.search()
199
- },
200
- selfSearch (args) {
201
- this.printTime = this.$login.toStandardTimeString()
202
- this.orgCondtionStr='1=1'
203
- if (this.f_orgid[0]) {
204
- this.orgCondtionStr += ' and f_orgid = ' + this.f_orgid
205
- }
206
- if (this.f_depid[0]) {
207
- this.orgCondtionStr += " and f_depid in ("+ this.f_depid.toString()+")"
208
- }
209
- if(this.f_operatorid[0]) {
210
- this.orgCondtionStr += ' and f_operatorid = ' + this.f_operatorid
211
- }
212
- this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr.replace('1=1','') + (this.f_state && this.f_state != '' ? " and f_state='" + this.f_state + "' " : '')
213
- this.$refs.paged.search(args)
214
- },
215
- getRes (obj) {
216
- this.orgname = obj.res[0]
217
- this.depresid = obj.resids
218
- this.userresid = obj.resids
219
- this.f_orgid = obj.resids
220
- },
221
- getdep (obj, val) {
222
- this.depname = val[0]
223
- // this.userresid = obj
224
- this.f_depid = obj
225
- },
226
- getuser ( obj, val) {
227
- this.operatorname = val[0]
228
- this.f_operatorid = obj
229
- },
230
- // 根据文件路径获取储存的报表内容
231
- getFileContent (path) {
232
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
233
- this.reportStr = res.data.filecontent
234
- this.model.state = '正确'
235
- })
236
- },
237
- confirm () {
238
- if (!this.filename || this.filename === '') {
239
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
240
- }
241
- let saveGen = saveFile(this)
242
- co(saveGen)
243
- },
244
- close () {
245
- this.show = false
246
- },
247
- // 将报表保存成文件
248
- confirmReport () {
249
- this.show = true
250
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
251
- }
252
- },
253
- watch: {
254
- 'data' (val) {
255
- if (val.f_files_path) {
256
- this.getFileContent(val.f_files_path)
257
- } else {
258
- this.reportStr = null
259
- }
260
- },
261
- 'model.data' (val) {
262
- let len=0
263
- let a=val.split('</tr>')
264
- for(let i=0;i<a.length;i++){
265
- if(a[i].split('</td>').length-1>len){
266
- len=a[i].split('</td>').length-1
267
- }
268
- continue
269
- }
270
- this.spans = len
271
- }
272
- },
273
- computed: {
274
- charge_state() {
275
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
276
- }
277
- }
278
- }
279
- </script>
280
- <style scoped>
281
- .noborder{
282
- border: none;
283
- }
284
- </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
+ <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 form-group" >
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 form-group" >
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 form-group" >
30
+ <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
+ <right-tree id="org" @re-res="$parent.$parent.getRes"></right-tree>
32
+ </div>
33
+ <div class="col-sm-4 form-group">
34
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
35
+ <res-select id="dep" restype='department'
36
+ @res-select="$parent.$parent.getdep"
37
+ :parentresid="$parent.$parent.depresid"
38
+ :initresid='$parent.$parent.depid' >
39
+ </res-select>
40
+
41
+ </div>
42
+ <div class="col-sm-4 form-group">
43
+ <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
44
+ <res-select id="oper" restype='user'
45
+ is-mul="false"
46
+ @res-select="$parent.$parent.getuser"
47
+ :parentresid="$parent.$parent.userresid"
48
+ :initresid='$parent.$parent.operatorid'>
49
+ </res-select>
50
+ </div>
51
+ <div class="col-sm-4 form-group">
52
+ <label class="font_normal_body">收费状态:</label>
53
+ <v-select :value.sync="$parent.$parent.f_state" multiple
54
+ v-model="$parent.$parent.f_state"
55
+ :options='$parent.$parent.charge_state' placeholder='请选择'
56
+ condition="f_state in {}"
57
+ close-on-select></v-select>
58
+ </div>
59
+ <div style = "float:right;">
60
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
61
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
62
+ <report-excel id='gasprice'></report-excel>
63
+ </div>
64
+ </div>
65
+ <!--<div class="span" style = "float:right;">-->
66
+
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" v-if="!$parent.data.f_files_path">
72
+ <thead>
73
+ <tr>
74
+ <th :colspan='$parent.spans' style="font-weight: bold; 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;
82
+ </th>
83
+ </tr>
84
+ <tr>
85
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
86
+ 打印时间:{{{$parent.printTime}}}
87
+ </th>
88
+ </tr>
89
+ <tr>
90
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
91
+ <div>
92
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
93
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
94
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
95
+ </div>
96
+ </th>
97
+ </tr>
98
+ </thead>
99
+ <tr>
100
+ <td :colspan='$parent.spans' class="noborder">
101
+ {{{ model.data.substring(26,model.data.length-8) }}}
102
+ </td>
103
+ </tr>
104
+ <tfoot>
105
+ <tr style="text-align: left">
106
+ <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
107
+ 收款人:
108
+ </th>
109
+ <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
110
+ 审核人:
111
+ </th>
112
+ <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
113
+ 经手人:
114
+ </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 } from 'vue-client'
140
+ import co from 'co'
141
+ let saveFile = function * (self) {
142
+ // 线验证文件是否重名
143
+ let count = yield self.$resetpost('rs/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('rs/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
+ export default {
162
+ title: '营业厅分项汇总表',
163
+ props: ['data'],
164
+ data () {
165
+ return {
166
+ printTime: this.$login.toStandardTimeString(),
167
+ depresid: [],
168
+ userresid: [],
169
+ initres: {
170
+ org:[this.$login.f.orgid],
171
+ dep:[],
172
+ user:[]
173
+ },
174
+ f_orgid: this.$login.f.orgid,
175
+ f_depid: this.$login.f.depids,
176
+ f_operatorid: this.$login.f.id,
177
+ operatorid: [],
178
+ depid: [],
179
+ f_state:['有效'],
180
+ orgname: '',
181
+ depname: '',
182
+ operatorname: '',
183
+ orgCondtionStr: '1=1',
184
+ model: new DataModel('rs/report/fenxiangsell', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
185
+ f_orgid: 'this.model.f_orgid'}),
186
+ reportStr: null,
187
+ show: false,
188
+ spans: ''
189
+ }
190
+ },
191
+ ready () {
192
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
193
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
194
+ // this.$refs.paged.$refs.criteria.search()
195
+ },
196
+ methods: {
197
+ searchData () {
198
+ this.$refs.paged.$refs.criteria.search()
199
+ },
200
+ selfSearch (args) {
201
+ this.printTime = this.$login.toStandardTimeString()
202
+ this.orgCondtionStr='1=1'
203
+ if (this.f_orgid[0]) {
204
+ this.orgCondtionStr += ' and f_orgid = ' + this.f_orgid
205
+ }
206
+ if (this.f_depid[0]) {
207
+ this.orgCondtionStr += " and f_depid in ("+ this.f_depid.toString()+")"
208
+ }
209
+ if(this.f_operatorid[0]) {
210
+ this.orgCondtionStr += ' and f_operatorid = ' + this.f_operatorid
211
+ }
212
+ this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr.replace('1=1','') + (this.f_state && this.f_state != '' ? " and f_state='" + this.f_state + "' " : '')
213
+ this.$refs.paged.search(args)
214
+ },
215
+ getRes (obj) {
216
+ this.orgname = obj.res[0]
217
+ this.depresid = obj.resids
218
+ this.userresid = obj.resids
219
+ this.f_orgid = obj.resids
220
+ },
221
+ getdep (obj, val) {
222
+ this.depname = val[0]
223
+ // this.userresid = obj
224
+ this.f_depid = obj
225
+ },
226
+ getuser ( obj, val) {
227
+ this.operatorname = val[0]
228
+ this.f_operatorid = obj
229
+ },
230
+ // 根据文件路径获取储存的报表内容
231
+ getFileContent (path) {
232
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
233
+ this.reportStr = res.data.filecontent
234
+ this.model.state = '正确'
235
+ })
236
+ },
237
+ confirm () {
238
+ if (!this.filename || this.filename === '') {
239
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
240
+ }
241
+ let saveGen = saveFile(this)
242
+ co(saveGen)
243
+ },
244
+ close () {
245
+ this.show = false
246
+ },
247
+ // 将报表保存成文件
248
+ confirmReport () {
249
+ this.show = true
250
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
251
+ }
252
+ },
253
+ watch: {
254
+ 'data' (val) {
255
+ if (val.f_files_path) {
256
+ this.getFileContent(val.f_files_path)
257
+ } else {
258
+ this.reportStr = null
259
+ }
260
+ },
261
+ 'model.data' (val) {
262
+ let len=0
263
+ let a=val.split('</tr>')
264
+ for(let i=0;i<a.length;i++){
265
+ if(a[i].split('</td>').length-1>len){
266
+ len=a[i].split('</td>').length-1
267
+ }
268
+ continue
269
+ }
270
+ this.spans = len
271
+ }
272
+ },
273
+ computed: {
274
+ charge_state() {
275
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
276
+ }
277
+ }
278
+ }
279
+ </script>
280
+ <style scoped>
281
+ .noborder{
282
+ border: none;
283
+ }
284
+ </style>