apply-clients 7.1.36-yuchuan-67 → 7.1.36-yuchuan-69
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 +1029 -1029
- package/src/components/android/Process/Processes/newAppInstallationDetails.vue +671 -671
- package/src/components/android/SealBind.vue +405 -405
- 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/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/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/newInstallationDetails.vue +683 -683
- package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
- package/src/components/product/Process/Service/ServiceControl.vue +2230 -2222
- 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,446 +1,446 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 施工通知单 -->
|
|
3
|
-
<div class="flex-row">
|
|
4
|
-
<div class="basic-main">
|
|
5
|
-
<criteria-paged :model="model" v-ref:cp>
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
7
|
-
<div class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
-
<div class="row">
|
|
9
|
-
<div class="form-group col-sm-3">
|
|
10
|
-
<label class="font_normal_body"><strong>工程编号:</strong></label>
|
|
11
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
|
|
12
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
13
|
-
condition="f_apply_num like '%{}%'">
|
|
14
|
-
</div>
|
|
15
|
-
<div class="form-group col-sm-3">
|
|
16
|
-
<label class="font_normal_body"><strong>用户名称:</strong></label>
|
|
17
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='用户名称' v-model="model.f_user_name"
|
|
18
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
19
|
-
condition="f_user_name like '%{}%'">
|
|
20
|
-
</div>
|
|
21
|
-
<div class="form-group col-sm-3">
|
|
22
|
-
<label class="font_normal_body"><strong>电  话:</strong></label>
|
|
23
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='电话' v-model="model.f_phone"
|
|
24
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
25
|
-
condition="f_phone = '{}'">
|
|
26
|
-
</div>
|
|
27
|
-
<div class="form-group col-sm-3 button-range">
|
|
28
|
-
<button class="button_export button_spacing" @click="$parent.$parent.batchPrint()">批量打印</button>
|
|
29
|
-
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
30
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
31
|
-
<div
|
|
32
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
33
|
-
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
34
|
-
class="button_spacing"
|
|
35
|
-
style="float: right">
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
40
|
-
<div class="form-group col-sm-3">
|
|
41
|
-
<label class="font_normal_body"><strong>报建类型:</strong></label>
|
|
42
|
-
<v-select
|
|
43
|
-
v-model="model.f_apply_type"
|
|
44
|
-
placeholder='报建类型'
|
|
45
|
-
condition="f_apply_type = '{}'"
|
|
46
|
-
:value.sync="model.f_apply_type"
|
|
47
|
-
:options='$parent.$parent.applytype'
|
|
48
|
-
class="select select_list"
|
|
49
|
-
:value-single="true"
|
|
50
|
-
close-on-select ></v-select>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="form-group col-sm-3">
|
|
53
|
-
<label class="font_normal_body"><strong>地  址:</strong></label>
|
|
54
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
|
|
55
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
56
|
-
condition="f_address like '%{}%'">
|
|
57
|
-
</div>
|
|
58
|
-
<div class="form-group col-sm-3">
|
|
59
|
-
<label class="font_normal_body"><strong>安装单位:</strong></label>
|
|
60
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='安装单位' v-model="model.f_construction_name"
|
|
61
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
62
|
-
condition="f_construction_name like '%{}%'">
|
|
63
|
-
</div>
|
|
64
|
-
<div class="form-group col-sm-3">
|
|
65
|
-
<label for="startDate" class="font_normal_body"><strong>开始时间:</strong></label>
|
|
66
|
-
<datepicker id="startDate" placeholder="开始日期"
|
|
67
|
-
style="width: 60%!important;"
|
|
68
|
-
v-model="model.startDate"
|
|
69
|
-
:value.sync="model.startDate"
|
|
70
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
71
|
-
:show-reset-button="true"
|
|
72
|
-
condition="a.f_release_date >= '{}'">
|
|
73
|
-
</datepicker>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="form-group col-sm-3">
|
|
76
|
-
<label for="endDate" class="font_normal_body"><strong>结束时间:</strong></label>
|
|
77
|
-
<datepicker id="endDate" placeholder="结束日期"
|
|
78
|
-
style="width: 60%!important;"
|
|
79
|
-
v-model="model.endDate"
|
|
80
|
-
:value.sync="model.endDate"
|
|
81
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
82
|
-
:show-reset-button="true"
|
|
83
|
-
condition="a.f_release_date <= '{}'">
|
|
84
|
-
</datepicker>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</criteria>
|
|
89
|
-
<data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
90
|
-
<template partial='head'>
|
|
91
|
-
<tr>
|
|
92
|
-
<th>序号</th>
|
|
93
|
-
<th>工程编号</th>
|
|
94
|
-
<th>用户名称</th>
|
|
95
|
-
<th>电话</th>
|
|
96
|
-
<th>地址</th>
|
|
97
|
-
<th>安装单位</th>
|
|
98
|
-
<th>派单时间</th>
|
|
99
|
-
</tr>
|
|
100
|
-
</template>
|
|
101
|
-
<template partial='body'>
|
|
102
|
-
<tr >
|
|
103
|
-
<td style="text-align: center;">
|
|
104
|
-
<nobr><font>{{$index+1}}</font></nobr>
|
|
105
|
-
</td>
|
|
106
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
107
|
-
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
108
|
-
</td>
|
|
109
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
110
|
-
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
111
|
-
</td>
|
|
112
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
113
|
-
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
114
|
-
</td>
|
|
115
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
116
|
-
<nobr><font>{{row.f_address}}</font></nobr>
|
|
117
|
-
</td>
|
|
118
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
119
|
-
<nobr><font>{{row.f_construction_name}}</font></nobr>
|
|
120
|
-
</td>
|
|
121
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
122
|
-
<nobr><font>{{row.f_release_date}}</font></nobr>
|
|
123
|
-
</td>
|
|
124
|
-
</tr>
|
|
125
|
-
</template>
|
|
126
|
-
</data-grid>
|
|
127
|
-
</criteria-paged>
|
|
128
|
-
|
|
129
|
-
<modal :show.sync="showPrint" title="打印预览" v-ref:modal :backdrop="false">
|
|
130
|
-
<header slot="modal-header" class="modal-header">
|
|
131
|
-
<button type="button" class="close" @click="colseModal()"><span>×</span></button>
|
|
132
|
-
<h4 class="modal-title">打印预览</h4>
|
|
133
|
-
</header>
|
|
134
|
-
<article slot="modal-body" class="modal-body" v-show="printShow">
|
|
135
|
-
<print-build-order :selectdata="selectdata" :type="type" v-ref:print></print-build-order>
|
|
136
|
-
</article>
|
|
137
|
-
<article slot="modal-body" class="modal-body" v-show="printShow1">
|
|
138
|
-
<print-gai-order :selectdata="selectdata" :type="type" v-ref:print1></print-gai-order>
|
|
139
|
-
</article>
|
|
140
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
141
|
-
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
142
|
-
</footer>
|
|
143
|
-
</modal>
|
|
144
|
-
|
|
145
|
-
<modal :show.sync="showProgress" v-ref:progress :backdrop="false">
|
|
146
|
-
<header slot="modal-header" class="modal-header">
|
|
147
|
-
<button type="button" class="close" @click="colseModal()"><span>×</span></button>
|
|
148
|
-
<h4 class="modal-title">发送打印指令中,请耐心等待...</h4>
|
|
149
|
-
</header>
|
|
150
|
-
<article slot="modal-body" class="modal-body">
|
|
151
|
-
<div class="progress" style="margin: 20px">
|
|
152
|
-
<div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
|
|
153
|
-
{{ percent }}
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
</article>
|
|
157
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
158
|
-
</footer>
|
|
159
|
-
</modal>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
</template>
|
|
163
|
-
|
|
164
|
-
<script>
|
|
165
|
-
import {PagedList} from 'vue-client'
|
|
166
|
-
import {HttpResetClass} from 'vue-client'
|
|
167
|
-
export default {
|
|
168
|
-
title: '施工通知单',
|
|
169
|
-
data () {
|
|
170
|
-
return {
|
|
171
|
-
model: new PagedList('rs/sql/buildOrderList', 30, null),
|
|
172
|
-
criteriaShow: false,
|
|
173
|
-
selectdata: null,
|
|
174
|
-
showPrint: false,
|
|
175
|
-
showProgress: false,
|
|
176
|
-
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')?this.$appdata.getParam('报建类型'):[]],
|
|
177
|
-
percent: 0,
|
|
178
|
-
userfile: '',
|
|
179
|
-
device: '',
|
|
180
|
-
f_construct_operator: '',
|
|
181
|
-
f_build_operator: '',
|
|
182
|
-
type: 'PREVIEW',
|
|
183
|
-
printShow: false,
|
|
184
|
-
printShow1: false
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
ready () {
|
|
188
|
-
// 调用查询
|
|
189
|
-
this.search()
|
|
190
|
-
},
|
|
191
|
-
methods: {
|
|
192
|
-
async batchPrint () {
|
|
193
|
-
this.type = 'PRINT'
|
|
194
|
-
let selectPrint = this.$refs.cp.$refs.grid.getRowData()
|
|
195
|
-
let res = await this.getUserfiles(selectPrint)
|
|
196
|
-
for (let i = 0; i < selectPrint.length; i++) {
|
|
197
|
-
if (selectPrint[i].f_apply_type !== '改线业务'){
|
|
198
|
-
for (let j = 0; j < res.length; j++) {
|
|
199
|
-
if (selectPrint[i].f_process_id === res[j].f_process_id){
|
|
200
|
-
selectPrint[i].userfile = res[j].f_meter
|
|
201
|
-
selectPrint[i].device = res[j].f_devices
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
setTimeout( async () => {
|
|
207
|
-
if (selectPrint.length > 0) {
|
|
208
|
-
let res = await this.$showMessage(`当前数据条数: ${selectPrint.length}, 条数过大时打印时间可能会过长, 是否确认打印?`)
|
|
209
|
-
if (res == 'confirm') {
|
|
210
|
-
this.showProgress = true
|
|
211
|
-
for (let i = 0; i < selectPrint.length; i++) {
|
|
212
|
-
setTimeout( async () => {
|
|
213
|
-
this.selectdata = selectPrint[i]
|
|
214
|
-
console.log("当前数据", selectPrint[i])
|
|
215
|
-
if (selectPrint[i].f_due_money >= 0) {
|
|
216
|
-
selectPrint[i].f_amount_words = this.smalltoBIG(selectPrint[i].f_due_money)
|
|
217
|
-
}
|
|
218
|
-
this.print(selectPrint[i])
|
|
219
|
-
this.percent = this.getPercent(i, selectPrint.length)
|
|
220
|
-
this.selectdata = null
|
|
221
|
-
},3000)
|
|
222
|
-
}
|
|
223
|
-
this.showProgress = false
|
|
224
|
-
this.percent = 0
|
|
225
|
-
this.$refs.cp.$refs.grid.selectInit()
|
|
226
|
-
}
|
|
227
|
-
} else {
|
|
228
|
-
this.$showMessage('请选择要打印的单子')
|
|
229
|
-
}
|
|
230
|
-
}, 600)
|
|
231
|
-
},
|
|
232
|
-
getPercent (num, total){
|
|
233
|
-
num = parseFloat(num);
|
|
234
|
-
total = parseFloat(total);
|
|
235
|
-
if (isNaN(num) || isNaN(total)) {
|
|
236
|
-
return "-";
|
|
237
|
-
}
|
|
238
|
-
return total <= 0? "0%" : Math.round((num / total) * 10000) / 100.0 + "%";
|
|
239
|
-
},
|
|
240
|
-
print (index) {
|
|
241
|
-
console.log("当前数据",index)
|
|
242
|
-
if (index !== null && index !== '' && index !== undefined){
|
|
243
|
-
this.selectdata = index
|
|
244
|
-
}
|
|
245
|
-
if (this.getShowPrint(this.selectdata.f_apply_type)){
|
|
246
|
-
this.$refs.print.print(index)
|
|
247
|
-
}else {
|
|
248
|
-
this.$refs.print1.print(index)
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
colseModal () {
|
|
252
|
-
this.showPrint = false
|
|
253
|
-
this.showProgress = false
|
|
254
|
-
this.printShow = false
|
|
255
|
-
this.printShow1 = false
|
|
256
|
-
this.selectdata = null
|
|
257
|
-
},
|
|
258
|
-
getShowPrint (index) {
|
|
259
|
-
console.log('2222',index)
|
|
260
|
-
if (index !== '改线业务'){
|
|
261
|
-
this.printShow = true
|
|
262
|
-
return true
|
|
263
|
-
}
|
|
264
|
-
this.printShow1 = true
|
|
265
|
-
return false
|
|
266
|
-
},
|
|
267
|
-
async click (row) {
|
|
268
|
-
this.type = 'PREVIEW'
|
|
269
|
-
if (row.f_apply_type !== '改线业务') {
|
|
270
|
-
await this.getUserfile(row.f_process_id)
|
|
271
|
-
}
|
|
272
|
-
this.getShowPrint(row.f_apply_type)
|
|
273
|
-
setTimeout(() => {
|
|
274
|
-
row.userfile = this.userfile
|
|
275
|
-
row.device = this.device
|
|
276
|
-
this.selectdata = row
|
|
277
|
-
if (this.selectdata.f_due_money >= 0 ) {
|
|
278
|
-
this.selectdata.f_amount_words = this.smalltoBIG(this.selectdata.f_due_money)
|
|
279
|
-
}
|
|
280
|
-
this.showPrint = true
|
|
281
|
-
}, 600)
|
|
282
|
-
},
|
|
283
|
-
async getMeter(f_process_id) {
|
|
284
|
-
let data = {
|
|
285
|
-
f_process_id: f_process_id
|
|
286
|
-
}
|
|
287
|
-
let http = new HttpResetClass()
|
|
288
|
-
let res = await http.load(
|
|
289
|
-
'POST',
|
|
290
|
-
`rs/sql/getMeters`,
|
|
291
|
-
{data: data},
|
|
292
|
-
{resolveMsg: null, rejectMsg: null}
|
|
293
|
-
)
|
|
294
|
-
let userfile = ''
|
|
295
|
-
for (let i = 0; i < res.data.length ; i++){
|
|
296
|
-
console.log("表具信77息",res.data[i].f_meter_type)
|
|
297
|
-
if (res.data[i].f_meter_type === null){
|
|
298
|
-
res.data[i].f_meter_type = '表具'
|
|
299
|
-
}
|
|
300
|
-
userfile = userfile + res.data[i].f_meter_count + '块' + res.data[i].f_meter_type + ','
|
|
301
|
-
}
|
|
302
|
-
if (userfile === ''){
|
|
303
|
-
userfile = '无表具,'
|
|
304
|
-
}
|
|
305
|
-
console.log("表具信息",userfile)
|
|
306
|
-
this.userfile = userfile
|
|
307
|
-
return userfile
|
|
308
|
-
},
|
|
309
|
-
async getDevice(f_process_id) {
|
|
310
|
-
let data = {
|
|
311
|
-
f_process_id: f_process_id
|
|
312
|
-
}
|
|
313
|
-
let http = new HttpResetClass()
|
|
314
|
-
let res = await http.load(
|
|
315
|
-
'POST',
|
|
316
|
-
`rs/sql/getUserDevices`,
|
|
317
|
-
{data: data},
|
|
318
|
-
{resolveMsg: null, rejectMsg: null}
|
|
319
|
-
)
|
|
320
|
-
let device = ''
|
|
321
|
-
for (let i = 0; i < res.data.length ; i++){
|
|
322
|
-
if (res.data[i].f_devices_type === null){
|
|
323
|
-
res.data[i].f_devices_type = '设备'
|
|
324
|
-
}
|
|
325
|
-
console.log("设备信77息",res.data[i].f_devices_type)
|
|
326
|
-
device = device + res.data[i].f_devices_count + '个' + res.data[i].f_devices_type + ','
|
|
327
|
-
}
|
|
328
|
-
if (device === ''){
|
|
329
|
-
device = '无设备,'
|
|
330
|
-
}
|
|
331
|
-
console.log("设备信息",device)
|
|
332
|
-
this.device = device
|
|
333
|
-
return device
|
|
334
|
-
},
|
|
335
|
-
async getUserfile(f_process_id) {
|
|
336
|
-
let data = {
|
|
337
|
-
condition: `met.f_process_id = '${f_process_id}'`
|
|
338
|
-
}
|
|
339
|
-
let http = new HttpResetClass()
|
|
340
|
-
let res = await http.load(
|
|
341
|
-
'POST',
|
|
342
|
-
`rs/sql/getUserfiles`,
|
|
343
|
-
{data: data},
|
|
344
|
-
{resolveMsg: null, rejectMsg: null}
|
|
345
|
-
)
|
|
346
|
-
if (res.data.length > 0){
|
|
347
|
-
this.userfile = res.data[0].f_meter
|
|
348
|
-
this.device = res.data[0].f_devices
|
|
349
|
-
return res.data[0]
|
|
350
|
-
}
|
|
351
|
-
return {f_meter:'无',f_devices:'无'}
|
|
352
|
-
},
|
|
353
|
-
async getUserfiles(selectPrint) {
|
|
354
|
-
let porcessid = `(`
|
|
355
|
-
if (selectPrint.length > 0){
|
|
356
|
-
for (let i=0; i < selectPrint.length-1; i++){
|
|
357
|
-
porcessid = porcessid + `'` + selectPrint[i].f_process_id + `',`
|
|
358
|
-
}
|
|
359
|
-
porcessid = porcessid + `'` + selectPrint[selectPrint.length-1].f_process_id + `')`
|
|
360
|
-
}
|
|
361
|
-
console.log("当前porcessid",porcessid)
|
|
362
|
-
|
|
363
|
-
let data = {
|
|
364
|
-
condition: `met.f_process_id in ${porcessid}`
|
|
365
|
-
}
|
|
366
|
-
let http = new HttpResetClass()
|
|
367
|
-
let res = await http.load(
|
|
368
|
-
'POST',
|
|
369
|
-
`rs/sql/getUserfiles`,
|
|
370
|
-
{data: data},
|
|
371
|
-
{resolveMsg: null, rejectMsg: null}
|
|
372
|
-
)
|
|
373
|
-
console.log("当前res.data",res.data)
|
|
374
|
-
return res.data
|
|
375
|
-
},
|
|
376
|
-
async getUser(str) {
|
|
377
|
-
if (str) {
|
|
378
|
-
let data = {
|
|
379
|
-
items: 'us.name username,de.name departmentname',
|
|
380
|
-
tablename: 't_user us left join t_department de on us.parentid = de.id',
|
|
381
|
-
condition: `us.id = '${str}'`
|
|
382
|
-
}
|
|
383
|
-
let http = new HttpResetClass()
|
|
384
|
-
let res = await http.load(
|
|
385
|
-
'POST',
|
|
386
|
-
'rs/sql/applySingleTable',
|
|
387
|
-
{data: data}, {
|
|
388
|
-
resolveMsg: null,
|
|
389
|
-
rejectMsg: '操作人查询失败!!!'
|
|
390
|
-
})
|
|
391
|
-
if (res.data.length > 0){
|
|
392
|
-
let result = res.data[0]
|
|
393
|
-
console.log('当前人员信息', result)
|
|
394
|
-
return result
|
|
395
|
-
}else {
|
|
396
|
-
return {username:'',departmentname:''}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
smalltoBIG (n) {
|
|
401
|
-
let fraction = ['角', '分']
|
|
402
|
-
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
|
|
403
|
-
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]
|
|
404
|
-
let head = n < 0 ? '欠' : ''
|
|
405
|
-
n = Math.abs(n)
|
|
406
|
-
|
|
407
|
-
let s = ''
|
|
408
|
-
|
|
409
|
-
for (var i = 0; i < fraction.length; i++) {
|
|
410
|
-
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '')
|
|
411
|
-
}
|
|
412
|
-
s = s || '整'
|
|
413
|
-
n = Math.floor(n)
|
|
414
|
-
|
|
415
|
-
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
416
|
-
let p = ''
|
|
417
|
-
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
418
|
-
p = digit[n % 10] + unit[1][j] + p
|
|
419
|
-
n = Math.floor(n / 10)
|
|
420
|
-
}
|
|
421
|
-
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s
|
|
422
|
-
}
|
|
423
|
-
let result = head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
424
|
-
console.log('当前大写', result)
|
|
425
|
-
return result
|
|
426
|
-
},
|
|
427
|
-
clear () {
|
|
428
|
-
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
429
|
-
this.$refs.cp.$refs.cri.model[key] = ''
|
|
430
|
-
})
|
|
431
|
-
},
|
|
432
|
-
searchCondition (args) {
|
|
433
|
-
this.model.search(args.condition, args.model)
|
|
434
|
-
},
|
|
435
|
-
// 查询
|
|
436
|
-
search () {
|
|
437
|
-
this.$refs.cp.$refs.cri.search()
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
computed: {
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
</script>
|
|
444
|
-
|
|
445
|
-
<style scoped>
|
|
446
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<!-- 施工通知单 -->
|
|
3
|
+
<div class="flex-row">
|
|
4
|
+
<div class="basic-main">
|
|
5
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
7
|
+
<div class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="form-group col-sm-3">
|
|
10
|
+
<label class="font_normal_body"><strong>工程编号:</strong></label>
|
|
11
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
|
|
12
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
13
|
+
condition="f_apply_num like '%{}%'">
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-group col-sm-3">
|
|
16
|
+
<label class="font_normal_body"><strong>用户名称:</strong></label>
|
|
17
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='用户名称' v-model="model.f_user_name"
|
|
18
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
19
|
+
condition="f_user_name like '%{}%'">
|
|
20
|
+
</div>
|
|
21
|
+
<div class="form-group col-sm-3">
|
|
22
|
+
<label class="font_normal_body"><strong>电  话:</strong></label>
|
|
23
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='电话' v-model="model.f_phone"
|
|
24
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
25
|
+
condition="f_phone = '{}'">
|
|
26
|
+
</div>
|
|
27
|
+
<div class="form-group col-sm-3 button-range">
|
|
28
|
+
<button class="button_export button_spacing" @click="$parent.$parent.batchPrint()">批量打印</button>
|
|
29
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
30
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
31
|
+
<div
|
|
32
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
33
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
34
|
+
class="button_spacing"
|
|
35
|
+
style="float: right">
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
40
|
+
<div class="form-group col-sm-3">
|
|
41
|
+
<label class="font_normal_body"><strong>报建类型:</strong></label>
|
|
42
|
+
<v-select
|
|
43
|
+
v-model="model.f_apply_type"
|
|
44
|
+
placeholder='报建类型'
|
|
45
|
+
condition="f_apply_type = '{}'"
|
|
46
|
+
:value.sync="model.f_apply_type"
|
|
47
|
+
:options='$parent.$parent.applytype'
|
|
48
|
+
class="select select_list"
|
|
49
|
+
:value-single="true"
|
|
50
|
+
close-on-select ></v-select>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="form-group col-sm-3">
|
|
53
|
+
<label class="font_normal_body"><strong>地  址:</strong></label>
|
|
54
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
|
|
55
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
56
|
+
condition="f_address like '%{}%'">
|
|
57
|
+
</div>
|
|
58
|
+
<div class="form-group col-sm-3">
|
|
59
|
+
<label class="font_normal_body"><strong>安装单位:</strong></label>
|
|
60
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='安装单位' v-model="model.f_construction_name"
|
|
61
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
62
|
+
condition="f_construction_name like '%{}%'">
|
|
63
|
+
</div>
|
|
64
|
+
<div class="form-group col-sm-3">
|
|
65
|
+
<label for="startDate" class="font_normal_body"><strong>开始时间:</strong></label>
|
|
66
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
67
|
+
style="width: 60%!important;"
|
|
68
|
+
v-model="model.startDate"
|
|
69
|
+
:value.sync="model.startDate"
|
|
70
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
71
|
+
:show-reset-button="true"
|
|
72
|
+
condition="a.f_release_date >= '{}'">
|
|
73
|
+
</datepicker>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="form-group col-sm-3">
|
|
76
|
+
<label for="endDate" class="font_normal_body"><strong>结束时间:</strong></label>
|
|
77
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
78
|
+
style="width: 60%!important;"
|
|
79
|
+
v-model="model.endDate"
|
|
80
|
+
:value.sync="model.endDate"
|
|
81
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
82
|
+
:show-reset-button="true"
|
|
83
|
+
condition="a.f_release_date <= '{}'">
|
|
84
|
+
</datepicker>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</criteria>
|
|
89
|
+
<data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
90
|
+
<template partial='head'>
|
|
91
|
+
<tr>
|
|
92
|
+
<th>序号</th>
|
|
93
|
+
<th>工程编号</th>
|
|
94
|
+
<th>用户名称</th>
|
|
95
|
+
<th>电话</th>
|
|
96
|
+
<th>地址</th>
|
|
97
|
+
<th>安装单位</th>
|
|
98
|
+
<th>派单时间</th>
|
|
99
|
+
</tr>
|
|
100
|
+
</template>
|
|
101
|
+
<template partial='body'>
|
|
102
|
+
<tr >
|
|
103
|
+
<td style="text-align: center;">
|
|
104
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
105
|
+
</td>
|
|
106
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
107
|
+
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
108
|
+
</td>
|
|
109
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
110
|
+
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
111
|
+
</td>
|
|
112
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
113
|
+
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
114
|
+
</td>
|
|
115
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
116
|
+
<nobr><font>{{row.f_address}}</font></nobr>
|
|
117
|
+
</td>
|
|
118
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
119
|
+
<nobr><font>{{row.f_construction_name}}</font></nobr>
|
|
120
|
+
</td>
|
|
121
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
122
|
+
<nobr><font>{{row.f_release_date}}</font></nobr>
|
|
123
|
+
</td>
|
|
124
|
+
</tr>
|
|
125
|
+
</template>
|
|
126
|
+
</data-grid>
|
|
127
|
+
</criteria-paged>
|
|
128
|
+
|
|
129
|
+
<modal :show.sync="showPrint" title="打印预览" v-ref:modal :backdrop="false">
|
|
130
|
+
<header slot="modal-header" class="modal-header">
|
|
131
|
+
<button type="button" class="close" @click="colseModal()"><span>×</span></button>
|
|
132
|
+
<h4 class="modal-title">打印预览</h4>
|
|
133
|
+
</header>
|
|
134
|
+
<article slot="modal-body" class="modal-body" v-show="printShow">
|
|
135
|
+
<print-build-order :selectdata="selectdata" :type="type" v-ref:print></print-build-order>
|
|
136
|
+
</article>
|
|
137
|
+
<article slot="modal-body" class="modal-body" v-show="printShow1">
|
|
138
|
+
<print-gai-order :selectdata="selectdata" :type="type" v-ref:print1></print-gai-order>
|
|
139
|
+
</article>
|
|
140
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
141
|
+
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
142
|
+
</footer>
|
|
143
|
+
</modal>
|
|
144
|
+
|
|
145
|
+
<modal :show.sync="showProgress" v-ref:progress :backdrop="false">
|
|
146
|
+
<header slot="modal-header" class="modal-header">
|
|
147
|
+
<button type="button" class="close" @click="colseModal()"><span>×</span></button>
|
|
148
|
+
<h4 class="modal-title">发送打印指令中,请耐心等待...</h4>
|
|
149
|
+
</header>
|
|
150
|
+
<article slot="modal-body" class="modal-body">
|
|
151
|
+
<div class="progress" style="margin: 20px">
|
|
152
|
+
<div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
|
|
153
|
+
{{ percent }}
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</article>
|
|
157
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
158
|
+
</footer>
|
|
159
|
+
</modal>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</template>
|
|
163
|
+
|
|
164
|
+
<script>
|
|
165
|
+
import {PagedList} from 'vue-client'
|
|
166
|
+
import {HttpResetClass} from 'vue-client'
|
|
167
|
+
export default {
|
|
168
|
+
title: '施工通知单',
|
|
169
|
+
data () {
|
|
170
|
+
return {
|
|
171
|
+
model: new PagedList('rs/sql/buildOrderList', 30, null),
|
|
172
|
+
criteriaShow: false,
|
|
173
|
+
selectdata: null,
|
|
174
|
+
showPrint: false,
|
|
175
|
+
showProgress: false,
|
|
176
|
+
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')?this.$appdata.getParam('报建类型'):[]],
|
|
177
|
+
percent: 0,
|
|
178
|
+
userfile: '',
|
|
179
|
+
device: '',
|
|
180
|
+
f_construct_operator: '',
|
|
181
|
+
f_build_operator: '',
|
|
182
|
+
type: 'PREVIEW',
|
|
183
|
+
printShow: false,
|
|
184
|
+
printShow1: false
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
ready () {
|
|
188
|
+
// 调用查询
|
|
189
|
+
this.search()
|
|
190
|
+
},
|
|
191
|
+
methods: {
|
|
192
|
+
async batchPrint () {
|
|
193
|
+
this.type = 'PRINT'
|
|
194
|
+
let selectPrint = this.$refs.cp.$refs.grid.getRowData()
|
|
195
|
+
let res = await this.getUserfiles(selectPrint)
|
|
196
|
+
for (let i = 0; i < selectPrint.length; i++) {
|
|
197
|
+
if (selectPrint[i].f_apply_type !== '改线业务'){
|
|
198
|
+
for (let j = 0; j < res.length; j++) {
|
|
199
|
+
if (selectPrint[i].f_process_id === res[j].f_process_id){
|
|
200
|
+
selectPrint[i].userfile = res[j].f_meter
|
|
201
|
+
selectPrint[i].device = res[j].f_devices
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
setTimeout( async () => {
|
|
207
|
+
if (selectPrint.length > 0) {
|
|
208
|
+
let res = await this.$showMessage(`当前数据条数: ${selectPrint.length}, 条数过大时打印时间可能会过长, 是否确认打印?`)
|
|
209
|
+
if (res == 'confirm') {
|
|
210
|
+
this.showProgress = true
|
|
211
|
+
for (let i = 0; i < selectPrint.length; i++) {
|
|
212
|
+
setTimeout( async () => {
|
|
213
|
+
this.selectdata = selectPrint[i]
|
|
214
|
+
console.log("当前数据", selectPrint[i])
|
|
215
|
+
if (selectPrint[i].f_due_money >= 0) {
|
|
216
|
+
selectPrint[i].f_amount_words = this.smalltoBIG(selectPrint[i].f_due_money)
|
|
217
|
+
}
|
|
218
|
+
this.print(selectPrint[i])
|
|
219
|
+
this.percent = this.getPercent(i, selectPrint.length)
|
|
220
|
+
this.selectdata = null
|
|
221
|
+
},3000)
|
|
222
|
+
}
|
|
223
|
+
this.showProgress = false
|
|
224
|
+
this.percent = 0
|
|
225
|
+
this.$refs.cp.$refs.grid.selectInit()
|
|
226
|
+
}
|
|
227
|
+
} else {
|
|
228
|
+
this.$showMessage('请选择要打印的单子')
|
|
229
|
+
}
|
|
230
|
+
}, 600)
|
|
231
|
+
},
|
|
232
|
+
getPercent (num, total){
|
|
233
|
+
num = parseFloat(num);
|
|
234
|
+
total = parseFloat(total);
|
|
235
|
+
if (isNaN(num) || isNaN(total)) {
|
|
236
|
+
return "-";
|
|
237
|
+
}
|
|
238
|
+
return total <= 0? "0%" : Math.round((num / total) * 10000) / 100.0 + "%";
|
|
239
|
+
},
|
|
240
|
+
print (index) {
|
|
241
|
+
console.log("当前数据",index)
|
|
242
|
+
if (index !== null && index !== '' && index !== undefined){
|
|
243
|
+
this.selectdata = index
|
|
244
|
+
}
|
|
245
|
+
if (this.getShowPrint(this.selectdata.f_apply_type)){
|
|
246
|
+
this.$refs.print.print(index)
|
|
247
|
+
}else {
|
|
248
|
+
this.$refs.print1.print(index)
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
colseModal () {
|
|
252
|
+
this.showPrint = false
|
|
253
|
+
this.showProgress = false
|
|
254
|
+
this.printShow = false
|
|
255
|
+
this.printShow1 = false
|
|
256
|
+
this.selectdata = null
|
|
257
|
+
},
|
|
258
|
+
getShowPrint (index) {
|
|
259
|
+
console.log('2222',index)
|
|
260
|
+
if (index !== '改线业务'){
|
|
261
|
+
this.printShow = true
|
|
262
|
+
return true
|
|
263
|
+
}
|
|
264
|
+
this.printShow1 = true
|
|
265
|
+
return false
|
|
266
|
+
},
|
|
267
|
+
async click (row) {
|
|
268
|
+
this.type = 'PREVIEW'
|
|
269
|
+
if (row.f_apply_type !== '改线业务') {
|
|
270
|
+
await this.getUserfile(row.f_process_id)
|
|
271
|
+
}
|
|
272
|
+
this.getShowPrint(row.f_apply_type)
|
|
273
|
+
setTimeout(() => {
|
|
274
|
+
row.userfile = this.userfile
|
|
275
|
+
row.device = this.device
|
|
276
|
+
this.selectdata = row
|
|
277
|
+
if (this.selectdata.f_due_money >= 0 ) {
|
|
278
|
+
this.selectdata.f_amount_words = this.smalltoBIG(this.selectdata.f_due_money)
|
|
279
|
+
}
|
|
280
|
+
this.showPrint = true
|
|
281
|
+
}, 600)
|
|
282
|
+
},
|
|
283
|
+
async getMeter(f_process_id) {
|
|
284
|
+
let data = {
|
|
285
|
+
f_process_id: f_process_id
|
|
286
|
+
}
|
|
287
|
+
let http = new HttpResetClass()
|
|
288
|
+
let res = await http.load(
|
|
289
|
+
'POST',
|
|
290
|
+
`rs/sql/getMeters`,
|
|
291
|
+
{data: data},
|
|
292
|
+
{resolveMsg: null, rejectMsg: null}
|
|
293
|
+
)
|
|
294
|
+
let userfile = ''
|
|
295
|
+
for (let i = 0; i < res.data.length ; i++){
|
|
296
|
+
console.log("表具信77息",res.data[i].f_meter_type)
|
|
297
|
+
if (res.data[i].f_meter_type === null){
|
|
298
|
+
res.data[i].f_meter_type = '表具'
|
|
299
|
+
}
|
|
300
|
+
userfile = userfile + res.data[i].f_meter_count + '块' + res.data[i].f_meter_type + ','
|
|
301
|
+
}
|
|
302
|
+
if (userfile === ''){
|
|
303
|
+
userfile = '无表具,'
|
|
304
|
+
}
|
|
305
|
+
console.log("表具信息",userfile)
|
|
306
|
+
this.userfile = userfile
|
|
307
|
+
return userfile
|
|
308
|
+
},
|
|
309
|
+
async getDevice(f_process_id) {
|
|
310
|
+
let data = {
|
|
311
|
+
f_process_id: f_process_id
|
|
312
|
+
}
|
|
313
|
+
let http = new HttpResetClass()
|
|
314
|
+
let res = await http.load(
|
|
315
|
+
'POST',
|
|
316
|
+
`rs/sql/getUserDevices`,
|
|
317
|
+
{data: data},
|
|
318
|
+
{resolveMsg: null, rejectMsg: null}
|
|
319
|
+
)
|
|
320
|
+
let device = ''
|
|
321
|
+
for (let i = 0; i < res.data.length ; i++){
|
|
322
|
+
if (res.data[i].f_devices_type === null){
|
|
323
|
+
res.data[i].f_devices_type = '设备'
|
|
324
|
+
}
|
|
325
|
+
console.log("设备信77息",res.data[i].f_devices_type)
|
|
326
|
+
device = device + res.data[i].f_devices_count + '个' + res.data[i].f_devices_type + ','
|
|
327
|
+
}
|
|
328
|
+
if (device === ''){
|
|
329
|
+
device = '无设备,'
|
|
330
|
+
}
|
|
331
|
+
console.log("设备信息",device)
|
|
332
|
+
this.device = device
|
|
333
|
+
return device
|
|
334
|
+
},
|
|
335
|
+
async getUserfile(f_process_id) {
|
|
336
|
+
let data = {
|
|
337
|
+
condition: `met.f_process_id = '${f_process_id}'`
|
|
338
|
+
}
|
|
339
|
+
let http = new HttpResetClass()
|
|
340
|
+
let res = await http.load(
|
|
341
|
+
'POST',
|
|
342
|
+
`rs/sql/getUserfiles`,
|
|
343
|
+
{data: data},
|
|
344
|
+
{resolveMsg: null, rejectMsg: null}
|
|
345
|
+
)
|
|
346
|
+
if (res.data.length > 0){
|
|
347
|
+
this.userfile = res.data[0].f_meter
|
|
348
|
+
this.device = res.data[0].f_devices
|
|
349
|
+
return res.data[0]
|
|
350
|
+
}
|
|
351
|
+
return {f_meter:'无',f_devices:'无'}
|
|
352
|
+
},
|
|
353
|
+
async getUserfiles(selectPrint) {
|
|
354
|
+
let porcessid = `(`
|
|
355
|
+
if (selectPrint.length > 0){
|
|
356
|
+
for (let i=0; i < selectPrint.length-1; i++){
|
|
357
|
+
porcessid = porcessid + `'` + selectPrint[i].f_process_id + `',`
|
|
358
|
+
}
|
|
359
|
+
porcessid = porcessid + `'` + selectPrint[selectPrint.length-1].f_process_id + `')`
|
|
360
|
+
}
|
|
361
|
+
console.log("当前porcessid",porcessid)
|
|
362
|
+
|
|
363
|
+
let data = {
|
|
364
|
+
condition: `met.f_process_id in ${porcessid}`
|
|
365
|
+
}
|
|
366
|
+
let http = new HttpResetClass()
|
|
367
|
+
let res = await http.load(
|
|
368
|
+
'POST',
|
|
369
|
+
`rs/sql/getUserfiles`,
|
|
370
|
+
{data: data},
|
|
371
|
+
{resolveMsg: null, rejectMsg: null}
|
|
372
|
+
)
|
|
373
|
+
console.log("当前res.data",res.data)
|
|
374
|
+
return res.data
|
|
375
|
+
},
|
|
376
|
+
async getUser(str) {
|
|
377
|
+
if (str) {
|
|
378
|
+
let data = {
|
|
379
|
+
items: 'us.name username,de.name departmentname',
|
|
380
|
+
tablename: 't_user us left join t_department de on us.parentid = de.id',
|
|
381
|
+
condition: `us.id = '${str}'`
|
|
382
|
+
}
|
|
383
|
+
let http = new HttpResetClass()
|
|
384
|
+
let res = await http.load(
|
|
385
|
+
'POST',
|
|
386
|
+
'rs/sql/applySingleTable',
|
|
387
|
+
{data: data}, {
|
|
388
|
+
resolveMsg: null,
|
|
389
|
+
rejectMsg: '操作人查询失败!!!'
|
|
390
|
+
})
|
|
391
|
+
if (res.data.length > 0){
|
|
392
|
+
let result = res.data[0]
|
|
393
|
+
console.log('当前人员信息', result)
|
|
394
|
+
return result
|
|
395
|
+
}else {
|
|
396
|
+
return {username:'',departmentname:''}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
smalltoBIG (n) {
|
|
401
|
+
let fraction = ['角', '分']
|
|
402
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
|
|
403
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']]
|
|
404
|
+
let head = n < 0 ? '欠' : ''
|
|
405
|
+
n = Math.abs(n)
|
|
406
|
+
|
|
407
|
+
let s = ''
|
|
408
|
+
|
|
409
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
410
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '')
|
|
411
|
+
}
|
|
412
|
+
s = s || '整'
|
|
413
|
+
n = Math.floor(n)
|
|
414
|
+
|
|
415
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
416
|
+
let p = ''
|
|
417
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
418
|
+
p = digit[n % 10] + unit[1][j] + p
|
|
419
|
+
n = Math.floor(n / 10)
|
|
420
|
+
}
|
|
421
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s
|
|
422
|
+
}
|
|
423
|
+
let result = head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
424
|
+
console.log('当前大写', result)
|
|
425
|
+
return result
|
|
426
|
+
},
|
|
427
|
+
clear () {
|
|
428
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
429
|
+
this.$refs.cp.$refs.cri.model[key] = ''
|
|
430
|
+
})
|
|
431
|
+
},
|
|
432
|
+
searchCondition (args) {
|
|
433
|
+
this.model.search(args.condition, args.model)
|
|
434
|
+
},
|
|
435
|
+
// 查询
|
|
436
|
+
search () {
|
|
437
|
+
this.$refs.cp.$refs.cri.search()
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
computed: {
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
</script>
|
|
444
|
+
|
|
445
|
+
<style scoped>
|
|
446
|
+
</style>
|