manage-client 3.2.4 → 3.2.8

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 (91) hide show
  1. package/build/dev-server.js +5 -3
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/AmountGas.vue +3 -3
  5. package/src/components/SellReport/BonSummary.vue +3 -3
  6. package/src/components/SellReport/BusinessMoneyReport.vue +1 -1
  7. package/src/components/SellReport/BusinessReport.vue +3 -3
  8. package/src/components/SellReport/ChSellReport.vue +3 -3
  9. package/src/components/SellReport/ChargeBill.vue +3 -3
  10. package/src/components/SellReport/ChargeDayTable.vue +3 -3
  11. package/src/components/SellReport/ChargeMonthTable.vue +3 -3
  12. package/src/components/SellReport/ChargeYearTable.vue +3 -3
  13. package/src/components/SellReport/DeptHomePage.vue +2 -2
  14. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  15. package/src/components/SellReport/GasMeterBrand.vue +1 -1
  16. package/src/components/SellReport/GasPriceGroup.vue +1 -1
  17. package/src/components/SellReport/GasSummary.vue +3 -3
  18. package/src/components/SellReport/Gasc.vue +3 -3
  19. package/src/components/SellReport/GetUserNum.vue +3 -3
  20. package/src/components/SellReport/HandplanBili.vue +3 -3
  21. package/src/components/SellReport/HandplanUserCount.vue +1 -1
  22. package/src/components/SellReport/ManageGasPrice.vue +3 -3
  23. package/src/components/SellReport/ManageGasSumChange.vue +3 -3
  24. package/src/components/SellReport/ManageGasSumChangeTwo.vue +2 -2
  25. package/src/components/SellReport/ManageGasSumOtherCharge.vue +3 -3
  26. package/src/components/SellReport/MeterPrice.vue +3 -3
  27. package/src/components/SellReport/MeterReader.vue +2 -2
  28. package/src/components/SellReport/NonResidentGas.vue +3 -3
  29. package/src/components/SellReport/OperatorSellReport.vue +1 -1
  30. package/src/components/SellReport/OutletTable.vue +3 -3
  31. package/src/components/SellReport/PaymentDistribute.vue +1 -1
  32. package/src/components/SellReport/PaymentMethod.vue +1 -1
  33. package/src/components/SellReport/QTXManageBusSummary.vue +3 -3
  34. package/src/components/SellReport/SellDepReport.vue +3 -3
  35. package/src/components/SellReport/SellingTable.vue +220 -220
  36. package/src/components/SellReport/UserGasFillCard.vue +2 -2
  37. package/src/components/SellReport/UserSellingGas.vue +3 -3
  38. package/src/components/SellReport/WeiNanYuShou.vue +4 -4
  39. package/src/components/SellReport/YuShouTable.vue +1 -1
  40. package/src/components/SellReport/chargeSchedule.vue +2 -2
  41. package/src/components/SellReport/pengan/ManageBusPeng.vue +3 -3
  42. package/src/components/SellReport/userholds.vue +3 -3
  43. package/src/components/daping/GMap.vue +636 -636
  44. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  45. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  46. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  47. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  48. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  49. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  50. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  51. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  52. package/src/components/sale/config/exportConfig.js +885 -885
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  54. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +6 -7
  56. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  57. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  58. package/src/components/webmeter/instruction/NewQueryInstruct.vue +9 -11
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  60. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  62. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  63. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  64. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  66. package/src/components/webmeter/report/ReportList.vue +14 -13
  67. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  68. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  69. package/src/filiale/WEINAN/config/tableConfig.js +2 -0
  70. package/src/filiale/WEINAN/reportManage.js +12 -12
  71. package/src/filiale/alashan/reportManage.js +10 -10
  72. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  73. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  74. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  75. package/src/filiale/meihekou/sale.js +26 -26
  76. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  77. package/src/filiale/rongchuang/reportManage.js +11 -11
  78. package/src/filiale/shaoguan/RecordInfoQuery.vue +87 -79
  79. package/src/filiale/tongchuan/CriteriaPaged.vue +49 -0
  80. package/src/filiale/tongchuan/ReportList.vue +472 -472
  81. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  82. package/src/filiale/tongchuan/sale.js +4 -1
  83. package/src/main.js +66 -66
  84. package/static/wuhai.json +1610 -1610
  85. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  86. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  87. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  88. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  89. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  90. package/.gradle/5.2.1/gc.properties +0 -0
  91. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
