manage-client 3.2.42 → 3.2.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 (111) hide show
  1. package/build/dev-server.js +8 -26
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/ChargePrick.vue +205 -205
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  8. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  9. package/src/components/SellReport/NonResidentGas.vue +203 -203
  10. package/src/components/SellReport/OutletTable.vue +258 -258
  11. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  12. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  13. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  14. package/src/components/SellReport/SellingTable.vue +220 -220
  15. package/src/components/SellReport/UserSellingGas.vue +228 -228
  16. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  17. package/src/components/daping/GMap.vue +636 -636
  18. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  19. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  20. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  21. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -380
  22. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  23. package/src/components/sale/businessquery/BusinessManage.vue +6 -1
  24. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  25. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  26. package/src/components/sale/businessquery/CollectManage.vue +138 -138
  27. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  28. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  29. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  30. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  31. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  32. package/src/components/sale/businessquery/GasLossQuery.vue +561 -0
  33. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  34. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  35. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  36. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  37. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  38. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  39. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  40. package/src/components/sale/businessquery/gasPriceQuery.vue +365 -0
  41. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  42. package/src/components/sale/businessquery/usergas.vue +311 -311
  43. package/src/components/sale/config/exportConfig.js +10 -0
  44. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  45. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  46. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  47. package/src/components/statistical/DendrogramManage.vue +239 -239
  48. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  49. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  50. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  51. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  53. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  54. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  55. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  56. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  57. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  58. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  59. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  60. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  61. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  62. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  63. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  64. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  65. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  66. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  67. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  68. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  69. package/src/filiale/WEINAN/reportManage.js +12 -12
  70. package/src/filiale/WEINAN/sale.js +36 -36
  71. package/src/filiale/alashan/reportManage.js +10 -10
  72. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  73. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  74. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  75. package/src/filiale/macheng/MeterQuery.vue +12 -0
  76. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  77. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  78. package/src/filiale/pingxiang/sale.js +9 -9
  79. package/src/filiale/qianneng/OtherChargeDetailQuery.vue +74 -0
  80. package/src/filiale/qianneng/OtherChargeQuery.vue +634 -0
  81. package/src/filiale/qianneng/sale.js +9 -0
  82. package/src/filiale/qingtongxia/sale.js +13 -13
  83. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  84. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  85. package/src/filiale/rongchuang/reportManage.js +11 -11
  86. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  87. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  88. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  89. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  90. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  91. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  92. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  93. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  94. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  95. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  96. package/src/filiale/tongchuan/reportManage.js +5 -5
  97. package/src/filiale/wuhai/ChargeQuery.vue +19 -16
  98. package/src/filiale/zhongsheng/ChargeQuery.vue +1255 -1255
  99. package/src/filiale/zhongsheng/config/exportConfig.js +899 -899
  100. package/src/filiale/zhongsheng/sale.js +10 -10
  101. package/src/main.js +3 -3
  102. package/src/saleManage.js +9 -0
  103. package/static/wuhai.json +1610 -1610
  104. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  105. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  106. package/.gradle/5.4.1/gc.properties +0 -0
  107. package/src/.idea/misc.xml +0 -9
  108. package/src/.idea/modules.xml +0 -8
  109. package/src/.idea/src.iml +0 -9
  110. package/src/.idea/vcs.xml +0 -6
  111. package/src/.idea/workspace.xml +0 -93
