manage-client 4.0.67-1 → 4.0.68

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.0.67-1",
3
+ "version": "4.0.68",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,321 @@
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
+ <res-select-group
30
+ :show-component="$parent.$parent.resshow"
31
+ :selectin="true" :initres="$parent.$parent.initres"
32
+ :cascade =true @re-res="$parent.$parent.getRes"
33
+ v-ref:sel>
34
+ </res-select-group>
35
+
36
+ </div>
37
+ <div class="span" style = "float:right;">
38
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
39
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
40
+ <report-excel id='gasprice'></report-excel>
41
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
42
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
43
+ </div>
44
+ <div class="row" v-show="$parent.$parent.criteriaShow">
45
+ <div class="col-sm-2 form-group">
46
+ <label class="font_normal_body">气价类型</label>
47
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
48
+ @change="$parent.$parent.pricetypechanged"
49
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
50
+ condition="sp.f_price_type = '{}'"
51
+ close-on-select v-ref:type>
52
+ </v-select>
53
+ </div>
54
+ <div class="col-sm-2 form-group">
55
+ <label class="font_normal_body">气价名称</label>
56
+ <v-select :value.sync="model.f_price_name"
57
+ v-model="model.f_price_name"
58
+ multiple
59
+ :options="$parent.$parent.getPricenames"
60
+ condition="sp.f_price_name in {}"
61
+ ></v-select>
62
+ </div>
63
+ <!--<div class="col-sm-2 form-group">-->
64
+ <!--<label class="font_normal_body">收费状态</label>-->
65
+ <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
66
+ <!--v-model="$parent.$parent.f_state"-->
67
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
68
+ <!--condition="f_state in {}"-->
69
+ <!--close-on-select></v-select>-->
70
+ <!--</div>-->
71
+ </div>
72
+ </div>
73
+ </criteria>
74
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
75
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
76
+ <thead>
77
+ <tr>
78
+ <th colspan='9' style="font-weight: normal; text-align: left;">
79
+ <h3 style="text-align: center">北方实业用气汇总</h3>
80
+ </th>
81
+ </tr>
82
+ <tr>
83
+ <th colspan='8' style="font-weight: normal; text-align: center;">
84
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
85
+ 结束时间:{{ model.model.endDate }}
86
+ </th>
87
+ </tr>
88
+ <tr>
89
+ <th colspan='8' style="font-weight: normal; text-align: center;">
90
+ 打印时间:{{{$parent.printTime}}}
91
+ </th>
92
+ </tr>
93
+ <tr>
94
+ <th colspan='8' style="font-weight: normal; text-align: center;">
95
+ <div>
96
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
97
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
98
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
99
+ </div>
100
+ </th>
101
+ </tr>
102
+ </thead>
103
+ <tr>
104
+ <td colspan='12'>
105
+ {{{ model.data.substring(26,model.data.length-8) }}}
106
+ </td>
107
+ </tr>
108
+ <tfoot>
109
+ <tr style="text-align: left">
110
+ <th colspan='3'>财务审核:</th>
111
+ <th colspan='3'>收款审核:</th>
112
+ <th colspan='3'>收款员:</th>
113
+ </tr>
114
+ </tfoot>
115
+ </table>
116
+ {{{ $parent.reportStr}}}
117
+ </div>
118
+ </criteria-paged>
119
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
120
+ <header slot="modal-header" class="modal-header">
121
+ <h4 class="modal-title">输入文件名称</h4>
122
+ </header>
123
+ <article slot="modal-body" class="modal-body">
124
+ <div class="form-group">
125
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
126
+ </div>
127
+ </article>
128
+ <footer slot="modal-footer" class="modal-footer">
129
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
130
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
131
+ </footer>
132
+ </modal>
133
+ </div>
134
+ </template>
135
+
136
+ <script>
137
+ import { DataModel } from 'vue-client'
138
+ import co from 'co'
139
+
140
+ let readySomething = async function (self) {
141
+ self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
142
+ self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
143
+ console.log(self.$login.f)
144
+ await self.$MagLoadParams.loadParam()
145
+ self.initParams()
146
+ self.$refs.paged.$refs.criteria.search()
147
+ }
148
+ let saveFile = function * (self) {
149
+ // 线验证文件是否重名
150
+ let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
151
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
152
+ {resolveMsg: null, rejectMsg: null})
153
+ if (count.data.length > 0) {
154
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
155
+ return
156
+ }
157
+ let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
158
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
159
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
160
+ f_outlets: this.$login.f.depname})
161
+ if (saveBack.data.status === 'succeed') {
162
+ self.show = false
163
+ self.filename = ''
164
+ // 后台保存完成,通知刷新
165
+ self.$dispatch('save-success', self.filename)
166
+ }
167
+ }
168
+ export default {
169
+ title: '气价分组汇总表',
170
+ props: ['data'],
171
+ data () {
172
+ return {
173
+ printTime: this.$login.toStandardTimeString(),
174
+ depresid: [],
175
+ userresid: [],
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
+ orgname: '',
182
+ depname: '',
183
+ operatorname: '',
184
+ f_inputtor: [],
185
+ f_user_type: '',
186
+ criteriaShow: false,
187
+ orgCondtionStr: '1=1',
188
+ model: new DataModel('api/af-revenue/report/brandGasPriceGroup', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
189
+ f_orgid: 'this.model.f_orgid'}),
190
+ reportStr: null,
191
+ resshow: ['company', 'department'],
192
+ initres: {
193
+ org: [this.$login.f.orgid],
194
+ dep: [],
195
+ user: []
196
+ },
197
+ f_filialeid: this.$login.f.orgid,
198
+ show: false,
199
+ }
200
+ },
201
+ ready () {
202
+ readySomething(this).then(() => {
203
+ this.$emit('ready')
204
+ }).catch((error) => {
205
+ this.$emit('error', error)
206
+ })
207
+ },
208
+ methods: {
209
+ initParams() {
210
+ // 初始化气表品牌
211
+ let brandArr = []
212
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
213
+ let temp = {}
214
+ temp.label = item.label
215
+ temp.value = item.value.f_meter_brand
216
+ brandArr.push(temp)
217
+ })
218
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
219
+ //初始化气表价格
220
+ this.prices = this.$MagGetSaleParam.getPrices()
221
+ },
222
+ hidden () {
223
+ this.criteriaShow = !this.criteriaShow
224
+ },
225
+ searchData () {
226
+ this.$refs.paged.$refs.criteria.search()
227
+ },
228
+ selfSearch (args) {
229
+ let orgcondition = args.condition + this.orgCondtionStr
230
+
231
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
232
+ this.$refs.paged.search(args)
233
+ },
234
+ async getRes(condition,obj) {
235
+ this.orgCondtionStr = condition
236
+ this.orgname = obj.orgnames[0]
237
+ this.depname = obj.depnames[0]
238
+ },
239
+ // 根据文件路径获取储存的报表内容
240
+ getFileContent (path) {
241
+ this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
242
+ this.reportStr = res.data.filecontent
243
+ this.model.state = '正确'
244
+ })
245
+ },
246
+ confirm () {
247
+ if (!this.filename || this.filename === '') {
248
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
249
+ }
250
+ let saveGen = saveFile(this)
251
+ co(saveGen)
252
+ },
253
+ close () {
254
+ this.show = false
255
+ },
256
+ pricetypechanged () {
257
+ this.$refs.paged.$refs.criteria.model.f_price_name = []
258
+ },
259
+ // 将报表保存成文件
260
+ confirmReport () {
261
+ this.show = true
262
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
263
+ }
264
+ },
265
+ watch: {
266
+ 'data' (val) {
267
+ if (val.f_files_path) {
268
+ this.getFileContent(val.f_files_path)
269
+ } else {
270
+ this.reportStr = null
271
+ }
272
+ }
273
+ },
274
+ computed: {
275
+ getPricenames () {
276
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype
277
+ if (this.$refs.paged.$refs.criteria.model !== null) {
278
+ let rs = []
279
+ let priceArr = []
280
+ if (pricetype.length > 0) {
281
+ let params = {
282
+ f_price_type: pricetype[0],
283
+ filter: this.f_filialeid,
284
+ prices: this.prices
285
+ }
286
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
287
+ let temp = {}
288
+ temp.label = item.label
289
+ temp.value = item.value.f_price_name
290
+ priceArr.push(temp)
291
+ })
292
+ if (priceArr.length == 0) {
293
+ rs = [{label: '全部', value: ''}]
294
+ } else {
295
+ rs = [...priceArr]
296
+ }
297
+ }
298
+ if (rs.length === 0) {
299
+ console.log('rs读出来是空')
300
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
301
+ }
302
+ return rs
303
+ }
304
+ },
305
+ pricetypes () {
306
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
307
+ },
308
+ metertypes () {
309
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
310
+ },
311
+ payment () {
312
+ return [...this.$appdata.getParam('付款方式查询')]
313
+ }
314
+ }
315
+ }
316
+ </script>
317
+ <style scoped>
318
+ .noborder{
319
+ border: none;
320
+ }
321
+ </style>
@@ -1,274 +1,244 @@
1
1
  <template>
