apply-clients 5.0.37-2 → 5.0.37-4
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 +111 -111
- package/src/components/app_apply/ServiceControl.vue +687 -687
- package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -304
- package/src/components/product/EngineeringManagement/EngineeringSelect.vue +586 -586
- package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -281
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +132 -132
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +340 -340
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryServiceControl.vue +490 -490
- package/src/components/product/Function/InstallInfoSelect.vue +255 -255
- package/src/components/product/Function/functions/BuyerMessage.vue +512 -512
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +392 -392
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2200 -2200
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +556 -559
- package/src/components/product/stopInfo/ApplyStopInfo.vue +281 -281
- package/src/ezhouAndroid.js +48 -48
|
@@ -1,392 +1,392 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex bg-white p-10 datapanel" >
|
|
3
|
-
<div style="flex: 1.5;height: 100%" class="flex">
|
|
4
|
-
<p class="bg-info text-center" style="padding: 8px;font-size: 20px">报建收费记录
|
|
5
|
-
</p>
|
|
6
|
-
<div class="flex" style="height: 90%">
|
|
7
|
-
<criteria-paged :model="model" v-ref:paged >
|
|
8
|
-
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
|
|
9
|
-
|
|
10
|
-
<div novalidate class="form-inline auto" partial>
|
|
11
|
-
<div class="form-group col-sm-2">
|
|
12
|
-
<label class="col-sm-4 control-label linehhh">报建编号</label>
|
|
13
|
-
<div class="col-sm-8">
|
|
14
|
-
<input type="text" class="form-control" v-model="model.f_apply_num"
|
|
15
|
-
style="width:100%"
|
|
16
|
-
condition="a.f_apply_num like '%{}%'" placeholder='报建编号'>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="form-group col-sm-2 ">
|
|
20
|
-
<label class="col-sm-4 control-label linehhh ">开始日期</label>
|
|
21
|
-
<div class="col-sm-8">
|
|
22
|
-
<datepicker placeholder="开始日期"
|
|
23
|
-
v-model="model.f_operate_start_date"
|
|
24
|
-
style="width:100%"
|
|
25
|
-
:value.sync="model.f_operate_start_date"
|
|
26
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
27
|
-
condition="f_charge_date >= '{}'"
|
|
28
|
-
></datepicker>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="form-group col-sm-2">
|
|
32
|
-
<label class="col-sm-4 control-label linehhh ">结束日期</label>
|
|
33
|
-
<div class="col-sm-8">
|
|
34
|
-
<datepicker placeholder="结束日期"
|
|
35
|
-
style="width:100%"
|
|
36
|
-
v-model="model.f_operate_end_date"
|
|
37
|
-
:value.sync="model.f_operate_end_date"
|
|
38
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
39
|
-
condition="f_charge_date <= '{}'"
|
|
40
|
-
></datepicker>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="form-group col-sm-2">
|
|
44
|
-
<label class="col-sm-4 control-label linehhh">收费人员</label>
|
|
45
|
-
<div class="col-sm-8">
|
|
46
|
-
<v-select :value.sync="model.f_charge_collectors" v-model="model.f_charge_collectors"
|
|
47
|
-
:options='$parent.$parent.human' placeholder='收费人员' width="100%"
|
|
48
|
-
close-on-select condition="f_charge_collectors = '{}'">
|
|
49
|
-
</v-select>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<div class="form-group col-sm-2">
|
|
54
|
-
<label class="col-sm-4 control-label linehhh">是否冲正</label>
|
|
55
|
-
<div class="col-sm-8">
|
|
56
|
-
<v-select :value.sync="model.f_is_correct" v-model="model.f_is_correct"
|
|
57
|
-
:options='$parent.$parent.correct' placeholder='是否冲正' :width="100" style="width:100%"
|
|
58
|
-
close-on-select condition="f_is_correct = '{}'">
|
|
59
|
-
</v-select>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
<div class="form-group col-sm-2">
|
|
63
|
-
<label class="col-sm-4 control-label linehhh">是否有效</label>
|
|
64
|
-
<div class="col-sm-8">
|
|
65
|
-
<v-select :value.sync="model.f_charging_status" v-model="model.f_charging_status"
|
|
66
|
-
:options='$parent.$parent.state' placeholder='是否有效' width="100%"
|
|
67
|
-
close-on-select condition="f_charging_status = '{}'">
|
|
68
|
-
</v-select>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="form-group col-sm-2">
|
|
72
|
-
<label class="col-sm-4 control-label linehhh">收费方式</label>
|
|
73
|
-
<div class="col-sm-8">
|
|
74
|
-
<v-select :value.sync="model.f_payment_method" v-model="model.f_payment_method"
|
|
75
|
-
:options='$parent.$parent.method' placeholder='收费方式' width="100%"
|
|
76
|
-
close-on-select condition="f_payment_method = '{}'">
|
|
77
|
-
</v-select>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="form-group col-sm-2">
|
|
81
|
-
<label class="col-sm-4 control-label linehhh ">用户地址</label>
|
|
82
|
-
<div class="col-sm-8">
|
|
83
|
-
<input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
|
|
84
|
-
v-on:keyup.enter="search" style="width:100%"
|
|
85
|
-
condition="f_address like '%{}%'">
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
<div class="form-group col-sm-2">
|
|
89
|
-
<label class="col-sm-4 control-label linehhh">联系人</label>
|
|
90
|
-
<div class="col-sm-8">
|
|
91
|
-
<input type="text" class="form-control" placeholder='联系人'
|
|
92
|
-
v-model="model.f_user_name"
|
|
93
|
-
v-on:keyup.enter="search" style="width:100%"
|
|
94
|
-
condition="a.f_user_name like '%{}%'">
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
|
|
98
|
-
<div class="form-group col-sm-2">
|
|
99
|
-
<label class="col-sm-4 control-label linehhh">组织机构</label>
|
|
100
|
-
<div class="col-sm-8">
|
|
101
|
-
<right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source'
|
|
102
|
-
@re-res="$parent.$parent.getRes" condition="f_orgstr like {}"></right-tree>
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<div class="form-group col-sm-2">
|
|
107
|
-
<label class="col-sm-4 control-label linehhh">报装类型</label>
|
|
108
|
-
<div class="col-sm-8">
|
|
109
|
-
<v-select :value.sync="model.f_work_type" v-model="model.f_work_type"
|
|
110
|
-
:options='$parent.$parent.worktype' width="100%"
|
|
111
|
-
close-on-select condition="a.f_work_type = '{}'">
|
|
112
|
-
</v-select>
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
115
|
-
|
|
116
|
-
<div class="form-group col-sm-2">
|
|
117
|
-
<label class="col-sm-4 control-label linehhh">用户类型</label>
|
|
118
|
-
<div class="col-sm-8">
|
|
119
|
-
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
120
|
-
:options='$parent.$parent.usertype' width="100%"
|
|
121
|
-
close-on-select condition="a.f_user_type = '{}'">
|
|
122
|
-
</v-select>
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
<div class="form-group">
|
|
127
|
-
<button class="btn btn-primary" @click="search(),$parent.$parent.showpager()">
|
|
128
|
-
<span class="glyphicon glyphicon-search"></span>查询</button>
|
|
129
|
-
<button class="btn-primary btn btn-sm" @click.prevent="$parent.$parent.clear()">清空</button>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</criteria>
|
|
133
|
-
<data-grid :model="model" v-ref:grid partial='list'>
|
|
134
|
-
<template partial='head'>
|
|
135
|
-
<tr>
|
|
136
|
-
<th><nobr>序号</nobr></th>
|
|
137
|
-
<th><nobr>收费金额</nobr></th>
|
|
138
|
-
<th><nobr>用户</nobr></th>
|
|
139
|
-
<th><nobr>地址</nobr></th>
|
|
140
|
-
<th><nobr>收费人员</nobr></th>
|
|
141
|
-
<th><nobr>是否有效</nobr></th>
|
|
142
|
-
<th><nobr>付款方式</nobr></th>
|
|
143
|
-
<th><nobr>收费日期</nobr></th>
|
|
144
|
-
<th><nobr>报建编号</nobr></th>
|
|
145
|
-
<th><nobr>分公司</nobr></th>
|
|
146
|
-
<th><nobr>营业网点</nobr></th>
|
|
147
|
-
<th><nobr>发票号码</nobr></th>
|
|
148
|
-
<th><nobr>票据类型</nobr></th>
|
|
149
|
-
<th><nobr>总应缴金额</nobr></th>
|
|
150
|
-
<th><nobr>已交金额</nobr></th>
|
|
151
|
-
<th><nobr>未交金额</nobr></th>
|
|
152
|
-
<th><nobr>操作</nobr></th>
|
|
153
|
-
</tr>
|
|
154
|
-
</template>
|
|
155
|
-
<template partial='body'>
|
|
156
|
-
<td style="text-align: center;">{{$index+1}}</td>
|
|
157
|
-
<td style="text-align: center;">{{row.f_charge_money}}</td>
|
|
158
|
-
<td style="text-align: center;">{{row.f_user_name}}</td>
|
|
159
|
-
<td style="text-align: center;">{{row.f_address}}</td>
|
|
160
|
-
<!-- <td style="text-align: center;">{{// row.f_charge_item}}</td>-->
|
|
161
|
-
<td style="text-align: center;">{{row.f_charge_collectors}}</td>
|
|
162
|
-
<td style="text-align: center;">{{row.f_charging_status}}</td>
|
|
163
|
-
<td style="text-align: center;">{{row.f_payment_method}}</td>
|
|
164
|
-
<td style="text-align: center;">{{row.f_charge_date}}</td>
|
|
165
|
-
<td style="text-align: center;">{{row.f_apply_num}}</td>
|
|
166
|
-
<td style="text-align: center;">{{row.f_filiale}}</td>
|
|
167
|
-
<td style="text-align: center;">{{row.f_outlets}}</td>
|
|
168
|
-
<td style="text-align: center;">{{row.f_bill_number}}</td>
|
|
169
|
-
<td style="text-align: center;">{{row.f_bill_style}}</td>
|
|
170
|
-
<td style="text-align: center;">{{row.f_total_cost}}</td>
|
|
171
|
-
<td style="text-align: center;">{{row.app_f_cumulative_money}}</td>
|
|
172
|
-
<td style="text-align: center;">{{row.f_unaccounts_money}}</td>
|
|
173
|
-
<td style="text-align: center;">
|
|
174
|
-
<button class="btn-primary btn btn-sm" @click.prevent="$parent.$parent.$parent.update_way(row)">修改</button>
|
|
175
|
-
</td>
|
|
176
|
-
</template>
|
|
177
|
-
</data-grid>
|
|
178
|
-
</criteria-paged>
|
|
179
|
-
</div>
|
|
180
|
-
<div class="flex" style="height: 10%">
|
|
181
|
-
<div novalidate class="form-inline auto" partial>
|
|
182
|
-
<p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
|
|
183
|
-
<span style="color: red">{{modeluse.rows.length}}</span>笔,
|
|
184
|
-
收款金额合计<span style="color: red">{{price.rows[0].f_charge_money}}</span>元,
|
|
185
|
-
<!--合计应缴总金额<span style="color: red">{{price.rows[0].f_total_cost}}</span>元,
|
|
186
|
-
已缴<span style="color: red">{{price.rows[0].f_cumulative_money}}</span>元,未缴<span style="color: red">{{price.rows[0].f_unaccounts_money}}</span>元-->
|
|
187
|
-
</p>
|
|
188
|
-
</div>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
<!--修改弹出框-->
|
|
192
|
-
<modal :show.sync="updateControl" v-ref:modal backdrop="false">
|
|
193
|
-
<header slot="modal-header" class="modal-header">
|
|
194
|
-
<button type="button" class="close" @click="closeUpdate()"><span>×</span></button>
|
|
195
|
-
<h4 class="modal-title">修改</h4>
|
|
196
|
-
</header>
|
|
197
|
-
<article slot="modal-body" class="modal-body" >
|
|
198
|
-
<div class="from-group" style="width: 100%">
|
|
199
|
-
<label style="width: 15%;float: left">票据类型</label>
|
|
200
|
-
<v-select :value.sync="selectItem.f_bill_style" v-model="selectItem.f_bill_style"
|
|
201
|
-
:options='billstyle' placeholder='请选择' style="width: 80%;float: left"
|
|
202
|
-
close-on-select >
|
|
203
|
-
</v-select>
|
|
204
|
-
</div>
|
|
205
|
-
</article>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
209
|
-
<div class="from-group" style="width: 100%;float: left">
|
|
210
|
-
<button v-show="updateControl" type="button" class="btn btn-default" @click='closeUpdate'>取消</button>
|
|
211
|
-
<button v-show="updateControl" type="button" class="btn btn-success" @click='confirm'>确认</button>
|
|
212
|
-
</div>
|
|
213
|
-
</footer>
|
|
214
|
-
</modal>
|
|
215
|
-
</div>
|
|
216
|
-
</template>
|
|
217
|
-
<script>
|
|
218
|
-
import * as Util from '../../../../Util'
|
|
219
|
-
|
|
220
|
-
import { PagedList } from 'vue-client'
|
|
221
|
-
import {HttpResetClass} from 'vue-client'
|
|
222
|
-
Date.prototype.Format = function (fmt) {
|
|
223
|
-
var o = {
|
|
224
|
-
"M+": this.getMonth() + 1, //月份
|
|
225
|
-
"d+": this.getDate(), //日
|
|
226
|
-
"H+": this.getHours(), //小时
|
|
227
|
-
"m+": this.getMinutes(), //分
|
|
228
|
-
"s+": this.getSeconds(), //秒
|
|
229
|
-
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
230
|
-
"S": this.getMilliseconds() //毫秒
|
|
231
|
-
};
|
|
232
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
233
|
-
for (var k in o)
|
|
234
|
-
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
235
|
-
return fmt;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export default {
|
|
239
|
-
title: '报建收费查看',
|
|
240
|
-
name: 'ApplyChargeSearch',
|
|
241
|
-
data () {
|
|
242
|
-
return {
|
|
243
|
-
filialeNameStr: null,
|
|
244
|
-
filialeCodeStr: this.$login.f.f_orgids,
|
|
245
|
-
userid: this.$login.f.id,
|
|
246
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
247
|
-
// f_operate_start_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
248
|
-
// f_operate_end_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
249
|
-
model: new PagedList('rs/sql/getApplyCharge', 30, {orderitem: '`id`'}),
|
|
250
|
-
modeluse: new PagedList('rs/sql/getApplyCharge', 999999, {orderitem: '`id`'}),
|
|
251
|
-
price: new PagedList('rs/sql/getChargeAll', 999999, {orderitem: '`f_charge_money`'}),
|
|
252
|
-
human: [],
|
|
253
|
-
filiale: [],
|
|
254
|
-
method: this.$appdata.getParam('付款方式'),
|
|
255
|
-
usertype:[
|
|
256
|
-
{label: '民用', value: '民用'},
|
|
257
|
-
{label: '非民用', value: '非民用'}
|
|
258
|
-
],
|
|
259
|
-
worktype:[
|
|
260
|
-
{label: '新报装', value: '新报装'},
|
|
261
|
-
{label: '改管', value: '改管'}
|
|
262
|
-
],
|
|
263
|
-
correct: [
|
|
264
|
-
{label: '是', value: '是'},
|
|
265
|
-
{label: '否', value: '否'}
|
|
266
|
-
],
|
|
267
|
-
state: [
|
|
268
|
-
{label: '有效', value: '有效'},
|
|
269
|
-
{label: '无效', value: '无效'}
|
|
270
|
-
],
|
|
271
|
-
selectItem: {},
|
|
272
|
-
billstyle: this.$appdata.getParam('发票类型'),
|
|
273
|
-
updateControl: false,
|
|
274
|
-
billID: 0
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
ready () {
|
|
278
|
-
this.$refs.paged.$refs.criteria.model.f_operate_start_date = Util.toStandardDateString() + ' 00:00:00'
|
|
279
|
-
this.$refs.paged.$refs.criteria.model.f_operate_end_date = Util.toStandardDateString() + ' 23:59:59'
|
|
280
|
-
this.search()
|
|
281
|
-
this.gethuman()
|
|
282
|
-
},
|
|
283
|
-
methods: {
|
|
284
|
-
clear () {
|
|
285
|
-
this.$refs.paged.$refs.criteria.model = {}
|
|
286
|
-
},
|
|
287
|
-
getRes (obj) {
|
|
288
|
-
this.filialeNameStr = obj.res
|
|
289
|
-
this.filialeCodeStr = obj.resids
|
|
290
|
-
console.log(this.filialeNameStr)
|
|
291
|
-
console.log(this.filialeCodeStr)
|
|
292
|
-
},
|
|
293
|
-
showpager () {
|
|
294
|
-
// this.$refs.cp.pager = true
|
|
295
|
-
this.$dispatch('hiddenbtn')
|
|
296
|
-
},
|
|
297
|
-
search () {
|
|
298
|
-
let condition = "1=1 and r.f_filiale like '%" + this.$login.f.f_fengongsi + "%'"
|
|
299
|
-
// debugger
|
|
300
|
-
// let condition = args.condition
|
|
301
|
-
debugger
|
|
302
|
-
this.model.search(condition)
|
|
303
|
-
this.modeluse.search(condition)
|
|
304
|
-
let condition1 = condition
|
|
305
|
-
this.price.search(condition1)
|
|
306
|
-
},
|
|
307
|
-
update_way (row) {
|
|
308
|
-
console.log('进入修改方法')
|
|
309
|
-
this.selectItem = {}
|
|
310
|
-
this.billID = row.id
|
|
311
|
-
this.updateControl = true
|
|
312
|
-
},
|
|
313
|
-
closeUpdate () {
|
|
314
|
-
this.updateControl = false
|
|
315
|
-
},
|
|
316
|
-
confirm () {
|
|
317
|
-
let data = {
|
|
318
|
-
f_bill_style: this.selectItem.f_bill_style[0],
|
|
319
|
-
id: this.billID
|
|
320
|
-
}
|
|
321
|
-
console.log('数据:' + JSON.stringify(this.selectItem))
|
|
322
|
-
this.$resetpost('rs/entity/t_charge_record', data).then((res) => {
|
|
323
|
-
console.log('返回值:' + JSON.stringify(res.data))
|
|
324
|
-
if (res.data.id > 0) {
|
|
325
|
-
// this.$showMessage('修改成功!')
|
|
326
|
-
this.closeUpdate()
|
|
327
|
-
this.search()
|
|
328
|
-
}
|
|
329
|
-
})
|
|
330
|
-
},
|
|
331
|
-
selfSearch (args) {
|
|
332
|
-
args.condition = args.condition + ` and a.f_filialeids like '%${this.filialeCodeStr}%'`
|
|
333
|
-
console.log('condition:', args.condition)
|
|
334
|
-
this.model.search(args.condition, args.model)
|
|
335
|
-
this.modeluse.search(args.condition, args.model)
|
|
336
|
-
this.price.search(args.condition, args.model)
|
|
337
|
-
},
|
|
338
|
-
cleaner () {
|
|
339
|
-
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
340
|
-
this.$refs.paged.$refs.criteria.model[key] = ''
|
|
341
|
-
})
|
|
342
|
-
console.log('condition:', this.$refs.paged.$refs.criteria.condition)
|
|
343
|
-
this.$refs.paged.$refs.criteria.condition = this.$refs.paged.$refs.criteria.condition+" and r.f_filiale like '%"+this.$login.f.f_fengongsi+"%'"
|
|
344
|
-
this.model.search(this.$refs.paged.$refs.criteria.condition)
|
|
345
|
-
this.modeluse.search(this.$refs.paged.$refs.criteria.condition)
|
|
346
|
-
this.price.search(this.$refs.paged.$refs.criteria.condition)
|
|
347
|
-
},
|
|
348
|
-
gethuman () {
|
|
349
|
-
console.log('获取人员')
|
|
350
|
-
this.$resetpost('rs/logic/getChargeList', {data: {condition: `1=1`}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
351
|
-
// this.params.rows.splice(index, 1)
|
|
352
|
-
console.log('获取成功', res)
|
|
353
|
-
let house = []
|
|
354
|
-
for (let row of res.data.human) {
|
|
355
|
-
house.push({label: row.f_charge_collectors, value: row.f_charge_collectors})
|
|
356
|
-
}
|
|
357
|
-
this.human = house
|
|
358
|
-
let house2 = []
|
|
359
|
-
for (let row of res.data.f){
|
|
360
|
-
house2.push({label: row.r.f_filiale,value: row.r.f_filiale})
|
|
361
|
-
}
|
|
362
|
-
this.filiale = house2
|
|
363
|
-
let house3 = []
|
|
364
|
-
for (let row of res.data.method){
|
|
365
|
-
house3.push({label: row.f_payment_method,value: row.f_payment_method})
|
|
366
|
-
}
|
|
367
|
-
this.method = house3
|
|
368
|
-
})
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
computed: {
|
|
372
|
-
|
|
373
|
-
},
|
|
374
|
-
events: {
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
watch: {
|
|
378
|
-
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
</script>
|
|
382
|
-
<style >
|
|
383
|
-
.linehhh{
|
|
384
|
-
line-height: 35px;
|
|
385
|
-
}
|
|
386
|
-
.datapanel {
|
|
387
|
-
color: #333;
|
|
388
|
-
background-color: white;
|
|
389
|
-
padding: 10px 20px;
|
|
390
|
-
border-radius:15px;
|
|
391
|
-
}
|
|
392
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex bg-white p-10 datapanel" >
|
|
3
|
+
<div style="flex: 1.5;height: 100%" class="flex">
|
|
4
|
+
<p class="bg-info text-center" style="padding: 8px;font-size: 20px">报建收费记录
|
|
5
|
+
</p>
|
|
6
|
+
<div class="flex" style="height: 90%">
|
|
7
|
+
<criteria-paged :model="model" v-ref:paged >
|
|
8
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
|
|
9
|
+
|
|
10
|
+
<div novalidate class="form-inline auto" partial>
|
|
11
|
+
<div class="form-group col-sm-2">
|
|
12
|
+
<label class="col-sm-4 control-label linehhh">报建编号</label>
|
|
13
|
+
<div class="col-sm-8">
|
|
14
|
+
<input type="text" class="form-control" v-model="model.f_apply_num"
|
|
15
|
+
style="width:100%"
|
|
16
|
+
condition="a.f_apply_num like '%{}%'" placeholder='报建编号'>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="form-group col-sm-2 ">
|
|
20
|
+
<label class="col-sm-4 control-label linehhh ">开始日期</label>
|
|
21
|
+
<div class="col-sm-8">
|
|
22
|
+
<datepicker placeholder="开始日期"
|
|
23
|
+
v-model="model.f_operate_start_date"
|
|
24
|
+
style="width:100%"
|
|
25
|
+
:value.sync="model.f_operate_start_date"
|
|
26
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
27
|
+
condition="f_charge_date >= '{}'"
|
|
28
|
+
></datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="form-group col-sm-2">
|
|
32
|
+
<label class="col-sm-4 control-label linehhh ">结束日期</label>
|
|
33
|
+
<div class="col-sm-8">
|
|
34
|
+
<datepicker placeholder="结束日期"
|
|
35
|
+
style="width:100%"
|
|
36
|
+
v-model="model.f_operate_end_date"
|
|
37
|
+
:value.sync="model.f_operate_end_date"
|
|
38
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
39
|
+
condition="f_charge_date <= '{}'"
|
|
40
|
+
></datepicker>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="form-group col-sm-2">
|
|
44
|
+
<label class="col-sm-4 control-label linehhh">收费人员</label>
|
|
45
|
+
<div class="col-sm-8">
|
|
46
|
+
<v-select :value.sync="model.f_charge_collectors" v-model="model.f_charge_collectors"
|
|
47
|
+
:options='$parent.$parent.human' placeholder='收费人员' width="100%"
|
|
48
|
+
close-on-select condition="f_charge_collectors = '{}'">
|
|
49
|
+
</v-select>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="form-group col-sm-2">
|
|
54
|
+
<label class="col-sm-4 control-label linehhh">是否冲正</label>
|
|
55
|
+
<div class="col-sm-8">
|
|
56
|
+
<v-select :value.sync="model.f_is_correct" v-model="model.f_is_correct"
|
|
57
|
+
:options='$parent.$parent.correct' placeholder='是否冲正' :width="100" style="width:100%"
|
|
58
|
+
close-on-select condition="f_is_correct = '{}'">
|
|
59
|
+
</v-select>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="form-group col-sm-2">
|
|
63
|
+
<label class="col-sm-4 control-label linehhh">是否有效</label>
|
|
64
|
+
<div class="col-sm-8">
|
|
65
|
+
<v-select :value.sync="model.f_charging_status" v-model="model.f_charging_status"
|
|
66
|
+
:options='$parent.$parent.state' placeholder='是否有效' width="100%"
|
|
67
|
+
close-on-select condition="f_charging_status = '{}'">
|
|
68
|
+
</v-select>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="form-group col-sm-2">
|
|
72
|
+
<label class="col-sm-4 control-label linehhh">收费方式</label>
|
|
73
|
+
<div class="col-sm-8">
|
|
74
|
+
<v-select :value.sync="model.f_payment_method" v-model="model.f_payment_method"
|
|
75
|
+
:options='$parent.$parent.method' placeholder='收费方式' width="100%"
|
|
76
|
+
close-on-select condition="f_payment_method = '{}'">
|
|
77
|
+
</v-select>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="form-group col-sm-2">
|
|
81
|
+
<label class="col-sm-4 control-label linehhh ">用户地址</label>
|
|
82
|
+
<div class="col-sm-8">
|
|
83
|
+
<input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
|
|
84
|
+
v-on:keyup.enter="search" style="width:100%"
|
|
85
|
+
condition="f_address like '%{}%'">
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="form-group col-sm-2">
|
|
89
|
+
<label class="col-sm-4 control-label linehhh">联系人</label>
|
|
90
|
+
<div class="col-sm-8">
|
|
91
|
+
<input type="text" class="form-control" placeholder='联系人'
|
|
92
|
+
v-model="model.f_user_name"
|
|
93
|
+
v-on:keyup.enter="search" style="width:100%"
|
|
94
|
+
condition="a.f_user_name like '%{}%'">
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<div class="form-group col-sm-2">
|
|
99
|
+
<label class="col-sm-4 control-label linehhh">组织机构</label>
|
|
100
|
+
<div class="col-sm-8">
|
|
101
|
+
<right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source'
|
|
102
|
+
@re-res="$parent.$parent.getRes" condition="f_orgstr like {}"></right-tree>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div class="form-group col-sm-2">
|
|
107
|
+
<label class="col-sm-4 control-label linehhh">报装类型</label>
|
|
108
|
+
<div class="col-sm-8">
|
|
109
|
+
<v-select :value.sync="model.f_work_type" v-model="model.f_work_type"
|
|
110
|
+
:options='$parent.$parent.worktype' width="100%"
|
|
111
|
+
close-on-select condition="a.f_work_type = '{}'">
|
|
112
|
+
</v-select>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<div class="form-group col-sm-2">
|
|
117
|
+
<label class="col-sm-4 control-label linehhh">用户类型</label>
|
|
118
|
+
<div class="col-sm-8">
|
|
119
|
+
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
120
|
+
:options='$parent.$parent.usertype' width="100%"
|
|
121
|
+
close-on-select condition="a.f_user_type = '{}'">
|
|
122
|
+
</v-select>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div class="form-group">
|
|
127
|
+
<button class="btn btn-primary" @click="search(),$parent.$parent.showpager()">
|
|
128
|
+
<span class="glyphicon glyphicon-search"></span>查询</button>
|
|
129
|
+
<button class="btn-primary btn btn-sm" @click.prevent="$parent.$parent.clear()">清空</button>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</criteria>
|
|
133
|
+
<data-grid :model="model" v-ref:grid partial='list'>
|
|
134
|
+
<template partial='head'>
|
|
135
|
+
<tr>
|
|
136
|
+
<th><nobr>序号</nobr></th>
|
|
137
|
+
<th><nobr>收费金额</nobr></th>
|
|
138
|
+
<th><nobr>用户</nobr></th>
|
|
139
|
+
<th><nobr>地址</nobr></th>
|
|
140
|
+
<th><nobr>收费人员</nobr></th>
|
|
141
|
+
<th><nobr>是否有效</nobr></th>
|
|
142
|
+
<th><nobr>付款方式</nobr></th>
|
|
143
|
+
<th><nobr>收费日期</nobr></th>
|
|
144
|
+
<th><nobr>报建编号</nobr></th>
|
|
145
|
+
<th><nobr>分公司</nobr></th>
|
|
146
|
+
<th><nobr>营业网点</nobr></th>
|
|
147
|
+
<th><nobr>发票号码</nobr></th>
|
|
148
|
+
<th><nobr>票据类型</nobr></th>
|
|
149
|
+
<th><nobr>总应缴金额</nobr></th>
|
|
150
|
+
<th><nobr>已交金额</nobr></th>
|
|
151
|
+
<th><nobr>未交金额</nobr></th>
|
|
152
|
+
<th><nobr>操作</nobr></th>
|
|
153
|
+
</tr>
|
|
154
|
+
</template>
|
|
155
|
+
<template partial='body'>
|
|
156
|
+
<td style="text-align: center;">{{$index+1}}</td>
|
|
157
|
+
<td style="text-align: center;">{{row.f_charge_money}}</td>
|
|
158
|
+
<td style="text-align: center;">{{row.f_user_name}}</td>
|
|
159
|
+
<td style="text-align: center;">{{row.f_address}}</td>
|
|
160
|
+
<!-- <td style="text-align: center;">{{// row.f_charge_item}}</td>-->
|
|
161
|
+
<td style="text-align: center;">{{row.f_charge_collectors}}</td>
|
|
162
|
+
<td style="text-align: center;">{{row.f_charging_status}}</td>
|
|
163
|
+
<td style="text-align: center;">{{row.f_payment_method}}</td>
|
|
164
|
+
<td style="text-align: center;">{{row.f_charge_date}}</td>
|
|
165
|
+
<td style="text-align: center;">{{row.f_apply_num}}</td>
|
|
166
|
+
<td style="text-align: center;">{{row.f_filiale}}</td>
|
|
167
|
+
<td style="text-align: center;">{{row.f_outlets}}</td>
|
|
168
|
+
<td style="text-align: center;">{{row.f_bill_number}}</td>
|
|
169
|
+
<td style="text-align: center;">{{row.f_bill_style}}</td>
|
|
170
|
+
<td style="text-align: center;">{{row.f_total_cost}}</td>
|
|
171
|
+
<td style="text-align: center;">{{row.app_f_cumulative_money}}</td>
|
|
172
|
+
<td style="text-align: center;">{{row.f_unaccounts_money}}</td>
|
|
173
|
+
<td style="text-align: center;">
|
|
174
|
+
<button class="btn-primary btn btn-sm" @click.prevent="$parent.$parent.$parent.update_way(row)">修改</button>
|
|
175
|
+
</td>
|
|
176
|
+
</template>
|
|
177
|
+
</data-grid>
|
|
178
|
+
</criteria-paged>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="flex" style="height: 10%">
|
|
181
|
+
<div novalidate class="form-inline auto" partial>
|
|
182
|
+
<p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
|
|
183
|
+
<span style="color: red">{{modeluse.rows.length}}</span>笔,
|
|
184
|
+
收款金额合计<span style="color: red">{{price.rows[0].f_charge_money}}</span>元,
|
|
185
|
+
<!--合计应缴总金额<span style="color: red">{{price.rows[0].f_total_cost}}</span>元,
|
|
186
|
+
已缴<span style="color: red">{{price.rows[0].f_cumulative_money}}</span>元,未缴<span style="color: red">{{price.rows[0].f_unaccounts_money}}</span>元-->
|
|
187
|
+
</p>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
<!--修改弹出框-->
|
|
192
|
+
<modal :show.sync="updateControl" v-ref:modal backdrop="false">
|
|
193
|
+
<header slot="modal-header" class="modal-header">
|
|
194
|
+
<button type="button" class="close" @click="closeUpdate()"><span>×</span></button>
|
|
195
|
+
<h4 class="modal-title">修改</h4>
|
|
196
|
+
</header>
|
|
197
|
+
<article slot="modal-body" class="modal-body" >
|
|
198
|
+
<div class="from-group" style="width: 100%">
|
|
199
|
+
<label style="width: 15%;float: left">票据类型</label>
|
|
200
|
+
<v-select :value.sync="selectItem.f_bill_style" v-model="selectItem.f_bill_style"
|
|
201
|
+
:options='billstyle' placeholder='请选择' style="width: 80%;float: left"
|
|
202
|
+
close-on-select >
|
|
203
|
+
</v-select>
|
|
204
|
+
</div>
|
|
205
|
+
</article>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
209
|
+
<div class="from-group" style="width: 100%;float: left">
|
|
210
|
+
<button v-show="updateControl" type="button" class="btn btn-default" @click='closeUpdate'>取消</button>
|
|
211
|
+
<button v-show="updateControl" type="button" class="btn btn-success" @click='confirm'>确认</button>
|
|
212
|
+
</div>
|
|
213
|
+
</footer>
|
|
214
|
+
</modal>
|
|
215
|
+
</div>
|
|
216
|
+
</template>
|
|
217
|
+
<script>
|
|
218
|
+
import * as Util from '../../../../Util'
|
|
219
|
+
|
|
220
|
+
import { PagedList } from 'vue-client'
|
|
221
|
+
import {HttpResetClass} from 'vue-client'
|
|
222
|
+
Date.prototype.Format = function (fmt) {
|
|
223
|
+
var o = {
|
|
224
|
+
"M+": this.getMonth() + 1, //月份
|
|
225
|
+
"d+": this.getDate(), //日
|
|
226
|
+
"H+": this.getHours(), //小时
|
|
227
|
+
"m+": this.getMinutes(), //分
|
|
228
|
+
"s+": this.getSeconds(), //秒
|
|
229
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
230
|
+
"S": this.getMilliseconds() //毫秒
|
|
231
|
+
};
|
|
232
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
233
|
+
for (var k in o)
|
|
234
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
235
|
+
return fmt;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export default {
|
|
239
|
+
title: '报建收费查看',
|
|
240
|
+
name: 'ApplyChargeSearch',
|
|
241
|
+
data () {
|
|
242
|
+
return {
|
|
243
|
+
filialeNameStr: null,
|
|
244
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
|
245
|
+
userid: this.$login.f.id,
|
|
246
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
247
|
+
// f_operate_start_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
248
|
+
// f_operate_end_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
249
|
+
model: new PagedList('rs/sql/getApplyCharge', 30, {orderitem: '`id`'}),
|
|
250
|
+
modeluse: new PagedList('rs/sql/getApplyCharge', 999999, {orderitem: '`id`'}),
|
|
251
|
+
price: new PagedList('rs/sql/getChargeAll', 999999, {orderitem: '`f_charge_money`'}),
|
|
252
|
+
human: [],
|
|
253
|
+
filiale: [],
|
|
254
|
+
method: this.$appdata.getParam('付款方式'),
|
|
255
|
+
usertype:[
|
|
256
|
+
{label: '民用', value: '民用'},
|
|
257
|
+
{label: '非民用', value: '非民用'}
|
|
258
|
+
],
|
|
259
|
+
worktype:[
|
|
260
|
+
{label: '新报装', value: '新报装'},
|
|
261
|
+
{label: '改管', value: '改管'}
|
|
262
|
+
],
|
|
263
|
+
correct: [
|
|
264
|
+
{label: '是', value: '是'},
|
|
265
|
+
{label: '否', value: '否'}
|
|
266
|
+
],
|
|
267
|
+
state: [
|
|
268
|
+
{label: '有效', value: '有效'},
|
|
269
|
+
{label: '无效', value: '无效'}
|
|
270
|
+
],
|
|
271
|
+
selectItem: {},
|
|
272
|
+
billstyle: this.$appdata.getParam('发票类型'),
|
|
273
|
+
updateControl: false,
|
|
274
|
+
billID: 0
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
ready () {
|
|
278
|
+
this.$refs.paged.$refs.criteria.model.f_operate_start_date = Util.toStandardDateString() + ' 00:00:00'
|
|
279
|
+
this.$refs.paged.$refs.criteria.model.f_operate_end_date = Util.toStandardDateString() + ' 23:59:59'
|
|
280
|
+
this.search()
|
|
281
|
+
this.gethuman()
|
|
282
|
+
},
|
|
283
|
+
methods: {
|
|
284
|
+
clear () {
|
|
285
|
+
this.$refs.paged.$refs.criteria.model = {}
|
|
286
|
+
},
|
|
287
|
+
getRes (obj) {
|
|
288
|
+
this.filialeNameStr = obj.res
|
|
289
|
+
this.filialeCodeStr = obj.resids
|
|
290
|
+
console.log(this.filialeNameStr)
|
|
291
|
+
console.log(this.filialeCodeStr)
|
|
292
|
+
},
|
|
293
|
+
showpager () {
|
|
294
|
+
// this.$refs.cp.pager = true
|
|
295
|
+
this.$dispatch('hiddenbtn')
|
|
296
|
+
},
|
|
297
|
+
search () {
|
|
298
|
+
let condition = "1=1 and r.f_filiale like '%" + this.$login.f.f_fengongsi + "%'"
|
|
299
|
+
// debugger
|
|
300
|
+
// let condition = args.condition
|
|
301
|
+
debugger
|
|
302
|
+
this.model.search(condition)
|
|
303
|
+
this.modeluse.search(condition)
|
|
304
|
+
let condition1 = condition
|
|
305
|
+
this.price.search(condition1)
|
|
306
|
+
},
|
|
307
|
+
update_way (row) {
|
|
308
|
+
console.log('进入修改方法')
|
|
309
|
+
this.selectItem = {}
|
|
310
|
+
this.billID = row.id
|
|
311
|
+
this.updateControl = true
|
|
312
|
+
},
|
|
313
|
+
closeUpdate () {
|
|
314
|
+
this.updateControl = false
|
|
315
|
+
},
|
|
316
|
+
confirm () {
|
|
317
|
+
let data = {
|
|
318
|
+
f_bill_style: this.selectItem.f_bill_style[0],
|
|
319
|
+
id: this.billID
|
|
320
|
+
}
|
|
321
|
+
console.log('数据:' + JSON.stringify(this.selectItem))
|
|
322
|
+
this.$resetpost('rs/entity/t_charge_record', data).then((res) => {
|
|
323
|
+
console.log('返回值:' + JSON.stringify(res.data))
|
|
324
|
+
if (res.data.id > 0) {
|
|
325
|
+
// this.$showMessage('修改成功!')
|
|
326
|
+
this.closeUpdate()
|
|
327
|
+
this.search()
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
},
|
|
331
|
+
selfSearch (args) {
|
|
332
|
+
args.condition = args.condition + ` and a.f_filialeids like '%${this.filialeCodeStr}%'`
|
|
333
|
+
console.log('condition:', args.condition)
|
|
334
|
+
this.model.search(args.condition, args.model)
|
|
335
|
+
this.modeluse.search(args.condition, args.model)
|
|
336
|
+
this.price.search(args.condition, args.model)
|
|
337
|
+
},
|
|
338
|
+
cleaner () {
|
|
339
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
340
|
+
this.$refs.paged.$refs.criteria.model[key] = ''
|
|
341
|
+
})
|
|
342
|
+
console.log('condition:', this.$refs.paged.$refs.criteria.condition)
|
|
343
|
+
this.$refs.paged.$refs.criteria.condition = this.$refs.paged.$refs.criteria.condition+" and r.f_filiale like '%"+this.$login.f.f_fengongsi+"%'"
|
|
344
|
+
this.model.search(this.$refs.paged.$refs.criteria.condition)
|
|
345
|
+
this.modeluse.search(this.$refs.paged.$refs.criteria.condition)
|
|
346
|
+
this.price.search(this.$refs.paged.$refs.criteria.condition)
|
|
347
|
+
},
|
|
348
|
+
gethuman () {
|
|
349
|
+
console.log('获取人员')
|
|
350
|
+
this.$resetpost('rs/logic/getChargeList', {data: {condition: `1=1`}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
351
|
+
// this.params.rows.splice(index, 1)
|
|
352
|
+
console.log('获取成功', res)
|
|
353
|
+
let house = []
|
|
354
|
+
for (let row of res.data.human) {
|
|
355
|
+
house.push({label: row.f_charge_collectors, value: row.f_charge_collectors})
|
|
356
|
+
}
|
|
357
|
+
this.human = house
|
|
358
|
+
let house2 = []
|
|
359
|
+
for (let row of res.data.f){
|
|
360
|
+
house2.push({label: row.r.f_filiale,value: row.r.f_filiale})
|
|
361
|
+
}
|
|
362
|
+
this.filiale = house2
|
|
363
|
+
let house3 = []
|
|
364
|
+
for (let row of res.data.method){
|
|
365
|
+
house3.push({label: row.f_payment_method,value: row.f_payment_method})
|
|
366
|
+
}
|
|
367
|
+
this.method = house3
|
|
368
|
+
})
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
computed: {
|
|
372
|
+
|
|
373
|
+
},
|
|
374
|
+
events: {
|
|
375
|
+
|
|
376
|
+
},
|
|
377
|
+
watch: {
|
|
378
|
+
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
</script>
|
|
382
|
+
<style >
|
|
383
|
+
.linehhh{
|
|
384
|
+
line-height: 35px;
|
|
385
|
+
}
|
|
386
|
+
.datapanel {
|
|
387
|
+
color: #333;
|
|
388
|
+
background-color: white;
|
|
389
|
+
padding: 10px 20px;
|
|
390
|
+
border-radius:15px;
|
|
391
|
+
}
|
|
392
|
+
</style>
|