manage-client 3.2.136 → 3.2.140

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 (32) hide show
  1. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  2. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  3. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  4. package/build/dev-server.js +2 -2
  5. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  6. package/build/tmp/jar/MANIFEST.MF +2 -0
  7. package/package.json +2 -2
  8. package/src/components/SellReport/ApplyFillmoney.vue +228 -0
  9. package/src/components/SellReport/GasPropertiesManager.vue +151 -0
  10. package/src/components/SellReport/MarketMonthgas.vue +237 -0
  11. package/src/components/SellReport/ReportHistoryShow.vue +51 -0
  12. package/src/components/SellReport/ReportItems.vue +161 -92
  13. package/src/components/SellReport/ReportPool.vue +91 -19
  14. package/src/components/SellReport/applysFillmoney.vue +228 -0
  15. package/src/components/WebReport/EchartsBox.vue +54 -34
  16. package/src/components/daping/DataManagement.vue +4 -4
  17. package/src/components/daping/json/dataManage.json +11 -7
  18. package/src/components/qinhua/Pie.vue +18 -8
  19. package/src/components/sale/businessquery/ArrearsQuery.vue +13 -11
  20. package/src/components/sale/businessquery/ChargeQuery.vue +4 -4
  21. package/src/components/sale/businessquery/CommunityPaymen.vue +1 -1
  22. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +5 -2
  23. package/src/components/sale/businessquery/NoBusinessQuery.vue +37 -38
  24. package/src/components/sale/config/tableConfig.js +6 -0
  25. package/src/filiale/WEINAN/NewAccountQuery.vue +10 -33
  26. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +1 -1
  27. package/src/filiale/liaoyuan/RecordInfoQuery.vue +3 -1
  28. package/src/filiale/macheng/WebmeterSettlementAnalysis.vue +2 -2
  29. package/src/filiale/macheng/sale.js +1 -2
  30. package/src/filiale/shaoguan/config/exportConfig.js +1 -1
  31. package/src/filiale/tongchuan/ReportList.vue +28 -31
  32. package/src/reportManage.js +20 -0
@@ -13,9 +13,9 @@ var compiler = webpack(config)
13
13
  // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
14
  var shaoguan='http://119.146.1.106:8300/'
15
15
  var qtx='http://36.103.222.144:6300/'
16
- var bendi = 'http://127.0.0.1:8090'
16
+ var bendi = 'http://192.168.50.4:8400'
17
17
  // var bendi = 'http://172.168.1.11:9001'
18
- var fuwu = 'http://121.36.106.17:8400'
18
+ var fuwu = 'http://192.168.50.4:8400'
19
19
  // var fuwu = 'http://203.57.101.233:9001'
20
20
  var system = 'http://192.168.50.4:8400'
21
21
  //192.168.
@@ -0,0 +1,2 @@
1
+ Manifest-Version: 1.0
2
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.136",
3
+ "version": "3.2.140",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -64,7 +64,7 @@
64
64
  "sinon-chai": "^2.8.0",
65
65
  "style": "0.0.3",
66
66
  "style-loader": "^0.20.3",
67
- "system-clients": "3.1.89-18",
67
+ "system-clients": "3.1.89-20",
68
68
  "url-loader": "^0.5.7",
69
69
  "vue-amap": "0.5.10",
70
70
  "vue-client": "1.24.51",
