apply-clients 3.3.216 → 3.4.1
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/android.html +23 -23
- package/index.html +33 -33
- package/package.json +3 -3
- package/src/AndroidApp.vue +35 -30
- package/src/App.vue +20 -20
- package/src/android.js +21 -21
- package/src/apply.js +81 -90
- package/src/applyAndroid.js +1 -23
- package/src/components/android/AppOnetomany.vue +301 -285
- package/src/components/android/AppServiceView.vue +566 -570
- package/src/components/android/AppSign.vue +142 -142
- package/src/components/android/AppTakePic.vue +143 -144
- package/src/components/android/Process/AppExplorationUser.vue +320 -270
- package/src/components/android/Process/AppServiceControl.vue +757 -686
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -466
- package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
- package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -115
- package/src/components/android/TaskGraph.vue +125 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
- package/src/components/product/Function/InstallFunction.vue +125 -122
- package/src/components/product/Function/InstallInfoSelect.vue +292 -318
- package/src/components/product/Function/Service/FunctionServiceControl.vue +222 -254
- package/src/components/product/Function/StopApplyCrrdList.vue +176 -0
- package/src/components/product/Function/functions/ApplyRecordCancel.vue +102 -0
- package/src/components/product/Function/functions/StopInstall.vue +106 -0
- package/src/components/product/Onetomany.vue +377 -296
- package/src/components/product/Order/OrderApply.vue +30 -30
- package/src/components/product/Order/OrderApplyList.vue +78 -67
- package/src/components/product/Order/OrderMessage.vue +11 -87
- package/src/components/product/Process/ExplorationSelect.vue +410 -369
- package/src/components/product/Process/ExplorationUser.vue +138 -128
- package/src/components/product/Process/Processes/InstallationDetails.vue +592 -504
- package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
- package/src/components/product/Process/Processes/Print/printCharge.vue +142 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -181
- package/src/components/product/Process/Processes/chargeManagement.vue +639 -638
- package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
- package/src/components/product/Process/Processes/selectApply.vue +1 -1
- package/src/components/product/Process/Service/ServiceControl.vue +1254 -883
- package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
- package/src/components/product/ServiceView.vue +631 -741
- package/src/components/product/Stop/StopApply.vue +103 -103
- package/src/components/product/Stop/StopApplyList.vue +269 -254
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -517
- package/src/components/product/Supervisory/SupervisoryControl.vue +100 -108
- package/src/components/product/Supervisory/SupervisoryList.vue +233 -253
- package/src/components/product/Supervisory/SupervisoryhCart.vue +107 -124
- package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
- package/src/components/product/VueUtils/HighMeter.vue +208 -0
- package/src/expandcssAndroid.less +1034 -517
- package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +548 -414
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +754 -456
- package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -0
- package/src/filiale/yuchuan/android.js +7 -8
- package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -517
- package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
- package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +270 -231
- package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +147 -131
- package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +66 -0
- package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +759 -0
- package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +470 -0
- package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +879 -517
- package/src/filiale/yuchuan/pc.js +11 -13
- package/src/main.js +23 -23
- package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
- package/src/components/android/Function/AppInstallFunction.vue +0 -330
- package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
- package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
- package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
- package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
- package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
- package/src/components/image/dwg.jpg +0 -0
- package/src/components/image/yasuobao.jpg +0 -0
- package/src/components/product/Function/Inform.vue +0 -73
- package/src/components/product/Function/MarketSurvey.vue +0 -81
- package/src/components/product/Process/Processes/printCharge.vue +0 -121
- package/src/components/product/Process/ShowBackReason.vue +0 -33
- package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
- package/src/components/product/VueUtils/ToolsPage.vue +0 -51
- package/src/components/product/VueUtils/Tree.vue +0 -330
- package/src/filiale/wuan/android.js +0 -0
- package/src/filiale/wuan/pc.js +0 -4
- package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
- package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
- package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
- package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<work-busy :is-busy="showWork" v-show="showWork"></work-busy>
|
|
3
|
+
|
|
4
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
5
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
</div>
|
|
9
|
+
</criteria>
|
|
10
|
+
<data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
|
|
11
|
+
<template partial='head'>
|
|
12
|
+
<tr>
|
|
13
|
+
<th>序号</th>
|
|
14
|
+
<th>客户编号</th>
|
|
15
|
+
<th>客户名称</th>
|
|
16
|
+
<th>客户电话</th>
|
|
17
|
+
<th>地址信息</th>
|
|
18
|
+
<th>表具数量</th>
|
|
19
|
+
<th>
|
|
20
|
+
<button
|
|
21
|
+
type="button"
|
|
22
|
+
class="btn btn-info head-but"
|
|
23
|
+
@click="$parent.$parent.$parent.showUserFileModal()"
|
|
24
|
+
:disabled="$parent.$parent.mark === 1"
|
|
25
|
+
>添加用户</button>
|
|
26
|
+
</th>
|
|
27
|
+
</tr>
|
|
28
|
+
</template>
|
|
29
|
+
<template partial='body'>
|
|
30
|
+
<tr>
|
|
31
|
+
<td style="text-align: center;">
|
|
32
|
+
<nobr>{{$index+1}}</nobr>
|
|
33
|
+
</td>
|
|
34
|
+
<td style="text-align: center;">
|
|
35
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
36
|
+
</td>
|
|
37
|
+
<td style="text-align: center;">
|
|
38
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
39
|
+
</td>
|
|
40
|
+
<td style="text-align: center;">
|
|
41
|
+
<nobr>{{row.f_user_phone}}</nobr>
|
|
42
|
+
</td>
|
|
43
|
+
<td style="text-align: center;">
|
|
44
|
+
<nobr>{{row.f_address}}</nobr>
|
|
45
|
+
</td>
|
|
46
|
+
<td style="text-align: center;">
|
|
47
|
+
<nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
|
|
48
|
+
</td>
|
|
49
|
+
<td style="text-align: center;">
|
|
50
|
+
<nobr>
|
|
51
|
+
<button
|
|
52
|
+
v-if="false"
|
|
53
|
+
type="button" name="button" class="btn btn-link"
|
|
54
|
+
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
55
|
+
{{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
56
|
+
</button>
|
|
57
|
+
</nobr>
|
|
58
|
+
</td>
|
|
59
|
+
</tr>
|
|
60
|
+
</template>
|
|
61
|
+
</data-grid>
|
|
62
|
+
</criteria-paged>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<validator name="v">
|
|
66
|
+
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false">
|
|
67
|
+
<header slot="modal-header" class="modal-header">
|
|
68
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
69
|
+
<h4 class="modal-title">安装明细</h4>
|
|
70
|
+
</header>
|
|
71
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
72
|
+
<!-- 基本信息 -->
|
|
73
|
+
<div class="form-group col-sm-12 panel panel-info">
|
|
74
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
75
|
+
<div class="col-sm-6 text-left">用户信息</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="form-group col-sm-6">
|
|
78
|
+
<label class="col-sm-4 control-label">客户名称:</label>
|
|
79
|
+
<div class="col-sm-8">
|
|
80
|
+
<input class="form-control input_view" style=""
|
|
81
|
+
v-model="userinfo.f_user_name"
|
|
82
|
+
:value.sync="serinfo.f_user_name"
|
|
83
|
+
:readonly="mark === 1"
|
|
84
|
+
placeholder="客户名称"/>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="form-group col-sm-6">
|
|
88
|
+
<label class="col-sm-4 control-label">客户电话:</label>
|
|
89
|
+
<div class="col-sm-8">
|
|
90
|
+
<input class="form-control input_view" style=""
|
|
91
|
+
v-model="userinfo.f_user_phone"
|
|
92
|
+
:value.sync="userinfo.f_user_phone"
|
|
93
|
+
:readonly="mark === 1"
|
|
94
|
+
placeholder="客户电话"/>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="form-group col-sm-6">
|
|
98
|
+
<label class="col-sm-4 control-label">证件类型:</label>
|
|
99
|
+
<div class="col-sm-8">
|
|
100
|
+
<input-select
|
|
101
|
+
class="select select_list"
|
|
102
|
+
:value.sync="userinfo.f_credentials"
|
|
103
|
+
v-model="userinfo.f_credentials"
|
|
104
|
+
:options="credentialsList"
|
|
105
|
+
:disable="mark === 1"
|
|
106
|
+
:valueSingle="true"></input-select>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="form-group col-sm-6">
|
|
110
|
+
<label class="col-sm-4 control-label">证件号码:</label>
|
|
111
|
+
<div class="col-sm-8">
|
|
112
|
+
<input class="form-control input_view" style=""
|
|
113
|
+
placeholder="证件号码"
|
|
114
|
+
v-model="userinfo.f_idnumber"
|
|
115
|
+
:value="userinfo.f_idnumber"
|
|
116
|
+
:readonly="mark === 1"/>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<!-- 地址信息 -->
|
|
121
|
+
<div class="form-group col-sm-12 panel panel-info">
|
|
122
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
123
|
+
<div class="col-sm-6 text-left">地址信息</div>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="form-group col-sm-6" :class="[$v.f_address_type.required ? 'has-error' : '']">
|
|
126
|
+
<label class="col-sm-4 control-label">地址类型:</label>
|
|
127
|
+
<div class="col-sm-8">
|
|
128
|
+
<input type="text" v-show="false" v-model="useradders.f_address_type" :value.sync="useradders.f_address_type" v-validate:f_address_type = "['required']" >
|
|
129
|
+
<input-select
|
|
130
|
+
class="select select_list"
|
|
131
|
+
:value.sync="useradders.f_address_type"
|
|
132
|
+
v-model="useradders.f_address_type"
|
|
133
|
+
:options="addressTypeList"
|
|
134
|
+
:disable="mark === 1"
|
|
135
|
+
:valueSingle="true"></input-select>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="form-group col-sm-6" :class="[$v.f_slice_area.required ? 'has-error' : '']">
|
|
139
|
+
<label class="col-sm-4 control-label">片  区:</label>
|
|
140
|
+
<div class="col-sm-8">
|
|
141
|
+
<input type="text" v-show="false" v-model="useradders.f_slice_area" v-validate:f_slice_area = "['required']" >
|
|
142
|
+
<input-select
|
|
143
|
+
class="select select_list"
|
|
144
|
+
:value.sync="useradders.f_slice_area"
|
|
145
|
+
v-model="useradders.f_slice_area"
|
|
146
|
+
:options="sliceAreaList"
|
|
147
|
+
:disable="mark === 1"
|
|
148
|
+
:valueSingle="true"></input-select>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="form-group col-sm-6" :class="[$v.f_pcd.required ? 'has-error' : '']">
|
|
152
|
+
<label class="col-sm-4 control-label">省 市 区:</label>
|
|
153
|
+
<div class="col-sm-8">
|
|
154
|
+
<input type="text" v-show="false" v-model="useradders.f_pcd" :value.sync="useradders.f_pcd" v-validate:f_pcd = "['required']" >
|
|
155
|
+
<input-select
|
|
156
|
+
class="select select_list"
|
|
157
|
+
:value.sync="useradders.f_pcd"
|
|
158
|
+
v-model="useradders.f_pcd"
|
|
159
|
+
:options="pcdList"
|
|
160
|
+
@change="pcdChange(),addressSplicing()"
|
|
161
|
+
:disable="mark === 1"
|
|
162
|
+
:valueSingle="true"></input-select>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="form-group col-sm-6" :class="[$v.f_street.required ? 'has-error' : '']">
|
|
166
|
+
<label class="col-sm-4 control-label">街  道:</label>
|
|
167
|
+
<div class="col-sm-8">
|
|
168
|
+
<input type="text" v-show="false" v-model="useradders.f_street" :value.sync="useradders.f_street" v-validate:f_street = "['required']" >
|
|
169
|
+
<input-select
|
|
170
|
+
class="select select_list"
|
|
171
|
+
:value.sync="useradders.f_street"
|
|
172
|
+
v-model="useradders.f_street"
|
|
173
|
+
:options="streetList"
|
|
174
|
+
@change="streetChange(),addressSplicing()"
|
|
175
|
+
:disable="mark === 1"
|
|
176
|
+
:valueSingle="true"></input-select>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'" :class="[$v.f_residential_area.required ? 'has-error' : '']">
|
|
180
|
+
<label class="col-sm-4 control-label">小  区:</label>
|
|
181
|
+
<div class="col-sm-8">
|
|
182
|
+
<input type="text" v-show="false" v-model="useradders.f_residential_area" :value.sync="useradders.f_residential_area" v-validate:f_residential_area = "['required']" >
|
|
183
|
+
<input-select
|
|
184
|
+
class="select select_list"
|
|
185
|
+
:value.sync="useradders.f_residential_area"
|
|
186
|
+
v-model="useradders.f_residential_area"
|
|
187
|
+
:options="residentialList"
|
|
188
|
+
@change="addressSplicing"
|
|
189
|
+
:disable="mark === 1"
|
|
190
|
+
:valueSingle="true"></input-select>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="form-group col-sm-6" v-if="useradders.f_address_type === '特殊地址'">
|
|
194
|
+
<label class="col-sm-4 control-label">小  区:</label>
|
|
195
|
+
<div class="col-sm-8">
|
|
196
|
+
<input-select
|
|
197
|
+
class="select select_list"
|
|
198
|
+
:value.sync="useradders.f_residential_area"
|
|
199
|
+
v-model="useradders.f_residential_area"
|
|
200
|
+
:options="residentialList"
|
|
201
|
+
@change="addressSplicing"
|
|
202
|
+
:disable="mark === 1"
|
|
203
|
+
:valueSingle="true"></input-select>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
<div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
|
|
207
|
+
<label class="col-sm-4 control-label">楼  号:</label>
|
|
208
|
+
<div class="col-sm-8">
|
|
209
|
+
<input class="form-control input_view col-sm-10" style="width: 80%"
|
|
210
|
+
placeholder="楼号"
|
|
211
|
+
v-model="useradders.f_building"
|
|
212
|
+
:value="useradders.f_building"
|
|
213
|
+
@change="addressSplicing"
|
|
214
|
+
:readonly="mark === 1"/>
|
|
215
|
+
<input class="form-control input_view col-sm-2" style="width: 20%"
|
|
216
|
+
v-model="useradders.f_building_suffix"
|
|
217
|
+
:value="useradders.f_building_suffix"
|
|
218
|
+
@change="addressSplicing"
|
|
219
|
+
:readonly="mark === 1"/>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
<div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
|
|
223
|
+
<label class="col-sm-4 control-label">单  元:</label>
|
|
224
|
+
<div class="col-sm-8">
|
|
225
|
+
<input class="form-control input_view col-sm-10" style="width: 80%"
|
|
226
|
+
placeholder="单元"
|
|
227
|
+
v-model="useradders.f_unit"
|
|
228
|
+
:value="useradders.f_unit"
|
|
229
|
+
@change="addressSplicing"
|
|
230
|
+
:readonly="mark === 1"/>
|
|
231
|
+
<input class="form-control input_view col-sm-2" style="width: 20%"
|
|
232
|
+
v-model="useradders.f_unit_suffix"
|
|
233
|
+
:value="useradders.f_unit_suffix"
|
|
234
|
+
@change="addressSplicing"
|
|
235
|
+
:readonly="mark === 1"/>
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
<div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
|
|
239
|
+
<label class="col-sm-4 control-label">楼  层:</label>
|
|
240
|
+
<div class="col-sm-8">
|
|
241
|
+
<input class="form-control input_view col-sm-10" style="width: 80%"
|
|
242
|
+
placeholder="楼层"
|
|
243
|
+
v-model="useradders.f_floor"
|
|
244
|
+
:value="useradders.f_floor"
|
|
245
|
+
@change="addressSplicing"
|
|
246
|
+
:readonly="mark === 1"/>
|
|
247
|
+
<input class="form-control input_view col-sm-2" style="width: 20%"
|
|
248
|
+
v-model="useradders.f_floor_suffix"
|
|
249
|
+
:value="useradders.f_floor_suffix"
|
|
250
|
+
@change="addressSplicing"
|
|
251
|
+
:readonly="mark === 1"/>
|
|
252
|
+
</div>
|
|
253
|
+
</div>
|
|
254
|
+
<div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'" :class="[$v.f_room.required ? 'has-error' : '']">
|
|
255
|
+
<label class="col-sm-4 control-label">门 牌 号:</label>
|
|
256
|
+
<div class="col-sm-8">
|
|
257
|
+
<input class="form-control input_view col-sm-10" style="width: 80%"
|
|
258
|
+
placeholder="门牌号" v-validate:f_room = "['required']"
|
|
259
|
+
v-model="useradders.f_room"
|
|
260
|
+
:value="useradders.f_room"
|
|
261
|
+
@change="addressSplicing"
|
|
262
|
+
:readonly="mark === 1"/>
|
|
263
|
+
<input class="form-control input_view col-sm-2" style="width: 20%"
|
|
264
|
+
v-model="useradders.f_room_suffix"
|
|
265
|
+
:value="useradders.f_room_suffix"
|
|
266
|
+
@change="addressSplicing"
|
|
267
|
+
:readonly="mark === 1"/>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
<div class="form-group col-sm-12">
|
|
271
|
+
<label class="col-sm-2 control-label">地  址:</label>
|
|
272
|
+
<div class="col-sm-10">
|
|
273
|
+
<input class="form-control input_view"
|
|
274
|
+
placeholder="地址"
|
|
275
|
+
v-model="useradders.f_address"
|
|
276
|
+
:value.sync="useradders.f_address"
|
|
277
|
+
:readonly="mark === 1"/>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
<!-- 表具信息 -->
|
|
282
|
+
<div class="form-group col-sm-12 panel panel-info">
|
|
283
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
284
|
+
<div class="col-sm-6 text-left">表具信息</div>
|
|
285
|
+
</div>
|
|
286
|
+
<div class="form-group col-sm-6" :class="[$v.gasbrand.required ? 'has-error' : '']">
|
|
287
|
+
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
288
|
+
<div class="col-sm-8">
|
|
289
|
+
<input type="text" v-show="false" v-model="userfile.gasbrand.id" :value.sync="userfile.gasbrand.id" v-validate:gasbrand = "['required']" >
|
|
290
|
+
<input-select
|
|
291
|
+
class="select select_list"
|
|
292
|
+
:value.sync="userfile.gasbrand"
|
|
293
|
+
v-model="userfile.gasbrand"
|
|
294
|
+
:options="meterbrands"
|
|
295
|
+
@change="gasbrandChange()"
|
|
296
|
+
:disable="mark === 1"
|
|
297
|
+
:valueSingle="true"></input-select>
|
|
298
|
+
</div>
|
|
299
|
+
</div>
|
|
300
|
+
<div class="form-group col-sm-6" :class="[$v.gasmodel.required ? 'has-error' : '']">
|
|
301
|
+
<label class="col-sm-4 control-label">气表型号:</label>
|
|
302
|
+
<div class="col-sm-8">
|
|
303
|
+
<input type="text" v-show="false" v-model="userfile.gasmodel.id" :value.sync="userfile.gasmodel.id" v-validate:gasmodel = "['required']" >
|
|
304
|
+
<input-select
|
|
305
|
+
class="select select_list"
|
|
306
|
+
:value.sync="userfile.gasmodel"
|
|
307
|
+
v-model="userfile.gasmodel"
|
|
308
|
+
:options.sync="userfile.gasbrand.gasmodel"
|
|
309
|
+
@change="gasmodelChange()"
|
|
310
|
+
:disable="mark === 1"
|
|
311
|
+
:valueSingle="true"></input-select>
|
|
312
|
+
</div>
|
|
313
|
+
</div>
|
|
314
|
+
<div class="form-group col-sm-6" :class="[$v.f_meternumber.required ? 'has-error' : '']">
|
|
315
|
+
<label class="col-sm-4 control-label">表  号:</label>
|
|
316
|
+
<div class="col-sm-8">
|
|
317
|
+
<input class="form-control input_view" style=""
|
|
318
|
+
placeholder="表号" v-validate:f_meternumber = "['required']"
|
|
319
|
+
v-model="userfile.f_meternumber"
|
|
320
|
+
:value.sync="userfile.f_meternumber"
|
|
321
|
+
@change="meternumberValidate()"
|
|
322
|
+
:readonly="mark === 1"/>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
<div class="form-group col-sm-6">
|
|
326
|
+
<label class="col-sm-4 control-label">表 封 号:</label>
|
|
327
|
+
<div class="col-sm-8">
|
|
328
|
+
<input class="form-control input_view" style=""
|
|
329
|
+
placeholder="表封号"
|
|
330
|
+
v-model="userfile.f_metertitles"
|
|
331
|
+
:value="userfile.f_metertitles"
|
|
332
|
+
:readonly="mark === 1"/>
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
<div class="form-group col-sm-6">
|
|
336
|
+
<label class="col-sm-4 control-label">表 读 数:</label>
|
|
337
|
+
<div class="col-sm-8">
|
|
338
|
+
<input class="form-control input_view" style=""
|
|
339
|
+
type="number"
|
|
340
|
+
placeholder="表读数"
|
|
341
|
+
v-model="userfile.f_meter_base"
|
|
342
|
+
:value="userfile.f_meter_base"
|
|
343
|
+
:readonly="mark === 1"/>
|
|
344
|
+
</div>
|
|
345
|
+
</div>
|
|
346
|
+
<div class="form-group col-sm-6">
|
|
347
|
+
<label class="col-sm-4 control-label">初始底数:</label>
|
|
348
|
+
<div class="col-sm-8">
|
|
349
|
+
<input class="form-control input_view" style=""
|
|
350
|
+
type="number"
|
|
351
|
+
v-model="userfile.f_initial_base"
|
|
352
|
+
:value="userfile.f_initial_base"
|
|
353
|
+
placeholder="初始底数"
|
|
354
|
+
:readonly="mark === 1"/>
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
<div class="form-group col-sm-6">
|
|
358
|
+
<label class="col-sm-4 control-label">表  向:</label>
|
|
359
|
+
<div class="col-sm-8">
|
|
360
|
+
<input-select
|
|
361
|
+
class="select select_list"
|
|
362
|
+
:value.sync="userfile.f_aroundmeter"
|
|
363
|
+
v-model="userfile.f_aroundmeter"
|
|
364
|
+
:options="aroundmeters"
|
|
365
|
+
:disable="mark === 1"
|
|
366
|
+
:valueSingle="true"></input-select>
|
|
367
|
+
</div>
|
|
368
|
+
</div>
|
|
369
|
+
<div class="form-group col-sm-6">
|
|
370
|
+
<label class="col-sm-4 control-label">安装位置:</label>
|
|
371
|
+
<div class="col-sm-8">
|
|
372
|
+
<input-select
|
|
373
|
+
class="select select_list"
|
|
374
|
+
:value.sync="userfile.f_position"
|
|
375
|
+
v-model="userfile.f_position"
|
|
376
|
+
:options="positions"
|
|
377
|
+
:disable="mark === 1"
|
|
378
|
+
:valueSingle="true"></input-select>
|
|
379
|
+
</div>
|
|
380
|
+
</div>
|
|
381
|
+
<div class="form-group col-sm-6">
|
|
382
|
+
<label class="col-sm-4 control-label">安 装 人:</label>
|
|
383
|
+
<div class="col-sm-8">
|
|
384
|
+
<input class="form-control input_view" style=""
|
|
385
|
+
v-model="userfile.f_install_person"
|
|
386
|
+
:value.sync="installperson(userfile.f_install_person)"
|
|
387
|
+
placeholder="安装人"
|
|
388
|
+
readonly/>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
<div class="form-group col-sm-6">
|
|
392
|
+
<label class="col-sm-4 control-label">安装日期:</label>
|
|
393
|
+
<div class="col-sm-8">
|
|
394
|
+
<input class="form-control input_view" style=""
|
|
395
|
+
v-model="userfile.f_install_date"
|
|
396
|
+
:value.sync="installdate(userfile.f_install_date)"
|
|
397
|
+
placeholder="安装日期"
|
|
398
|
+
readonly/>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
</div>
|
|
402
|
+
</article>
|
|
403
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
404
|
+
<template v-if="mark !== 1">
|
|
405
|
+
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
406
|
+
</template>
|
|
407
|
+
</footer>
|
|
408
|
+
</modal>
|
|
409
|
+
</validator>
|
|
410
|
+
</template>
|
|
411
|
+
<script>
|
|
412
|
+
import Vue from 'vue'
|
|
413
|
+
import {PagedList} from 'vue-client'
|
|
414
|
+
import {HttpResetClass} from 'vue-client'
|
|
415
|
+
import {isEmpty} from '../../../../../components/Util'
|
|
416
|
+
// Date格式化
|
|
417
|
+
Date.prototype.Format = function (fmt) {
|
|
418
|
+
var o = {
|
|
419
|
+
'M+': this.getMonth() + 1, // 月份
|
|
420
|
+
'd+': this.getDate(), // 日
|
|
421
|
+
'H+': this.getHours(), // 小时
|
|
422
|
+
'm+': this.getMinutes(), // 分
|
|
423
|
+
's+': this.getSeconds(), // 秒
|
|
424
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
425
|
+
'S': this.getMilliseconds() // 毫秒
|
|
426
|
+
}
|
|
427
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
428
|
+
for (var k in o) {
|
|
429
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
430
|
+
}
|
|
431
|
+
return fmt
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export default {
|
|
435
|
+
title: '安装明细',
|
|
436
|
+
props: {
|
|
437
|
+
selectdata: {
|
|
438
|
+
type: Object
|
|
439
|
+
},
|
|
440
|
+
mark: {
|
|
441
|
+
type: Number,
|
|
442
|
+
default: 0
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
data () {
|
|
446
|
+
return {
|
|
447
|
+
showWork: false,
|
|
448
|
+
showFile: false,
|
|
449
|
+
showUserFile: false,
|
|
450
|
+
model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
|
|
451
|
+
meterbrands: [], // 气表品牌
|
|
452
|
+
useradders: {},
|
|
453
|
+
userinfo: {},
|
|
454
|
+
userfile: {},
|
|
455
|
+
addressTypeList: [
|
|
456
|
+
{label: '民用地址', value: '民用地址'},
|
|
457
|
+
{label: '特殊地址', value: '特殊地址'}
|
|
458
|
+
],
|
|
459
|
+
sliceAreaList: [],
|
|
460
|
+
pcdList: [],
|
|
461
|
+
streetList: [],
|
|
462
|
+
residentialList: [],
|
|
463
|
+
config: {}
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
ready () {
|
|
467
|
+
this.search()
|
|
468
|
+
this.getMeterbrands()
|
|
469
|
+
this.getSliceAreaList()
|
|
470
|
+
this.getPcdList()
|
|
471
|
+
},
|
|
472
|
+
methods: {
|
|
473
|
+
// 保存档案
|
|
474
|
+
async saveUserFile() {
|
|
475
|
+
let data = {
|
|
476
|
+
user: this.$login.f,
|
|
477
|
+
useradders: this.useradders,
|
|
478
|
+
userinfo: this.userinfo,
|
|
479
|
+
userfile: this.userfile,
|
|
480
|
+
selectdata: this.selectdata
|
|
481
|
+
}
|
|
482
|
+
let res = await this.$resetpost('rs/logic/applyAddUserinfo', {data:data}, {
|
|
483
|
+
resolveMsg: null,
|
|
484
|
+
rejectMsg: '用户档案添加失败!!!'
|
|
485
|
+
})
|
|
486
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
487
|
+
},
|
|
488
|
+
addressSplicing () {
|
|
489
|
+
let f_pcd = this.useradders.f_pcd || ''
|
|
490
|
+
let f_street = this.useradders.f_street || ''
|
|
491
|
+
let f_residential_area = this.useradders.f_residential_area || ''
|
|
492
|
+
let f_building = this.useradders.f_building || ''
|
|
493
|
+
let f_building_suffix = f_building ? this.useradders.f_building_suffix : ''
|
|
494
|
+
let f_unit = this.useradders.f_unit || ''
|
|
495
|
+
let f_unit_suffix = f_unit ? this.useradders.f_unit_suffix : ''
|
|
496
|
+
let f_floor = this.useradders.f_floor || ''
|
|
497
|
+
let f_floor_suffix = f_floor ? this.useradders.f_floor_suffix : ''
|
|
498
|
+
let f_room = this.useradders.f_room || ''
|
|
499
|
+
let f_room_suffix = f_room ? this.useradders.f_room_suffix : ''
|
|
500
|
+
|
|
501
|
+
Vue.set(this.useradders, 'f_address', f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix)
|
|
502
|
+
},
|
|
503
|
+
// 检查表号是否存在
|
|
504
|
+
async meternumberValidate() {
|
|
505
|
+
if (!this.userfile.f_gasbrand_id) {
|
|
506
|
+
this.userfile.f_meternumber = ''
|
|
507
|
+
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
508
|
+
return
|
|
509
|
+
}
|
|
510
|
+
if (this.userfile.f_gasbrand_id && this.userfile.f_meternumber) {
|
|
511
|
+
let data = {
|
|
512
|
+
f_meternumber: this.userfile.f_meternumber,
|
|
513
|
+
f_gasbrand_id: this.userfile.f_gasbrand_id
|
|
514
|
+
}
|
|
515
|
+
if (this.userfile.f_userfiles_id) {
|
|
516
|
+
data.f_userfiles_id = this.userfile.f_userfiles_id
|
|
517
|
+
}
|
|
518
|
+
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
|
|
519
|
+
resolveMsg: null,
|
|
520
|
+
rejectMsg: '表号验证失败!!'
|
|
521
|
+
})
|
|
522
|
+
if (res.data) {
|
|
523
|
+
this.userfile.f_meternumber = ''
|
|
524
|
+
this.$showAlert('表号已存在!!', 'warning', 3000)
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
// 选择气表型号
|
|
529
|
+
gasmodelChange() {
|
|
530
|
+
if (this.userfile.gasmodel) {
|
|
531
|
+
this.userfile.f_gasmodel_id = this.userfile.gasmodel.id
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
// 选择气表品牌
|
|
535
|
+
gasbrandChange() {
|
|
536
|
+
// 清空已保存的气表型号
|
|
537
|
+
this.userfile.f_gasmodel_id = null
|
|
538
|
+
this.userfile.gasmodel = null
|
|
539
|
+
|
|
540
|
+
if (this.userfile.gasbrand) {
|
|
541
|
+
// 气表品牌id
|
|
542
|
+
this.userfile.f_gasbrand_id = this.userfile.gasbrand.id
|
|
543
|
+
// 气表分类
|
|
544
|
+
this.userfile.f_meter_classify = this.userfile.gasbrand.f_meter_type
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
// 打开安装明细
|
|
548
|
+
async showUserFileModal (row) {
|
|
549
|
+
if (!row) {
|
|
550
|
+
console.log('-------------------添加----------------------')
|
|
551
|
+
}
|
|
552
|
+
console.log('------------------修正---------------------')
|
|
553
|
+
this.initUseradders()
|
|
554
|
+
this.showUserFile = true
|
|
555
|
+
},
|
|
556
|
+
async initUseradders () {
|
|
557
|
+
if (this.selectdata.f_apply_type === '民用报建') {
|
|
558
|
+
Vue.set(this.useradders, 'f_address_type', '民用地址')
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
await this.$getConfig(this, 'UserAddress')
|
|
562
|
+
|
|
563
|
+
this.useradders = Object.assign({}, this.useradders, this.config)
|
|
564
|
+
},
|
|
565
|
+
async streetChange () {
|
|
566
|
+
this.residentialList = []
|
|
567
|
+
this.useradders.f_residential_area = null
|
|
568
|
+
if (isEmpty(this.useradders.f_street)) {
|
|
569
|
+
return
|
|
570
|
+
}
|
|
571
|
+
let data = {
|
|
572
|
+
tablename: 't_area',
|
|
573
|
+
condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.useradders.f_street}'`
|
|
574
|
+
}
|
|
575
|
+
let http = new HttpResetClass()
|
|
576
|
+
let res = await http.load(
|
|
577
|
+
'POST',
|
|
578
|
+
`rs/sql/singleTable`,
|
|
579
|
+
{data: data},
|
|
580
|
+
{resolveMsg: null, rejectMsg: '小区查询失败!!!'}
|
|
581
|
+
)
|
|
582
|
+
|
|
583
|
+
this.residentialList = res.data.map(item => {
|
|
584
|
+
return {
|
|
585
|
+
label: item.f_residential_area,
|
|
586
|
+
value: item.f_residential_area
|
|
587
|
+
}
|
|
588
|
+
})
|
|
589
|
+
},
|
|
590
|
+
async pcdChange () {
|
|
591
|
+
this.streetList = []
|
|
592
|
+
this.useradders.f_street = null
|
|
593
|
+
this.residentialList = []
|
|
594
|
+
this.useradders.f_residential_area = null
|
|
595
|
+
if (isEmpty(this.useradders.f_pcd)) {
|
|
596
|
+
return
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
let data = {
|
|
600
|
+
tablename: 't_street',
|
|
601
|
+
condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.useradders.f_pcd}'`
|
|
602
|
+
}
|
|
603
|
+
let http = new HttpResetClass()
|
|
604
|
+
let res = await http.load(
|
|
605
|
+
'POST',
|
|
606
|
+
`rs/sql/singleTable`,
|
|
607
|
+
{data: data},
|
|
608
|
+
{resolveMsg: null, rejectMsg: '街道查询失败!!!'}
|
|
609
|
+
)
|
|
610
|
+
|
|
611
|
+
this.streetList = res.data.map(item => {
|
|
612
|
+
return {
|
|
613
|
+
label: item.f_street,
|
|
614
|
+
value: item.f_street
|
|
615
|
+
}
|
|
616
|
+
})
|
|
617
|
+
},
|
|
618
|
+
async getPcdList () {
|
|
619
|
+
let data = {
|
|
620
|
+
tablename: 't_pcd',
|
|
621
|
+
condition: `f_filialeid = '${this.$login.f.orgid}'`
|
|
622
|
+
}
|
|
623
|
+
let http = new HttpResetClass()
|
|
624
|
+
let res = await http.load(
|
|
625
|
+
'POST',
|
|
626
|
+
`rs/sql/singleTable`,
|
|
627
|
+
{data: data},
|
|
628
|
+
{resolveMsg: null, rejectMsg: '省市区查询失败!!!'}
|
|
629
|
+
)
|
|
630
|
+
|
|
631
|
+
this.pcdList = res.data.map(item => {
|
|
632
|
+
return {
|
|
633
|
+
label: item.f_pcd,
|
|
634
|
+
value: item.f_pcd
|
|
635
|
+
}
|
|
636
|
+
})
|
|
637
|
+
},
|
|
638
|
+
async getSliceAreaList () {
|
|
639
|
+
let data = {
|
|
640
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
641
|
+
userid: this.$login.f.id
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
let http = new HttpResetClass()
|
|
645
|
+
let res = await http.load(
|
|
646
|
+
'POST',
|
|
647
|
+
`rs/search`,
|
|
648
|
+
{data: data},
|
|
649
|
+
{resolveMsg: null, rejectMsg: '片区查询失败!!!'}
|
|
650
|
+
)
|
|
651
|
+
|
|
652
|
+
this.sliceAreaList = res.data.map(item => {
|
|
653
|
+
return {
|
|
654
|
+
label: item.name,
|
|
655
|
+
value: item.name
|
|
656
|
+
}
|
|
657
|
+
})
|
|
658
|
+
},
|
|
659
|
+
// 获取气表品牌
|
|
660
|
+
async getMeterbrands() {
|
|
661
|
+
let http = new HttpResetClass()
|
|
662
|
+
let data = {
|
|
663
|
+
f_orgid: this.$login.f.orgid
|
|
664
|
+
}
|
|
665
|
+
let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
|
|
666
|
+
resolveMsg: null,
|
|
667
|
+
rejectMsg: null
|
|
668
|
+
})
|
|
669
|
+
this.meterbrands = res.data
|
|
670
|
+
},
|
|
671
|
+
searchCondition (args) {
|
|
672
|
+
args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
673
|
+
|
|
674
|
+
this.model.search(args.condition, args.model)
|
|
675
|
+
},
|
|
676
|
+
// 查询
|
|
677
|
+
async search () {
|
|
678
|
+
this.$refs.cp.$refs.cri.search()
|
|
679
|
+
},
|
|
680
|
+
// 关闭安装明细
|
|
681
|
+
closeUserFile() {
|
|
682
|
+
this.showUserFile = false
|
|
683
|
+
this.useradders = {}
|
|
684
|
+
this.userinfo = {}
|
|
685
|
+
this.userfile = {}
|
|
686
|
+
this.search()
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
events: {
|
|
690
|
+
},
|
|
691
|
+
computed: {
|
|
692
|
+
credentialsList() {
|
|
693
|
+
return this.$appdata.getParam('证件类型')
|
|
694
|
+
},
|
|
695
|
+
// 安装人
|
|
696
|
+
installperson() {
|
|
697
|
+
return function (f_install_person) {
|
|
698
|
+
if (isEmpty(f_install_person)) {
|
|
699
|
+
return this.$login.f.name
|
|
700
|
+
}
|
|
701
|
+
return f_install_person
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
// 安装时间
|
|
705
|
+
installdate() {
|
|
706
|
+
return function (f_install_date) {
|
|
707
|
+
if (isEmpty(f_install_date)) {
|
|
708
|
+
return new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
709
|
+
}
|
|
710
|
+
return f_install_date
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
// 表向
|
|
714
|
+
aroundmeters() {
|
|
715
|
+
return this.$appdata.getParam('左右表')
|
|
716
|
+
},
|
|
717
|
+
// 安装位置
|
|
718
|
+
positions() {
|
|
719
|
+
return this.$appdata.getParam('安装位置')
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
watch: {
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
</script>
|
|
726
|
+
<style scoped>
|
|
727
|
+
.head-but{
|
|
728
|
+
margin-left: 5px;
|
|
729
|
+
height: 34px;
|
|
730
|
+
/*background-color: #6aa6e2;*/
|
|
731
|
+
border-radius: 4px;
|
|
732
|
+
font-family: PingFang;
|
|
733
|
+
color: #ffffff;
|
|
734
|
+
}
|
|
735
|
+
/*清除model中的浮动*/
|
|
736
|
+
.clearfix:after,.clearfix:before{
|
|
737
|
+
display: table;
|
|
738
|
+
}
|
|
739
|
+
.clearfix:after{
|
|
740
|
+
clear: both;
|
|
741
|
+
}
|
|
742
|
+
.input_view{
|
|
743
|
+
padding: 8px;
|
|
744
|
+
background-color: #ffffff;
|
|
745
|
+
border-radius: 2px;
|
|
746
|
+
border: solid 1px #c7c7c7!important;
|
|
747
|
+
color: #333333!important;
|
|
748
|
+
font-size: 15px!important;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.input_view[readonly]{
|
|
752
|
+
border: 1px solid #DDD!important;
|
|
753
|
+
color:#ACA899!important;
|
|
754
|
+
}
|
|
755
|
+
.input_view:disabled{
|
|
756
|
+
border: 1px solid #DDD!important;
|
|
757
|
+
color:#ACA899!important;
|
|
758
|
+
}
|
|
759
|
+
</style>
|