manage-client 3.2.100 → 3.2.101

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 (37) hide show
  1. package/package.json +1 -1
  2. package/src/components/SellReport/GasMoneyPublicMoney.vue +251 -251
  3. package/src/components/SellReport/NonResidentGas.vue +216 -216
  4. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +507 -507
  5. package/src/components/SellReport/ReportItems.vue +246 -246
  6. package/src/components/sale/businessquery/ArrearsQuery.vue +934 -934
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +676 -676
  8. package/src/components/sale/businessquery/InspectListGas.vue +552 -552
  9. package/src/components/sale/businessquery/InspectListUser.vue +449 -449
  10. package/src/components/sale/businessquery/sellingChargePrice.vue +716 -716
  11. package/src/components/sale/config/exportConfig.js +44 -0
  12. package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
  13. package/src/components/webmeter/reportdata/ReportDataQuery.vue +28 -0
  14. package/src/filiale/liaoyuan/MeterQuery.vue +905 -905
  15. package/src/filiale/liaoyuan/RecordInfoQuery.vue +1163 -1163
  16. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  17. package/src/filiale/macheng/FxGasTable.vue +236 -236
  18. package/src/filiale/macheng/ManageDayGas.vue +248 -248
  19. package/src/filiale/macheng/ManageHandSellMoney.vue +249 -249
  20. package/src/filiale/macheng/ManageMonthGas.vue +250 -250
  21. package/src/filiale/macheng/ManageOtherCharge.vue +251 -251
  22. package/src/filiale/macheng/ManageSellType.vue +287 -287
  23. package/src/filiale/macheng/MonthGasQuery.vue +470 -0
  24. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  25. package/src/filiale/macheng/SellingTable.vue +219 -219
  26. package/src/filiale/macheng/UserBalanceReport.vue +178 -178
  27. package/src/filiale/macheng/config/DefaultPrint.js +7 -0
  28. package/src/filiale/macheng/config/exportConfig.js +74 -67
  29. package/src/filiale/macheng/reportManage.js +19 -19
  30. package/src/filiale/macheng/sale.js +12 -11
  31. package/src/filiale/meihekou/HandplanQuery.vue +1234 -1234
  32. package/src/filiale/meihekou/UserQuery.vue +773 -773
  33. package/src/filiale/qianneng/OtherChargeQuery.vue +646 -646
  34. package/src/filiale/rongchuang/SellingTable.vue +251 -251
  35. package/src/filiale/shaoguan/RecordInfoQuery.vue +1150 -1150
  36. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  37. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
