apply-clients 7.1.36-yuchuan-83 → 7.1.36-yuchuan-84
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/build/dev-server.js +3 -6
- package/package.json +1 -1
- package/src/components/android/AppServiceView.vue +603 -603
- package/src/components/android/Process/AppServiceControl.vue +1434 -1434
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +1032 -1032
- package/src/components/android/Process/Processes/newAppInstallationDetails.vue +671 -671
- package/src/components/android/SealBind.vue +426 -426
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +1115 -1115
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +211 -211
- package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +325 -325
- package/src/components/product/Function/Service/FunctionServiceControl.vue +581 -581
- package/src/components/product/GongJianPush/ApplyPushDispose.vue +299 -299
- package/src/components/product/GongJianPush/ApplyPushManage.vue +92 -92
- package/src/components/product/Ignition/IgnitionListManage.vue +604 -604
- package/src/components/product/List/OldShowDevices.vue +272 -272
- package/src/components/product/List/ShowAllActivity.vue +540 -540
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +446 -446
- package/src/components/product/Print/BuildOrder/printGaiXianOrder.vue +271 -271
- package/src/components/product/Print/OrderPrint/GaiXianOrder.vue +314 -314
- package/src/components/product/Print/OrderPrint/printChaiChuOrder.vue +266 -266
- package/src/components/product/Process/ExplorationSelect.vue +593 -593
- package/src/components/product/Process/NewExplorationSelect.vue +587 -587
- package/src/components/product/Process/Processes/InstallationDetails.vue +1166 -1166
- package/src/components/product/Process/Processes/Print/printCharge.vue +250 -250
- package/src/components/product/Process/Processes/Print/printGaiXianCharge.vue +244 -244
- package/src/components/product/Process/Processes/chargeManagement.vue +766 -766
- package/src/components/product/Process/Processes/newInstallationDetails.vue +683 -683
- package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
- package/src/components/product/Process/Service/ServiceControl.vue +2232 -2232
- package/src/components/product/ServiceView.vue +650 -650
- package/src/components/product/Supervisory/ExportExcel.vue +359 -359
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +592 -592
- package/src/components/product/Supervisory/SupervisoryList.vue +585 -585
- package/src/components/product/Supervisory/YiBanSupervisoryList.vue +543 -543
- package/src/components/product/VueUtils/ApplyUpload.vue +302 -302
- package/src/components/product/VueUtils/HighMeter.vue +208 -208
|
@@ -1,266 +1,266 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<style id="printGaiXianOrderStyle">
|
|
3
|
-
td{
|
|
4
|
-
height: 30px;
|
|
5
|
-
text-align: center;
|
|
6
|
-
}
|
|
7
|
-
table{
|
|
8
|
-
width: 100%;
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
border: 1px solid black;
|
|
12
|
-
border-collapse:collapse;
|
|
13
|
-
}
|
|
14
|
-
h1,h2,h3,h4,h5,h6 {
|
|
15
|
-
text-align: center;
|
|
16
|
-
}
|
|
17
|
-
.merge-content {
|
|
18
|
-
text-align: left;
|
|
19
|
-
vertical-align: top;
|
|
20
|
-
padding: 10px;
|
|
21
|
-
}
|
|
22
|
-
.sign {
|
|
23
|
-
height: 80px;
|
|
24
|
-
}
|
|
25
|
-
.sign_img {
|
|
26
|
-
width: 60px;
|
|
27
|
-
transform: rotate(0deg);
|
|
28
|
-
}
|
|
29
|
-
.replace_img{
|
|
30
|
-
width: 60px;
|
|
31
|
-
transform: rotate(0deg);
|
|
32
|
-
}
|
|
33
|
-
</style>
|
|
34
|
-
<div style="margin-bottom: 20px" class="form-group select-overspread">
|
|
35
|
-
<label class="control-label-justify control-label col-sm-10">打印派工单</label>
|
|
36
|
-
<div class="col-sm-2">
|
|
37
|
-
<button class="button_search button_spacing" type="button" style="width: max-content;position: absolute"
|
|
38
|
-
@click="openModal()">打印预览
|
|
39
|
-
</button>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
<modal v-if="showModal" :show.sync="showModal" title="打印预览" v-ref:modal large backdrop="false">
|
|
43
|
-
<header slot="modal-header" class="modal-header">
|
|
44
|
-
<button type="button" class="close" @click="colseModal()"><span>×</span></button>
|
|
45
|
-
<h4 class="modal-title">打印预览</h4>
|
|
46
|
-
</header>
|
|
47
|
-
<article slot="modal-body" class="modal-body">
|
|
48
|
-
<div id="printGaiXianOrder">
|
|
49
|
-
<h2><span style="letter-spacing: 0px">天然气用户拆除申请表</span></h2>
|
|
50
|
-
<table>编号:{{ selectdata.f_apply_num }}</table>
|
|
51
|
-
<table border="1" cellspacing="0" cellpadding="0">
|
|
52
|
-
<tr>
|
|
53
|
-
<td colspan="2">用户联系人</td>
|
|
54
|
-
<td colspan="2">{{ selectdata.f_contact }}</td>
|
|
55
|
-
<td colspan="2">单位</td>
|
|
56
|
-
<td colspan="2">{{ selectdata.f_user_name }}</td>
|
|
57
|
-
<td colspan="2">联系电话</td>
|
|
58
|
-
<td colspan="2">{{ selectdata.f_phone }}</td>
|
|
59
|
-
</tr>
|
|
60
|
-
<tr>
|
|
61
|
-
<td colspan="2">申请时间</td>
|
|
62
|
-
<td colspan="2">{{ selectdata.f_apply_date }}</td>
|
|
63
|
-
<td colspan="2">用户编号</td>
|
|
64
|
-
<td colspan="2">{{ selectdata.f_userinfo_id }}</td>
|
|
65
|
-
<td colspan="2">用气性质</td>
|
|
66
|
-
<td colspan="2">{{ selectdata.f_apply_nature }}</td>
|
|
67
|
-
</tr>
|
|
68
|
-
<tr>
|
|
69
|
-
<td colspan="2">详细地址</td>
|
|
70
|
-
<td colspan="6">{{ selectdata.f_address }}</td>
|
|
71
|
-
<td colspan="2" v-if="selectdata.f_meter_style">气表型号</td>
|
|
72
|
-
<td colspan="2" v-if="selectdata.f_meter_style">{{ selectdata.f_meter_style }}</td>
|
|
73
|
-
</tr>
|
|
74
|
-
<tr>
|
|
75
|
-
<td colspan="3">申请类别</td>
|
|
76
|
-
<td colspan="3">{{ selectdata.f_user_classification }}</td>
|
|
77
|
-
<td colspan="3">维修意见</td>
|
|
78
|
-
<td colspan="3">{{ selectdata.f_prospecting_result }}</td>
|
|
79
|
-
</tr>
|
|
80
|
-
<tr>
|
|
81
|
-
<td colspan="2">工程整改方案</td>
|
|
82
|
-
<td colspan="10">
|
|
83
|
-
<p style="margin: 0px 0px 30px 0px">{{ selectdata.f_modify_plan }}</p>
|
|
84
|
-
</td>
|
|
85
|
-
</tr>
|
|
86
|
-
<tr>
|
|
87
|
-
<td colspan="2">备注</td>
|
|
88
|
-
<td colspan="10">
|
|
89
|
-
<p style="margin: 0px 0px 30px 0px">{{ selectdata.f_apply_remarks}}</p>
|
|
90
|
-
</td>
|
|
91
|
-
</tr>
|
|
92
|
-
<!-- <tr>-->
|
|
93
|
-
<!-- <td colspan="6" class="merge-content">-->
|
|
94
|
-
<!-- <p style="margin: 0px 0px 10px 0px">工程部审核意见:</p>-->
|
|
95
|
-
<!-- <p style="margin: 0px 0px 30px 0px"></p>-->
|
|
96
|
-
<!-- </td>-->
|
|
97
|
-
<!-- </tr>-->
|
|
98
|
-
<tr v-if="selectdata.f_due_money">
|
|
99
|
-
<td colspan="2">整改收费</td>
|
|
100
|
-
<td colspan="10">
|
|
101
|
-
<p>金额小写:{{ selectdata.f_due_money}},金额大写:{{ selectdata.f_amount_words}}</p>
|
|
102
|
-
</td>
|
|
103
|
-
</tr>
|
|
104
|
-
<tr>
|
|
105
|
-
<td colspan="12"><h4>审批流程</h4></td>
|
|
106
|
-
</tr>
|
|
107
|
-
<tr>
|
|
108
|
-
<td colspan="3">工程部意见</td>
|
|
109
|
-
<td colspan="3">
|
|
110
|
-
<p> </p>
|
|
111
|
-
</td>
|
|
112
|
-
<td colspan="3">分管领导意见</td>
|
|
113
|
-
<td colspan="3">
|
|
114
|
-
<p> </p>
|
|
115
|
-
</td>
|
|
116
|
-
</tr>
|
|
117
|
-
<tr v-if="selectdata.f_due_money">
|
|
118
|
-
<td colspan="3">用户管理部收费情况</td>
|
|
119
|
-
<td colspan="3">
|
|
120
|
-
<p>已收费</p>
|
|
121
|
-
<p>{{ selectdata.f_charge_user }}</p>
|
|
122
|
-
<p>{{ selectdata.f_charge_date }}</p>
|
|
123
|
-
</td>
|
|
124
|
-
<td colspan="3">开材料意见</td>
|
|
125
|
-
<td colspan="3">
|
|
126
|
-
<p>{{ selectdata.f_material_number }}</p>
|
|
127
|
-
<p>{{ selectdata.pgname }}</p>
|
|
128
|
-
<p>{{ selectdata.finishtime }}</p>
|
|
129
|
-
</td>
|
|
130
|
-
</tr>
|
|
131
|
-
<tr>
|
|
132
|
-
<td colspan="3">维修中心意见</td>
|
|
133
|
-
<td colspan="3">
|
|
134
|
-
<p> </p>
|
|
135
|
-
</td>
|
|
136
|
-
<td colspan="3">省安一/二/三意见</td>
|
|
137
|
-
<td colspan="3">
|
|
138
|
-
<p> </p>
|
|
139
|
-
</td>
|
|
140
|
-
</tr>
|
|
141
|
-
<tr>
|
|
142
|
-
<td colspan="3">用户确认签字</td>
|
|
143
|
-
<td colspan="9">
|
|
144
|
-
<p> </p>
|
|
145
|
-
</td>
|
|
146
|
-
</tr>
|
|
147
|
-
</table>
|
|
148
|
-
</div>
|
|
149
|
-
</article>
|
|
150
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
151
|
-
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
152
|
-
</footer>
|
|
153
|
-
</modal>
|
|
154
|
-
|
|
155
|
-
<print-element v-show="false" v-ref:print id='printGaiXianOrder' styleid='printGaiXianOrderStyle'
|
|
156
|
-
top='20' left='30' width='100%' height='100%'>
|
|
157
|
-
</print-element>
|
|
158
|
-
</template>
|
|
159
|
-
|
|
160
|
-
<script>
|
|
161
|
-
import {isEmpty} from '../../../Util'
|
|
162
|
-
import {HttpResetClass} from "vue-client";
|
|
163
|
-
|
|
164
|
-
Date.prototype.Format = function (fmt) {
|
|
165
|
-
var o = {
|
|
166
|
-
'M+': this.getMonth() + 1, // 月份
|
|
167
|
-
'd+': this.getDate(), // 日
|
|
168
|
-
'H+': this.getHours(), // 小时
|
|
169
|
-
'm+': this.getMinutes(), // 分
|
|
170
|
-
's+': this.getSeconds(), // 秒
|
|
171
|
-
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
172
|
-
'S': this.getMilliseconds() // 毫秒
|
|
173
|
-
}
|
|
174
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
175
|
-
for (var k in o)
|
|
176
|
-
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
177
|
-
return fmt
|
|
178
|
-
}
|
|
179
|
-
export default {
|
|
180
|
-
title: '打印派工单',
|
|
181
|
-
props: ['selectdata'],
|
|
182
|
-
data () {
|
|
183
|
-
return {
|
|
184
|
-
showModal: false,
|
|
185
|
-
device: null
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
ready () {
|
|
189
|
-
this.getGaiXianData(this.selectdata.f_process_id)
|
|
190
|
-
},
|
|
191
|
-
methods: {
|
|
192
|
-
openModal () {
|
|
193
|
-
if (this.selectdata.f_due_money >= 0 ) {
|
|
194
|
-
this.smalltoBIG(this.selectdata.f_due_money)
|
|
195
|
-
}
|
|
196
|
-
this.showModal = true
|
|
197
|
-
},
|
|
198
|
-
colseModal () {
|
|
199
|
-
this.showModal = false
|
|
200
|
-
},
|
|
201
|
-
print () {
|
|
202
|
-
this.showInput = false
|
|
203
|
-
setTimeout(() => {
|
|
204
|
-
this.$refs.print.PrintTable()
|
|
205
|
-
}, 10)
|
|
206
|
-
},
|
|
207
|
-
// 金额转大写
|
|
208
|
-
smalltoBIG (n) {
|
|
209
|
-
let fraction = ['角', '分']
|
|
210
|
-
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
|
|
211
|
-
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]
|
|
212
|
-
let head = n < 0 ? '欠' : ''
|
|
213
|
-
n = Math.abs(n)
|
|
214
|
-
|
|
215
|
-
let s = ''
|
|
216
|
-
|
|
217
|
-
for (var i = 0; i < fraction.length; i++) {
|
|
218
|
-
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '')
|
|
219
|
-
}
|
|
220
|
-
s = s || '整'
|
|
221
|
-
n = Math.floor(n)
|
|
222
|
-
|
|
223
|
-
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
224
|
-
let p = ''
|
|
225
|
-
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
226
|
-
p = digit[n % 10] + unit[1][j] + p
|
|
227
|
-
n = Math.floor(n / 10)
|
|
228
|
-
}
|
|
229
|
-
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s
|
|
230
|
-
}
|
|
231
|
-
let result = head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
232
|
-
console.log('当前大写', result)
|
|
233
|
-
this.selectdata.f_amount_words = result
|
|
234
|
-
},
|
|
235
|
-
async getGaiXianData(index) {
|
|
236
|
-
let data = {
|
|
237
|
-
condition: `1=1`,
|
|
238
|
-
f_process_id: index
|
|
239
|
-
}
|
|
240
|
-
let http = new HttpResetClass()
|
|
241
|
-
let res = await http.load(
|
|
242
|
-
'POST',
|
|
243
|
-
`rs/sql/applyGetGaixian`,
|
|
244
|
-
{data: data},
|
|
245
|
-
{resolveMsg: null, rejectMsg: '改线数据查询失败!!!'}
|
|
246
|
-
)
|
|
247
|
-
this.selectdata.f_charge_user = res.data[0].jfname
|
|
248
|
-
this.selectdata.f_charge_date = res.data[0].finishtime
|
|
249
|
-
this.selectdata.pgname = res.data[0].pgname
|
|
250
|
-
this.selectdata.user_dep = res.data[0].departmentname
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
computed: {
|
|
254
|
-
orgs () {
|
|
255
|
-
return this.$login.f.f_fengongsi
|
|
256
|
-
},
|
|
257
|
-
src () {
|
|
258
|
-
// return require(`./img/${this.$login.f.number}.png`)
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
</script>
|
|
263
|
-
|
|
264
|
-
<style scoped>
|
|
265
|
-
|
|
266
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<style id="printGaiXianOrderStyle">
|
|
3
|
+
td{
|
|
4
|
+
height: 30px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
}
|
|
7
|
+
table{
|
|
8
|
+
width: 100%;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
border: 1px solid black;
|
|
12
|
+
border-collapse:collapse;
|
|
13
|
+
}
|
|
14
|
+
h1,h2,h3,h4,h5,h6 {
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
.merge-content {
|
|
18
|
+
text-align: left;
|
|
19
|
+
vertical-align: top;
|
|
20
|
+
padding: 10px;
|
|
21
|
+
}
|
|
22
|
+
.sign {
|
|
23
|
+
height: 80px;
|
|
24
|
+
}
|
|
25
|
+
.sign_img {
|
|
26
|
+
width: 60px;
|
|
27
|
+
transform: rotate(0deg);
|
|
28
|
+
}
|
|
29
|
+
.replace_img{
|
|
30
|
+
width: 60px;
|
|
31
|
+
transform: rotate(0deg);
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
34
|
+
<div style="margin-bottom: 20px" class="form-group select-overspread">
|
|
35
|
+
<label class="control-label-justify control-label col-sm-10">打印派工单</label>
|
|
36
|
+
<div class="col-sm-2">
|
|
37
|
+
<button class="button_search button_spacing" type="button" style="width: max-content;position: absolute"
|
|
38
|
+
@click="openModal()">打印预览
|
|
39
|
+
</button>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<modal v-if="showModal" :show.sync="showModal" title="打印预览" v-ref:modal large backdrop="false">
|
|
43
|
+
<header slot="modal-header" class="modal-header">
|
|
44
|
+
<button type="button" class="close" @click="colseModal()"><span>×</span></button>
|
|
45
|
+
<h4 class="modal-title">打印预览</h4>
|
|
46
|
+
</header>
|
|
47
|
+
<article slot="modal-body" class="modal-body">
|
|
48
|
+
<div id="printGaiXianOrder">
|
|
49
|
+
<h2><span style="letter-spacing: 0px">天然气用户拆除申请表</span></h2>
|
|
50
|
+
<table>编号:{{ selectdata.f_apply_num }}</table>
|
|
51
|
+
<table border="1" cellspacing="0" cellpadding="0">
|
|
52
|
+
<tr>
|
|
53
|
+
<td colspan="2">用户联系人</td>
|
|
54
|
+
<td colspan="2">{{ selectdata.f_contact }}</td>
|
|
55
|
+
<td colspan="2">单位</td>
|
|
56
|
+
<td colspan="2">{{ selectdata.f_user_name }}</td>
|
|
57
|
+
<td colspan="2">联系电话</td>
|
|
58
|
+
<td colspan="2">{{ selectdata.f_phone }}</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<td colspan="2">申请时间</td>
|
|
62
|
+
<td colspan="2">{{ selectdata.f_apply_date }}</td>
|
|
63
|
+
<td colspan="2">用户编号</td>
|
|
64
|
+
<td colspan="2">{{ selectdata.f_userinfo_id }}</td>
|
|
65
|
+
<td colspan="2">用气性质</td>
|
|
66
|
+
<td colspan="2">{{ selectdata.f_apply_nature }}</td>
|
|
67
|
+
</tr>
|
|
68
|
+
<tr>
|
|
69
|
+
<td colspan="2">详细地址</td>
|
|
70
|
+
<td colspan="6">{{ selectdata.f_address }}</td>
|
|
71
|
+
<td colspan="2" v-if="selectdata.f_meter_style">气表型号</td>
|
|
72
|
+
<td colspan="2" v-if="selectdata.f_meter_style">{{ selectdata.f_meter_style }}</td>
|
|
73
|
+
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td colspan="3">申请类别</td>
|
|
76
|
+
<td colspan="3">{{ selectdata.f_user_classification }}</td>
|
|
77
|
+
<td colspan="3">维修意见</td>
|
|
78
|
+
<td colspan="3">{{ selectdata.f_prospecting_result }}</td>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr>
|
|
81
|
+
<td colspan="2">工程整改方案</td>
|
|
82
|
+
<td colspan="10">
|
|
83
|
+
<p style="margin: 0px 0px 30px 0px">{{ selectdata.f_modify_plan }}</p>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
<tr>
|
|
87
|
+
<td colspan="2">备注</td>
|
|
88
|
+
<td colspan="10">
|
|
89
|
+
<p style="margin: 0px 0px 30px 0px">{{ selectdata.f_apply_remarks}}</p>
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<!-- <tr>-->
|
|
93
|
+
<!-- <td colspan="6" class="merge-content">-->
|
|
94
|
+
<!-- <p style="margin: 0px 0px 10px 0px">工程部审核意见:</p>-->
|
|
95
|
+
<!-- <p style="margin: 0px 0px 30px 0px"></p>-->
|
|
96
|
+
<!-- </td>-->
|
|
97
|
+
<!-- </tr>-->
|
|
98
|
+
<tr v-if="selectdata.f_due_money">
|
|
99
|
+
<td colspan="2">整改收费</td>
|
|
100
|
+
<td colspan="10">
|
|
101
|
+
<p>金额小写:{{ selectdata.f_due_money}},金额大写:{{ selectdata.f_amount_words}}</p>
|
|
102
|
+
</td>
|
|
103
|
+
</tr>
|
|
104
|
+
<tr>
|
|
105
|
+
<td colspan="12"><h4>审批流程</h4></td>
|
|
106
|
+
</tr>
|
|
107
|
+
<tr>
|
|
108
|
+
<td colspan="3">工程部意见</td>
|
|
109
|
+
<td colspan="3">
|
|
110
|
+
<p> </p>
|
|
111
|
+
</td>
|
|
112
|
+
<td colspan="3">分管领导意见</td>
|
|
113
|
+
<td colspan="3">
|
|
114
|
+
<p> </p>
|
|
115
|
+
</td>
|
|
116
|
+
</tr>
|
|
117
|
+
<tr v-if="selectdata.f_due_money">
|
|
118
|
+
<td colspan="3">用户管理部收费情况</td>
|
|
119
|
+
<td colspan="3">
|
|
120
|
+
<p>已收费</p>
|
|
121
|
+
<p>{{ selectdata.f_charge_user }}</p>
|
|
122
|
+
<p>{{ selectdata.f_charge_date }}</p>
|
|
123
|
+
</td>
|
|
124
|
+
<td colspan="3">开材料意见</td>
|
|
125
|
+
<td colspan="3">
|
|
126
|
+
<p>{{ selectdata.f_material_number }}</p>
|
|
127
|
+
<p>{{ selectdata.pgname }}</p>
|
|
128
|
+
<p>{{ selectdata.finishtime }}</p>
|
|
129
|
+
</td>
|
|
130
|
+
</tr>
|
|
131
|
+
<tr>
|
|
132
|
+
<td colspan="3">维修中心意见</td>
|
|
133
|
+
<td colspan="3">
|
|
134
|
+
<p> </p>
|
|
135
|
+
</td>
|
|
136
|
+
<td colspan="3">省安一/二/三意见</td>
|
|
137
|
+
<td colspan="3">
|
|
138
|
+
<p> </p>
|
|
139
|
+
</td>
|
|
140
|
+
</tr>
|
|
141
|
+
<tr>
|
|
142
|
+
<td colspan="3">用户确认签字</td>
|
|
143
|
+
<td colspan="9">
|
|
144
|
+
<p> </p>
|
|
145
|
+
</td>
|
|
146
|
+
</tr>
|
|
147
|
+
</table>
|
|
148
|
+
</div>
|
|
149
|
+
</article>
|
|
150
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
151
|
+
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
152
|
+
</footer>
|
|
153
|
+
</modal>
|
|
154
|
+
|
|
155
|
+
<print-element v-show="false" v-ref:print id='printGaiXianOrder' styleid='printGaiXianOrderStyle'
|
|
156
|
+
top='20' left='30' width='100%' height='100%'>
|
|
157
|
+
</print-element>
|
|
158
|
+
</template>
|
|
159
|
+
|
|
160
|
+
<script>
|
|
161
|
+
import {isEmpty} from '../../../Util'
|
|
162
|
+
import {HttpResetClass} from "vue-client";
|
|
163
|
+
|
|
164
|
+
Date.prototype.Format = function (fmt) {
|
|
165
|
+
var o = {
|
|
166
|
+
'M+': this.getMonth() + 1, // 月份
|
|
167
|
+
'd+': this.getDate(), // 日
|
|
168
|
+
'H+': this.getHours(), // 小时
|
|
169
|
+
'm+': this.getMinutes(), // 分
|
|
170
|
+
's+': this.getSeconds(), // 秒
|
|
171
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
172
|
+
'S': this.getMilliseconds() // 毫秒
|
|
173
|
+
}
|
|
174
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
175
|
+
for (var k in o)
|
|
176
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
177
|
+
return fmt
|
|
178
|
+
}
|
|
179
|
+
export default {
|
|
180
|
+
title: '打印派工单',
|
|
181
|
+
props: ['selectdata'],
|
|
182
|
+
data () {
|
|
183
|
+
return {
|
|
184
|
+
showModal: false,
|
|
185
|
+
device: null
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
ready () {
|
|
189
|
+
this.getGaiXianData(this.selectdata.f_process_id)
|
|
190
|
+
},
|
|
191
|
+
methods: {
|
|
192
|
+
openModal () {
|
|
193
|
+
if (this.selectdata.f_due_money >= 0 ) {
|
|
194
|
+
this.smalltoBIG(this.selectdata.f_due_money)
|
|
195
|
+
}
|
|
196
|
+
this.showModal = true
|
|
197
|
+
},
|
|
198
|
+
colseModal () {
|
|
199
|
+
this.showModal = false
|
|
200
|
+
},
|
|
201
|
+
print () {
|
|
202
|
+
this.showInput = false
|
|
203
|
+
setTimeout(() => {
|
|
204
|
+
this.$refs.print.PrintTable()
|
|
205
|
+
}, 10)
|
|
206
|
+
},
|
|
207
|
+
// 金额转大写
|
|
208
|
+
smalltoBIG (n) {
|
|
209
|
+
let fraction = ['角', '分']
|
|
210
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
|
|
211
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]
|
|
212
|
+
let head = n < 0 ? '欠' : ''
|
|
213
|
+
n = Math.abs(n)
|
|
214
|
+
|
|
215
|
+
let s = ''
|
|
216
|
+
|
|
217
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
218
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '')
|
|
219
|
+
}
|
|
220
|
+
s = s || '整'
|
|
221
|
+
n = Math.floor(n)
|
|
222
|
+
|
|
223
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
224
|
+
let p = ''
|
|
225
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
226
|
+
p = digit[n % 10] + unit[1][j] + p
|
|
227
|
+
n = Math.floor(n / 10)
|
|
228
|
+
}
|
|
229
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s
|
|
230
|
+
}
|
|
231
|
+
let result = head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
232
|
+
console.log('当前大写', result)
|
|
233
|
+
this.selectdata.f_amount_words = result
|
|
234
|
+
},
|
|
235
|
+
async getGaiXianData(index) {
|
|
236
|
+
let data = {
|
|
237
|
+
condition: `1=1`,
|
|
238
|
+
f_process_id: index
|
|
239
|
+
}
|
|
240
|
+
let http = new HttpResetClass()
|
|
241
|
+
let res = await http.load(
|
|
242
|
+
'POST',
|
|
243
|
+
`rs/sql/applyGetGaixian`,
|
|
244
|
+
{data: data},
|
|
245
|
+
{resolveMsg: null, rejectMsg: '改线数据查询失败!!!'}
|
|
246
|
+
)
|
|
247
|
+
this.selectdata.f_charge_user = res.data[0].jfname
|
|
248
|
+
this.selectdata.f_charge_date = res.data[0].finishtime
|
|
249
|
+
this.selectdata.pgname = res.data[0].pgname
|
|
250
|
+
this.selectdata.user_dep = res.data[0].departmentname
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
computed: {
|
|
254
|
+
orgs () {
|
|
255
|
+
return this.$login.f.f_fengongsi
|
|
256
|
+
},
|
|
257
|
+
src () {
|
|
258
|
+
// return require(`./img/${this.$login.f.number}.png`)
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
</script>
|
|
263
|
+
|
|
264
|
+
<style scoped>
|
|
265
|
+
|
|
266
|
+
</style>
|