@@ -173,12 +173,12 @@
173
173
  },
174
174
  selfSearch (args) {
175
175
  this.printTime = this.$login.toStandardTimeString()
176
- let orgcondition = ' f_orgid = ' + this.f_orgid
176
+ let orgcondition = ' f_orgid in (' + this.f_orgid + ')'
177
177
  if (this.f_depid[0]) {
178
- orgcondition += ' and f_depid = ' + this.f_depid
178
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
179
179
  }
180
180
  if(this.f_operatorid[0]) {
181
- orgcondition += ' and f_operatorid = ' + this.f_operatorid
181
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
182
182
  }
183
183
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
184
184
  this.$refs.paged.search(args)
@@ -184,7 +184,7 @@
184
184
  },
185
185
  selfSearch (args) {
186
186
  let f_dep=this.f_depid
187
- let orgcondition = ' ts.f_orgid = ' + this.f_orgid
187
+ let orgcondition = ' ts.f_orgid in (' + this.f_orgid + ')'
188
188
  if (f_dep[0]) {
189
189
  orgcondition += " and ts.f_depid in('"+f_dep[0]+"'"
190
190
  for( let i=1;i<f_dep.length;i++){
@@ -193,7 +193,7 @@
193
193
  orgcondition +=')'
194
194
  }
195
195
  if(this.f_operatorid[0]) {
196
- orgcondition += ' and ts.f_operatorid = ' + this.f_operatorid
196
+ orgcondition += ' and ts.f_operatorid in (' + this.f_operatorid + ')'
197
197
  }
198
198
  // console.log(this.orgname,this.depname.toString(),this.operatorname)
199
199
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
@@ -1,237 +1,237 @@
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-4 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-4 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" style="width: 60%"></right-tree>
32
- </div>
33
- <div class="span" style = "float:right;">
34
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
35
- <report-print id='gasprice' top='1.5cm' left='0' width='100%' height='100%' :preview="true"></report-print>
36
- <report-excel id='gasprice'></report-excel>
37
- </div>
38
- </div>
39
- </div>
40
- </criteria>
41
- <!-- <report-info id="gasprice"-->
42
- <!-- report-title="收费结账报表"-->
43
- <!-- :infohead="{'开始时间':model.model.startDate,'结束时间':model.model.endDate,'打印时间':$parent.printTime}"-->
44
- <!-- :orgname="$parent.orgname"-->
45
- <!-- :depname="$parent.depname"-->
46
- <!-- :operatorname="$parent.operatorname"-->
47
- <!-- :model="model.data.substring(26,model.data.length-8)"-->
48
- <!-- :reportStr="$parent.reportStr"-->
49
- <!-- ></report-info>-->
50
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
51
- <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
52
- <thead>
53
- <tr>
54
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
55
- <h3 style="text-align: center">收费结账报表</h3>
56
- </th>
57
- </tr>
58
- <tr>
59
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
60
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
61
- 结束时间:{{ model.model.endDate }}<br/>
62
- 打印时间:{{$parent.printTime}}
63
- <!--收费员:{{// $parent.operatorname}}-->
64
- </th>
65
- </tr>
66
- <tr>
67
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
68
- <div>
69
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
70
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
71
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
72
- </div>
73
- </th>
74
- </tr>
75
- </thead>
76
- <tr>
77
- <td :colspan='$parent.spans' class="noborder">
78
- {{{ model.data.substring(26,model.data.length-8) }}}
79
- </td>
80
- </tr>
81
- <tfoot>
82
- <tr style="text-align: left">
83
- <th :colspan='$parent.spans/3'>财务审核:</th>
84
- <th :colspan='$parent.spans/3'>收款审核:</th>
85
- <th :colspan='$parent.spans/3'>收款员:</th>
86
- </tr>
87
- </tfoot>
88
- </table>
89
- {{{ $parent.reportStr}}}
90
- </div>
91
- </criteria-paged>
92
- <modal :show.sync="show" v-ref:modal small backdrop="false">
93
- <header slot="modal-header" class="modal-header">
94
- <h4 class="modal-title">输入文件名称</h4>
95
- </header>
96
- <article slot="modal-body" class="modal-body">
97
- <div class="form-group">
98
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
99
- </div>
100
- </article>
101
- <footer slot="modal-footer" class="modal-footer">
102
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
103
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
104
- </footer>
105
- </modal>
106
- </div>
107
- </template>
108
-
109
- <script>
110
- import { DataModel } from 'vue-client'
111
- import co from 'co'
112
- let saveFile = function * (self) {
113
- // 线验证文件是否重名
114
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
115
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
116
- {resolveMsg: null, rejectMsg: null})
117
- if (count.data.length > 0) {
118
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
119
- return
120
- }
121
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
122
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
123
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
124
- f_outlets: this.$login.f.depname})
125
- if (saveBack.data.status === 'succeed') {
126
- self.show = false
127
- self.filename = ''
128
- // 后台保存完成,通知刷新
129
- self.$dispatch('save-success', self.filename)
130
- }
131
- }
132
- export default {
133
- title: '收费结账报表',
134
- props: ['data'],
135
- data () {
136
- return {
137
- printTime: this.$login.toStandardTimeString(),
138
- depresid: [],
139
- userresid: [],
140
- f_orgid: this.$login.f.orgid,
141
- f_depid: this.$login.f.depids,
142
- f_operatorid: this.$login.f.id,
143
- operatorid: [],
144
- depid: [],
145
- orgname: '',
146
- depname: '',
147
- operatorname: '',
148
- orgCondtionStr: '1=1',
149
- f_state:['有效'],
150
- model: new DataModel('rs/report/gasBaozhuangfee', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
151
- f_orgid: 'this.model.f_orgid'}),
152
- reportStr: null,
153
- show: false,
154
- spans:0,
155
- initres: {
156
- org: [this.$login.f.orgid],
157
- dep: [],
158
- user: []
159
- }
160
- }
161
- },
162
- ready () {
163
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
164
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
165
- // this.$refs.paged.$refs.criteria.search()
166
- console.log(this.$login.f)
167
- },
168
- methods: {
169
- searchData () {
170
- this.$refs.paged.$refs.criteria.search()
171
- },
172
- selfSearch (args) {
173
- this.printTime = this.$login.toStandardTimeString()
174
- this.orgCondtionStr='1=1'
175
- if (this.f_orgid[0]) {
176
- this.orgCondtionStr += ` and f_orgname in ('${this.orgname.toString().replace(new RegExp(',','g'),"','")}')`
177
- }
178
- this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr
179
- this.$refs.paged.search(args)
180
- },
181
- // 根据文件路径获取储存的报表内容
182
- getFileContent (path) {
183
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
184
- this.reportStr = res.data.filecontent
185
- this.model.state = '正确'
186
- })
187
- },
188
- confirm () {
189
- if (!this.filename || this.filename === '') {
190
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
191
- }
192
- let saveGen = saveFile(this)
193
- co(saveGen)
194
- },
195
- close () {
196
- this.show = false
197
- },
198
- // 将报表保存成文件
199
- confirmReport () {
200
- this.show = true
201
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
202
- },
203
- getRes (obj) {
204
- this.orgname = obj.res
205
- this.f_orgid = obj.resids
206
- },
207
- },
208
- watch: {
209
- 'data' (val) {
210
- if (val.f_files_path) {
211
- this.getFileContent(val.f_files_path)
212
- } else {
213
- this.reportStr = null
214
- }
215
- },
216
- 'model.data' (val) {
217
- let len=0
218
- let a=val.split('</tr>')
219
- for(let i=0;i<a.length;i++){
220
- if(a[i].split('</td>').length-1>len){
221
- len=a[i].split('</td>').length-1
222
- }
223
- continue
224
- }
225
- this.spans = len
226
- }
227
- },
228
- computed: {
229
- }
230
- }
231
-
232
- </script>
233
- <style scoped>
234
- .noborder{
235
- border: none;
236
- }
237
- </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-4 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-4 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" style="width: 60%"></right-tree>
32
+ </div>
33
+ <div class="span" style = "float:right;">
34
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
35
+ <report-print id='gasprice' top='1.5cm' left='0' width='100%' height='100%' :preview="true"></report-print>
36
+ <report-excel id='gasprice'></report-excel>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ </criteria>
41
+ <!-- <report-info id="gasprice"-->
42
+ <!-- report-title="收费结账报表"-->
43
+ <!-- :infohead="{'开始时间':model.model.startDate,'结束时间':model.model.endDate,'打印时间':$parent.printTime}"-->
44
+ <!-- :orgname="$parent.orgname"-->
45
+ <!-- :depname="$parent.depname"-->
46
+ <!-- :operatorname="$parent.operatorname"-->
47
+ <!-- :model="model.data.substring(26,model.data.length-8)"-->
48
+ <!-- :reportStr="$parent.reportStr"-->
49
+ <!-- ></report-info>-->
50
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
51
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
52
+ <thead>
53
+ <tr>
54
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
55
+ <h3 style="text-align: center">收费结账报表</h3>
56
+ </th>
57
+ </tr>
58
+ <tr>
59
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
60
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
61
+ 结束时间:{{ model.model.endDate }}<br/>
62
+ 打印时间:{{$parent.printTime}}
63
+ <!--收费员:{{// $parent.operatorname}}-->
64
+ </th>
65
+ </tr>
66
+ <tr>
67
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
68
+ <div>
69
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
70
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
71
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
72
+ </div>
73
+ </th>
74
+ </tr>
75
+ </thead>
76
+ <tr>
77
+ <td :colspan='$parent.spans' class="noborder">
78
+ {{{ model.data.substring(26,model.data.length-8) }}}
79
+ </td>
80
+ </tr>
81
+ <tfoot>
82
+ <tr style="text-align: left">
83
+ <th :colspan='$parent.spans/3'>财务审核:</th>
84
+ <th :colspan='$parent.spans/3'>收款审核:</th>
85
+ <th :colspan='$parent.spans/3'>收款员:</th>
86
+ </tr>
87
+ </tfoot>
88
+ </table>
89
+ {{{ $parent.reportStr}}}
90
+ </div>
91
+ </criteria-paged>
92
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
93
+ <header slot="modal-header" class="modal-header">
94
+ <h4 class="modal-title">输入文件名称</h4>
95
+ </header>
96
+ <article slot="modal-body" class="modal-body">
97
+ <div class="form-group">
98
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
99
+ </div>
100
+ </article>
101
+ <footer slot="modal-footer" class="modal-footer">
102
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
103
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
104
+ </footer>
105
+ </modal>
106
+ </div>
107
+ </template>
108
+
109
+ <script>
110
+ import { DataModel } from 'vue-client'
111
+ import co from 'co'
112
+ let saveFile = function * (self) {
113
+ // 线验证文件是否重名
114
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
115
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
116
+ {resolveMsg: null, rejectMsg: null})
117
+ if (count.data.length > 0) {
118
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
119
+ return
120
+ }
121
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
122
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
123
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
124
+ f_outlets: this.$login.f.depname})
125
+ if (saveBack.data.status === 'succeed') {
126
+ self.show = false
127
+ self.filename = ''
128
+ // 后台保存完成,通知刷新
129
+ self.$dispatch('save-success', self.filename)
130
+ }
131
+ }
132
+ export default {
133
+ title: '收费结账报表',
134
+ props: ['data'],
135
+ data () {
136
+ return {
137
+ printTime: this.$login.toStandardTimeString(),
138
+ depresid: [],
139
+ userresid: [],
140
+ f_orgid: this.$login.f.orgid,
141
+ f_depid: this.$login.f.depids,
142
+ f_operatorid: this.$login.f.id,
143
+ operatorid: [],
144
+ depid: [],
145
+ orgname: '',
146
+ depname: '',
147
+ operatorname: '',
148
+ orgCondtionStr: '1=1',
149
+ f_state:['有效'],
150
+ model: new DataModel('rs/report/gasBaozhuangfee', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
151
+ f_orgid: 'this.model.f_orgid'}),
152
+ reportStr: null,
153
+ show: false,
154
+ spans:0,
155
+ initres: {
156
+ org: [this.$login.f.orgid],
157
+ dep: [],
158
+ user: []
159
+ }
160
+ }
161
+ },
162
+ ready () {
163
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
164
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
165
+ // this.$refs.paged.$refs.criteria.search()
166
+ console.log(this.$login.f)
167
+ },
168
+ methods: {
169
+ searchData () {
170
+ this.$refs.paged.$refs.criteria.search()
171
+ },
172
+ selfSearch (args) {
173
+ this.printTime = this.$login.toStandardTimeString()
174
+ this.orgCondtionStr='1=1'
175
+ if (this.f_orgid[0]) {
176
+ this.orgCondtionStr += ` and f_orgname in ('${this.orgname.toString().replace(new RegExp(',','g'),"','")}')`
177
+ }
178
+ this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr
179
+ this.$refs.paged.search(args)
180
+ },
181
+ // 根据文件路径获取储存的报表内容
182
+ getFileContent (path) {
183
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
184
+ this.reportStr = res.data.filecontent
185
+ this.model.state = '正确'
186
+ })
187
+ },
188
+ confirm () {
189
+ if (!this.filename || this.filename === '') {
190
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
191
+ }
192
+ let saveGen = saveFile(this)
193
+ co(saveGen)
194
+ },
195
+ close () {
196
+ this.show = false
197
+ },
198
+ // 将报表保存成文件
199
+ confirmReport () {
200
+ this.show = true
201
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
202
+ },
203
+ getRes (obj) {
204
+ this.orgname = obj.res
205
+ this.f_orgid = obj.resids
206
+ },
207
+ },
208
+ watch: {
209
+ 'data' (val) {
210
+ if (val.f_files_path) {
211
+ this.getFileContent(val.f_files_path)
212
+ } else {
213
+ this.reportStr = null
214
+ }
215
+ },
216
+ 'model.data' (val) {
217
+ let len=0
218
+ let a=val.split('</tr>')
219
+ for(let i=0;i<a.length;i++){
220
+ if(a[i].split('</td>').length-1>len){
221
+ len=a[i].split('</td>').length-1
222
+ }
223
+ continue
224
+ }
225
+ this.spans = len
226
+ }
227
+ },
228
+ computed: {
229
+ }
230
+ }
231
+
232
+ </script>
233
+ <style scoped>
234
+ .noborder{
235
+ border: none;
236
+ }
237
+ </style>
@@ -160,7 +160,7 @@
160
160
  this.$refs.paged.$refs.criteria.search()
