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,587 +1,587 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<criteria-paged :model="model" v-ref:cp>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
<div class="row" >
|
|
7
|
-
<div class="form-group col-sm-2" v-if="false">
|
|
8
|
-
<label class="font_normal_body">工程编号:</label>
|
|
9
|
-
<input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
|
|
10
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
11
|
-
condition="f_apply_num like '%{}%'">
|
|
12
|
-
</div>
|
|
13
|
-
<div class="form-group col-sm-2" v-if="false">
|
|
14
|
-
<label class="font_normal_body">客户名称:</label>
|
|
15
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
16
|
-
v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="form-group col-sm-2" v-if="false">
|
|
19
|
-
<label class="font_normal_body">联系电话:</label>
|
|
20
|
-
<input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
|
|
21
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
22
|
-
condition="f_phone like '%{}%'">
|
|
23
|
-
</div>
|
|
24
|
-
<div class="form-group col-sm-2" v-if="false">
|
|
25
|
-
<label class="font_normal_body">联 系 人:</label>
|
|
26
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_contact"
|
|
27
|
-
v-on:keyup.enter="$parent.$parent.search()" condition="f_contact like '%{}%'" placeholder='联系人'>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="form-group col-sm-3 button-range">
|
|
30
|
-
<button class="button_new button_spacing" style="width: max-content"
|
|
31
|
-
v-if="false"
|
|
32
|
-
@click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
|
|
33
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
34
|
-
:field="$parent.$parent.getfield"
|
|
35
|
-
sqlurl="rs/logic/applyExportfile"
|
|
36
|
-
sql-name="checkuserExcel"
|
|
37
|
-
template-name='报建待办信息导出'
|
|
38
|
-
v-if="false"
|
|
39
|
-
:choose-col="true"></export-excel>
|
|
40
|
-
<button class="button_search button_spacing" v-if="false" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
41
|
-
<button class="button_search button_spacing" style="margin-top: 0px" @click="$parent.$parent.loadPage()">返回</button>
|
|
42
|
-
<button class="button_clear button_spacing" v-if="false" @click="$parent.$parent.clear()">清空</button>
|
|
43
|
-
<div
|
|
44
|
-
v-if="false"
|
|
45
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
46
|
-
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
47
|
-
class="button_spacing"
|
|
48
|
-
style="float: right">
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
53
|
-
<div class="form-group col-sm-2">
|
|
54
|
-
<label class="font_normal_body">合同编号:</label>
|
|
55
|
-
<input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
|
|
56
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
57
|
-
condition="f_contract_number like '%{}%'">
|
|
58
|
-
</div>
|
|
59
|
-
<div class="form-group col-sm-2">
|
|
60
|
-
<label class="font_normal_body">报建类型:</label>
|
|
61
|
-
<v-select
|
|
62
|
-
v-model="model.f_apply_type"
|
|
63
|
-
placeholder='报建类型'
|
|
64
|
-
condition="u.f_apply_type in {}"
|
|
65
|
-
:value.sync="model.f_apply_type"
|
|
66
|
-
:options='$parent.$parent.applytype'
|
|
67
|
-
class="select select_list"
|
|
68
|
-
multiple
|
|
69
|
-
@change="$parent.$parent.applyTypeChange()" ></v-select>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="form-group col-sm-2">
|
|
72
|
-
<label class="font_normal_body">办理环节:</label>
|
|
73
|
-
<v-select
|
|
74
|
-
v-model="model.defname"
|
|
75
|
-
placeholder='办理环节'
|
|
76
|
-
condition="act.defname = '{}'"
|
|
77
|
-
:value.sync="model.defname"
|
|
78
|
-
:options='$parent.$parent.defnames'
|
|
79
|
-
class="select select_list"
|
|
80
|
-
:value-single="true"
|
|
81
|
-
close-on-select ></v-select>
|
|
82
|
-
</div>
|
|
83
|
-
<div class="form-group col-sm-2">
|
|
84
|
-
<label class="font_normal_body">报建性质:</label>
|
|
85
|
-
<v-select
|
|
86
|
-
v-model="model.f_apply_nature"
|
|
87
|
-
placeholder='报建性质'
|
|
88
|
-
condition="f_apply_nature = '{}'"
|
|
89
|
-
:value.sync="model.f_apply_nature"
|
|
90
|
-
:options='$parent.$parent.applyNatures'
|
|
91
|
-
class="select select_list"
|
|
92
|
-
:value-single="true"
|
|
93
|
-
close-on-select ></v-select>
|
|
94
|
-
</div>
|
|
95
|
-
<div class="form-group col-sm-2">
|
|
96
|
-
<label class="font_normal_body">用户分类:</label>
|
|
97
|
-
<v-select
|
|
98
|
-
v-model="model.f_user_classification"
|
|
99
|
-
placeholder='用户分类'
|
|
100
|
-
condition="f_user_classification = '{}'"
|
|
101
|
-
:value.sync="model.f_user_classification"
|
|
102
|
-
:options='$parent.$parent.UserList'
|
|
103
|
-
class="select select_list"
|
|
104
|
-
:value-single="true"
|
|
105
|
-
close-on-select ></v-select>
|
|
106
|
-
</div>
|
|
107
|
-
<div class="form-group col-sm-2">
|
|
108
|
-
<label class="font_normal_body">用户类型:</label>
|
|
109
|
-
<v-select
|
|
110
|
-
v-model="model.f_user_type"
|
|
111
|
-
placeholder='普通/煤改'
|
|
112
|
-
condition="f_user_type = '{}'"
|
|
113
|
-
:value.sync="model.f_user_type"
|
|
114
|
-
:options='$parent.$parent.UserType'
|
|
115
|
-
class="select select_list"
|
|
116
|
-
:value-single="true"
|
|
117
|
-
close-on-select ></v-select>
|
|
118
|
-
</div>
|
|
119
|
-
<div class="form-group col-sm-2">
|
|
120
|
-
<label class="font_normal_body">设计人员:</label>
|
|
121
|
-
<v-select class="select select_list"
|
|
122
|
-
placeholder='设计人员'
|
|
123
|
-
v-model="model.f_designer_people"
|
|
124
|
-
:value.sync="model.f_designer_people"
|
|
125
|
-
:options='$parent.$parent.designerPeoples'
|
|
126
|
-
:value-single="true"
|
|
127
|
-
close-on-select
|
|
128
|
-
condition="f_designer_people = '{}'">
|
|
129
|
-
</v-select>
|
|
130
|
-
</div>
|
|
131
|
-
<div class="form-group col-sm-2">
|
|
132
|
-
<label class="font_normal_body">用户地址:</label>
|
|
133
|
-
<input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
|
|
134
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
135
|
-
condition="f_address like '%{}%'">
|
|
136
|
-
</div>
|
|
137
|
-
<!-- <div class="form-group col-sm-2">-->
|
|
138
|
-
<!-- <label class="font_normal_body">日期类型:</label>-->
|
|
139
|
-
<!-- <v-select class="select select_list"-->
|
|
140
|
-
<!-- placeholder='日期类型'-->
|
|
141
|
-
<!-- v-model="model.f_date_type"-->
|
|
142
|
-
<!-- :value.sync="model.f_date_type"-->
|
|
143
|
-
<!-- :options='$parent.$parent.dateType'-->
|
|
144
|
-
<!-- :value-single="true"-->
|
|
145
|
-
<!-- @change="$parent.$parent.updateDateType()"-->
|
|
146
|
-
<!-- close-on-select>-->
|
|
147
|
-
<!-- </v-select>-->
|
|
148
|
-
<!-- </div>-->
|
|
149
|
-
<div class="form-group col-sm-2">
|
|
150
|
-
<label for="startDate" class="font_normal_body">开始时间:</label>
|
|
151
|
-
<datepicker id="startDate" placeholder="开始日期"
|
|
152
|
-
style="width: 60%!important;"
|
|
153
|
-
v-model="model.startDate"
|
|
154
|
-
:value.sync="model.startDate"
|
|
155
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
156
|
-
:show-reset-button="true"
|
|
157
|
-
condition="sendtime >= '{}'">
|
|
158
|
-
</datepicker>
|
|
159
|
-
</div>
|
|
160
|
-
<div class="form-group col-sm-2">
|
|
161
|
-
<label for="endDate" class="font_normal_body">结束时间:</label>
|
|
162
|
-
<datepicker id="endDate" placeholder="结束日期"
|
|
163
|
-
style="width: 60%!important;"
|
|
164
|
-
v-model="model.endDate"
|
|
165
|
-
:value.sync="model.endDate"
|
|
166
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
167
|
-
:show-reset-button="true"
|
|
168
|
-
condition="sendtime <= '{}'">
|
|
169
|
-
</datepicker>
|
|
170
|
-
</div>
|
|
171
|
-
<div class="form-group col-sm-2">
|
|
172
|
-
<label class="font_normal_body">来  源:</label>
|
|
173
|
-
<v-select
|
|
174
|
-
v-model="model.f_apply_source"
|
|
175
|
-
placeholder='来源'
|
|
176
|
-
condition="u.f_apply_source = '{}'"
|
|
177
|
-
:value.sync="model.f_apply_source"
|
|
178
|
-
:options='$parent.$parent.sources'
|
|
179
|
-
class="select select_list"
|
|
180
|
-
:value-single="true"
|
|
181
|
-
close-on-select >
|
|
182
|
-
</v-select>
|
|
183
|
-
</div>
|
|
184
|
-
<div class="form-group col-sm-2">
|
|
185
|
-
<label class="font_normal_body">保存状态:</label>
|
|
186
|
-
<v-select
|
|
187
|
-
v-model="model.f_sub_save_state"
|
|
188
|
-
placeholder='保存状态'
|
|
189
|
-
condition="u.f_sub_save_state = '{}'"
|
|
190
|
-
:value.sync="model.f_sub_save_state"
|
|
191
|
-
:options='$parent.$parent.save_states'
|
|
192
|
-
class="select select_list"
|
|
193
|
-
:value-single="true"
|
|
194
|
-
close-on-select >
|
|
195
|
-
</v-select>
|
|
196
|
-
</div>
|
|
197
|
-
<div class="form-group col-sm-2">
|
|
198
|
-
<label class="font_normal_body">新旧报建:</label>
|
|
199
|
-
<v-select
|
|
200
|
-
v-model="model.f_house_type"
|
|
201
|
-
placeholder='新旧报建'
|
|
202
|
-
condition="u.f_house_type {}"
|
|
203
|
-
:value.sync="model.f_house_type"
|
|
204
|
-
:options='$parent.$parent.houseType'
|
|
205
|
-
class="select select_list"
|
|
206
|
-
:value-single="true"
|
|
207
|
-
close-on-select >
|
|
208
|
-
</v-select>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
</criteria>
|
|
213
|
-
<data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
|
|
214
|
-
<template partial='head'>
|
|
215
|
-
<tr>
|
|
216
|
-
<th style="white-space: nowrap;">序号</th>
|
|
217
|
-
<th style="white-space: nowrap;">完成状态</th>
|
|
218
|
-
<th style="white-space: nowrap;">工程编号</th>
|
|
219
|
-
<th style="white-space: nowrap;">客户名称</th>
|
|
220
|
-
<th style="white-space: nowrap;">联系人</th>
|
|
221
|
-
<th style="white-space: nowrap;">电话</th>
|
|
222
|
-
<th style="white-space: nowrap;">地址</th>
|
|
223
|
-
<th style="white-space: nowrap;">合同编号</th>
|
|
224
|
-
<th style="white-space: nowrap;">报建类型</th>
|
|
225
|
-
<th style="white-space: nowrap;">报建性质</th>
|
|
226
|
-
<th style="white-space: nowrap;">用户类型</th>
|
|
227
|
-
<th style="white-space: nowrap;">办理环节</th>
|
|
228
|
-
<th style="white-space: nowrap;">安装户数</th>
|
|
229
|
-
<th style="white-space: nowrap;">设计人员</th>
|
|
230
|
-
<th style="white-space: nowrap;">来源</th>
|
|
231
|
-
<th style="white-space: nowrap;">流程状态</th>
|
|
232
|
-
<th style="white-space: nowrap;">流程开始时间</th>
|
|
233
|
-
</tr>
|
|
234
|
-
</template>
|
|
235
|
-
<template partial='body'>
|
|
236
|
-
<tr >
|
|
237
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
238
|
-
<nobr><font>{{$index+1}}</font></nobr>
|
|
239
|
-
</td>
|
|
240
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
241
|
-
<nobr><font>{{row.f_sub_save_state}}</font></nobr>
|
|
242
|
-
</td>
|
|
243
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
244
|
-
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
245
|
-
</td>
|
|
246
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
247
|
-
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
248
|
-
</td>
|
|
249
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
250
|
-
<nobr><font>{{row.f_contact}}</font></nobr>
|
|
251
|
-
</td>
|
|
252
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
253
|
-
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
254
|
-
</td>
|
|
255
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
256
|
-
<nobr><font>{{row.f_address}}</font></nobr>
|
|
257
|
-
</td>
|
|
258
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
259
|
-
<nobr><font>{{row.f_contract_number}}</font></nobr>
|
|
260
|
-
</td>
|
|
261
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
262
|
-
<nobr><font>{{row.f_apply_type}}</font></nobr>
|
|
263
|
-
</td>
|
|
264
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
265
|
-
<nobr><font>{{row.f_apply_nature}}</font></nobr>
|
|
266
|
-
</td>
|
|
267
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
268
|
-
<nobr><font>{{row.f_user_type}}</font></nobr>
|
|
269
|
-
</td>
|
|
270
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
271
|
-
<nobr><font>{{row.defname}}</font></nobr>
|
|
272
|
-
</td>
|
|
273
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
274
|
-
<nobr><font>{{row.f_install_count}}</font></nobr>
|
|
275
|
-
</td>
|
|
276
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
277
|
-
<nobr><font>{{row.f_designer_people}}</font></nobr>
|
|
278
|
-
</td>
|
|
279
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
280
|
-
<nobr><font>{{row.f_apply_source}}</font></nobr>
|
|
281
|
-
</td>
|
|
282
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
283
|
-
<nobr><font>{{row.f_sub_state}}</font></nobr>
|
|
284
|
-
</td>
|
|
285
|
-
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
286
|
-
<nobr><font>{{row.sendtime}}</font></nobr>
|
|
287
|
-
</td>
|
|
288
|
-
<!-- <td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">-->
|
|
289
|
-
<!-- <dropdown>-->
|
|
290
|
-
<!-- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">-->
|
|
291
|
-
<!-- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>-->
|
|
292
|
-
<!-- </button>-->
|
|
293
|
-
<!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">-->
|
|
294
|
-
<!-- <li>-->
|
|
295
|
-
<!-- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>-->
|
|
296
|
-
<!-- </li>-->
|
|
297
|
-
<!-- </ul>-->
|
|
298
|
-
<!-- </dropdown>-->
|
|
299
|
-
<!-- </td>-->
|
|
300
|
-
</tr>
|
|
301
|
-
</template>
|
|
302
|
-
</data-grid>
|
|
303
|
-
</criteria-paged>
|
|
304
|
-
|
|
305
|
-
<modal
|
|
306
|
-
v-if="showModal"
|
|
307
|
-
:show.sync="showModal"
|
|
308
|
-
backdrop="false"
|
|
309
|
-
title="工程类型"
|
|
310
|
-
cancel-text="取消"
|
|
311
|
-
ok-text="确认"
|
|
312
|
-
:callback="apply"
|
|
313
|
-
>
|
|
314
|
-
<div class="form-horizontal" slot="modal-body">
|
|
315
|
-
<div class="form-group" style="margin: 10px auto">
|
|
316
|
-
<label class="col-sm-3 control-label">报建类型:</label>
|
|
317
|
-
<div class="col-sm-9">
|
|
318
|
-
<v-select
|
|
319
|
-
v-model="applyType"
|
|
320
|
-
placeholder='请选择需要发起的工程类型'
|
|
321
|
-
:value.sync="applyType"
|
|
322
|
-
:options='$appdata.getParam("报建类型")'
|
|
323
|
-
:value-single="true"
|
|
324
|
-
class="select select_list"
|
|
325
|
-
:search="false"
|
|
326
|
-
close-on-select ></v-select>
|
|
327
|
-
</div>
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
</modal>
|
|
331
|
-
</div>
|
|
332
|
-
</template>
|
|
333
|
-
<script>
|
|
334
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
335
|
-
import {isEmpty} from '../../Util'
|
|
336
|
-
|
|
337
|
-
export default {
|
|
338
|
-
title: '工程列表',
|
|
339
|
-
props: ['showData'],
|
|
340
|
-
data () {
|
|
341
|
-
return {
|
|
342
|
-
model: new PagedList('rs/sql/checkuser', 20, {
|
|
343
|
-
data: {
|
|
344
|
-
userid: this.$login.f.id,
|
|
345
|
-
f_filiale: "榆林."+this.$login.f.orgs
|
|
346
|
-
}
|
|
347
|
-
}),
|
|
348
|
-
// showModal: false, // 控制发起类型选择
|
|
349
|
-
// applyType: '', // 报建类型
|
|
350
|
-
// applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
|
|
351
|
-
// defnames: isEmpty(this.$appdata.getParam('办理环节')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
|
|
352
|
-
// applyNatures: [{label: '全部', value: ''},{label: '工业', value: '工业'},{label: '商业', value: '商业'},{label: '散户', value: '散户'},{label: '小区', value: '小区'},{label: '分户挂表', value: '分户挂表'}], // 报建性质
|
|
353
|
-
// save_states: [{label: '全部', value: ''},{label: '已完成', value: '已完成'},{label: '已退回', value: '已退回'}], // 报建性质
|
|
354
|
-
// designerPeoples: this.getDesigner(),
|
|
355
|
-
// UserList:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户分类')],
|
|
356
|
-
// UserType:[{label: '全部', value: ''}, {label: '普通用户', value: '普通用户'}, {label: '煤改用户', value: '煤改用户'}],
|
|
357
|
-
// houseType:[{label: '全部', value: ''}, {label: '旧报建', value: ` = '旧报建导入'`}, {label: '新报建', value: ' is null' }],
|
|
358
|
-
// // dateType: [{label: '默认', value: ''}, ...this.$appdata.getParam('日期类型')],
|
|
359
|
-
// criteriaShow: false,
|
|
360
|
-
// sources:[{label: '微信公众号', value: '微信公众号'},{label: '线下发起', value: '线下发起'}],
|
|
361
|
-
// getfield: {
|
|
362
|
-
// 'f_apply_num': ' 工 程 编 号 ',
|
|
363
|
-
// 'f_user_name': ' 客 户 名 称 ',
|
|
364
|
-
// 'f_contact': ' 联 系 人 ',
|
|
365
|
-
// 'f_phone': ' 电 话 ',
|
|
366
|
-
// 'f_user_type': ' 用户类型 ',
|
|
367
|
-
// 'f_user_classification': ' 用户分类 ',
|
|
368
|
-
// 'f_address': ' 地 址 ',
|
|
369
|
-
// 'f_apply_type': ' 报 建 类 型 ',
|
|
370
|
-
// 'f_apply_nature': ' 报 建 性 质 ',
|
|
371
|
-
// 'defname': ' 办 理 环 节 ',
|
|
372
|
-
// 'f_install_count': ' 安装户数 ',
|
|
373
|
-
// 'f_designer_people':' 设计人员 ',
|
|
374
|
-
// 'f_construction_name':' 安 装 单 位 '
|
|
375
|
-
// }
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
ready () {
|
|
379
|
-
// 调用查询
|
|
380
|
-
// if (this.showData){
|
|
381
|
-
// this.search()
|
|
382
|
-
// }
|
|
383
|
-
this.$refs.cp.pager = false
|
|
384
|
-
},
|
|
385
|
-
methods: {
|
|
386
|
-
// 点击操作
|
|
387
|
-
click (val) {
|
|
388
|
-
this.$dispatch('apply', val)
|
|
389
|
-
},
|
|
390
|
-
// 获取流程id
|
|
391
|
-
async getProcessId(processname) {
|
|
392
|
-
let data = {
|
|
393
|
-
workname: processname
|
|
394
|
-
}
|
|
395
|
-
let http = new HttpResetClass()
|
|
396
|
-
let res = await http.load(
|
|
397
|
-
'POST',
|
|
398
|
-
'rs/logic/getProcessId',
|
|
399
|
-
{data: data},
|
|
400
|
-
{resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
|
|
401
|
-
)
|
|
402
|
-
|
|
403
|
-
return res.data
|
|
404
|
-
},
|
|
405
|
-
// 报装申请
|
|
406
|
-
async apply () {
|
|
407
|
-
if (this.applyType === '' || this.applyType === null) {
|
|
408
|
-
this.$showMessage('请选择需要发起的类型')
|
|
409
|
-
return
|
|
410
|
-
}
|
|
411
|
-
let data = {
|
|
412
|
-
f_apply_type: this.applyType
|
|
413
|
-
}
|
|
414
|
-
if (this.getLoginDepartment){
|
|
415
|
-
if (this.applyType === '民用报建') {
|
|
416
|
-
data.processname = '民用报建流程'
|
|
417
|
-
data.defname = '报装申请'
|
|
418
|
-
} else if (this.applyType === '非民用报建') {
|
|
419
|
-
data.processname = '非民用报建流程'
|
|
420
|
-
data.defname = '报装申请'
|
|
421
|
-
} else if (this.applyType === '分户挂表') {
|
|
422
|
-
data.processname = '分户挂表报建流程'
|
|
423
|
-
data.defname = '报装申请'
|
|
424
|
-
} else if (this.applyType === '设备变更') {
|
|
425
|
-
data.processname = '设备变更流程'
|
|
426
|
-
data.defname = '报装申请'
|
|
427
|
-
} else if (this.applyType === '设备拆除') {
|
|
428
|
-
data.processname = '设备拆除流程'
|
|
429
|
-
data.defname = '报建受理'
|
|
430
|
-
} else {
|
|
431
|
-
this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
|
|
432
|
-
return
|
|
433
|
-
}
|
|
434
|
-
}else if (this.$login.f.rolesnames.includes('工程部派工')){
|
|
435
|
-
if (this.applyType === '改线业务') {
|
|
436
|
-
data.processname = '改线业务流程'
|
|
437
|
-
data.defname = '报装申请'
|
|
438
|
-
} else {
|
|
439
|
-
this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
|
|
440
|
-
return
|
|
441
|
-
}
|
|
442
|
-
} else {
|
|
443
|
-
this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
|
|
444
|
-
return
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
data.f_sub_state = "新增"
|
|
448
|
-
data.f_apply_source = "线下发起"
|
|
449
|
-
data.f_process_id = await this.getProcessId(data.processname)
|
|
450
|
-
|
|
451
|
-
// 调用ExplorationUser事件
|
|
452
|
-
this.$dispatch('apply', data)
|
|
453
|
-
|
|
454
|
-
this.applyType = null
|
|
455
|
-
this.showModal = false
|
|
456
|
-
},
|
|
457
|
-
loadPage () {
|
|
458
|
-
this.$dispatch('loadPage')
|
|
459
|
-
},
|
|
460
|
-
searchCondition (args) {
|
|
461
|
-
args.condition = args.condition
|
|
462
|
-
if (args.condition.includes('民用报建')) {
|
|
463
|
-
args.condition = args.condition.replace('f_apply_type = \'民用报建\'', '(f_apply_type = \'民用报建\' or f_apply_type = \'分户挂表\')');
|
|
464
|
-
}
|
|
465
|
-
// if (this.$login.f.rolesnames.includes('工程队派工')){
|
|
466
|
-
// args.condition = args.condition + ` and ((f_construction_unit = ${this.$login.f.id} and act.defname = '工程队派工' )or act.defname <> '工程队派工')`
|
|
467
|
-
// }
|
|
468
|
-
console.log("args.condition",args.condition)
|
|
469
|
-
// this.model.search(args.condition, args.model)
|
|
470
|
-
|
|
471
|
-
console.log("当前数据",this.model)
|
|
472
|
-
},
|
|
473
|
-
search () {
|
|
474
|
-
this.$dispatch('search')
|
|
475
|
-
},
|
|
476
|
-
async applyTypeChange () {
|
|
477
|
-
|
|
478
|
-
if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
|
|
479
|
-
let http = new HttpResetClass()
|
|
480
|
-
let res = await http.load('POST', 'rs/logic/getDefnameByType', {
|
|
481
|
-
f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type},
|
|
482
|
-
{resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
|
|
483
|
-
)
|
|
484
|
-
this.defnames = [{label: '全部', value: ''}, ...res.data]
|
|
485
|
-
|
|
486
|
-
// this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
|
|
487
|
-
} else {
|
|
488
|
-
this.defnames = isEmpty(this.$appdata.getParam('办理环节')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')]
|
|
489
|
-
|
|
490
|
-
// this.applyNatures = isEmpty(this.$appdata.getParam('报建性质')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('报建性质')] // 报建性质
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
async getDesigner() {
|
|
494
|
-
let data = {
|
|
495
|
-
source: 'this.getParentByType($organization$).getChildByName($设计人员$).getChildren()',
|
|
496
|
-
userid: this.$login.f.id
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
let res = await this.$resetpost(
|
|
500
|
-
'rs/search',
|
|
501
|
-
{data: data},
|
|
502
|
-
{resolveMsg: null, rejectMsg: '设计人员人员查询失败!!!'}
|
|
503
|
-
)
|
|
504
|
-
console.log("ces",res.data.map(item => {
|
|
505
|
-
return {
|
|
506
|
-
label: item.name,
|
|
507
|
-
value: item.name
|
|
508
|
-
}
|
|
509
|
-
}))
|
|
510
|
-
this.designerPeoples = res.data.map(item => {
|
|
511
|
-
return {
|
|
512
|
-
label: item.name,
|
|
513
|
-
value: item.name
|
|
514
|
-
}
|
|
515
|
-
})
|
|
516
|
-
},
|
|
517
|
-
clear () {
|
|
518
|
-
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
519
|
-
this.$refs.cp.$refs.cri.model[key] = null
|
|
520
|
-
this.$refs.cp.$refs.cri.model.f_apply_type = []
|
|
521
|
-
})
|
|
522
|
-
}
|
|
523
|
-
},
|
|
524
|
-
computed: {
|
|
525
|
-
projectStart () {
|
|
526
|
-
return this.$login.r.includes('报建发起')
|
|
527
|
-
},
|
|
528
|
-
getLoginDepartment(){
|
|
529
|
-
return this.$login.f.rolesnames.includes('市场部报装')
|
|
530
|
-
},
|
|
531
|
-
getCondition () {
|
|
532
|
-
return {
|
|
533
|
-
condition: this.$refs.cp.$refs.cri.condition,
|
|
534
|
-
data: {
|
|
535
|
-
userid: this.$login.f.id,
|
|
536
|
-
f_filiale: "榆林."+this.$login.f.orgs
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
watch: {
|
|
542
|
-
// 'model.rows': {
|
|
543
|
-
// handler: function () {
|
|
544
|
-
// let isover = [] // 过期(超时)数据
|
|
545
|
-
// let isbeforeover = [] // 未过期 提前提醒
|
|
546
|
-
// for (let i = 0; i < this.model.rows.length; i++) {
|
|
547
|
-
// let item = this.model.rows[i]
|
|
548
|
-
// if (item.isover === '过期') {
|
|
549
|
-
// isover.push(i + 1)
|
|
550
|
-
// }
|
|
551
|
-
// if (item.isbeforeover === '预期提醒') {
|
|
552
|
-
// isbeforeover.push(i + 1)
|
|
553
|
-
// }
|
|
554
|
-
// }
|
|
555
|
-
// let msg = null
|
|
556
|
-
// if (isover.length > 0) {
|
|
557
|
-
// msg = `第${isover.toString()}条数据已过期`
|
|
558
|
-
// this.$showAlert(msg, 'warning', 3000)
|
|
559
|
-
// }
|
|
560
|
-
//
|
|
561
|
-
// if (isbeforeover.length > 0) {
|
|
562
|
-
// msg = `第${isbeforeover.toString()}条数据即将过期`
|
|
563
|
-
// if (isover.length > 0) {
|
|
564
|
-
// setTimeout(() => {
|
|
565
|
-
// this.$showAlert(msg, 'warning', 3000)
|
|
566
|
-
// }, 4000)
|
|
567
|
-
// } else {
|
|
568
|
-
// this.$showAlert(msg, 'warning', 3000)
|
|
569
|
-
// }
|
|
570
|
-
// }
|
|
571
|
-
// }
|
|
572
|
-
// }
|
|
573
|
-
},
|
|
574
|
-
events: {
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
</script>
|
|
578
|
-
<style scoped>
|
|
579
|
-
|
|
580
|
-
.p1 {
|
|
581
|
-
color: #dc0b12;
|
|
582
|
-
font-weight:bold
|
|
583
|
-
}
|
|
584
|
-
.p {
|
|
585
|
-
color: #ffaf4f;
|
|
586
|
-
}
|
|
587
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row" >
|
|
7
|
+
<div class="form-group col-sm-2" v-if="false">
|
|
8
|
+
<label class="font_normal_body">工程编号:</label>
|
|
9
|
+
<input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
|
|
10
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
11
|
+
condition="f_apply_num like '%{}%'">
|
|
12
|
+
</div>
|
|
13
|
+
<div class="form-group col-sm-2" v-if="false">
|
|
14
|
+
<label class="font_normal_body">客户名称:</label>
|
|
15
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
16
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="form-group col-sm-2" v-if="false">
|
|
19
|
+
<label class="font_normal_body">联系电话:</label>
|
|
20
|
+
<input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
|
|
21
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
22
|
+
condition="f_phone like '%{}%'">
|
|
23
|
+
</div>
|
|
24
|
+
<div class="form-group col-sm-2" v-if="false">
|
|
25
|
+
<label class="font_normal_body">联 系 人:</label>
|
|
26
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_contact"
|
|
27
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f_contact like '%{}%'" placeholder='联系人'>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="form-group col-sm-3 button-range">
|
|
30
|
+
<button class="button_new button_spacing" style="width: max-content"
|
|
31
|
+
v-if="false"
|
|
32
|
+
@click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
|
|
33
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
34
|
+
:field="$parent.$parent.getfield"
|
|
35
|
+
sqlurl="rs/logic/applyExportfile"
|
|
36
|
+
sql-name="checkuserExcel"
|
|
37
|
+
template-name='报建待办信息导出'
|
|
38
|
+
v-if="false"
|
|
39
|
+
:choose-col="true"></export-excel>
|
|
40
|
+
<button class="button_search button_spacing" v-if="false" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
41
|
+
<button class="button_search button_spacing" style="margin-top: 0px" @click="$parent.$parent.loadPage()">返回</button>
|
|
42
|
+
<button class="button_clear button_spacing" v-if="false" @click="$parent.$parent.clear()">清空</button>
|
|
43
|
+
<div
|
|
44
|
+
v-if="false"
|
|
45
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
46
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
47
|
+
class="button_spacing"
|
|
48
|
+
style="float: right">
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
53
|
+
<div class="form-group col-sm-2">
|
|
54
|
+
<label class="font_normal_body">合同编号:</label>
|
|
55
|
+
<input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
|
|
56
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
57
|
+
condition="f_contract_number like '%{}%'">
|
|
58
|
+
</div>
|
|
59
|
+
<div class="form-group col-sm-2">
|
|
60
|
+
<label class="font_normal_body">报建类型:</label>
|
|
61
|
+
<v-select
|
|
62
|
+
v-model="model.f_apply_type"
|
|
63
|
+
placeholder='报建类型'
|
|
64
|
+
condition="u.f_apply_type in {}"
|
|
65
|
+
:value.sync="model.f_apply_type"
|
|
66
|
+
:options='$parent.$parent.applytype'
|
|
67
|
+
class="select select_list"
|
|
68
|
+
multiple
|
|
69
|
+
@change="$parent.$parent.applyTypeChange()" ></v-select>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="form-group col-sm-2">
|
|
72
|
+
<label class="font_normal_body">办理环节:</label>
|
|
73
|
+
<v-select
|
|
74
|
+
v-model="model.defname"
|
|
75
|
+
placeholder='办理环节'
|
|
76
|
+
condition="act.defname = '{}'"
|
|
77
|
+
:value.sync="model.defname"
|
|
78
|
+
:options='$parent.$parent.defnames'
|
|
79
|
+
class="select select_list"
|
|
80
|
+
:value-single="true"
|
|
81
|
+
close-on-select ></v-select>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="form-group col-sm-2">
|
|
84
|
+
<label class="font_normal_body">报建性质:</label>
|
|
85
|
+
<v-select
|
|
86
|
+
v-model="model.f_apply_nature"
|
|
87
|
+
placeholder='报建性质'
|
|
88
|
+
condition="f_apply_nature = '{}'"
|
|
89
|
+
:value.sync="model.f_apply_nature"
|
|
90
|
+
:options='$parent.$parent.applyNatures'
|
|
91
|
+
class="select select_list"
|
|
92
|
+
:value-single="true"
|
|
93
|
+
close-on-select ></v-select>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="form-group col-sm-2">
|
|
96
|
+
<label class="font_normal_body">用户分类:</label>
|
|
97
|
+
<v-select
|
|
98
|
+
v-model="model.f_user_classification"
|
|
99
|
+
placeholder='用户分类'
|
|
100
|
+
condition="f_user_classification = '{}'"
|
|
101
|
+
:value.sync="model.f_user_classification"
|
|
102
|
+
:options='$parent.$parent.UserList'
|
|
103
|
+
class="select select_list"
|
|
104
|
+
:value-single="true"
|
|
105
|
+
close-on-select ></v-select>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="form-group col-sm-2">
|
|
108
|
+
<label class="font_normal_body">用户类型:</label>
|
|
109
|
+
<v-select
|
|
110
|
+
v-model="model.f_user_type"
|
|
111
|
+
placeholder='普通/煤改'
|
|
112
|
+
condition="f_user_type = '{}'"
|
|
113
|
+
:value.sync="model.f_user_type"
|
|
114
|
+
:options='$parent.$parent.UserType'
|
|
115
|
+
class="select select_list"
|
|
116
|
+
:value-single="true"
|
|
117
|
+
close-on-select ></v-select>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="form-group col-sm-2">
|
|
120
|
+
<label class="font_normal_body">设计人员:</label>
|
|
121
|
+
<v-select class="select select_list"
|
|
122
|
+
placeholder='设计人员'
|
|
123
|
+
v-model="model.f_designer_people"
|
|
124
|
+
:value.sync="model.f_designer_people"
|
|
125
|
+
:options='$parent.$parent.designerPeoples'
|
|
126
|
+
:value-single="true"
|
|
127
|
+
close-on-select
|
|
128
|
+
condition="f_designer_people = '{}'">
|
|
129
|
+
</v-select>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="form-group col-sm-2">
|
|
132
|
+
<label class="font_normal_body">用户地址:</label>
|
|
133
|
+
<input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
|
|
134
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
135
|
+
condition="f_address like '%{}%'">
|
|
136
|
+
</div>
|
|
137
|
+
<!-- <div class="form-group col-sm-2">-->
|
|
138
|
+
<!-- <label class="font_normal_body">日期类型:</label>-->
|
|
139
|
+
<!-- <v-select class="select select_list"-->
|
|
140
|
+
<!-- placeholder='日期类型'-->
|
|
141
|
+
<!-- v-model="model.f_date_type"-->
|
|
142
|
+
<!-- :value.sync="model.f_date_type"-->
|
|
143
|
+
<!-- :options='$parent.$parent.dateType'-->
|
|
144
|
+
<!-- :value-single="true"-->
|
|
145
|
+
<!-- @change="$parent.$parent.updateDateType()"-->
|
|
146
|
+
<!-- close-on-select>-->
|
|
147
|
+
<!-- </v-select>-->
|
|
148
|
+
<!-- </div>-->
|
|
149
|
+
<div class="form-group col-sm-2">
|
|
150
|
+
<label for="startDate" class="font_normal_body">开始时间:</label>
|
|
151
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
152
|
+
style="width: 60%!important;"
|
|
153
|
+
v-model="model.startDate"
|
|
154
|
+
:value.sync="model.startDate"
|
|
155
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
156
|
+
:show-reset-button="true"
|
|
157
|
+
condition="sendtime >= '{}'">
|
|
158
|
+
</datepicker>
|
|
159
|
+
</div>
|
|
160
|
+
<div class="form-group col-sm-2">
|
|
161
|
+
<label for="endDate" class="font_normal_body">结束时间:</label>
|
|
162
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
163
|
+
style="width: 60%!important;"
|
|
164
|
+
v-model="model.endDate"
|
|
165
|
+
:value.sync="model.endDate"
|
|
166
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
167
|
+
:show-reset-button="true"
|
|
168
|
+
condition="sendtime <= '{}'">
|
|
169
|
+
</datepicker>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="form-group col-sm-2">
|
|
172
|
+
<label class="font_normal_body">来  源:</label>
|
|
173
|
+
<v-select
|
|
174
|
+
v-model="model.f_apply_source"
|
|
175
|
+
placeholder='来源'
|
|
176
|
+
condition="u.f_apply_source = '{}'"
|
|
177
|
+
:value.sync="model.f_apply_source"
|
|
178
|
+
:options='$parent.$parent.sources'
|
|
179
|
+
class="select select_list"
|
|
180
|
+
:value-single="true"
|
|
181
|
+
close-on-select >
|
|
182
|
+
</v-select>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="form-group col-sm-2">
|
|
185
|
+
<label class="font_normal_body">保存状态:</label>
|
|
186
|
+
<v-select
|
|
187
|
+
v-model="model.f_sub_save_state"
|
|
188
|
+
placeholder='保存状态'
|
|
189
|
+
condition="u.f_sub_save_state = '{}'"
|
|
190
|
+
:value.sync="model.f_sub_save_state"
|
|
191
|
+
:options='$parent.$parent.save_states'
|
|
192
|
+
class="select select_list"
|
|
193
|
+
:value-single="true"
|
|
194
|
+
close-on-select >
|
|
195
|
+
</v-select>
|
|
196
|
+
</div>
|
|
197
|
+
<div class="form-group col-sm-2">
|
|
198
|
+
<label class="font_normal_body">新旧报建:</label>
|
|
199
|
+
<v-select
|
|
200
|
+
v-model="model.f_house_type"
|
|
201
|
+
placeholder='新旧报建'
|
|
202
|
+
condition="u.f_house_type {}"
|
|
203
|
+
:value.sync="model.f_house_type"
|
|
204
|
+
:options='$parent.$parent.houseType'
|
|
205
|
+
class="select select_list"
|
|
206
|
+
:value-single="true"
|
|
207
|
+
close-on-select >
|
|
208
|
+
</v-select>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
</criteria>
|
|
213
|
+
<data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
|
|
214
|
+
<template partial='head'>
|
|
215
|
+
<tr>
|
|
216
|
+
<th style="white-space: nowrap;">序号</th>
|
|
217
|
+
<th style="white-space: nowrap;">完成状态</th>
|
|
218
|
+
<th style="white-space: nowrap;">工程编号</th>
|
|
219
|
+
<th style="white-space: nowrap;">客户名称</th>
|
|
220
|
+
<th style="white-space: nowrap;">联系人</th>
|
|
221
|
+
<th style="white-space: nowrap;">电话</th>
|
|
222
|
+
<th style="white-space: nowrap;">地址</th>
|
|
223
|
+
<th style="white-space: nowrap;">合同编号</th>
|
|
224
|
+
<th style="white-space: nowrap;">报建类型</th>
|
|
225
|
+
<th style="white-space: nowrap;">报建性质</th>
|
|
226
|
+
<th style="white-space: nowrap;">用户类型</th>
|
|
227
|
+
<th style="white-space: nowrap;">办理环节</th>
|
|
228
|
+
<th style="white-space: nowrap;">安装户数</th>
|
|
229
|
+
<th style="white-space: nowrap;">设计人员</th>
|
|
230
|
+
<th style="white-space: nowrap;">来源</th>
|
|
231
|
+
<th style="white-space: nowrap;">流程状态</th>
|
|
232
|
+
<th style="white-space: nowrap;">流程开始时间</th>
|
|
233
|
+
</tr>
|
|
234
|
+
</template>
|
|
235
|
+
<template partial='body'>
|
|
236
|
+
<tr >
|
|
237
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
238
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
239
|
+
</td>
|
|
240
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
241
|
+
<nobr><font>{{row.f_sub_save_state}}</font></nobr>
|
|
242
|
+
</td>
|
|
243
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
244
|
+
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
245
|
+
</td>
|
|
246
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
247
|
+
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
248
|
+
</td>
|
|
249
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
250
|
+
<nobr><font>{{row.f_contact}}</font></nobr>
|
|
251
|
+
</td>
|
|
252
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
253
|
+
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
254
|
+
</td>
|
|
255
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
256
|
+
<nobr><font>{{row.f_address}}</font></nobr>
|
|
257
|
+
</td>
|
|
258
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
259
|
+
<nobr><font>{{row.f_contract_number}}</font></nobr>
|
|
260
|
+
</td>
|
|
261
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
262
|
+
<nobr><font>{{row.f_apply_type}}</font></nobr>
|
|
263
|
+
</td>
|
|
264
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
265
|
+
<nobr><font>{{row.f_apply_nature}}</font></nobr>
|
|
266
|
+
</td>
|
|
267
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
268
|
+
<nobr><font>{{row.f_user_type}}</font></nobr>
|
|
269
|
+
</td>
|
|
270
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
271
|
+
<nobr><font>{{row.defname}}</font></nobr>
|
|
272
|
+
</td>
|
|
273
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
274
|
+
<nobr><font>{{row.f_install_count}}</font></nobr>
|
|
275
|
+
</td>
|
|
276
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
277
|
+
<nobr><font>{{row.f_designer_people}}</font></nobr>
|
|
278
|
+
</td>
|
|
279
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
280
|
+
<nobr><font>{{row.f_apply_source}}</font></nobr>
|
|
281
|
+
</td>
|
|
282
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
283
|
+
<nobr><font>{{row.f_sub_state}}</font></nobr>
|
|
284
|
+
</td>
|
|
285
|
+
<td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
286
|
+
<nobr><font>{{row.sendtime}}</font></nobr>
|
|
287
|
+
</td>
|
|
288
|
+
<!-- <td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">-->
|
|
289
|
+
<!-- <dropdown>-->
|
|
290
|
+
<!-- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">-->
|
|
291
|
+
<!-- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>-->
|
|
292
|
+
<!-- </button>-->
|
|
293
|
+
<!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">-->
|
|
294
|
+
<!-- <li>-->
|
|
295
|
+
<!-- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>-->
|
|
296
|
+
<!-- </li>-->
|
|
297
|
+
<!-- </ul>-->
|
|
298
|
+
<!-- </dropdown>-->
|
|
299
|
+
<!-- </td>-->
|
|
300
|
+
</tr>
|
|
301
|
+
</template>
|
|
302
|
+
</data-grid>
|
|
303
|
+
</criteria-paged>
|
|
304
|
+
|
|
305
|
+
<modal
|
|
306
|
+
v-if="showModal"
|
|
307
|
+
:show.sync="showModal"
|
|
308
|
+
backdrop="false"
|
|
309
|
+
title="工程类型"
|
|
310
|
+
cancel-text="取消"
|
|
311
|
+
ok-text="确认"
|
|
312
|
+
:callback="apply"
|
|
313
|
+
>
|
|
314
|
+
<div class="form-horizontal" slot="modal-body">
|
|
315
|
+
<div class="form-group" style="margin: 10px auto">
|
|
316
|
+
<label class="col-sm-3 control-label">报建类型:</label>
|
|
317
|
+
<div class="col-sm-9">
|
|
318
|
+
<v-select
|
|
319
|
+
v-model="applyType"
|
|
320
|
+
placeholder='请选择需要发起的工程类型'
|
|
321
|
+
:value.sync="applyType"
|
|
322
|
+
:options='$appdata.getParam("报建类型")'
|
|
323
|
+
:value-single="true"
|
|
324
|
+
class="select select_list"
|
|
325
|
+
:search="false"
|
|
326
|
+
close-on-select ></v-select>
|
|
327
|
+
</div>
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
</modal>
|
|
331
|
+
</div>
|
|
332
|
+
</template>
|
|
333
|
+
<script>
|
|
334
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
335
|
+
import {isEmpty} from '../../Util'
|
|
336
|
+
|
|
337
|
+
export default {
|
|
338
|
+
title: '工程列表',
|
|
339
|
+
props: ['showData'],
|
|
340
|
+
data () {
|
|
341
|
+
return {
|
|
342
|
+
model: new PagedList('rs/sql/checkuser', 20, {
|
|
343
|
+
data: {
|
|
344
|
+
userid: this.$login.f.id,
|
|
345
|
+
f_filiale: "榆林."+this.$login.f.orgs
|
|
346
|
+
}
|
|
347
|
+
}),
|
|
348
|
+
// showModal: false, // 控制发起类型选择
|
|
349
|
+
// applyType: '', // 报建类型
|
|
350
|
+
// applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
|
|
351
|
+
// defnames: isEmpty(this.$appdata.getParam('办理环节')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
|
|
352
|
+
// applyNatures: [{label: '全部', value: ''},{label: '工业', value: '工业'},{label: '商业', value: '商业'},{label: '散户', value: '散户'},{label: '小区', value: '小区'},{label: '分户挂表', value: '分户挂表'}], // 报建性质
|
|
353
|
+
// save_states: [{label: '全部', value: ''},{label: '已完成', value: '已完成'},{label: '已退回', value: '已退回'}], // 报建性质
|
|
354
|
+
// designerPeoples: this.getDesigner(),
|
|
355
|
+
// UserList:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户分类')],
|
|
356
|
+
// UserType:[{label: '全部', value: ''}, {label: '普通用户', value: '普通用户'}, {label: '煤改用户', value: '煤改用户'}],
|
|
357
|
+
// houseType:[{label: '全部', value: ''}, {label: '旧报建', value: ` = '旧报建导入'`}, {label: '新报建', value: ' is null' }],
|
|
358
|
+
// // dateType: [{label: '默认', value: ''}, ...this.$appdata.getParam('日期类型')],
|
|
359
|
+
// criteriaShow: false,
|
|
360
|
+
// sources:[{label: '微信公众号', value: '微信公众号'},{label: '线下发起', value: '线下发起'}],
|
|
361
|
+
// getfield: {
|
|
362
|
+
// 'f_apply_num': ' 工 程 编 号 ',
|
|
363
|
+
// 'f_user_name': ' 客 户 名 称 ',
|
|
364
|
+
// 'f_contact': ' 联 系 人 ',
|
|
365
|
+
// 'f_phone': ' 电 话 ',
|
|
366
|
+
// 'f_user_type': ' 用户类型 ',
|
|
367
|
+
// 'f_user_classification': ' 用户分类 ',
|
|
368
|
+
// 'f_address': ' 地 址 ',
|
|
369
|
+
// 'f_apply_type': ' 报 建 类 型 ',
|
|
370
|
+
// 'f_apply_nature': ' 报 建 性 质 ',
|
|
371
|
+
// 'defname': ' 办 理 环 节 ',
|
|
372
|
+
// 'f_install_count': ' 安装户数 ',
|
|
373
|
+
// 'f_designer_people':' 设计人员 ',
|
|
374
|
+
// 'f_construction_name':' 安 装 单 位 '
|
|
375
|
+
// }
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
ready () {
|
|
379
|
+
// 调用查询
|
|
380
|
+
// if (this.showData){
|
|
381
|
+
// this.search()
|
|
382
|
+
// }
|
|
383
|
+
this.$refs.cp.pager = false
|
|
384
|
+
},
|
|
385
|
+
methods: {
|
|
386
|
+
// 点击操作
|
|
387
|
+
click (val) {
|
|
388
|
+
this.$dispatch('apply', val)
|
|
389
|
+
},
|
|
390
|
+
// 获取流程id
|
|
391
|
+
async getProcessId(processname) {
|
|
392
|
+
let data = {
|
|
393
|
+
workname: processname
|
|
394
|
+
}
|
|
395
|
+
let http = new HttpResetClass()
|
|
396
|
+
let res = await http.load(
|
|
397
|
+
'POST',
|
|
398
|
+
'rs/logic/getProcessId',
|
|
399
|
+
{data: data},
|
|
400
|
+
{resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
return res.data
|
|
404
|
+
},
|
|
405
|
+
// 报装申请
|
|
406
|
+
async apply () {
|
|
407
|
+
if (this.applyType === '' || this.applyType === null) {
|
|
408
|
+
this.$showMessage('请选择需要发起的类型')
|
|
409
|
+
return
|
|
410
|
+
}
|
|
411
|
+
let data = {
|
|
412
|
+
f_apply_type: this.applyType
|
|
413
|
+
}
|
|
414
|
+
if (this.getLoginDepartment){
|
|
415
|
+
if (this.applyType === '民用报建') {
|
|
416
|
+
data.processname = '民用报建流程'
|
|
417
|
+
data.defname = '报装申请'
|
|
418
|
+
} else if (this.applyType === '非民用报建') {
|
|
419
|
+
data.processname = '非民用报建流程'
|
|
420
|
+
data.defname = '报装申请'
|
|
421
|
+
} else if (this.applyType === '分户挂表') {
|
|
422
|
+
data.processname = '分户挂表报建流程'
|
|
423
|
+
data.defname = '报装申请'
|
|
424
|
+
} else if (this.applyType === '设备变更') {
|
|
425
|
+
data.processname = '设备变更流程'
|
|
426
|
+
data.defname = '报装申请'
|
|
427
|
+
} else if (this.applyType === '设备拆除') {
|
|
428
|
+
data.processname = '设备拆除流程'
|
|
429
|
+
data.defname = '报建受理'
|
|
430
|
+
} else {
|
|
431
|
+
this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
|
|
432
|
+
return
|
|
433
|
+
}
|
|
434
|
+
}else if (this.$login.f.rolesnames.includes('工程部派工')){
|
|
435
|
+
if (this.applyType === '改线业务') {
|
|
436
|
+
data.processname = '改线业务流程'
|
|
437
|
+
data.defname = '报装申请'
|
|
438
|
+
} else {
|
|
439
|
+
this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
|
|
440
|
+
return
|
|
441
|
+
}
|
|
442
|
+
} else {
|
|
443
|
+
this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
|
|
444
|
+
return
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
data.f_sub_state = "新增"
|
|
448
|
+
data.f_apply_source = "线下发起"
|
|
449
|
+
data.f_process_id = await this.getProcessId(data.processname)
|
|
450
|
+
|
|
451
|
+
// 调用ExplorationUser事件
|
|
452
|
+
this.$dispatch('apply', data)
|
|
453
|
+
|
|
454
|
+
this.applyType = null
|
|
455
|
+
this.showModal = false
|
|
456
|
+
},
|
|
457
|
+
loadPage () {
|
|
458
|
+
this.$dispatch('loadPage')
|
|
459
|
+
},
|
|
460
|
+
searchCondition (args) {
|
|
461
|
+
args.condition = args.condition
|
|
462
|
+
if (args.condition.includes('民用报建')) {
|
|
463
|
+
args.condition = args.condition.replace('f_apply_type = \'民用报建\'', '(f_apply_type = \'民用报建\' or f_apply_type = \'分户挂表\')');
|
|
464
|
+
}
|
|
465
|
+
// if (this.$login.f.rolesnames.includes('工程队派工')){
|
|
466
|
+
// args.condition = args.condition + ` and ((f_construction_unit = ${this.$login.f.id} and act.defname = '工程队派工' )or act.defname <> '工程队派工')`
|
|
467
|
+
// }
|
|
468
|
+
console.log("args.condition",args.condition)
|
|
469
|
+
// this.model.search(args.condition, args.model)
|
|
470
|
+
|
|
471
|
+
console.log("当前数据",this.model)
|
|
472
|
+
},
|
|
473
|
+
search () {
|
|
474
|
+
this.$dispatch('search')
|
|
475
|
+
},
|
|
476
|
+
async applyTypeChange () {
|
|
477
|
+
|
|
478
|
+
if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
|
|
479
|
+
let http = new HttpResetClass()
|
|
480
|
+
let res = await http.load('POST', 'rs/logic/getDefnameByType', {
|
|
481
|
+
f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type},
|
|
482
|
+
{resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
|
|
483
|
+
)
|
|
484
|
+
this.defnames = [{label: '全部', value: ''}, ...res.data]
|
|
485
|
+
|
|
486
|
+
// this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
|
|
487
|
+
} else {
|
|
488
|
+
this.defnames = isEmpty(this.$appdata.getParam('办理环节')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')]
|
|
489
|
+
|
|
490
|
+
// this.applyNatures = isEmpty(this.$appdata.getParam('报建性质')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('报建性质')] // 报建性质
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
async getDesigner() {
|
|
494
|
+
let data = {
|
|
495
|
+
source: 'this.getParentByType($organization$).getChildByName($设计人员$).getChildren()',
|
|
496
|
+
userid: this.$login.f.id
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
let res = await this.$resetpost(
|
|
500
|
+
'rs/search',
|
|
501
|
+
{data: data},
|
|
502
|
+
{resolveMsg: null, rejectMsg: '设计人员人员查询失败!!!'}
|
|
503
|
+
)
|
|
504
|
+
console.log("ces",res.data.map(item => {
|
|
505
|
+
return {
|
|
506
|
+
label: item.name,
|
|
507
|
+
value: item.name
|
|
508
|
+
}
|
|
509
|
+
}))
|
|
510
|
+
this.designerPeoples = res.data.map(item => {
|
|
511
|
+
return {
|
|
512
|
+
label: item.name,
|
|
513
|
+
value: item.name
|
|
514
|
+
}
|
|
515
|
+
})
|
|
516
|
+
},
|
|
517
|
+
clear () {
|
|
518
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
519
|
+
this.$refs.cp.$refs.cri.model[key] = null
|
|
520
|
+
this.$refs.cp.$refs.cri.model.f_apply_type = []
|
|
521
|
+
})
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
computed: {
|
|
525
|
+
projectStart () {
|
|
526
|
+
return this.$login.r.includes('报建发起')
|
|
527
|
+
},
|
|
528
|
+
getLoginDepartment(){
|
|
529
|
+
return this.$login.f.rolesnames.includes('市场部报装')
|
|
530
|
+
},
|
|
531
|
+
getCondition () {
|
|
532
|
+
return {
|
|
533
|
+
condition: this.$refs.cp.$refs.cri.condition,
|
|
534
|
+
data: {
|
|
535
|
+
userid: this.$login.f.id,
|
|
536
|
+
f_filiale: "榆林."+this.$login.f.orgs
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
watch: {
|
|
542
|
+
// 'model.rows': {
|
|
543
|
+
// handler: function () {
|
|
544
|
+
// let isover = [] // 过期(超时)数据
|
|
545
|
+
// let isbeforeover = [] // 未过期 提前提醒
|
|
546
|
+
// for (let i = 0; i < this.model.rows.length; i++) {
|
|
547
|
+
// let item = this.model.rows[i]
|
|
548
|
+
// if (item.isover === '过期') {
|
|
549
|
+
// isover.push(i + 1)
|
|
550
|
+
// }
|
|
551
|
+
// if (item.isbeforeover === '预期提醒') {
|
|
552
|
+
// isbeforeover.push(i + 1)
|
|
553
|
+
// }
|
|
554
|
+
// }
|
|
555
|
+
// let msg = null
|
|
556
|
+
// if (isover.length > 0) {
|
|
557
|
+
// msg = `第${isover.toString()}条数据已过期`
|
|
558
|
+
// this.$showAlert(msg, 'warning', 3000)
|
|
559
|
+
// }
|
|
560
|
+
//
|
|
561
|
+
// if (isbeforeover.length > 0) {
|
|
562
|
+
// msg = `第${isbeforeover.toString()}条数据即将过期`
|
|
563
|
+
// if (isover.length > 0) {
|
|
564
|
+
// setTimeout(() => {
|
|
565
|
+
// this.$showAlert(msg, 'warning', 3000)
|
|
566
|
+
// }, 4000)
|
|
567
|
+
// } else {
|
|
568
|
+
// this.$showAlert(msg, 'warning', 3000)
|
|
569
|
+
// }
|
|
570
|
+
// }
|
|
571
|
+
// }
|
|
572
|
+
// }
|
|
573
|
+
},
|
|
574
|
+
events: {
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
</script>
|
|
578
|
+
<style scoped>
|
|
579
|
+
|
|
580
|
+
.p1 {
|
|
581
|
+
color: #dc0b12;
|
|
582
|
+
font-weight:bold
|
|
583
|
+
}
|
|
584
|
+
.p {
|
|
585
|
+
color: #ffaf4f;
|
|
586
|
+
}
|
|
587
|
+
</style>
|