manage-client 3.2.139-tcc → 3.2.143

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 (52) 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 +176 -176
  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 +1 -1
  8. package/src/components/SellReport/Cardapplysgas.vue +274 -0
  9. package/src/components/SellReport/GasPropertiesManager.vue +151 -0
  10. package/src/components/SellReport/LeftChart.vue +132 -0
  11. package/src/components/SellReport/MarketMonthChart.vue +162 -0
  12. package/src/components/SellReport/MarketMonthgas.vue +244 -0
  13. package/src/components/SellReport/UserFillmoney.vue +1 -1
  14. package/src/components/WebReport/EchartsBox.vue +54 -34
  15. package/src/components/daping/DataManagement.vue +4 -4
  16. package/src/components/daping/json/dataManage.json +11 -7
  17. package/src/components/qinhua/Pie.vue +18 -8
  18. package/src/components/sale/businessquery/AccountQuery/AccountListManage.vue +2 -2
  19. package/src/components/sale/businessquery/AccountQuery/OverdueList.vue +4 -4
  20. package/src/components/sale/businessquery/AccountQuery/keyUserGasRanking.vue +165 -0
  21. package/src/components/sale/businessquery/ArrearsQuery.vue +15 -13
  22. package/src/components/sale/businessquery/BusinessManage.vue +197 -164
  23. package/src/components/sale/businessquery/ChargeQuery.vue +6 -6
  24. package/src/components/sale/businessquery/CollectManage.vue +6 -0
  25. package/src/components/sale/businessquery/CommunityPaymen.vue +1 -1
  26. package/src/components/sale/businessquery/GroupChargeQuery.vue +2 -2
  27. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +5 -2
  28. package/src/components/sale/businessquery/HandplanQuery.vue +1 -1
  29. package/src/components/sale/businessquery/InspectListGas.vue +238 -246
  30. package/src/components/sale/businessquery/NoBusinessQuery.vue +37 -38
  31. package/src/components/sale/businessquery/ProceedsOper.vue +4 -4
  32. package/src/components/sale/businessquery/ResidentialCardQuery.vue +373 -0
  33. package/src/components/sale/businessquery/SellOrgnameQuery.vue +2 -2
  34. package/src/components/sale/businessquery/SellPeopleQuery.vue +2 -2
  35. package/src/components/sale/businessquery/UserSellHeadDetail.vue +4 -4
  36. package/src/components/sale/config/exportConfig.js +1064 -1053
  37. package/src/components/sale/filesquery/MeterQuery.vue +21 -1
  38. package/src/components/sale/filesquery/RecordInfoQuery.vue +16 -0
  39. package/src/components/sale/filesquery/UserQuery.vue +6 -0
  40. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +1 -1
  41. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +2 -1
  42. package/src/components/webmeter/DrillData/UserGasEform.vue +1 -1
  43. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +2 -1
  44. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +26 -26
  45. package/src/filiale/qianneng/ArrearsQuery.vue +2 -2
  46. package/src/filiale/qianneng/ChargeQuery.vue +2 -2
  47. package/src/filiale/qianneng/HandplanQuery.vue +1 -1
  48. package/src/filiale/qianneng/MeterQuery.vue +21 -1
  49. package/src/filiale/qianneng/exportConfig.js +3 -3
  50. package/src/filiale/rongcheng/RecordInfoQuery.vue +1 -1
  51. package/src/reportManage.js +18 -0
  52. package/src/saleManage.js +6 -0
