manage-client 3.2.28 → 3.2.32

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 (93) hide show
  1. package/build/dev-server.js +9 -9
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/package.json +1 -1
  4. package/src/components/SellReport/AmountGas.vue +257 -257
  5. package/src/components/SellReport/BusinessClassify.vue +317 -268
  6. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  7. package/src/components/SellReport/BusinessReport.vue +256 -256
  8. package/src/components/SellReport/ChSellReport.vue +251 -251
  9. package/src/components/SellReport/ChargeBill.vue +244 -244
  10. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  11. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  12. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  13. package/src/components/SellReport/DepartmentPrick.vue +288 -243
  14. package/src/components/SellReport/DeptHomePage.vue +299 -299
  15. package/src/components/SellReport/FinanceSellType.vue +254 -254
  16. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  17. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -263
  18. package/src/components/SellReport/GasMoneyReport.vue +254 -252
  19. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  20. package/src/components/SellReport/GasSummary.vue +257 -257
  21. package/src/components/SellReport/Gasc.vue +257 -257
  22. package/src/components/SellReport/GetUserNum.vue +240 -240
  23. package/src/components/SellReport/HandplanBili.vue +241 -241
  24. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  25. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  26. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  27. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  28. package/src/components/SellReport/MarketMonth.vue +297 -251
  29. package/src/components/SellReport/MeterPrice.vue +244 -244
  30. package/src/components/SellReport/MeterReader.vue +231 -231
  31. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  32. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  33. package/src/components/SellReport/OtherChargePublicReport.vue +262 -262
  34. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  35. package/src/components/SellReport/PaymentMethod.vue +274 -274
  36. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  37. package/src/components/SellReport/SellDepReport.vue +266 -264
  38. package/src/components/SellReport/UserClassify.vue +271 -222
  39. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  40. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  41. package/src/components/SellReport/YuShouTable.vue +298 -298
  42. package/src/components/SellReport/chargeSchedule.vue +410 -410
  43. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  44. package/src/components/SellReport/userholds.vue +257 -257
  45. package/src/components/sale/businessquery/BusinesQuery.vue +10 -0
  46. package/src/components/sale/businessquery/ChangeMeterQuery.vue +7 -7
  47. package/src/components/sale/businessquery/ChangeUserQuery.vue +10 -1
  48. package/src/components/sale/businessquery/ChargeQuery.vue +10 -0
  49. package/src/components/sale/businessquery/DisableQuery.vue +10 -0
  50. package/src/components/sale/businessquery/EnableQuery.vue +10 -0
  51. package/src/components/sale/businessquery/FillCardQuery.vue +6 -1
  52. package/src/components/sale/businessquery/FillGasQuery.vue +6 -1
  53. package/src/components/sale/businessquery/InspectListUser.vue +433 -433
  54. package/src/components/sale/businessquery/OtherChargeQuery.vue +10 -0
  55. package/src/components/sale/businessquery/ReverseQuery.vue +10 -0
  56. package/src/components/sale/businessquery/TransferQuery.vue +10 -0
  57. package/src/components/sale/config/exportConfig.js +898 -898
  58. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  59. package/src/components/sale/filesquery/DeviceQuery.vue +10 -0
  60. package/src/components/sale/filesquery/FireQuery.vue +477 -473
  61. package/src/components/sale/filesquery/RecordInfoQuery.vue +10 -0
  62. package/src/components/webmeter/gasStatistics/GasStatistics.vue +467 -467
  63. package/src/components/webmeter/newwebmeter/ArrearageQuery.vue +307 -307
  64. package/src/components/webmeter/recharge/RechargeList.vue +343 -343
  65. package/src/components/webmeter/report/ReportList.vue +420 -420
  66. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  67. package/src/filiale/WEINAN/reportManage.js +12 -13
  68. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  69. package/src/filiale/macheng/ArrearsQuery.vue +823 -823
  70. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  71. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  72. package/src/filiale/meihekou/DeviceQuery.vue +545 -0
  73. package/src/filiale/meihekou/RecordInfoQuery.vue +1168 -1158
  74. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  75. package/src/filiale/meihekou/sale.js +31 -29
  76. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  77. package/src/main.js +3 -3
  78. package/src/reportManage.js +498 -498
  79. package/src/saleManage.js +529 -529
  80. package/src/webmeterManage.js +117 -117
  81. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  82. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  83. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  84. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  85. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  86. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  87. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  88. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  89. package/.gradle/7.1/gc.properties +0 -0
  90. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  91. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  92. package/build/tmp/jar/MANIFEST.MF +0 -2
  93. package/src/filiale/WEINAN/BankManager.vue +0 -139
