apply-clients 3.3.68 → 3.3.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/package.json +1 -1
- package/src/apply.js +92 -89
- package/src/components/android/AppServiceView.vue +595 -566
- package/src/components/android/Process/AppExplorationUser.vue +402 -340
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +473 -471
- package/src/components/product/Material/MaterialDetailed.vue +252 -235
- package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -0
- package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -0
- package/src/main.js +3 -0
|
@@ -0,0 +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>
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<style id="printIgnitionBillStyle">
|
|
3
|
+
td{
|
|
4
|
+
height: 30px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
width: 100px;
|
|
7
|
+
}
|
|
8
|
+
.sign {
|
|
9
|
+
text-align: left
|
|
10
|
+
}
|
|
11
|
+
table{
|
|
12
|
+
margin: auto;
|
|
13
|
+
width: 100%;
|
|
14
|
+
border-collapse:collapse;
|
|
15
|
+
border: 1px solid black;
|
|
16
|
+
}
|
|
17
|
+
h1,h2,h3,h4,h5,h6 {
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
.material {
|
|
21
|
+
text-align: left;
|
|
22
|
+
vertical-align: top;
|
|
23
|
+
padding: 10px;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
|
|
27
|
+
<div id="printIgnitionBill">
|
|
28
|
+
<h2><span style="letter-spacing: 15px">用户服务中心点火通知</span></h2>
|
|
29
|
+
<table border="1">
|
|
30
|
+
<tr>
|
|
31
|
+
<td>用户姓名</td>
|
|
32
|
+
<td colspan="3">{{ selectdata.f_user_name }}</td>
|
|
33
|
+
<td>电    话</td>
|
|
34
|
+
<td colspan="2">{{ selectdata.f_phone }}</td>
|
|
35
|
+
</tr>
|
|
36
|
+
<tr>
|
|
37
|
+
<td>用户地址</td>
|
|
38
|
+
<td colspan="6">{{ selectdata.f_address }}</td>
|
|
39
|
+
</tr>
|
|
40
|
+
<tr>
|
|
41
|
+
<td>计量表品牌/规格</td>
|
|
42
|
+
<td colspan="3">{{ selectdata.f_meter_style }}</td>
|
|
43
|
+
<td>进气方向</td>
|
|
44
|
+
<td>  左  </td>
|
|
45
|
+
<td>  右  </td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td>表缸号</td>
|
|
49
|
+
<td>{{ selectdata.f_meternumber }}</td>
|
|
50
|
+
<td>防盗卡号</td>
|
|
51
|
+
<td>{{ selectdata.f_metertitles }}</td>
|
|
52
|
+
<td>用户编号</td>
|
|
53
|
+
<td colspan="2">{{ selectdata.f_userinfo_code }}</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>气表底数</td>
|
|
57
|
+
<td>{{ f_meter_base }}</td>
|
|
58
|
+
<td>点火时间</td>
|
|
59
|
+
<td colspan="2">{{ selectdata.finishtime }}</td>
|
|
60
|
+
<td>派工时间</td>
|
|
61
|
+
<td>{{ selectdata.finishtime1 }}</td>
|
|
62
|
+
</tr>
|
|
63
|
+
<tr>
|
|
64
|
+
<td>
|
|
65
|
+
<p>点火情况</p>
|
|
66
|
+
<p>(气密性检查)</p>
|
|
67
|
+
</td>
|
|
68
|
+
<td colspan="6" class="material">
|
|
69
|
+
<p>客户如认可以下内容请签名,如有不认可之处请说明情况</p>
|
|
70
|
+
<p> 1、气密性检测合格,已对各接口处进行查漏无泄漏</p>
|
|
71
|
+
<p> 2、燃气表运转正常,灶具点火测试正常,使用金属波纹管</p>
|
|
72
|
+
<p> 3、已向用户讲解安全常识及注意事项 ,发放《用户使用手册》并张贴提示标签</p>
|
|
73
|
+
<p> 4、灶具品牌: ______________________ 油烟机品牌: ____________________</p>
|
|
74
|
+
<p> 5、热水器品牌: ____________________ 壁挂炉品牌: _____________________</p>
|
|
75
|
+
<p> 6、金属波纹管品牌:___________________</p>
|
|
76
|
+
</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<td colspan="2" rowspan="2" class="sign">用户签字    </td>
|
|
80
|
+
<td>收费金额</td>
|
|
81
|
+
<td colspan="2">{{ selectdata.f_charge_money }}</td>
|
|
82
|
+
<td>点火人</td>
|
|
83
|
+
<td>{{ selectdata.f_igniter_people }}</td>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<td>收费内容</td>
|
|
87
|
+
<td colspan="2">{{ selectdata.f_payment_term }}</td>
|
|
88
|
+
<td>审核</td>
|
|
89
|
+
<td></td>
|
|
90
|
+
</tr>
|
|
91
|
+
</table>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<print-element v-show="false" v-ref:print id='printIgnitionBill' styleid='printIgnitionBillStyle'
|
|
95
|
+
top='10' left='30' width='100%' height='100%' :type="type">
|
|
96
|
+
</print-element>
|
|
97
|
+
|
|
98
|
+
</template>
|
|
99
|
+
|
|
100
|
+
<script>
|
|
101
|
+
import { isEmpty } from '../../../Util'
|
|
102
|
+
import {HttpResetClass} from "vue-client";
|
|
103
|
+
Date.prototype.Format = function (fmt) {
|
|
104
|
+
var o = {
|
|
105
|
+
"M+": this.getMonth() + 1, //月份
|
|
106
|
+
"d+": this.getDate(), //日
|
|
107
|
+
"H+": this.getHours(), //小时
|
|
108
|
+
"m+": this.getMinutes(), //分
|
|
109
|
+
"s+": this.getSeconds(), //秒
|
|
110
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
111
|
+
"S": this.getMilliseconds() //毫秒
|
|
112
|
+
};
|
|
113
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
114
|
+
for (var k in o)
|
|
115
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
116
|
+
return fmt;
|
|
117
|
+
}
|
|
118
|
+
export default {
|
|
119
|
+
title: '点火通知单',
|
|
120
|
+
props: {
|
|
121
|
+
selectdata: {
|
|
122
|
+
type: Object
|
|
123
|
+
},
|
|
124
|
+
type: {
|
|
125
|
+
type: String
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
data () {
|
|
129
|
+
return {
|
|
130
|
+
showModal: false,
|
|
131
|
+
userfile: null
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
ready () {
|
|
135
|
+
},
|
|
136
|
+
methods: {
|
|
137
|
+
print () {
|
|
138
|
+
this.$refs.print.PrintTable()
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
computed: {
|
|
142
|
+
parse () {
|
|
143
|
+
return JSON.parse(this.selectdata.f_install_project).toString()
|
|
144
|
+
},
|
|
145
|
+
orgs () {
|
|
146
|
+
return this.$login.f.orgs
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
</script>
|
|
151
|
+
|
|
152
|
+
<style scoped>
|
|
153
|
+
.control-label-justify {
|
|
154
|
+
display: inline-block;
|
|
155
|
+
vertical-align: top;
|
|
156
|
+
width: 130px;
|
|
157
|
+
text-align: justify;
|
|
158
|
+
font-family: PingFang-SC-Bold;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.control-label-justify::after {
|
|
162
|
+
content: "";
|
|
163
|
+
display: inline-block;
|
|
164
|
+
width: 100%;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
height: 0;
|
|
167
|
+
}
|
|
168
|
+
</style>
|