manage-client 3.2.80 → 3.2.83-1

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 (60) hide show
  1. package/build/dev-server.js +6 -6
  2. package/package.json +1 -1
  3. package/src/components/SellReport/NonResidentGas.vue +13 -0
  4. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +36 -30
  5. package/src/components/SellReport/SellDepReport.vue +269 -266
  6. package/src/components/sale/businessquery/AreaChargeQuery.vue +22 -22
  7. package/src/components/sale/businessquery/AreaGeneralQuery.vue +35 -40
  8. package/src/components/sale/businessquery/BalanceTable.vue +29 -31
  9. package/src/components/sale/businessquery/BusinesQuery.vue +57 -18
  10. package/src/components/sale/businessquery/BusinessManage.vue +3 -1
  11. package/src/components/sale/businessquery/CancellationQuery.vue +37 -6
  12. package/src/components/sale/businessquery/CardHandplanQuery.vue +34 -6
  13. package/src/components/sale/businessquery/ChangeMeterQuery.vue +38 -7
  14. package/src/components/sale/businessquery/CollectManage.vue +9 -3
  15. package/src/components/sale/businessquery/CommunityPaymen.vue +24 -24
  16. package/src/components/sale/businessquery/DepositDetail.vue +16 -17
  17. package/src/components/sale/businessquery/DisableQuery.vue +40 -9
  18. package/src/components/sale/businessquery/EnableQuery.vue +66 -34
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +26 -26
  20. package/src/components/sale/businessquery/FillCardQuery.vue +38 -6
  21. package/src/components/sale/businessquery/FillGasQuery.vue +45 -7
  22. package/src/components/sale/businessquery/GasLossQuery.vue +1 -1
  23. package/src/components/sale/businessquery/HandBookQuery.vue +37 -38
  24. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +38 -37
  25. package/src/components/sale/businessquery/HandPeopleQuery.vue +22 -22
  26. package/src/components/sale/businessquery/Handgasquery.vue +30 -33
  27. package/src/components/sale/businessquery/HandplanQuery.vue +1372 -1327
  28. package/src/components/sale/businessquery/InfoOperateRecord.vue +13 -1
  29. package/src/components/sale/businessquery/MonthGasQuery.vue +2 -1
  30. package/src/components/sale/businessquery/MoveMeterQuery.vue +43 -9
  31. package/src/components/sale/businessquery/NoBusinessQuery.vue +23 -26
  32. package/src/components/sale/businessquery/OtherChargeQuery.vue +37 -6
  33. package/src/components/sale/businessquery/PlotSummaryQuery.vue +22 -21
  34. package/src/components/sale/businessquery/PrickBillQuery.vue +15 -13
  35. package/src/components/sale/businessquery/PrivilegeQuery.vue +37 -7
  36. package/src/components/sale/businessquery/ProceedsOper.vue +4 -10
  37. package/src/components/sale/businessquery/ReceiptQuery.vue +9 -6
  38. package/src/components/sale/businessquery/ResidentialArrearsQuery.vue +23 -24
  39. package/src/components/sale/businessquery/ResidentialQuery.vue +21 -28
  40. package/src/components/sale/businessquery/ReverseQuery.vue +37 -6
  41. package/src/components/sale/businessquery/SellOrgnameQuery.vue +29 -27
  42. package/src/components/sale/businessquery/SellPeopleQuery.vue +29 -30
  43. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +27 -26
  44. package/src/components/sale/businessquery/TransferQuery.vue +55 -23
  45. package/src/components/sale/businessquery/UnhandBusiness.vue +324 -0
  46. package/src/components/sale/businessquery/UserSellHeadDetail.vue +30 -33
  47. package/src/components/sale/businessquery/YingShouMingXi.vue +10 -15
  48. package/src/components/sale/businessquery/YonghuJieyu.vue +4 -2
  49. package/src/components/sale/businessquery/gasPriceQuery.vue +1 -2
  50. package/src/components/sale/businessquery/handplan-info.vue +405 -0
  51. package/src/components/sale/businessquery/overDueQuery.vue +39 -29
  52. package/src/components/sale/businessquery/priceadjustQuery.vue +36 -6
  53. package/src/components/sale/businessquery/sellingChargePrice.vue +667 -0
  54. package/src/components/sale/config/exportConfig.js +20 -1
  55. package/src/filiale/qianneng/ChargeQuery.vue +1289 -0
  56. package/src/filiale/qianneng/HandplanQuery.vue +1352 -0
  57. package/src/filiale/qianneng/OtherChargeQuery.vue +13 -1
  58. package/src/filiale/qianneng/exportConfig.js +69 -35
  59. package/src/filiale/qianneng/sale.js +3 -1
  60. package/src/saleManage.js +10 -2
