apply-clients 6.0.1 → 6.0.4
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 +72 -72
- package/package.json +1 -1
- package/src/apply.js +219 -219
- package/src/components/apply/base/rightview/InstallCardList2.vue +267 -268
- package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +77 -77
- package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +116 -116
- package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +77 -77
- package/src/components/build/Install/ExplorationSelect.vue +308 -308
- package/src/components/build/Install/ExplorationUser.vue +315 -315
- package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
- package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
- package/src/components/build/Install/InstallFee/InstallInfoSelect.vue +232 -232
- package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
- package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
- package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
- package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
- package/src/components/build/Install/Process/CustomerEssentialInfo.vue +1 -1
- package/src/components/build/Install/Process/CustomerFile.vue +423 -423
- package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
- package/src/components/build/Install/Process/CustomerRecordMessage.vue +10 -10
- package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
- package/src/components/build/Install/Process/MeterType.vue +379 -379
- package/src/components/build/Install/Process/PlaceControler.vue +304 -304
- package/src/components/build/Install/Process/boneng/qbj_placecontroler.vue +1 -1
- package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
- package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +1 -1
- package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
- package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
- package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
- package/src/components/build/Install/Process/zhongran/ZR_PlaceControler_print.vue +187 -187
- package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
- package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
- package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
- package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
- package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
- package/src/components/build/Install/monitor/SupervisoryControl.vue +178 -178
- package/src/main.js +25 -25
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- package/yarn.lock +0 -8074
|
@@ -1,308 +1,308 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="d1">
|
|
3
|
-
<div class="left col-sm-12">
|
|
4
|
-
<criteria-paged :model="model" v-ref:cp>
|
|
5
|
-
<criteria partial='criteria' @condition-changed='search' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
|
|
6
|
-
<form novalidate class="" partial>
|
|
7
|
-
<div class="col-sm-12">
|
|
8
|
-
<div class="col-sm-2">
|
|
9
|
-
<label class="col-sm-6">客户名称:</label>
|
|
10
|
-
<div class="col-sm-6">
|
|
11
|
-
<input type="text" class="form-control" placeholder='客户名称' v-model="model.f_user_name"
|
|
12
|
-
v-on:keyup.enter="search"
|
|
13
|
-
condition="f_user_name like '{}%'">
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="col-sm-2">
|
|
17
|
-
<label class="col-sm-6">报建编号:</label>
|
|
18
|
-
<div class="col-sm-6">
|
|
19
|
-
<input type="text" class="form-control" placeholder='报建编号' v-model="model.f_apply_num"
|
|
20
|
-
v-on:keyup.enter="search"
|
|
21
|
-
condition="f_apply_num like '{}%'">
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="col-sm-2">
|
|
25
|
-
<label class="col-sm-6">用户地址:</label>
|
|
26
|
-
<div class="col-sm-6">
|
|
27
|
-
<input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
|
|
28
|
-
v-on:keyup.enter="search"
|
|
29
|
-
condition="f_address like '{}%'">
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-sm-2">
|
|
33
|
-
<label class="col-sm-6">小区名称:</label>
|
|
34
|
-
<div class="col-sm-6">
|
|
35
|
-
<input type="text" class="form-control" placeholder='小区名称' v-model="model.f_residential_area"
|
|
36
|
-
v-on:keyup.enter="search"
|
|
37
|
-
condition="f_residential_area like '{}%'">
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
<!--<div class="col-sm-1">-->
|
|
41
|
-
<!--<v-select :options="$parent.$parent.usertype" placeholder='用户类型' condition="f_user_type like '{}%'"-->
|
|
42
|
-
<!--v-model="model.f_user_type" :value.sync="model.f_user_type" close-on-select>-->
|
|
43
|
-
<!--</v-select>-->
|
|
44
|
-
<!--</div>-->
|
|
45
|
-
<!--<div class="col-sm-1">-->
|
|
46
|
-
<!--<v-select :options="$parent.$parent.defnameType" placeholder='流程状态' condition="act.defname like '%{}%'"-->
|
|
47
|
-
<!--v-model="model.defname" :value.sync="model.defname" close-on-select>-->
|
|
48
|
-
<!--</v-select>-->
|
|
49
|
-
<!--</div>-->
|
|
50
|
-
<!--<div class="col-sm-1">-->
|
|
51
|
-
<!--<v-select :options="$parent.$parent.applytype" placeholder='报装类型' condition="f_apply_type like '{}%'"-->
|
|
52
|
-
<!--v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>-->
|
|
53
|
-
<!--</v-select>-->
|
|
54
|
-
<!--</div>-->
|
|
55
|
-
<div class="col-sm-1">
|
|
56
|
-
</div>
|
|
57
|
-
<div class="col-sm-1">
|
|
58
|
-
<button class="btn btn-primary btn-sm width-80" type="button" @click="search(),$parent.$parent.close()">
|
|
59
|
-
<span class="glyphicon glyphicon-search"></span>查询
|
|
60
|
-
</button>
|
|
61
|
-
</div>
|
|
62
|
-
<div class="col-sm-1">
|
|
63
|
-
<button class="btn btn-primary btn-sm" type="button" @click="$parent.$parent.addactive()"><span
|
|
64
|
-
class="glyphicon glyphicon-plus"></span>申请登记
|
|
65
|
-
</button>
|
|
66
|
-
</div>
|
|
67
|
-
<!-- <div class="col-sm-1">
|
|
68
|
-
<button class="btn btn-primary btn-sm" type="button" @click="$parent.$parent.modify()"><span
|
|
69
|
-
class="glyphicon glyphicon-plus"></span>改装申请
|
|
70
|
-
</button>
|
|
71
|
-
</div>-->
|
|
72
|
-
</div>
|
|
73
|
-
</form>
|
|
74
|
-
</criteria>
|
|
75
|
-
<data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
|
|
76
|
-
<template partial='head'>
|
|
77
|
-
<tr class="title">
|
|
78
|
-
<th>
|
|
79
|
-
<nobr>序号</nobr>
|
|
80
|
-
</th>
|
|
81
|
-
<th>
|
|
82
|
-
<nobr>当前状态</nobr>
|
|
83
|
-
</th>
|
|
84
|
-
<th>
|
|
85
|
-
<nobr>报建编号</nobr>
|
|
86
|
-
</th>
|
|
87
|
-
<th>
|
|
88
|
-
<nobr>用户姓名</nobr>
|
|
89
|
-
</th>
|
|
90
|
-
<th v-if="!this.$login.f.f_fengongsi.includes('西昌')">
|
|
91
|
-
<nobr>用户类型</nobr>
|
|
92
|
-
</th>
|
|
93
|
-
<th>
|
|
94
|
-
<nobr>电话</nobr>
|
|
95
|
-
</th>
|
|
96
|
-
<th>
|
|
97
|
-
<nobr>地址</nobr>
|
|
98
|
-
</th>
|
|
99
|
-
<th>
|
|
100
|
-
<nobr>流程状态</nobr>
|
|
101
|
-
</th>
|
|
102
|
-
<th>
|
|
103
|
-
<nobr>报装类型</nobr>
|
|
104
|
-
</th>
|
|
105
|
-
<th>
|
|
106
|
-
<nobr>报建日期</nobr>
|
|
107
|
-
</th>
|
|
108
|
-
<th>
|
|
109
|
-
<nobr>操作</nobr>
|
|
110
|
-
</th>
|
|
111
|
-
</tr>
|
|
112
|
-
</template>
|
|
113
|
-
<template partial='body'>
|
|
114
|
-
<tr v-else>
|
|
115
|
-
<td style="text-align: center;">
|
|
116
|
-
<nobr><font>{{$index+1}}</font></nobr>
|
|
117
|
-
</td>
|
|
118
|
-
<td style="text-align: center;">
|
|
119
|
-
<nobr><font>{{row.f_sub_state}}</font></nobr>
|
|
120
|
-
</td>
|
|
121
|
-
<td style="text-align: center;">
|
|
122
|
-
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
123
|
-
</td>
|
|
124
|
-
<td style="text-align: center;">
|
|
125
|
-
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
126
|
-
</td>
|
|
127
|
-
<td style="text-align: center;" v-if="!this.$login.f.f_fengongsi.includes('西昌')">
|
|
128
|
-
<nobr><font>{{row.f_user_type}}</font></nobr>
|
|
129
|
-
</td>
|
|
130
|
-
<td style="text-align: center;">
|
|
131
|
-
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
132
|
-
</td>
|
|
133
|
-
<td style="text-align: center;">
|
|
134
|
-
<nobr><font>{{row.f_address}}</font></nobr>
|
|
135
|
-
</td>
|
|
136
|
-
<td style="text-align: center;">
|
|
137
|
-
<nobr><font>{{row.defname}}</font></nobr>
|
|
138
|
-
</td>
|
|
139
|
-
<td style="text-align: center;">
|
|
140
|
-
<nobr><font>{{row.f_apply_type}}</font></nobr>
|
|
141
|
-
</td>
|
|
142
|
-
<td style="text-align: center;">
|
|
143
|
-
<nobr><font>{{row.f_apply_date}}</font></nobr>
|
|
144
|
-
</td>
|
|
145
|
-
<td style="text-align: center;">
|
|
146
|
-
<dropdown v-if="row.defname != '完工'">
|
|
147
|
-
<button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
148
|
-
<span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
|
|
149
|
-
</button>
|
|
150
|
-
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
151
|
-
<li>
|
|
152
|
-
<a href="#" @click="$parent.$parent.$parent.check(row)">{{row.defname}}</a>
|
|
153
|
-
</li>
|
|
154
|
-
</ul>
|
|
155
|
-
</dropdown>
|
|
156
|
-
</td>
|
|
157
|
-
</tr>
|
|
158
|
-
</template>
|
|
159
|
-
</data-grid>
|
|
160
|
-
</criteria-paged>
|
|
161
|
-
</div>
|
|
162
|
-
</div>
|
|
163
|
-
</template>
|
|
164
|
-
<script>
|
|
165
|
-
import * as Util from '../../Util'
|
|
166
|
-
import {
|
|
167
|
-
PagedList
|
|
168
|
-
} from 'vue-client'
|
|
169
|
-
import getNowDate from '../../getNowDate.js'
|
|
170
|
-
|
|
171
|
-
export default {
|
|
172
|
-
title: '勘探详情',
|
|
173
|
-
data() {
|
|
174
|
-
return {
|
|
175
|
-
// usertype: this.$appdata.getParam('用户类型'),
|
|
176
|
-
// defnameType: this.$appdata.getParam('流程状态'),
|
|
177
|
-
// applytype: this.$appdata.getParam('报装类型'),
|
|
178
|
-
model: new PagedList('rs/sql/checkuser', 20, {
|
|
179
|
-
data: {
|
|
180
|
-
id: this.$login.f.id,
|
|
181
|
-
fengongsi: this.$login.f.f_fengongsi
|
|
182
|
-
}
|
|
183
|
-
}),
|
|
184
|
-
condition: '',
|
|
185
|
-
select: ''
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
ready() {
|
|
189
|
-
this.$refs.cp.$refs.cri.search()
|
|
190
|
-
let self = this
|
|
191
|
-
// setTimeout(() => {
|
|
192
|
-
// let rows = self.model.rows
|
|
193
|
-
// let trs = []
|
|
194
|
-
// for (var i = 0; i < rows.length; i++) {
|
|
195
|
-
// trs.push(document.getElementById("vc-datagrid-name-" + i))
|
|
196
|
-
// }
|
|
197
|
-
// for (var i = 0; i < rows.length; i++) {
|
|
198
|
-
// // 用时间去判断要显示的字体颜色
|
|
199
|
-
// let starttime = rows[i].f_temp_date.replace(new RegExp("-", "gm"), "/")
|
|
200
|
-
// let starttimeHaoMiao = (new Date(starttime)).getTime() // 得到上个节点提交毫秒数
|
|
201
|
-
// let nowtimeHaoMiao = new Date().getTime() // 此时时间毫秒数
|
|
202
|
-
// let tds = trs[i].getElementsByTagName("font")
|
|
203
|
-
// if (rows[i].f_sub_state === '重设') { // 如果是退回,则字体变红
|
|
204
|
-
// for (var i = 0; i < tds.length; i++) {
|
|
205
|
-
// tds[i].setAttribute("color", "red")
|
|
206
|
-
// }
|
|
207
|
-
// } else if ((nowtimeHaoMiao - starttimeHaoMiao) >= 86400000) { // 若大于一天,字体变蓝
|
|
208
|
-
// for (var i = 0; i < tds.length; i++) {
|
|
209
|
-
// tds[i].setAttribute("color", "blue")
|
|
210
|
-
// }
|
|
211
|
-
// }
|
|
212
|
-
// }
|
|
213
|
-
// }, 1000)
|
|
214
|
-
},
|
|
215
|
-
methods: {
|
|
216
|
-
generateUUID() {
|
|
217
|
-
var d = new Date().getTime()
|
|
218
|
-
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
219
|
-
var r = (d + Math.random() * 16) % 16 | 0
|
|
220
|
-
d = Math.floor(d / 16)
|
|
221
|
-
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
|
|
222
|
-
})
|
|
223
|
-
return uuid
|
|
224
|
-
},
|
|
225
|
-
addactive(modify) {
|
|
226
|
-
// this.$refs.cp.$refs.cri.search()
|
|
227
|
-
this.$refs.cp.pager = false
|
|
228
|
-
let val = {
|
|
229
|
-
defname: '报建登记',
|
|
230
|
-
f_process_id: this.generateUUID(),
|
|
231
|
-
f_apply_date: Util.toStandardTimeString(),
|
|
232
|
-
f_apply_department: this.$login.f.f_parentname,
|
|
233
|
-
f_apply_operator: this.$login.f.name,
|
|
234
|
-
f_filiale: this.$login.f.f_fengongsi,
|
|
235
|
-
f_apply_num: this.generateUUID(),
|
|
236
|
-
f_apply_operator_telephone: this.$login.f.f_fgsdianhua
|
|
237
|
-
}
|
|
238
|
-
// 如果是改装,将modify装入val
|
|
239
|
-
if(modify){
|
|
240
|
-
modify.f_customer_type = '个人'
|
|
241
|
-
modify.f_apply_type = '改装报建'
|
|
242
|
-
modify.f_phone = modify.f_user_phone
|
|
243
|
-
let temp = modify.f_residential_area
|
|
244
|
-
modify.f_residential_area = modify.f_area
|
|
245
|
-
modify.f_area = temp
|
|
246
|
-
Object.assign(val,modify)
|
|
247
|
-
}
|
|
248
|
-
if (this.$login.f.f_fengongsi.includes("博能")) {
|
|
249
|
-
val.defname = '勘察登记'
|
|
250
|
-
}
|
|
251
|
-
console.log(112 + JSON.stringify(this.$login.f.f_apply_department))
|
|
252
|
-
this.$dispatch('check', val)
|
|
253
|
-
this.$dispatch('changeheight')
|
|
254
|
-
this.$dispatch('addactive')
|
|
255
|
-
},
|
|
256
|
-
// 改装申请
|
|
257
|
-
/* modify() {
|
|
258
|
-
// 调出改装申请界面
|
|
259
|
-
this.$parent.show = false
|
|
260
|
-
},*/
|
|
261
|
-
check(val) {
|
|
262
|
-
|
|
263
|
-
this.$dispatch('check', val)
|
|
264
|
-
}
|
|
265
|
-
,
|
|
266
|
-
close() {
|
|
267
|
-
this.$dispatch('close')
|
|
268
|
-
}
|
|
269
|
-
,
|
|
270
|
-
compare(val) {
|
|
271
|
-
val === '完工'
|
|
272
|
-
console.log('完工', val)
|
|
273
|
-
return false
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
,
|
|
277
|
-
computed: {
|
|
278
|
-
date() {
|
|
279
|
-
return getNowDate()
|
|
280
|
-
}
|
|
281
|
-
,
|
|
282
|
-
selected() {
|
|
283
|
-
return this.$refs.cp.$refs.grid.selected
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
// watch: {
|
|
287
|
-
// compare (val) {
|
|
288
|
-
// val === '完工'
|
|
289
|
-
// console.log('2222222222222222222222222222222222222222222222222222', val)
|
|
290
|
-
// return false
|
|
291
|
-
// }
|
|
292
|
-
// }
|
|
293
|
-
}
|
|
294
|
-
</script>
|
|
295
|
-
<style scoped>
|
|
296
|
-
label {
|
|
297
|
-
display: flex;
|
|
298
|
-
justify-content:center;
|
|
299
|
-
align-items:Center;
|
|
300
|
-
padding-top: 8px;
|
|
301
|
-
}
|
|
302
|
-
tr.title {
|
|
303
|
-
background-color: #6666ff;
|
|
304
|
-
}
|
|
305
|
-
td{
|
|
306
|
-
text-align: center;
|
|
307
|
-
}
|
|
308
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="d1">
|
|
3
|
+
<div class="left col-sm-12">
|
|
4
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
|
|
6
|
+
<form novalidate class="" partial>
|
|
7
|
+
<div class="col-sm-12">
|
|
8
|
+
<div class="col-sm-2">
|
|
9
|
+
<label class="col-sm-6">客户名称:</label>
|
|
10
|
+
<div class="col-sm-6">
|
|
11
|
+
<input type="text" class="form-control" placeholder='客户名称' v-model="model.f_user_name"
|
|
12
|
+
v-on:keyup.enter="search"
|
|
13
|
+
condition="f_user_name like '{}%'">
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-2">
|
|
17
|
+
<label class="col-sm-6">报建编号:</label>
|
|
18
|
+
<div class="col-sm-6">
|
|
19
|
+
<input type="text" class="form-control" placeholder='报建编号' v-model="model.f_apply_num"
|
|
20
|
+
v-on:keyup.enter="search"
|
|
21
|
+
condition="f_apply_num like '{}%'">
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="col-sm-2">
|
|
25
|
+
<label class="col-sm-6">用户地址:</label>
|
|
26
|
+
<div class="col-sm-6">
|
|
27
|
+
<input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
|
|
28
|
+
v-on:keyup.enter="search"
|
|
29
|
+
condition="f_address like '{}%'">
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-sm-2">
|
|
33
|
+
<label class="col-sm-6">小区名称:</label>
|
|
34
|
+
<div class="col-sm-6">
|
|
35
|
+
<input type="text" class="form-control" placeholder='小区名称' v-model="model.f_residential_area"
|
|
36
|
+
v-on:keyup.enter="search"
|
|
37
|
+
condition="f_residential_area like '{}%'">
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<!--<div class="col-sm-1">-->
|
|
41
|
+
<!--<v-select :options="$parent.$parent.usertype" placeholder='用户类型' condition="f_user_type like '{}%'"-->
|
|
42
|
+
<!--v-model="model.f_user_type" :value.sync="model.f_user_type" close-on-select>-->
|
|
43
|
+
<!--</v-select>-->
|
|
44
|
+
<!--</div>-->
|
|
45
|
+
<!--<div class="col-sm-1">-->
|
|
46
|
+
<!--<v-select :options="$parent.$parent.defnameType" placeholder='流程状态' condition="act.defname like '%{}%'"-->
|
|
47
|
+
<!--v-model="model.defname" :value.sync="model.defname" close-on-select>-->
|
|
48
|
+
<!--</v-select>-->
|
|
49
|
+
<!--</div>-->
|
|
50
|
+
<!--<div class="col-sm-1">-->
|
|
51
|
+
<!--<v-select :options="$parent.$parent.applytype" placeholder='报装类型' condition="f_apply_type like '{}%'"-->
|
|
52
|
+
<!--v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>-->
|
|
53
|
+
<!--</v-select>-->
|
|
54
|
+
<!--</div>-->
|
|
55
|
+
<div class="col-sm-1">
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-sm-1">
|
|
58
|
+
<button class="btn btn-primary btn-sm width-80" type="button" @click="search(),$parent.$parent.close()">
|
|
59
|
+
<span class="glyphicon glyphicon-search"></span>查询
|
|
60
|
+
</button>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-1">
|
|
63
|
+
<button class="btn btn-primary btn-sm" type="button" @click="$parent.$parent.addactive()"><span
|
|
64
|
+
class="glyphicon glyphicon-plus"></span>申请登记
|
|
65
|
+
</button>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- <div class="col-sm-1">
|
|
68
|
+
<button class="btn btn-primary btn-sm" type="button" @click="$parent.$parent.modify()"><span
|
|
69
|
+
class="glyphicon glyphicon-plus"></span>改装申请
|
|
70
|
+
</button>
|
|
71
|
+
</div>-->
|
|
72
|
+
</div>
|
|
73
|
+
</form>
|
|
74
|
+
</criteria>
|
|
75
|
+
<data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
|
|
76
|
+
<template partial='head'>
|
|
77
|
+
<tr class="title">
|
|
78
|
+
<th>
|
|
79
|
+
<nobr>序号</nobr>
|
|
80
|
+
</th>
|
|
81
|
+
<th>
|
|
82
|
+
<nobr>当前状态</nobr>
|
|
83
|
+
</th>
|
|
84
|
+
<th>
|
|
85
|
+
<nobr>报建编号</nobr>
|
|
86
|
+
</th>
|
|
87
|
+
<th>
|
|
88
|
+
<nobr>用户姓名</nobr>
|
|
89
|
+
</th>
|
|
90
|
+
<th v-if="!this.$login.f.f_fengongsi.includes('西昌')">
|
|
91
|
+
<nobr>用户类型</nobr>
|
|
92
|
+
</th>
|
|
93
|
+
<th>
|
|
94
|
+
<nobr>电话</nobr>
|
|
95
|
+
</th>
|
|
96
|
+
<th>
|
|
97
|
+
<nobr>地址</nobr>
|
|
98
|
+
</th>
|
|
99
|
+
<th>
|
|
100
|
+
<nobr>流程状态</nobr>
|
|
101
|
+
</th>
|
|
102
|
+
<th>
|
|
103
|
+
<nobr>报装类型</nobr>
|
|
104
|
+
</th>
|
|
105
|
+
<th>
|
|
106
|
+
<nobr>报建日期</nobr>
|
|
107
|
+
</th>
|
|
108
|
+
<th>
|
|
109
|
+
<nobr>操作</nobr>
|
|
110
|
+
</th>
|
|
111
|
+
</tr>
|
|
112
|
+
</template>
|
|
113
|
+
<template partial='body'>
|
|
114
|
+
<tr v-else>
|
|
115
|
+
<td style="text-align: center;">
|
|
116
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
117
|
+
</td>
|
|
118
|
+
<td style="text-align: center;">
|
|
119
|
+
<nobr><font>{{row.f_sub_state}}</font></nobr>
|
|
120
|
+
</td>
|
|
121
|
+
<td style="text-align: center;">
|
|
122
|
+
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
123
|
+
</td>
|
|
124
|
+
<td style="text-align: center;">
|
|
125
|
+
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
126
|
+
</td>
|
|
127
|
+
<td style="text-align: center;" v-if="!this.$login.f.f_fengongsi.includes('西昌')">
|
|
128
|
+
<nobr><font>{{row.f_user_type}}</font></nobr>
|
|
129
|
+
</td>
|
|
130
|
+
<td style="text-align: center;">
|
|
131
|
+
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
132
|
+
</td>
|
|
133
|
+
<td style="text-align: center;">
|
|
134
|
+
<nobr><font>{{row.f_address}}</font></nobr>
|
|
135
|
+
</td>
|
|
136
|
+
<td style="text-align: center;">
|
|
137
|
+
<nobr><font>{{row.defname}}</font></nobr>
|
|
138
|
+
</td>
|
|
139
|
+
<td style="text-align: center;">
|
|
140
|
+
<nobr><font>{{row.f_apply_type}}</font></nobr>
|
|
141
|
+
</td>
|
|
142
|
+
<td style="text-align: center;">
|
|
143
|
+
<nobr><font>{{row.f_apply_date}}</font></nobr>
|
|
144
|
+
</td>
|
|
145
|
+
<td style="text-align: center;">
|
|
146
|
+
<dropdown v-if="row.defname != '完工'">
|
|
147
|
+
<button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
148
|
+
<span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
|
|
149
|
+
</button>
|
|
150
|
+
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
151
|
+
<li>
|
|
152
|
+
<a href="#" @click="$parent.$parent.$parent.check(row)">{{row.defname}}</a>
|
|
153
|
+
</li>
|
|
154
|
+
</ul>
|
|
155
|
+
</dropdown>
|
|
156
|
+
</td>
|
|
157
|
+
</tr>
|
|
158
|
+
</template>
|
|
159
|
+
</data-grid>
|
|
160
|
+
</criteria-paged>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</template>
|
|
164
|
+
<script>
|
|
165
|
+
import * as Util from '../../Util'
|
|
166
|
+
import {
|
|
167
|
+
PagedList
|
|
168
|
+
} from 'vue-client'
|
|
169
|
+
import getNowDate from '../../getNowDate.js'
|
|
170
|
+
|
|
171
|
+
export default {
|
|
172
|
+
title: '勘探详情',
|
|
173
|
+
data() {
|
|
174
|
+
return {
|
|
175
|
+
// usertype: this.$appdata.getParam('用户类型'),
|
|
176
|
+
// defnameType: this.$appdata.getParam('流程状态'),
|
|
177
|
+
// applytype: this.$appdata.getParam('报装类型'),
|
|
178
|
+
model: new PagedList('rs/sql/checkuser', 20, {
|
|
179
|
+
data: {
|
|
180
|
+
id: this.$login.f.id,
|
|
181
|
+
fengongsi: this.$login.f.f_fengongsi
|
|
182
|
+
}
|
|
183
|
+
}),
|
|
184
|
+
condition: '',
|
|
185
|
+
select: ''
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
ready() {
|
|
189
|
+
this.$refs.cp.$refs.cri.search()
|
|
190
|
+
let self = this
|
|
191
|
+
// setTimeout(() => {
|
|
192
|
+
// let rows = self.model.rows
|
|
193
|
+
// let trs = []
|
|
194
|
+
// for (var i = 0; i < rows.length; i++) {
|
|
195
|
+
// trs.push(document.getElementById("vc-datagrid-name-" + i))
|
|
196
|
+
// }
|
|
197
|
+
// for (var i = 0; i < rows.length; i++) {
|
|
198
|
+
// // 用时间去判断要显示的字体颜色
|
|
199
|
+
// let starttime = rows[i].f_temp_date.replace(new RegExp("-", "gm"), "/")
|
|
200
|
+
// let starttimeHaoMiao = (new Date(starttime)).getTime() // 得到上个节点提交毫秒数
|
|
201
|
+
// let nowtimeHaoMiao = new Date().getTime() // 此时时间毫秒数
|
|
202
|
+
// let tds = trs[i].getElementsByTagName("font")
|
|
203
|
+
// if (rows[i].f_sub_state === '重设') { // 如果是退回,则字体变红
|
|
204
|
+
// for (var i = 0; i < tds.length; i++) {
|
|
205
|
+
// tds[i].setAttribute("color", "red")
|
|
206
|
+
// }
|
|
207
|
+
// } else if ((nowtimeHaoMiao - starttimeHaoMiao) >= 86400000) { // 若大于一天,字体变蓝
|
|
208
|
+
// for (var i = 0; i < tds.length; i++) {
|
|
209
|
+
// tds[i].setAttribute("color", "blue")
|
|
210
|
+
// }
|
|
211
|
+
// }
|
|
212
|
+
// }
|
|
213
|
+
// }, 1000)
|
|
214
|
+
},
|
|
215
|
+
methods: {
|
|
216
|
+
generateUUID() {
|
|
217
|
+
var d = new Date().getTime()
|
|
218
|
+
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
219
|
+
var r = (d + Math.random() * 16) % 16 | 0
|
|
220
|
+
d = Math.floor(d / 16)
|
|
221
|
+
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
|
|
222
|
+
})
|
|
223
|
+
return uuid
|
|
224
|
+
},
|
|
225
|
+
addactive(modify) {
|
|
226
|
+
// this.$refs.cp.$refs.cri.search()
|
|
227
|
+
this.$refs.cp.pager = false
|
|
228
|
+
let val = {
|
|
229
|
+
defname: '报建登记',
|
|
230
|
+
f_process_id: this.generateUUID(),
|
|
231
|
+
f_apply_date: Util.toStandardTimeString(),
|
|
232
|
+
f_apply_department: this.$login.f.f_parentname,
|
|
233
|
+
f_apply_operator: this.$login.f.name,
|
|
234
|
+
f_filiale: this.$login.f.f_fengongsi,
|
|
235
|
+
f_apply_num: this.generateUUID(),
|
|
236
|
+
f_apply_operator_telephone: this.$login.f.f_fgsdianhua
|
|
237
|
+
}
|
|
238
|
+
// 如果是改装,将modify装入val
|
|
239
|
+
if(modify){
|
|
240
|
+
modify.f_customer_type = '个人'
|
|
241
|
+
modify.f_apply_type = '改装报建'
|
|
242
|
+
modify.f_phone = modify.f_user_phone
|
|
243
|
+
let temp = modify.f_residential_area
|
|
244
|
+
modify.f_residential_area = modify.f_area
|
|
245
|
+
modify.f_area = temp
|
|
246
|
+
Object.assign(val,modify)
|
|
247
|
+
}
|
|
248
|
+
if (this.$login.f.f_fengongsi.includes("博能")) {
|
|
249
|
+
val.defname = '勘察登记'
|
|
250
|
+
}
|
|
251
|
+
console.log(112 + JSON.stringify(this.$login.f.f_apply_department))
|
|
252
|
+
this.$dispatch('check', val)
|
|
253
|
+
this.$dispatch('changeheight')
|
|
254
|
+
this.$dispatch('addactive')
|
|
255
|
+
},
|
|
256
|
+
// 改装申请
|
|
257
|
+
/* modify() {
|
|
258
|
+
// 调出改装申请界面
|
|
259
|
+
this.$parent.show = false
|
|
260
|
+
},*/
|
|
261
|
+
check(val) {
|
|
262
|
+
|
|
263
|
+
this.$dispatch('check', val)
|
|
264
|
+
}
|
|
265
|
+
,
|
|
266
|
+
close() {
|
|
267
|
+
this.$dispatch('close')
|
|
268
|
+
}
|
|
269
|
+
,
|
|
270
|
+
compare(val) {
|
|
271
|
+
val === '完工'
|
|
272
|
+
console.log('完工', val)
|
|
273
|
+
return false
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
,
|
|
277
|
+
computed: {
|
|
278
|
+
date() {
|
|
279
|
+
return getNowDate()
|
|
280
|
+
}
|
|
281
|
+
,
|
|
282
|
+
selected() {
|
|
283
|
+
return this.$refs.cp.$refs.grid.selected
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
// watch: {
|
|
287
|
+
// compare (val) {
|
|
288
|
+
// val === '完工'
|
|
289
|
+
// console.log('2222222222222222222222222222222222222222222222222222', val)
|
|
290
|
+
// return false
|
|
291
|
+
// }
|
|
292
|
+
// }
|
|
293
|
+
}
|
|
294
|
+
</script>
|
|
295
|
+
<style scoped>
|
|
296
|
+
label {
|
|
297
|
+
display: flex;
|
|
298
|
+
justify-content:center;
|
|
299
|
+
align-items:Center;
|
|
300
|
+
padding-top: 8px;
|
|
301
|
+
}
|
|
302
|
+
tr.title {
|
|
303
|
+
background-color: #6666ff;
|
|
304
|
+
}
|
|
305
|
+
td{
|
|
306
|
+
text-align: center;
|
|
307
|
+
}
|
|
308
|
+
</style>
|