2
- <div class="basic-main" style="height: 98%">
3
- <criteria-paged :model="model" :pager='false' v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <p class="bg-info text-center" style="padding: 8px;">付款方式报表</p>
6
- <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
- <div class="row">
9
- <div class="col-sm-4" >
10
- <label class="font_normal_body" for="startDate">开始日期:</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
- v-model="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">
30
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
31
- <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
- </div>
33
- <div class="col-sm-4">
34
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
35
- <res-select restype='department'
36
- @res-select="$parent.$parent.getdep"
37
- :parentresid="$parent.$parent.depresid"
38
- :initresid='$parent.$parent.depid'>
39
- </res-select>
40
-
41
- </div>
42
- <div class="col-sm-4">
43
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
44
- <res-select restype='user'
45
- @res-select="$parent.$parent.getuser"
46
- :parentresid="$parent.$parent.userresid"
47
- :initresid='$parent.$parent.operatorid'>
48
- </res-select>
49
- </div>
50
- <div class="col-sm-4 form-group">
51
- <label class="font_normal_body">气表类型</label>
52
- <v-select :value.sync="model.f_meter_type" multiple
53
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
54
- condition="f_meter_type in {}"
55
- close-on-select></v-select>
56
- </div>
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>
57
18
  </div>
58
- <div class="span" style = "float:right;">
59
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
60
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
61
- <report-excel id='gasprice'></report-excel>
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>
62
28
  </div>
