manage-client 3.2.93 → 3.2.94

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 (32) hide show
  1. package/build/dev-server.js +177 -176
  2. package/package.json +1 -1
  3. package/src/components/SellReport/GasMoneyPublicMoney.vue +1 -1
  4. package/src/components/sale/businessquery/CancellationQuery.vue +418 -418
  5. package/src/components/sale/businessquery/CardHandplanQuery.vue +476 -476
  6. package/src/components/sale/businessquery/ChargeQuery.vue +1297 -1283
  7. package/src/components/sale/businessquery/DisableQuery.vue +493 -493
  8. package/src/components/sale/businessquery/EnableQuery.vue +451 -451
  9. package/src/components/sale/businessquery/FillCardQuery.vue +529 -529
  10. package/src/components/sale/businessquery/FillGasQuery.vue +560 -560
  11. package/src/components/sale/businessquery/HandplanQuery.vue +1372 -1372
  12. package/src/components/sale/businessquery/MoveMeterQuery.vue +397 -397
  13. package/src/components/sale/businessquery/PrivilegeQuery.vue +380 -380
  14. package/src/components/sale/businessquery/ReceiptQuery.vue +834 -834
  15. package/src/components/sale/businessquery/ReverseQuery.vue +444 -444
  16. package/src/components/sale/businessquery/TransferQuery.vue +461 -461
  17. package/src/components/sale/businessquery/overDueQuery.vue +453 -453
  18. package/src/components/sale/config/exportConfig.js +944 -944
  19. package/src/components/sale/filesquery/UserQuery.vue +930 -941
  20. package/src/filiale/qianneng/ManageBusSummary.vue +224 -0
  21. package/src/filiale/qianneng/exportConfig.js +69 -69
  22. package/src/filiale/qianneng/reportManage.js +3 -1
  23. package/src/filiale/qianneng/sale.js +12 -12
  24. package/src/filiale/zhongyi/ManageBusSummaryPeng.vue +241 -0
  25. package/src/filiale/zhongyi/ManageHandSellMoney.vue +247 -0
  26. package/src/filiale/zhongyi/ManageSellType.vue +284 -0
  27. package/src/filiale/zhongyi/reportManage.js +16 -0
  28. package/src/main.js +66 -66
  29. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  30. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  31. package/.gradle/buildOutputCleanup/built.bin +0 -0
  32. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -0,0 +1,224 @@
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,69 +1,69 @@
1
- export default{
2
- arrearsConfig: {
3
- 'f_userinfo_code': '客户编号',
4
- 'f_user_name': '客户姓名',
5
- 'f_address': '地址',
6
- 'f_user_phone': '客户电话',
7
- 'f_rent_phone': '备用电话',
8
- 'f_residential_area': '小区名称',
9
- 'f_olduserinfo_code': '档案编号',
10
- 'f_book_no': '用户证号',
11
- 'f_meter_book_sort': '册内序号',
12
- 'f_inputtor': '抄表员',
13
- 'f_book_name': '抄表册',
14
- 'f_dainputtores': '档案抄表员',
15
- 'f_user_type': '客户类型',
16
- 'f_gasproperties': '用气性质',
17
- 'f_meter_classify': '气表类型',
18
- 'f_cost_type': '缴费类型',
19
- 'c': '欠费期数',
20
- 'f_hand_date': '欠费区间',
21
- 'f_last_tablebase': '上期抄表底数',
22
- 'f_tablebase': '本期抄表底数',
23
- 'f_oughtamount': '用气量',
24
- 'f_oughtfee': '用气金额',
25
- 'f_operate_date': '缴费时间',
26
- 'f_debt_money': '已交金额',
27
- 'f_oughtfee_new': '应交气费',
28
- 'overdue': '滞纳金',
29
- 'f_garbage_fee': '附加费',
30
- 'f_balance': '上期余额',
31
- 'f_oughtfee_all': '合计欠费',
32
- 'f_comments': '备注'
33
- },
34
- chargeConfig: {
35
- 'id': '收费编号', 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_user_phone': '客户电话', 'f_address': '客户地址', 'f_zones': '片区', 'f_user_type': '客户类型',
36
- 'f_gasproperties': '用气性质', 'f_meternumber': '表号', 'f_meter_brand': '气表品牌', 'f_times': '购气次数',
37
- 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_pregas': '气量', 'fee': '金额', 'f_preamount': '燃气费', 'f_collection': '收款', 'f_privilege_money': '优惠金额', 'f_balance': '上期结余', 'f_newbalance': '账户支出', 'f_newcurbalance': '账户存入',
38
- 'f_curbalance': '本期结余', 'f_type': '收费类型', 'f_payment': '付款方式', 'f_bank_type': '支付渠道', 'f_state': '状态', 'f_operate_date': '收费日期', 'f_serial_id': '流水号',
39
- 'f_delaypay': '滞纳金', 'f_comments': '备注', 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司',
40
- 'f_yucun': '预存金额', 'f_card_id': '卡号', 'f_stairamount1': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费',
41
- 'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
42
- 'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_inputtor': '抄表员'
43
- },
44
- handplanConfig: {
45
- 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_olduserinfo_code': '档案编号', 'f_address': '客户地址', 'f_zones': '片区', 'phone': '客户手机', 'f_meternumber': '表号', 'ym_data': '数据年月',
46
- 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_oughtamount': '用气量', 'overdue': '滞纳金', 'f_oughtfee': '用气金额', 'f_debt_money': '已交金额',
47
- 'f_actual_arrears': '欠费金额', 'f_balance': '上期余额', 'f_curbalance': '本期余额', 'f_newbalance': '账户支出', 'f_newcurbalance': '账户存入',
48
- 'f_accounts_state': '下账状态', 'f_operate_date': '收费时间', 'f_inputtor': '抄表员', 'f_book_slice_area': '表册片区',
49
- 'f_hand_date': '下发日期', 'f_input_date': '录入日期', 'f_audit_date': '审核日期','f_meter_state': '抄表状态', 'f_hand_state': '记录状态',
50
- 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司', 'f_surplus_gas': '剩余气量', 'f_haircut_gas': '扣减气量',
51
- 'f_stair1amount': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费',
52
- 'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
53
- 'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_rest_date': '所属年月'
54
- },
55
- batchBankConfig2: {
56
- 'f_userinfo_code': '客户编号', 'f_userinfo_id': '用户编号', 'phone': '客户电话', 'f_user_name': '客户姓名', 'f_address': '客户地址',
57
- 'f_bank_accopen': '银行户名', 'f_bank_pay_number': '缴费编号', 'f_bank_account': '银行开户账号', 'f_paper_account': '开户行及账号',
58
- 'f_bank_name': '银行名称', 'f_oughtfee': '欠费金额'
59
- },
60
- otherchargeConfig: {
61
- 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_address': '客户地址', 'f_user_phone': '客户电话', 'f_meter_classify': '气表类型',
62
- 'f_meter_brand': '气表品牌', 'f_bill_number': '收据票号', 'f_brand_spec': '收费类型', 'f_typename': '品名规格',
63
- 'f_typenumber': '型号', 'f_unitprice': '单价', 'f_number': '数量',
64
- 'f_money': '收款', 'f_newbalance': '支出', 'f_newcurbalance': '收入','f_payment': '付款方式', 'f_state': '状态',
65
- 'f_operate_date': '收费日期', 'f_service_person': '服务人员', 'f_comments': '备注',
66
- 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司'
67
- }
68
- }
69
-
1
+ export default{
2
+ arrearsConfig: {
3
+ 'f_userinfo_code': '客户编号',
4
+ 'f_user_name': '客户姓名',
5
+ 'f_address': '地址',
6
+ 'f_user_phone': '客户电话',
7
+ 'f_rent_phone': '备用电话',
8
+ 'f_residential_area': '小区名称',
9
+ 'f_olduserinfo_code': '档案编号',
10
+ 'f_book_no': '用户证号',
11
+ 'f_meter_book_sort': '册内序号',
12
+ 'f_inputtor': '抄表员',
13
+ 'f_book_name': '抄表册',
14
+ 'f_dainputtores': '档案抄表员',
15
+ 'f_user_type': '客户类型',
16
+ 'f_gasproperties': '用气性质',
17
+ 'f_meter_classify': '气表类型',
18
+ 'f_cost_type': '缴费类型',
19
+ 'c': '欠费期数',
20
+ 'f_hand_date': '欠费区间',
21
+ 'f_last_tablebase': '上期抄表底数',
22
+ 'f_tablebase': '本期抄表底数',
23
+ 'f_oughtamount': '用气量',
24
+ 'f_oughtfee': '用气金额',
25
+ 'f_operate_date': '缴费时间',
26
+ 'f_debt_money': '已交金额',
27
+ 'f_oughtfee_new': '应交气费',
28
+ 'overdue': '滞纳金',
29
+ 'f_garbage_fee': '附加费',
30
+ 'f_balance': '上期余额',
31
+ 'f_oughtfee_all': '合计欠费',
32
+ 'f_comments': '备注'
33
+ },
34
+ chargeConfig: {
35
+ 'id': '收费编号', 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_user_phone': '客户电话', 'f_address': '客户地址', 'f_zones': '片区', 'f_user_type': '客户类型',
36
+ 'f_gasproperties': '用气性质', 'f_meternumber': '表号', 'f_meter_brand': '气表品牌', 'f_times': '购气次数',
37
+ 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_pregas': '气量', 'fee': '金额', 'f_preamount': '燃气费', 'f_collection': '收款', 'f_privilege_money': '优惠金额', 'f_balance': '上期结余', 'f_newbalance': '账户支出', 'f_newcurbalance': '账户存入',
38
+ 'f_curbalance': '本期结余', 'f_type': '收费类型', 'f_payment': '付款方式', 'f_bank_type': '支付渠道', 'f_state': '状态', 'f_operate_date': '收费日期', 'f_serial_id': '流水号',
39
+ 'f_delaypay': '滞纳金', 'f_comments': '备注', 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司',
40
+ 'f_yucun': '预存金额', 'f_card_id': '卡号', 'f_stairamount1': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费',
41
+ 'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
42
+ 'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_inputtor': '抄表员'
43
+ },
44
+ handplanConfig: {
45
+ 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_olduserinfo_code': '档案编号', 'f_address': '客户地址', 'f_zones': '片区', 'phone': '客户手机', 'f_meternumber': '表号', 'ym_data': '数据年月',
46
+ 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_oughtamount': '用气量', 'overdue': '滞纳金', 'f_oughtfee': '用气金额', 'f_debt_money': '已交金额',
47
+ 'f_actual_arrears': '欠费金额', 'f_balance': '上期余额', 'f_curbalance': '本期余额', 'f_newbalance': '账户支出', 'f_newcurbalance': '账户存入',
48
+ 'f_accounts_state': '下账状态', 'f_operate_date': '收费时间', 'f_inputtor': '抄表员', 'f_book_slice_area': '表册片区',
49
+ 'f_hand_date': '下发日期', 'f_input_date': '录入日期', 'f_audit_date': '审核日期','f_meter_state': '抄表状态', 'f_hand_state': '记录状态',
50
+ 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司', 'f_surplus_gas': '剩余气量', 'f_haircut_gas': '扣减气量',
51
+ 'f_stair1amount': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费',
52
+ 'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
53
+ 'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_rest_date': '所属年月'
54
+ },
55
+ batchBankConfig2: {
56
+ 'f_userinfo_code': '客户编号', 'f_userinfo_id': '用户编号', 'phone': '客户电话', 'f_user_name': '客户姓名', 'f_address': '客户地址',
57
+ 'f_bank_accopen': '银行户名', 'f_bank_pay_number': '缴费编号', 'f_bank_account': '银行开户账号', 'f_paper_account': '开户行及账号',
58
+ 'f_bank_name': '银行名称', 'f_oughtfee': '欠费金额'
59
+ },
60
+ otherchargeConfig: {
61
+ 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_address': '客户地址', 'f_user_phone': '客户电话', 'f_meter_classify': '气表类型',
62
+ 'f_meter_brand': '气表品牌', 'f_bill_number': '收据票号', 'f_brand_spec': '收费类型', 'f_typename': '品名规格',
63
+ 'f_typenumber': '型号', 'f_unitprice': '单价', 'f_number': '数量',
64
+ 'f_money': '收款', 'f_newbalance': '支出', 'f_newcurbalance': '收入','f_payment': '付款方式', 'f_state': '状态',
65
+ 'f_operate_date': '收费日期', 'f_service_person': '服务人员', 'f_comments': '备注',
66
+ 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司'
67
+ }
68
+ }
69
+
@@ -1,7 +1,9 @@
1
1
  // 分公司特殊组件页面注册
