manage-client 3.2.22 → 3.2.26

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 (74) hide show
  1. package/build/dev-server.js +5 -7
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/package.json +3 -3
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/SellReport/BonSummary.vue +178 -178
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -0
  8. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  9. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  10. package/src/components/SellReport/NonResidentGas.vue +203 -203
  11. package/src/components/SellReport/OtherChargePublicReport.vue +262 -0
  12. package/src/components/SellReport/OutletTable.vue +258 -258
  13. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  14. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  15. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  16. package/src/components/SellReport/SellingTable.vue +220 -220
  17. package/src/components/SellReport/UserSellingGas.vue +228 -228
  18. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  19. package/src/components/daping/GMap.vue +636 -636
  20. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  21. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  22. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  23. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  24. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  25. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  26. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  27. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  28. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  29. package/src/components/sale/businessquery/usergas.vue +1 -3
  30. package/src/components/sale/config/exportConfig.js +12 -1
  31. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  32. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  33. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  34. package/src/components/webmeter/DrillData/UserGasAll.vue +17 -6
  35. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  36. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  37. package/src/components/webmeter/gasStatistics/GasStatistics.vue +467 -0
  38. package/src/components/webmeter/newwebmeter/ArrearageQuery.vue +307 -0
  39. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  40. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  41. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  42. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  43. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  44. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  45. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  46. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  47. package/src/components/webmeter/recharge/RechargeList.vue +343 -0
  48. package/src/components/webmeter/report/ReportList.vue +2 -16
  49. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  50. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  51. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  52. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  53. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  54. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  55. package/src/filiale/WEINAN/reportManage.js +12 -12
  56. package/src/filiale/WEINAN/sale.js +36 -36
  57. package/src/filiale/alashan/reportManage.js +10 -10
  58. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  59. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  60. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  61. package/src/filiale/macheng/ArrearsQuery.vue +1 -1
  62. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1029
  63. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  64. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  65. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  66. package/src/filiale/meihekou/sale.js +29 -29
  67. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  68. package/src/filiale/rongchuang/reportManage.js +11 -11
  69. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  70. package/src/filiale/tongchuan/reportManage.js +5 -5
  71. package/src/main.js +5 -4
  72. package/src/reportManage.js +8 -0
  73. package/src/webmeterManage.js +6 -0
  74. 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>