manage-client 3.2.4 → 3.2.5

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 (55) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/{5.2.1 → 7.1/dependencies-accessors}/gc.properties +0 -0
  4. package/.gradle/{5.2.1 → 7.1}/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/{5.2.1 → 7.1}/fileChanges/last-build.bin +0 -0
  7. package/.gradle/{5.2.1 → 7.1}/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +6 -6
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/components/SellReport/AmountGas.vue +257 -257
  16. package/src/components/SellReport/BonSummary.vue +244 -244
  17. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  18. package/src/components/SellReport/BusinessReport.vue +256 -256
  19. package/src/components/SellReport/ChSellReport.vue +251 -251
  20. package/src/components/SellReport/ChargeBill.vue +244 -244
  21. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  22. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  23. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  24. package/src/components/SellReport/DeptHomePage.vue +299 -299
  25. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  26. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  27. package/src/components/SellReport/GasSummary.vue +257 -257
  28. package/src/components/SellReport/Gasc.vue +257 -257
  29. package/src/components/SellReport/GetUserNum.vue +240 -240
  30. package/src/components/SellReport/HandplanBili.vue +241 -241
  31. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  32. package/src/components/SellReport/ManageGasPrice.vue +241 -241
  33. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  34. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  35. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  36. package/src/components/SellReport/MeterPrice.vue +244 -244
  37. package/src/components/SellReport/MeterReader.vue +231 -231
  38. package/src/components/SellReport/NonResidentGas.vue +244 -244
  39. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  40. package/src/components/SellReport/OutletTable.vue +258 -258
  41. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  42. package/src/components/SellReport/PaymentMethod.vue +274 -274
  43. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  44. package/src/components/SellReport/SellDepReport.vue +266 -266
  45. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  46. package/src/components/SellReport/UserSellingGas.vue +251 -251
  47. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  48. package/src/components/SellReport/YuShouTable.vue +298 -298
  49. package/src/components/SellReport/chargeSchedule.vue +410 -410
  50. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  51. package/src/components/SellReport/userholds.vue +257 -257
  52. package/src/filiale/tongchuan/ReportList.vue +472 -472
  53. package/src/filiale/tongchuan/sale.js +16 -16
  54. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  55. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