2
2
  let specialComp = {
3
3
  // 营业分项汇总报表
4
- 'sell-dep-report': (resolve) => { require(['./SellDepReport'], resolve) }
4
+ 'sell-dep-report': (resolve) => { require(['./SellDepReport'], resolve) },
5
+ // 潜能收费日结账
6
+ 'manage-bus-summary': (resolve) => { require(['./ManageBusSummary.vue'], resolve) }
5
7
  }
6
8
  exports.specialComp = specialComp
7
9
 
@@ -1,12 +1,12 @@
1
- // 分公司特殊组件页面注册
2
- let specialComp = {
3
- 'other-charge-query': (resolve) => { require(['./OtherChargeQuery'], resolve) },
4
- 'arrears-query': (resolve) => { require(['./ArrearsQuery'], resolve) },
5
- 'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) },
6
- 'handplan-query': (resolve) => { require(['./HandplanQuery'], resolve) }
7
- }
8
- exports.specialComp = specialComp
9
-
10
-
11
-
12
-
1
+ // 分公司特殊组件页面注册
2
+ let specialComp = {
3
+ 'other-charge-query': (resolve) => { require(['./OtherChargeQuery'], resolve) },
4
+ 'arrears-query': (resolve) => { require(['./ArrearsQuery'], resolve) },
5
+ 'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) },
6
+ 'handplan-query': (resolve) => { require(['./HandplanQuery'], resolve) }
7
+ }
8
+ exports.specialComp = specialComp
9
+
10
+
11
+
12
+
@@ -0,0 +1,241 @@
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 class="col-sm-4">
34
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
35
+ <res-select restype='department'
36
+ is-mul="false"
37
+ @res-select="$parent.$parent.getdep"
38
+ :parentresid="$parent.$parent.depresid"
39
+ :initresid='$parent.$parent.depid'>
40
+ </res-select>
41
+
42
+ </div>
43
+ <div class="col-sm-4">
44
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
45
+ <res-select restype='user'
46
+ is-mul="false"
47
+ @res-select="$parent.$parent.getuser"
48
+ :parentresid="$parent.$parent.userresid"
49
+ :initresid='$parent.$parent.operatorid'>
50
+ </res-select>
51
+ </div>
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>
58
+ </div>
59
+ </criteria>
60
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
61
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
62
+ <thead>
63
+ <tr>
64
+ <th colspan='11' style="font-weight: normal; text-align: left;">
65
+ <h3 style="text-align: center">收费结账报表</h3>
66
+ </th>
67
+ </tr>
68
+ <tr>
69
+ <th colspan='11' style="font-weight: normal; text-align: center;">
70
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
71
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
72
+ 打印时间:{{{$parent.printTime}}}
73
+ </th>
74
+ </tr>
75
+ <tr>
76
+ <th colspan='11' style="font-weight: normal; text-align: center;">
77
+ <div>
78
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
79
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
80
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
81
+ </div>
82
+ </th>
83
+ </tr>
84
+ </thead>
85
+ <tr>
86
+ <td colspan='11'>
87
+ {{{ model.data.substring(26,model.data.length-8) }}}
88
+ </td>
89
+ </tr>
90
+ <tfoot>
91
+ <tr style="text-align: left">
92
+ <th colspan='4'>财务审核:</th>
93
+ <th colspan='4'>收款审核:</th>
94
+ <th colspan='3'>收款员:</th>
95
+ </tr>
96
+ </tfoot>
97
+ </table>
98
+ {{{ $parent.reportStr}}}
99
+ </div>
100
+ </criteria-paged>
101
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
102
+ <header slot="modal-header" class="modal-header">
103
+ <h4 class="modal-title">输入文件名称</h4>
104
+ </header>
105
+ <article slot="modal-body" class="modal-body">
106
+ <div class="form-group">
107
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
108
+ </div>
109
+ </article>
110
+ <footer slot="modal-footer" class="modal-footer">
111
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
112
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
113
+ </footer>
114
+ </modal>
115
+ </div>
116
+ </template>
117
+
118
+ <script>
119
+ import { DataModel } from 'vue-client'
120
+ import co from 'co'
121
+ let saveFile = function * (self) {
122
+ // 线验证文件是否重名
123
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
124
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
125
+ {resolveMsg: null, rejectMsg: null})
126
+ if (count.data.length > 0) {
127
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
128
+ return
129
+ }
130
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
131
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
132
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
133
+ f_outlets: this.$login.f.depname})
134
+ if (saveBack.data.status === 'succeed') {
135
+ self.show = false
136
+ self.filename = ''
137
+ // 后台保存完成,通知刷新
138
+ self.$dispatch('save-success', self.filename)
139
+ }
140
+ }
141
+ export default {
142
+ title: '收费结账报表',
143
+ props: ['data'],
144
+ data () {
145
+ return {
146
+ printTime: this.$login.toStandardTimeString(),
147
+ depresid: [],
148
+ userresid: [],
149
+ f_orgid: this.$login.f.orgid,
150
+ f_depid: this.$login.f.depids,
151
+ f_operatorid: this.$login.f.id,
152
+ operatorid: [],
153
+ depid: [],
154
+ orgname: '',
155
+ depname: '',
156
+ operatorname: '',
157
+ orgCondtionStr: '1=1',
158
+ model: new DataModel('rs/report/getmoneyallpeng', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
159
+ f_orgid: 'this.model.f_orgid'}),
160
+ reportStr: null,
161
+ show: false,
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
+ this.$refs.paged.$refs.criteria.search()
168
+ console.log(this.$login.f)
169
+ },
170
+ methods: {
171
+ searchData () {
172
+ this.$refs.paged.$refs.criteria.search()
173
+ },
174
+ selfSearch (args) {
175
+ this.printTime = this.$login.toStandardTimeString()
176
+ let orgcondition = 'f_orgid = ' + this.f_orgid
177
+ if (this.f_depid[0]) {
178
+ orgcondition += ' and f_depid = ' + this.f_depid
179
+ }
180
+ if(this.f_operatorid[0]) {
181
+ orgcondition += ' and f_operatorid = ' + this.f_operatorid
182
+ }
183
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
184
+ this.$refs.paged.search(args)
185
+ },
186
+ getRes (obj) {
187
+ this.orgname = obj.res[0]
188
+ this.depresid = obj.resids
189
+ this.f_orgid = obj.resids
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
+ // 根据文件路径获取储存的报表内容
202
+ getFileContent (path) {
203
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
204
+ this.reportStr = res.data.filecontent
205
+ this.model.state = '正确'
206
+ })
207
+ },
208
+ confirm () {
209
+ if (!this.filename || this.filename === '') {
210
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
211
+ }
212
+ let saveGen = saveFile(this)
213
+ co(saveGen)
214
+ },
215
+ close () {
216
+ this.show = false
217
+ },
218
+ // 将报表保存成文件
219
+ confirmReport () {
220
+ this.show = true
221
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
222
+ },
223
+ },
224
+ watch: {
225
+ 'data' (val) {
226
+ if (val.f_files_path) {
227
+ this.getFileContent(val.f_files_path)
228
+ } else {
229
+ this.reportStr = null
230
+ }
231
+ }
232
+ },
233
+ computed: {
234
+ }
235
+ }
236
+ </script>
237
+ <style scoped>
238
+ .noborder{
239
+ border: none;
240
+ }
241
+ </style>