29
+ <res-select-group
30
+ :show-component="$parent.$parent.resshow"
31
+ :selectin="true" :initres="$parent.$parent.initres"
32
+ :cascade =true @re-res="$parent.$parent.getRes"
33
+ v-ref:sel>
34
+ </res-select-group>
35
+
63
36
  </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='9' style="font-weight: normal; text-align: left;">
70
- <h3 style="text-align: center">付款方式报表</h3>
71
- </th>
72
- </tr>
73
- <tr>
74
- <th colspan='9' style="font-weight: normal; text-align: center;">
75
- 开始时间:{{model.model.startDate}}<br>
76
- 结束时间:{{ model.model.endDate }}<br>
77
- 打印时间:{{{$parent.printTime}}}
78
- </th>
79
- </tr>
80
- <tr>
81
- <th colspan='9' style="font-weight: normal; text-align: center;">
82
- <div>
83
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
84
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
85
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
86
- </div>
87
- </th>
88
- </tr>
89
- </thead>
90
- <tr>
91
- <td colspan='9'>
92
- {{{ model.data.substring(26,model.data.length-8) }}}
93
- </td>
94
- </tr>
95
- <tfoot>
96
- <tr style="text-align: left">
97
- <th colspan='3'>财务审核:</th>
98
- <th colspan='3'>收款审核:</th>
99
- <th colspan='3'>收款员:</th>
100
- </tr>
101
- </tfoot>
102
- </table>
103
- {{{ $parent.reportStr}}}
104
- </div>
105
- </criteria-paged>
106
- <modal :show.sync="show" v-ref:modal small backdrop="false">
107
- <header slot="modal-header" class="modal-header">
108
- <h4 class="modal-title">输入文件名称</h4>
109
- </header>
110
- <article slot="modal-body" class="modal-body">
111
- <div class="form-group">
112
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
37
+ <div class="span" style = "float:right;">
38
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
39
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
40
+ <report-excel id='gasprice'></report-excel>
41
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
42
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
113
43
  </div>
