manage-client 4.1.56 → 4.1.58-lsrh

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.
@@ -21,7 +21,7 @@ var qtx = 'http://123.57.3.66:31467/'
21
21
  // var fuwu = 'http://203.57.101.233:9001'
22
22
  var bendi = 'http://123.57.3.66:31467/'
23
23
  // var bendi = 'http://119.187.112.234:8400/'
24
- var wode = 'http://192.168.50.67:31567/'
24
+ var wode = 'http://123.57.3.66:31467/'
25
25
  // 192.168.
26
26
  // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
27
27
  // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.56",
3
+ "version": "4.1.58-lsrh",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -234,9 +234,9 @@
234
234
  }
235
235
  },
236
236
  computed: {
237
- payment() {
237
+ payment () {
238
238
  return [...this.$appdata.getParam('付款方式查询')]
239
- },
239
+ }
240
240
  }
241
241
  }
242
242
  </script>
@@ -0,0 +1,226 @@
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
+ </div>
34
+ <div class="span" style = "float:right;">
35
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
36
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
37
+ <report-excel id='gasprice'></report-excel>
38
+ </div>
39
+ </div>
40
+ </criteria>
41
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
42
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
43
+ <thead>
44
+ <tr>
45
+ <th colspan='5' style="font-weight: normal; text-align: left;">
46
+ <h3 style="text-align: center">物联网用气汇总</h3>
47
+ </th>
48
+ </tr>
49
+ <tr>
50
+ <th colspan='5' style="font-weight: normal; text-align: center;">
51
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
52
+ 结束时间:{{ model.model.endDate }}
53
+ </th>
54
+ </tr>
55
+ <tr>
56
+ <th colspan='5' style="font-weight: normal; text-align: center;">
57
+ 打印时间:{{{$parent.printTime}}}
58
+ </th>
59
+ </tr>
60
+ <tr>
61
+ <th colspan='5' style="font-weight: normal; text-align: center;">
62
+ <div>
63
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
64
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
65
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
66
+ </div>
67
+ </th>
68
+ </tr>
69
+ </thead>
70
+ <tr>
71
+ <td colspan='5'>
72
+ {{{ model.data.substring(26,model.data.length-8) }}}
73
+ </td>
74
+ </tr>
75
+ <tfoot>
76
+ <tr style="text-align: left">
77
+ <th colspan='2'>财务审核:</th>
78
+ <th colspan='2'>收款审核:</th>
79
+ <th colspan='1'>收款员:</th>
80
+ </tr>
81
+ </tfoot>
82
+ </table>
83
+ {{{ $parent.reportStr}}}
84
+ </div>
85
+ </criteria-paged>
86
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
87
+ <header slot="modal-header" class="modal-header">
88
+ <h4 class="modal-title">输入文件名称</h4>
89
+ </header>
90
+ <article slot="modal-body" class="modal-body">
91
+ <div class="form-group">
92
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
93
+ </div>
94
+ </article>
95
+ <footer slot="modal-footer" class="modal-footer">
96
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
97
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
98
+ </footer>
99
+ </modal>
100
+ </div>
101
+ </template>
102
+
103
+ <script>
104
+ import { DataModel } from 'vue-client'
105
+ import co from 'co'
106
+ let saveFile = function * (self) {
107
+ // 线验证文件是否重名
108
+ let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
109
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
110
+ {resolveMsg: null, rejectMsg: null})
111
+ if (count.data.length > 0) {
112
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
113
+ return
114
+ }
115
+ let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
116
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
117
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
118
+ f_outlets: this.$login.f.depname})
119
+ if (saveBack.data.status === 'succeed') {
120
+ self.show = false
121
+ self.filename = ''
122
+ // 后台保存完成,通知刷新
123
+ self.$dispatch('save-success', self.filename)
124
+ }
125
+ }
126
+ export default {
127
+ title: '物联网用气汇总',
128
+ props: ['data'],
129
+ data () {
130
+ return {
131
+ printTime: this.$login.toStandardTimeString(),
132
+ depresid: [],
133
+ userresid: [],
134
+ f_orgid: this.$login.f.orgid,
135
+ f_depid: this.$login.f.depids,
136
+ f_operatorid: this.$login.f.id,
137
+ operatorid: [],
138
+ depid: [],
139
+ orgname: '',
140
+ depname: '',
141
+ operatorname: '',
142
+ f_inputtor:[],
143
+ f_user_type:'',
144
+ orgCondtionStr: '1=1',
145
+ model: new DataModel('api/af-revenue/report/gaswebmeterMoney', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
146
+ f_orgid: 'this.model.f_orgid'}),
147
+ reportStr: null,
148
+ show: false
149
+ }
150
+ },
151
+ ready () {
152
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
153
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
154
+ this.$refs.paged.$refs.criteria.search()
155
+ console.log(this.$login.f)
156
+ },
157
+ methods: {
158
+ searchData () {
159
+ this.$refs.paged.$refs.criteria.search()
160
+ },
161
+ selfSearch (args) {
162
+ let orgcondition = `f_orgid in ('${this.f_orgid}')`
163
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
164
+ this.$refs.paged.search(args)
165
+ },
166
+ getRes (obj) {
167
+ this.orgname = obj.res[0]
168
+ this.depresid = obj.resids
169
+ this.f_orgid = obj.resids
170
+ },
171
+ getdep (obj, val) {
172
+ // this.depname = val[0]
173
+ this.userresid = obj
174
+ this.f_depid = obj
175
+ },
176
+ getuser ( obj, val) {
177
+ this.operatorname = val[0]
178
+ this.f_operatorid = obj
179
+ },
180
+ // 根据文件路径获取储存的报表内容
181
+ getFileContent (path) {
182
+ this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
183
+ this.reportStr = res.data.filecontent
184
+ this.model.state = '正确'
185
+ })
186
+ },
187
+ confirm () {
188
+ if (!this.filename || this.filename === '') {
189
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
190
+ }
191
+ let saveGen = saveFile(this)
192
+ co(saveGen)
193
+ },
194
+ close () {
195
+ this.show = false
196
+ },
197
+ // 将报表保存成文件
198
+ confirmReport () {
199
+ this.show = true
200
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
201
+ },
202
+ },
203
+ watch: {
204
+ 'data' (val) {
205
+ if (val.f_files_path) {
206
+ this.getFileContent(val.f_files_path)
207
+ } else {
208
+ this.reportStr = null
209
+ }
210
+ }
211
+ },
212
+ computed: {
213
+ usertypes() {
214
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
215
+ },
216
+ inputtor() {
217
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
218
+ },
219
+ }
220
+ }
221
+ </script>
222
+ <style scoped>
223
+ .noborder{
224
+ border: none;
225
+ }
226
+ </style>
@@ -0,0 +1,186 @@
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'"
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'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body" title="参数:票据类型">票据类型</label>
29
+ <v-select :value.sync="model.f_bill_type" multiple
30
+ v-model="model.f_bill_type"
31
+ :options='$parent.$parent.billType' placeholder='请选择'
32
+ condition="f_bill_type in {}"
33
+ close-on-select></v-select>
34
+ </div>
35
+ <res-select-group :show-component="$parent.$parent.resshow"
36
+ :selectin="true" :initres="$parent.$parent.initres"
37
+ :cascade =true @re-res="$parent.$parent.getRes"
38
+ v-ref:sel>
39
+ </res-select-group>
40
+ </div>
41
+ <div class="span" style = "float:right;">
42
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
43
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></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-y: scroll">
49
+ <table class='tableprint' style="margin: 0px auto">
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;<br/>
60
+ <!--收费员:{{// $parent.operatorname}}-->
61
+ </th>
62
+ </tr>
63
+ <tr >
64
+ <th v-if="false" :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
65
+ <div>
66
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
67
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
68
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
69
+ </div>
70
+ </th>
71
+ </tr>
72
+ </thead>
73
+ <tr>
74
+ <td :colspan='$parent.spans' class="noborder">
75
+ {{{ model.data.substring(26,model.data.length-8) }}}
76
+ </td>
77
+ </tr>
78
+ <tfoot>
79
+ <!-- <tr style="text-align: left">-->
80
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>-->
81
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>-->
82
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>-->
83
+ <!-- </tr>-->
84
+ </tfoot>
85
+ </table>
86
+ {{{ $parent.reportStr}}}
87
+ </div>
88
+ </criteria-paged>
89
+ </div>
90
+ </template>
91
+
92
+ <script>
93
+ import { DataModel } from 'vue-client'
94
+ import co from 'co'
95
+ export default {
96
+ title: '操作员结账报表',
97
+ props: ['data'],
98
+ data () {
99
+ return {
100
+ printTime: this.$login.toStandardTimeString(),
101
+ depresid: [],
102
+ userresid: [],
103
+ f_orgid: this.$login.f.orgid,
104
+ f_depid: this.$login.f.depids,
105
+ // f_operatorid: this.$login.f.id,
106
+ operatorid: [],
107
+ depid: [],
108
+ orgname: '',
109
+ depname: '',
110
+ criteriaShow: false,
111
+ operatorname: '',
112
+ orgCondtionStr: '1=1',
113
+ f_user_type: '',
114
+ f_state: ['有效'],
115
+ model: new DataModel('api/af-revenue/report/hy_get_summary', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
116
+ f_orgid: 'this.model.f_orgid'}),
117
+ reportStr: null,
118
+ resshow: ['company', 'department', 'operator'],
119
+ spans: 0,
120
+ initres: {
121
+ org: [this.$login.f.orgid],
122
+ dep: [],
123
+ user: []
124
+ }
125
+ }
126
+ },
127
+ ready () {
128
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()
129
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()
130
+ },
131
+ methods: {
132
+ searchData () {
133
+ this.$refs.paged.$refs.criteria.search()
134
+ },
135
+ selfSearch (args) {
136
+ this.printTime = this.$login.toStandardTimeString()
137
+ let orgcondition = '1=1'
138
+ let orgstr = this.orgCondtionStr
139
+ orgcondition = orgcondition + orgstr
140
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
141
+ this.$refs.paged.search(args)
142
+ },
143
+
144
+ hidden () {
145
+ this.criteriaShow = !this.criteriaShow
146
+ },
147
+ getRes (condition, obj) {
148
+ this.orgCondtionStr = condition
149
+ this.orgname = obj.orgnames[0]
150
+ this.depname = obj.depnames[0]
151
+ this.operatorname = obj.operatornames[0]
152
+ },
153
+ getdep (obj, val) {
154
+ this.depname = val[0]
155
+ this.userresid = obj
156
+ this.f_depid = obj
157
+ },
158
+ getuser ( obj, val) {
159
+ this.operatorname = val[0]
160
+ this.f_operatorid = obj
161
+ }
162
+ },
163
+ watch: {
164
+ 'model.data' (val) {
165
+ let len=0
166
+ let a=val.split('</tr>')
167
+ for(let i=0;i<a.length;i++){
168
+ if(a[i].split('</td>').length-1>len){
169
+ len=a[i].split('</td>').length-1
170
+ }
171
+ }
172
+ this.spans = len
173
+ }
174
+ },
175
+ computed: {
176
+ billType () {
177
+ return [...this.$appdata.getParam('票据类型')]
178
+ }
179
+ }
180
+ }
181
+ </script>
182
+ <style scoped>
183
+ .noborder{
184
+ border: none;
185
+ }
186
+ </style>
@@ -0,0 +1,186 @@
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'"
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'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body" title="参数:核算区域">核算区域</label>
29
+ <v-select :value.sync="model.f_accounting_area" multiple
30
+ v-model="model.f_accounting_area"
31
+ :options='$parent.$parent.Accounting' placeholder='请选择'
32
+ condition="f_accounting_area in {}"
33
+ close-on-select></v-select>
34
+ </div>
35
+ <res-select-group :show-component="$parent.$parent.resshow"
36
+ :selectin="true" :initres="$parent.$parent.initres"
37
+ :cascade =true @re-res="$parent.$parent.getRes"
38
+ v-ref:sel>
39
+ </res-select-group>
40
+ </div>
41
+ <div class="span" style = "float:right;">
42
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
43
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></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-y: scroll">
49
+ <table class='tableprint' style="margin: 0px auto">
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;<br/>
60
+ <!--收费员:{{// $parent.operatorname}}-->
61
+ </th>
62
+ </tr>
63
+ <tr >
64
+ <th v-if="false" :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
65
+ <div>
66
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
67
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
68
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
69
+ </div>
70
+ </th>
71
+ </tr>
72
+ </thead>
73
+ <tr>
74
+ <td :colspan='$parent.spans' class="noborder">
75
+ {{{ model.data.substring(26,model.data.length-8) }}}
76
+ </td>
77
+ </tr>
78
+ <tfoot>
79
+ <!-- <tr style="text-align: left">-->
80
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>-->
81
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>-->
82
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>-->
83
+ <!-- </tr>-->
84
+ </tfoot>
85
+ </table>
86
+ {{{ $parent.reportStr}}}
87
+ </div>
88
+ </criteria-paged>
89
+ </div>
90
+ </template>
91
+
92
+ <script>
93
+ import { DataModel } from 'vue-client'
94
+ import co from 'co'
95
+ export default {
96
+ title: '抄表情况统计表',
97
+ props: ['data'],
98
+ data () {
99
+ return {
100
+ printTime: this.$login.toStandardTimeString(),
101
+ depresid: [],
102
+ userresid: [],
103
+ f_orgid: this.$login.f.orgid,
104
+ f_depid: this.$login.f.depids,
105
+ // f_operatorid: this.$login.f.id,
106
+ operatorid: [],
107
+ depid: [],
108
+ orgname: '',
109
+ depname: '',
110
+ criteriaShow: false,
111
+ operatorname: '',
112
+ orgCondtionStr: '1=1',
113
+ f_user_type: '',
114
+ f_state: ['有效'],
115
+ model: new DataModel('api/af-revenue/report/hy_meter_bill', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
116
+ f_orgid: 'this.model.f_orgid'}),
117
+ reportStr: null,
118
+ resshow: ['company', 'department', 'operator'],
119
+ spans: 0,
120
+ initres: {
121
+ org: [this.$login.f.orgid],
122
+ dep: [],
123
+ user: []
124
+ }
125
+ }
126
+ },
127
+ ready () {
128
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()
129
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()
130
+ },
131
+ methods: {
132
+ searchData () {
133
+ this.$refs.paged.$refs.criteria.search()
134
+ },
135
+ selfSearch (args) {
136
+ this.printTime = this.$login.toStandardTimeString()
137
+ let orgcondition = '1=1'
138
+ let orgstr = this.orgCondtionStr
139
+ orgcondition = orgcondition + orgstr
140
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
141
+ this.$refs.paged.search(args)
142
+ },
143
+
144
+ hidden () {
145
+ this.criteriaShow = !this.criteriaShow
146
+ },
147
+ getRes (condition, obj) {
148
+ this.orgCondtionStr = condition
149
+ this.orgname = obj.orgnames[0]
150
+ this.depname = obj.depnames[0]
151
+ this.operatorname = obj.operatornames[0]
152
+ },
153
+ getdep (obj, val) {
154
+ this.depname = val[0]
155
+ this.userresid = obj
156
+ this.f_depid = obj
157
+ },
158
+ getuser ( obj, val) {
159
+ this.operatorname = val[0]
160
+ this.f_operatorid = obj
161
+ }
162
+ },
163
+ watch: {
164
+ 'model.data' (val) {
165
+ let len=0
166
+ let a=val.split('</tr>')
167
+ for(let i=0;i<a.length;i++){
168
+ if(a[i].split('</td>').length-1>len){
169
+ len=a[i].split('</td>').length-1
170
+ }
171
+ }
172
+ this.spans = len
173
+ }
174
+ },
175
+ computed: {
176
+ Accounting () {
177
+ return [...this.$appdata.getParam('核算区域')]
178
+ }
179
+ }
180
+ }
181
+ </script>
182
+ <style scoped>
183
+ .noborder{
184
+ border: none;
185
+ }
186
+ </style>