manage-client 3.2.108 → 3.2.109-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.108",
3
+ "version": "3.2.109-1",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,224 +1,221 @@
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_state" multiple
64
- v-model="$parent.$parent.f_state"
65
- :options='$parent.$parent.charge_state' placeholder='请选择'
66
- condition="f_state in {}"
67
- close-on-select></v-select>
68
- </div>
69
- </div>
70
- </div>
71
- </criteria>
72
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
73
- <table class='tableprint' style="margin: 0px auto">
74
- <thead>
75
- <tr>
76
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
77
- <h3 style="text-align: center">收费结账报表</h3>
78
- </th>
79
- </tr>
80
- <tr>
81
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
82
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
83
- 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
84
- <!--打印时间:{{{$parent.printTime}}}-->
85
- 打印时间:{{$parent.printTime}}
86
- <!--收费员:{{// $parent.operatorname}}-->
87
- </th>
88
- </tr>
89
- <tr>
90
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
91
- <div>
92
- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
93
- <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
94
- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$refs.criteria.$refs.res.obj.operatornames[0]">人员:{{$parent.operatorname}}</span>
95
- </div>
96
- </th>
97
- </tr>
98
- </thead>
99
- <tr>
100
- <td :colspan='$parent.spans' class="noborder">
101
- {{{ model.data.substring(26,model.data.length-8) }}}
102
- </td>
103
- </tr>
104
- <tfoot>
105
- <tr style="text-align: left">
106
- <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
107
- <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
108
- <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
109
- </tr>
110
- </tfoot>
111
- </table>
112
- {{{ $parent.reportStr}}}
113
- </div>
114
- </criteria-paged>
115
- </div>
116
- </template>
117
-
118
- <script>
119
- import { DataModel } from 'vue-client'
120
- import co from 'co'
121
-
122
- export default {
123
- title: '收费结账报表',
124
- props: ['data'],
125
- data () {
126
- return {
127
- printTime: this.$login.toStandardTimeString(),
128
- depresid: [],
129
- userresid: [],
130
- f_orgid: this.$login.f.orgid,
131
- f_depid: this.$login.f.depids,
132
- f_operatorid: this.$login.f.id,
133
- operatorid: [],
134
- depid: [],
135
- orgname: '',
136
- depname: '',
137
- criteriaShow: false,
138
- operatorname: '',
139
- orgCondtionStr: '1=1',
140
- f_state:['有效'],
141
- model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
142
- f_orgid: 'this.model.f_orgid'}),
143
- reportStr: null,
144
- resshow:['company','department','operator'],
145
- spans: 0,
146
- initres: {
147
- org: [this.$login.f.orgid],
148
- dep: [],
149
- user: []
150
- }
151
- }
152
- },
153
- ready () {
154
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
155
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
156
- console.log(this.$login.f)
157
- },
158
- methods: {
159
- searchData () {
160
- this.$refs.paged.$refs.criteria.search()
161
- },
162
- selfSearch (args) {
163
- this.printTime = this.$login.toStandardTimeString()
164
- let orgcondition = '1=1'
165
- let orgstr = this.orgCondtionStr
166
- orgcondition = orgcondition + orgstr
167
- /* if (this.f_orgid && this.f_orgid[0]) {
168
- orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
169
- }
170
- if (this.f_depid && this.f_depid[0]) {
171
- orgcondition += ' and f_depid in (' + this.f_depid + ')'
172
- }
173
- if(this.f_operatorid && this.f_operatorid[0]) {
174
- orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
175
- }*/
176
- if(this.f_state && this.f_state[0]) {
177
- orgcondition += ` and f_state in('${this.f_state.toString().replace(/,/g,"','")}')`
178
- }
179
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
180
- this.$refs.paged.search(args)
181
- },
182
-
183
- hidden() {
184
- this.criteriaShow = !this.criteriaShow
185
- },
186
- getRes (condition, obj) {
187
- this.orgCondtionStr = condition
188
- this.orgname = obj.orgnames[0]
189
- this.depname = obj.depnames[0]
190
- },
191
- getdep (obj, val) {
192
- this.depname = val[0]
193
- this.userresid = obj
194
- this.f_depid = obj
195
- },
196
- getuser ( obj, val) {
197
- this.operatorname = val[0]
198
- this.f_operatorid = obj
199
- }
200
- },
201
- watch: {
202
- 'model.data' (val) {
203
- let len=0
204
- let a=val.split('</tr>')
205
- for(let i=0;i<a.length;i++){
206
- if(a[i].split('</td>').length-1>len){
207
- len=a[i].split('</td>').length-1
208
- }
209
- }
210
- this.spans = len
211
- }
212
- },
213
- computed: {
214
- charge_state() {
215
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
216
- }
217
- }
218
- }
219
- </script>
220
- <style scoped>
221
- .noborder{
222
- border: none;
223
- }
224
- </style>
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_state" multiple
64
+ v-model="$parent.$parent.f_state"
65
+ :options='$parent.$parent.charge_state' placeholder='请选择'
66
+ condition="f_state in {}"
67
+ close-on-select></v-select>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </criteria>
72
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
73
+ <table class='tableprint' style="margin: 0px auto">
74
+ <thead>
75
+ <tr>
76
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
77
+ <h3 style="text-align: center">收费结账报表</h3>
78
+ </th>
79
+ </tr>
80
+ <tr>
81
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
82
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
83
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
84
+ <!--打印时间:{{{$parent.printTime}}}-->
85
+ 打印时间:{{$parent.printTime}}
86
+ <!--收费员:{{// $parent.operatorname}}-->
87
+ </th>
88
+ </tr>
89
+ <tr>
90
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
91
+ <div>
92
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
93
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
94
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$refs.criteria.$refs.res.obj.operatornames[0]">人员:{{$parent.operatorname}}</span>
95
+ </div>
96
+ </th>
97
+ </tr>
98
+ </thead>
99
+ <tr>
100
+ <td :colspan='$parent.spans' class="noborder">
101
+ {{{ model.data.substring(26,model.data.length-8) }}}
102
+ </td>
103
+ </tr>
104
+ <tfoot>
105
+ <tr style="text-align: left">
106
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
107
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
108
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
109
+ </tr>
110
+ </tfoot>
111
+ </table>
112
+ {{{ $parent.reportStr}}}
113
+ </div>
114
+ </criteria-paged>
115
+ </div>
116
+ </template>
117
+
118
+ <script>
119
+ import { DataModel } from 'vue-client'
120
+ import co from 'co'
121
+
122
+ export default {
123
+ title: '收费结账报表',
124
+ props: ['data'],
125
+ data () {
126
+ return {
127
+ printTime: this.$login.toStandardTimeString(),
128
+ depresid: [],
129
+ userresid: [],
130
+ f_orgid: this.$login.f.orgid,
131
+ f_depid: this.$login.f.depids,
132
+ f_operatorid: this.$login.f.id,
133
+ operatorid: [],
134
+ depid: [],
135
+ orgname: '',
136
+ depname: '',
137
+ criteriaShow: false,
138
+ operatorname: '',
139
+ orgCondtionStr: '1=1',
140
+ f_state:['有效'],
141
+ model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
142
+ f_orgid: 'this.model.f_orgid'}),
143
+ reportStr: null,
144
+ resshow:['company','department','operator'],
145
+ spans: 0,
146
+ initres: {
147
+ org: [this.$login.f.orgid],
148
+ dep: [],
149
+ user: []
150
+ }
151
+ }
152
+ },
153
+ ready () {
154
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
155
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
156
+ console.log(this.$login.f)
157
+ },
158
+ methods: {
159
+ searchData () {
160
+ this.$refs.paged.$refs.criteria.search()
161
+ },
162
+ selfSearch (args) {
163
+ this.printTime = this.$login.toStandardTimeString()
164
+ let orgcondition = '1=1'
165
+ let orgstr = this.orgCondtionStr
166
+ orgcondition = orgcondition + orgstr
167
+ /* if (this.f_orgid && this.f_orgid[0]) {
168
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
169
+ }
170
+ if (this.f_depid && this.f_depid[0]) {
171
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
172
+ }
173
+ if(this.f_operatorid && this.f_operatorid[0]) {
174
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
175
+ }*/
176
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
177
+ this.$refs.paged.search(args)
178
+ },
179
+
180
+ hidden() {
181
+ this.criteriaShow = !this.criteriaShow
182
+ },
183
+ getRes (condition, obj) {
184
+ this.orgCondtionStr = condition
185
+ this.orgname = obj.orgnames[0]
186
+ this.depname = obj.depnames[0]
187
+ },
188
+ getdep (obj, val) {
189
+ this.depname = val[0]
190
+ this.userresid = obj
191
+ this.f_depid = obj
192
+ },
193
+ getuser ( obj, val) {
194
+ this.operatorname = val[0]
195
+ this.f_operatorid = obj
196
+ }
197
+ },
198
+ watch: {
199
+ 'model.data' (val) {
200
+ let len=0
201
+ let a=val.split('</tr>')
202
+ for(let i=0;i<a.length;i++){
203
+ if(a[i].split('</td>').length-1>len){
204
+ len=a[i].split('</td>').length-1
205
+ }
206
+ }
207
+ this.spans = len
208
+ }
209
+ },
210
+ computed: {
211
+ charge_state() {
212
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
213
+ }
214
+ }
215
+ }
216
+ </script>
217
+ <style scoped>
218
+ .noborder{
219
+ border: none;
220
+ }
221
+ </style>
@@ -84,7 +84,7 @@
84
84
 