@@ -1,237 +1,237 @@
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" style="width: 60%"></right-tree>
32
- </div>
33
- <div class="span" style = "float:right;">
34
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
35
- <report-print id='gasprice' top='1.5cm' left='0' width='100%' height='100%' :preview="true"></report-print>
36
- <report-excel id='gasprice'></report-excel>
37
- </div>
38
- </div>
39
- </div>
40
- </criteria>
41
- <!-- <report-info id="gasprice"-->
42
- <!-- report-title="收费结账报表"-->
43
- <!-- :infohead="{'开始时间':model.model.startDate,'结束时间':model.model.endDate,'打印时间':$parent.printTime}"-->
44
- <!-- :orgname="$parent.orgname"-->
45
- <!-- :depname="$parent.depname"-->
46
- <!-- :operatorname="$parent.operatorname"-->
47
- <!-- :model="model.data.substring(26,model.data.length-8)"-->
48
- <!-- :reportStr="$parent.reportStr"-->
49
- <!-- ></report-info>-->
50
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
51
- <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
52
- <thead>
53
- <tr>
54
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
55
- <h3 style="text-align: center">收费结账报表</h3>
56
- </th>
57
- </tr>
58
- <tr>
59
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
60
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
61
- 结束时间:{{ model.model.endDate }}<br/>
62
- 打印时间:{{$parent.printTime}}
63
- <!--收费员:{{// $parent.operatorname}}-->
64
- </th>
65
- </tr>
66
- <tr>
67
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
68
- <div>
69
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
70
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
71
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
72
- </div>
73
- </th>
74
- </tr>
75
- </thead>
76
- <tr>
77
- <td :colspan='$parent.spans' class="noborder">
78
- {{{ model.data.substring(26,model.data.length-8) }}}
79
- </td>
80
- </tr>
81
- <tfoot>
82
- <tr style="text-align: left">
83
- <th :colspan='$parent.spans/3'>财务审核:</th>
84
- <th :colspan='$parent.spans/3'>收款审核:</th>
85
- <th :colspan='$parent.spans/3'>收款员:</th>
86
- </tr>
87
- </tfoot>
88
- </table>
89
- {{{ $parent.reportStr}}}
90
- </div>
91
- </criteria-paged>
92
- <modal :show.sync="show" v-ref:modal small backdrop="false">
93
- <header slot="modal-header" class="modal-header">
94
- <h4 class="modal-title">输入文件名称</h4>
95
- </header>
96
- <article slot="modal-body" class="modal-body">
97
- <div class="form-group">
98
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
99
- </div>
100
- </article>
101
- <footer slot="modal-footer" class="modal-footer">
102
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
103
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
104
- </footer>
105
- </modal>
106
- </div>
107
- </template>
108
-
109
- <script>
110
- import { DataModel } from 'vue-client'
111
- import co from 'co'
112
- let saveFile = function * (self) {
113
- // 线验证文件是否重名
114
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
115
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
116
- {resolveMsg: null, rejectMsg: null})
117
- if (count.data.length > 0) {
118
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
119
- return
120
- }
121
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
122
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
123
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
124
- f_outlets: this.$login.f.depname})
125
- if (saveBack.data.status === 'succeed') {
126
- self.show = false
127
- self.filename = ''
128
- // 后台保存完成,通知刷新
129
- self.$dispatch('save-success', self.filename)
130
- }
131
- }
132
- export default {
133
- title: '收费结账报表',
134
- props: ['data'],
135
- data () {
136
- return {
137
- printTime: this.$login.toStandardTimeString(),
138
- depresid: [],
139
- userresid: [],
140
- f_orgid: this.$login.f.orgid,
141
- f_depid: this.$login.f.depids,
142
- f_operatorid: this.$login.f.id,
143
- operatorid: [],
144
- depid: [],
145
- orgname: '',
146
- depname: '',
147
- operatorname: '',
148
- orgCondtionStr: '1=1',
149
- f_state:['有效'],
150
- model: new DataModel('rs/report/gasBaozhuangfee', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
151
- f_orgid: 'this.model.f_orgid'}),
152
- reportStr: null,
153
- show: false,
154
- spans:0,
155
- initres: {
156
- org: [this.$login.f.orgid],
157
- dep: [],
158
- user: []
159
- }
160
- }
161
- },
162
- ready () {
163
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
164
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
165
- // this.$refs.paged.$refs.criteria.search()
166
- console.log(this.$login.f)
167
- },
168
- methods: {
169
- searchData () {
170
- this.$refs.paged.$refs.criteria.search()
171
- },
172
- selfSearch (args) {
173
- this.printTime = this.$login.toStandardTimeString()
174
- this.orgCondtionStr='1=1'
175
- if (this.f_orgid[0]) {
176
- this.orgCondtionStr += ` and f_orgname in ('${this.orgname.toString().replace(new RegExp(',','g'),"','")}')`
177
- }
178
- this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr
179
- this.$refs.paged.search(args)
180
- },
181
- // 根据文件路径获取储存的报表内容
182
- getFileContent (path) {
183
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
184
- this.reportStr = res.data.filecontent
185
- this.model.state = '正确'
186
- })
187
- },
188
- confirm () {
189
- if (!this.filename || this.filename === '') {
190
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
191
- }
192
- let saveGen = saveFile(this)
193
- co(saveGen)
194
- },
195
- close () {
196
- this.show = false
197
- },
198
- // 将报表保存成文件
199
- confirmReport () {
200
- this.show = true
201
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
202
- },
203
- getRes (obj) {
204
- this.orgname = obj.res
205
- this.f_orgid = obj.resids
206
- },
207
- },
208
- watch: {
209
- 'data' (val) {
210
- if (val.f_files_path) {
211
- this.getFileContent(val.f_files_path)
212
- } else {
213
- this.reportStr = null
214
- }
215
- },
216
- 'model.data' (val) {
217
- let len=0
218
- let a=val.split('</tr>')
219
- for(let i=0;i<a.length;i++){
220
- if(a[i].split('</td>').length-1>len){
221
- len=a[i].split('</td>').length-1
222
- }
223
- continue
224
- }
225
- this.spans = len
226
- }
227
- },
228
- computed: {
229
- }
230
- }
231
-
232
- </script>
233
- <style scoped>
234
- .noborder{
235
- border: none;
236
- }
237
- </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" style="width: 60%"></right-tree>
32
+ </div>
33
+ <div class="span" style = "float:right;">
34
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
35
+ <report-print id='gasprice' top='1.5cm' left='0' width='100%' height='100%' :preview="true"></report-print>
36
+ <report-excel id='gasprice'></report-excel>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ </criteria>
41
+ <!-- <report-info id="gasprice"-->
42
+ <!-- report-title="收费结账报表"-->
43
+ <!-- :infohead="{'开始时间':model.model.startDate,'结束时间':model.model.endDate,'打印时间':$parent.printTime}"-->
44
+ <!-- :orgname="$parent.orgname"-->
45
+ <!-- :depname="$parent.depname"-->
46
+ <!-- :operatorname="$parent.operatorname"-->
47
+ <!-- :model="model.data.substring(26,model.data.length-8)"-->
48
+ <!-- :reportStr="$parent.reportStr"-->
49
+ <!-- ></report-info>-->
50
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
51
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
52
+ <thead>
53
+ <tr>
54
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
55
+ <h3 style="text-align: center">收费结账报表</h3>
56
+ </th>
57
+ </tr>
58
+ <tr>
59
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
60
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
61
+ 结束时间:{{ model.model.endDate }}<br/>
62
+ 打印时间:{{$parent.printTime}}
63
+ <!--收费员:{{// $parent.operatorname}}-->
64
+ </th>
65
+ </tr>
66
+ <tr>
67
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
68
+ <div>
69
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
70
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
71
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
72
+ </div>
73
+ </th>
74
+ </tr>
75
+ </thead>
76
+ <tr>
77
+ <td :colspan='$parent.spans' class="noborder">
78
+ {{{ model.data.substring(26,model.data.length-8) }}}
79
+ </td>
80
+ </tr>
81
+ <tfoot>
82
+ <tr style="text-align: left">
83
+ <th :colspan='$parent.spans/3'>财务审核:</th>
84
+ <th :colspan='$parent.spans/3'>收款审核:</th>
85
+ <th :colspan='$parent.spans/3'>收款员:</th>
86
+ </tr>
87
+ </tfoot>
88
+ </table>
89
+ {{{ $parent.reportStr}}}
90
+ </div>
91
+ </criteria-paged>
92
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
93
+ <header slot="modal-header" class="modal-header">
94
+ <h4 class="modal-title">输入文件名称</h4>
95
+ </header>
96
+ <article slot="modal-body" class="modal-body">
97
+ <div class="form-group">
98
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
99
+ </div>
100
+ </article>
101
+ <footer slot="modal-footer" class="modal-footer">
102
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
103
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
104
+ </footer>
105
+ </modal>
106
+ </div>
107
+ </template>
108
+
109
+ <script>
110
+ import { DataModel } from 'vue-client'
111
+ import co from 'co'
112
+ let saveFile = function * (self) {
113
+ // 线验证文件是否重名
114
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
115
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
116
+ {resolveMsg: null, rejectMsg: null})
117
+ if (count.data.length > 0) {
118
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
119
+ return
120
+ }
121
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
122
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
123
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
124
+ f_outlets: this.$login.f.depname})
125
+ if (saveBack.data.status === 'succeed') {
126
+ self.show = false
127
+ self.filename = ''
128
+ // 后台保存完成,通知刷新
129
+ self.$dispatch('save-success', self.filename)
130
+ }
131
+ }
132
+ export default {
133
+ title: '收费结账报表',
134
+ props: ['data'],
135
+ data () {
136
+ return {
137
+ printTime: this.$login.toStandardTimeString(),
138
+ depresid: [],
139
+ userresid: [],
140
+ f_orgid: this.$login.f.orgid,
141
+ f_depid: this.$login.f.depids,
142
+ f_operatorid: this.$login.f.id,
143
+ operatorid: [],
144
+ depid: [],
145
+ orgname: '',
146
+ depname: '',
147
+ operatorname: '',
148
+ orgCondtionStr: '1=1',
149
+ f_state:['有效'],
150
+ model: new DataModel('rs/report/gasBaozhuangfee', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
151
+ f_orgid: 'this.model.f_orgid'}),
152
+ reportStr: null,
153
+ show: false,
154
+ spans:0,
155
+ initres: {
156
+ org: [this.$login.f.orgid],
157
+ dep: [],
158
+ user: []
159
+ }
160
+ }
161
+ },
162
+ ready () {
163
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
164
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
165
+ // this.$refs.paged.$refs.criteria.search()
166
+ console.log(this.$login.f)
167
+ },
168
+ methods: {
169
+ searchData () {
170
+ this.$refs.paged.$refs.criteria.search()
171
+ },
172
+ selfSearch (args) {
173
+ this.printTime = this.$login.toStandardTimeString()
174
+ this.orgCondtionStr='1=1'
175
+ if (this.f_orgid[0]) {
176
+ this.orgCondtionStr += ` and f_orgname in ('${this.orgname.toString().replace(new RegExp(',','g'),"','")}')`
177
+ }
178
+ this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr
179
+ this.$refs.paged.search(args)
180
+ },
181
+ // 根据文件路径获取储存的报表内容
182
+ getFileContent (path) {
183
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
184
+ this.reportStr = res.data.filecontent
185
+ this.model.state = '正确'
186
+ })
187
+ },
188
+ confirm () {
189
+ if (!this.filename || this.filename === '') {
190
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
191
+ }
192
+ let saveGen = saveFile(this)
193
+ co(saveGen)
194
+ },
195
+ close () {
196
+ this.show = false
197
+ },
198
+ // 将报表保存成文件
199
+ confirmReport () {
200
+ this.show = true
201
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
202
+ },
203
+ getRes (obj) {
204
+ this.orgname = obj.res
205
+ this.f_orgid = obj.resids
206
+ },
207
+ },
208
+ watch: {
209
+ 'data' (val) {
210
+ if (val.f_files_path) {
211
+ this.getFileContent(val.f_files_path)
212
+ } else {
213
+ this.reportStr = null
214
+ }
215
+ },
216
+ 'model.data' (val) {
217
+ let len=0
218
+ let a=val.split('</tr>')
219
+ for(let i=0;i<a.length;i++){
220
+ if(a[i].split('</td>').length-1>len){
221
+ len=a[i].split('</td>').length-1
222
+ }
223
+ continue
224
+ }
225
+ this.spans = len
226
+ }
227
+ },
228
+ computed: {
229
+ }
230
+ }
231
+
232
+ </script>
233
+ <style scoped>
234
+ .noborder{
235
+ border: none;
236
+ }
237
+ </style>