apply-clients 3.4.3 → 3.4.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 +1 -1
- package/src/AndroidApp.vue +18 -18
- package/src/android.js +1 -1
- package/src/apply.js +39 -20
- package/src/applyAndroid.js +23 -9
- package/src/components/android/AppOnetomany.vue +47 -5
- package/src/components/android/AppServiceView.vue +745 -566
- package/src/components/android/AppSign.vue +154 -142
- package/src/components/android/AppTakePic.vue +11 -11
- package/src/components/android/AreaSelect/AppQrcodeReader.vue +73 -0
- package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +148 -0
- package/src/components/android/AreaSelect/AppResAreaSelect.vue +108 -0
- package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +142 -0
- package/src/components/android/Function/AppFunctionServiceControl.vue +344 -0
- package/src/components/android/Function/AppInstallFunction.vue +366 -0
- package/src/components/android/Process/AppExplorationUser.vue +217 -37
- package/src/components/android/Process/AppServiceControl.vue +1708 -757
- package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -0
- package/src/components/android/Process/Processes/AppBuildSign.vue +46 -0
- package/src/components/android/Process/Processes/AppChargeManagement.vue +637 -0
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -0
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +482 -456
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
- package/src/components/android/Process/Processes/selectApply.vue +250 -0
- package/src/components/android/Process/Processes/selectUserinfo.vue +182 -0
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +205 -71
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -121
- package/src/components/common/TabButton.vue +149 -0
- package/src/components/common/Tabs.vue +67 -0
- package/src/components/image/dwg.jpg +0 -0
- package/src/components/image/txt.jpg +0 -0
- package/src/components/image//345/221/250/345/217/243/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/image//350/245/277/345/215/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/image//351/203/270/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/image//351/241/271/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/image//351/271/277/351/202/221/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +272 -53
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
- package/src/components/product/AreaSelect/MyAreaSelect.vue +423 -0
- package/src/components/product/AreaSelect/ResAreaSelect.vue +106 -0
- package/src/components/product/AreaSelect/ResAreaSelectGroup.vue +150 -0
- package/src/components/product/AreaSelect/utils/EventListener.js +29 -0
- package/src/components/product/AreaSelect/utils/coerceBoolean.js +7 -0
- package/src/components/product/Function/InstallFunction.vue +3 -2
- package/src/components/product/Function/InstallInfoSelect.vue +41 -21
- package/src/components/product/Function/Service/FunctionServiceControl.vue +96 -71
- package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
- package/src/components/product/Install/InstallProject.vue +194 -0
- package/src/components/product/OldApply/Handle/HandleApply.vue +337 -0
- package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -0
- package/src/components/product/OldApply/OldApply.vue +209 -0
- package/src/components/product/OldApply/OldApplyMessage.vue +420 -0
- package/src/components/product/Onetomany.vue +40 -11
- package/src/components/product/Process/ExplorationSelect.vue +495 -417
- package/src/components/product/Process/ExplorationUser.vue +145 -94
- package/src/components/product/Process/Processes/InstallationDetails.vue +610 -592
- package/src/components/product/Process/Processes/Print/printCharge.vue +166 -142
- package/src/components/product/Process/Processes/Print/printChargepc.vue +142 -0
- package/src/components/product/Process/Processes/Print/printRefund.vue +196 -0
- package/src/components/product/Process/Processes/addMaterialScience.vue +454 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +4 -0
- package/src/components/product/Process/Processes/chargeManagement.vue +656 -638
- package/src/components/product/Process/Processes/devicesManagement.vue +484 -478
- package/src/components/product/Process/Processes/selectApply.vue +2 -2
- package/src/components/product/Process/Service/ServiceControl.vue +628 -10
- package/src/components/product/Process/ShowBackReason.vue +33 -0
- package/src/components/product/ServiceView.vue +981 -631
- package/src/components/product/Stop/StopApply.vue +26 -30
- package/src/components/product/Stop/StopApplyList.vue +27 -25
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +732 -34
- package/src/components/product/Supervisory/SupervisoryControl.vue +38 -1
- package/src/components/product/Supervisory/SupervisoryList.vue +404 -233
- package/src/components/product/Supervisory/SupervisoryhCart.vue +51 -28
- package/src/components/product/VueUtils/ApplyUpload.vue +40 -38
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
- package/src/components/product/VueUtils/ToolsPage.vue +51 -0
- package/src/components/product/VueUtils/Tree.vue +330 -0
- package/src/expandcssAndroid.less +362 -879
- package/src/main.js +3 -0
|
@@ -1,142 +1,166 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<style id="printChargeStyle">
|
|
3
|
-
td{
|
|
4
|
-
height: 30px;
|
|
5
|
-
text-align: center;
|
|
6
|
-
}
|
|
7
|
-
table{
|
|
8
|
-
margin: auto;
|
|
9
|
-
/*width: 100%;*/
|
|
10
|
-
border-collapse:collapse;
|
|
11
|
-
border: 1px solid black;
|
|
12
|
-
}
|
|
13
|
-
h1,h2,h3,h4,h5,h6 {
|
|
14
|
-
text-align: center;
|
|
15
|
-
}
|
|
16
|
-
.orgs {
|
|
17
|
-
border-bottom: 2px solid;
|
|
18
|
-
padding: 5px;
|
|
19
|
-
}
|
|
20
|
-
.date {
|
|
21
|
-
float: left;
|
|
22
|
-
padding-left: 10px;
|
|
23
|
-
}
|
|
24
|
-
.status {
|
|
25
|
-
float: right;
|
|
26
|
-
padding-right: 10px;
|
|
27
|
-
}
|
|
28
|
-
.seal {
|
|
29
|
-
position: absolute;
|
|
30
|
-
right: 100px;
|
|
31
|
-
top: 120px;
|
|
32
|
-
width: 150px;
|
|
33
|
-
height: 150px;
|
|
34
|
-
/*opacity: 0.5;*/
|
|
35
|
-
z-index: -1;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
38
|
-
<div id="printCharge">
|
|
39
|
-
<h4>
|
|
40
|
-
<span class="orgs">
|
|
41
|
-
{{orgs}}统一收据
|
|
42
|
-
</span>
|
|
43
|
-
</h4>
|
|
44
|
-
<table border="1" width="100%">
|
|
45
|
-
<tr>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<td colspan="
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<td style="width: 17%"
|
|
60
|
-
<td colspan="
|
|
61
|
-
|
|
62
|
-
<tr>
|
|
63
|
-
<td
|
|
64
|
-
<td colspan="
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<td
|
|
68
|
-
<td colspan="
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<td
|
|
76
|
-
<td colspan="2">{{ charge.
|
|
77
|
-
</tr>
|
|
78
|
-
<tr>
|
|
79
|
-
<td
|
|
80
|
-
<td colspan="
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
</
|
|
101
|
-
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<style id="printChargeStyle">
|
|
3
|
+
td{
|
|
4
|
+
height: 30px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
}
|
|
7
|
+
table{
|
|
8
|
+
margin: auto;
|
|
9
|
+
/*width: 100%;*/
|
|
10
|
+
border-collapse:collapse;
|
|
11
|
+
border: 1px solid black;
|
|
12
|
+
}
|
|
13
|
+
h1,h2,h3,h4,h5,h6 {
|
|
14
|
+
text-align: center;
|
|
15
|
+
}
|
|
16
|
+
.orgs {
|
|
17
|
+
border-bottom: 2px solid;
|
|
18
|
+
padding: 5px;
|
|
19
|
+
}
|
|
20
|
+
.date {
|
|
21
|
+
float: left;
|
|
22
|
+
padding-left: 10px;
|
|
23
|
+
}
|
|
24
|
+
.status {
|
|
25
|
+
float: right;
|
|
26
|
+
padding-right: 10px;
|
|
27
|
+
}
|
|
28
|
+
.seal {
|
|
29
|
+
position: absolute;
|
|
30
|
+
right: 100px;
|
|
31
|
+
top: 120px;
|
|
32
|
+
width: 150px;
|
|
33
|
+
height: 150px;
|
|
34
|
+
/*opacity: 0.5;*/
|
|
35
|
+
z-index: -1;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
38
|
+
<div id="printCharge">
|
|
39
|
+
<h4>
|
|
40
|
+
<span class="orgs">
|
|
41
|
+
{{orgs}}统一收据
|
|
42
|
+
</span>
|
|
43
|
+
</h4>
|
|
44
|
+
<table border="1" width="100%">
|
|
45
|
+
<tr>
|
|
46
|
+
|
|
47
|
+
<td style="width: 17%">开票日期</td>
|
|
48
|
+
<td colspan="4" style="width: 33%">{{ new Date().Format('yyyy年MM月dd日') }}</td>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td style="width: 17%">收据编码</td>
|
|
52
|
+
<td colspan="4" style="width: 33%">{{ charge.f_charge_number }}</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<td style="width: 17%">状态</td>
|
|
56
|
+
<td colspan="4" style="width: 33%">{{ charge.f_charge_status }}</td>
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
<td style="width: 17%">用户姓名</td>
|
|
60
|
+
<td colspan="4" style="width: 33%">{{ selectdata.f_user_name }}</td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td style="width: 17%">用户编号</td>
|
|
64
|
+
<td colspan="4" style="width: 33%">{{ selectdata.f_userinfo_code }}</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<td>用户地址</td>
|
|
68
|
+
<td colspan="5">{{ selectdata.f_address }}</td>
|
|
69
|
+
</tr>
|
|
70
|
+
<tr>
|
|
71
|
+
<td>收款项目</td>
|
|
72
|
+
<td colspan="4">{{ charge.f_payment_term }}</td>
|
|
73
|
+
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td>收款方式</td>
|
|
76
|
+
<td colspan="2">{{ charge.f_payment_method }}</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<td>金额</td>
|
|
80
|
+
<td colspan="4">{{ charge.f_charge_money }}</td>
|
|
81
|
+
</tr>
|
|
82
|
+
<tr>
|
|
83
|
+
<td>金额大写</td>
|
|
84
|
+
<td colspan="4">{{ charge.f_amount_words }}</td>
|
|
85
|
+
</tr>
|
|
86
|
+
<tr>
|
|
87
|
+
<td>收款人</td>
|
|
88
|
+
<td colspan="4">{{ charge.f_charge_collectors }}</td>
|
|
89
|
+
</tr>
|
|
90
|
+
<tr>
|
|
91
|
+
<td>销售方(章)</td>
|
|
92
|
+
<td colspan="4" v-if="charge.f_orgname==='郸城县天然气有限公司'">
|
|
93
|
+
<img src="../../../../image/郸城收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
|
|
94
|
+
</td>
|
|
95
|
+
<td colspan="4" v-if="charge.f_orgname==='周口市天然气有限公司'">
|
|
96
|
+
<img src="../../../../image/周口收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
|
|
97
|
+
</td>
|
|
98
|
+
<td colspan="4" v-if="charge.f_orgname==='项城市天然气有限公司'">
|
|
99
|
+
<img src="../../../../image/项城收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
|
|
100
|
+
</td>
|
|
101
|
+
<td colspan="4" v-if="charge.f_orgname==='西华县天然气有限公司'">
|
|
102
|
+
<img src="../../../../image/西华收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
|
|
103
|
+
</td>
|
|
104
|
+
<td colspan="4" v-if="charge.f_orgname==='鹿邑县天然气有限公司'">
|
|
105
|
+
<img src="../../../../image/鹿邑收款专用章.png" style="overflow: hidden;width: 200px;height: 200px">
|
|
106
|
+
</td>
|
|
107
|
+
</tr>
|
|
108
|
+
<tr>
|
|
109
|
+
<td>备  注</td>
|
|
110
|
+
<td colspan="5">{{ charge.f_charge_remarks }}</td>
|
|
111
|
+
</tr>
|
|
112
|
+
<tr>
|
|
113
|
+
<td colspan="6">
|
|
114
|
+
请持此收据到{{orgs}}营业厅换取发票
|
|
115
|
+
</td>
|
|
116
|
+
</tr>
|
|
117
|
+
</table>
|
|
118
|
+
<!-- <img class="seal" border="0" :src="src" alt="">-->
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<print-element v-show="false" v-ref:print id='printCharge' styleid='printChargeStyle'
|
|
122
|
+
top='20' left='30' width='100%' height='100%'>
|
|
123
|
+
</print-element>
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<script>
|
|
127
|
+
import { isEmpty } from '../../../../Util'
|
|
128
|
+
Date.prototype.Format = function (fmt) {
|
|
129
|
+
var o = {
|
|
130
|
+
"M+": this.getMonth() + 1, //月份
|
|
131
|
+
"d+": this.getDate(), //日
|
|
132
|
+
"H+": this.getHours(), //小时
|
|
133
|
+
"m+": this.getMinutes(), //分
|
|
134
|
+
"s+": this.getSeconds(), //秒
|
|
135
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
136
|
+
"S": this.getMilliseconds() //毫秒
|
|
137
|
+
};
|
|
138
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
139
|
+
for (var k in o)
|
|
140
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
141
|
+
return fmt;
|
|
142
|
+
}
|
|
143
|
+
export default {
|
|
144
|
+
title: '打印收费票据',
|
|
145
|
+
props: ['selectdata', 'charge'],
|
|
146
|
+
data () {
|
|
147
|
+
return {}
|
|
148
|
+
},
|
|
149
|
+
ready () {
|
|
150
|
+
},
|
|
151
|
+
methods: {
|
|
152
|
+
},
|
|
153
|
+
computed: {
|
|
154
|
+
orgs () {
|
|
155
|
+
return this.$login.f.orgs
|
|
156
|
+
},
|
|
157
|
+
src () {
|
|
158
|
+
return require(`./img/${this.$login.f.number}.png`)
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
</script>
|
|
163
|
+
|
|
164
|
+
<style scoped>
|
|
165
|
+
|
|
166
|
+
</style>
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<style id="printChargeStyle">
|
|
3
|
+
td{
|
|
4
|
+
height: 30px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
}
|
|
7
|
+
table{
|
|
8
|
+
margin: auto;
|
|
9
|
+
/*width: 100%;*/
|
|
10
|
+
border-collapse:collapse;
|
|
11
|
+
border: 1px solid black;
|
|
12
|
+
}
|
|
13
|
+
h1,h2,h3,h4,h5,h6 {
|
|
14
|
+
text-align: center;
|
|
15
|
+
}
|
|
16
|
+
.orgs {
|
|
17
|
+
border-bottom: 2px solid;
|
|
18
|
+
padding: 5px;
|
|
19
|
+
}
|
|
20
|
+
.date {
|
|
21
|
+
float: left;
|
|
22
|
+
padding-left: 10px;
|
|
23
|
+
}
|
|
24
|
+
.status {
|
|
25
|
+
float: right;
|
|
26
|
+
padding-right: 10px;
|
|
27
|
+
}
|
|
28
|
+
.seal {
|
|
29
|
+
position: absolute;
|
|
30
|
+
right: 100px;
|
|
31
|
+
top: 120px;
|
|
32
|
+
width: 150px;
|
|
33
|
+
height: 150px;
|
|
34
|
+
/*opacity: 0.5;*/
|
|
35
|
+
z-index: -1;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
38
|
+
<div id="printCharge">
|
|
39
|
+
<h4>
|
|
40
|
+
<span class="orgs">
|
|
41
|
+
{{orgs}}统一收据
|
|
42
|
+
</span>
|
|
43
|
+
</h4>
|
|
44
|
+
<table border="1" width="100%">
|
|
45
|
+
<tr>
|
|
46
|
+
<td colspan="2" style="border: none">
|
|
47
|
+
开票日期:{{ new Date().Format('yyyy年MM月dd日') }}
|
|
48
|
+
</td>
|
|
49
|
+
<td colspan="2" style="border: none">
|
|
50
|
+
收据编码:{{ charge.f_charge_number }}
|
|
51
|
+
</td>
|
|
52
|
+
<td colspan="2" style="border: none">
|
|
53
|
+
状态:{{ charge.f_charge_status }}
|
|
54
|
+
</td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<td style="width: 17%">用户姓名</td>
|
|
58
|
+
<td colspan="2" style="width: 33%">{{ selectdata.f_user_name }}</td>
|
|
59
|
+
<td style="width: 17%">用户编号</td>
|
|
60
|
+
<td colspan="2" style="width: 33%">{{ selectdata.f_userinfo_code }}</td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>用户地址</td>
|
|
64
|
+
<td colspan="5">{{ selectdata.f_address }}</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<td>收款项目</td>
|
|
68
|
+
<td colspan="2">{{ charge.f_payment_term }}</td>
|
|
69
|
+
<td>收款方式</td>
|
|
70
|
+
<td colspan="2">{{ charge.f_payment_method }}</td>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr>
|
|
73
|
+
<td>金额</td>
|
|
74
|
+
<td colspan="2">{{ charge.f_charge_money }}</td>
|
|
75
|
+
<td>金额大写</td>
|
|
76
|
+
<td colspan="2">{{ charge.f_amount_words }}</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<td>收款人</td>
|
|
80
|
+
<td colspan="2">{{ charge.f_charge_collectors }}</td>
|
|
81
|
+
<td>销售方(章)</td>
|
|
82
|
+
<td colspan="2"></td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td>备  注</td>
|
|
86
|
+
<td colspan="5">{{ charge.f_charge_remarks }}</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
89
|
+
<td colspan="6">
|
|
90
|
+
请持此收据到{{orgs}}营业厅换取发票
|
|
91
|
+
</td>
|
|
92
|
+
</tr>
|
|
93
|
+
</table>
|
|
94
|
+
<img class="seal" border="0" :src="src" alt="">
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<print-element v-show="false" v-ref:print id='printCharge' styleid='printChargeStyle'
|
|
98
|
+
top='20' left='30' width='100%' height='100%'>
|
|
99
|
+
</print-element>
|
|
100
|
+
</template>
|
|
101
|
+
|
|
102
|
+
<script>
|
|
103
|
+
import { isEmpty } from '../../../../Util'
|
|
104
|
+
Date.prototype.Format = function (fmt) {
|
|
105
|
+
var o = {
|
|
106
|
+
"M+": this.getMonth() + 1, //月份
|
|
107
|
+
"d+": this.getDate(), //日
|
|
108
|
+
"H+": this.getHours(), //小时
|
|
109
|
+
"m+": this.getMinutes(), //分
|
|
110
|
+
"s+": this.getSeconds(), //秒
|
|
111
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
112
|
+
"S": this.getMilliseconds() //毫秒
|
|
113
|
+
};
|
|
114
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
115
|
+
for (var k in o)
|
|
116
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
117
|
+
return fmt;
|
|
118
|
+
}
|
|
119
|
+
export default {
|
|
120
|
+
title: '打印收费票据',
|
|
121
|
+
props: ['selectdata', 'charge'],
|
|
122
|
+
data () {
|
|
123
|
+
return {}
|
|
124
|
+
},
|
|
125
|
+
ready () {
|
|
126
|
+
},
|
|
127
|
+
methods: {
|
|
128
|
+
},
|
|
129
|
+
computed: {
|
|
130
|
+
orgs () {
|
|
131
|
+
return this.$login.f.orgs
|
|
132
|
+
},
|
|
133
|
+
src () {
|
|
134
|
+
return require(`./img/${this.$login.f.number}.png`)
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
</script>
|
|
139
|
+
|
|
140
|
+
<style scoped>
|
|
141
|
+
|
|
142
|
+
</style>
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="margin-bottom: 20px" class="form-group select-overspread">
|
|
3
|
+
<label class="control-label-justify control-label col-sm-3">打印退费单</label>
|
|
4
|
+
<div class="col-sm-10">
|
|
5
|
+
<button class="button_search button_spacing" type="button" style="width: max-content;position: absolute" @click="showPrint = !showPrint">预览</button>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<modal :show.sync="showPrint" v-ref:modal :backdrop="false" title="打印预览">
|
|
10
|
+
<header slot="modal-header" class="modal-header">
|
|
11
|
+
<button type="button" class="close" @click="showPrint = !showPrint"><span>×</span></button>
|
|
12
|
+
<h4 class="modal-title">打印预览</h4>
|
|
13
|
+
</header>
|
|
14
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
15
|
+
<style id="printRefundStyle">
|
|
16
|
+
td{
|
|
17
|
+
height: 30px;
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
table{
|
|
21
|
+
margin: auto;
|
|
22
|
+
width: 100%;
|
|
23
|
+
border-collapse:collapse;
|
|
24
|
+
border: 1px solid black;
|
|
25
|
+
}
|
|
26
|
+
h1,h2,h3,h4,h5,h6 {
|
|
27
|
+
text-align: center;
|
|
28
|
+
}
|
|
29
|
+
.orgs {
|
|
30
|
+
border-bottom: 2px solid;
|
|
31
|
+
padding: 5px;
|
|
32
|
+
}
|
|
33
|
+
.date {
|
|
34
|
+
float: left;
|
|
35
|
+
padding-left: 10px;
|
|
36
|
+
}
|
|
37
|
+
.status {
|
|
38
|
+
float: right;
|
|
39
|
+
padding-right: 10px;
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
42
|
+
<div id="printRefund">
|
|
43
|
+
<h4>
|
|
44
|
+
<span class="orgs">
|
|
45
|
+
{{selectdata.f_refund_item}}退款收到条
|
|
46
|
+
</span>
|
|
47
|
+
</h4>
|
|
48
|
+
<table border="1">
|
|
49
|
+
<tr>
|
|
50
|
+
<td colspan="2" style="border: none">
|
|
51
|
+
开票日期:{{ new Date().Format('yyyy年MM月dd日') }}
|
|
52
|
+
</td>
|
|
53
|
+
<td colspan="2" style="border: none">
|
|
54
|
+
工程编号:{{ selectdata.f_parent_apply_num }}
|
|
55
|
+
</td>
|
|
56
|
+
<td colspan="2" style="border: none">
|
|
57
|
+
经办人:{{ username }}
|
|
58
|
+
</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<td style="width: 17%">用户姓名</td>
|
|
62
|
+
<td colspan="2" style="width: 33%">{{ selectdata.f_user_name }}</td>
|
|
63
|
+
<td style="width: 17%">联系方式</td>
|
|
64
|
+
<td colspan="2" style="width: 33%">{{ selectdata.f_phone }}</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<td>地址</td>
|
|
68
|
+
<td colspan="5">{{ selectdata.f_address }}</td>
|
|
69
|
+
</tr>
|
|
70
|
+
<tr>
|
|
71
|
+
<td>金额</td>
|
|
72
|
+
<td colspan="2">{{ selectdata.f_refund_money }}</td>
|
|
73
|
+
<td>金额大写</td>
|
|
74
|
+
<td colspan="2">{{ smalltoBIG(selectdata.f_refund_money) }}</td>
|
|
75
|
+
</tr>
|
|
76
|
+
<tr>
|
|
77
|
+
<td>收到人</td>
|
|
78
|
+
<td colspan="2"></td>
|
|
79
|
+
<td>代收人</td>
|
|
80
|
+
<td colspan="2"></td>
|
|
81
|
+
</tr>
|
|
82
|
+
<tr>
|
|
83
|
+
<td>备  注</td>
|
|
84
|
+
<td colspan="5" style="text-align: left">
|
|
85
|
+
<p style="margin: 0 0 5px">1、退款收到人姓名必须为天然气开户姓名。</p>
|
|
86
|
+
<p style="margin: 0 0 5px">2、退款收到人办理退款时,必须携带身份证或身份证复印件进行办理,并填写退款收到条方可退款。</p>
|
|
87
|
+
<p style="margin: 0 0 5px">3、若退款收到人因特殊原因无法到达现场时需代办人办理退款时,必须现场联系退款用户,核实各项信息确认为代办后,代办人提供退款用户身份证复印件及本人身份证复印件方可办理退款。</p>
|
|
88
|
+
</td>
|
|
89
|
+
</tr>
|
|
90
|
+
</table>
|
|
91
|
+
</div>
|
|
92
|
+
</article>
|
|
93
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
94
|
+
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
95
|
+
</footer>
|
|
96
|
+
</modal>
|
|
97
|
+
|
|
98
|
+
<print-element v-show="false" v-ref:print id='printRefund' styleid='printRefundStyle'
|
|
99
|
+
top='5' left='30' width='100%' height='100%'>
|
|
100
|
+
</print-element>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<script>
|
|
104
|
+
import { isEmpty } from '../../../../Util'
|
|
105
|
+
Date.prototype.Format = function (fmt) {
|
|
106
|
+
var o = {
|
|
107
|
+
"M+": this.getMonth() + 1, //月份
|
|
108
|
+
"d+": this.getDate(), //日
|
|
109
|
+
"H+": this.getHours(), //小时
|
|
110
|
+
"m+": this.getMinutes(), //分
|
|
111
|
+
"s+": this.getSeconds(), //秒
|
|
112
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
113
|
+
"S": this.getMilliseconds() //毫秒
|
|
114
|
+
};
|
|
115
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
116
|
+
for (var k in o)
|
|
117
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
118
|
+
return fmt;
|
|
119
|
+
}
|
|
120
|
+
export default {
|
|
121
|
+
title: '打印退费票据',
|
|
122
|
+
props: {
|
|
123
|
+
selectdata: {
|
|
124
|
+
type: Object
|
|
125
|
+
},
|
|
126
|
+
mark: {
|
|
127
|
+
type: Number,
|
|
128
|
+
default: 0
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
data () {
|
|
132
|
+
return {
|
|
133
|
+
showPrint: false
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
ready () {
|
|
137
|
+
},
|
|
138
|
+
methods: {
|
|
139
|
+
print () {
|
|
140
|
+
this.$refs.print.PrintTable()
|
|
141
|
+
},
|
|
142
|
+
// 金额转大写
|
|
143
|
+
smalltoBIG (n) {
|
|
144
|
+
let fraction = ['角', '分']
|
|
145
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
|
|
146
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]
|
|
147
|
+
let head = n < 0 ? '欠' : ''
|
|
148
|
+
n = Math.abs(n)
|
|
149
|
+
|
|
150
|
+
let s = ''
|
|
151
|
+
|
|
152
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
153
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '')
|
|
154
|
+
}
|
|
155
|
+
s = s || '整'
|
|
156
|
+
n = Math.floor(n)
|
|
157
|
+
|
|
158
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
159
|
+
let p = ''
|
|
160
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
161
|
+
p = digit[n % 10] + unit[1][j] + p
|
|
162
|
+
n = Math.floor(n / 10)
|
|
163
|
+
}
|
|
164
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s
|
|
165
|
+
}
|
|
166
|
+
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
computed: {
|
|
170
|
+
orgs () {
|
|
171
|
+
return this.$login.f.orgs
|
|
172
|
+
},
|
|
173
|
+
username () {
|
|
174
|
+
return this.$login.f.name
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
</script>
|
|
179
|
+
|
|
180
|
+
<style scoped>
|
|
181
|
+
.control-label-justify {
|
|
182
|
+
display: inline-block;
|
|
183
|
+
vertical-align: top;
|
|
184
|
+
width: 110px;
|
|
185
|
+
text-align: justify;
|
|
186
|
+
font-family: PingFang-SC-Bold;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.control-label-justify::after {
|
|
190
|
+
content: "";
|
|
191
|
+
display: inline-block;
|
|
192
|
+
width: 100%;
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
height: 0;
|
|
195
|
+
}
|
|
196
|
+
</style>
|