apply-clients 7.1.34 → 7.1.37
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/dist-android/static/0.50054aa998577d450157.js +2 -0
- package/dist-android/static/1.0b685d8dcbf4f3a8a5b2.js +1 -0
- package/dist-android/static/10.2a698c421c0ff5f57336.js +2 -0
- package/dist-android/static/11.75a39568e320abbddcc2.js +2 -0
- package/dist-android/static/12.4ac0c584da492acc599d.js +1 -0
- package/dist-android/static/13.5471bac3b39798923a79.js +1 -0
- package/dist-android/static/14.ee274728fdeb5107c357.js +1 -0
- package/dist-android/static/15.a1dc233c1804ede2ba87.js +1 -0
- package/dist-android/static/16.5081ea8a90d0dacbc748.js +1 -0
- package/dist-android/static/17.5b5184c9a9337a88d4f9.js +1 -0
- package/dist-android/static/18.0c99e5cb0de0f76008f6.js +1 -0
- package/dist-android/static/19.b50c8bf85b8e7fb27e2a.js +1 -0
- package/dist-android/static/2.16718caad0da13b463a3.js +1 -0
- package/dist-android/static/20.8f6767f58df1fde18784.js +1 -0
- package/dist-android/static/21.026f5cbfd90d70d8dd3a.js +1 -0
- package/dist-android/static/22.4631f8885615e9b6ad6e.js +1 -0
- package/dist-android/static/23.437b569f91863452daeb.js +1 -0
- package/dist-android/static/24.f1310985a29496bc5fd8.js +1 -0
- package/dist-android/static/25.b6dcf8c6d26f44035506.js +1 -0
- package/dist-android/static/27.2185c9e2e7116302e1e1.js +13 -0
- package/dist-android/static/28.b429eaf351968226c395.js +3 -0
- package/dist-android/static/29.aed6b18ccda9ca3748ce.js +3 -0
- package/dist-android/static/3.761de5413a2ed045ab10.js +1 -0
- package/dist-android/static/30.567f5fbffc0601227294.js +2 -0
- package/dist-android/static/31.179f87c71c11fd562feb.js +1 -0
- package/dist-android/static/32.8d45d3f6c5e874582cff.js +1 -0
- package/dist-android/static/33.32fd8d2f4e6e7b065a5c.js +1 -0
- package/dist-android/static/34.df47f9984baec20bdf5b.js +1 -0
- package/dist-android/static/35.5883200f073b546cb1a3.js +1 -0
- package/dist-android/static/36.477f89087e507526163f.js +1 -0
- package/dist-android/static/37.b82438692bca848519f6.js +1 -0
- package/dist-android/static/38.83c950bebdb997be2ef8.js +1 -0
- package/dist-android/static/39.333e42c6dbabf1bf2706.js +1 -0
- package/dist-android/static/4.eb190515d001a4e1bebd.js +13 -0
- package/dist-android/static/40.f6807724af2482375d7c.js +1 -0
- package/dist-android/static/41.92f39c44002772179f48.js +1 -0
- package/dist-android/static/42.662a0643f36dc759abc0.js +1 -0
- package/dist-android/static/43.5b55816aa2ca7b510d72.js +1 -0
- package/dist-android/static/44.4a6af5dd359e3973dea4.js +1 -0
- package/dist-android/static/45.d5992c604ad9eb4f40d2.js +1 -0
- package/dist-android/static/46.aa87912e9361ab053234.js +1 -0
- package/dist-android/static/47.b9efca55c1ea582c59e7.js +2 -0
- package/dist-android/static/48.8902ce91c715d61c63ef.js +1 -0
- package/dist-android/static/49.dd2591b071fe1901d2f2.js +2 -0
- package/dist-android/static/5.304b463f21c8253aa514.js +13 -0
- package/dist-android/static/50.e49f64d967a7f7350105.js +1 -0
- package/dist-android/static/51.0d311b6815373c5a3b1b.js +1 -0
- package/dist-android/static/52.344f9d59bb5cb156380d.js +1 -0
- package/dist-android/static/53.289984b9a04a7d11ffef.js +1 -0
- package/dist-android/static/54.5808cc57ddb689577efe.js +1 -0
- package/dist-android/static/55.9874aac28d0d80b55860.js +1 -0
- package/dist-android/static/56.babac04ffcc93c5573ed.js +1 -0
- package/dist-android/static/57.ca9993d9b0137ec93a81.js +1 -0
- package/dist-android/static/58.be8a5ac661eb638aff79.js +1 -0
- package/dist-android/static/59.2d0116e8a66e13cbabe2.js +1 -0
- package/dist-android/static/6.3f10426d99466042d079.js +13 -0
- package/dist-android/static/60.e60b562292633421a3d7.js +1 -0
- package/dist-android/static/61.492b25e8e1b66366329b.js +1 -0
- package/dist-android/static/62.24924f3f6fd5f97975d1.js +1 -0
- package/dist-android/static/63.7628250218be54b5c52f.js +1 -0
- package/dist-android/static/64.0c2d7593ebede3d30dc8.js +1 -0
- package/dist-android/static/65.220dfd6b1dd8e75c9d08.js +1 -0
- package/dist-android/static/66.da91b8ed2181ced4a4de.js +1 -0
- package/dist-android/static/67.75a3f13bea3c0ac4bbbe.js +1 -0
- package/dist-android/static/68.37aa2fd75666d1461dac.js +1 -0
- package/dist-android/static/69.e6a3e52929239e08b8d3.js +1 -0
- package/dist-android/static/7.57945431c1f505e425c1.js +13 -0
- package/dist-android/static/70.945cf028761bd66a2302.js +1 -0
- package/dist-android/static/71.0ae45dcfc105541b051d.js +1 -0
- package/dist-android/static/72.d89a35482e9c434d0bd0.js +1 -0
- package/dist-android/static/8.830a99f33590aeb637a3.js +13 -0
- package/dist-android/static/9.2432be88a7316649f45b.js +12 -0
- package/dist-android/static/appca71cf7af0c441a6b6ff.js +135 -0
- package/dist-android/static/doc.jpg +0 -0
- package/dist-android/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/dist-android/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/dist-android/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/dist-android/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
- package/dist-android/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
- package/dist-android/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/dist-android/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/dist-android/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/dist-android/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/dist-android/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/dist-android/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/dist-android/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/dist-android/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/dist-android/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/dist-android/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/dist-android/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/dist-android/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/dist-android/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/dist-android/static/imgerror.jpg +0 -0
- package/dist-android/static/jsoneditor-icons.svg +893 -0
- package/dist-android/static/newStyle/clear.png +0 -0
- package/dist-android/static/newStyle/fife.png +0 -0
- package/dist-android/static/newStyle/hidden.png +0 -0
- package/dist-android/static/newStyle/label-clear.png +0 -0
- package/dist-android/static/newStyle/left-img.png +0 -0
- package/dist-android/static/newStyle/list_ok.png +0 -0
- package/dist-android/static/newStyle/login-check.png +0 -0
- package/dist-android/static/newStyle/login-con.png +0 -0
- package/dist-android/static/newStyle/login-do.gif +0 -0
- package/dist-android/static/newStyle/login-f.png +0 -0
- package/dist-android/static/newStyle/login-info.png +0 -0
- package/dist-android/static/newStyle/login-left.png +0 -0
- package/dist-android/static/newStyle/login-org.png +0 -0
- package/dist-android/static/newStyle/login-pwd.png +0 -0
- package/dist-android/static/newStyle/login-user.png +0 -0
- package/dist-android/static/newStyle/loginbg.gif +0 -0
- package/dist-android/static/newStyle/loginbg1280.gif +0 -0
- package/dist-android/static/newStyle/loginbg1366.gif +0 -0
- package/dist-android/static/newStyle/setting.png +0 -0
- package/dist-android/static/newStyle/setting1.png +0 -0
- package/dist-android/static/newStyle/shirk.png +0 -0
- package/dist-android/static/newStyle/stretch_bottom.png +0 -0
- package/dist-android/static/newStyle/stretch_left.png +0 -0
- package/dist-android/static/newStyle/stretch_right.png +0 -0
- package/dist-android/static/newStyle/stretch_top.png +0 -0
- package/dist-android/static/newStyle/system-off.png +0 -0
- package/dist-android/static/pdf.jpg +0 -0
- package/dist-android/static//344/270/213/350/275/275/350/256/241/345/210/222.png +0 -0
- package/dist-android/static//344/273/273/345/212/241/346/237/245/350/257/242.png +0 -0
- package/dist-android/static//344/277/241/346/201/257/345/205/254/345/221/212.png +0 -0
- package/dist-android/static//345/205/254/345/221/212/346/237/245/347/234/213.png +0 -0
- package/dist-android/static//345/206/214/345/206/205/351/241/272/345/272/217/344/277/256/346/224/271.png +0 -0
- package/dist-android/static//345/215/241/350/241/250/345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/345/256/211/346/243/200.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/345/267/241/346/243/200.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/346/212/242/344/277/256.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/346/212/245/350/243/205.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/346/223/215/344/275/234.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/347/273/264/344/277/256.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/347/274/264/350/264/271.png +0 -0
- package/dist-android/static//345/234/250/347/272/277/351/200/232/346/260/224.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/345/267/262/345/212/236.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/345/276/205/345/212/236.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/346/212/275/345/215/225.png +0 -0
- package/dist-android/static//345/256/211/350/243/205/344/270/212/344/274/240.png +0 -0
- package/dist-android/static//345/256/211/350/243/205/345/267/262/345/212/236.png +0 -0
- package/dist-android/static//345/256/211/350/243/205/345/276/205/345/212/236.png +0 -0
- package/dist-android/static//345/267/241/346/243/200/344/270/212/344/274/240.png +0 -0
- package/dist-android/static//345/267/241/346/243/200/345/267/262/345/212/236.png +0 -0
- package/dist-android/static//345/274/200/345/205/263/351/230/200.png +0 -0
- package/dist-android/static//345/275/242/347/212/2664.png +0 -0
- package/dist-android/static//346/211/271/351/207/217/346/212/204/350/241/250.png +0 -0
- package/dist-android/static//346/212/204/350/241/250/344/270/212/344/274/240.png +0 -0
- package/dist-android/static//346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
- package/dist-android/static//346/212/204/350/241/250/345/276/205/345/212/236.png +0 -0
- package/dist-android/static//346/212/204/350/241/250/350/256/260/345/275/225.png +0 -0
- package/dist-android/static//346/212/245/345/273/272/346/234/215/345/212/241.png +0 -0
- package/dist-android/static//346/224/266/350/264/271/346/261/207/346/200/273/350/241/250.png +0 -0
- package/dist-android/static//346/224/266/350/264/271/350/256/260/345/275/225.png +0 -0
- package/dist-android/static//346/227/245/346/212/245/346/237/245/350/257/242.png +0 -0
- package/dist-android/static//346/241/243/346/241/210/344/277/256/346/224/271.png +0 -0
- package/dist-android/static//346/265/201/347/250/213/344/270/232/345/212/241.png +0 -0
- package/dist-android/static//346/265/201/347/250/213/347/233/221/346/216/247.png +0 -0
- package/dist-android/static//347/247/273/345/212/250/346/212/204/350/241/250.png +0 -0
- package/dist-android/static//347/247/273/345/212/250/346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
- package/dist-android/static//347/273/237/350/256/241/346/212/245/350/241/250.png +0 -0
- package/dist-android/static//347/273/264/344/277/256/346/264/276/345/217/221.png +0 -0
- package/dist-android/static//350/220/245/344/270/232/345/233/276/350/241/250.png +0 -0
- package/dist-android/static//350/241/250/345/206/214/351/241/272/345/272/217.png +0 -0
- package/dist-android/static//350/260/203/344/273/267/350/241/245/345/267/256/347/274/264/350/264/271.png +0 -0
- package/dist-android/static//350/277/233/345/272/246/345/210/227/350/241/250.png +0 -0
- package/dist-android/static//351/200/200/345/207/272/347/231/273/345/275/225.png +0 -0
- package/dist-android/static//351/200/201/346/260/224/344/270/212/344/274/240.png +0 -0
- package/dist-android/static//351/200/201/346/260/224/345/267/262/345/212/236.png +0 -0
- package/dist-android/static//351/200/201/346/260/224/345/276/205/345/212/236.png +0 -0
- package/dist-android/static//351/232/220/346/202/243/345/244/204/347/220/206.png +0 -0
- package/dist-android/static//351/233/206/344/270/255/345/256/211/346/243/200.png +0 -0
- package/dist-android/static//351/253/230/345/257/206/345/205/254/345/221/212.png +0 -0
- package/index.html +30 -30
- package/package.json +1 -1
- package/src/apply.js +69 -69
- package/src/components/image/TXT.png +0 -0
- package/src/components/image/dwg.png +0 -0
- package/src/components/image/dxf.png +0 -0
- package/src/components/product/Function/InstallFunction.vue +1 -1
- package/src/components/product/Function/InstallInfoSelect.vue +281 -281
- package/src/components/product/Process/ExplorationSelect.vue +347 -347
- package/src/components/product/Process/ExplorationUser.vue +1 -1
- package/src/components/product/Process/Processes/InstallationDetails.vue +45 -9
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +261 -249
- package/src/components/product/Process/Processes/chargeManagement.vue +562 -562
- package/src/components/product/Process/Service/ServiceControl.vue +46 -154
- package/src/components/product/ReportForm/GasIgnitionSummary.vue +352 -352
- package/src/components/product/ServiceView.vue +755 -755
- package/src/components/product/Supervisory/SupervisoryControl.vue +1 -1
- package/src/components/product/Supervisory/SupervisoryList.vue +208 -208
- package/src/components/product/Supervisory/SupervisoryhCart.vue +103 -103
- package/src/components/product/VueUtils/ApplyUpload.vue +266 -261
|
@@ -1,562 +1,562 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
3
|
-
<data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
|
|
4
|
-
<template partial='head'>
|
|
5
|
-
<tr>
|
|
6
|
-
<th class="textNoLineBreak">序号</th>
|
|
7
|
-
<th class="textNoLineBreak">缴费单位</th>
|
|
8
|
-
<th class="textNoLineBreak">缴费编号</th>
|
|
9
|
-
<th class="textNoLineBreak">收费金额</th>
|
|
10
|
-
<th class="textNoLineBreak">金额大写</th>
|
|
11
|
-
<th class="textNoLineBreak">付款方式</th>
|
|
12
|
-
<th class="textNoLineBreak">收费人员</th>
|
|
13
|
-
<th class="textNoLineBreak">收费日期</th>
|
|
14
|
-
<th class="textNoLineBreak">备注</th>
|
|
15
|
-
<th class="textNoLineBreak">缴费状态</th>
|
|
16
|
-
<th class="textNoLineBreak">作废人员</th>
|
|
17
|
-
<th class="textNoLineBreak">作废时间</th>
|
|
18
|
-
<th class="textNoLineBreak">作废原因</th>
|
|
19
|
-
<th class="textNoLineBreak">
|
|
20
|
-
<button
|
|
21
|
-
type="button"
|
|
22
|
-
class="btn btn-info head-but"
|
|
23
|
-
@click="$parent.$parent.showChargeModal()"
|
|
24
|
-
:disabled="$parent.$parent.mark === 1 || ($parent.$parent.selectdata.f_cumulative_payment_money >= $parent.$parent.selectdata.f_due_money || $parent.$parent.selectdata.f_surplus_money === 0)"
|
|
25
|
-
>新增收费</button>
|
|
26
|
-
</th>
|
|
27
|
-
</tr>
|
|
28
|
-
</template>
|
|
29
|
-
<template partial='body'>
|
|
30
|
-
<tr>
|
|
31
|
-
<td style="text-align: center;">
|
|
32
|
-
<nobr>{{$index+1}}</nobr>
|
|
33
|
-
</td>
|
|
34
|
-
<td style="text-align: center;">
|
|
35
|
-
<nobr>{{row.f_payer}}</nobr>
|
|
36
|
-
</td>
|
|
37
|
-
<td style="text-align: center;">
|
|
38
|
-
<nobr>{{row.f_charge_number}}</nobr>
|
|
39
|
-
</td>
|
|
40
|
-
<td style="text-align: center;">
|
|
41
|
-
<nobr>{{row.f_charge_money}}</nobr>
|
|
42
|
-
</td>
|
|
43
|
-
<td style="text-align: center;">
|
|
44
|
-
<nobr>{{row.f_amount_words}}</nobr>
|
|
45
|
-
</td>
|
|
46
|
-
<td style="text-align: center;">
|
|
47
|
-
<nobr>{{row.f_payment_method}}</nobr>
|
|
48
|
-
</td>
|
|
49
|
-
<td style="text-align: center;">
|
|
50
|
-
<nobr>{{row.f_charge_collectors}}</nobr>
|
|
51
|
-
</td>
|
|
52
|
-
<td style="text-align: center;">
|
|
53
|
-
<nobr>{{row.f_charge_date}}</nobr>
|
|
54
|
-
</td>
|
|
55
|
-
<td style="text-align: center;">
|
|
56
|
-
<nobr>{{row.f_charge_remarks}}</nobr>
|
|
57
|
-
</td>
|
|
58
|
-
<td style="text-align: center;">
|
|
59
|
-
<nobr>{{row.f_charge_status}}</nobr>
|
|
60
|
-
</td>
|
|
61
|
-
<td style="text-align: center;">
|
|
62
|
-
<nobr>{{row.f_void_staff}}</nobr>
|
|
63
|
-
</td>
|
|
64
|
-
<td style="text-align: center;">
|
|
65
|
-
<nobr>{{row.f_void_date}}</nobr>
|
|
66
|
-
</td>
|
|
67
|
-
<td style="text-align: center;">
|
|
68
|
-
<nobr>{{row.f_void_remarks}}</nobr>
|
|
69
|
-
</td>
|
|
70
|
-
<td style="text-align: center;">
|
|
71
|
-
<nobr>
|
|
72
|
-
<button
|
|
73
|
-
type="button"
|
|
74
|
-
name="button"
|
|
75
|
-
class="btn btn-link"
|
|
76
|
-
:disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
|
|
77
|
-
@click="$parent.$parent.showInvalidModal(row)"
|
|
78
|
-
>作废</button>
|
|
79
|
-
|
|
80
|
-
<!-- <button-->
|
|
81
|
-
<!-- type="button"-->
|
|
82
|
-
<!-- name="button"-->
|
|
83
|
-
<!-- class="btn btn-link"-->
|
|
84
|
-
<!-- @click="$parent.$parent.showPrintModal(row)"-->
|
|
85
|
-
<!-- >打印预览</button>-->
|
|
86
|
-
</nobr>
|
|
87
|
-
</td>
|
|
88
|
-
</tr>
|
|
89
|
-
</template>
|
|
90
|
-
</data-grid>
|
|
91
|
-
|
|
92
|
-
<modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
|
|
93
|
-
<header slot="modal-header" class="modal-header">
|
|
94
|
-
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
95
|
-
<h4 class="modal-title">收费明细</h4>
|
|
96
|
-
</header>
|
|
97
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
98
|
-
<div class="form-group col-sm-12" :class="chargeUseraddress ? '':'has-error'" v-if="selectdata.f_apply_type == '报装'">
|
|
99
|
-
<label class="col-sm-2 control-label">缴费地址:</label>
|
|
100
|
-
<div class="col-sm-10">
|
|
101
|
-
<input-select
|
|
102
|
-
v-model="chargeUseraddress"
|
|
103
|
-
placeholder='请选择'
|
|
104
|
-
:value.sync="chargeUseraddress"
|
|
105
|
-
:options='useraddressList'
|
|
106
|
-
@change="changeUseraddress()"
|
|
107
|
-
class="select select_list"
|
|
108
|
-
:value-single="true"
|
|
109
|
-
width="100%"
|
|
110
|
-
close-on-select ></input-select>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="form-group col-sm-12" :class="charge.f_payer ? '':'has-error'">
|
|
114
|
-
<label class="col-sm-2 control-label">缴费单位:</label>
|
|
115
|
-
<div class="col-sm-10">
|
|
116
|
-
<input type="text"
|
|
117
|
-
class="form-control input_view"
|
|
118
|
-
style="width: 100%"
|
|
119
|
-
placeholder="请输入"
|
|
120
|
-
v-model="charge.f_payer" />
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
<div class="form-group col-sm-12" :class="charge.f_charge_money ? '':'has-error'">
|
|
124
|
-
<label class="col-sm-2 control-label">收费金额:</label>
|
|
125
|
-
<div class="col-sm-10">
|
|
126
|
-
<input type="number"
|
|
127
|
-
class="form-control input_view"
|
|
128
|
-
style="width: 100%"
|
|
129
|
-
placeholder="0.00"
|
|
130
|
-
@keyup="handleInput"
|
|
131
|
-
v-model="charge.f_charge_money" />
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
<div class="form-group col-sm-12" :class="charge.f_payment_method ? '':'has-error'">
|
|
135
|
-
<label class="col-sm-2 control-label">付款方式:</label>
|
|
136
|
-
<div class="col-sm-10">
|
|
137
|
-
<input-select
|
|
138
|
-
v-model="charge.f_payment_method"
|
|
139
|
-
placeholder='请选择'
|
|
140
|
-
:value.sync="charge.f_payment_method"
|
|
141
|
-
:options='paymentMethod'
|
|
142
|
-
class="select select_list"
|
|
143
|
-
:value-single="true"
|
|
144
|
-
width="100%"
|
|
145
|
-
close-on-select ></input-select>
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
|
-
<div class="form-group col-sm-12">
|
|
149
|
-
<label class="col-sm-2 control-label">金额大写:</label>
|
|
150
|
-
<div class="col-sm-10">
|
|
151
|
-
<input type="text"
|
|
152
|
-
class="form-control input_view"
|
|
153
|
-
style="width: 100%"
|
|
154
|
-
:value="smalltoBIG(0)"
|
|
155
|
-
readonly
|
|
156
|
-
v-model.sync="charge.f_amount_words" />
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
<div class="form-group col-sm-12"
|
|
160
|
-
v-if="selectdata.f_apply_type === '散户集体报建' || selectdata.f_apply_type === '煤改气报建'"
|
|
161
|
-
>
|
|
162
|
-
<label class="col-sm-2 control-label">单价(户):</label>
|
|
163
|
-
<div class="col-sm-10">
|
|
164
|
-
<input type="text"
|
|
165
|
-
class="form-control input_view"
|
|
166
|
-
style="width: 100%"
|
|
167
|
-
readonly
|
|
168
|
-
v-model="selectdata.f_price" />
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
<div class="form-group col-sm-12"
|
|
172
|
-
v-if="selectdata.f_apply_type === '散户集体报建' || selectdata.f_apply_type === '煤改气报建'"
|
|
173
|
-
>
|
|
174
|
-
<label class="col-sm-2 control-label">累计缴费金额:</label>
|
|
175
|
-
<div class="col-sm-10">
|
|
176
|
-
<input type="text"
|
|
177
|
-
class="form-control input_view"
|
|
178
|
-
style="width: 100%"
|
|
179
|
-
readonly
|
|
180
|
-
:value="cumulativePaymentMoney" />
|
|
181
|
-
</div>
|
|
182
|
-
</div>
|
|
183
|
-
<div class="form-group col-sm-12"
|
|
184
|
-
v-if="selectdata.f_apply_type === '散户集体报建' || selectdata.f_apply_type === '煤改气报建'"
|
|
185
|
-
>
|
|
186
|
-
<label class="col-sm-2 control-label">未结金额:</label>
|
|
187
|
-
<div class="col-sm-10">
|
|
188
|
-
<input type="text"
|
|
189
|
-
class="form-control input_view"
|
|
190
|
-
style="width: 100%"
|
|
191
|
-
readonly
|
|
192
|
-
:value="outstandingAmount" />
|
|
193
|
-
</div>
|
|
194
|
-
</div>
|
|
195
|
-
<div class="form-group col-sm-12">
|
|
196
|
-
<label class="col-sm-2 control-label">应交总金额:</label>
|
|
197
|
-
<div class="col-sm-10">
|
|
198
|
-
<input type="text"
|
|
199
|
-
class="form-control input_view"
|
|
200
|
-
style="width: 100%"
|
|
201
|
-
readonly
|
|
202
|
-
v-model="selectdata.f_due_money" />
|
|
203
|
-
</div>
|
|
204
|
-
</div>
|
|
205
|
-
<div class="form-group col-sm-12">
|
|
206
|
-
<label class="col-sm-2 control-label">累计缴费总金额:</label>
|
|
207
|
-
<div class="col-sm-10">
|
|
208
|
-
<input type="text"
|
|
209
|
-
class="form-control input_view"
|
|
210
|
-
style="width: 100%"
|
|
211
|
-
readonly
|
|
212
|
-
v-model="selectdata.f_cumulative_payment_money" />
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
<div class="form-group col-sm-12">
|
|
216
|
-
<label class="col-sm-2 control-label">未结总金额:</label>
|
|
217
|
-
<div class="col-sm-10">
|
|
218
|
-
<input type="text"
|
|
219
|
-
class="form-control input_view"
|
|
220
|
-
style="width: 100%"
|
|
221
|
-
readonly
|
|
222
|
-
v-model="selectdata.f_surplus_money" />
|
|
223
|
-
</div>
|
|
224
|
-
</div>
|
|
225
|
-
<div class="form-group col-sm-12">
|
|
226
|
-
<label class="col-sm-2 control-label">备注:</label>
|
|
227
|
-
<div class="col-sm-10">
|
|
228
|
-
<input type="text"
|
|
229
|
-
class="form-control input_view"
|
|
230
|
-
style="width: 100%"
|
|
231
|
-
v-model="charge.f_charge_remarks" />
|
|
232
|
-
</div>
|
|
233
|
-
</div>
|
|
234
|
-
</article>
|
|
235
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
236
|
-
<button type="button" class="btn btn-primary" @click="saveCharge()">新增收费</button>
|
|
237
|
-
</footer>
|
|
238
|
-
</modal>
|
|
239
|
-
|
|
240
|
-
<modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :large="true" :backdrop="false" title="作废收费">
|
|
241
|
-
<header slot="modal-header" class="modal-header">
|
|
242
|
-
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
243
|
-
<h4 class="modal-title">作废收费</h4>
|
|
244
|
-
</header>
|
|
245
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
246
|
-
<div class="form-group col-sm-12" v-if="selectdata.f_apply_type !== '开发商集体报装'">
|
|
247
|
-
<label class="col-sm-2 control-label">缴费地址:</label>
|
|
248
|
-
<div class="col-sm-10">
|
|
249
|
-
<input type="text"
|
|
250
|
-
class="form-control input_view"
|
|
251
|
-
style="width: 100%"
|
|
252
|
-
readonly
|
|
253
|
-
v-model="charge.f_useraddress" />
|
|
254
|
-
</div>
|
|
255
|
-
</div>
|
|
256
|
-
<div class="form-group col-sm-12">
|
|
257
|
-
<label class="col-sm-2 control-label">收费金额:</label>
|
|
258
|
-
<div class="col-sm-10">
|
|
259
|
-
<input type="text"
|
|
260
|
-
class="form-control input_view"
|
|
261
|
-
style="width: 100%"
|
|
262
|
-
readonly
|
|
263
|
-
v-model="charge.f_charge_money" />
|
|
264
|
-
</div>
|
|
265
|
-
</div>
|
|
266
|
-
<div class="form-group col-sm-12">
|
|
267
|
-
<label class="col-sm-2 control-label">付款方式:</label>
|
|
268
|
-
<div class="col-sm-10">
|
|
269
|
-
<input type="text"
|
|
270
|
-
class="form-control input_view"
|
|
271
|
-
style="width: 100%"
|
|
272
|
-
readonly
|
|
273
|
-
v-model="charge.f_payment_method" />
|
|
274
|
-
</div>
|
|
275
|
-
</div>
|
|
276
|
-
<div class="form-group col-sm-12">
|
|
277
|
-
<label class="col-sm-2 control-label">金额大写:</label>
|
|
278
|
-
<div class="col-sm-10">
|
|
279
|
-
<input type="text"
|
|
280
|
-
class="form-control input_view"
|
|
281
|
-
style="width: 100%"
|
|
282
|
-
readonly
|
|
283
|
-
v-model="charge.f_amount_words" />
|
|
284
|
-
</div>
|
|
285
|
-
</div>
|
|
286
|
-
<div class="form-group col-sm-12">
|
|
287
|
-
<label class="col-sm-2 control-label">收费人员:</label>
|
|
288
|
-
<div class="col-sm-10">
|
|
289
|
-
<input type="text"
|
|
290
|
-
class="form-control input_view"
|
|
291
|
-
style="width: 100%"
|
|
292
|
-
readonly
|
|
293
|
-
v-model="charge.f_charge_collectors" />
|
|
294
|
-
</div>
|
|
295
|
-
</div>
|
|
296
|
-
<div class="form-group col-sm-12" :class="charge.f_void_remarks ? '':'has-error'">
|
|
297
|
-
<label class="col-sm-2 control-label">作废原因:</label>
|
|
298
|
-
<div class="col-sm-10">
|
|
299
|
-
<input type="text"
|
|
300
|
-
class="form-control input_view"
|
|
301
|
-
style="width: 100%"
|
|
302
|
-
v-model="charge.f_void_remarks" />
|
|
303
|
-
</div>
|
|
304
|
-
</div>
|
|
305
|
-
</article>
|
|
306
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
307
|
-
<button type="button" class="btn btn-primary" @click="invalidApplyCharge()">确认作废</button>
|
|
308
|
-
</footer>
|
|
309
|
-
</modal>
|
|
310
|
-
|
|
311
|
-
<modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
|
|
312
|
-
<header slot="modal-header" class="modal-header">
|
|
313
|
-
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
314
|
-
<h4 class="modal-title">打印预览</h4>
|
|
315
|
-
</header>
|
|
316
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
317
|
-
<apply-print-charge :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-charge>
|
|
318
|
-
</article>
|
|
319
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
320
|
-
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
321
|
-
</footer>
|
|
322
|
-
</modal>
|
|
323
|
-
</div>
|
|
324
|
-
</template>
|
|
325
|
-
<script>
|
|
326
|
-
import {getNowDate,isEmpty} from '../../../Util'
|
|
327
|
-
import {PagedList} from 'vue-client'
|
|
328
|
-
import {HttpResetClass} from 'vue-client'
|
|
329
|
-
|
|
330
|
-
export default {
|
|
331
|
-
title: '收费管理',
|
|
332
|
-
props: {
|
|
333
|
-
selectdata: {
|
|
334
|
-
type: Object
|
|
335
|
-
},
|
|
336
|
-
mark: {
|
|
337
|
-
type: Number,
|
|
338
|
-
default: 0
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
data () {
|
|
342
|
-
return {
|
|
343
|
-
showCharge: false,
|
|
344
|
-
showInvalid: false,
|
|
345
|
-
showPrint: false,
|
|
346
|
-
model: {
|
|
347
|
-
data: null
|
|
348
|
-
},
|
|
349
|
-
charge: {
|
|
350
|
-
|
|
351
|
-
},
|
|
352
|
-
useraddressList: [],
|
|
353
|
-
chargeUseraddress: null
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
ready () {
|
|
357
|
-
this.search()
|
|
358
|
-
},
|
|
359
|
-
methods: {
|
|
360
|
-
print () {
|
|
361
|
-
this.$refs.print.$refs.print.PrintTable()
|
|
362
|
-
},
|
|
363
|
-
showPrintModal(row) {
|
|
364
|
-
this.charge = row
|
|
365
|
-
this.showPrint = true
|
|
366
|
-
},
|
|
367
|
-
changeUseraddress() {
|
|
368
|
-
this.charge.f_useraddress_id = this.chargeUseraddress.f_userinfo_id
|
|
369
|
-
},
|
|
370
|
-
async invalidApplyCharge() {
|
|
371
|
-
if (isEmpty(this.charge.f_void_remarks)) {
|
|
372
|
-
this.$showAlert('请输入作废本次收费原因!!!', 'warning', 3000)
|
|
373
|
-
return
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
let http = new HttpResetClass()
|
|
377
|
-
let data = {
|
|
378
|
-
apply: this.selectdata,
|
|
379
|
-
user: this.$login.f,
|
|
380
|
-
charge: this.charge
|
|
381
|
-
}
|
|
382
|
-
try {
|
|
383
|
-
let res = await http.load('POST', 'rs/logic/invalidApplyCharge', {data:data}, {
|
|
384
|
-
resolveMsg: null,
|
|
385
|
-
rejectMsg: null
|
|
386
|
-
})
|
|
387
|
-
this.selectdata = res.data
|
|
388
|
-
} catch (e) {
|
|
389
|
-
this.$showAlert(e.data, 'danger', 3000)
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
394
|
-
},
|
|
395
|
-
showInvalidModal(row) {
|
|
396
|
-
this.charge = row
|
|
397
|
-
this.showInvalid = true
|
|
398
|
-
},
|
|
399
|
-
handleInput(e) {
|
|
400
|
-
// 通过正则过滤小数点后两位
|
|
401
|
-
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
402
|
-
this.charge.f_amount_words = this.smalltoBIG(e.target.value)
|
|
403
|
-
},
|
|
404
|
-
async saveCharge() {
|
|
405
|
-
if (isEmpty(this.charge.f_useraddress_id) && this.selectdata.f_apply_type == '报装') {
|
|
406
|
-
this.$showAlert('请选择缴费的地址信息!!!', 'warning', 3000)
|
|
407
|
-
return
|
|
408
|
-
}
|
|
409
|
-
if (Number(this.charge.f_charge_money) === 0 || isEmpty(this.charge.f_charge_money)) {
|
|
410
|
-
this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
|
|
411
|
-
return
|
|
412
|
-
}
|
|
413
|
-
if ((Number(this.charge.f_charge_money) > Number(this.selectdata.f_surplus_money)) && this.selectdata.f_apply_type === '开发商集体报装') {
|
|
414
|
-
this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
|
|
415
|
-
return
|
|
416
|
-
}
|
|
417
|
-
if (this.selectdata.f_apply_type === '散户集体报装' || this.selectdata.f_apply_type === '煤改气报装') {
|
|
418
|
-
// if (Number(this.charge.f_charge_money) > Number(this.selectdata.f_price)) {
|
|
419
|
-
// this.$showAlert('单笔收费不能超过单价!!!', 'warning', 3000)
|
|
420
|
-
// return
|
|
421
|
-
// }
|
|
422
|
-
// if (Number(this.charge.f_charge_money) > Number(this.outstandingAmount)) {
|
|
423
|
-
// this.$showAlert('单笔收费不能超过当前用户未结金额!!!', 'warning', 3000)
|
|
424
|
-
// return
|
|
425
|
-
// }
|
|
426
|
-
}
|
|
427
|
-
if (isEmpty(this.charge.f_payment_method)) {
|
|
428
|
-
this.$showAlert('请选择付款方式!!!', 'warning', 3000)
|
|
429
|
-
return
|
|
430
|
-
}
|
|
431
|
-
let http = new HttpResetClass()
|
|
432
|
-
let data = {
|
|
433
|
-
apply: this.selectdata,
|
|
434
|
-
user: this.$login.f,
|
|
435
|
-
charge: this.charge
|
|
436
|
-
}
|
|
437
|
-
try {
|
|
438
|
-
let res = await http.load('POST', 'rs/logic/addApplyChargeRecord', {data:data}, {
|
|
439
|
-
resolveMsg: null,
|
|
440
|
-
rejectMsg: null
|
|
441
|
-
})
|
|
442
|
-
this.selectdata = res.data
|
|
443
|
-
} catch (e) {
|
|
444
|
-
this.$showAlert(e.data, 'danger', 3000)
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
449
|
-
},
|
|
450
|
-
// 金额转大写
|
|
451
|
-
smalltoBIG(n) {
|
|
452
|
-
let fraction = ['角', '分'];
|
|
453
|
-
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
454
|
-
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
455
|
-
let head = n < 0 ? '欠' : '';
|
|
456
|
-
n = Math.abs(n);
|
|
457
|
-
|
|
458
|
-
let s = '';
|
|
459
|
-
|
|
460
|
-
for (var i = 0; i < fraction.length; i++) {
|
|
461
|
-
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
462
|
-
}
|
|
463
|
-
s = s || '整';
|
|
464
|
-
n = Math.floor(n);
|
|
465
|
-
|
|
466
|
-
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
467
|
-
let p = '';
|
|
468
|
-
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
469
|
-
p = digit[n % 10] + unit[1][j] + p;
|
|
470
|
-
n = Math.floor(n / 10);
|
|
471
|
-
}
|
|
472
|
-
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
473
|
-
}
|
|
474
|
-
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
475
|
-
},
|
|
476
|
-
async getUserAddress() {
|
|
477
|
-
let http = new HttpResetClass()
|
|
478
|
-
let data = {
|
|
479
|
-
condition: '1=1',
|
|
480
|
-
f_process_id: this.selectdata.f_process_id
|
|
481
|
-
}
|
|
482
|
-
let res = await http.load('POST', 'rs/sql/getAddresAndCumulativePayment', {data:data}, {
|
|
483
|
-
resolveMsg: null,
|
|
484
|
-
rejectMsg: null
|
|
485
|
-
})
|
|
486
|
-
|
|
487
|
-
this.useraddressList = res.data
|
|
488
|
-
if (this.selectdata.f_apply_type === '散户集体报建' || this.selectdata.f_apply_type === '煤改气报建') {
|
|
489
|
-
// 去除累计缴费金额大于等于单价的用户地址
|
|
490
|
-
this.useraddressList = res.data.filter(item => {
|
|
491
|
-
let f_cumulative_payment_money = isEmpty(item.f_cumulative_payment_money) ? 0 : item.f_cumulative_payment_money
|
|
492
|
-
return Number(f_cumulative_payment_money) < Number(isEmpty(this.selectdata.f_price) ? 0 : this.selectdata.f_price)
|
|
493
|
-
})
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
if (this.useraddressList.length > 0) {
|
|
497
|
-
this.useraddressList = this.useraddressList.map(item => {
|
|
498
|
-
return {
|
|
499
|
-
// 有用户姓名地址后拼接姓名
|
|
500
|
-
label: `${item.f_address} ${isEmpty(item.f_user_name) ? '' : '--- ' + item.f_user_name}`,
|
|
501
|
-
value: item
|
|
502
|
-
}
|
|
503
|
-
})
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
},
|
|
507
|
-
async showChargeModal() {
|
|
508
|
-
this.getUserAddress()
|
|
509
|
-
|
|
510
|
-
this.showCharge = true
|
|
511
|
-
},
|
|
512
|
-
async search () {
|
|
513
|
-
let http = new HttpResetClass()
|
|
514
|
-
let data = {
|
|
515
|
-
f_process_id: this.selectdata.f_process_id
|
|
516
|
-
}
|
|
517
|
-
let res = await http.load('POST', 'rs/sql/getApplyChargeRecord', {data:data}, {
|
|
518
|
-
resolveMsg: null,
|
|
519
|
-
rejectMsg: null
|
|
520
|
-
})
|
|
521
|
-
this.model.data = res.data
|
|
522
|
-
},
|
|
523
|
-
// 关闭对话框
|
|
524
|
-
closeModal() {
|
|
525
|
-
this.showCharge = false
|
|
526
|
-
this.showInvalid = false
|
|
527
|
-
this.showPrint = false
|
|
528
|
-
this.charge = {}
|
|
529
|
-
this.chargeUseraddress = null
|
|
530
|
-
this.search()
|
|
531
|
-
}
|
|
532
|
-
},
|
|
533
|
-
events: {
|
|
534
|
-
},
|
|
535
|
-
computed: {
|
|
536
|
-
paymentMethod() {
|
|
537
|
-
return this.$appdata.getParam("付款方式")
|
|
538
|
-
},
|
|
539
|
-
cumulativePaymentMoney() {
|
|
540
|
-
return isEmpty(this.chargeUseraddress.f_cumulative_payment_money) ? 0 : this.chargeUseraddress.f_cumulative_payment_money
|
|
541
|
-
},
|
|
542
|
-
outstandingAmount() {
|
|
543
|
-
return this.selectdata.f_price - this.cumulativePaymentMoney
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
watch: {
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
</script>
|
|
550
|
-
<style scoped>
|
|
551
|
-
.textNoLineBreak {
|
|
552
|
-
white-space: nowrap;
|
|
553
|
-
}
|
|
554
|
-
.head-but{
|
|
555
|
-
margin-left: 5px;
|
|
556
|
-
height: 34px;
|
|
557
|
-
/*background-color: #6aa6e2;*/
|
|
558
|
-
border-radius: 4px;
|
|
559
|
-
font-family: PingFang;
|
|
560
|
-
color: #ffffff;
|
|
561
|
-
}
|
|
562
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
3
|
+
<data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
|
|
4
|
+
<template partial='head'>
|
|
5
|
+
<tr>
|
|
6
|
+
<th class="textNoLineBreak">序号</th>
|
|
7
|
+
<th class="textNoLineBreak">缴费单位</th>
|
|
8
|
+
<th class="textNoLineBreak">缴费编号</th>
|
|
9
|
+
<th class="textNoLineBreak">收费金额</th>
|
|
10
|
+
<th class="textNoLineBreak">金额大写</th>
|
|
11
|
+
<th class="textNoLineBreak">付款方式</th>
|
|
12
|
+
<th class="textNoLineBreak">收费人员</th>
|
|
13
|
+
<th class="textNoLineBreak">收费日期</th>
|
|
14
|
+
<th class="textNoLineBreak">备注</th>
|
|
15
|
+
<th class="textNoLineBreak">缴费状态</th>
|
|
16
|
+
<th class="textNoLineBreak">作废人员</th>
|
|
17
|
+
<th class="textNoLineBreak">作废时间</th>
|
|
18
|
+
<th class="textNoLineBreak">作废原因</th>
|
|
19
|
+
<th class="textNoLineBreak">
|
|
20
|
+
<button
|
|
21
|
+
type="button"
|
|
22
|
+
class="btn btn-info head-but"
|
|
23
|
+
@click="$parent.$parent.showChargeModal()"
|
|
24
|
+
:disabled="$parent.$parent.mark === 1 || ($parent.$parent.selectdata.f_cumulative_payment_money >= $parent.$parent.selectdata.f_due_money || $parent.$parent.selectdata.f_surplus_money === 0)"
|
|
25
|
+
>新增收费</button>
|
|
26
|
+
</th>
|
|
27
|
+
</tr>
|
|
28
|
+
</template>
|
|
29
|
+
<template partial='body'>
|
|
30
|
+
<tr>
|
|
31
|
+
<td style="text-align: center;">
|
|
32
|
+
<nobr>{{$index+1}}</nobr>
|
|
33
|
+
</td>
|
|
34
|
+
<td style="text-align: center;">
|
|
35
|
+
<nobr>{{row.f_payer}}</nobr>
|
|
36
|
+
</td>
|
|
37
|
+
<td style="text-align: center;">
|
|
38
|
+
<nobr>{{row.f_charge_number}}</nobr>
|
|
39
|
+
</td>
|
|
40
|
+
<td style="text-align: center;">
|
|
41
|
+
<nobr>{{row.f_charge_money}}</nobr>
|
|
42
|
+
</td>
|
|
43
|
+
<td style="text-align: center;">
|
|
44
|
+
<nobr>{{row.f_amount_words}}</nobr>
|
|
45
|
+
</td>
|
|
46
|
+
<td style="text-align: center;">
|
|
47
|
+
<nobr>{{row.f_payment_method}}</nobr>
|
|
48
|
+
</td>
|
|
49
|
+
<td style="text-align: center;">
|
|
50
|
+
<nobr>{{row.f_charge_collectors}}</nobr>
|
|
51
|
+
</td>
|
|
52
|
+
<td style="text-align: center;">
|
|
53
|
+
<nobr>{{row.f_charge_date}}</nobr>
|
|
54
|
+
</td>
|
|
55
|
+
<td style="text-align: center;">
|
|
56
|
+
<nobr>{{row.f_charge_remarks}}</nobr>
|
|
57
|
+
</td>
|
|
58
|
+
<td style="text-align: center;">
|
|
59
|
+
<nobr>{{row.f_charge_status}}</nobr>
|
|
60
|
+
</td>
|
|
61
|
+
<td style="text-align: center;">
|
|
62
|
+
<nobr>{{row.f_void_staff}}</nobr>
|
|
63
|
+
</td>
|
|
64
|
+
<td style="text-align: center;">
|
|
65
|
+
<nobr>{{row.f_void_date}}</nobr>
|
|
66
|
+
</td>
|
|
67
|
+
<td style="text-align: center;">
|
|
68
|
+
<nobr>{{row.f_void_remarks}}</nobr>
|
|
69
|
+
</td>
|
|
70
|
+
<td style="text-align: center;">
|
|
71
|
+
<nobr>
|
|
72
|
+
<button
|
|
73
|
+
type="button"
|
|
74
|
+
name="button"
|
|
75
|
+
class="btn btn-link"
|
|
76
|
+
:disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
|
|
77
|
+
@click="$parent.$parent.showInvalidModal(row)"
|
|
78
|
+
>作废</button>
|
|
79
|
+
|
|
80
|
+
<!-- <button-->
|
|
81
|
+
<!-- type="button"-->
|
|
82
|
+
<!-- name="button"-->
|
|
83
|
+
<!-- class="btn btn-link"-->
|
|
84
|
+
<!-- @click="$parent.$parent.showPrintModal(row)"-->
|
|
85
|
+
<!-- >打印预览</button>-->
|
|
86
|
+
</nobr>
|
|
87
|
+
</td>
|
|
88
|
+
</tr>
|
|
89
|
+
</template>
|
|
90
|
+
</data-grid>
|
|
91
|
+
|
|
92
|
+
<modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
|
|
93
|
+
<header slot="modal-header" class="modal-header">
|
|
94
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
95
|
+
<h4 class="modal-title">收费明细</h4>
|
|
96
|
+
</header>
|
|
97
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
98
|
+
<div class="form-group col-sm-12" :class="chargeUseraddress ? '':'has-error'" v-if="selectdata.f_apply_type == '报装'">
|
|
99
|
+
<label class="col-sm-2 control-label">缴费地址:</label>
|
|
100
|
+
<div class="col-sm-10">
|
|
101
|
+
<input-select
|
|
102
|
+
v-model="chargeUseraddress"
|
|
103
|
+
placeholder='请选择'
|
|
104
|
+
:value.sync="chargeUseraddress"
|
|
105
|
+
:options='useraddressList'
|
|
106
|
+
@change="changeUseraddress()"
|
|
107
|
+
class="select select_list"
|
|
108
|
+
:value-single="true"
|
|
109
|
+
width="100%"
|
|
110
|
+
close-on-select ></input-select>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="form-group col-sm-12" :class="charge.f_payer ? '':'has-error'">
|
|
114
|
+
<label class="col-sm-2 control-label">缴费单位:</label>
|
|
115
|
+
<div class="col-sm-10">
|
|
116
|
+
<input type="text"
|
|
117
|
+
class="form-control input_view"
|
|
118
|
+
style="width: 100%"
|
|
119
|
+
placeholder="请输入"
|
|
120
|
+
v-model="charge.f_payer" />
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="form-group col-sm-12" :class="charge.f_charge_money ? '':'has-error'">
|
|
124
|
+
<label class="col-sm-2 control-label">收费金额:</label>
|
|
125
|
+
<div class="col-sm-10">
|
|
126
|
+
<input type="number"
|
|
127
|
+
class="form-control input_view"
|
|
128
|
+
style="width: 100%"
|
|
129
|
+
placeholder="0.00"
|
|
130
|
+
@keyup="handleInput"
|
|
131
|
+
v-model="charge.f_charge_money" />
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
<div class="form-group col-sm-12" :class="charge.f_payment_method ? '':'has-error'">
|
|
135
|
+
<label class="col-sm-2 control-label">付款方式:</label>
|
|
136
|
+
<div class="col-sm-10">
|
|
137
|
+
<input-select
|
|
138
|
+
v-model="charge.f_payment_method"
|
|
139
|
+
placeholder='请选择'
|
|
140
|
+
:value.sync="charge.f_payment_method"
|
|
141
|
+
:options='paymentMethod'
|
|
142
|
+
class="select select_list"
|
|
143
|
+
:value-single="true"
|
|
144
|
+
width="100%"
|
|
145
|
+
close-on-select ></input-select>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="form-group col-sm-12">
|
|
149
|
+
<label class="col-sm-2 control-label">金额大写:</label>
|
|
150
|
+
<div class="col-sm-10">
|
|
151
|
+
<input type="text"
|
|
152
|
+
class="form-control input_view"
|
|
153
|
+
style="width: 100%"
|
|
154
|
+
:value="smalltoBIG(0)"
|
|
155
|
+
readonly
|
|
156
|
+
v-model.sync="charge.f_amount_words" />
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="form-group col-sm-12"
|
|
160
|
+
v-if="selectdata.f_apply_type === '散户集体报建' || selectdata.f_apply_type === '煤改气报建'"
|
|
161
|
+
>
|
|
162
|
+
<label class="col-sm-2 control-label">单价(户):</label>
|
|
163
|
+
<div class="col-sm-10">
|
|
164
|
+
<input type="text"
|
|
165
|
+
class="form-control input_view"
|
|
166
|
+
style="width: 100%"
|
|
167
|
+
readonly
|
|
168
|
+
v-model="selectdata.f_price" />
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="form-group col-sm-12"
|
|
172
|
+
v-if="selectdata.f_apply_type === '散户集体报建' || selectdata.f_apply_type === '煤改气报建'"
|
|
173
|
+
>
|
|
174
|
+
<label class="col-sm-2 control-label">累计缴费金额:</label>
|
|
175
|
+
<div class="col-sm-10">
|
|
176
|
+
<input type="text"
|
|
177
|
+
class="form-control input_view"
|
|
178
|
+
style="width: 100%"
|
|
179
|
+
readonly
|
|
180
|
+
:value="cumulativePaymentMoney" />
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="form-group col-sm-12"
|
|
184
|
+
v-if="selectdata.f_apply_type === '散户集体报建' || selectdata.f_apply_type === '煤改气报建'"
|
|
185
|
+
>
|
|
186
|
+
<label class="col-sm-2 control-label">未结金额:</label>
|
|
187
|
+
<div class="col-sm-10">
|
|
188
|
+
<input type="text"
|
|
189
|
+
class="form-control input_view"
|
|
190
|
+
style="width: 100%"
|
|
191
|
+
readonly
|
|
192
|
+
:value="outstandingAmount" />
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
<div class="form-group col-sm-12">
|
|
196
|
+
<label class="col-sm-2 control-label">应交总金额:</label>
|
|
197
|
+
<div class="col-sm-10">
|
|
198
|
+
<input type="text"
|
|
199
|
+
class="form-control input_view"
|
|
200
|
+
style="width: 100%"
|
|
201
|
+
readonly
|
|
202
|
+
v-model="selectdata.f_due_money" />
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
<div class="form-group col-sm-12">
|
|
206
|
+
<label class="col-sm-2 control-label">累计缴费总金额:</label>
|
|
207
|
+
<div class="col-sm-10">
|
|
208
|
+
<input type="text"
|
|
209
|
+
class="form-control input_view"
|
|
210
|
+
style="width: 100%"
|
|
211
|
+
readonly
|
|
212
|
+
v-model="selectdata.f_cumulative_payment_money" />
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
<div class="form-group col-sm-12">
|
|
216
|
+
<label class="col-sm-2 control-label">未结总金额:</label>
|
|
217
|
+
<div class="col-sm-10">
|
|
218
|
+
<input type="text"
|
|
219
|
+
class="form-control input_view"
|
|
220
|
+
style="width: 100%"
|
|
221
|
+
readonly
|
|
222
|
+
v-model="selectdata.f_surplus_money" />
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
<div class="form-group col-sm-12">
|
|
226
|
+
<label class="col-sm-2 control-label">备注:</label>
|
|
227
|
+
<div class="col-sm-10">
|
|
228
|
+
<input type="text"
|
|
229
|
+
class="form-control input_view"
|
|
230
|
+
style="width: 100%"
|
|
231
|
+
v-model="charge.f_charge_remarks" />
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</article>
|
|
235
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
236
|
+
<button type="button" class="btn btn-primary" @click="saveCharge()">新增收费</button>
|
|
237
|
+
</footer>
|
|
238
|
+
</modal>
|
|
239
|
+
|
|
240
|
+
<modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :large="true" :backdrop="false" title="作废收费">
|
|
241
|
+
<header slot="modal-header" class="modal-header">
|
|
242
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
243
|
+
<h4 class="modal-title">作废收费</h4>
|
|
244
|
+
</header>
|
|
245
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
246
|
+
<div class="form-group col-sm-12" v-if="selectdata.f_apply_type !== '开发商集体报装'">
|
|
247
|
+
<label class="col-sm-2 control-label">缴费地址:</label>
|
|
248
|
+
<div class="col-sm-10">
|
|
249
|
+
<input type="text"
|
|
250
|
+
class="form-control input_view"
|
|
251
|
+
style="width: 100%"
|
|
252
|
+
readonly
|
|
253
|
+
v-model="charge.f_useraddress" />
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
<div class="form-group col-sm-12">
|
|
257
|
+
<label class="col-sm-2 control-label">收费金额:</label>
|
|
258
|
+
<div class="col-sm-10">
|
|
259
|
+
<input type="text"
|
|
260
|
+
class="form-control input_view"
|
|
261
|
+
style="width: 100%"
|
|
262
|
+
readonly
|
|
263
|
+
v-model="charge.f_charge_money" />
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="form-group col-sm-12">
|
|
267
|
+
<label class="col-sm-2 control-label">付款方式:</label>
|
|
268
|
+
<div class="col-sm-10">
|
|
269
|
+
<input type="text"
|
|
270
|
+
class="form-control input_view"
|
|
271
|
+
style="width: 100%"
|
|
272
|
+
readonly
|
|
273
|
+
v-model="charge.f_payment_method" />
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
<div class="form-group col-sm-12">
|
|
277
|
+
<label class="col-sm-2 control-label">金额大写:</label>
|
|
278
|
+
<div class="col-sm-10">
|
|
279
|
+
<input type="text"
|
|
280
|
+
class="form-control input_view"
|
|
281
|
+
style="width: 100%"
|
|
282
|
+
readonly
|
|
283
|
+
v-model="charge.f_amount_words" />
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
<div class="form-group col-sm-12">
|
|
287
|
+
<label class="col-sm-2 control-label">收费人员:</label>
|
|
288
|
+
<div class="col-sm-10">
|
|
289
|
+
<input type="text"
|
|
290
|
+
class="form-control input_view"
|
|
291
|
+
style="width: 100%"
|
|
292
|
+
readonly
|
|
293
|
+
v-model="charge.f_charge_collectors" />
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
<div class="form-group col-sm-12" :class="charge.f_void_remarks ? '':'has-error'">
|
|
297
|
+
<label class="col-sm-2 control-label">作废原因:</label>
|
|
298
|
+
<div class="col-sm-10">
|
|
299
|
+
<input type="text"
|
|
300
|
+
class="form-control input_view"
|
|
301
|
+
style="width: 100%"
|
|
302
|
+
v-model="charge.f_void_remarks" />
|
|
303
|
+
</div>
|
|
304
|
+
</div>
|
|
305
|
+
</article>
|
|
306
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
307
|
+
<button type="button" class="btn btn-primary" @click="invalidApplyCharge()">确认作废</button>
|
|
308
|
+
</footer>
|
|
309
|
+
</modal>
|
|
310
|
+
|
|
311
|
+
<modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
|
|
312
|
+
<header slot="modal-header" class="modal-header">
|
|
313
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
314
|
+
<h4 class="modal-title">打印预览</h4>
|
|
315
|
+
</header>
|
|
316
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
317
|
+
<apply-print-charge :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-charge>
|
|
318
|
+
</article>
|
|
319
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
320
|
+
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
321
|
+
</footer>
|
|
322
|
+
</modal>
|
|
323
|
+
</div>
|
|
324
|
+
</template>
|
|
325
|
+
<script>
|
|
326
|
+
import {getNowDate,isEmpty} from '../../../Util'
|
|
327
|
+
import {PagedList} from 'vue-client'
|
|
328
|
+
import {HttpResetClass} from 'vue-client'
|
|
329
|
+
|
|
330
|
+
export default {
|
|
331
|
+
title: '收费管理',
|
|
332
|
+
props: {
|
|
333
|
+
selectdata: {
|
|
334
|
+
type: Object
|
|
335
|
+
},
|
|
336
|
+
mark: {
|
|
337
|
+
type: Number,
|
|
338
|
+
default: 0
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
data () {
|
|
342
|
+
return {
|
|
343
|
+
showCharge: false,
|
|
344
|
+
showInvalid: false,
|
|
345
|
+
showPrint: false,
|
|
346
|
+
model: {
|
|
347
|
+
data: null
|
|
348
|
+
},
|
|
349
|
+
charge: {
|
|
350
|
+
|
|
351
|
+
},
|
|
352
|
+
useraddressList: [],
|
|
353
|
+
chargeUseraddress: null
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
ready () {
|
|
357
|
+
this.search()
|
|
358
|
+
},
|
|
359
|
+
methods: {
|
|
360
|
+
print () {
|
|
361
|
+
this.$refs.print.$refs.print.PrintTable()
|
|
362
|
+
},
|
|
363
|
+
showPrintModal(row) {
|
|
364
|
+
this.charge = row
|
|
365
|
+
this.showPrint = true
|
|
366
|
+
},
|
|
367
|
+
changeUseraddress() {
|
|
368
|
+
this.charge.f_useraddress_id = this.chargeUseraddress.f_userinfo_id
|
|
369
|
+
},
|
|
370
|
+
async invalidApplyCharge() {
|
|
371
|
+
if (isEmpty(this.charge.f_void_remarks)) {
|
|
372
|
+
this.$showAlert('请输入作废本次收费原因!!!', 'warning', 3000)
|
|
373
|
+
return
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
let http = new HttpResetClass()
|
|
377
|
+
let data = {
|
|
378
|
+
apply: this.selectdata,
|
|
379
|
+
user: this.$login.f,
|
|
380
|
+
charge: this.charge
|
|
381
|
+
}
|
|
382
|
+
try {
|
|
383
|
+
let res = await http.load('POST', 'rs/logic/invalidApplyCharge', {data:data}, {
|
|
384
|
+
resolveMsg: null,
|
|
385
|
+
rejectMsg: null
|
|
386
|
+
})
|
|
387
|
+
this.selectdata = res.data
|
|
388
|
+
} catch (e) {
|
|
389
|
+
this.$showAlert(e.data, 'danger', 3000)
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
394
|
+
},
|
|
395
|
+
showInvalidModal(row) {
|
|
396
|
+
this.charge = row
|
|
397
|
+
this.showInvalid = true
|
|
398
|
+
},
|
|
399
|
+
handleInput(e) {
|
|
400
|
+
// 通过正则过滤小数点后两位
|
|
401
|
+
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
402
|
+
this.charge.f_amount_words = this.smalltoBIG(e.target.value)
|
|
403
|
+
},
|
|
404
|
+
async saveCharge() {
|
|
405
|
+
if (isEmpty(this.charge.f_useraddress_id) && this.selectdata.f_apply_type == '报装') {
|
|
406
|
+
this.$showAlert('请选择缴费的地址信息!!!', 'warning', 3000)
|
|
407
|
+
return
|
|
408
|
+
}
|
|
409
|
+
if (Number(this.charge.f_charge_money) === 0 || isEmpty(this.charge.f_charge_money)) {
|
|
410
|
+
this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
|
|
411
|
+
return
|
|
412
|
+
}
|
|
413
|
+
if ((Number(this.charge.f_charge_money) > Number(this.selectdata.f_surplus_money)) && this.selectdata.f_apply_type === '开发商集体报装') {
|
|
414
|
+
this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
|
|
415
|
+
return
|
|
416
|
+
}
|
|
417
|
+
if (this.selectdata.f_apply_type === '散户集体报装' || this.selectdata.f_apply_type === '煤改气报装') {
|
|
418
|
+
// if (Number(this.charge.f_charge_money) > Number(this.selectdata.f_price)) {
|
|
419
|
+
// this.$showAlert('单笔收费不能超过单价!!!', 'warning', 3000)
|
|
420
|
+
// return
|
|
421
|
+
// }
|
|
422
|
+
// if (Number(this.charge.f_charge_money) > Number(this.outstandingAmount)) {
|
|
423
|
+
// this.$showAlert('单笔收费不能超过当前用户未结金额!!!', 'warning', 3000)
|
|
424
|
+
// return
|
|
425
|
+
// }
|
|
426
|
+
}
|
|
427
|
+
if (isEmpty(this.charge.f_payment_method)) {
|
|
428
|
+
this.$showAlert('请选择付款方式!!!', 'warning', 3000)
|
|
429
|
+
return
|
|
430
|
+
}
|
|
431
|
+
let http = new HttpResetClass()
|
|
432
|
+
let data = {
|
|
433
|
+
apply: this.selectdata,
|
|
434
|
+
user: this.$login.f,
|
|
435
|
+
charge: this.charge
|
|
436
|
+
}
|
|
437
|
+
try {
|
|
438
|
+
let res = await http.load('POST', 'rs/logic/addApplyChargeRecord', {data:data}, {
|
|
439
|
+
resolveMsg: null,
|
|
440
|
+
rejectMsg: null
|
|
441
|
+
})
|
|
442
|
+
this.selectdata = res.data
|
|
443
|
+
} catch (e) {
|
|
444
|
+
this.$showAlert(e.data, 'danger', 3000)
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
449
|
+
},
|
|
450
|
+
// 金额转大写
|
|
451
|
+
smalltoBIG(n) {
|
|
452
|
+
let fraction = ['角', '分'];
|
|
453
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
454
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
455
|
+
let head = n < 0 ? '欠' : '';
|
|
456
|
+
n = Math.abs(n);
|
|
457
|
+
|
|
458
|
+
let s = '';
|
|
459
|
+
|
|
460
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
461
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
462
|
+
}
|
|
463
|
+
s = s || '整';
|
|
464
|
+
n = Math.floor(n);
|
|
465
|
+
|
|
466
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
467
|
+
let p = '';
|
|
468
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
469
|
+
p = digit[n % 10] + unit[1][j] + p;
|
|
470
|
+
n = Math.floor(n / 10);
|
|
471
|
+
}
|
|
472
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
473
|
+
}
|
|
474
|
+
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
475
|
+
},
|
|
476
|
+
async getUserAddress() {
|
|
477
|
+
let http = new HttpResetClass()
|
|
478
|
+
let data = {
|
|
479
|
+
condition: '1=1',
|
|
480
|
+
f_process_id: this.selectdata.f_process_id
|
|
481
|
+
}
|
|
482
|
+
let res = await http.load('POST', 'rs/sql/getAddresAndCumulativePayment', {data:data}, {
|
|
483
|
+
resolveMsg: null,
|
|
484
|
+
rejectMsg: null
|
|
485
|
+
})
|
|
486
|
+
|
|
487
|
+
this.useraddressList = res.data
|
|
488
|
+
if (this.selectdata.f_apply_type === '散户集体报建' || this.selectdata.f_apply_type === '煤改气报建') {
|
|
489
|
+
// 去除累计缴费金额大于等于单价的用户地址
|
|
490
|
+
this.useraddressList = res.data.filter(item => {
|
|
491
|
+
let f_cumulative_payment_money = isEmpty(item.f_cumulative_payment_money) ? 0 : item.f_cumulative_payment_money
|
|
492
|
+
return Number(f_cumulative_payment_money) < Number(isEmpty(this.selectdata.f_price) ? 0 : this.selectdata.f_price)
|
|
493
|
+
})
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
if (this.useraddressList.length > 0) {
|
|
497
|
+
this.useraddressList = this.useraddressList.map(item => {
|
|
498
|
+
return {
|
|
499
|
+
// 有用户姓名地址后拼接姓名
|
|
500
|
+
label: `${item.f_address} ${isEmpty(item.f_user_name) ? '' : '--- ' + item.f_user_name}`,
|
|
501
|
+
value: item
|
|
502
|
+
}
|
|
503
|
+
})
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
},
|
|
507
|
+
async showChargeModal() {
|
|
508
|
+
this.getUserAddress()
|
|
509
|
+
|
|
510
|
+
this.showCharge = true
|
|
511
|
+
},
|
|
512
|
+
async search () {
|
|
513
|
+
let http = new HttpResetClass()
|
|
514
|
+
let data = {
|
|
515
|
+
f_process_id: this.selectdata.f_process_id
|
|
516
|
+
}
|
|
517
|
+
let res = await http.load('POST', 'rs/sql/getApplyChargeRecord', {data:data}, {
|
|
518
|
+
resolveMsg: null,
|
|
519
|
+
rejectMsg: null
|
|
520
|
+
})
|
|
521
|
+
this.model.data = res.data
|
|
522
|
+
},
|
|
523
|
+
// 关闭对话框
|
|
524
|
+
closeModal() {
|
|
525
|
+
this.showCharge = false
|
|
526
|
+
this.showInvalid = false
|
|
527
|
+
this.showPrint = false
|
|
528
|
+
this.charge = {}
|
|
529
|
+
this.chargeUseraddress = null
|
|
530
|
+
this.search()
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
events: {
|
|
534
|
+
},
|
|
535
|
+
computed: {
|
|
536
|
+
paymentMethod() {
|
|
537
|
+
return this.$appdata.getParam("付款方式")
|
|
538
|
+
},
|
|
539
|
+
cumulativePaymentMoney() {
|
|
540
|
+
return isEmpty(this.chargeUseraddress.f_cumulative_payment_money) ? 0 : this.chargeUseraddress.f_cumulative_payment_money
|
|
541
|
+
},
|
|
542
|
+
outstandingAmount() {
|
|
543
|
+
return this.selectdata.f_price - this.cumulativePaymentMoney
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
watch: {
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
</script>
|
|
550
|
+
<style scoped>
|
|
551
|
+
.textNoLineBreak {
|
|
552
|
+
white-space: nowrap;
|
|
553
|
+
}
|
|
554
|
+
.head-but{
|
|
555
|
+
margin-left: 5px;
|
|
556
|
+
height: 34px;
|
|
557
|
+
/*background-color: #6aa6e2;*/
|
|
558
|
+
border-radius: 4px;
|
|
559
|
+
font-family: PingFang;
|
|
560
|
+
color: #ffffff;
|
|
561
|
+
}
|
|
562
|
+
</style>
|