manage-client 3.3.115 → 3.3.117-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  2. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  4. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  5. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  6. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  7. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  9. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  10. package/build/dev-server.js +189 -198
  11. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  12. package/build/libs/ManageClient-3.1.0-18.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/lib/package_2022-12-01-14-30-50.json +109 -0
  15. package/package.json +111 -111
  16. package/src/components/SellReport/DayStairMoney.vue +276 -256
  17. package/src/components/SellReport/MonthStairMoney.vue +276 -256
  18. package/src/components/handReport/HandGaspropertiesReport.vue +190 -190
  19. package/src/components/handReport/HandPriceReport.vue +190 -190
  20. package/src/components/handReport/WebGastypeReport.vue +190 -190
  21. package/src/components/sale/businessquery/ChargeQuery.vue +6 -0
  22. package/src/components/sale/businessquery/OtherChargeQuery.vue +6 -0
  23. package/src/components/sale/businessquery/WebHandplanQuery.vue +2 -2
  24. package/src/components/sale/config/exportConfig.js +2 -2
  25. package/src/components/webmeter/WebmeterQuery.vue +3 -0
  26. package/src/components/webmeter/gasStatistics/GasStatistics.vue +0 -6
  27. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +0 -7
  28. package/src/components/webmeter/operationValueRecord.vue +331 -0
  29. package/src/filiale/meihekou/ChargeQuery.vue +1265 -1265
  30. package/src/filiale/ningjin/ChargeQuery.vue +1 -1
  31. package/src/filiale/ningjin/GasStatistics.vue +0 -8
  32. package/src/filiale/qianneng/WebHandplanQuery.vue +992 -992
  33. package/src/filiale/qianneng/exportConfig.js +230 -230
  34. package/src/filiale/shaoguan/ArrearsQuery.vue +1 -1
  35. package/src/filiale/shaoguan/ChargeQuery.vue +1 -1
  36. package/src/filiale/shaoguan/HandplanQuery.vue +1 -1
  37. package/src/filiale/shaoguan/OtherChargeQuery.vue +1 -1
  38. package/src/filiale/shaoguan/RecordInfoQuery.vue +1 -1
  39. package/src/filiale/shaoguan/TransferQuery.vue +1 -1
  40. package/src/filiale/shaoguan/errorHandplanQuery.vue +1 -1
  41. package/src/filiale/shaoguan/overDueQuery.vue +1 -1
  42. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +1 -1
  43. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +1 -1
  44. package/src/filiale/wenxi/config/exportConfig.js +6 -0
  45. package/src/filiale/yuansheng/DayReportList.vue +463 -463
  46. package/src/main.js +1 -1
  47. package/src/webmeterManage.js +2 -0