@@ -1,176 +1,176 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- // var httpProxy = require('http-proxy')
6
-
7
- var app = express()
8
- var compiler = webpack(config)
9
- // var proxy = httpProxy.createProxyServer()
10
-
11
- // Define HTTP proxies to your custom API backend
12
- // https://github.com/chimurai/http-proxy-middleware
13
- // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var shaoguan='http://119.146.1.106:8300/'
15
- var qtx='http://36.103.222.144:6300/'
16
- var bendi = 'http://192.168.50.4:8400'
17
- // var bendi = 'http://172.168.1.11:9001'
18
- var fuwu = 'http://192.168.50.4:8400'
19
- // var fuwu = 'http://203.57.101.233:9001'
20
- var system = 'http://192.168.50.4:8400'
21
- //192.168.
22
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
23
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
24
- var proxyTable = {
25
- '/rs/logic/exportfile': {
26
- target: fuwu
27
- },
28
- '/files': {
29
- target: fuwu
30
- },
31
- // 查找资源服务数据
32
- '/rs/search': {
33
- target: fuwu
34
- },
35
- // 查找资源服务数据
36
- '/rs/logic/getLogin': {
37
- target: fuwu
38
- },
39
- // 查找资源服务数据
40
- '/rs/logic/getInitData': {
41
- target: fuwu
42
- },
43
- '/rs/logic/getSaleInitData':{
44
- target: fuwu
45
- },
46
- // 用户登录服务地址
47
- '/rs/user': {
48
- target: fuwu
49
- },
50
- '/rs/path/getParams': {
51
- target: fuwu
52
- },
53
- '/rs/data': {
54
- target: fuwu
55
- },
56
- '/rs/license': {
57
- target: fuwu
58
- },
59
- '/rs/db': {
60
- target: fuwu
61
- },
62
- '/excel': {
63
- target: fuwu
64
- },
65
- '/rs/config': {
66
- target: fuwu
67
- },
68
- '/rs/sql/getLicenseById': {
69
- target: fuwu
70
- },
71
- '/rs/report': {
72
- target: bendi
73
- },
74
- '/rs/vue': {
75
- target: fuwu
76
- },
77
- '/rs/file': {
78
- target: bendi
79
- },
80
- '/rs/logic/SumSettleFileImport': {
81
- target: 'http://127.0.0.1:8080'
82
- },
83
- '/rs': {
84
- target: fuwu
85
- }
86
- }
87
-
88
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
89
- publicPath: config.output.publicPath,
90
- stats: {
91
- colors: true,
92
- chunks: false
93
- }
94
- })
95
-
96
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
97
- // force page reload when html-webpack-plugin template changes
98
- compiler.plugin('compilation', function (compilation) {
99
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
100
- hotMiddleware.publish({action: 'reload'})
101
- cb()
102
- })
103
- })
104
-
105
- // proxy api requests
106
- Object.keys(proxyTable).forEach(function (context) {
107
- var options = proxyTable[context]
108
- if (typeof options === 'string') {
109
- options = {target: options}
110
- }
111
- app.use(proxyMiddleware(context, options))
112
- })
113
-
114
- // handle fallback for HTML5 history API
115
- app.use(require('connect-history-api-fallback')())
116
- // app.use(function (req, res, next) {
117
- // res.header('Access-Control-Allow-Origin', '*')
118
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
119
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
120
- // res.header('X-Powered-By', '3,2,1')
121
- // res.header('Access-Control-Allow-Credentials', 'true')
122
- // res.header('Content-Type', 'application/json;charset=utf-8')
123
- // next()
124
- // })
125
-
126
- // serve webpack bundle output
127
- app.use(devMiddleware)
128
-
129
- // enable hot-reload and state-preserving
130
- // compilation error display
131
- app.use(hotMiddleware)
132
-
133
- // serve pure static assets
134
- app.use('/static', express.static('./static'))
135
-
136
- // app.all('/rs/*', function (req, res) {
137
- // proxy.web(req, res, {
138
- // target: 'http://127.0.0.1:8081/reports'
139
- // })
140
- // })
141
-
142
- // app.all('/rs/*', function (req, res) {
143
- // proxy.web(req, res, {
144
- // target: 'http://127.0.0.1:8081/ldap'
145
- // })
146
- // })
147
- // app.all('/excel/*', function (req, res) {
148
- // proxy.web(req, res, {
149
- // target: 'http://127.0.0.1:8081/charge'
150
- // })
151
- // })
152
-
153
- // app.all('/rs/*', function (req, res) {
154
- // proxy.web(req, res, {
155
- // target: 'http://127.0.0.1:82/charge'
156
- // })
157
- // })
158
-
159
- // app.all('/*', function (req, res) {
160
- // proxy.web(req, res, {
161
- // target: 'http://127.0.0.1:82'
162
- // })
163
- // })
164
- // app.all('/rs/user', function (req, res) {
165
- // proxy.web(req, res, {
166
- // target: 'http://127.0.0.1:82'
167
- // })
168
- // })
169
-
170
- module.exports = app.listen(8085, function (err) {
171
- if (err) {
172
- console.log(err)
173
- return
174
- }
175
- console.log('Listening at http://localhost:8085')
176
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+
7
+ var app = express()
8
+ var compiler = webpack(config)
9
+ // var proxy = httpProxy.createProxyServer()
10
+
11
+ // Define HTTP proxies to your custom API backend
12
+ // https://github.com/chimurai/http-proxy-middleware
13
+ // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
+ var shaoguan='http://119.146.1.106:8300/'
15
+ var qtx='http://36.103.222.144:6300/'
16
+ var bendi = 'http://127.0.0.1:8090'
17
+ // var bendi = 'http://172.168.1.11:9001'
18
+ var fuwu = 'http://121.36.106.17:8400'
19
+ // var fuwu = 'http://203.57.101.233:9001'
20
+ var system = 'http://192.168.50.4:8400'
21
+ //192.168.
22
+ // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
23
+ // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
24
+ var proxyTable = {
25
+ '/rs/logic/exportfile': {
26
+ target: fuwu
27
+ },
28
+ '/files': {
29
+ target: fuwu
30
+ },
31
+ // 查找资源服务数据
32
+ '/rs/search': {
33
+ target: fuwu
34
+ },
35
+ // 查找资源服务数据
36
+ '/rs/logic/getLogin': {
37
+ target: fuwu
38
+ },
39
+ // 查找资源服务数据
40
+ '/rs/logic/getInitData': {
41
+ target: fuwu
42
+ },
43
+ '/rs/logic/getSaleInitData':{
44
+ target: fuwu
45
+ },
46
+ // 用户登录服务地址
47
+ '/rs/user': {
48
+ target: fuwu
49
+ },
50
+ '/rs/path/getParams': {
51
+ target: fuwu
52
+ },
53
+ '/rs/data': {
54
+ target: fuwu
55
+ },
56
+ '/rs/license': {
57
+ target: fuwu
58
+ },
59
+ '/rs/db': {
60
+ target: fuwu
61
+ },
62
+ '/excel': {
63
+ target: fuwu
64
+ },
65
+ '/rs/config': {
66
+ target: fuwu
67
+ },
68
+ '/rs/sql/getLicenseById': {
69
+ target: fuwu
70
+ },
71
+ '/rs/report': {
72
+ target: bendi
73
+ },
74
+ '/rs/vue': {
75
+ target: fuwu
76
+ },
77
+ '/rs/file': {
78
+ target: bendi
79
+ },
80
+ '/rs/logic/SumSettleFileImport': {
81
+ target: 'http://127.0.0.1:8080'
82
+ },
83
+ '/rs': {
84
+ target: fuwu
85
+ }
86
+ }
87
+
88
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
89
+ publicPath: config.output.publicPath,
90
+ stats: {
91
+ colors: true,
92
+ chunks: false
93
+ }
94
+ })
95
+
96
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
97
+ // force page reload when html-webpack-plugin template changes
98
+ compiler.plugin('compilation', function (compilation) {
99
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
100
+ hotMiddleware.publish({action: 'reload'})
101
+ cb()
102
+ })
103
+ })
104
+
105
+ // proxy api requests
106
+ Object.keys(proxyTable).forEach(function (context) {
107
+ var options = proxyTable[context]
108
+ if (typeof options === 'string') {
109
+ options = {target: options}
110
+ }
111
+ app.use(proxyMiddleware(context, options))
112
+ })
113
+
114
+ // handle fallback for HTML5 history API
115
+ app.use(require('connect-history-api-fallback')())
116
+ // app.use(function (req, res, next) {
117
+ // res.header('Access-Control-Allow-Origin', '*')
118
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
119
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
120
+ // res.header('X-Powered-By', '3,2,1')
121
+ // res.header('Access-Control-Allow-Credentials', 'true')
122
+ // res.header('Content-Type', 'application/json;charset=utf-8')
123
+ // next()
124
+ // })
125
+
126
+ // serve webpack bundle output
127
+ app.use(devMiddleware)
128
+
129
+ // enable hot-reload and state-preserving
130
+ // compilation error display
131
+ app.use(hotMiddleware)
132
+
133
+ // serve pure static assets
134
+ app.use('/static', express.static('./static'))
135
+
136
+ // app.all('/rs/*', function (req, res) {
137
+ // proxy.web(req, res, {
138
+ // target: 'http://127.0.0.1:8081/reports'
139
+ // })
140
+ // })
141
+
142
+ // app.all('/rs/*', function (req, res) {
143
+ // proxy.web(req, res, {
144
+ // target: 'http://127.0.0.1:8081/ldap'
145
+ // })
146
+ // })
147
+ // app.all('/excel/*', function (req, res) {
148
+ // proxy.web(req, res, {
149
+ // target: 'http://127.0.0.1:8081/charge'
150
+ // })
151
+ // })
152
+
153
+ // app.all('/rs/*', function (req, res) {
154
+ // proxy.web(req, res, {
155
+ // target: 'http://127.0.0.1:82/charge'
156
+ // })
157
+ // })
158
+
159
+ // app.all('/*', function (req, res) {
160
+ // proxy.web(req, res, {
161
+ // target: 'http://127.0.0.1:82'
162
+ // })
163
+ // })
164
+ // app.all('/rs/user', function (req, res) {
165
+ // proxy.web(req, res, {
166
+ // target: 'http://127.0.0.1:82'
167
+ // })
168
+ // })
169
+
170
+ module.exports = app.listen(8085, function (err) {
171
+ if (err) {
172
+ console.log(err)
173
+ return
174
+ }
175
+ console.log('Listening at http://localhost:8085')
176
+ })
@@ -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.139-tcc",
3
+ "version": "3.2.143",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,274 @@
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_classify" multiple
53
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
54
+ condition="f_meter_classify in {}"
55
+ close-on-select></v-select>
56
+ </div>
57
+ </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>
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='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='保存的文件名'>
113
+ </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('rs/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('rs/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('rs/report/Cardapplysgas', {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)
211
+
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
+ },
230
+
231
+ // 根据文件路径获取储存的报表内容
232
+ getFileContent (path) {
233
+ this.$resetpost('rs/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
+ }
262
+ },
263
+ computed: {
264
+ metertypes() {
265
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表品牌')]
266
+ }
267
+ }
268
+ }
269
+ </script>
270
+ <style scoped>
271
+ .noborder{
272
+ border: none;
273
+ }
274
+ </style>