@@ -1,266 +1,269 @@
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" >
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" >
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="col-sm-4 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-4 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>
53
- <div class="span" style = "float:right;">
54
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
55
- <tie-an-account v-if="this.$login.r.includes('报表扎帐')"
56
- :org="$parent.$parent.org"
57
- :model="$parent.$parent.data"
58
- :fee-str="$parent.model.data"
59
- :end-date="model.endDate" ></tie-an-account>
60
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
61
- <report-excel id='gasprice'></report-excel>
62
- </div>
63
- </div>
64
- </criteria>
65
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
66
- <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
67
- <thead>
68
- <tr>
69
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
70
- <h3 style="text-align: center">营业厅日结账</h3>
71
- </th>
72
- </tr>
73
- <tr>
74
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
75
- 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
76
- 打印时间:{{$parent.printTime}}
77
- </th>
78
- </tr>
79
- <tr>
80
- <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
81
- <div>
82
- <span v-show="$parent.orgname[0]">公司:{{$parent.orgname}}</span>
83
- <span v-show="$parent.depname[0]"> 部门:{{$parent.depname}}</span>
84
- <span v-show="$parent.operatorname[0]">人员:{{$parent.operatorname}}</span>
85
- </div>
86
- </th>
87
- </tr>
88
- </thead>
89
- <tr>
90
- <td :colspan='$parent.tablen' class="noborder">
91
- {{{ $parent.datas }}}
92
- </td>
93
- </tr>
94
- <tfoot>
95
- <tr style="text-align: left">
96
- <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
97
- <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
98
- <th :colspan='Math.round($parent.tablen/3)'>收款员:</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
- printTime: this.$login.toStandardTimeString(),
151
- depresid: [],
152
- userresid: [],
153
- f_orgid: this.$login.f.orgid,
154
- f_depid: this.$login.f.depids,
155
- f_operatorid: this.$login.f.id,
156
- operatorid: [],
157
- depid: [],
158
- org: {
159
- f_orgname:'',
160
- f_depname: '',
161
- f_operator: ''
162
- },
163
- tablen:0,
164
- datas: '',
165
- orgname: '',
166
- depname: '',
167
- operatorname: '',
168
- orgCondtionStr: '1=1',
169
- model: new DataModel('rs/report/sellDepReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
170
- f_orgid: 'this.model.f_orgid'}),
171
- reportStr: null,
172
- show: false,
173
- }
174
- },
175
- ready () {
176
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
177
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
178
- console.log(this.$login.f)
179
- },
180
- methods: {
181
- searchData () {
182
- this.$refs.paged.$refs.criteria.search()
183
- },
184
- selfSearch (args) {
185
-
186
- this.printTime = this.$login.toStandardTimeString()
187
- let orgcondition = '1=1'
188
- if (this.f_orgid[0]) {
189
- orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
190
- }
191
- if (this.f_depid[0]) {
192
- orgcondition += ' and f_depid in (' + this.f_depid + ')'
193
- }
194
- if(this.f_operatorid[0]) {
195
- orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
196
- }
197
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
198
- this.$refs.paged.search(args)
199
- },
200
- getRes (obj) {
201
- this.org.f_orgname = this.orgname = obj.res[0]
202
- this.depresid = obj.resids
203
- this.userresid = obj.resids
204
- this.f_orgid = obj.resids
205
- },
206
- getdep (obj, val) {
207
- this.org.f_depname = this.depname = val[0]
208
- // this.userresid = obj
209
- this.f_depid = obj
210
- },
211
- getuser ( obj, val) {
212
- this.org.f_operator = this.operatorname = val[0]
213
- this.f_operatorid = obj
214
- },
215
- // 根据文件路径获取储存的报表内容
216
- getFileContent (path) {
217
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
218
- this.reportStr = res.data.filecontent
219
- this.model.state = '正确'
220
- })
221
- },
222
- confirm () {
223
- if (!this.filename || this.filename === '') {
224
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
225
- }
226
- let saveGen = saveFile(this)
227
- co(saveGen)
228
- },
229
- close () {
230
- this.show = false
231
- },
232
- // 将报表保存成文件
233
- confirmReport () {
234
- this.show = true
235
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
236
- }
237
- },
238
- watch: {
239
- 'data' (val) {
240
- if (val.f_files_path) {
241
- this.getFileContent(val.f_files_path)
242
- } else {
243
- this.reportStr = null
244
- }
245
- },
246
- 'model.data' (val) {
247
- this.datas = val.replace(/#\(|\)|\^(.+?)\)/g, '').toString().substring(26, val.length - 8)
248
- let len=0
249
- let a=val.split('</tr>')
250
- for(let i=0;i<a.length;i++){
251
- if(a[i].split('</td>').length-1>len){
252
- len=a[i].split('</td>').length-1
253
- }
254
- }
255
- this.tablen=len
256
- }
257
- },
258
- computed: {
259
- }
260
- }
261
- </script>
262
- <style scoped>
263
- .noborder{
264
- border: none;
265
- }
266
- </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" >
10
+ <label class="font_normal_body" for="startDate">开始日期:</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd 00:00:00'"
16
+ :show-reset-button="reset"
17
+ :disabled="$parent.$parent.noshow">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2" >
21
+ <label class="font_normal_body" for="endDate">结束日期:</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :disabled-days-of-Week="[]"
26
+ :format="'yyyy-MM-dd 23:59:59'"
27
+ :show-reset-button="reset">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2">
31
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式:</label>
32
+ <v-select :value.sync="model.f_payment" multiple
33
+ v-model="model.f_payment"
34
+ :options='$parent.$parent.payment' placeholder='请选择'
35
+ condition="f_payment in {}"
36
+ close-on-select></v-select>
37
+ </div>
38
+ <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>
39
+ </div>
40
+ <div class="span" style = "float:right;">
41
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
42
+ <tie-an-account v-if="this.$login.r.includes('报表扎帐')"
43
+ :org="$parent.$parent.org"
44
+ @update="$parent.$parent.update"
45
+ :model="$parent.$parent.data"
46
+ :fee-str="$parent.model.data"
47
+ :end-date="model.endDate" ></tie-an-account>
48
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
49
+ <report-excel id='gasprice'></report-excel>
50
+ </div>
51
+ </div>
52
+ </criteria>
53
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
54
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
55
+ <thead>
56
+ <tr>
57
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: left;">
58
+ <h3 style="text-align: center">营业厅日结账</h3>
59
+ </th>
60
+ </tr>
61
+ <tr>
62
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
63
+ 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
64
+ 打印时间:{{$parent.printTime}}
65
+ </th>
66
+ </tr>
67
+ <tr>
68
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
69
+ <div>
70
+ <span v-show="$parent.orgname[0]">公司:{{$parent.orgname}}</span>
71
+ <span v-show="$parent.depname[0]"> 部门:{{$parent.depname}}</span>
72
+ <span v-show="$parent.operatorname[0]">人员:{{$parent.operatorname}}</span>
73
+ </div>
74
+ </th>
75
+ </tr>
76
+ </thead>
77
+ <tr>
78
+ <td :colspan='$parent.tablen' class="noborder">
79
+ {{{ $parent.datas }}}
80
+ </td>
81
+ </tr>
82
+ <tfoot>
83
+ <tr style="text-align: left">
84
+ <th :colspan='Math.floor($parent.tablen/3)'>财务审核:</th>
85
+ <th :colspan='Math.round($parent.tablen/3)'>收款审核:</th>
86
+ <th :colspan='Math.round($parent.tablen/3)'>收款员:</th>
87
+ </tr>
88
+ </tfoot>
89
+ </table>
90
+ {{{ $parent.reportStr}}}
91
+ </div>
92
+ </criteria-paged>
93
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
94
+ <header slot="modal-header" class="modal-header">
95
+ <h4 class="modal-title">输入文件名称</h4>
96
+ </header>
97
+ <article slot="modal-body" class="modal-body">
98
+ <div class="form-group">
99
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
100
+ </div>
101
+ </article>
102
+ <footer slot="modal-footer" class="modal-footer">
103
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
104
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
105
+ </footer>
106
+ </modal>
107
+ </div>
108
+ </template>
109
+
110
+ <script>
111
+ import { DataModel } from 'vue-client'
112
+ import co from 'co'
113
+ let saveFile = function * (self) {
114
+ // 线验证文件是否重名
115
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
116
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
117
+ {resolveMsg: null, rejectMsg: null})
118
+ if (count.data.length > 0) {
119
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
120
+ return
121
+ }
122
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
123
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
124
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
125
+ f_outlets: this.$login.f.depname})
126
+ if (saveBack.data.status === 'succeed') {
127
+ self.show = false
128
+ self.filename = ''
129
+ // 后台保存完成,通知刷新
130
+ self.$dispatch('save-success', self.filename)
131
+ }
132
+ }
133
+ export default {
134
+ title: '营业厅日结账',
135
+ props: ['data'],
136
+ data () {
137
+ return {
138
+ printTime: this.$login.toStandardTimeString(),
139
+ depresid: [],
140
+ userresid: [],
141
+ f_orgid: this.$login.f.orgid,
142
+ f_depid: this.$login.f.depids,
143
+ f_operatorid: this.$login.f.id,
144
+ operatorid: [],
145
+ depid: [],
146
+ org: {
147
+ f_orgname:'',
148
+ f_depname: '',
149
+ f_operator: ''
150
+ },
151
+ tablen:0,
152
+ noshow: false,
153
+ datas: '',
154
+ orgname: '',
155
+ depname: '',
156
+ operatorname: '',
157
+ orgCondtionStr: '1=1',
158
+ model: new DataModel('rs/report/sellDepReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
159
+ f_orgid: 'this.model.f_orgid'}),
160
+ reportStr: null,
161
+ resshow:['company','department','operator'],
162
+ show: false,
163
+ spans: 0,
164
+ initres: {
165
+ org: [this.$login.f.orgid],
166
+ dep: [],
167
+ user: []
168
+ }
169
+ }
170
+ },
171
+ ready () {
172
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()
173
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardTimeString()
174
+ console.log(this.$login.f)
175
+ },
176
+ methods: {
177
+ searchData () {
178
+ this.$refs.paged.$refs.criteria.search()
179
+ },
180
+ selfSearch (args) {
181
+ this.printTime = this.$login.toStandardTimeString()
182
+ let orgcondition = '1=1'
183
+ let orgstr = this.orgCondtionStr
184
+ this.org.f_depname = this.depname
185
+ this.org.f_operator = this.operatorname
186
+ orgcondition = orgcondition + orgstr
187
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition + ' and ' + this.$refs.paged.$refs.criteria.condition
188
+ this.$refs.paged.search(args)
189
+ },
190
+ update (val) {
191
+ if (val !== ''){
192
+ this.$refs.paged.$refs.criteria.model.startDate = val
193
+ this.noshow = true
194
+ } else {
195
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
196
+ this.noshow = false
197
+ }
198
+ },
199
+ getRes (condition, obj) {
200
+ this.orgCondtionStr = condition
201
+ this.org.f_orgname = obj.orgnames[0]
202
+ this.orgname = obj.orgnames[0]
203
+ this.depname = obj.depnames[0]
204
+ this.operatorname = obj.operatornames[0]
205
+ },
206
+ getdep (obj, val) {
207
+ this.org.f_depname = this.depname = val[0]
208
+ this.userresid = obj
209
+ this.f_depid = obj
210
+ },
211
+ getuser ( obj, val) {
212
+ this.org.f_operator = this.operatorname = val[0]
213
+ this.f_operatorid = obj
214
+ },
215
+ // 根据文件路径获取储存的报表内容
216
+ getFileContent (path) {
217
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
218
+ this.reportStr = res.data.filecontent
219
+ this.model.state = '正确'
220
+ })
221
+ },
222
+ confirm () {
223
+ if (!this.filename || this.filename === '') {
224
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
225
+ }
226
+ let saveGen = saveFile(this)
227
+ co(saveGen)
228
+ },
229
+ close () {
230
+ this.show = false
231
+ },
232
+ // 将报表保存成文件
233
+ confirmReport () {
234
+ this.show = true
235
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
236
+ }
237
+ },
238
+ watch: {
239
+ 'data' (val) {
240
+ if (val.f_files_path) {
241
+ this.getFileContent(val.f_files_path)
242
+ } else {
243
+ this.reportStr = null
244
+ }
245
+ },
246
+ 'model.data' (val) {
247
+ this.datas = val.replace(/#\(|\)|\^(.+?)\)/g, '').toString().substring(26, val.length - 8)
248
+ let len=0
249
+ let a=val.split('</tr>')
250
+ for(let i=0;i<a.length;i++){
251
+ if(a[i].split('</td>').length-1>len){
252
+ len=a[i].split('</td>').length-1
253
+ }
254
+ }
255
+ this.tablen=len
256
+ }
257
+ },
258
+ computed: {
259
+ payment() {
260
+ return [...this.$appdata.getParam('付款方式查询')]
261
+ }
262
+ }
263
+ }
264
+ </script>
265
+ <style scoped>
266
+ .noborder{
267
+ border: none;
268
+ }
269
+ </style>
@@ -26,6 +26,28 @@
26
26
  >
