apply-clients 3.3.93 → 3.3.96
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-app.js +76 -76
- package/build/dev-server.js +6 -43
- package/package.json +1 -1
- package/src/App.vue +20 -22
- package/src/applyAndroid.js +40 -39
- package/src/components/android/AppSign.vue +4 -11
- package/src/components/android/AppTakePic.vue +143 -144
- package/src/components/android/Process/AppExplorationUser.vue +495 -495
- package/src/components/android/Process/AppServiceControl.vue +1417 -1417
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +6 -0
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +147 -119
- package/src/components/product/Function/InstallInfoSelect.vue +320 -320
- package/src/components/product/Material/MaterialDetailed.vue +0 -11
- package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -259
- package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -168
- package/src/components/product/Process/Service/ServiceControl.vue +1430 -1430
- package/src/components/product/Supervisory/SupervisoryList.vue +378 -378
- package/src/main.js +5 -6
- package/.project +0 -17
|
@@ -80,12 +80,6 @@
|
|
|
80
80
|
v-on:keyup.enter="$parent.$parent.search()"
|
|
81
81
|
condition="ma.f_material_number = '{}'">
|
|
82
82
|
</div>
|
|
83
|
-
<div class="form-group col-sm-3">
|
|
84
|
-
<label class="font_normal_body">材料审核:</label>
|
|
85
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='材料审核' v-model="model.person"
|
|
86
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
87
|
-
condition="ac.person = '{}'">
|
|
88
|
-
</div>
|
|
89
83
|
<div class="form-group col-sm-3">
|
|
90
84
|
<label for="startDate" class="font_normal_body">开始时间:</label>
|
|
91
85
|
<datepicker id="startDate" placeholder="开始日期"
|
|
@@ -123,7 +117,6 @@
|
|
|
123
117
|
<th>材料单位</th>
|
|
124
118
|
<th>材料数量</th>
|
|
125
119
|
<th>操作人</th>
|
|
126
|
-
<th>材料审核</th>
|
|
127
120
|
<th>操作时间</th>
|
|
128
121
|
</tr>
|
|
129
122
|
</template>
|
|
@@ -156,9 +149,6 @@
|
|
|
156
149
|
<td style="text-align: center;">
|
|
157
150
|
<nobr><font>{{row.f_operator}}</font></nobr>
|
|
158
151
|
</td>
|
|
159
|
-
<td style="text-align: center;">
|
|
160
|
-
<nobr><font>{{row.person}}</font></nobr>
|
|
161
|
-
</td>
|
|
162
152
|
<td style="text-align: center;">
|
|
163
153
|
<nobr><font>{{row.f_operation_date}}</font></nobr>
|
|
164
154
|
</td>
|
|
@@ -206,7 +196,6 @@ export default {
|
|
|
206
196
|
'f_material_style': '材料型号',
|
|
207
197
|
'f_material_unit': '材料单位',
|
|
208
198
|
'f_material_number': '材料数量',
|
|
209
|
-
'person': '材料审核',
|
|
210
199
|
'f_operator': '操作人',
|
|
211
200
|
'f_operation_date': '操作时间'
|
|
212
201
|
}
|
|
@@ -1,259 +1,259 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex-row">
|
|
3
|
-
<div class="basic-main">
|
|
4
|
-
<criteria-paged :model="model" v-ref:cp>
|
|
5
|
-
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
6
|
-
<div class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
-
<div class="row">
|
|
8
|
-
<div class="form-group col-sm-3">
|
|
9
|
-
<label class="font_normal_body">组织机构:</label>
|
|
10
|
-
<res-select
|
|
11
|
-
restype='organization'
|
|
12
|
-
:initresid='$parent.$parent.curorgid'
|
|
13
|
-
@res-select="$parent.$parent.getorg"
|
|
14
|
-
is-mul="false"
|
|
15
|
-
></res-select>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="form-group col-sm-3">
|
|
18
|
-
<label class="font_normal_body">工程编号:</label>
|
|
19
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
|
|
20
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
21
|
-
condition="u.f_apply_num = '{}'">
|
|
22
|
-
</div>
|
|
23
|
-
<div class="form-group col-sm-3">
|
|
24
|
-
<label class="font_normal_body">客户名称:</label>
|
|
25
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='客户名称' v-model="model.f_user_name"
|
|
26
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
27
|
-
condition="u.f_user_name = '{}'">
|
|
28
|
-
</div>
|
|
29
|
-
<div class="form-group col-sm-3 button-range">
|
|
30
|
-
<button class="button_export button_spacing" @click="$parent.$parent.batchPrint()">批量打印</button>
|
|
31
|
-
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
32
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
33
|
-
<div
|
|
34
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
35
|
-
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
36
|
-
class="button_spacing"
|
|
37
|
-
style="float: right">
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
42
|
-
<div class="form-group col-sm-3">
|
|
43
|
-
<label class="font_normal_body">电  话:</label>
|
|
44
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='电话' v-model="model.f_phone"
|
|
45
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
46
|
-
condition="u.f_phone = '{}'">
|
|
47
|
-
</div>
|
|
48
|
-
<div class="form-group col-sm-3">
|
|
49
|
-
<label class="font_normal_body">地  址:</label>
|
|
50
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
|
|
51
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
52
|
-
condition="u.f_address like '%{}%'">
|
|
53
|
-
</div>
|
|
54
|
-
<div class="form-group col-sm-3">
|
|
55
|
-
<label for="startDate" class="font_normal_body">开始时间:</label>
|
|
56
|
-
<datepicker id="startDate" placeholder="开始日期"
|
|
57
|
-
style="width: 60%!important;"
|
|
58
|
-
v-model="model.startDate"
|
|
59
|
-
:value.sync="model.startDate"
|
|
60
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
61
|
-
:show-reset-button="true"
|
|
62
|
-
condition="act.finishtime >= '{}'">
|
|
63
|
-
</datepicker>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="form-group col-sm-3">
|
|
66
|
-
<label for="endDate" class="font_normal_body">结束时间:</label>
|
|
67
|
-
<datepicker id="endDate" placeholder="结束日期"
|
|
68
|
-
style="width: 60%!important;"
|
|
69
|
-
v-model="model.endDate"
|
|
70
|
-
:value.sync="model.endDate"
|
|
71
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
72
|
-
:show-reset-button="true"
|
|
73
|
-
condition="act.finishtime <= '{}'">
|
|
74
|
-
</datepicker>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</criteria>
|
|
79
|
-
<data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
80
|
-
<template partial='head'>
|
|
81
|
-
<tr>
|
|
82
|
-
<th>序号</th>
|
|
83
|
-
<th>工程编号</th>
|
|
84
|
-
<th>客户名称</th>
|
|
85
|
-
<th>电话</th>
|
|
86
|
-
<th>地址</th>
|
|
87
|
-
<th>点火人</th>
|
|
88
|
-
<th>点火时间</th>
|
|
89
|
-
</tr>
|
|
90
|
-
</template>
|
|
91
|
-
<template partial='body'>
|
|
92
|
-
<tr >
|
|
93
|
-
<td style="text-align: center;">
|
|
94
|
-
<nobr><font>{{$index+1}}</font></nobr>
|
|
95
|
-
</td>
|
|
96
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
97
|
-
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
98
|
-
</td>
|
|
99
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
100
|
-
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
101
|
-
</td>
|
|
102
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
103
|
-
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
104
|
-
</td>
|
|
105
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
106
|
-
<nobr><font>{{row.f_address}}</font></nobr>
|
|
107
|
-
</td>
|
|
108
|
-
|
|
109
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
110
|
-
<nobr><font>{{row.f_igniter_people}}</font></nobr>
|
|
111
|
-
</td>
|
|
112
|
-
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
113
|
-
<nobr><font>{{row.finishtime}}</font></nobr>
|
|
114
|
-
</td>
|
|
115
|
-
</tr>
|
|
116
|
-
</template>
|
|
117
|
-
</data-grid>
|
|
118
|
-
</criteria-paged>
|
|
119
|
-
|
|
120
|
-
<modal :show.sync="showPrint" title="打印预览" v-ref:modal :backdrop="false">
|
|
121
|
-
<header slot="modal-header" class="modal-header">
|
|
122
|
-
<button type="button" class="close" @click="colseModal()"><span>×</span></button>
|
|
123
|
-
<h4 class="modal-title">打印预览</h4>
|
|
124
|
-
</header>
|
|
125
|
-
<article slot="modal-body" class="modal-body">
|
|
126
|
-
<print-gnition-bill :selectdata="selectdata" :type="type" v-ref:print></print-gnition-bill>
|
|
127
|
-
</article>
|
|
128
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
129
|
-
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
130
|
-
</footer>
|
|
131
|
-
</modal>
|
|
132
|
-
|
|
133
|
-
<modal :show.sync="showProgress" v-ref:progress :backdrop="false">
|
|
134
|
-
<header slot="modal-header" class="modal-header">
|
|
135
|
-
<h4 class="modal-title">发送打印指令中,请耐心等待...</h4>
|
|
136
|
-
</header>
|
|
137
|
-
<article slot="modal-body" class="modal-body">
|
|
138
|
-
<div class="progress" style="margin: 20px">
|
|
139
|
-
<div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
|
|
140
|
-
{{ percent }}
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
</article>
|
|
144
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
145
|
-
</footer>
|
|
146
|
-
</modal>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
</template>
|
|
150
|
-
|
|
151
|
-
<script>
|
|
152
|
-
import {PagedList} from 'vue-client'
|
|
153
|
-
import {HttpResetClass} from 'vue-client'
|
|
154
|
-
export default {
|
|
155
|
-
title: '安装项目',
|
|
156
|
-
data () {
|
|
157
|
-
return {
|
|
158
|
-
model: new PagedList('rs/sql/ignitionBillList', 30, null),
|
|
159
|
-
criteriaShow: false,
|
|
160
|
-
curorgid: [this.$login.f.orgid],
|
|
161
|
-
selectdata: null,
|
|
162
|
-
showPrint: false,
|
|
163
|
-
showProgress: false,
|
|
164
|
-
percent: 0,
|
|
165
|
-
type: 'PREVIEW'
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
ready () {
|
|
169
|
-
// 调用查询
|
|
170
|
-
this.search()
|
|
171
|
-
},
|
|
172
|
-
methods: {
|
|
173
|
-
async batchPrint () {
|
|
174
|
-
let selectPrint = this.$refs.cp.$refs.grid.getRowData()
|
|
175
|
-
if (selectPrint.length > 0) {
|
|
176
|
-
let res = await this.$showMessage(`当前数据条数: ${selectPrint.length}, 条数过大时打印时间可能会过长, 是否确认打印?`)
|
|
177
|
-
if (res == 'confirm') {
|
|
178
|
-
this.showProgress = true
|
|
179
|
-
for (let i = 0; i < selectPrint.length; i++) {
|
|
180
|
-
this.type = 'PRINT'
|
|
181
|
-
await this.getData(selectPrint[i])
|
|
182
|
-
this.print()
|
|
183
|
-
this.percent = this.getPercent(i, selectPrint.length)
|
|
184
|
-
console.log('-------------进度-----------')
|
|
185
|
-
console.log(this.percent)
|
|
186
|
-
}
|
|
187
|
-
this.showProgress = false
|
|
188
|
-
this.percent = 0
|
|
189
|
-
this.$refs.cp.$refs.grid.selectInit()
|
|
190
|
-
}
|
|
191
|
-
} else {
|
|
192
|
-
this.$showAlert('请选择要打印的单子', 'warning', 3000)
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
getPercent (num, total){
|
|
196
|
-
num = parseFloat(num);
|
|
197
|
-
total = parseFloat(total);
|
|
198
|
-
if (isNaN(num) || isNaN(total)) {
|
|
199
|
-
return "-";
|
|
200
|
-
}
|
|
201
|
-
return total <= 0? "0%" : Math.round((num / total) * 10000) / 100.0 + "%";
|
|
202
|
-
},
|
|
203
|
-
print () {
|
|
204
|
-
this.$refs.print.print()
|
|
205
|
-
},
|
|
206
|
-
colseModal () {
|
|
207
|
-
this.showPrint = false
|
|
208
|
-
this.selectdata = null
|
|
209
|
-
},
|
|
210
|
-
async click (row) {
|
|
211
|
-
this.type = 'PREVIEW'
|
|
212
|
-
|
|
213
|
-
await this.getData(row)
|
|
214
|
-
|
|
215
|
-
this.showPrint = true
|
|
216
|
-
},
|
|
217
|
-
async getData (row) {
|
|
218
|
-
this.selectdata = null
|
|
219
|
-
|
|
220
|
-
let http = new HttpResetClass()
|
|
221
|
-
let data = {
|
|
222
|
-
f_process_id: row.f_process_id,
|
|
223
|
-
actid: row.actid
|
|
224
|
-
}
|
|
225
|
-
let res = await http.load('POST', 'rs/sql/ignitionBill', {data:data}, {
|
|
226
|
-
resolveMsg: null,
|
|
227
|
-
rejectMsg: '获取点火单失败!!!'
|
|
228
|
-
})
|
|
229
|
-
|
|
230
|
-
this.selectdata = res.data[0]
|
|
231
|
-
},
|
|
232
|
-
clear () {
|
|
233
|
-
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
234
|
-
this.$refs.cp.$refs.cri.model[key] = ''
|
|
235
|
-
})
|
|
236
|
-
},
|
|
237
|
-
searchCondition (args) {
|
|
238
|
-
args.condition = args.condition + ` and u.f_orgid = '${this.curorgid[0]}'`
|
|
239
|
-
this.model.search(args.condition, args.model)
|
|
240
|
-
},
|
|
241
|
-
// 查询
|
|
242
|
-
search () {
|
|
243
|
-
this.$refs.cp.$refs.cri.search()
|
|
244
|
-
},
|
|
245
|
-
getorg (val) {
|
|
246
|
-
if (val.length <= 0) {
|
|
247
|
-
return
|
|
248
|
-
}
|
|
249
|
-
this.curorgid = val
|
|
250
|
-
this.search()
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
computed: {
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
</script>
|
|
257
|
-
|
|
258
|
-
<style scoped>
|
|
259
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
6
|
+
<div class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="form-group col-sm-3">
|
|
9
|
+
<label class="font_normal_body">组织机构:</label>
|
|
10
|
+
<res-select
|
|
11
|
+
restype='organization'
|
|
12
|
+
:initresid='$parent.$parent.curorgid'
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
is-mul="false"
|
|
15
|
+
></res-select>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="form-group col-sm-3">
|
|
18
|
+
<label class="font_normal_body">工程编号:</label>
|
|
19
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
|
|
20
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
21
|
+
condition="u.f_apply_num = '{}'">
|
|
22
|
+
</div>
|
|
23
|
+
<div class="form-group col-sm-3">
|
|
24
|
+
<label class="font_normal_body">客户名称:</label>
|
|
25
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='客户名称' v-model="model.f_user_name"
|
|
26
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
27
|
+
condition="u.f_user_name = '{}'">
|
|
28
|
+
</div>
|
|
29
|
+
<div class="form-group col-sm-3 button-range">
|
|
30
|
+
<button class="button_export button_spacing" @click="$parent.$parent.batchPrint()">批量打印</button>
|
|
31
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
32
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
33
|
+
<div
|
|
34
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
35
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
36
|
+
class="button_spacing"
|
|
37
|
+
style="float: right">
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
42
|
+
<div class="form-group col-sm-3">
|
|
43
|
+
<label class="font_normal_body">电  话:</label>
|
|
44
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='电话' v-model="model.f_phone"
|
|
45
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
46
|
+
condition="u.f_phone = '{}'">
|
|
47
|
+
</div>
|
|
48
|
+
<div class="form-group col-sm-3">
|
|
49
|
+
<label class="font_normal_body">地  址:</label>
|
|
50
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
|
|
51
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
52
|
+
condition="u.f_address like '%{}%'">
|
|
53
|
+
</div>
|
|
54
|
+
<div class="form-group col-sm-3">
|
|
55
|
+
<label for="startDate" class="font_normal_body">开始时间:</label>
|
|
56
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
57
|
+
style="width: 60%!important;"
|
|
58
|
+
v-model="model.startDate"
|
|
59
|
+
:value.sync="model.startDate"
|
|
60
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
61
|
+
:show-reset-button="true"
|
|
62
|
+
condition="act.finishtime >= '{}'">
|
|
63
|
+
</datepicker>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="form-group col-sm-3">
|
|
66
|
+
<label for="endDate" class="font_normal_body">结束时间:</label>
|
|
67
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
68
|
+
style="width: 60%!important;"
|
|
69
|
+
v-model="model.endDate"
|
|
70
|
+
:value.sync="model.endDate"
|
|
71
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
72
|
+
:show-reset-button="true"
|
|
73
|
+
condition="act.finishtime <= '{}'">
|
|
74
|
+
</datepicker>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</criteria>
|
|
79
|
+
<data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
80
|
+
<template partial='head'>
|
|
81
|
+
<tr>
|
|
82
|
+
<th>序号</th>
|
|
83
|
+
<th>工程编号</th>
|
|
84
|
+
<th>客户名称</th>
|
|
85
|
+
<th>电话</th>
|
|
86
|
+
<th>地址</th>
|
|
87
|
+
<th>点火人</th>
|
|
88
|
+
<th>点火时间</th>
|
|
89
|
+
</tr>
|
|
90
|
+
</template>
|
|
91
|
+
<template partial='body'>
|
|
92
|
+
<tr >
|
|
93
|
+
<td style="text-align: center;">
|
|
94
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
95
|
+
</td>
|
|
96
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
97
|
+
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
98
|
+
</td>
|
|
99
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
100
|
+
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
101
|
+
</td>
|
|
102
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
103
|
+
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
104
|
+
</td>
|
|
105
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
106
|
+
<nobr><font>{{row.f_address}}</font></nobr>
|
|
107
|
+
</td>
|
|
108
|
+
|
|
109
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
110
|
+
<nobr><font>{{row.f_igniter_people}}</font></nobr>
|
|
111
|
+
</td>
|
|
112
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
113
|
+
<nobr><font>{{row.finishtime}}</font></nobr>
|
|
114
|
+
</td>
|
|
115
|
+
</tr>
|
|
116
|
+
</template>
|
|
117
|
+
</data-grid>
|
|
118
|
+
</criteria-paged>
|
|
119
|
+
|
|
120
|
+
<modal :show.sync="showPrint" title="打印预览" v-ref:modal :backdrop="false">
|
|
121
|
+
<header slot="modal-header" class="modal-header">
|
|
122
|
+
<button type="button" class="close" @click="colseModal()"><span>×</span></button>
|
|
123
|
+
<h4 class="modal-title">打印预览</h4>
|
|
124
|
+
</header>
|
|
125
|
+
<article slot="modal-body" class="modal-body">
|
|
126
|
+
<print-gnition-bill :selectdata="selectdata" :type="type" v-ref:print></print-gnition-bill>
|
|
127
|
+
</article>
|
|
128
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
129
|
+
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
130
|
+
</footer>
|
|
131
|
+
</modal>
|
|
132
|
+
|
|
133
|
+
<modal :show.sync="showProgress" v-ref:progress :backdrop="false">
|
|
134
|
+
<header slot="modal-header" class="modal-header">
|
|
135
|
+
<h4 class="modal-title">发送打印指令中,请耐心等待...</h4>
|
|
136
|
+
</header>
|
|
137
|
+
<article slot="modal-body" class="modal-body">
|
|
138
|
+
<div class="progress" style="margin: 20px">
|
|
139
|
+
<div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
|
|
140
|
+
{{ percent }}
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</article>
|
|
144
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
145
|
+
</footer>
|
|
146
|
+
</modal>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</template>
|
|
150
|
+
|
|
151
|
+
<script>
|
|
152
|
+
import {PagedList} from 'vue-client'
|
|
153
|
+
import {HttpResetClass} from 'vue-client'
|
|
154
|
+
export default {
|
|
155
|
+
title: '安装项目',
|
|
156
|
+
data () {
|
|
157
|
+
return {
|
|
158
|
+
model: new PagedList('rs/sql/ignitionBillList', 30, null),
|
|
159
|
+
criteriaShow: false,
|
|
160
|
+
curorgid: [this.$login.f.orgid],
|
|
161
|
+
selectdata: null,
|
|
162
|
+
showPrint: false,
|
|
163
|
+
showProgress: false,
|
|
164
|
+
percent: 0,
|
|
165
|
+
type: 'PREVIEW'
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
ready () {
|
|
169
|
+
// 调用查询
|
|
170
|
+
this.search()
|
|
171
|
+
},
|
|
172
|
+
methods: {
|
|
173
|
+
async batchPrint () {
|
|
174
|
+
let selectPrint = this.$refs.cp.$refs.grid.getRowData()
|
|
175
|
+
if (selectPrint.length > 0) {
|
|
176
|
+
let res = await this.$showMessage(`当前数据条数: ${selectPrint.length}, 条数过大时打印时间可能会过长, 是否确认打印?`)
|
|
177
|
+
if (res == 'confirm') {
|
|
178
|
+
this.showProgress = true
|
|
179
|
+
for (let i = 0; i < selectPrint.length; i++) {
|
|
180
|
+
this.type = 'PRINT'
|
|
181
|
+
await this.getData(selectPrint[i])
|
|
182
|
+
this.print()
|
|
183
|
+
this.percent = this.getPercent(i, selectPrint.length)
|
|
184
|
+
console.log('-------------进度-----------')
|
|
185
|
+
console.log(this.percent)
|
|
186
|
+
}
|
|
187
|
+
this.showProgress = false
|
|
188
|
+
this.percent = 0
|
|
189
|
+
this.$refs.cp.$refs.grid.selectInit()
|
|
190
|
+
}
|
|
191
|
+
} else {
|
|
192
|
+
this.$showAlert('请选择要打印的单子', 'warning', 3000)
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
getPercent (num, total){
|
|
196
|
+
num = parseFloat(num);
|
|
197
|
+
total = parseFloat(total);
|
|
198
|
+
if (isNaN(num) || isNaN(total)) {
|
|
199
|
+
return "-";
|
|
200
|
+
}
|
|
201
|
+
return total <= 0? "0%" : Math.round((num / total) * 10000) / 100.0 + "%";
|
|
202
|
+
},
|
|
203
|
+
print () {
|
|
204
|
+
this.$refs.print.print()
|
|
205
|
+
},
|
|
206
|
+
colseModal () {
|
|
207
|
+
this.showPrint = false
|
|
208
|
+
this.selectdata = null
|
|
209
|
+
},
|
|
210
|
+
async click (row) {
|
|
211
|
+
this.type = 'PREVIEW'
|
|
212
|
+
|
|
213
|
+
await this.getData(row)
|
|
214
|
+
|
|
215
|
+
this.showPrint = true
|
|
216
|
+
},
|
|
217
|
+
async getData (row) {
|
|
218
|
+
this.selectdata = null
|
|
219
|
+
|
|
220
|
+
let http = new HttpResetClass()
|
|
221
|
+
let data = {
|
|
222
|
+
f_process_id: row.f_process_id,
|
|
223
|
+
actid: row.actid
|
|
224
|
+
}
|
|
225
|
+
let res = await http.load('POST', 'rs/sql/ignitionBill', {data:data}, {
|
|
226
|
+
resolveMsg: null,
|
|
227
|
+
rejectMsg: '获取点火单失败!!!'
|
|
228
|
+
})
|
|
229
|
+
|
|
230
|
+
this.selectdata = res.data[0]
|
|
231
|
+
},
|
|
232
|
+
clear () {
|
|
233
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
234
|
+
this.$refs.cp.$refs.cri.model[key] = ''
|
|
235
|
+
})
|
|
236
|
+
},
|
|
237
|
+
searchCondition (args) {
|
|
238
|
+
args.condition = args.condition + ` and u.f_orgid = '${this.curorgid[0]}'`
|
|
239
|
+
this.model.search(args.condition, args.model)
|
|
240
|
+
},
|
|
241
|
+
// 查询
|
|
242
|
+
search () {
|
|
243
|
+
this.$refs.cp.$refs.cri.search()
|
|
244
|
+
},
|
|
245
|
+
getorg (val) {
|
|
246
|
+
if (val.length <= 0) {
|
|
247
|
+
return
|
|
248
|
+
}
|
|
249
|
+
this.curorgid = val
|
|
250
|
+
this.search()
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
computed: {
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
</script>
|
|
257
|
+
|
|
258
|
+
<style scoped>
|
|
259
|
+
</style>
|