@@ -0,0 +1,228 @@
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">
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
+
34
+ </div>
35
+ <div class="span" style = "float:right;">
36
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
37
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
38
+ <report-excel id='gasprice'></report-excel>
39
+ </div>
40
+ </div>
41
+ </criteria>
42
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
43
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
44
+ <thead>
45
+ <tr>
46
+ <th colspan='7' style="font-weight: normal; text-align: left;">
47
+ <h3 style="text-align: center">材料报建表</h3>
48
+ </th>
49
+ </tr>
50
+ <tr>
51
+ <th colspan='7' style="font-weight: normal; text-align: center;">
52
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
53
+ 结束时间:{{ model.model.endDate }}
54
+ </th>
55
+ </tr>
56
+ <tr>
57
+ <th colspan='7' style="font-weight: normal; text-align: center;">
58
+ 打印时间:{{{$parent.printTime}}}
59
+ </th>
60
+ </tr>
61
+ <tr>
62
+ <th colspan='7' style="font-weight: normal; text-align: center;">
63
+ <div>
64
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
65
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
66
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
67
+ </div>
68
+ </th>
69
+ </tr>
70
+ </thead>
71
+ <tr>
72
+ <td colspan='7'>
73
+ {{{ model.data.substring(26,model.data.length-8) }}}
74
+ </td>
75
+ </tr>
76
+ <tfoot>
77
+ <tr style="text-align: left">
78
+ <th colspan='3'>财务审核:</th>
79
+ <th colspan='3'>收款审核:</th>
80
+ <th colspan='1'>收款员:</th>
81
+ </tr>
82
+ </tfoot>
83
+ </table>
84
+ {{{ $parent.reportStr}}}
85
+ </div>
86
+ </criteria-paged>
87
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
88
+ <header slot="modal-header" class="modal-header">
89
+ <h4 class="modal-title">输入文件名称</h4>
90
+ </header>
91
+ <article slot="modal-body" class="modal-body">
92
+ <div class="form-group">
93
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
94
+ </div>
95
+ </article>
96
+ <footer slot="modal-footer" class="modal-footer">
97
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
98
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
99
+ </footer>
100
+ </modal>
101
+ </div>
102
+ </template>
103
+
104
+ <script>
105
+ import { DataModel } from 'vue-client'
106
+ import co from 'co'
107
+ let saveFile = function * (self) {
108
+ // 线验证文件是否重名
109
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
110
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
111
+ {resolveMsg: null, rejectMsg: null})
112
+ if (count.data.length > 0) {
113
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
114
+ return
115
+ }
116
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
117
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
118
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
119
+ f_outlets: this.$login.f.depname})
120
+ if (saveBack.data.status === 'succeed') {
121
+ self.show = false
122
+ self.filename = ''
123
+ // 后台保存完成,通知刷新
124
+ self.$dispatch('save-success', self.filename)
125
+ }
126
+ }
127
+ export default {
128
+ title: '材料报建表',
129
+ props: ['data'],
130
+ data () {
131
+ return {
132
+ printTime: this.$login.toStandardTimeString(),
133
+ depresid: [],
134
+ userresid: [],
135
+ f_orgid: this.$login.f.orgid,
136
+ f_depid: this.$login.f.depids,
137
+ f_operatorid: this.$login.f.id,
138
+ operatorid: [],
139
+ depid: [],
140
+ orgname: '',
141
+ depname: '',
142
+ operatorname: '',
143
+ f_inputtor:[],
144
+ f_user_type:'',
145
+ orgCondtionStr: '1=1',
146
+ model: new DataModel('rs/report/applysgasfillmoney', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
147
+ f_orgid: 'this.model.f_orgid'}),
148
+ reportStr: null,
149
+ show: false
150
+ }
151
+ },
152
+ ready () {
153
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
154
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
155
+ this.$refs.paged.$refs.criteria.search()
156
+ console.log(this.$login.f)
157
+ },
158
+ methods: {
159
+ searchData () {
160
+ this.$refs.paged.$refs.criteria.search()
161
+ },
162
+ selfSearch (args) {
163
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
164
+
165
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
166
+ this.$refs.paged.search(args)
167
+ },
168
+ getRes (obj) {
169
+ this.orgname = obj.res[0]
170
+ this.depresid = obj.resids
171
+ this.f_orgid = obj.resids
172
+ },
173
+ getdep (obj, val) {
174
+ // this.depname = val[0]
175
+ this.userresid = obj
176
+ this.f_depid = obj
177
+ },
178
+ getuser ( obj, val) {
179
+ this.operatorname = val[0]
180
+ this.f_operatorid = obj
181
+ },
182
+ // 根据文件路径获取储存的报表内容
183
+ getFileContent (path) {
184
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
185
+ this.reportStr = res.data.filecontent
186
+ this.model.state = '正确'
187
+ })
188
+ },
189
+ confirm () {
190
+ if (!this.filename || this.filename === '') {
191
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
192
+ }
193
+ let saveGen = saveFile(this)
194
+ co(saveGen)
195
+ },
196
+ close () {
197
+ this.show = false
198
+ },
199
+ // 将报表保存成文件
200
+ confirmReport () {
201
+ this.show = true
202
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
203
+ },
204
+ },
205
+ watch: {
206
+ 'data' (val) {
207
+ if (val.f_files_path) {
208
+ this.getFileContent(val.f_files_path)
209
+ } else {
210
+ this.reportStr = null
211
+ }
212
+ }
213
+ },
214
+ computed: {
215
+ usertypes() {
216
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
217
+ },
218
+ inputtor() {
219
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
220
+ },
221
+ }
222
+ }
223
+ </script>
224
+ <style scoped>
225
+ .noborder{
226
+ border: none;
227
+ }
228
+ </style>
@@ -0,0 +1,151 @@
1
+ <template lang="html">
2
+ <div id="charts">
3
+ <div id="GasPropertiesManager">
4
+ <button class="button_export button_spacing" @click="change('f_user_type')">一级用气性质</button>
5
+ <button class="button_export button_spacing" @click="change('f_gasproperties')">二级用气性质</button>
6
+ </div>
7
+ <div id="sm" :style="{width:'100%',height:'98%'}"></div>
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ /* eslint-disable indent,key-spacing,no-labels */
13
+
14
+ import * as Util from '../../Util'
15
+ import co from 'co'
16
+ import echarts from 'echarts'
17
+ import {HttpResetClass} from 'vue-client'
18
+
19
+ let getData = function* (self) {
20
+ let load = new HttpResetClass()
21
+ load.load('POST', 'rs/sql/gasPropertiesStatistics',
22
+ {data: {startDate: self.startdate, endDate: self.enddate, f_orgid: self.orgid, groupkey: self.groupkey}},
23
+ {resolveMsg: null, rejectMsg: null})
24
+ .then((res) => {
25
+ self.texttile = '用户类型'
26
+ let arrparams = []
27
+ let numdata = []
28
+ let pricedata = []
29
+ for (var i = 0; i < res.data.length; i++) {
30
+ arrparams[i] = res.data[i].name
31
+ numdata[i] = res.data[i].num
32
+ pricedata[i] = res.data[i].money
33
+ }
34
+ self.set(arrparams, numdata, pricedata)
35
+ })
36
+ }
37
+ export default {
38
+ props: {
39
+ startdate: {
40
+ type: String,
41
+ default: Util.toStandardDateString()
42
+ },
43
+ enddate: {
44
+ type: String,
45
+ default: Util.toStandardDateString()
46
+ },
47
+ orgid: {
48
+ type: String
49
+ }
50
+ },
51
+ data () {
52
+ return {
53
+ texttile: '',
54
+ xc: '',
55
+ groupkey: 'f_user_type'
56
+ }
57
+ },
58
+ methods: {
59
+ change (type) {
60
+ this.groupkey = type
61
+ this.searchdata()
62
+ },
63
+ set (arrparams, numdata, pricedata) {
64
+ this.xc = echarts.init(document.getElementById('sm'))
65
+ this.xc.setOption({
66
+ title: {
67
+ text: '用气性质散列图',
68
+ subtext: '数据查询来源',
69
+ x: 'left'
70
+ },
71
+ tooltip: {
72
+ trigger: 'axis'
73
+ },
74
+ legend: {
75
+ x: 'left',
76
+ y: 'bottom',
77
+ data: ['条数', '用量']
78
+ },
79
+ toolbox: {
80
+ show: true,
81
+ feature: {
82
+ dataView: {show: true, readOnly: false},
83
+ magicType: {show: true, type: ['line', 'bar']},
84
+ restore: {show: true},
85
+ saveAsImage: {show: true}
86
+ }
87
+ },
88
+ calculable: true,
89
+ xAxis: [
90
+ {
91
+ type: 'category',
92
+ data: arrparams
93
+ }
94
+ ],
95
+ yAxis: [
96
+ {
97
+ type: 'value'
98
+ }
99
+ ],
100
+ series: [
101
+ {
102
+ name: '条数',
103
+ type: 'bar',
104
+ data: numdata,
105
+ markLine: {
106
+ data: [
107
+ {type: 'average', name: '平均值'}
108
+ ]
109
+ }
110
+ },
111
+ {
112
+ name: '用量',
113
+ type: 'bar',
114
+ data: pricedata,
115
+ markLine: {
116
+ data: [
117
+ {type: 'average', name: '平均值'}
118
+ ]
119
+ }
120
+ }
121
+ ]
122
+ })
123
+ },
124
+ searchdata () {
125
+ let getGen = getData(this)
126
+ co(getGen)
127
+ }
128
+ },
129
+ ready () {
130
+ this.searchdata()
131
+ },
132
+ watch: {
133
+ 'startdate' (val) {
134
+ this.searchdata()
135
+ },
136
+ 'enddate' (val) {
137
+ this.searchdata()
138
+ },
139
+ 'orgid' (val) {
140
+ this.searchdata()
141
+ }
142
+ }
143
+
144
+ }
145
+ </script>
146
+ <style lang="less">
147
+ #GasPropertiesManager {
148
+ display: flex;
149
+ justify-content: center;
150
+ }
151
+ </style>
@@ -0,0 +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
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2 form-group" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div><!--
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ is-mul="false"
35
+ @res-select="$parent.$parent.getdep"
36
+ :parentresid="$parent.$parent.depresid"
37
+ :initresid='$parent.$parent.depid'>
38
+ </res-select>
39
+
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
43
+ <res-select restype='user'
44
+ is-mul="false"
45
+ @res-select="$parent.$parent.getuser"
46
+ :parentresid="$parent.$parent.userresid"
47
+ :initresid='$parent.$parent.operatorid'>
48
+ </res-select>
49
+ </div>
50
+ -->
51
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
+ </div>
53
+ <div class="span" style = "float:right;">
54
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
55
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
56
+ <report-excel id='gasprice'></report-excel>
57
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
58
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
59
+ </div>
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">用户类型</label>
63
+ <v-select :value.sync="$parent.$parent.f_user_type"
64
+ v-model="$parent.$parent.f_user_type"
65
+ :options='$parent.$parent.user_type' placeholder='请选择'
66
+ condition="f_user_type = '{}'"
67
+ close-on-select></v-select>
68
+ </div>
69
+ <!--<div class="col-sm-2 form-group">-->
70
+ <!--<label class="font_normal_body">收费状态</label>-->
71
+ <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
72
+ <!--v-model="$parent.$parent.f_state"-->
73
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
74
+ <!--condition="f_state in {}"-->
75
+ <!--close-on-select></v-select>-->
76
+ <!--</div>-->
77
+ </div>
78
+ </div>
79
+ </criteria>
80
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
81
+ <table class='tableprint' style="margin: 0px auto">
82
+ <thead>
83
+ <tr>
84
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
85
+ <h3 style="text-align: center">月度用气性质使用占比报表</h3>
86
+ </th>
87
+ </tr>
88
+ <tr>
89
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
90
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
91
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
92
+ <!--打印时间:{{{$parent.printTime}}}-->
93
+ 打印时间:{{$parent.printTime}}
94
+ <!--收费员:{{// $parent.operatorname}}-->
95
+ </th>
96
+ </tr>
97
+ <tr>
98
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
99
+ <div>
100
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
101
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
102
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$refs.criteria.$refs.res.obj.operatornames[0]">人员:{{$parent.operatorname}}</span>
103
+ </div>
104
+ </th>
105
+ </tr>
106
+ </thead>
107
+ <tr>
108
+ <td :colspan='$parent.spans' class="noborder">
109
+ {{{ model.data.substring(26,model.data.length-8) }}}
110
+ </td>
111
+ </tr>
112
+ <tfoot>
113
+ <tr style="text-align: left">
114
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
115
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
116
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
117
+ </tr>
118
+ </tfoot>
119
+ </table>
120
+ {{{ $parent.reportStr}}}
121
+ </div>
122
+ </criteria-paged>
123
+ </div>
124
+ </template>
125
+
126
+ <script>
127
+ import { DataModel } from 'vue-client'
128
+ import co from 'co'
129
+
130
+ export default {
131
+ title: '月度用气性质使用占比报表',
132
+ props: ['data'],
133
+ data () {
134
+ return {
135
+ printTime: this.$login.toStandardTimeString(),
136
+ depresid: [],
137
+ userresid: [],
138
+ f_orgid: this.$login.f.orgid,
139
+ f_depid: this.$login.f.depids,
140
+ f_operatorid: this.$login.f.id,
141
+ operatorid: [],
142
+ depid: [],
143
+ orgname: '',
144
+ depname: '',
145
+ criteriaShow: false,
146
+ operatorname: '',
147
+ orgCondtionStr: '1=1',
148
+ f_user_type: '',
149
+ f_state:['有效'],
150
+ model: new DataModel('rs/report/applygasfillgas', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
151
+ f_orgid: 'this.model.f_orgid'}),
152
+ reportStr: null,
153
+ resshow:['company','department','operator'],
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
+ console.log(this.$login.f)
166
+ },
167
+ methods: {
168
+ searchData () {
169
+ this.$refs.paged.$refs.criteria.search()
170
+ },
171
+ selfSearch (args) {
172
+ this.printTime = this.$login.toStandardTimeString()
173
+ let orgcondition = '1=1'
174
+ let orgstr = this.orgCondtionStr
175
+ orgcondition = orgcondition + orgstr
176
+ console.log('23231312321:',this.f_user_type)
177
+ if(this.f_user_type && this.f_user_type[0]) {
178
+ orgcondition += ` and f_user_type = '${ this.f_user_type} '`
179
+ }
180
+ /* if (this.f_orgid && this.f_orgid[0]) {
181
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
182
+ }
183
+ if (this.f_depid && this.f_depid[0]) {
184
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
185
+ }
186
+ if(this.f_operatorid && this.f_operatorid[0]) {
187
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
188
+ }*/
189
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
190
+ this.$refs.paged.search(args)
191
+ },
192
+
193
+ hidden() {
194
+ this.criteriaShow = !this.criteriaShow
195
+ },
196
+ getRes (condition, obj) {
197
+ this.orgCondtionStr = condition
198
+ this.orgname = obj.orgnames[0]
199
+ this.depname = obj.depnames[0]
200
+ },
201
+ getdep (obj, val) {
202
+ this.depname = val[0]
203
+ this.userresid = obj
204
+ this.f_depid = obj
205
+ },
206
+ getuser ( obj, val) {
207
+ this.operatorname = val[0]
208
+ this.f_operatorid = obj
209
+ }
210
+ },
211
+ watch: {
212
+ 'model.data' (val) {
213
+ let len=0
214
+ let a=val.split('</tr>')
215
+ for(let i=0;i<a.length;i++){
216
+ if(a[i].split('</td>').length-1>len){
217
+ len=a[i].split('</td>').length-1
218
+ }
219
+ }
220
+ this.spans = len
221
+ }
222
+ },
223
+ computed: {
224
+ charge_state() {
225
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
226
+ },
227
+ user_type () {
228
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
229
+ }
230
+ }
231
+ }
232
+ </script>
233
+ <style scoped>
234
+ .noborder{
235
+ border: none;
236
+ }
237
+ </style>