@@ -1,256 +1,276 @@
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/mgetEveryDaySummary', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid',newWebHand: !!this.$appdata.getSingleValue('新抄表')}),
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>
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" for="startDate1">上报日期</label>
31
+ <datepicker id="startDate" placeholder="上报开始日期" style="width: 60%"
32
+ v-model="model.startDate1"
33
+ :value.sync="model.startDate1"
34
+ :disabled-days-of-Week="[]"
35
+ :format="'yyyy-MM-dd 00:00:00'"
36
+ :show-reset-button="reset">
37
+ </datepicker>
38
+ </div>
39
+ <div class="col-sm-3" >
40
+ <label class="font_normal_body" for="endDate1">上报日期</label>
41
+ <datepicker id="endDate" placeholder="上报结束日期" style="width: 60%"
42
+ v-model="model.endDate1"
43
+ :value.sync="model.endDate1"
44
+ :disabled-days-of-Week="[]"
45
+ :format="'yyyy-MM-dd 23:59:59'"
46
+ :show-reset-button="reset">
47
+ </datepicker>
48
+ </div>
49
+ <div class="col-sm-3">
50
+ <label class="font_normal_body">气表品牌</label>
51
+ <v-select :value.sync="model.gasbrand"
52
+ v-model='model.gasbrand'
53
+ :options='$parent.$parent.meterbrands'
54
+ :multiple = "true"
55
+ condition="f_meter_brand in {}"
56
+ placeholder='气表品牌'
57
+ close-on-select></v-select>
58
+ </div>
59
+ <res-select-group :style="'col-sm-3'" @re-res="$parent.$parent.getRes" :show-component="$parent.$parent.showComponent" v-ref:sel></res-select-group>
60
+ </div>
61
+ <div class="span" style = "float:right;">
62
+ <button class="button_search" @click="$parent.$parent.search()">查询</button>
63
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%'></report-print>
64
+ <report-excel id='gasprice'></report-excel>
65
+ </div>
66
+ </div>
67
+ </criteria>
68
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow: auto">
69
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path" >
70
+ <thead>
71
+ <tr>
72
+ <th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: left;">
73
+ <h3 style="text-align: center">物联网日用气报表</h3>
74
+ </th>
75
+ </tr>
76
+ <tr>
77
+ <th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
78
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
79
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
80
+ </th>
81
+ </tr>
82
+ <tr>
83
+ <th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
84
+ 打印时间:{{{$parent.printTime}}}
85
+ </th>
86
+ </tr>
87
+ <tr>
88
+ <th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
89
+ <div>
90
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
91
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
92
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
93
+ </div>
94
+ </th>
95
+ </tr>
96
+ </thead>
97
+ <tr>
98
+ <td colspan='{{$parent.spans}}' id="test">
99
+ {{{ model.data.substring(26,model.data.length-8) }}}
100
+ </td>
101
+ </tr>
102
+ <tfoot>
103
+ <tr style="text-align: left" >
104
+ <th colspan='1'>财务审核:</th>
105
+ <th colspan='1'>收款审核:</th>
106
+ <th colspan='1'>收款员:</th>
107
+ </tr>
108
+ </tfoot>
109
+ </table>
110
+ {{{ $parent.reportStr}}}
111
+ </div>
112
+ </criteria-paged>
113
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
114
+ <header slot="modal-header" class="modal-header">
115
+ <h4 class="modal-title">输入文件名称</h4>
116
+ </header>
117
+ <article slot="modal-body" class="modal-body">
118
+ <div class="form-group">
119
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
120
+ </div>
121
+ </article>
122
+ <footer slot="modal-footer" class="modal-footer">
123
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
124
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
125
+ </footer>
126
+ </modal>
127
+ </div>
128
+ </template>
129
+
130
+ <script>
131
+ import { DataModel } from 'vue-client'
132
+ import co from 'co'
133
+ let saveFile = function * (self) {
134
+ // 线验证文件是否重名
135
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
136
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
137
+ {resolveMsg: null, rejectMsg: null})
138
+ if (count.data.length > 0) {
139
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
140
+ return
141
+ }
142
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
143
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
144
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
145
+ f_outlets: this.$login.f.depname})
146
+ if (saveBack.data.status === 'succeed') {
147
+ self.show = false
148
+ self.filename = ''
149
+ // 后台保存完成,通知刷新
150
+ self.$dispatch('save-success', self.filename)
151
+ }
152
+ }
153
+ let readySomething = async function(self) {
154
+ await self.$LoadParams.loadParam(self.f_filialeid)
155
+ self.loadMeterBooks()
156
+ }
157
+ export default {
158
+ title: '日售气报表',
159
+ props: ['data'],
160
+ data () {
161
+
162
+ return {
163
+ printTime: this.$login.toStandardTimeString(),
164
+ depresid: [],
165
+ userresid: [],
166
+ f_orgid: this.$login.f.orgid,
167
+ f_depid: this.$login.f.depids,
168
+ f_operatorid: this.$login.f.id,
169
+ operatorid: [],
170
+ meterbrands:[{label: '全部',value: ''}],
171
+ depid: [],
172
+ orgname: '',
173
+ showComponent:['company','department','operator'],
174
+ depname: '',
175
+ operatorname: '',
176
+ orgCondtionStr: '1=1',
177
+ model: new DataModel('rs/report/mgetEveryDaySummary', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', startDate1: 'this.model.startDate1', endDate1: 'this.model.endDate1', f_orgid: 'this.model.f_orgid',newWebHand: !!this.$appdata.getSingleValue('新抄表')}),
178
+ reportStr: null,
179
+ show: false,
180
+ spans: ''
181
+ }
182
+
183
+ },
184
+ ready () {
185
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()+' 00:00:00'
186
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()+" 23:59:59"
187
+ readySomething(this)
188
+ // this.$refs.paged.$refs.criteria.search()
189
+ console.log(this.$login.f)
190
+ },
191
+ methods: {
192
+ loadMeterBooks(){
193
+ let meterbrand = this.$GetSaleParam.getGasbrand()
194
+ for(let row of meterbrand){
195
+ this.meterbrands.push({label: row.label,value: row.value.f_meter_brand})
196
+ }
197
+ },
198
+ search () {
199
+ this.$refs.paged.$refs.criteria.search()
200
+ },
201
+ selfSearch (args) {
202
+ this.printTime = this.$login.toStandardTimeString()
203
+ this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr + ' and ' + args.condition
204
+ this.$refs.paged.search(args)
205
+ },
206
+ getRes (obj) {
207
+ // console.log('getres', obj)
208
+ /* this.orgname = obj.res[0]
209
+ this.depresid = obj.resids
210
+ this.f_orgid = obj.resids*/
211
+ this.orgCondtionStr = '1=1 ' + obj
212
+ },
213
+ getdep (obj, val) {
214
+ // this.depname = val[0]
215
+ this.userresid = obj
216
+ this.f_depid = obj
217
+ },
218
+ getuser ( obj, val) {
219
+ this.operatorname = val[0]
220
+ this.f_operatorid = obj
221
+ },
222
+
223
+ // 根据文件路径获取储存的报表内容
224
+ getFileContent (path) {
225
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
226
+ this.reportStr = res.data.filecontent
227
+ this.model.state = '正确'
228
+ })
229
+ },
230
+ confirm () {
231
+ if (!this.filename || this.filename === '') {
232
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
233
+ }
234
+ let saveGen = saveFile(this)
235
+ co(saveGen)
236
+ },
237
+ close () {
238
+ this.show = false
239
+ },
240
+ // 将报表保存成文件
241
+ confirmReport () {
242
+ this.show = true
243
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
244
+ },
245
+ },
246
+ watch: {
247
+ 'data' (val) {
248
+ if (val.f_files_path) {
249
+ this.getFileContent(val.f_files_path)
250
+ } else {
251
+ this.reportStr = null
252
+ }
253
+ },
254
+ 'model.data' (val) {
255
+ let tab = document.getElementById('test').children[0]
256
+ // (4-3)*2+3
257
+ var tds = tab.getElementsByTagName('td')
258
+ var num = 0
259
+ for (let td of tds) {
260
+ let span = td.getAttribute('colspan')
261
+ num = num + ((span ? span : 1) - 0)
262
+ }
263
+ console.log("返回的数为"+num)
264
+ this.spans = num
265
+ }
266
+ },
267
+ computed: {
268
+
269
+ }
270
+ }
271
+ </script>
272
+ <style scoped>
273
+ .noborder{
274
+ border: none;
275
+ }
276
+ </style>