@@ -1,299 +1,299 @@
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="$parent.$parent.startdate"
13
- :value.sync="$parent.$parent.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="$parent.$parent.enddate"
23
- :value.sync="$parent.$parent.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
- @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">
43
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
44
- <res-select 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>
52
- <div class="span" style = "float:right;">
53
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
54
- <report-print id='gasprice' top='2cm' left='2' width='100%' height='100%' :preview="true"></report-print>
55
- <report-excel id='gasprice'></report-excel>
56
- </div>
57
- </div>
58
- </criteria>
59
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
60
- <table class='tableprint' style="margin: 0px auto;border-spacing: 0px 0px;font-size:13px;" v-if="!$parent.data.f_files_path">
61
- <thead>
62
- <tr>
63
- <th colspan='12' style="font-weight: normal; text-align: left; font-size: 2em
64
- ;">
65
- <h3 style="text-align: center">营业厅明细首页</h3>
66
- </th>
67
- </tr>
68
- <tr>
69
- <th colspan='12' style="font-weight: normal; text-align: left; font-size: 1em;">
70
- <b style="text-align: left; font-size:15px;margin-left: 20px;" v-if="$parent.startDate==$parent.endDate">
71
- {{$parent.startDate}}
72
- </b>
73
- <b style="text-align: left;font-size:15px;margin-left: 20px;" v-else>
74
- {{$parent.startDate+" 至 "+$parent.endDate}}
75
- </b>
76
- </th>
77
- </tr>
78
- <tr >
79
- <th colspan='12' class="noborder" style="font-weight: normal; text-align: center; font-size: 1em;">
80
- <div style="text-align: left;font-size:15px;margin-left: 20px;">
81
- <span v-show="$parent.orgFlag">{{$parent.orgname}}</span>
82
- <span v-show="$parent.depFlag">{{$parent.depname}}</span>
83
- <span v-show="$parent.operFlag">{{$parent.operatorname}}</span><br>
84
- </div>
85
- </th>
86
- </tr>
87
- </thead>
88
- <tr class="noborder">
89
- <td colspan='12' class="noborder">
90
- {{{ model.data.substring(26,model.data.length-8) }}}
91
- </td>
92
- </tr>
93
- <tfoot>
94
- <tr style="text-align: left; font-size: 1em;">
95
- <th colspan='4'>部门主管:</th>
96
- <th colspan='2'>出纳:</th>
97
- <th colspan='2'>审核:</th>
98
- <th colspan='4'>制表:</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
- depresid: [],
151
- userresid: [],
152
- f_orgid: this.$login.f.orgid,
153
- f_depid: this.$login.f.depids,
154
- f_operatorid: this.$login.f.id,
155
- operatorid: [],
156
- depid: [],
157
- orgname: '',
158
- depname: [],
159
- operatorname: '',
160
- orgCondtionStr: '1=1',
161
- model: new DataModel('rs/report/deptHomePage', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
162
- f_orgid: 'this.model.f_orgid'}),
163
- reportStr: null,
164
- show: false,
165
- startDate:"",
166
- endDate:"",
167
- startdate:'',
168
- enddate:'',
169
- orgFlag:false,
170
- depFlag:false,
171
- operFlag:false,
172
- }
173
- },
174
- ready () {
175
- this.startdate = this.$login.toStandardDateString() + ' 00:00:00'
176
- this.enddate = this.$login.toStandardDateString() + ' 23:59:59'
177
- this.startDate=this.startdate.substring(0,10)
178
- this.endDate=this.startDate.substring(0,10)
179
- console.log(this.$login.f)
180
- },
181
- methods: {
182
- searchData () {
183
- this.$refs.paged.$refs.criteria.search()
184
- },
185
- selfSearch (args) {
186
- let f_dep=this.f_depid
187
- let orgcondition = ' ts.f_orgid = ' + this.f_orgid
188
- if (f_dep[0]) {
189
- orgcondition += " and ts.f_depid in('"+f_dep[0]+"'"
190
- for( let i=1;i<f_dep.length;i++){
191
- orgcondition += ",'"+f_dep[i]+"'"
192
- }
193
- orgcondition +=')'
194
- }
195
- if(this.f_operatorid[0]) {
196
- orgcondition += ' and ts.f_operatorid = ' + this.f_operatorid
197
- }
198
- // console.log(this.orgname,this.depname.toString(),this.operatorname)
199
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
200
- this.$refs.paged.search(args)
201
- },
202
- getRes (obj) {
203
- this.orgname = obj.res[0]
204
- this.depresid = obj.resids
205
- this.f_orgid = obj.resids
206
- },
207
- getdep (obj, val) {
208
- this.depname = val
209
- this.userresid = obj
210
- this.f_depid = obj
211
- },
212
- getuser ( obj, val) {
213
- this.operatorname = val[0]
214
- this.f_operatorid = obj
215
- },
216
-
217
- // 根据文件路径获取储存的报表内容
218
- getFileContent (path) {
219
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
220
- this.reportStr = res.data.filecontent
221
- this.model.state = '正确'
222
- })
223
- },
224
- confirm () {
225
- if (!this.filename || this.filename === '') {
226
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
227
- }
228
- let saveGen = saveFile(this)
229
- co(saveGen)
230
- },
231
- close () {
232
- this.show = false
233
- },
234
- // 将报表保存成文件
235
- confirmReport () {
236
- this.show = true
237
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
238
- },
239
- flag(){
240
- if(this.orgname&&!this.depname.toString()&&!this.operatorname){
241
- this.orgFlag=true
242
- }else{
243
- this.orgFlag=false
244
- }
245
- if(this.orgname&&this.depname.toString()&&!this.operatorname){
246
- this.depFlag=true
247
- }else{
248
- this.depFlag=false
249
- }
250
- if(this.orgname&&this.depname.toString()&&this.operatorname){
251
- this.operFlag=true
252
- }else{
253
- this.operFlag=false
254
- }
255
- }
256
- },
257
- watch: {
258
- 'data' (val) {
259
- if (val.f_files_path) {
260
- this.getFileContent(val.f_files_path)
261
- } else {
262
- this.reportStr = null
263
- }
264
- },
265
- 'orgname'(){
266
- this.flag()
267
- },
268
- 'depname'(){
269
- this.flag()
270
- },
271
- 'operatorname'(){
272
- this.flag()
273
- },
274
- 'startdate'(val){
275
- this.$refs.paged.$refs.criteria.model.startDate=this.startdate
276
- this.startDate=this.startdate.substring(0,10)
277
- console.log('startdate',val)
278
- },
279
- 'enddate'(val){
280
- this.$refs.paged.$refs.criteria.model.endDate=this.enddate
281
- this.endDate=this.enddate.substring(0,10)
282
- console.log('enddate',val)
283
- }
284
- },
285
- computed: {
286
- operator () {
287
- return this.$getParams('操作员查询用', [{label: '全部', value: ''}])
288
- },
289
- network () {
290
- return this.$getParams('网点查询用', [{label: '全部', value: ''}])
291
- }
292
- }
293
- }
294
- </script>
295
- <style scoped>
296
- .noborder{
297
- border: none;
298
- }
299
- </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="$parent.$parent.startdate"
13
+ :value.sync="$parent.$parent.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="$parent.$parent.enddate"
23
+ :value.sync="$parent.$parent.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
+ @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">
43
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
44
+ <res-select 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>
52
+ <div class="span" style = "float:right;">
53
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
54
+ <report-print id='gasprice' top='2cm' left='2' width='100%' height='100%' :preview="true"></report-print>
55
+ <report-excel id='gasprice'></report-excel>
56
+ </div>
57
+ </div>
58
+ </criteria>
59
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
60
+ <table class='tableprint' style="margin: 0px auto;border-spacing: 0px 0px;font-size:13px;" v-if="!$parent.data.f_files_path">
61
+ <thead>
62
+ <tr>
63
+ <th colspan='12' style="font-weight: normal; text-align: left; font-size: 2em
64
+ ;">
65
+ <h3 style="text-align: center">营业厅明细首页</h3>
66
+ </th>
67
+ </tr>
68
+ <tr>
69
+ <th colspan='12' style="font-weight: normal; text-align: left; font-size: 1em;">
70
+ <b style="text-align: left; font-size:15px;margin-left: 20px;" v-if="$parent.startDate==$parent.endDate">
71
+ {{$parent.startDate}}
72
+ </b>
73
+ <b style="text-align: left;font-size:15px;margin-left: 20px;" v-else>
74
+ {{$parent.startDate+" 至 "+$parent.endDate}}
75
+ </b>
76
+ </th>
77
+ </tr>
78
+ <tr >
79
+ <th colspan='12' class="noborder" style="font-weight: normal; text-align: center; font-size: 1em;">
80
+ <div style="text-align: left;font-size:15px;margin-left: 20px;">
81
+ <span v-show="$parent.orgFlag">{{$parent.orgname}}</span>
82
+ <span v-show="$parent.depFlag">{{$parent.depname}}</span>
83
+ <span v-show="$parent.operFlag">{{$parent.operatorname}}</span><br>
84
+ </div>
85
+ </th>
86
+ </tr>
87
+ </thead>
88
+ <tr class="noborder">
89
+ <td colspan='12' class="noborder">
90
+ {{{ model.data.substring(26,model.data.length-8) }}}
91
+ </td>
92
+ </tr>
93
+ <tfoot>
94
+ <tr style="text-align: left; font-size: 1em;">
95
+ <th colspan='4'>部门主管:</th>
96
+ <th colspan='2'>出纳:</th>
97
+ <th colspan='2'>审核:</th>
98
+ <th colspan='4'>制表:</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
+ depresid: [],
151
+ userresid: [],
152
+ f_orgid: this.$login.f.orgid,
153
+ f_depid: this.$login.f.depids,
154
+ f_operatorid: this.$login.f.id,
155
+ operatorid: [],
156
+ depid: [],
157
+ orgname: '',
158
+ depname: [],
159
+ operatorname: '',
160
+ orgCondtionStr: '1=1',
161
+ model: new DataModel('rs/report/deptHomePage', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
162
+ f_orgid: 'this.model.f_orgid'}),
163
+ reportStr: null,
164
+ show: false,
165
+ startDate:"",
166
+ endDate:"",
167
+ startdate:'',
168
+ enddate:'',
169
+ orgFlag:false,
170
+ depFlag:false,
171
+ operFlag:false,
172
+ }
173
+ },
174
+ ready () {
175
+ this.startdate = this.$login.toStandardDateString() + ' 00:00:00'
176
+ this.enddate = this.$login.toStandardDateString() + ' 23:59:59'
177
+ this.startDate=this.startdate.substring(0,10)
178
+ this.endDate=this.startDate.substring(0,10)
179
+ console.log(this.$login.f)
180
+ },
181
+ methods: {
182
+ searchData () {
183
+ this.$refs.paged.$refs.criteria.search()
184
+ },
185
+ selfSearch (args) {
186
+ let f_dep=this.f_depid
187
+ let orgcondition = ' ts.f_orgid in (' + this.f_orgid + ')'
188
+ if (f_dep[0]) {
189
+ orgcondition += " and ts.f_depid in('"+f_dep[0]+"'"
190
+ for( let i=1;i<f_dep.length;i++){
191
+ orgcondition += ",'"+f_dep[i]+"'"
192
+ }
193
+ orgcondition +=')'
194
+ }
195
+ if(this.f_operatorid[0]) {
196
+ orgcondition += ' and ts.f_operatorid in (' + this.f_operatorid + ')'
197
+ }
198
+ // console.log(this.orgname,this.depname.toString(),this.operatorname)
199
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
200
+ this.$refs.paged.search(args)
201
+ },
202
+ getRes (obj) {
203
+ this.orgname = obj.res[0]
204
+ this.depresid = obj.resids
205
+ this.f_orgid = obj.resids
206
+ },
207
+ getdep (obj, val) {
208
+ this.depname = val
209
+ this.userresid = obj
210
+ this.f_depid = obj
211
+ },
212
+ getuser ( obj, val) {
213
+ this.operatorname = val[0]
214
+ this.f_operatorid = obj
215
+ },
216
+
217
+ // 根据文件路径获取储存的报表内容
218
+ getFileContent (path) {
219
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
220
+ this.reportStr = res.data.filecontent
221
+ this.model.state = '正确'
222
+ })
223
+ },
224
+ confirm () {
225
+ if (!this.filename || this.filename === '') {
226
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
227
+ }
228
+ let saveGen = saveFile(this)
229
+ co(saveGen)
230
+ },
231
+ close () {
232
+ this.show = false
233
+ },
234
+ // 将报表保存成文件
235
+ confirmReport () {
236
+ this.show = true
237
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
238
+ },
239
+ flag(){
240
+ if(this.orgname&&!this.depname.toString()&&!this.operatorname){
241
+ this.orgFlag=true
242
+ }else{
243
+ this.orgFlag=false
244
+ }
245
+ if(this.orgname&&this.depname.toString()&&!this.operatorname){
246
+ this.depFlag=true
247
+ }else{
248
+ this.depFlag=false
249
+ }
250
+ if(this.orgname&&this.depname.toString()&&this.operatorname){
251
+ this.operFlag=true
252
+ }else{
253
+ this.operFlag=false
254
+ }
255
+ }
256
+ },
257
+ watch: {
258
+ 'data' (val) {
259
+ if (val.f_files_path) {
260
+ this.getFileContent(val.f_files_path)
261
+ } else {
262
+ this.reportStr = null
263
+ }
264
+ },
265
+ 'orgname'(){
266
+ this.flag()
267
+ },
268
+ 'depname'(){
269
+ this.flag()
270
+ },
271
+ 'operatorname'(){
272
+ this.flag()
273
+ },
274
+ 'startdate'(val){
275
+ this.$refs.paged.$refs.criteria.model.startDate=this.startdate
276
+ this.startDate=this.startdate.substring(0,10)
277
+ console.log('startdate',val)
278
+ },
279
+ 'enddate'(val){
280
+ this.$refs.paged.$refs.criteria.model.endDate=this.enddate
281
+ this.endDate=this.enddate.substring(0,10)
282
+ console.log('enddate',val)
283
+ }
284
+ },
285
+ computed: {
286
+ operator () {
287
+ return this.$getParams('操作员查询用', [{label: '全部', value: ''}])
288
+ },
289
+ network () {
290
+ return this.$getParams('网点查询用', [{label: '全部', value: ''}])
291
+ }
292
+ }
293
+ }
294
+ </script>
295
+ <style scoped>
296
+ .noborder{
297
+ border: none;
298
+ }
299
+ </style>