161
161
  },
162
162
  selfSearch (args) {
163
- let orgcondition = 'f_orgid = ' + this.f_orgid
163
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
164
164
 
165
165
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
166
166
  this.$refs.paged.search(args)
@@ -160,7 +160,7 @@
160
160
  this.$refs.paged.$refs.criteria.search()
161
161
  },
162
162
  selfSearch (args) {
163
- let orgcondition = 'f_orgid = ' + this.f_orgid
163
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
164
164
 
165
165
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
166
166
  this.$refs.paged.search(args)
@@ -172,12 +172,12 @@
172
172
  },
173
173
  selfSearch (args) {
174
174
  this.printTime = this.$login.toStandardTimeString()
175
- let orgcondition = ' f_orgid = ' + this.f_orgid
175
+ let orgcondition = ' f_orgid in (' + this.f_orgid + ')'
176
176
  if (this.f_depid[0]) {
177
- orgcondition += ' and f_depid = ' + this.f_depid
177
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
178
178
  }
179
179
  if(this.f_operatorid[0]) {
180
- orgcondition += ' and f_operatorid = ' + this.f_operatorid
180
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
181
181
  }
182
182
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
183
183
  this.$refs.paged.search(args)
@@ -172,12 +172,12 @@ export default {
172
172
  },
173
173
  selfSearch (args) {
174
174
  this.printTime = this.$login.toStandardTimeString()
175
- let orgcondition = ' f_orgid = ' + this.f_orgid
175
+ let orgcondition = ' f_orgid in (' + this.f_orgid + ')'
176
176
  if (this.f_depid[0]) {
177
- orgcondition += ' and f_depid = ' + this.f_depid
177
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
178
178
  }
179
179
  if(this.f_operatorid[0]) {
180
- orgcondition += ' and f_operatorid = ' + this.f_operatorid
180
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
181
181
  }
182
182
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
183
183
  this.$refs.paged.search(args)
@@ -172,12 +172,12 @@
172
172
  },
173
173
  selfSearch (args) {
174
174
  this.printTime = this.$login.toStandardTimeString()
175
- let orgcondition = 'f.f_orgid = ' + this.f_orgid
175
+ let orgcondition = 'f.f_orgid in (' + this.f_orgid + ')'
176
176
  if (this.f_depid[0]) {
177
- orgcondition += ' and f.f_depid = ' + this.f_depid
177
+ orgcondition += ' and f.f_depid in (' + this.f_depid + ')'
178
178
  }
179
179
  if(this.f_operatorid[0]) {
180
- orgcondition += ' and f.f_operatorid = ' + this.f_operatorid
180
+ orgcondition += ' and f.f_operatorid in (' + this.f_operatorid + ')'
181
181
  }
182
182
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
183
183
  this.$refs.paged.search(args)
@@ -173,12 +173,12 @@
173
173
  },
174
174
  selfSearch (args) {
175
175
  this.printTime = this.$login.toStandardTimeString()
176
- let orgcondition = 'f_orgid = ' + this.f_orgid
176
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
177
177
  if (this.f_depid[0]) {
178
- orgcondition += ' and f_depid = ' + this.f_depid
178
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
179
179
  }
180
180
  if(this.f_operatorid[0]) {
181
- orgcondition += ' and f_operatorid = ' + this.f_operatorid
181
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
182
182
  }
183
183
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
184
184
  this.$refs.paged.search(args)
@@ -152,7 +152,7 @@
152
152
  ready () {
153
153
  this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
154
154
  this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
155
- this.$refs.paged.$refs.criteria.search()
155
+ // this.$refs.paged.$refs.criteria.search()
156
156
  console.log(this.$login.f)
157
157
  },
158
158
  methods: {
@@ -173,12 +173,12 @@
173
173
  },
174
174
  selfSearch (args) {
175
175
  this.printTime = this.$login.toStandardTimeString()
176
- let orgcondition = 'f_orgid = ' + this.f_orgid
176
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
177
177
  if (this.f_depid[0]) {
178
- orgcondition += ' and f_depid = ' + this.f_depid
178
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
179
179
  }
180
180
  if(this.f_operatorid[0]) {
181
- orgcondition += ' and f_operatorid = ' + this.f_operatorid
181
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
182
182
  }
183
183
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
184
184
  this.$refs.paged.search(args)