114
- </article>
115
- <footer slot="modal-footer" class="modal-footer">
116
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
117
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
118
- </footer>
119
- </modal>
120
- </div>
121
- </template>
122
-
123
- <script>
124
- import { DataModel } from 'vue-client'
125
- import co from 'co'
126
- let saveFile = function * (self) {
127
- // 线验证文件是否重名
128
- let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
129
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
130
- {resolveMsg: null, rejectMsg: null})
131
- if (count.data.length > 0) {
132
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
133
- return
134
- }
135
- let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
136
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
137
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
138
- f_outlets: this.$login.f.depname})
139
- if (saveBack.data.status === 'succeed') {
140
- self.show = false
141
- self.filename = ''
142
- // 后台保存完成,通知刷新
143
- self.$dispatch('save-success', self.filename)
144
- }
145
- }
146
- export default {
147
- title: '付款方式报表',
148
- props: ['data'],
149
- data () {
150
- return {
151
- printTime: this.$login.toStandardTimeString(),
152
- depresid: [],
153
- userresid: [],
154
- f_orgid: this.$login.f.orgid,
155
- f_depid: this.$login.f.depids,
156
- f_operatorid: this.$login.f.id,
157
- operatorid: [],
158
- depid: [],
159
- orgname: '',
160
- depname: '',
161
- operatorname: '',
162
- orgCondtionStr: '1=1',
163
- model: new DataModel('api/af-revenue/report/paymentMethod', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
164
- f_orgid: 'this.model.f_orgid'}),
165
- reportStr: null,
166
- show: false,
167
- }
168
- },
169
- ready () {
170
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
171
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
172
- // this.$refs.paged.$refs.criteria.search()
173
- console.log(this.$login.f)
174
- },
175
- methods: {
176
- searchData () {
177
- this.$refs.paged.$refs.criteria.search()
178
- },
179
- selfSearch (args) {
180
- this.printTime = this.$login.toStandardTimeString()
181
- console.log("condition:" + args.condition)
182
- let orgcondition = '1=1'
183
- if (this.f_orgid[0]) {
184
- orgcondition += ` and s.f_orgid in ('${this.f_orgid}')`
185
- }
186
- let deps = ''
187
- let i = 0
188
- let depss = ''
189
- if (this.f_depid[0]) {
190
- for ( i; i< this.f_depid.length; i++ )
191
- deps += `'${this.f_depid[i]}',`
192
- depss = deps.toString().substring(1,deps.length-2)
193
- orgcondition += " and s.f_depid in ( '" + depss + "' ) "
194
- }else {
195
- depss = ''
196
- }
197
- console.log("所选部门:" + depss)
198
-
199
- let opes = ''
200
- let j = 0
201
- let opess = ''
202
- if(this.f_operatorid[0]) {
203
- for ( j; j< this.f_operatorid.length; j++ )
204
- opes += `'${this.f_operatorid[j]}',`
205
- opess = opes.toString().substring(1,opes.length-2)
206
- orgcondition += "and s.f_operatorid in ( '" + opess + "' ) "
207
- }else {
208
- opess = ''
209
- }
210
- console.log("所选人员:" + opess)
44
+ <div class="row" v-show="$parent.$parent.criteriaShow">
45
+ <div class="col-sm-2 form-group">
46
+ <label class="font_normal_body">气表类型</label>
47
+ <v-select :value.sync="model.f_meter_type" multiple
48
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
49
+ condition="f_meter_type in {}"
50
+ close-on-select></v-select>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </criteria>
55
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
56
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
57
+ <thead>
58
+ <tr>
59
+ <th colspan='9' style="font-weight: normal; text-align: left;">
60
+ <h3 style="text-align: center">付款方式报表</h3>
61
+ </th>
62
+ </tr>
63
+ <tr>
64
+ <th colspan='9' style="font-weight: normal; text-align: center;">
65
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
66
+ 结束时间:{{ model.model.endDate }}
67
+ </th>
68
+ </tr>
69
+ <tr>
70
+ <th colspan='9' style="font-weight: normal; text-align: center;">
71
+ 打印时间:{{{$parent.printTime}}}
72
+ </th>
73
+ </tr>
74
+ <tr>
75
+ <th colspan='9' style="font-weight: normal; text-align: center;">
76
+ <div>
77
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
78
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
79
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
80
+ </div>
81
+ </th>
82
+ </tr>
83
+ </thead>
84
+ <tr>
85
+ <td colspan='9'>
86
+ {{{ model.data.substring(26,model.data.length-8) }}}
87
+ </td>
88
+ </tr>
89
+ <tfoot>
90
+ <tr style="text-align: left">
91
+ <th colspan='3'>财务审核:</th>
92
+ <th colspan='3'>收款审核:</th>
93
+ <th colspan='3'>收款员:</th>
94
+ </tr>
95
+ </tfoot>
96
+ </table>
97
+ {{{ $parent.reportStr}}}
98
+ </div>
99
+ </criteria-paged>
100
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
101
+ <header slot="modal-header" class="modal-header">
102
+ <h4 class="modal-title">输入文件名称</h4>
103
+ </header>
104
+ <article slot="modal-body" class="modal-body">
105
+ <div class="form-group">
106
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
107
+ </div>
108
+ </article>
109
+ <footer slot="modal-footer" class="modal-footer">
110
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
111
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
112
+ </footer>
113
+ </modal>
114
+ </div>
115
+ </template>
211
116
 
212
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition + " and " + args.condition
213
- this.$refs.paged.search(args)
214
- },
215
- getRes (obj) {
216
- this.orgname = obj.res[0]
217
- this.depresid = obj.resids
218
- this.f_orgid = obj.resids
219
- this.userresid = obj.resids
220
- },
221
- getdep (obj, val) {
222
- this.depname = val
223
- // this.userresid = obj
224
- this.f_depid = obj
225
- },
226
- getuser ( obj, val) {
227
- this.operatorname = val
228
- this.f_operatorid = obj
229
- },
117
+ <script>
118
+ import { DataModel } from 'vue-client'
119
+ import co from 'co'
230
120
 
231
- // 根据文件路径获取储存的报表内容
232
- getFileContent (path) {
233
- this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
234
- this.reportStr = res.data.filecontent
235
- this.model.state = '正确'
236
- })
237
- },
238
- confirm () {
239
- if (!this.filename || this.filename === '') {
240
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
241
- }
242
- let saveGen = saveFile(this)
243
- co(saveGen)
244
- },
245
- close () {
246
- this.show = false
247
- },
248
- // 将报表保存成文件
249
- confirmReport () {
250
- this.show = true
251
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
252
- },
253
- },
254
- watch: {
255
- 'data' (val) {
256
- if (val.f_files_path) {
257
- this.getFileContent(val.f_files_path)
258
- } else {
259
- this.reportStr = null
260
- }
261
- }
121
+ let readySomething = async function (self) {
122
+ self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
123
+ self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
124
+ self.$refs.paged.$refs.criteria.search()
125
+ }
126
+ let saveFile = function * (self) {
127
+ // 线验证文件是否重名
128
+ let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
129
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
130
+ {resolveMsg: null, rejectMsg: null})
131
+ if (count.data.length > 0) {
132
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
133
+ return
134
+ }
135
+ let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
136
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
137
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
138
+ f_outlets: this.$login.f.depname})
139
+ if (saveBack.data.status === 'succeed') {
140
+ self.show = false
141
+ self.filename = ''
142
+ // 后台保存完成,通知刷新
143
+ self.$dispatch('save-success', self.filename)
144
+ }
145
+ }
146
+ export default {
147
+ title: '付款方式报表',
148
+ props: ['data'],
149
+ data () {
150
+ return {
151
+ printTime: this.$login.toStandardTimeString(),
152
+ depresid: [],
153
+ userresid: [],
154
+ f_orgid: this.$login.f.orgid,
155
+ f_depid: this.$login.f.depids,
156
+ f_operatorid: this.$login.f.id,
157
+ operatorid: [],
158
+ depid: [],
159
+ orgname: '',
160
+ depname: '',
161
+ operatorname: '',
162
+ criteriaShow: false,
163
+ orgCondtionStr: 'and 1=1',
164
+ model: new DataModel('api/af-revenue/report/paymentMethod', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
165
+ f_orgid: 'this.model.f_orgid'}),
166
+ reportStr: null,
167
+ resshow: ['company', 'department', 'operator'],
168
+ initres: {
169
+ org: [this.$login.f.orgid],
170
+ dep: [],
171
+ user: []
262
172
  },
263
- computed: {
264
- metertypes() {
265
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
266
- }
173
+ f_filialeid: this.$login.f.orgid,
174
+ show: false,
175
+ }
176
+ },
177
+ ready () {
178
+ readySomething(this).then(() => {
179
+ this.$emit('ready')
180
+ }).catch((error) => {
181
+ this.$emit('error', error)
182
+ })
183
+ },
184
+ methods: {
185
+ hidden () {
186
+ this.criteriaShow = !this.criteriaShow
187
+ },
188
+ searchData () {
189
+ this.$refs.paged.$refs.criteria.search()
190
+ },
191
+ selfSearch (args) {
192
+ let orgcondition = args.condition + this.orgCondtionStr
193
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
194
+ this.$refs.paged.search(args)
195
+ },
196
+ async getRes(condition,obj) {
197
+ this.orgCondtionStr = condition
198
+ this.orgname = obj.orgnames[0]
199
+ this.depname = obj.depnames[0]
200
+ },
201
+ // 根据文件路径获取储存的报表内容
202
+ getFileContent (path) {
203
+ this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
204
+ this.reportStr = res.data.filecontent
205
+ this.model.state = '正确'
206
+ })
207
+ },
208
+ confirm () {
209
+ if (!this.filename || this.filename === '') {
210
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
211
+ }
212
+ let saveGen = saveFile(this)
213
+ co(saveGen)
214
+ },
215
+ close () {
216
+ this.show = false
217
+ },
218
+ // 将报表保存成文件
219
+ confirmReport () {
220
+ this.show = true
221
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
222
+ }
223
+ },
224
+ watch: {
225
+ 'data' (val) {
226
+ if (val.f_files_path) {
227
+ this.getFileContent(val.f_files_path)
228
+ } else {
229
+ this.reportStr = null
267
230
  }
268
231
  }
269
- </script>
270
- <style scoped>
271
- .noborder{
272
- border: none;
232
+ },
233
+ computed: {
234
+ metertypes () {
235
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
273
236
  }
274
- </style>
237
+ }
238
+ }
239
+ </script>
240
+ <style scoped>
241
+ .noborder{
242
+ border: none;
243
+ }
244
+ </style>
@@ -0,0 +1,336 @@
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
+ <res-select-group
30
+ :show-component="$parent.$parent.resshow"
31
+ :selectin="true" :initres="$parent.$parent.initres"
32
+ :cascade =true @re-res="$parent.$parent.getRes"
33
+ v-ref:sel>
34
+ </res-select-group>
35
+
36
+ </div>
37
+ <div class="span" style = "float:right;">
38
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
39
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
40
+ <report-excel id='gasprice'></report-excel>
41
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
42
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
43
+ </div>
44
+ <div class="row" v-show="$parent.$parent.criteriaShow">
45
+ <div class="col-sm-2 form-group">
46
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
47
+ <v-select :value.sync="model.f_payment" multiple
48
+ v-model="model.f_payment"
49
+ :options='$parent.$parent.payment' placeholder='请选择'
50
+ condition="s.f_payment in {}"
51
+ close-on-select></v-select>
52
+ </div>
53
+ <div class="col-sm-2 form-group">
54
+ <label class="font_normal_body">气表类型</label>
55
+ <v-select :value.sync="model.f_meter_type" multiple
56
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
57
+ condition="s.f_meter_type in {}"
58
+ close-on-select></v-select>
59
+ </div>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">气价类型</label>
62
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
63
+ @change="$parent.$parent.pricetypechanged"
64
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
65
+ condition="sp.f_price_type = '{}'"
66
+ close-on-select v-ref:type>
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_price_name"
72
+ v-model="model.f_price_name"
73
+ multiple
74
+ :options="$parent.$parent.getPricenames"
75
+ condition="sp.f_price_name in {}"
76
+ ></v-select>
77
+ </div>
78
+ <!--<div class="col-sm-2 form-group">-->
79
+ <!--<label class="font_normal_body">收费状态</label>-->
80
+ <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
81
+ <!--v-model="$parent.$parent.f_state"-->
82
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
83
+ <!--condition="f_state in {}"-->
84
+ <!--close-on-select></v-select>-->
85
+ <!--</div>-->
86
+ </div>
87
+ </div>
88
+ </criteria>
89
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
90
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
91
+ <thead>
92
+ <tr>
93
+ <th colspan='9' style="font-weight: normal; text-align: left;">
94
+ <h3 style="text-align: center">天然气销售报表</h3>
95
+ </th>
96
+ </tr>
97
+ <tr>
98
+ <th colspan='8' style="font-weight: normal; text-align: center;">
99
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
100
+ 结束时间:{{ model.model.endDate }}
101
+ </th>
102
+ </tr>
103
+ <tr>
104
+ <th colspan='8' style="font-weight: normal; text-align: center;">
105
+ 打印时间:{{{$parent.printTime}}}
106
+ </th>
107
+ </tr>
108
+ <tr>
109
+ <th colspan='8' style="font-weight: normal; text-align: center;">
110
+ <div>
111
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
112
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
113
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
114
+ </div>
115
+ </th>
116
+ </tr>
117
+ </thead>
118
+ <tr>
119
+ <td colspan='12'>
120
+ {{{ model.data.substring(26,model.data.length-8) }}}
121
+ </td>
122
+ </tr>
123
+ <tfoot>
124
+ <tr style="text-align: left">
125
+ <th colspan='3'>财务审核:</th>
126
+ <th colspan='3'>收款审核:</th>
127
+ <th colspan='3'>收款员:</th>
128
+ </tr>
129
+ </tfoot>
130
+ </table>
131
+ {{{ $parent.reportStr}}}
132
+ </div>
133
+ </criteria-paged>
134
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
135
+ <header slot="modal-header" class="modal-header">
136
+ <h4 class="modal-title">输入文件名称</h4>
137
+ </header>
138
+ <article slot="modal-body" class="modal-body">
139
+ <div class="form-group">
140
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
141
+ </div>
142
+ </article>
143
+ <footer slot="modal-footer" class="modal-footer">
144
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
145
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
146
+ </footer>
147
+ </modal>
148
+ </div>
149
+ </template>
150
+
151
+ <script>
152
+ import { DataModel } from 'vue-client'
153
+ import co from 'co'
154
+
155
+ let readySomething = async function (self) {
156
+ self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
157
+ self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
158
+ console.log(self.$login.f)
159
+ await self.$MagLoadParams.loadParam()
160
+ self.initParams()
161
+ self.$refs.paged.$refs.criteria.search()
162
+ }
163
+ let saveFile = function * (self) {
164
+ // 线验证文件是否重名
165
+ let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
166
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
167
+ {resolveMsg: null, rejectMsg: null})
168
+ if (count.data.length > 0) {
169
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
170
+ return
171
+ }
172
+ let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
173
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
174
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
175
+ f_outlets: this.$login.f.depname})
176
+ if (saveBack.data.status === 'succeed') {
177
+ self.show = false
178
+ self.filename = ''
179
+ // 后台保存完成,通知刷新
180
+ self.$dispatch('save-success', self.filename)
181
+ }
182
+ }
183
+ export default {
184
+ title: '天然气销售报表',
185
+ props: ['data'],
186
+ data () {
187
+ return {
188
+ printTime: this.$login.toStandardTimeString(),
189
+ depresid: [],
190
+ userresid: [],
191
+ f_orgid: this.$login.f.orgid,
192
+ f_depid: this.$login.f.depids,
193
+ f_operatorid: this.$login.f.id,
194
+ operatorid: [],
195
+ depid: [],
196
+ orgname: '',
197
+ depname: '',
198
+ operatorname: '',
199
+ f_inputtor: [],
200
+ f_user_type: '',
201
+ criteriaShow: false,
202
+ orgCondtionStr: '1=1',
203
+ model: new DataModel('api/af-revenue/report/gasPriceGroup', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
204
+ f_orgid: 'this.model.f_orgid'}),
205
+ reportStr: null,
206
+ resshow: ['company', 'department', 'operator'],
207
+ initres: {
208
+ org: [this.$login.f.orgid],
209
+ dep: [],
210
+ user: []
211
+ },
212
+ f_filialeid: this.$login.f.orgid,
213
+ show: false,
214
+ }
215
+ },
216
+ ready () {
217
+ readySomething(this).then(() => {
218
+ this.$emit('ready')
219
+ }).catch((error) => {
220
+ this.$emit('error', error)
221
+ })
222
+ },
223
+ methods: {
224
+ initParams() {
225
+ // 初始化气表品牌
226
+ let brandArr = []
227
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
228
+ let temp = {}
229
+ temp.label = item.label
230
+ temp.value = item.value.f_meter_brand
231
+ brandArr.push(temp)
232
+ })
233
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
234
+ //初始化气表价格
235
+ this.prices = this.$MagGetSaleParam.getPrices()
236
+ },
237
+ hidden () {
238
+ this.criteriaShow = !this.criteriaShow
239
+ },
240
+ searchData () {
241
+ this.$refs.paged.$refs.criteria.search()
242
+ },
243
+ selfSearch (args) {
244
+ let orgcondition = args.condition + this.orgCondtionStr
245
+
246
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
247
+ this.$refs.paged.search(args)
248
+ },
249
+ async getRes(condition,obj) {
250
+ this.orgCondtionStr = condition
251
+ this.orgname = obj.orgnames[0]
252
+ this.depname = obj.depnames[0]
253
+ },
254
+ // 根据文件路径获取储存的报表内容
255
+ getFileContent (path) {
256
+ this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
257
+ this.reportStr = res.data.filecontent
258
+ this.model.state = '正确'
259
+ })
260
+ },
261
+ confirm () {
262
+ if (!this.filename || this.filename === '') {
263
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
264
+ }
265
+ let saveGen = saveFile(this)
266
+ co(saveGen)
267
+ },
268
+ close () {
269
+ this.show = false
270
+ },
271
+ pricetypechanged () {
272
+ this.$refs.paged.$refs.criteria.model.f_price_name = []
273
+ },
274
+ // 将报表保存成文件
275
+ confirmReport () {
276
+ this.show = true
277
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
278
+ }
279
+ },
280
+ watch: {
281
+ 'data' (val) {
282
+ if (val.f_files_path) {
283
+ this.getFileContent(val.f_files_path)
284
+ } else {
285
+ this.reportStr = null
286
+ }
287
+ }
288
+ },
289
+ computed: {
290
+ getPricenames () {
291
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype
292
+ if (this.$refs.paged.$refs.criteria.model !== null) {
293
+ let rs = []
294
+ let priceArr = []
295
+ if (pricetype.length > 0) {
296
+ let params = {
297
+ f_price_type: pricetype[0],
298
+ filter: this.f_filialeid,
299
+ prices: this.prices
300
+ }
301
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
302
+ let temp = {}
303
+ temp.label = item.label
304
+ temp.value = item.value.f_price_name
305
+ priceArr.push(temp)
306
+ })
307
+ if (priceArr.length == 0) {
308
+ rs = [{label: '全部', value: ''}]
309
+ } else {
310
+ rs = [...priceArr]
311
+ }
312
+ }
313
+ if (rs.length === 0) {
314
+ console.log('rs读出来是空')
315
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
316
+ }
317
+ return rs
318
+ }
319
+ },
320
+ pricetypes () {
321
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
322
+ },
323
+ metertypes () {
324
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
325
+ },
326
+ payment () {
327
+ return [...this.$appdata.getParam('付款方式查询')]
328
+ }
329
+ }
330
+ }
331
+ </script>
332
+ <style scoped>
333
+ .noborder{
334
+ border: none;
335
+ }
336
+ </style>
@@ -0,0 +1,9 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from 'vue'
3
+
4
+ export default function () {
5
+ // 气价分组汇总表
6
+ Vue.component('gas-price-group', (resolve) => {
7
+ require(['./GasPriceGroup'], resolve)
8
+ })
9
+ }
package/src/main.js CHANGED
@@ -8,6 +8,7 @@ import { ldap } from 'ldap-clients'
8
8
  import saleManage from './saleManage'
