manage-client 3.1.39 → 3.1.43

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 (98) hide show
  1. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  2. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  3. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  4. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  5. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  6. package/.gradle/5.2.1/gc.properties +0 -0
  7. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  8. package/build/dev-server.js +174 -181
  9. package/package.json +1 -1
  10. package/src/App.vue +28 -29
  11. package/src/components/BasisEcharts/BarChart.vue +247 -247
  12. package/src/components/BasisEcharts/RingChart.vue +196 -196
  13. package/src/components/SellReport/BusinessClassify.vue +317 -293
  14. package/src/components/SellReport/ChargePrick.vue +284 -284
  15. package/src/components/SellReport/DepartmentPrick.vue +288 -288
  16. package/src/components/SellReport/FinanceSellType.vue +254 -254
  17. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  18. package/src/components/SellReport/GasPrice.vue +244 -244
  19. package/src/components/SellReport/ManageBusSummary.vue +242 -242
  20. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  21. package/src/components/SellReport/ManageOtherCharge.vue +250 -250
  22. package/src/components/SellReport/ManageSellType.vue +284 -284
  23. package/src/components/SellReport/ManageUserCount.vue +347 -347
  24. package/src/components/SellReport/MarketMonth.vue +297 -251
  25. package/src/components/SellReport/SaleMonthReport.vue +227 -227
  26. package/src/components/SellReport/SellingTable.vue +220 -220
  27. package/src/components/SellReport/UserClassify.vue +271 -251
  28. package/src/components/SellReport/UserSellingGas.vue +251 -251
  29. package/src/components/daping/CallCenter.vue +366 -366
  30. package/src/components/daping/DataManagement.vue +537 -537
  31. package/src/components/daping/GMap.vue +636 -636
  32. package/src/components/daping/ManageMain.vue +270 -270
  33. package/src/components/daping/NetWork.vue +238 -238
  34. package/src/components/daping/RedactDaPing.vue +468 -468
  35. package/src/components/daping/Ring.vue +212 -212
  36. package/src/components/daping/SafeCheck.vue +446 -446
  37. package/src/components/daping/SafeCheckRing.vue +166 -166
  38. package/src/components/daping/SafecheckBarChart.vue +233 -233
  39. package/src/components/daping/WuHaiMap.vue +418 -418
  40. package/src/components/qinhua/BarChart.vue +256 -256
  41. package/src/components/qinhua/Pie.vue +132 -132
  42. package/src/components/qinhua/SellEcharts.vue +115 -115
  43. package/src/components/qinhua/qinHuaMap.vue +414 -414
  44. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  45. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  46. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  47. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  48. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  49. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  50. package/src/components/sale/filesquery/DeviceQuery.vue +45 -11
  51. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  52. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  53. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  54. package/src/components/webmeter/DrillData/UserGasAll.vue +597 -597
  55. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  56. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  57. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  58. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +171 -170
  59. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  60. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +275 -903
  61. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  62. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +213 -238
  63. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +240 -266
  64. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  65. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +218 -218
  66. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  67. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +2 -46
  68. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  69. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  70. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  71. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  72. package/src/filiale/alashan/SellingTable.vue +234 -234
  73. package/src/filiale/alashan/reportManage.js +10 -10
  74. package/src/filiale/jingwei/RecordInfoQuery.vue +14 -14
  75. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  76. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  77. package/src/filiale/liaoyuan/ChargeQuery.vue +6 -0
  78. package/src/filiale/liaoyuan/exportConfig.js +1 -1
  79. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  80. package/src/filiale/meihekou/sale.js +26 -26
  81. package/src/filiale/rongcheng/exportConfig.js +257 -257
  82. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  83. package/src/filiale/rongchuang/reportManage.js +11 -11
  84. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  85. package/src/filiale/shaoguan/sale/businessquery/oldList.vue +41 -0
  86. package/src/filiale/shaoguan/sale/businessquery/oldMeterList.vue +290 -0
  87. package/src/filiale/shaoguan/sale.js +3 -1
  88. package/src/filiale/tongchuan/ManageBusSummary.vue +302 -301
  89. package/src/filiale/tongchuan/ReportList.vue +456 -0
  90. package/src/filiale/tongchuan/ResSelectGroupNew.vue +7 -2
  91. package/src/filiale/tongchuan/reportManage.js +6 -5
  92. package/src/main.js +66 -66
  93. package/src/newmanage.js +525 -525
  94. package/src/reportManage.js +462 -462
  95. package/src/saleManage.js +2 -3
  96. package/static/wuhai.json +1610 -1610
  97. package/src/components/SellReport/SellCollect.vue +0 -183
  98. package/src/components/sale/businessquery/NewHandplanQuery.vue +0 -995
@@ -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">
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 in (' + 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 in (' + 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">
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 in (' + 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 in (' + 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>