manage-client 3.2.172 → 3.2.174

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 (27) hide show
  1. package/build/dev-server.js +182 -182
  2. package/package.json +2 -2
  3. package/src/components/SellReport/DayStairMoneyHunum.vue +256 -0
  4. package/src/components/SellReport/MonthStairHunum.vue +256 -0
  5. package/src/components/sale/config/exportConfig.js +1 -1
  6. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -586
  7. package/src/filiale/WEINAN/InspectListGas.vue +76 -4
  8. package/src/filiale/WEINAN/UserLostContactAnalysis.vue +594 -0
  9. package/src/filiale/WEINAN/webmeterManage.js +10 -0
  10. package/src/filiale/kelai/AreaChargeQuery.vue +393 -0
  11. package/src/filiale/kelai/sale.js +3 -1
  12. package/src/filiale/zhongyi/CallReport/CallReportMainPage.vue +25 -16
  13. package/src/filiale/zhongyi/CallReport/DropDownBox.vue +15 -25
  14. package/src/filiale/zhongyi/CallReport/IncomingTelegram.vue +17 -2
  15. package/src/filiale/zhongyi/CallReport/PercentageComplete.vue +95 -37
  16. package/src/filiale/zhongyi/CallReport/PercentageCompleteEchart.vue +15 -4
  17. package/src/filiale/zhongyi/CallReport/ServiceStatus.vue +86 -100
  18. package/src/filiale/zhongyi/CallReport/SwiperTools.vue +34 -55
  19. package/src/filiale/zhongyi/CallReport/Userinfo.vue +33 -61
  20. package/src/filiale/zhongyi/CallReport/WeatherData.vue +69 -5
  21. package/src/filiale/zhongyi/CallReport/WorkOrderPage.vue +32 -41
  22. package/src/main.js +66 -66
  23. package/src/reportManage.js +8 -0
  24. package/static/images/zhongyi//345/244/251/346/260/224-/346/231/264.png +0 -0
  25. package/static/images/zhongyi//346/232/264/351/233/250/345/210/260/345/244/247/346/232/264/351/233/250.png +0 -0
  26. package/static/images/zhongyi//351/230/264/345/244/251.png +0 -0
  27. package/static/images/zhongyi//351/233/276.png +0 -0