9
9
  import ShanXianSaleManage from './filiale/fugou/sale'
10
10
  import ShanXianwebSaleManage from './filiale/shexian/webmeterManage'
11
+ import OtherreportManage from './filiale/beifangshiye/reportManage'
11
12
  import webmeterManage from './webmeterManage'
12
13
  import reportManage from './reportManage'
13
14
  import newmanage from './newmanage'
@@ -52,6 +53,7 @@ ManageHome()
52
53
  newmanage()
53
54
  ShanXianwebSaleManage()
54
55
  reportManage()
56
+ OtherreportManage()
55
57
  ShanXianSaleManage()
56
58
  require('system-clients/src/styles/less/bootstrap.less')
57
59
  require('./components/qinhua/Style/qinhuaStyle.less')
@@ -250,6 +250,11 @@ export default function () {
250
250
  Vue.component('manage-other-charge-beifangshiye', (resolve) => {
251
251
  require(['./components/SellReport/ManageOtherChargeBeiFangShiYe'], resolve)
252
252
  })
253
+
254
+ // 北方实业用气汇总
255
+ Vue.component('brand-gas-price-group', (resolve) => {
256
+ require(['./components/SellReport/BrandGasPriceGroup'], resolve)
257
+ })
253
258
  // 报表展示组件(收费统计表)
254
259
  Vue.component('manage-gas-fee-operator', (resolve) => {
255
260
  require(['./components/SellReport/ManageGasFeeOperator'], resolve)