27
27
  </datepicker>
28
28
  </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
31
+ <v-select :value.sync="model.f_residential_area"
32
+ class="select_list select"
33
+ enter-push
34
+ multiple
35
+ condition="f_residential_area in {}"
36
+ v-model="model.f_residential_area"
37
+ style="width: 60%"
38
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
39
+ close-on-select>
40
+
41
+ </v-select>
42
+ </div>
43
+ <div class="col-sm-2 form-group">
44
+ <label class="font_normal_body">客户类型</label>
45
+ <v-select :value.sync="model.f_user_type"
46
+ @change="$parent.$parent.userTypeChange()"
47
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
48
+ condition="f_user_type = '{}'"
49
+ close-on-select></v-select>
50
+ </div>
29
51
  <div class="span" style="float:right;">
30
52
  <button class="button_search button_spacing" @click="search()">查询</button>
31
53
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
@@ -52,28 +74,6 @@
52
74
  <res-select-group :initres="$parent.$parent.initres"
53
75
  :showComponent="['company','department','operator']"
54
76
  @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
55
- <div class="col-sm-2 form-group">
56
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
57
- <v-select :value.sync="model.f_residential_area"
58
- class="select_list select"
59
- enter-push
60
- multiple
61
- condition="f_residential_area in {}"
62
- v-model="model.f_residential_area"
63
- style="width: 60%"
64
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
65
- close-on-select>
66
-
67
- </v-select>
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">客户类型</label>
71
- <v-select :value.sync="model.f_user_type"
72
- @change="$parent.$parent.userTypeChange()"
73
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
74
- condition="f_user_type = '{}'"
75
- close-on-select></v-select>
76
- </div>
77
77
  <div class="col-sm-2 form-group">
78
78
  <label class="font_normal_body">用气性质</label>
79
79
  <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"