@@ -1,182 +1,182 @@
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://172.168.1.11:9001/'
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: bendi
27
- },
28
- '/rs/sql/otherChargeQuery': {
29
- target: 'http://localhost:8080/'
30
- },
31
- '/rs/sql/BusinessType': {
32
- target: 'http://localhost:8080/'
33
- },
34
- '/files': {
35
- target: bendi
36
- },
37
- // 查找资源服务数据
38
- '/rs/search': {
39
- target: bendi
40
- },
41
- // 查找资源服务数据
42
- '/rs/logic/getLogin': {
43
- target: bendi
44
- },
45
- // 查找资源服务数据
46
- '/rs/logic/getInitData': {
47
- target: bendi
48
- },
49
- '/rs/logic/getSaleInitData': {
50
- target: bendi
51
- },
52
- // 用户登录服务地址
53
- '/rs/user': {
54
- target: bendi
55
- },
56
- '/rs/path/getParams': {
57
- target: bendi
58
- },
59
- '/rs/data': {
60
- target: bendi
61
- },
62
- '/rs/license': {
63
- target: bendi
64
- },
65
- '/rs/db': {
66
- target: bendi
67
- },
68
- '/excel': {
69
- target: bendi
70
- },
71
- '/rs/config': {
72
- target: bendi
73
- },
74
- '/rs/sql/getLicenseById': {
75
- target: bendi
76
- },
77
- '/rs/report': {
78
- target: bendi
79
- },
80
- '/rs/vue': {
81
- target: bendi
82
- },
83
- '/rs/file': {
84
- target: bendi
85
- },
86
- '/rs/logic/SumSettleFileImport': {
87
- target: 'http://127.0.0.1:8080'
88
- },
89
- '/rs': {
90
- target: bendi
91
- }
92
- }
93
-
94
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
95
- publicPath: config.output.publicPath,
96
- stats: {
97
- colors: true,
98
- chunks: false
99
- }
100
- })
101
-
102
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
103
- // force page reload when html-webpack-plugin template changes
104
- compiler.plugin('compilation', function (compilation) {
105
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
106
- hotMiddleware.publish({action: 'reload'})
107
- cb()
108
- })
109
- })
110
-
111
- // proxy api requests
112
- Object.keys(proxyTable).forEach(function (context) {
113
- var options = proxyTable[context]
114
- if (typeof options === 'string') {
115
- options = {target: options}
116
- }
117
- app.use(proxyMiddleware(context, options))
118
- })
119
-
120
- // handle fallback for HTML5 history API
121
- app.use(require('connect-history-api-fallback')())
122
- // app.use(function (req, res, next) {
123
- // res.header('Access-Control-Allow-Origin', '*')
124
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
125
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
126
- // res.header('X-Powered-By', '3,2,1')
127
- // res.header('Access-Control-Allow-Credentials', 'true')
128
- // res.header('Content-Type', 'application/json;charset=utf-8')
129
- // next()
130
- // })
131
-
132
- // serve webpack bundle output
133
- app.use(devMiddleware)
134
-
135
- // enable hot-reload and state-preserving
136
- // compilation error display
137
- app.use(hotMiddleware)
138
-
139
- // serve pure static assets
140
- app.use('/static', express.static('./static'))
141
-
142
- // app.all('/rs/*', function (req, res) {
143
- // proxy.web(req, res, {
144
- // target: 'http://127.0.0.1:8081/reports'
145
- // })
146
- // })
147
-
148
- // app.all('/rs/*', function (req, res) {
149
- // proxy.web(req, res, {
150
- // target: 'http://127.0.0.1:8081/ldap'
151
- // })
152
- // })
153
- // app.all('/excel/*', function (req, res) {
154
- // proxy.web(req, res, {
155
- // target: 'http://127.0.0.1:8081/charge'
156
- // })
157
- // })
158
-
159
- // app.all('/rs/*', function (req, res) {
160
- // proxy.web(req, res, {
161
- // target: 'http://127.0.0.1:82/charge'
162
- // })
163
- // })
164
-
165
- // app.all('/*', function (req, res) {
166
- // proxy.web(req, res, {
167
- // target: 'http://127.0.0.1:82'
168
- // })
169
- // })
170
- // app.all('/rs/user', function (req, res) {
171
- // proxy.web(req, res, {
172
- // target: 'http://127.0.0.1:82'
173
- // })
174
- // })
175
-
176
- module.exports = app.listen(8085, function (err) {
177
- if (err) {
178
- console.log(err)
179
- return
180
- }
181
- console.log('Listening at http://localhost:8085')
182
- })
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://172.168.1.11:8400'
17
+ // var bendi = 'http://172.168.1.11:9001'
18
+ var fuwu = 'http://172.168.1.11:9001/'
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: bendi
27
+ },
28
+ '/rs/sql/otherChargeQuery': {
29
+ target: bendi
30
+ },
31
+ '/rs/sql/BusinessType': {
32
+ target: bendi
33
+ },
34
+ '/files': {
35
+ target: bendi
36
+ },
37
+ // 查找资源服务数据
38
+ '/rs/search': {
39
+ target: bendi
40
+ },
41
+ // 查找资源服务数据
42
+ '/rs/logic/getLogin': {
43
+ target: bendi
44
+ },
45
+ // 查找资源服务数据
46
+ '/rs/logic/getInitData': {
47
+ target: bendi
48
+ },
49
+ '/rs/logic/getSaleInitData': {
50
+ target: bendi
51
+ },
52
+ // 用户登录服务地址
53
+ '/rs/user': {
54
+ target: bendi
55
+ },
56
+ '/rs/path/getParams': {
57
+ target: bendi
58
+ },
59
+ '/rs/data': {
60
+ target: bendi
61
+ },
62
+ '/rs/license': {
63
+ target: bendi
64
+ },
65
+ '/rs/db': {
66
+ target: bendi
67
+ },
68
+ '/excel': {
69
+ target: bendi
70
+ },
71
+ '/rs/config': {
72
+ target: bendi
73
+ },
74
+ '/rs/sql/getLicenseById': {
75
+ target: bendi
76
+ },
77
+ '/rs/report': {
78
+ target: bendi
79
+ },
80
+ '/rs/vue': {
81
+ target: bendi
82
+ },
83
+ '/rs/file': {
84
+ target: bendi
85
+ },
86
+ '/rs/logic/SumSettleFileImport': {
87
+ target: 'http://127.0.0.1:8080'
88
+ },
89
+ '/rs': {
90
+ target: bendi
91
+ }
92
+ }
93
+
94
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
95
+ publicPath: config.output.publicPath,
96
+ stats: {
97
+ colors: true,
98
+ chunks: false
99
+ }
100
+ })
101
+
102
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
103
+ // force page reload when html-webpack-plugin template changes
104
+ compiler.plugin('compilation', function (compilation) {
105
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
106
+ hotMiddleware.publish({action: 'reload'})
107
+ cb()
108
+ })
109
+ })
110
+
111
+ // proxy api requests
112
+ Object.keys(proxyTable).forEach(function (context) {
113
+ var options = proxyTable[context]
114
+ if (typeof options === 'string') {
115
+ options = {target: options}
116
+ }
117
+ app.use(proxyMiddleware(context, options))
118
+ })
119
+
120
+ // handle fallback for HTML5 history API
121
+ app.use(require('connect-history-api-fallback')())
122
+ // app.use(function (req, res, next) {
123
+ // res.header('Access-Control-Allow-Origin', '*')
124
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
125
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
126
+ // res.header('X-Powered-By', '3,2,1')
127
+ // res.header('Access-Control-Allow-Credentials', 'true')
128
+ // res.header('Content-Type', 'application/json;charset=utf-8')
129
+ // next()
130
+ // })
131
+
132
+ // serve webpack bundle output
133
+ app.use(devMiddleware)
134
+
135
+ // enable hot-reload and state-preserving
136
+ // compilation error display
137
+ app.use(hotMiddleware)
138
+
139
+ // serve pure static assets
140
+ app.use('/static', express.static('./static'))
141
+
142
+ // app.all('/rs/*', function (req, res) {
143
+ // proxy.web(req, res, {
144
+ // target: 'http://127.0.0.1:8081/reports'
145
+ // })
146
+ // })
147
+
148
+ // app.all('/rs/*', function (req, res) {
149
+ // proxy.web(req, res, {
150
+ // target: 'http://127.0.0.1:8081/ldap'
151
+ // })
152
+ // })
153
+ // app.all('/excel/*', function (req, res) {
154
+ // proxy.web(req, res, {
155
+ // target: 'http://127.0.0.1:8081/charge'
156
+ // })
157
+ // })
158
+
159
+ // app.all('/rs/*', function (req, res) {
160
+ // proxy.web(req, res, {
161
+ // target: 'http://127.0.0.1:82/charge'
162
+ // })
163
+ // })
164
+
165
+ // app.all('/*', function (req, res) {
166
+ // proxy.web(req, res, {
167
+ // target: 'http://127.0.0.1:82'
168
+ // })
169
+ // })
170
+ // app.all('/rs/user', function (req, res) {
171
+ // proxy.web(req, res, {
172
+ // target: 'http://127.0.0.1:82'
173
+ // })
174
+ // })
175
+
176
+ module.exports = app.listen(8085, function (err) {
177
+ if (err) {
178
+ console.log(err)
179
+ return
180
+ }
181
+ console.log('Listening at http://localhost:8085')
182
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.172",
3
+ "version": "3.2.174",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -70,7 +70,7 @@
70
70
  "system-clients": "3.1.89-20",
71
71
  "url-loader": "^0.5.7",
72
72
  "vue-amap": "0.5.10",
73
- "vue-client": "1.24.51",
73
+ "vue-client": "1.24.74",
74
74
  "vue-hot-reload-api": "^1.2.0",
75
75
  "vue-html-loader": "^1.0.0",
76
76
  "vue-loader": "8.2.1",
@@ -0,0 +1,256 @@
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-3" >
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-3" >
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-3">
30
+ <label class="font_normal_body">气表品牌</label>
31
+ <v-select :value.sync="model.gasbrand"
32
+ v-model='model.gasbrand'
33
+ :options='$parent.$parent.meterbrands'
34
+ :multiple = "true"
35
+ condition="f_meter_brand in {}"
36
+ placeholder='气表品牌'
37
+ close-on-select></v-select>
38
+ </div>
39
+ <res-select-group :style="'col-sm-3'" @re-res="$parent.$parent.getRes" :show-component="$parent.$parent.showComponent" v-ref:sel></res-select-group>
40
+ </div>
41
+ <div class="span" style = "float:right;">
42
+ <button class="button_search" @click="$parent.$parent.search()">查询</button>
43
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%'></report-print>
44
+ <report-excel id='gasprice'></report-excel>
45
+ </div>
46
+ </div>
47
+ </criteria>
48
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow: auto">
49
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path" >
50
+ <thead>
51
+ <tr>
52
+ <th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: left;">
53
+ <h3 style="text-align: center">物联网日用气报表(户数)</h3>
54
+ </th>
55
+ </tr>
56
+ <tr>
57
+ <th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
58
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
59
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
60
+ </th>
61
+ </tr>
62
+ <tr>
63
+ <th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
64
+ 打印时间:{{{$parent.printTime}}}
65
+ </th>
66
+ </tr>
67
+ <tr>
68
+ <th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
69
+ <div>
70
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
71
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
72
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
73
+ </div>
74
+ </th>
75
+ </tr>
76
+ </thead>
77
+ <tr>
78
+ <td colspan='{{$parent.spans}}' id="test">
79
+ {{{ model.data.substring(26,model.data.length-8) }}}
80
+ </td>
81
+ </tr>
82
+ <tfoot>
83
+ <tr style="text-align: left" >
84
+ <th colspan='1'>财务审核:</th>
85
+ <th colspan='1'>收款审核:</th>
86
+ <th colspan='1'>收款员:</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
+ let readySomething = async function(self) {
134
+ await self.$LoadParams.loadParam(self.f_filialeid)
135
+ self.loadMeterBooks()
136
+ }
137
+ export default {
138
+ title: '日售气报表',
139
+ props: ['data'],
140
+ data () {
141
+
142
+ return {
143
+ printTime: this.$login.toStandardTimeString(),
144
+ depresid: [],
145
+ userresid: [],
146
+ f_orgid: this.$login.f.orgid,
147
+ f_depid: this.$login.f.depids,
148
+ f_operatorid: this.$login.f.id,
149
+ operatorid: [],
150
+ meterbrands:[{label: '全部',value: ''}],
151
+ depid: [],
152
+ orgname: '',
153
+ showComponent:['company','department','operator'],
154
+ depname: '',
155
+ operatorname: '',
156
+ orgCondtionStr: '1=1',
157
+ model: new DataModel('rs/report/mgetEveryDaySummaryHunum', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'}),
158
+ reportStr: null,
159
+ show: false,
160
+ spans: ''
161
+ }
162
+
163
+ },
164
+ ready () {
165
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()+' 00:00:00'
166
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()+" 23:59:59"
167
+ readySomething(this)
168
+ // this.$refs.paged.$refs.criteria.search()
169
+ console.log(this.$login.f)
170
+ },
171
+ methods: {
172
+ loadMeterBooks(){
173
+ let meterbrand = this.$GetSaleParam.getGasbrand()
174
+ for(let row of meterbrand){
175
+ this.meterbrands.push({label: row.label,value: row.value.f_meter_brand})
176
+ }
177
+ },
178
+ search () {
179
+ this.$refs.paged.$refs.criteria.search()
180
+ },
181
+ selfSearch (args) {
182
+ this.printTime = this.$login.toStandardTimeString()
183
+ this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr + ' and ' + args.condition
184
+ this.$refs.paged.search(args)
185
+ },
186
+ getRes (obj) {
187
+ // console.log('getres', obj)
188
+ /* this.orgname = obj.res[0]
189
+ this.depresid = obj.resids
190
+ this.f_orgid = obj.resids*/
191
+ this.orgCondtionStr = '1=1 ' + obj
192
+ },
193
+ getdep (obj, val) {
194
+ // this.depname = val[0]
195
+ this.userresid = obj
196
+ this.f_depid = obj
197
+ },
198
+ getuser ( obj, val) {
199
+ this.operatorname = val[0]
200
+ this.f_operatorid = obj
201
+ },
202
+
203
+ // 根据文件路径获取储存的报表内容
204
+ getFileContent (path) {
205
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
206
+ this.reportStr = res.data.filecontent
207
+ this.model.state = '正确'
208
+ })
209
+ },
210
+ confirm () {
211
+ if (!this.filename || this.filename === '') {
212
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
213
+ }
214
+ let saveGen = saveFile(this)
215
+ co(saveGen)
216
+ },
217
+ close () {
218
+ this.show = false
219
+ },
220
+ // 将报表保存成文件
221
+ confirmReport () {
222
+ this.show = true
223
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
224
+ },
225
+ },
226
+ watch: {
227
+ 'data' (val) {
228
+ if (val.f_files_path) {
229
+ this.getFileContent(val.f_files_path)
230
+ } else {
231
+ this.reportStr = null
232
+ }
233
+ },
234
+ 'model.data' (val) {
235
+ let tab = document.getElementById('test').children[0]
236
+ // (4-3)*2+3
237
+ var tds = tab.getElementsByTagName('td')
238
+ var num = 0
239
+ for (let td of tds) {
240
+ let span = td.getAttribute('colspan')
241
+ num = num + ((span ? span : 1) - 0)
242
+ }
243
+ console.log("返回的数为"+num)
244
+ this.spans = num
245
+ }
246
+ },
247
+ computed: {
248
+
249
+ }
250
+ }
251
+ </script>
252
+ <style scoped>
253
+ .noborder{
254
+ border: none;
255
+ }
256
+ </style>