@@ -1,222 +1,271 @@
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
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
- <div class="row">
7
- <div class="col-sm-2 form-group" >
8
- <label class="font_normal_body" for="startDate">月开始日期:</label>
9
- <datepicker id="startDate" placeholder="月开始日期" style="width: 60%"
10
- v-model="model.startDate"
11
- :value.sync="model.startDate"
12
- :disabled-days-of-Week="[]"
13
- :format="'yyyy-MM-dd 00:00:00'"
14
- :show-reset-button="reset">
15
- </datepicker>
16
- </div>
17
- <div class="col-sm-2 form-group" >
18
- <label class="font_normal_body" for="endDate">月结束日期:</label>
19
- <datepicker id="endDate" placeholder="月结束日期" style="width: 60%"
20
- v-model="model.endDate"
21
- :value.sync="model.endDate"
22
- :disabled-days-of-Week="[]"
23
- :format="'yyyy-MM-dd 23:59:59'"
24
- :show-reset-button="reset">
25
- </datepicker>
26
- </div>
27
- <div class="col-sm-2 form-group" >
28
- <label class="font_normal_body" for="yearStartDate">年开始日期:</label>
29
- <datepicker id="yearStartDate" placeholder="年开始日期" style="width: 60%"
30
- v-model="model.yearStartDate"
31
- :value.sync="model.yearStartDate"
32
- :disabled-days-of-Week="[]"
33
- :format="'yyyy-MM-dd 00:00:00'"
34
- :show-reset-button="reset">
35
- </datepicker>
36
- </div>
37
- <div class="col-sm-2 form-group" >
38
- <label class="font_normal_body" for="yearEndDate">年结束日期:</label>
39
- <datepicker id="yearEndDate" placeholder="年结束日期" style="width: 60%"
40
- v-model="model.yearEndDate"
41
- :value.sync="model.yearEndDate"
42
- :disabled-days-of-Week="[]"
43
- :format="'yyyy-MM-dd 23:59:59'"
44
- :show-reset-button="reset">
45
- </datepicker>
46
- </div>
47
- <div class="col-sm-2 form-group" >
48
- <label class="font_normal_body" for="org">公&emsp;&emsp;&emsp;司:</label>
49
- <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
50
- </div>
51
- </div>
52
- <div class="span" style = "float:right;">
53
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
54
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
55
- <report-excel id='gasprice'></report-excel>
56
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
57
- </div>
58
- <div class="row" v-show="$parent.$parent.criteriaShow">
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body" for="dep" >部&emsp;&emsp;&emsp;门:</label>
61
- <res-select id="dep" restype='department' style="width: 60%"
62
- is-mul="false"
63
- @res-select="$parent.$parent.getdep"
64
- :parentresid="$parent.$parent.depresid"
65
- :initresid='$parent.$parent.depid' >
66
- </res-select>
67
-
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body" for="oper">人&emsp;&emsp;&emsp;员:</label>
71
- <res-select id="oper" restype='user' style="width: 60%"
72
- is-mul="false"
73
- @res-select="$parent.$parent.getuser"
74
- :parentresid="$parent.$parent.userresid"
75
- :initresid='$parent.$parent.operatorid'>
76
- </res-select>
77
- </div>
78
- </div>
79
- </div>
80
- </criteria>
81
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
82
- <table class='tableprint' style="margin: 0px auto" >
83
- <thead>
84
- <tr>
85
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
86
- <h3 style="text-align: center">用户分类统计</h3>
87
- </th>
88
- </tr>
89
- <tr>
90
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
91
- 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
92
- 打印时间:{{$parent.printTime}}
93
- </th>
94
- </tr>
95
- <tr>
96
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
97
- <div>
98
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
99
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
100
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
101
- </div>
102
- </th>
103
- </tr>
104
- </thead>
105
- <tr>
106
- <td :colspan='$parent.tablen' class="noborder">
107
- {{{ model.data.substring(26,model.data.length-8) }}}
108
- </td>
109
- </tr>
110
- <tfoot>
111
- <tr style="text-align: left">
112
- <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
113
- <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
114
- <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
115
- </tr>
116
- </tfoot>
117
- </table>
118
- {{{ $parent.reportStr}}}
119
- </div>
120
- </criteria-paged>
121
- </div>
122
- </template>
123
-
124
- <script>
125
- import { DataModel } from 'vue-client'
126
- import co from 'co'
127
- export default {
128
- title: '用户分类统计',
129
- props: ['data'],
130
- data () {
131
- return {
132
- printTime: this.$login.toStandardTimeString(),
133
- depresid: [],
134
- userresid: [],
135
- f_orgid: this.$login.f.orgid,
136
- f_depid: this.$login.f.depids,
137
- f_operatorid: this.$login.f.id,
138
- operatorid: [],
139
- depid: [],
140
- tablen:0,
141
- orgname: '',
142
- depname: '',
143
- operatorname: '',
144
- orgCondtionStr: '1=1',
145
- model: new DataModel('rs/report/UserClassify', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
146
- yearStartDate: 'this.model.yearStartDate', yearEndDate: 'this.model.yearEndDate',f_orgid: 'this.model.f_orgid'}),
147
- reportStr: null,
148
- criteriaShow: false
149
- }
150
- },
151
- ready () {
152
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
153
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
154
- console.log(this.$login.f)
155
- },
156
- methods: {
157
- searchData () {
158
- this.$refs.paged.$refs.criteria.search()
159
- },
160
- selfSearch (args) {
161
- this.printTime = this.$login.toStandardTimeString()
162
- let orgcondition = ' f_orgid in(' + this.f_orgid + ')'
163
- if (this.f_depid[0]) {
164
- orgcondition += ' and f_depid in(' + this.f_depid + ')'
165
- }
166
- if(this.f_operatorid[0]) {
167
- orgcondition += ' and f_operatorid in(' + this.f_operatorid + ')'
168
- }
169
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
170
- this.$refs.paged.search(args)
171
- },
172
- getRes (obj) {
173
- this.orgname = obj.res[0]
174
- this.depresid = obj.resids
175
- this.userresid = obj.resids
176
- this.f_orgid = obj.resids
177
- },
178
- getdep (obj, val) {
179
- this.depname = val[0]
180
- // this.userresid = obj
181
- this.f_depid = obj
182
- },
183
- getuser ( obj, val) {
184
- this.operatorname = val[0]
185
- this.f_operatorid = obj
186
- },
187
- show() {
188
- this.criteriaShow = true
189
- },
190
- hidden() {
191
- this.criteriaShow = !this.criteriaShow
192
- }
193
- },
194
- watch: {
195
- 'data' (val) {
196
- if (val.f_files_path) {
197
- this.getFileContent(val.f_files_path)
198
- } else {
199
- this.reportStr = null
200
- }
201
- },
202
- 'model.data' (val) {
203
- let len=0
204
- let a=val.split('</tr>')
205
- for(let i=0;i<a.length;i++){
206
- if(a[i].split('</td>').length-1>len){
207
- len=a[i].split('</td>').length-1
208
- }
209
- }
210
- this.tablen=len
211
- }
212
- },
213
- computed: {
214
-
215
- }
216
- }
217
- </script>
218
- <style scoped>
219
- .noborder{
220
- border: none;
221
- }
222
- </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-3" >
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 00:00:00'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-3" >
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 23:59:59'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-3" >
30
+ <label class="font_normal_body" for="yearStartDate">年开始日期:</label>
31
+ <datepicker id="yearStartDate" placeholder="年开始日期" style="width: 60%"
32
+ v-model="model.yearStartDate"
33
+ :value.sync="model.yearStartDate"
34
+ :disabled-days-of-Week="[]"
35
+ :format="'yyyy-MM-dd 00:00:00'"
36
+ :show-reset-button="reset">
37
+ </datepicker>
38
+ </div>
39
+ <div class="col-sm-3" >
40
+ <label class="font_normal_body" for="yearEndDate">年结束日期:</label>
41
+ <datepicker id="yearEndDate" placeholder="年结束日期" style="width: 60%"
42
+ v-model="model.yearEndDate"
43
+ :value.sync="model.yearEndDate"
44
+ :disabled-days-of-Week="[]"
45
+ :format="'yyyy-MM-dd 23:59:59'"
46
+ :show-reset-button="reset">
47
+ </datepicker>
48
+ </div>
49
+ <div class="col-sm-3 form-group" >
50
+ <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
51
+ <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
52
+ </div>
53
+ <div class="col-sm-3 form-group">
54
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
55
+ <res-select id="dep" restype='department' style="width: 60%"
56
+ is-mul="false"
57
+ @res-select="$parent.$parent.getdep"
58
+ :parentresid="$parent.$parent.depresid"
59
+ :initresid='$parent.$parent.depid' >
60
+ </res-select>
61
+
62
+ </div>
63
+ <div class="col-sm-3 form-group">
64
+ <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
65
+ <res-select id="oper" restype='user' style="width: 60%"
66
+ is-mul="false"
67
+ @res-select="$parent.$parent.getuser"
68
+ :parentresid="$parent.$parent.userresid"
69
+ :initresid='$parent.$parent.operatorid'>
70
+ </res-select>
71
+ </div>
72
+ </div>
73
+ <div class="span" style = "float:right;">
74
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
75
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
76
+ <report-excel id='gasprice'></report-excel>
77
+ </div>
78
+ </div>
79
+ </criteria>
80
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
81
+ <table class='tableprint' style="margin: 0px auto" >
82
+ <thead>
83
+ <tr>
84
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
85
+ <h3 style="text-align: center">用户分类统计</h3>
86
+ </th>
87
+ </tr>
88
+ <tr>
89
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
90
+ 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
91
+ 打印时间:{{$parent.printTime}}
92
+ </th>
93
+ </tr>
94
+ <tr>
95
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
96
+ <div>
97
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
98
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
99
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
100
+ </div>
101
+ </th>
102
+ </tr>
103
+ </thead>
104
+ <tr>
105
+ <td :colspan='$parent.tablen' class="noborder">
106
+ {{{ model.data.substring(26,model.data.length-8) }}}
107
+ </td>
108
+ </tr>
109
+ <tfoot>
110
+ <tr style="text-align: left">
111
+ <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
112
+ <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
113
+ <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
114
+ </tr>
115
+ </tfoot>
116
+ </table>
117
+ {{{ $parent.reportStr}}}
118
+ </div>
119
+ </criteria-paged>
120
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
121
+ <header slot="modal-header" class="modal-header">
122
+ <h4 class="modal-title">输入文件名称</h4>
123
+ </header>
124
+ <article slot="modal-body" class="modal-body">
125
+ <div class="form-group">
126
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
127
+ </div>
128
+ </article>
129
+ <footer slot="modal-footer" class="modal-footer">
130
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
131
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
132
+ </footer>
133
+ </modal>
134
+ </div>
135
+ </template>
136
+
137
+ <script>
138
+ import { DataModel } from 'vue-client'
139
+ import co from 'co'
140
+ let saveFile = function * (self) {
141
+ // 线验证文件是否重名
142
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
143
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
144
+ {resolveMsg: null, rejectMsg: null})
145
+ if (count.data.length > 0) {
146
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
147
+ return
148
+ }
149
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
150
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
151
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
152
+ f_outlets: this.$login.f.depname})
153
+ if (saveBack.data.status === 'succeed') {
154
+ self.show = false
155
+ self.filename = ''
156
+ // 后台保存完成,通知刷新
157
+ self.$dispatch('save-success', self.filename)
158
+ }
159
+ }
160
+ export default {
161
+ title: '用户分类统计',
162
+ props: ['data'],
163
+ data () {
164
+ return {
165
+ printTime: this.$login.toStandardTimeString(),
166
+ depresid: [],
167
+ userresid: [],
168
+ f_orgid: this.$login.f.orgid,
169
+ f_depid: this.$login.f.depids,
170
+ f_operatorid: this.$login.f.id,
171
+ operatorid: [],
172
+ depid: [],
173
+ tablen:0,
174
+ orgname: '',
175
+ depname: '',
176
+ operatorname: '',
177
+ orgCondtionStr: '1=1',
178
+ model: new DataModel('rs/report/UserClassify', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
179
+ yearStartDate: 'this.model.yearStartDate', yearEndDate: 'this.model.yearEndDate',f_orgid: 'this.model.f_orgid'}),
180
+ reportStr: null,
181
+ show: false,
182
+ }
183
+ },
184
+ ready () {
185
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
186
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
187
+ console.log(this.$login.f)
188
+ },
189
+ methods: {
190
+ searchData () {
191
+ this.$refs.paged.$refs.criteria.search()
192
+ },
193
+ selfSearch (args) {
194
+ this.printTime = this.$login.toStandardTimeString()
195
+ let orgcondition = ' f_orgid in(' + this.f_orgid + ')'
196
+ if (this.f_depid[0]) {
197
+ orgcondition += ' and f_depid in(' + this.f_depid + ')'
198
+ }
199
+ if(this.f_operatorid[0]) {
200
+ orgcondition += ' and f_operatorid in(' + this.f_operatorid + ')'
201
+ }
202
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
203
+ this.$refs.paged.search(args)
204
+ },
205
+ getRes (obj) {
206
+ this.orgname = obj.res[0]
207
+ this.depresid = obj.resids
208
+ this.userresid = obj.resids
209
+ this.f_orgid = obj.resids
210
+ },
211
+ getdep (obj, val) {
212
+ this.depname = val[0]
213
+ // this.userresid = obj
214
+ this.f_depid = obj
215
+ },
216
+ getuser ( obj, val) {
217
+ this.operatorname = val[0]
218
+ this.f_operatorid = obj
219
+ },
220
+ // 根据文件路径获取储存的报表内容
221
+ getFileContent (path) {
222
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
223
+ this.reportStr = res.data.filecontent
224
+ this.model.state = '正确'
225
+ })
226
+ },
227
+ confirm () {
228
+ if (!this.filename || this.filename === '') {
229
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
230
+ }
231
+ let saveGen = saveFile(this)
232
+ co(saveGen)
233
+ },
234
+ close () {
235
+ this.show = false
236
+ },
237
+ // 将报表保存成文件
238
+ confirmReport () {
239
+ this.show = true
240
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
241
+ }
242
+ },
243
+ watch: {
244
+ 'data' (val) {
245
+ if (val.f_files_path) {
246
+ this.getFileContent(val.f_files_path)
247
+ } else {
248
+ this.reportStr = null
249
+ }
250
+ },
251
+ 'model.data' (val) {
252
+ let len=0
253
+ let a=val.split('</tr>')
254
+ for(let i=0;i<a.length;i++){
255
+ if(a[i].split('</td>').length-1>len){
256
+ len=a[i].split('</td>').length-1
257
+ }
258
+ }
259
+ this.tablen=len
260
+ }
261
+ },
262
+ computed: {
263
+
264
+ }
265
+ }
266
+ </script>
267
+ <style scoped>
268
+ .noborder{
269
+ border: none;
270
+ }
271
+ </style>