manage-client 3.1.26 → 3.1.27

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 (76) hide show
  1. package/build/dev-server.js +28 -21
  2. package/package.json +1 -1
  3. package/src/App.vue +29 -28
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/BasisEcharts/RingChart.vue +196 -196
  6. package/src/components/SellReport/BusinessClassify.vue +251 -251
  7. package/src/components/SellReport/ChargePrick.vue +245 -262
  8. package/src/components/SellReport/DepartmentPrick.vue +262 -262
  9. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  10. package/src/components/SellReport/ManageSellType.vue +284 -284
  11. package/src/components/SellReport/ManageUserCount.vue +347 -347
  12. package/src/components/SellReport/MarketMonth.vue +251 -251
  13. package/src/components/SellReport/SellingTable.vue +220 -220
  14. package/src/components/SellReport/UserClassify.vue +251 -251
  15. package/src/components/SellReport/UserSellingGas.vue +251 -251
  16. package/src/components/daping/CallCenter.vue +366 -366
  17. package/src/components/daping/DataManagement.vue +543 -703
  18. package/src/components/daping/GMap.vue +636 -636
  19. package/src/components/daping/ManageMain.vue +267 -255
  20. package/src/components/daping/NetWork.vue +238 -0
  21. package/src/components/daping/RedactDaPing.vue +454 -0
  22. package/src/components/daping/Ring.vue +212 -217
  23. package/src/components/daping/SafeCheck.vue +446 -0
  24. package/src/components/daping/SafeCheckRing.vue +149 -160
  25. package/src/components/daping/SafecheckBarChart.vue +48 -133
  26. package/src/components/daping/WuHaiMap.vue +418 -0
  27. package/src/components/qinhua/BarChart.vue +256 -256
  28. package/src/components/qinhua/Pie.vue +132 -116
  29. package/src/components/qinhua/SellEcharts.vue +115 -94
  30. package/src/components/qinhua/qinHuaMap.vue +414 -390
  31. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  32. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  33. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  34. package/src/components/sale/businessquery/NewHandplanQuery.vue +995 -0
  35. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  36. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  37. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  38. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  39. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  40. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  41. package/src/components/webmeter/DrillData/UserGasAll.vue +596 -596
  42. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  43. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  44. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  45. package/src/components/webmeter/instruction/NewQueryInstruct.vue +396 -396
  46. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -170
  47. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  48. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +899 -899
  49. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  50. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -238
  51. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -266
  52. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +606 -606
  53. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +252 -252
  54. package/src/components/webmeter/newwebmeter/UserGasList.vue +440 -440
  55. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  56. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  57. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  58. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  59. package/src/filiale/alashan/SellingTable.vue +231 -231
  60. package/src/filiale/alashan/reportManage.js +10 -10
  61. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  62. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  63. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  64. package/src/filiale/meihekou/sale.js +26 -26
  65. package/src/filiale/rongcheng/exportConfig.js +257 -257
  66. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  67. package/src/filiale/rongchuang/reportManage.js +11 -11
  68. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  69. package/src/main.js +5 -5
  70. package/src/newmanage.js +525 -504
  71. package/src/reportManage.js +458 -458
  72. package/static/wuhai.json +1610 -1610
  73. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  74. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  75. package/.gradle/buildOutputCleanup/built.bin +0 -0
  76. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -1,262 +1,262 @@
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 HH:mm:ss'"
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 HH:mm:ss'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-3 form-group" >
30
- <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
- <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
32
- </div>
33
- <div class="col-sm-3 form-group">
34
- <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
35
- <res-select id="dep" restype='department' style="width: 60%"
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-3 form-group">
44
- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
45
- <res-select id="oper" restype='user' style="width: 60%"
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 class="col-sm-3 form-group">
53
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
54
- <v-select :value.sync="model.f_payment" multiple
55
- v-model="model.f_payment"
56
- :options='$parent.$parent.payment' placeholder='请选择'
57
- condition="f_payment in {}"
58
- close-on-select></v-select>
59
- </div>
60
- </div>
61
- <div class="span" style = "float:right;">
62
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
63
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
64
- <report-excel id='gasprice'></report-excel>
65
- </div>
66
- </div>
67
- </criteria>
68
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
69
- <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
70
- <thead>
71
- <tr>
72
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
73
- <h3 style="text-align: center">营业厅收款结账单</h3>
74
- </th>
75
- </tr>
76
- <tr>
77
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
78
- 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
79
- 打印时间:{{$parent.printTime}}
80
- </th>
81
- </tr>
82
- <tr>
83
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
84
- <div>
85
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
86
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
87
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
88
- </div>
89
- </th>
90
- </tr>
91
- </thead>
92
- <tr>
93
- <td :colspan='$parent.tablen' class="noborder">
94
- {{{ model.data.substring(26,model.data.length-8) }}}
95
- </td>
96
- </tr>
97
- <tfoot>
98
- <tr style="text-align: left">
99
- <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
100
- <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
101
- <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
102
- </tr>
103
- </tfoot>
104
- </table>
105
- {{{ $parent.reportStr}}}
106
- </div>
107
- </criteria-paged>
108
- <modal :show.sync="show" v-ref:modal small backdrop="false">
109
- <header slot="modal-header" class="modal-header">
110
- <h4 class="modal-title">输入文件名称</h4>
111
- </header>
112
- <article slot="modal-body" class="modal-body">
113
- <div class="form-group">
114
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
115
- </div>
116
- </article>
117
- <footer slot="modal-footer" class="modal-footer">
118
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
119
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
120
- </footer>
121
- </modal>
122
- </div>
123
- </template>
124
-
125
- <script>
126
- import { DataModel } from 'vue-client'
127
- import co from 'co'
128
- let saveFile = function * (self) {
129
- // 线验证文件是否重名
130
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
131
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
132
- {resolveMsg: null, rejectMsg: null})
133
- if (count.data.length > 0) {
134
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
135
- return
136
- }
137
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
138
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
139
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
140
- f_outlets: this.$login.f.depname})
141
- if (saveBack.data.status === 'succeed') {
142
- self.show = false
143
- self.filename = ''
144
- // 后台保存完成,通知刷新
145
- self.$dispatch('save-success', self.filename)
146
- }
147
- }
148
- export default {
149
- title: '营业厅收款结账单',
150
- props: ['data'],
151
- data () {
152
- return {
153
- printTime: this.$login.toStandardTimeString(),
154
- depresid: [],
155
- userresid: [],
156
- f_orgid: this.$login.f.orgid,
157
- f_depid: this.$login.f.depids,
158
- f_operatorid: this.$login.f.id,
159
- operatorid: [],
160
- depid: [],
161
- tablen:0,
162
- orgname: '',
163
- depname: '',
164
- operatorname: '',
165
- orgCondtionStr: '1=1',
166
- model: new DataModel('rs/report/DepPrick', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
167
- f_orgid: 'this.model.f_orgid'}),
168
- reportStr: null,
169
- show: false,
170
- }
171
- },
172
- ready () {
173
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
174
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
175
- console.log(this.$login.f)
176
- },
177
- methods: {
178
- searchData () {
179
- this.$refs.paged.$refs.criteria.search()
180
- },
181
- selfSearch (args) {
182
- this.printTime = this.$login.toStandardTimeString()
183
- let orgcondition = ' f_orgid = ' + this.f_orgid
184
- if (this.f_depid[0]) {
185
- orgcondition += ' and f_depid = ' + this.f_depid
186
- }
187
- if(this.f_operatorid[0]) {
188
- orgcondition += ' and f_operatorid = ' + this.f_operatorid
189
- }
190
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
191
- this.$refs.paged.search(args)
192
- },
193
- getRes (obj) {
194
- this.orgname = obj.res[0]
195
- this.depresid = obj.resids
196
- this.userresid = obj.resids
197
- this.f_orgid = obj.resids
198
- },
199
- getdep (obj, val) {
200
- this.depname = val[0]
201
- // this.userresid = obj
202
- this.f_depid = obj
203
- },
204
- getuser ( obj, val) {
205
- this.operatorname = val[0]
206
- this.f_operatorid = obj
207
- },
208
- // 根据文件路径获取储存的报表内容
209
- getFileContent (path) {
210
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
211
- this.reportStr = res.data.filecontent
212
- this.model.state = '正确'
213
- })
214
- },
215
- confirm () {
216
- if (!this.filename || this.filename === '') {
217
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
218
- }
219
- let saveGen = saveFile(this)
220
- co(saveGen)
221
- },
222
- close () {
223
- this.show = false
224
- },
225
- // 将报表保存成文件
226
- confirmReport () {
227
- this.show = true
228
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
229
- }
230
- },
231
- watch: {
232
- 'data' (val) {
233
- if (val.f_files_path) {
234
- this.getFileContent(val.f_files_path)
235
- } else {
236
- this.reportStr = null
237
- }
238
- },
239
- 'model.data' (val) {
240
- let len=0
241
- let a=val.split('</tr>')
242
- for(let i=0;i<a.length;i++){
243
- if(a[i].split('</td>').length-1>len){
244
- len=a[i].split('</td>').length-1
245
- }
246
- continue
247
- }
248
- this.tablen=len
249
- }
250
- },
251
- computed: {
252
- payment() {
253
- return [...this.$appdata.getParam('付款方式查询')]
254
- }
255
- }
256
- }
257
- </script>
258
- <style scoped>
259
- .noborder{
260
- border: none;
261
- }
262
- </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 HH:mm:ss'"
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 HH:mm:ss'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-3 form-group" >
30
+ <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
31
+ <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
32
+ </div>
33
+ <div class="col-sm-3 form-group">
34
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
35
+ <res-select id="dep" restype='department' style="width: 60%"
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-3 form-group">
44
+ <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
45
+ <res-select id="oper" restype='user' style="width: 60%"
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 class="col-sm-3 form-group">
53
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
54
+ <v-select :value.sync="model.f_payment" multiple
55
+ v-model="model.f_payment"
56
+ :options='$parent.$parent.payment' placeholder='请选择'
57
+ condition="f_payment in {}"
58
+ close-on-select></v-select>
59
+ </div>
60
+ </div>
61
+ <div class="span" style = "float:right;">
62
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
63
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
64
+ <report-excel id='gasprice'></report-excel>
65
+ </div>
66
+ </div>
67
+ </criteria>
68
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
69
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
70
+ <thead>
71
+ <tr>
72
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
73
+ <h3 style="text-align: center">营业厅收款结账单</h3>
74
+ </th>
75
+ </tr>
76
+ <tr>
77
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
78
+ 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
79
+ 打印时间:{{$parent.printTime}}
80
+ </th>
81
+ </tr>
82
+ <tr>
83
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
84
+ <div>
85
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
86
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
87
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
88
+ </div>
89
+ </th>
90
+ </tr>
91
+ </thead>
92
+ <tr>
93
+ <td :colspan='$parent.tablen' class="noborder">
94
+ {{{ model.data.substring(26,model.data.length-8) }}}
95
+ </td>
96
+ </tr>
97
+ <tfoot>
98
+ <tr style="text-align: left">
99
+ <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
100
+ <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
101
+ <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
102
+ </tr>
103
+ </tfoot>
104
+ </table>
105
+ {{{ $parent.reportStr}}}
106
+ </div>
107
+ </criteria-paged>
108
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
109
+ <header slot="modal-header" class="modal-header">
110
+ <h4 class="modal-title">输入文件名称</h4>
111
+ </header>
112
+ <article slot="modal-body" class="modal-body">
113
+ <div class="form-group">
114
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
115
+ </div>
116
+ </article>
117
+ <footer slot="modal-footer" class="modal-footer">
118
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
119
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
120
+ </footer>
121
+ </modal>
122
+ </div>
123
+ </template>
124
+
125
+ <script>
126
+ import { DataModel } from 'vue-client'
127
+ import co from 'co'
128
+ let saveFile = function * (self) {
129
+ // 线验证文件是否重名
130
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
131
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
132
+ {resolveMsg: null, rejectMsg: null})
133
+ if (count.data.length > 0) {
134
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
135
+ return
136
+ }
137
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
138
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
139
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
140
+ f_outlets: this.$login.f.depname})
141
+ if (saveBack.data.status === 'succeed') {
142
+ self.show = false
143
+ self.filename = ''
144
+ // 后台保存完成,通知刷新
145
+ self.$dispatch('save-success', self.filename)
146
+ }
147
+ }
148
+ export default {
149
+ title: '营业厅收款结账单',
150
+ props: ['data'],
151
+ data () {
152
+ return {
153
+ printTime: this.$login.toStandardTimeString(),
154
+ depresid: [],
155
+ userresid: [],
156
+ f_orgid: this.$login.f.orgid,
157
+ f_depid: this.$login.f.depids,
158
+ f_operatorid: this.$login.f.id,
159
+ operatorid: [],
160
+ depid: [],
161
+ tablen:0,
162
+ orgname: '',
163
+ depname: '',
164
+ operatorname: '',
165
+ orgCondtionStr: '1=1',
166
+ model: new DataModel('rs/report/DepPrick', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
167
+ f_orgid: 'this.model.f_orgid'}),
168
+ reportStr: null,
169
+ show: false,
170
+ }
171
+ },
172
+ ready () {
173
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
174
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
175
+ console.log(this.$login.f)
176
+ },
177
+ methods: {
178
+ searchData () {
179
+ this.$refs.paged.$refs.criteria.search()
180
+ },
181
+ selfSearch (args) {
182
+ this.printTime = this.$login.toStandardTimeString()
183
+ let orgcondition = ' f_orgid = ' + this.f_orgid
184
+ if (this.f_depid[0]) {
185
+ orgcondition += ' and f_depid = ' + this.f_depid
186
+ }
187
+ if(this.f_operatorid[0]) {
188
+ orgcondition += ' and f_operatorid = ' + this.f_operatorid
189
+ }
190
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
191
+ this.$refs.paged.search(args)
192
+ },
193
+ getRes (obj) {
194
+ this.orgname = obj.res[0]
195
+ this.depresid = obj.resids
196
+ this.userresid = obj.resids
197
+ this.f_orgid = obj.resids
198
+ },
199
+ getdep (obj, val) {
200
+ this.depname = val[0]
201
+ // this.userresid = obj
202
+ this.f_depid = obj
203
+ },
204
+ getuser ( obj, val) {
205
+ this.operatorname = val[0]
206
+ this.f_operatorid = obj
207
+ },
208
+ // 根据文件路径获取储存的报表内容
209
+ getFileContent (path) {
210
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
211
+ this.reportStr = res.data.filecontent
212
+ this.model.state = '正确'
213
+ })
214
+ },
215
+ confirm () {
216
+ if (!this.filename || this.filename === '') {
217
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
218
+ }
219
+ let saveGen = saveFile(this)
220
+ co(saveGen)
221
+ },
222
+ close () {
223
+ this.show = false
224
+ },
225
+ // 将报表保存成文件
226
+ confirmReport () {
227
+ this.show = true
228
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
229
+ }
230
+ },
231
+ watch: {
232
+ 'data' (val) {
233
+ if (val.f_files_path) {
234
+ this.getFileContent(val.f_files_path)
235
+ } else {
236
+ this.reportStr = null
237
+ }
238
+ },
239
+ 'model.data' (val) {
240
+ let len=0
241
+ let a=val.split('</tr>')
242
+ for(let i=0;i<a.length;i++){
243
+ if(a[i].split('</td>').length-1>len){
244
+ len=a[i].split('</td>').length-1
245
+ }
246
+ continue
247
+ }
248
+ this.tablen=len
249
+ }
250
+ },
251
+ computed: {
252
+ payment() {
253
+ return [...this.$appdata.getParam('付款方式查询')]
254
+ }
255
+ }
256
+ }
257
+ </script>
258
+ <style scoped>
259
+ .noborder{
260
+ border: none;
261
+ }
262
+ </style>