apply-clients 3.4.65 → 3.4.67
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 +2 -2
- package/package.json +4 -3
- package/src/App.vue +21 -21
- package/src/apply.js +5 -0
- package/src/applyAndroid.js +2 -0
- package/src/components/android/Ignition/VentilationIgnition.vue +408 -0
- package/src/components/android/Ignition/VentilationIgnitionHandle.vue +455 -0
- package/src/components/product/Ignition/IgnitionDispatch.vue +92 -0
- package/src/components/product/Ignition/IgnitionList.vue +236 -0
- package/src/components/product/Ignition/IgnitionListManage.vue +413 -0
- package/src/components/product/Ignition/IgnitionRecord.vue +357 -0
- package/src/components/product/Process/ExplorationSelect.vue +482 -482
- package/src/components/product/Process/Service/ServiceControl.vue +21 -1
- package/src/filiale/linzhou/pc/ServiceControl.vue +1956 -0
- package/src/filiale/linzhou/pc.js +6 -0
- package/src/filiale/shexian/pc/ExplorationSelect.vue +474 -0
- package/src/filiale/shexian/pc.js +6 -0
- package/src/main.js +23 -23
- package/yarn-error.log +0 -9976
|
@@ -0,0 +1,357 @@
|
|
|
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
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_id"
|
|
11
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_userinfo_id = '{}'" placeholder='用户编号'>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="form-group col-sm-3">
|
|
14
|
+
<label class="font_normal_body">工程编号:</label>
|
|
15
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_applycode"
|
|
16
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_applycode like '%{}%'" placeholder='工程编号'>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="form-group col-sm-3">
|
|
19
|
+
<label class="font_normal_body">状  态:</label>
|
|
20
|
+
<v-select
|
|
21
|
+
v-model="model.f_ignition_state"
|
|
22
|
+
placeholder='状态'
|
|
23
|
+
condition="ir.f_state = '{}'"
|
|
24
|
+
:value.sync="model.f_ignition_state"
|
|
25
|
+
:options='$parent.$parent.states'
|
|
26
|
+
class="select select_list"
|
|
27
|
+
:value-single="true"
|
|
28
|
+
close-on-select >
|
|
29
|
+
</v-select>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="form-group col-sm-3 button-range">
|
|
32
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
33
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
34
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
35
|
+
:field="$parent.$parent.getfield"
|
|
36
|
+
sqlurl="rs/logic/applyExportfile"
|
|
37
|
+
sql-name="getWaitIgnitionTask"
|
|
38
|
+
template-name='点火记录信息'
|
|
39
|
+
:choose-col="true"></export-excel>
|
|
40
|
+
<div
|
|
41
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
42
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
43
|
+
class="button_spacing"
|
|
44
|
+
style="float: right">
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
49
|
+
<div class="form-group col-sm-3">
|
|
50
|
+
<label class="font_normal_body">点 火 人:</label>
|
|
51
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_ignition_operator"
|
|
52
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="ir.f_ignition_operator = '{}'" placeholder='点火人'>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="form-group col-sm-3">
|
|
55
|
+
<label class="font_normal_body">片  区:</label>
|
|
56
|
+
<v-select
|
|
57
|
+
v-model="model.f_area"
|
|
58
|
+
placeholder='片区'
|
|
59
|
+
condition="ui.f_area = '{}'"
|
|
60
|
+
:value.sync="model.f_area"
|
|
61
|
+
:options='$parent.$parent.sliceareas'
|
|
62
|
+
class="select select_list"
|
|
63
|
+
:value-single="true"
|
|
64
|
+
close-on-select >
|
|
65
|
+
</v-select>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="form-group col-sm-3">
|
|
68
|
+
<label class="font_normal_body">用户类型:</label>
|
|
69
|
+
<v-select
|
|
70
|
+
v-model="model.f_user_type"
|
|
71
|
+
placeholder='用户类型'
|
|
72
|
+
condition="uf.f_user_type = '{}'"
|
|
73
|
+
:value.sync="model.f_user_type"
|
|
74
|
+
:options='$parent.$parent.usertype'
|
|
75
|
+
class="select select_list"
|
|
76
|
+
:value-single="true"
|
|
77
|
+
close-on-select >
|
|
78
|
+
</v-select>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="form-group col-sm-3">
|
|
81
|
+
<label class="font_normal_body">用户性质:</label>
|
|
82
|
+
<v-select
|
|
83
|
+
v-model="model.f_apply_nature"
|
|
84
|
+
placeholder='用户性质'
|
|
85
|
+
condition="ap.f_apply_nature = '{}'"
|
|
86
|
+
:value.sync="model.f_apply_nature"
|
|
87
|
+
:options='$parent.$parent.applyNatures'
|
|
88
|
+
class="select select_list"
|
|
89
|
+
:value-single="true"
|
|
90
|
+
close-on-select ></v-select>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="form-group col-sm-3">
|
|
93
|
+
<label class="font_normal_body">用 户 名:</label>
|
|
94
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
|
|
95
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_user_name = '{}'" placeholder='用户名'>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="form-group col-sm-3">
|
|
98
|
+
<label class="font_normal_body">电  话:</label>
|
|
99
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_user_phone"
|
|
100
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="ui.f_user_phone = '{}'" placeholder='电话'>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="form-group col-sm-3">
|
|
103
|
+
<label class="font_normal_body">表  号:</label>
|
|
104
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_meternumber"
|
|
105
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="uf.f_meternumber = '{}'" placeholder='表号'>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="form-group col-sm-3">
|
|
108
|
+
<label for="startDate" class="font_normal_body">派单时间:</label>
|
|
109
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
110
|
+
style="width: 60%!important;"
|
|
111
|
+
v-model="model.startDate"
|
|
112
|
+
:value.sync="model.startDate"
|
|
113
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
114
|
+
:show-reset-button="true"
|
|
115
|
+
condition="ir.f_date >= '{}'">
|
|
116
|
+
</datepicker>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="form-group col-sm-3">
|
|
119
|
+
<label for="endDate" class="font_normal_body">派单时间:</label>
|
|
120
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
121
|
+
style="width: 60%!important;"
|
|
122
|
+
v-model="model.endDate"
|
|
123
|
+
:value.sync="model.endDate"
|
|
124
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
125
|
+
:show-reset-button="true"
|
|
126
|
+
condition="ir.f_date <= '{}'">
|
|
127
|
+
</datepicker>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</criteria>
|
|
132
|
+
<data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
133
|
+
<template partial='head'>
|
|
134
|
+
<tr>
|
|
135
|
+
<th style="white-space: nowrap;">序号</th>
|
|
136
|
+
<th style="white-space: nowrap;">用户编号</th>
|
|
137
|
+
<th style="white-space: nowrap;">用户名</th>
|
|
138
|
+
<th style="white-space: nowrap;">联系电话</th>
|
|
139
|
+
<th style="white-space: nowrap;">用户类型</th>
|
|
140
|
+
<th style="white-space: nowrap;">地址</th>
|
|
141
|
+
<th style="white-space: nowrap;">片区</th>
|
|
142
|
+
<!-- <th>定位地址</th>-->
|
|
143
|
+
<th style="white-space: nowrap;">气表类型</th>
|
|
144
|
+
<th style="white-space: nowrap;">气表品牌</th>
|
|
145
|
+
<th style="white-space: nowrap;">表号</th>
|
|
146
|
+
<th style="white-space: nowrap;">派单人</th>
|
|
147
|
+
<th style="white-space: nowrap;">派单时间</th>
|
|
148
|
+
<th style="white-space: nowrap;">备注</th>
|
|
149
|
+
<th style="white-space: nowrap;">点火人</th>
|
|
150
|
+
<th style="white-space: nowrap;">点火时间</th>
|
|
151
|
+
<th style="white-space: nowrap;">状态</th>
|
|
152
|
+
<th style="white-space: nowrap;">工程编号</th>
|
|
153
|
+
<th style="white-space: nowrap;">操作</th>
|
|
154
|
+
</tr>
|
|
155
|
+
</template>
|
|
156
|
+
<template partial='body'>
|
|
157
|
+
<tr >
|
|
158
|
+
<td style="text-align: center;">
|
|
159
|
+
<nobr><font><div style="width:35px">{{$index+1}}</div></font></nobr>
|
|
160
|
+
</td>
|
|
161
|
+
<td style="text-align: center;">
|
|
162
|
+
<nobr><font><div style="width:70px">{{row.f_userinfo_id}}</div></font></nobr>
|
|
163
|
+
</td>
|
|
164
|
+
<td style="text-align: center;">
|
|
165
|
+
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
166
|
+
</td>
|
|
167
|
+
<td style="text-align: center;">
|
|
168
|
+
<nobr><font>{{row.f_user_phone}}</font></nobr>
|
|
169
|
+
</td>
|
|
170
|
+
<td style="text-align: center;">
|
|
171
|
+
<nobr><font><div style="width:65px">{{row.f_user_type}}</div></font></nobr>
|
|
172
|
+
</td>
|
|
173
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
174
|
+
<nobr><font>{{row.f_address}}{{row.f_address_detail}}</font></nobr>
|
|
175
|
+
</td>
|
|
176
|
+
<td style="text-align: center;">
|
|
177
|
+
<nobr><font>{{row.f_area}}</font></nobr>
|
|
178
|
+
</td>
|
|
179
|
+
<!-- <td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">-->
|
|
180
|
+
<!-- <nobr><font>-->
|
|
181
|
+
<!-- <a @click="$parent.$parent.$parent.openAmap(row)" style="text-decoration: none">-->
|
|
182
|
+
<!-- {{row.f_location_address}}-->
|
|
183
|
+
<!-- </a>-->
|
|
184
|
+
<!-- </font></nobr>-->
|
|
185
|
+
<!-- </td>-->
|
|
186
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
187
|
+
<nobr><font><div style="width:65px">{{row.f_meter_classify}}</div></font></nobr>
|
|
188
|
+
</td>
|
|
189
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
190
|
+
<nobr><font>{{row.f_meter_brand}}</font></nobr>
|
|
191
|
+
</td>
|
|
192
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
193
|
+
<nobr><font>{{row.f_meternumber}}</font></nobr>
|
|
194
|
+
</td>
|
|
195
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
196
|
+
<nobr><font>{{row.f_dispatch_operator}}</font></nobr>
|
|
197
|
+
</td>
|
|
198
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
199
|
+
<nobr><font>{{row.f_dispatch_date}}</font></nobr>
|
|
200
|
+
</td>
|
|
201
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
202
|
+
<nobr><font>{{row.f_ignition_remarks}}</font></nobr>
|
|
203
|
+
</td>
|
|
204
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
205
|
+
<nobr><font>{{row.f_ignition_operator}}</font></nobr>
|
|
206
|
+
</td>
|
|
207
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
208
|
+
<nobr><font>{{row.f_ignition_date}}</font></nobr>
|
|
209
|
+
</td>
|
|
210
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.getFiles(row)">
|
|
211
|
+
<nobr><font>{{row.f_ignition_state}}</font></nobr>
|
|
212
|
+
</td>
|
|
213
|
+
<td style="text-align: center;">
|
|
214
|
+
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
215
|
+
</td>
|
|
216
|
+
<td style="text-align: center;">
|
|
217
|
+
<button
|
|
218
|
+
type="button" name="button" class="btn btn-link"
|
|
219
|
+
v-if="row.f_ignition_state === '正在进行'"
|
|
220
|
+
@click="$parent.$parent.$parent.delet(row)"
|
|
221
|
+
>派单收回</button>
|
|
222
|
+
</td>
|
|
223
|
+
</tr>
|
|
224
|
+
</template>
|
|
225
|
+
</data-grid>
|
|
226
|
+
</criteria-paged>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<modal v-if="showFiles" :show.sync="showFiles" v-ref:modal :large="true" :backdrop="false">
|
|
231
|
+
<header slot="modal-header" class="modal-header">
|
|
232
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
233
|
+
<h4 class="modal-title">点火照片</h4>
|
|
234
|
+
</header>
|
|
235
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
236
|
+
<exhibition-picture :imgs="filesList" max-height="400px" img-height="250px" img-padding="15px"></exhibition-picture>
|
|
237
|
+
</article>
|
|
238
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
239
|
+
</footer>
|
|
240
|
+
</modal>
|
|
241
|
+
</template>
|
|
242
|
+
|
|
243
|
+
<script>
|
|
244
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
245
|
+
|
|
246
|
+
export default {
|
|
247
|
+
title: '点火记录',
|
|
248
|
+
data () {
|
|
249
|
+
return {
|
|
250
|
+
model: new PagedList('rs/sql/getWaitIgnitionRecord', 20, null),
|
|
251
|
+
criteriaShow: false,
|
|
252
|
+
showFiles: false,
|
|
253
|
+
filesList: [] ,
|
|
254
|
+
states:[{label: '已通气', value: '结束'},{label: '已派单', value: '正在进行'}],//通气状态
|
|
255
|
+
sliceareas: [], // 片区
|
|
256
|
+
usertype:[{label: "全部", value: ""}, {label: "民用", value: "民用"}, {label: "非民用", value: "非民用"}],//用户类型
|
|
257
|
+
applyNatures: [{label: '全部', value: ''},{label: '工业', value: '工业'},{label: '商业', value: '商业'},{label: '散户', value: '散户'},{label: '小区', value: '小区'},{label: '分户挂表', value: '分户挂表'}], // 报建性质
|
|
258
|
+
getfield: {
|
|
259
|
+
'f_userinfo_id': ' 用户编号 ',
|
|
260
|
+
'f_user_name': ' 用户名称 ',
|
|
261
|
+
'f_user_type': ' 用户类型 ',
|
|
262
|
+
'f_user_phone': ' 电话 ',
|
|
263
|
+
'f_address': ' 地 址 ',
|
|
264
|
+
'f_area': ' 片 区 ',
|
|
265
|
+
'f_meter_classify': ' 气 表 类 型 ',
|
|
266
|
+
'f_meter_brand': ' 气 表 品 牌 ',
|
|
267
|
+
'f_meter_style': ' 气 表 型 号 ',
|
|
268
|
+
'f_ignition_remarks': ' 点 火 备 注 ',
|
|
269
|
+
'f_ignition_operator': ' 点 火 人 员 ',
|
|
270
|
+
'f_ignition_date': ' 点 火 时 间 '
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
ready () {
|
|
275
|
+
this.search()
|
|
276
|
+
setTimeout (this.getsliceareas,500)
|
|
277
|
+
},
|
|
278
|
+
methods: {
|
|
279
|
+
async delet(row) {
|
|
280
|
+
let http = new HttpResetClass()
|
|
281
|
+
let data = {
|
|
282
|
+
f_userinfo_id:row.f_userinfo_id
|
|
283
|
+
}
|
|
284
|
+
let res = await http.load(
|
|
285
|
+
'POST',
|
|
286
|
+
'rs/logic/deleteIgnition',
|
|
287
|
+
{data: data},
|
|
288
|
+
{
|
|
289
|
+
warnMsg: null,
|
|
290
|
+
resolveMsg: null
|
|
291
|
+
})
|
|
292
|
+
this.search()
|
|
293
|
+
},
|
|
294
|
+
async getsliceareas () {
|
|
295
|
+
|
|
296
|
+
let res = await this.$resetpost(
|
|
297
|
+
'rs/logic/getsliceareas',{data:null},
|
|
298
|
+
{resolveMsg: null, rejectMsg: '获取片区失败!!!'}
|
|
299
|
+
)
|
|
300
|
+
this.sliceareas = [{label: '全部', value: ''}, ...res.data]
|
|
301
|
+
},
|
|
302
|
+
async getFiles (row) {
|
|
303
|
+
console.log('获取')
|
|
304
|
+
let http = new HttpResetClass()
|
|
305
|
+
let data = {
|
|
306
|
+
tablename: 't_files',
|
|
307
|
+
condition: `f_blobid = '${row.f_blobid}'`,
|
|
308
|
+
orderitem: 'f_uploaddate desc'
|
|
309
|
+
}
|
|
310
|
+
let res = await http.load(
|
|
311
|
+
'POST',
|
|
312
|
+
'rs/sql/applySingleTable',
|
|
313
|
+
{data: data},
|
|
314
|
+
{
|
|
315
|
+
warnMsg: null,
|
|
316
|
+
resolveMsg: null
|
|
317
|
+
})
|
|
318
|
+
|
|
319
|
+
this.filesList = res.data.map(item => {
|
|
320
|
+
return `http://${location.host}/${item.f_downloadpath.substring(item.f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
321
|
+
})
|
|
322
|
+
|
|
323
|
+
this.showFiles = true
|
|
324
|
+
},
|
|
325
|
+
searchCondition (args) {
|
|
326
|
+
args.condition = args.condition + ` and ir.id is not null`
|
|
327
|
+
|
|
328
|
+
this.model.search(args.condition, args.model)
|
|
329
|
+
},
|
|
330
|
+
// 查询
|
|
331
|
+
search () {
|
|
332
|
+
this.$refs.cp.$refs.cri.search()
|
|
333
|
+
},
|
|
334
|
+
clear () {
|
|
335
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
336
|
+
this.$refs.cp.$refs.cri.model[key] = null
|
|
337
|
+
})
|
|
338
|
+
},
|
|
339
|
+
closeModal () {
|
|
340
|
+
this.showFiles = false
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
computed: {
|
|
344
|
+
getCondition () {
|
|
345
|
+
return {
|
|
346
|
+
condition: this.$refs.cp.$refs.cri.condition + `and ir.id is not null`,
|
|
347
|
+
data: {
|
|
348
|
+
orgid: this.$login.f.orgid
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
</script>
|
|
355
|
+
|
|
356
|
+
<style scoped>
|
|
357
|
+
</style>
|