@@ -1,287 +1,287 @@
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-2 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-2 form-group" >
20
- <label class="font_normal_body" for="endDate">结束日期:</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :disabled-days-of-Week="[]"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div><!--
29
- <div class="col-sm-4 form-group" >
30
- <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
- <right-tree id="org" @re-res="$parent.$parent.getRes"></right-tree>
32
- </div>
33
- <div class="col-sm-4 form-group">
34
- <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
35
- <res-select id="dep" restype='department'
36
- @res-select="$parent.$parent.getdep"
37
- :parentresid="$parent.$parent.depresid"
38
- :initresid='$parent.$parent.depid' >
39
- </res-select>
40
-
41
- </div>
42
- <div class="col-sm-4 form-group">
43
- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
44
- <res-select id="oper" restype='user'
45
- is-mul="false"
46
- @res-select="$parent.$parent.getuser"
47
- :parentresid="$parent.$parent.userresid"
48
- :initresid='$parent.$parent.operatorid'>
49
- </res-select>
50
- </div>-->
51
- <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
- <div class="col-sm-2 form-group">
53
- <label class="font_normal_body">收费状态:</label>
54
- <v-select :value.sync="$parent.$parent.f_state" multiple
55
- v-model="$parent.$parent.f_state"
56
- :options='$parent.$parent.charge_state' placeholder='请选择'
57
- condition="f_state in {}"
58
- close-on-select></v-select>
59
- </div>
60
- <div style = "float:right;">
61
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
62
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
63
- <report-excel id='gasprice'></report-excel>
64
- </div>
65
- </div>
66
- <!--<div class="span" style = "float:right;">-->
67
-
68
- <!--</div>-->
69
- </div>
70
- </criteria>
71
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
72
- <table class='tableprint' style="margin: 0px auto">
73
- <thead>
74
- <tr>
75
- <th :colspan='$parent.spans' style="font-weight: bold; text-align: left;">
76
- <h3 style="text-align: center">营业厅分项汇总表</h3>
77
- </th>
78
- </tr>
79
- <tr>
80
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
81
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
82
- 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
83
- </th>
84
- </tr>
85
- <tr>
86
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
87
- 打印时间:{{{$parent.printTime}}}
88
- </th>
89
- </tr>
90
- <tr>
91
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
92
- <div>
93
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
94
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
95
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
96
- </div>
97
- </th>
98
- </tr>
99
- </thead>
100
- <tr>
101
- <td :colspan='$parent.spans' class="noborder">
102
- {{{ model.data.substring(26,model.data.length-8) }}}
103
- </td>
104
- </tr>
105
- <tfoot>
106
- <tr style="text-align: left">
107
- <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
108
- 收款人:
109
- </th>
110
- <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
111
- 审核人:
112
- </th>
113
- <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
114
- 经手人:
115
- </th>
116
- </tr>
117
- </tfoot>
118
- </table>
119
- {{{ $parent.reportStr}}}
120
- </div>
121
- </criteria-paged>
122
- <modal :show.sync="show" v-ref:modal small backdrop="false">
123
- <header slot="modal-header" class="modal-header">
124
- <h4 class="modal-title">输入文件名称</h4>
125
- </header>
126
- <article slot="modal-body" class="modal-body">
127
- <div class="form-group">
128
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
129
- </div>
130
- </article>
131
- <footer slot="modal-footer" class="modal-footer">
132
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
133
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
134
- </footer>
135
- </modal>
136
- </div>
137
- </template>
138
-
139
- <script>
140
- import { DataModel } from 'vue-client'
141
- import co from 'co'
142
- let saveFile = function * (self) {
143
- // 线验证文件是否重名
144
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
145
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
146
- {resolveMsg: null, rejectMsg: null})
147
- if (count.data.length > 0) {
148
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
149
- return
150
- }
151
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
152
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
153
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
154
- f_outlets: this.$login.f.depname})
155
- if (saveBack.data.status === 'succeed') {
156
- self.show = false
157
- self.filename = ''
158
- // 后台保存完成,通知刷新
159
- self.$dispatch('save-success', self.filename)
160
- }
161
- }
162
- export default {
163
- title: '营业厅分项汇总表',
164
- props: ['data'],
165
- data () {
166
- return {
167
- printTime: this.$login.toStandardTimeString(),
168
- depresid: [],
169
- userresid: [],
170
- resshow:['company','department','operator'],
171
- initres: {
172
- org:[this.$login.f.orgid],
173
- dep:[],
174
- user:[]
175
- },
176
- f_orgid: this.$login.f.orgid,
177
- f_depid: this.$login.f.depids,
178
- f_operatorid: this.$login.f.id,
179
- operatorid: [],
180
- depid: [],
181
- f_state:['有效'],
182
- orgname: '',
183
- depname: '',
184
- operatorname: '',
185
- orgCondtionStr: '1=1',
186
- model: new DataModel('rs/report/fenxiangsell', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
187
- f_orgid: 'this.model.f_orgid'}),
188
- reportStr: null,
189
- show: false,
190
- spans: ''
191
- }
192
- },
193
- ready () {
194
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
195
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
196
- // this.$refs.paged.$refs.criteria.search()
197
- },
198
- methods: {
199
- searchData () {
200
- this.$refs.paged.$refs.criteria.search()
201
- },
202
- selfSearch (args) {
203
- this.printTime = this.$login.toStandardTimeString()
204
- let orgcondition = '1=1'
205
- let orgstr = this.orgCondtionStr
206
- orgcondition = orgcondition + orgstr
207
- /* if (this.f_orgid[0]) {
208
- this.orgCondtionStr += ' and f_orgid in (' + this.f_orgid + ")"
209
- }
210
- if (this.f_depid[0]) {
211
- this.orgCondtionStr += " and f_depid in (" + this.f_depid.toString() + ")"
212
- }
213
- if(this.f_operatorid[0]) {
214
- this.orgCondtionStr += ' and f_operatorid in (' + this.f_operatorid + ")"
215
- }*/
216
- this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr.replace('1=1','') + (this.f_state && this.f_state != '' ? " and f_state='" + this.f_state + "' " : '')
217
- this.$refs.paged.search(args)
218
- },
219
- getRes (condition, obj) {
220
- this.orgCondtionStr = condition
221
- this.orgname = obj.orgnames[0]
222
- this.depname = obj.depnames[0]
223
- },
224
- getdep (obj, val) {
225
- this.depname = val[0]
226
- // this.userresid = obj
227
- this.f_depid = obj
228
- },
229
- getuser ( obj, val) {
230
- this.operatorname = val[0]
231
- this.f_operatorid = obj
232
- },
233
- // 根据文件路径获取储存的报表内容
234
- getFileContent (path) {
235
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
236
- this.reportStr = res.data.filecontent
237
- this.model.state = '正确'
238
- })
239
- },
240
- confirm () {
241
- if (!this.filename || this.filename === '') {
242
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
243
- }
244
- let saveGen = saveFile(this)
245
- co(saveGen)
246
- },
247
- close () {
248
- this.show = false
249
- },
250
- // 将报表保存成文件
251
- confirmReport () {
252
- this.show = true
253
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
254
- }
255
- },
256
- watch: {
257
- 'data' (val) {
258
- if (val.f_files_path) {
259
- this.getFileContent(val.f_files_path)
260
- } else {
261
- this.reportStr = null
262
- }
263
- },
264
- 'model.data' (val) {
265
- let len=0
266
- let a=val.split('</tr>')
267
- for(let i=0;i<a.length;i++){
268
- if(a[i].split('</td>').length-1>len){
269
- len=a[i].split('</td>').length-1
270
- }
271
- continue
272
- }
273
- this.spans = len
274
- }
275
- },
276
- computed: {
277
- charge_state() {
278
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
279
- }
280
- }
281
- }
282
- </script>
283
- <style scoped>
284
- .noborder{
285
- border: none;
286
- }
287
- </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-2 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-2 form-group" >
20
+ <label class="font_normal_body" for="endDate">结束日期:</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :disabled-days-of-Week="[]"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div><!--
29
+ <div class="col-sm-4 form-group" >
30
+ <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
+ <right-tree id="org" @re-res="$parent.$parent.getRes"></right-tree>
32
+ </div>
33
+ <div class="col-sm-4 form-group">
34
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
35
+ <res-select id="dep" restype='department'
36
+ @res-select="$parent.$parent.getdep"
37
+ :parentresid="$parent.$parent.depresid"
38
+ :initresid='$parent.$parent.depid' >
39
+ </res-select>
40
+
41
+ </div>
42
+ <div class="col-sm-4 form-group">
43
+ <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
44
+ <res-select id="oper" restype='user'
45
+ is-mul="false"
46
+ @res-select="$parent.$parent.getuser"
47
+ :parentresid="$parent.$parent.userresid"
48
+ :initresid='$parent.$parent.operatorid'>
49
+ </res-select>
50
+ </div>-->
51
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
+ <div class="col-sm-2 form-group">
53
+ <label class="font_normal_body">收费状态:</label>
54
+ <v-select :value.sync="$parent.$parent.f_state" multiple
55
+ v-model="$parent.$parent.f_state"
56
+ :options='$parent.$parent.charge_state' placeholder='请选择'
57
+ condition="f_state in {}"
58
+ close-on-select></v-select>
59
+ </div>
60
+ <div style = "float:right;">
61
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
62
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
63
+ <report-excel id='gasprice'></report-excel>
64
+ </div>
65
+ </div>
66
+ <!--<div class="span" style = "float:right;">-->
67
+
68
+ <!--</div>-->
69
+ </div>
70
+ </criteria>
71
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
72
+ <table class='tableprint' style="margin: 0px auto">
73
+ <thead>
74
+ <tr>
75
+ <th :colspan='$parent.spans' style="font-weight: bold; text-align: left;">
76
+ <h3 style="text-align: center">营业厅分项汇总表</h3>
77
+ </th>
78
+ </tr>
79
+ <tr>
80
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
81
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
82
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
83
+ </th>
84
+ </tr>
85
+ <tr>
86
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
87
+ 打印时间:{{{$parent.printTime}}}
88
+ </th>
89
+ </tr>
90
+ <tr>
91
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
92
+ <div>
93
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
94
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
95
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
96
+ </div>
97
+ </th>
98
+ </tr>
99
+ </thead>
100
+ <tr>
101
+ <td :colspan='$parent.spans' class="noborder">
102
+ {{{ model.data.substring(26,model.data.length-8) }}}
103
+ </td>
104
+ </tr>
105
+ <tfoot>
106
+ <tr style="text-align: left">
107
+ <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
108
+ 收款人:
109
+ </th>
110
+ <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
111
+ 审核人:
112
+ </th>
113
+ <th :colspan='$parent.spans/3' style="font-weight: normal; text-align: left;">
114
+ 经手人:
115
+ </th>
116
+ </tr>
117
+ </tfoot>
118
+ </table>
119
+ {{{ $parent.reportStr}}}
120
+ </div>
121
+ </criteria-paged>
122
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
123
+ <header slot="modal-header" class="modal-header">
124
+ <h4 class="modal-title">输入文件名称</h4>
125
+ </header>
126
+ <article slot="modal-body" class="modal-body">
127
+ <div class="form-group">
128
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
129
+ </div>
130
+ </article>
131
+ <footer slot="modal-footer" class="modal-footer">
132
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
133
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
134
+ </footer>
135
+ </modal>
136
+ </div>
137
+ </template>
138
+
139
+ <script>
140
+ import { DataModel } from 'vue-client'
141
+ import co from 'co'
142
+ let saveFile = function * (self) {
143
+ // 线验证文件是否重名
144
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
145
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
146
+ {resolveMsg: null, rejectMsg: null})
147
+ if (count.data.length > 0) {
148
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
149
+ return
150
+ }
151
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
152
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
153
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
154
+ f_outlets: this.$login.f.depname})
155
+ if (saveBack.data.status === 'succeed') {
156
+ self.show = false
157
+ self.filename = ''
158
+ // 后台保存完成,通知刷新
159
+ self.$dispatch('save-success', self.filename)
160
+ }
161
+ }
162
+ export default {
163
+ title: '营业厅分项汇总表',
164
+ props: ['data'],
165
+ data () {
166
+ return {
167
+ printTime: this.$login.toStandardTimeString(),
168
+ depresid: [],
169
+ userresid: [],
170
+ resshow:['company','department','operator'],
171
+ initres: {
172
+ org:[this.$login.f.orgid],
173
+ dep:[],
174
+ user:[]
175
+ },
176
+ f_orgid: this.$login.f.orgid,
177
+ f_depid: this.$login.f.depids,
178
+ f_operatorid: this.$login.f.id,
179
+ operatorid: [],
180
+ depid: [],
181
+ f_state:['有效'],
182
+ orgname: '',
183
+ depname: '',
184
+ operatorname: '',
185
+ orgCondtionStr: '1=1',
186
+ model: new DataModel('rs/report/fenxiangsell', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
187
+ f_orgid: 'this.model.f_orgid'}),
188
+ reportStr: null,
189
+ show: false,
190
+ spans: ''
191
+ }
192
+ },
193
+ ready () {
194
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
195
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
196
+ // this.$refs.paged.$refs.criteria.search()
197
+ },
198
+ methods: {
199
+ searchData () {
200
+ this.$refs.paged.$refs.criteria.search()
201
+ },
202
+ selfSearch (args) {
203
+ this.printTime = this.$login.toStandardTimeString()
204
+ let orgcondition = '1=1'
205
+ let orgstr = this.orgCondtionStr
206
+ orgcondition = orgcondition + orgstr
207
+ /* if (this.f_orgid[0]) {
208
+ this.orgCondtionStr += ' and f_orgid in (' + this.f_orgid + ")"
209
+ }
210
+ if (this.f_depid[0]) {
211
+ this.orgCondtionStr += " and f_depid in (" + this.f_depid.toString() + ")"
212
+ }
213
+ if(this.f_operatorid[0]) {
214
+ this.orgCondtionStr += ' and f_operatorid in (' + this.f_operatorid + ")"
215
+ }*/
216
+ this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr.replace('1=1','') + (this.f_state && this.f_state != '' ? " and f_state='" + this.f_state + "' " : '')
217
+ this.$refs.paged.search(args)
218
+ },
219
+ getRes (condition, obj) {
220
+ this.orgCondtionStr = condition
221
+ this.orgname = obj.orgnames[0]
222
+ this.depname = obj.depnames[0]
223
+ },
224
+ getdep (obj, val) {
225
+ this.depname = val[0]
226
+ // this.userresid = obj
227
+ this.f_depid = obj
228
+ },
229
+ getuser ( obj, val) {
230
+ this.operatorname = val[0]
231
+ this.f_operatorid = obj
232
+ },
233
+ // 根据文件路径获取储存的报表内容
234
+ getFileContent (path) {
235
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
236
+ this.reportStr = res.data.filecontent
237
+ this.model.state = '正确'
238
+ })
239
+ },
240
+ confirm () {
241
+ if (!this.filename || this.filename === '') {
242
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
243
+ }
244
+ let saveGen = saveFile(this)
245
+ co(saveGen)
246
+ },
247
+ close () {
248
+ this.show = false
249
+ },
250
+ // 将报表保存成文件
251
+ confirmReport () {
252
+ this.show = true
253
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
254
+ }
255
+ },
256
+ watch: {
257
+ 'data' (val) {
258
+ if (val.f_files_path) {
259
+ this.getFileContent(val.f_files_path)
260
+ } else {
261
+ this.reportStr = null
262
+ }
263
+ },
264
+ 'model.data' (val) {
265
+ let len=0
266
+ let a=val.split('</tr>')
267
+ for(let i=0;i<a.length;i++){
268
+ if(a[i].split('</td>').length-1>len){
269
+ len=a[i].split('</td>').length-1
270
+ }
271
+ continue
272
+ }
273
+ this.spans = len
274
+ }
275
+ },
276
+ computed: {
277
+ charge_state() {
278
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
279
+ }
280
+ }
281
+ }
282
+ </script>
283
+ <style scoped>
284
+ .noborder{
285
+ border: none;
286
+ }
287
+ </style>