85
85
  <script>
86
86
  import {HttpResetClass} from "vue-client";
87
- import dataManage from 'src/components/daping/json/dataManage.json'
87
+ import dataManage from './json/dataManage.json'
88
88
  export default {
89
89
  title: '收费',
90
90
  data() {
@@ -84,7 +84,7 @@
84
84
 
85
85
  <script>
86
86
  import {HttpResetClass} from 'vue-client'
87
- import dataManage from 'src/components/daping/json/dataManage.json'
87
+ import dataManage from './json/dataManage.json'
88
88
  export default {
89
89
  title: '数据展示',
90
90
  data() {
@@ -5,7 +5,7 @@
5
5
 
6
6
  <script>
7
7
  import {HttpResetClass} from "vue-client";
8
- import dataManage from 'src/components/daping/json/dataManage.json'
8
+ import dataManage from './json/dataManage.json'
9
9
  export default {
10
10
  title: '收费',
11
11
  data() {
@@ -266,9 +266,6 @@
266
266
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
267
267
  卡费合计:&emsp;{{sumsmodel.f_cardfees}}
268
268
  </td>
269
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
270
- 户数合计:&emsp;{{sumsmodel.hushu}}
271
- </td>
272
269
  </tr>
273
270
  </table>
274
271
  </div>
@@ -312,7 +309,7 @@
312
309
  data: {},
313
310
  other:[],
314
311
  footer:[],
315
- model: new PagedList('rs/sql/fillCardQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_cardfees: 0,hushu:0}),
312
+ model: new PagedList('rs/sql/fillCardQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_cardfees: 0}),
316
313
  criteriaShow: false,
317
314
  headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补卡类型", "表编号", "卡号", "气表品牌", "气表状态", "卡费", "补卡日期", "人员", "部门", "公司"],
318
315
  bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", " f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_cardfees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
@@ -396,7 +393,6 @@
396
393
  args.condition = `${args.condition}` + this.orgCondtionStr
397
394
  await this.model.search(args.condition, args.model)
398
395
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
399
- this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
400
396
  },
401
397
 
402
398
  initParams() {
@@ -227,7 +227,7 @@ export default{
227
227
  'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_address': '客户地址',
228
228
  'f_type': '换表类型', 'f_changemeter_fee': '换表费', 'f_meternumber_old': '旧表号', 'f_meternumber': '新表号',
229
229
  'f_meter_brand_old': '旧气表品牌', 'f_meter_brand': '新气表品牌', 'f_remanent_gas': '补气量', 'f_remanent_money': '补气金额',
230
- 'f_comments': '备注', 'f_change_operator': '换表人', 'f_state': '状态', 'f_install_date': '换表日期', 'f_operate_date': '操作日期', 'f_payment': '付款方式', 'f_othereason': '换表原因',
230
+ 'f_comments': '备注', 'f_change_operator': '换表人', 'f_state': '状态', 'f_operate_date': '操作日期', 'f_payment': '付款方式', 'f_othereason': '换表原因',
231
231
  'f_operator': '人员', 'f_depname': '部门', 'f_orgname': '公司'
232
232
  },
233
233
  changemeterprintConfig: {
@@ -283,9 +283,10 @@ export default{
283
283
  'f_month7': '七月','f_month8': '八月', 'f_month9': '九月', 'f_month10': '十月', 'f_month11': '十一月', 'f_month12': '十二月'
284
284
  },
285
285
  gaslossConfig: {
286
- 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_charge_person': '缴费人', 'f_charge_phone': '缴费人电话',
287
- 'f_charge_address': '缴费人地址', 'f_collection': '缴费金额', 'f_payment': '付款方式', 'f_bill_style': '打印格式',
288
- 'f_serial_id': '流水号', 'f_pay_id': '支付单号', 'detail': '详细信息', 'f_charge_date': '缴费日期',
286
+ 'f_userinfo_code': '客户编号', 'f_charge_person': '缴费人', 'f_charge_phone': '缴费人电话', 'f_charge_address': '缴费人地址',
287
+ 'f_type': '气损分类', 'f_loss_type': '气损类型', 'f_number': '数量', 'f_unitprice': '单价', 'f_collection': '缴费金额',
288
+ 'f_payment': '付款方式', 'f_charge_date': '缴费日期', 'f_bill_style': '打印格式',
289
+ 'f_serial_id': '流水号', 'f_pay_id': '支付单号',
289
290
  'f_depname': '部门', 'f_operator': '操作员'
290
291
  },
291
292
  balanceConfig: {
@@ -0,0 +1,632 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+
11
+ <div class="col-sm-2 form-group">
12
+ <label for="startDate" class="font_normal_body">操作日期</label>
13
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
14
+ v-model="model.startDate"
15
+ :value.sync="model.startDate"
16
+ :format="'yyyy-MM-dd HH:mm:ss'"
17
+ :show-reset-button="true"
18
+ condition="f_charge_date >= '{}'">
19
+ </datepicker>
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
23
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
24
+ v-model="model.endDate"
25
+ :value.sync="model.endDate"
26
+ :format="'yyyy-MM-dd HH:mm:ss'"
27
+ :show-reset-button="true"
28
+ condition="f_charge_date <= '{}'">
29
+ </datepicker>
30
+ </div>
31
+
32
+ <div class="col-sm-2 form-group">
33
+ <label class="font_normal_body">客户编号</label>
34
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
35
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
36
+ </div>
37
+ <div class="col-sm-2 form-group">
38
+ <label class="font_normal_body">缴&nbsp;费&nbsp;人&nbsp;</label>
39
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_charge_person"
40
+ condition="f_charge_person like '%{}%'" placeholder="缴费人">
41
+ </div>
42
+ <div class="span" style="float:right;">
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
+
46
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
+ sqlurl="rs/logic/exportfile" sql-name="gaslossQuery" template-name='气损收费导出'
49
+ :choose-col="true"></export-excel>
50
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
+ :defaultfield="$parent.$parent.defaultfield" print-name="气损收费打印"
52
+ titletable="气损收费打印"
53
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
+
55
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
56
+ </div>
57
+ </div>
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <res-select-group :show-component="['company','operator']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body" title="参数:气损分类">气损分类</label>
62
+ <v-select :value.sync="model.f_type" multiple
63
+ v-model="model.f_type"
64
+ :options='$parent.$parent.gaslosstypes' placeholder='请选择'
65
+ condition="f_type in {}"
66
+ close-on-select></v-select>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body" title="参数:气损类型">气损类型</label>
70
+ <v-select :value.sync="model.f_loss_type" multiple
71
+ v-model="model.f_loss_type"
72
+ :options='model.f_type?this.$appdata.getParam(model.f_type):[]'
73
+ placeholder='请选择'
74
+ condition="f_loss_type in {}"
75
+ close-on-select></v-select>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
79
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_charge_address"
80
+ condition="f_charge_address like '%{}%'" placeholder="缴费人地址">
81
+ </div>
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
84
+ <v-select :value.sync="model.f_payment" multiple
85
+ v-model="model.f_payment"
86
+ :options='$parent.$parent.payment' placeholder='请选择'
87
+ condition="f_payment in {}"
88
+ close-on-select></v-select>
89
+ </div>
90
+
91
+ </div>
92
+ </div>
93
+ </criteria>
94
+
95
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
96
+ <template partial='head'>
97
+ <tr>
98
+ <th>
99
+ <!--<nobr>客户编号</nobr>-->
100
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
101
+ </th>
102
+ <th>
103
+ <nobr>缴费人</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>联系方式</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>缴费人地址</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>气损分类</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>气损类型</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>数量</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>单价</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>金额</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>付款方式</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>打印格式</nobr>
131
+ </th>
132
+ <th>
133
+ <nobr>流水号</nobr>
134
+ </th>
135
+ <th>
136
+ <nobr>支付单号</nobr>
137
+ </th>
138
+ <th>
139
+ <nobr>详情</nobr>
140
+ </th>
141
+ <th>
142
+ <!--<nobr>缴费日期</nobr>-->
143
+ <data-order field="f_charge_date" name="缴费日期" :order.sync="$parent.$parent.$parent.orderFields.f_charge_date"></data-order>
144
+ </th>
145
+
146
+ <th>
147
+ <nobr>操作人</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>部门</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>公司</nobr>
154
+ </th>
155
+ <!-- <th><nobr>附件</nobr></th>-->
156
+ </tr>
157
+ </template>
158
+ <template partial='body'>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_userinfo_code}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.f_charge_person}}</nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr>{{row.f_charge_phone}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.f_charge_address}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.f_type}}</nobr>
173
+ </td>
174
+ <td style="text-align: center;">
175
+ <nobr>{{row.f_loss_type}}</nobr>
176
+ </td>
177
+ <td style="text-align: center;">
178
+ <nobr>{{row.f_number}}</nobr>
179
+ </td>
180
+ <td style="text-align: center;">
181
+ <nobr>{{row.f_unitprice}}</nobr>
182
+ </td>
183
+ <td style="text-align: center;">
184
+ <nobr>{{row.f_collection}}</nobr>
185
+ </td>
186
+
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_payment}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_bill_style}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_serial_id}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_pay_id}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.detail}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_charge_date}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_operator}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_depname}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_orgname}}</nobr>
213
+ </td>
214
+ <!-- <td style="text-align: center;"><nobr>-->
215
+ <!-- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>-->
216
+ <!-- </nobr></td>-->
217
+ </template>
218
+ <template partial='foot'></template>
219
+ </data-grid>
220
+ </criteria-paged>
221
+
222
+ <table class="table-hover">
223
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
224
+ <td
225
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
226
+ 汇总信息
227
+ </td>
228
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
229
+ 金额合计:&emsp;{{sumsmodel.f_collection}}
230
+ </td>
231
+
232
+ </tr>
233
+ </table>
234
+ </div>
235
+ </div>
236
+ <div class="flex" v-if="show">
237
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
238
+ </div>
239
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
240
+ <article slot="modal-body">
241
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="气损收费" :isremark="false" style="width:auto" ></upload>
242
+ </article>
243
+ <footer slot="modal-footer" class="modal-footer">
244
+ </footer>
245
+ </modal>
246
+
247
+
248
+ <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >
249
+ <header slot="modal-header" class="modal-header">
250
+ 反盘导入
251
+ </header>
252
+ <article slot="modal-body" class="modal-body">
253
+ <div class="progress" style="margin: 20px" >
254
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
255
+ {{percent}}%
256
+ </div>
257
+ </div>
258
+ </article>
259
+ <footer slot="modal-footer" class="modal-footer">
260
+ <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
261
+ </footer>
262
+ </modal>
263
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
264
+ </div>
265
+ </template>
266
+
267
+ <script>
268
+ import {PagedList, HttpResetClass} from 'vue-client'
269
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
270
+ import exportConfig from '../../components/sale/config/exportConfig'
271
+ import axios from 'axios'
272
+
273
+ let readySomething = async function (self) {
274
+
275
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
276
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
277
+ await self.$getConfig(self, 'GasLossQuery')
278
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
279
+ console.log('开始查询')
280
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
281
+ }
282
+ export default {
283
+ props:['data'],
284
+ title: '气损收费查询',
285
+ data() {
286
+ return {
287
+ iswork:false,
288
+ other:[],
289
+ footer:[],
290
+ data: {},
291
+ model: new PagedList('rs/sql/gaslossQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}, {
292
+ f_collection: 0
293
+ }),
294
+ initres: {
295
+ org:[this.$login.f.orgid],
296
+ dep:[],
297
+ user:[],
298
+ },
299
+ show:false,
300
+ rowdata:{},
301
+ criteriaShow: false,
302
+
303
+ orgCondtionStr: '',
304
+ modelval: [],
305
+
306
+ inputtouPerson: [],
307
+ meterbrands: [],
308
+ printshow: false,
309
+ f_filialeid: this.$login.f.f_orgid,
310
+ all: false,
311
+ fields: {},
312
+ //排序
313
+ orderitem:'f_userinfo_code desc',
314
+ orderFields: {
315
+ f_userinfo_code: 'no'
316
+ },
317
+ thead: '',
318
+ tfoot: '',
319
+ showupload:false,
320
+ selected:{},
321
+
322
+ // 下拉框
323
+
324
+ //合计数据
325
+ sumsmodel: {},
326
+ defaultfield: [],
327
+ config: {
328
+ defaultPrint: ['f_userinfo_code', 'f_charge_person', 'f_charge_phone', 'f_charge_address', 'f_collection']
329
+ },
330
+ prices: [],
331
+ meterbooks:[{label: '全部',value: ''}], //抄表册
332
+ tempfalg :false,
333
+ lastorgstr:'',
334
+ allorgid:[],
335
+ inputtores:[{label: '全部',value: ''}], //抄表员
336
+ //表册片区
337
+ bookSlice:[{label: '全部',value: ''}],
338
+ imgshow:false,
339
+ imgfilename:'',
340
+ percent:0,
341
+ progressShow:false,
342
+ uuida:'',
343
+ timer:'',
344
+ }
345
+ },
346
+ ready() {
347
+ readySomething(this).then(() => {
348
+ this.$emit('ready')
349
+ }).catch((error) => {
350
+ this.$emit('error', error)
351
+ })
352
+ },
353
+ methods: {
354
+ getuuid(){
355
+ let uuidA = '';
356
+ var s = [];
357
+ var hexDigits = '0123456789abcdef';
358
+ for (var i = 0; i < 36; i++) {
359
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
360
+ }
361
+ s[14] = '4';
362
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
363
+ s[8] = s[13] = s[18] = s[23] = '-';
364
+ uuidA = s.join('');
365
+ this.uuida = uuidA;
366
+ },
367
+ progressclose(){
368
+ this.progressShow = false;
369
+ if(this.timer != null){
370
+ clearInterval(this.timer);
371
+ }
372
+ },
373
+
374
+ view(row){
375
+ this.showupload = true
376
+ this.selected= row
377
+ },
378
+ imgclose(){
379
+ this.imgshow = false
380
+ },
381
+ imgShow(val){
382
+ this.imgfilename = `rs/image/file/`+val
383
+ this.imgshow = true
384
+ },
385
+ getotherfooter(){
386
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
387
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
388
+ this.other=[];
389
+ this.footer=[];
390
+ let exportdata = this.getCondition;
391
+ let otherInData=[];
392
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
393
+ let footerData=[],exportfield=this.getfield;
394
+ footerData.push("合计");
395
+ let self = this;
396
+ for(var field in self.sumsmodel){
397
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
398
+ }
399
+ this.footer.push(footerData);
400
+ this.other.push(otherInData);
401
+ },
402
+
403
+ Fileinput(){
404
+ this.batchmoneyShow=true;
405
+ },
406
+ search(){
407
+ this.$refs.paged.$refs.cri.search()
408
+ },
409
+ cancel() {
410
+ this.show = false
411
+ },
412
+ selfSearch(args) {
413
+ if (this.data) {
414
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
415
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
416
+ }
417
+ args.condition = `${args.condition} ` + this.orgCondtionStr
418
+ this.model.search(args.condition, args.model)
419
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
420
+ },
421
+ clear() {
422
+ //清空部门和人员
423
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
424
+ //部门和人员变为全选
425
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
426
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
427
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
428
+ this.$refs.paged.$refs.cri.model[key] = []
429
+ })
430
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
431
+ },
432
+ show() {
433
+ this.criteriaShow = true
434
+ },
435
+ hidden() {
436
+ this.criteriaShow = !this.criteriaShow
437
+ },
438
+ async getRes(condition,obj) {
439
+ this.orgCondtionStr = condition
440
+
441
+ },
442
+ stamp() {
443
+ this.all = false
444
+ //默认选择要打印的列
445
+ this.modelval = defaultPrint.config
446
+ this.fields = this.getfield
447
+ this.printshow = true
448
+ this.put()
449
+ },
450
+ put() {
451
+ // 对Modelval进行排序
452
+ this.sortModelval()
453
+ this.thead = `<tr><th colspan=${this.modelval.length}>气损收费统计报表</th></tr><tr>`
454
+ for (let key of this.modelval) {
455
+ this.thead += '<th>' + this.fields[key] + '</th>'
456
+ }
457
+ this.thead += '</tr>'
458
+ },
459
+ print() {
460
+ this.$refs.print.PrintAsFile()
461
+ this.printshow = false
462
+ },
463
+ dealmsg(val) {
464
+ this.rowdata=val
465
+ this.show=true
466
+ val.model = this.model.model
467
+ this.$dispatch('deal-msg', val)
468
+ },
469
+ close() {
470
+ this.printshow = false
471
+ this.all = false
472
+ },
473
+
474
+
475
+ // 对选择的列进行排序
476
+ sortModelval() {
477
+ let sortModel = []
478
+ Object.keys(this.fields).forEach((key) => {
479
+ if (this.modelval.includes(key)) {
480
+ sortModel.push(key)
481
+ }
482
+ })
483
+ this.modelval = sortModel
484
+ },
485
+ sort (field, rule) {
486
+ // 将所有排序方式设为不排序,实现相互排斥
487
+ for (let key in this.orderFields) {
488
+ if (key === field) {
489
+ this.orderFields[key] = rule
490
+ } else {
491
+ this.orderFields[key] = 'no'
492
+ }
493
+ }
494
+ // 如果新规则不排序,还原为默认排序
495
+ if (rule === 'no') {
496
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
497
+ } else {
498
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
499
+ }
500
+
501
+ this.search()
502
+ }
503
+ },
504
+ watch: {
505
+ 'model.rows'(val) {
506
+ if(val.length === 0){
507
+ this.sumsmodel = {}
508
+ }
509
+ },
510
+ async 'orgCondtionStr'(val) {
511
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
512
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
513
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
514
+ this.meterbooks = [{label: '全部',value: ''}];
515
+ if(this.lastorgstr != val){
516
+ this.tempfalg = true;
517
+ this.lastorgstr = val;
518
+ }
519
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
520
+ this.tempfalg = false;
521
+ let a = val.substring(val.indexOf("(")+2)
522
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
523
+ }
524
+ let res = val.match(/'(.*?)'/)
525
+ console.log('正则提取:',res && res[1])
526
+ if (res) {
527
+ this.f_filialeid = res[1]
528
+ if(res.input !=null){
529
+ let resorgid = res.input.substring(res.input.indexOf("'"));
530
+ if(resorgid!= null && resorgid!=''){
531
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
532
+ // resorgid = resorgid.replaceAll("'","");
533
+ resorgid = resorgid.replace(/'/g,"");
534
+ this.allorgid = resorgid.split(",")
535
+ }
536
+ }
537
+ // this.updateParams()
538
+ }
539
+ },
540
+ 'all'(val) {
541
+ if (val) {
542
+ this.modelval = this.bodyData
543
+ } else {
544
+ this.modelval = defaultPrint.config
545
+ this.put()
546
+ }
547
+ },
548
+ 'modelval.length'() {
549
+ this.put()
550
+ },
551
+ sumsmodel:{
552
+ handler: function(val) {
553
+ this.getotherfooter();
554
+ },
555
+ deep: true
556
+ }
557
+ },
558
+ computed: {
559
+
560
+ getCondition() {
561
+ return {
562
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
563
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
564
+ orderitem: this.orderitem,
565
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
566
+ },
567
+ getfield() {
568
+ return exportConfig.gaslossConfig
569
+ },
570
+ payment() {
571
+ return [{label: '全部', value: ''},...this.$appdata.getParam('付款方式查询')]
572
+ },
573
+ gaslosstypes() {
574
+ return [{label: '全部', value: ''},...this.$appdata.getParam('气损分类')]
575
+ }
576
+
577
+ },
578
+ events:{
579
+ 'onFileUpload': async function (file, res) {
580
+ if (this.batchmoneyShow) {
581
+ this.percent = 0;
582
+ this.getuuid();
583
+ let param = {
584
+ filepath: res.f_downloadpath,
585
+ f_operator: this.$login.f.name,
586
+ f_operatorid: this.$login.f.id,
587
+ f_orgid: this.$login.f.orgid,
588
+ f_orgname: this.$login.f.orgs,
589
+ f_depid: this.$login.f.depids,
590
+ f_depname: this.$login.f.deps,
591
+ uuid: this.uuida
592
+ }
593
+ this.batchmoneyShow=false;
594
+ try{
595
+ await this.$resetpost('rs/logic/SumSettleFileImport',{data: param},{resolveMsg: null, rejectMsg: null},1000).then((res)=>{
596
+ if(res.data){
597
+ }
598
+ })
599
+ }catch(error){}
600
+ let getparam = {
601
+ uuid: this.uuida
602
+ }
603
+ let self = this;
604
+ this.progressShow=true;
605
+ this.timer = setInterval(function(){
606
+ self.$resetpost('/rs/logic/getBatchOperaPro',{data:getparam},{resolveMsg: null, rejectMsg: null}, 0).then((res)=>{
607
+ if(res.data ){
608
+ if(res.data.speed){
609
+ if(res.data.speed>= 100){
610
+ clearInterval(self.timer);
611
+ if(res.data.speed){
612
+ self.percent = 99;
613
+ }
614
+ setTimeout(()=>{
615
+ self.percent = 100;
616
+ self.progressclose();
617
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
618
+ },600);
619
+ }else{
620
+ self.percent = res.data.speed
621
+ }
622
+ }else{
623
+ self.percent=0;
624
+ }
625
+ }
626
+ });
627
+ },3000);
628
+ }
629
+ }
630
+ }
631
+ }
632
+ </script>
@@ -845,6 +845,7 @@
845
845
  }
846
846
  },
847
847
  ready() {
848
+ this.$refs.paged.$refs.cri.model.f_meter_state=['已抄表']
848
849
  this.getaddress()
849
850
  readySomething(this).then(() => {
850
851
  this.$emit('ready')
@@ -4,12 +4,12 @@ let specialComp = {
4
4
  'arrears-query': (resolve) => { require(['./ArrearsQuery'], resolve) },
5
5
  'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) },
6
6
  'handplan-query': (resolve) => { require(['./HandplanQuery'], resolve) },
7
+ 'gasloss-query': (resolve) => { require(['./GasLossQuery'], resolve) },
7
8
  // 表具查询
8
9
  'meter-query': (resolve) => { require(['./MeterQuery'], resolve) },
9
10
  // 用户查询
10
11
  'user-query': (resolve) => { require(['./UserQuery'], resolve) },
11
12
  'business-manage': (resolve) => { require(['./BusinessManage'], resolve) }
12
-
13
13
  }
14
14
  exports.specialComp = specialComp
15
15