apply-clients 3.5.4-8 → 3.5.4-81
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/app/src/main/java/com/example/phonechatbot/MainActivity.java +50 -0
- package/build/dev-server.js +12 -4
- package/package.json +2 -2
- package/src/App.vue +5 -5
- package/src/apply.js +2 -3
- package/src/applyAndroid.js +2 -0
- package/src/assets//344/270/213/350/275/275.png +0 -0
- package/src/components/android/AppCheckTakePic.vue +168 -0
- package/src/components/android/Process/AppServiceControl.vue +4 -0
- package/src/components/android/Process/Processes/AppChargeManagementNew.vue +637 -0
- package/src/components/image/dxf.png +0 -0
- package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
- package/src/components/product/Material/MaterialDetailed.vue +1 -1
- package/src/components/product/MaterialsManage/MaterialsBase.vue +181 -177
- package/src/components/product/MaterialsManage/MaterialsManage.vue +60 -60
- package/src/components/product/PcZhihuanManagement.vue +160 -0
- package/src/components/product/Process/ExplorationSelect.vue +4 -1
- package/src/components/product/Process/ExplorationUser.vue +1 -0
- package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
- package/src/components/product/ServiceView.vue +1026 -1005
- package/src/components/product/Supervisory/SupervisoryControl.vue +1 -0
- package/src/filiale/baiyin/android/AppServiceControl.vue +1762 -0
- package/src/filiale/baiyin/android/ByAddMaterialScience.vue +824 -0
- package/src/filiale/baiyin/android/ByDeviceManagement.vue +916 -0
- package/src/filiale/baiyin/android.js +8 -0
- package/src/filiale/fugou/android/AppAddMaterialScience.vue +448 -0
- package/src/filiale/fugou/android/AppAddReplacement.vue +341 -0
- package/src/filiale/fugou/android/AppChargeManagement.vue +126 -12
- package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -0
- package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -0
- package/src/filiale/fugou/android/AppServiceControl.vue +38 -5
- package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -0
- package/src/filiale/fugou/android.js +7 -1
- package/src/filiale/fugou/pc/AddReplacement.vue +340 -0
- package/src/filiale/fugou/pc/ExplorationSelect.vue +525 -0
- package/src/filiale/fugou/pc/InstallationDetails.vue +54 -43
- package/src/filiale/fugou/pc/ServiceControl.vue +125 -379
- package/src/filiale/fugou/pc/ServiceView.vue +941 -0
- package/src/filiale/fugou/pc/addMaterialScience.vue +481 -0
- package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -0
- package/src/filiale/fugou/pc/devicesManagement.vue +483 -0
- package/src/filiale/fugou/pc.js +7 -1
- package/src/filiale/gongyi/android/AppAddMaterialScience.vue +20 -8
- package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -0
- package/src/filiale/gongyi/android/AppInstallationDetails.vue +500 -495
- package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -0
- package/src/filiale/gongyi/android/AppSign.vue +170 -157
- package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -0
- package/src/filiale/gongyi/android.js +18 -15
- package/src/filiale/gongyi/pc/ApplyUpload.vue +371 -379
- package/src/filiale/gongyi/pc/PcAddLogs.vue +221 -213
- package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -0
- package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -0
- package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +894 -894
- package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -0
- package/src/filiale/gongyi/pc/addMaterialScience.vue +575 -539
- package/src/filiale/gongyi/pc/chargeManagement.vue +765 -0
- package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -0
- package/src/filiale/gongyi/pc.js +24 -19
- package/src/filiale/hongda/pc/SupervisoryList.vue +422 -409
- package/src/filiale/jinhuang/pc/ServiceControl.vue +1925 -0
- package/src/filiale/jinhuang/pc/chargeManagementNew.vue +589 -0
- package/src/filiale/jinhuang/pc.js +7 -0
- package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -0
- package/src/filiale/qianneng/android/AppExplorationUser.vue +490 -490
- package/src/filiale/qianneng/android/AppInstallationDetails.vue +541 -541
- package/src/filiale/qianneng/android.js +2 -1
- package/src/filiale/qianneng/pc/ApplyUpload.vue +5 -4
- package/src/filiale/qianneng/pc/Applybatchdispatch.vue +704 -704
- package/src/filiale/qianneng/pc/Applydetail.vue +0 -5
- package/src/filiale/qianneng/pc/InstallFunction.vue +2 -2
- package/src/filiale/qianneng/pc/InstallationDetails.vue +614 -587
- package/src/filiale/qianneng/pc/ServiceControl.vue +1384 -1384
- package/src/filiale/qianneng/pc/printactivatecard.vue +311 -311
- package/src/filiale/ruihua/pc/ServiceControl.vue +20 -0
- package/src/filiale/ruihua/pc/printVentilation.vue +21 -6
- package/src/filiale/shexian/android/AppServiceControl.vue +12 -2
- package/src/filiale/shexian/android/AppTakePic.vue +15 -55
- package/src/filiale/siyangRH/android/AppAddMaterialScience.vue +0 -2
- package/src/filiale/siyangRH/pc/ApplyUpload.vue +324 -324
- package/src/filiale/siyangRH/pc/chargeManagement.vue +810 -0
- package/src/filiale/siyangRH/pc.js +1 -0
- package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +17 -1
- package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +32 -2
- package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +12 -0
- package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +956 -961
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +34 -1
- package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1 -1
- package/src/filiale/yangchunboneng/android/AppUpload.vue +78 -9
- package/src/filiale/yangchunboneng/android/MaterIialOne.vue +31 -19
- package/src/filiale/yangchunboneng/android.js +1 -1
- package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +235 -218
- package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +59 -19
- package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -0
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +207 -3
- package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +69 -14
- package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -0
- package/src/filiale/yangchunboneng/pc/chargeManagement.vue +112 -13
- package/src/filiale/yangchunboneng/pc.js +7 -1
- package/src/main.js +3 -3
- package/~/chatbot/main.py +57 -0
|
@@ -1,587 +1,614 @@
|
|
|
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 :pager="false">
|
|
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>安装人</th>
|
|
20
|
-
<th>安装时间</th>
|
|
21
|
-
<th>操作</th>
|
|
22
|
-
</tr>
|
|
23
|
-
</template>
|
|
24
|
-
<template partial='body'>
|
|
25
|
-
<tr>
|
|
26
|
-
<td style="text-align: center;">
|
|
27
|
-
<nobr>{{$index+1}}</nobr>
|
|
28
|
-
</td>
|
|
29
|
-
<td style="text-align: center;">
|
|
30
|
-
<nobr>{{row.f_meter_classify}}</nobr>
|
|
31
|
-
</td>
|
|
32
|
-
<td style="text-align: center;">
|
|
33
|
-
<nobr>{{row.f_gasbrand}}</nobr>
|
|
34
|
-
</td>
|
|
35
|
-
<td style="text-align: center;">
|
|
36
|
-
<nobr>{{row.f_gasmodel}}</nobr>
|
|
37
|
-
</td>
|
|
38
|
-
<td style="text-align: center;">
|
|
39
|
-
<nobr>{{row.f_meternumber}}</nobr>
|
|
40
|
-
</td>
|
|
41
|
-
<td style="text-align: center;">
|
|
42
|
-
<nobr>{{row.f_position}}</nobr>
|
|
43
|
-
</td>
|
|
44
|
-
<td style="text-align: center;">
|
|
45
|
-
<nobr>{{row.f_install_person}}</nobr>
|
|
46
|
-
</td>
|
|
47
|
-
<td style="text-align: center;">
|
|
48
|
-
<nobr>{{row.f_install_date}}</nobr>
|
|
49
|
-
</td>
|
|
50
|
-
<td style="text-align: center;">
|
|
51
|
-
<nobr>
|
|
52
|
-
<button
|
|
53
|
-
type="button" name="button" class="btn btn-link"
|
|
54
|
-
:disabled="row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && $parent.$parent.$parent.selectdata.f_apply_type !== '开发商集体报建'"
|
|
55
|
-
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
56
|
-
{{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_gasbrand ? '修正' : '添加'}}
|
|
57
|
-
</button>
|
|
58
|
-
</nobr>
|
|
59
|
-
</td>
|
|
60
|
-
</tr>
|
|
61
|
-
</template>
|
|
62
|
-
</data-grid>
|
|
63
|
-
</criteria-paged>
|
|
64
|
-
</div>
|
|
65
|
-
<modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
|
|
66
|
-
<header slot="modal-header" class="modal-header">
|
|
67
|
-
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
68
|
-
<h4 class="modal-title">选择文件</h4>
|
|
69
|
-
</header>
|
|
70
|
-
<article slot="modal-body" class="modal-body">
|
|
71
|
-
<div class="form-group">
|
|
72
|
-
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
|
|
73
|
-
</div>
|
|
74
|
-
</article>
|
|
75
|
-
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
76
|
-
</modal>
|
|
77
|
-
|
|
78
|
-
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
79
|
-
<header slot="modal-header" class="modal-header">
|
|
80
|
-
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
81
|
-
<h4 class="modal-title">安装明细</h4>
|
|
82
|
-
</header>
|
|
83
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
84
|
-
<!-- <div class="form-group col-sm-12">
|
|
85
|
-
<label class="col-sm-2 control-label">地址信息:</label>
|
|
86
|
-
<div class="col-sm-10">
|
|
87
|
-
<input class="form-control input_view" style=""
|
|
88
|
-
v-model="useradders.f_address"
|
|
89
|
-
:value="useradders.f_address"
|
|
90
|
-
:readonly="true"/>
|
|
91
|
-
</div>
|
|
92
|
-
</div>-->
|
|
93
|
-
|
|
94
|
-
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
|
|
95
|
-
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
96
|
-
<div class="col-sm-6 text-left">表具{{$index+1}}信息</div>
|
|
97
|
-
</div>
|
|
98
|
-
<div class="form-group col-sm-6" :class="[item.gasbrand ? '' : 'has-error']">
|
|
99
|
-
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
100
|
-
<div class="col-sm-8">
|
|
101
|
-
<input-select
|
|
102
|
-
class="select select_list"
|
|
103
|
-
:value.sync="item.gasbrand"
|
|
104
|
-
v-model="item.gasbrand"
|
|
105
|
-
:options="meterbrands"
|
|
106
|
-
@change="gasbrandChange(i)"
|
|
107
|
-
:disable="mark === 1"
|
|
108
|
-
:valueSingle="true"></input-select>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
<div class="form-group col-sm-6" :class="[item.gasmodel ? '' : 'has-error']">
|
|
112
|
-
<label class="col-sm-4 control-label">气表型号:</label>
|
|
113
|
-
<div class="col-sm-8">
|
|
114
|
-
<input-select
|
|
115
|
-
class="select select_list"
|
|
116
|
-
:value.sync="item.gasmodel"
|
|
117
|
-
v-model="item.gasmodel"
|
|
118
|
-
:options.sync="item.gasbrand.gasmodel"
|
|
119
|
-
@change="gasmodelChange(i)"
|
|
120
|
-
:disable="mark === 1"
|
|
121
|
-
:valueSingle="true"></input-select>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
<div class="form-group col-sm-6" >
|
|
125
|
-
<label class="col-sm-4 control-label">表  号:</label>
|
|
126
|
-
<div class="col-sm-8">
|
|
127
|
-
<input class="form-control input_view" style=""
|
|
128
|
-
placeholder="表号"
|
|
129
|
-
type="number"
|
|
130
|
-
οnkeyup="this.value=this.value.replace(/\s+/g,'')"
|
|
131
|
-
v-model="item.f_meternumber"
|
|
132
|
-
:value="item.f_meternumber"
|
|
133
|
-
@change="meternumberValidate(i)"
|
|
134
|
-
:readonly="mark === 1"/>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
<div class="form-group col-sm-6">
|
|
138
|
-
<label class="col-sm-4 control-label">质检号:</label>
|
|
139
|
-
<div class="col-sm-8">
|
|
140
|
-
<input class="form-control input_view" style=""
|
|
141
|
-
placeholder="质检号"
|
|
142
|
-
v-model="item.f_metertitles"
|
|
143
|
-
:value="item.f_metertitles"
|
|
144
|
-
:readonly="mark === 1"/>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
<div class="form-group col-sm-6">
|
|
148
|
-
<label class="col-sm-4 control-label">防盗卡号1:</label>
|
|
149
|
-
<div class="col-sm-8">
|
|
150
|
-
<input class="form-control input_view" style=""
|
|
151
|
-
placeholder="防盗卡号1"
|
|
152
|
-
v-model="item.f_defendcard"
|
|
153
|
-
:value="item.f_defendcard"
|
|
154
|
-
:readonly="mark === 1"/>
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
<div class="form-group col-sm-6">
|
|
158
|
-
<label class="col-sm-4 control-label">防盗卡号2:</label>
|
|
159
|
-
<div class="col-sm-8">
|
|
160
|
-
<input class="form-control input_view" style=""
|
|
161
|
-
placeholder="防盗卡号2"
|
|
162
|
-
v-model="item.f_defendcard_two"
|
|
163
|
-
:value="item.f_defendcard_two"
|
|
164
|
-
:readonly="mark === 1"/>
|
|
165
|
-
</div>
|
|
166
|
-
</div>
|
|
167
|
-
<div class="form-group col-sm-6">
|
|
168
|
-
<label class="col-sm-4 control-label">调压箱编号:</label>
|
|
169
|
-
<div class="col-sm-8">
|
|
170
|
-
<input
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
<!--
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
</
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
<
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
let
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
if (
|
|
416
|
-
this.userinfo.userfiles[i].
|
|
417
|
-
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
this.userinfo.userfiles[i].
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
this.search()
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
color
|
|
586
|
-
|
|
587
|
-
|
|
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 :pager="false">
|
|
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>安装人</th>
|
|
20
|
+
<th>安装时间</th>
|
|
21
|
+
<th>操作</th>
|
|
22
|
+
</tr>
|
|
23
|
+
</template>
|
|
24
|
+
<template partial='body'>
|
|
25
|
+
<tr>
|
|
26
|
+
<td style="text-align: center;">
|
|
27
|
+
<nobr>{{$index+1}}</nobr>
|
|
28
|
+
</td>
|
|
29
|
+
<td style="text-align: center;">
|
|
30
|
+
<nobr>{{row.f_meter_classify}}</nobr>
|
|
31
|
+
</td>
|
|
32
|
+
<td style="text-align: center;">
|
|
33
|
+
<nobr>{{row.f_gasbrand}}</nobr>
|
|
34
|
+
</td>
|
|
35
|
+
<td style="text-align: center;">
|
|
36
|
+
<nobr>{{row.f_gasmodel}}</nobr>
|
|
37
|
+
</td>
|
|
38
|
+
<td style="text-align: center;">
|
|
39
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
40
|
+
</td>
|
|
41
|
+
<td style="text-align: center;">
|
|
42
|
+
<nobr>{{row.f_position}}</nobr>
|
|
43
|
+
</td>
|
|
44
|
+
<td style="text-align: center;">
|
|
45
|
+
<nobr>{{row.f_install_person}}</nobr>
|
|
46
|
+
</td>
|
|
47
|
+
<td style="text-align: center;">
|
|
48
|
+
<nobr>{{row.f_install_date}}</nobr>
|
|
49
|
+
</td>
|
|
50
|
+
<td style="text-align: center;">
|
|
51
|
+
<nobr>
|
|
52
|
+
<button
|
|
53
|
+
type="button" name="button" class="btn btn-link"
|
|
54
|
+
:disabled="row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && $parent.$parent.$parent.selectdata.f_apply_type !== '开发商集体报建'"
|
|
55
|
+
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
56
|
+
{{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_gasbrand ? '修正' : '添加'}}
|
|
57
|
+
</button>
|
|
58
|
+
</nobr>
|
|
59
|
+
</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</template>
|
|
62
|
+
</data-grid>
|
|
63
|
+
</criteria-paged>
|
|
64
|
+
</div>
|
|
65
|
+
<modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
|
|
66
|
+
<header slot="modal-header" class="modal-header">
|
|
67
|
+
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
68
|
+
<h4 class="modal-title">选择文件</h4>
|
|
69
|
+
</header>
|
|
70
|
+
<article slot="modal-body" class="modal-body">
|
|
71
|
+
<div class="form-group">
|
|
72
|
+
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
|
|
73
|
+
</div>
|
|
74
|
+
</article>
|
|
75
|
+
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
76
|
+
</modal>
|
|
77
|
+
|
|
78
|
+
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
79
|
+
<header slot="modal-header" class="modal-header">
|
|
80
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
81
|
+
<h4 class="modal-title">安装明细</h4>
|
|
82
|
+
</header>
|
|
83
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
84
|
+
<!-- <div class="form-group col-sm-12">
|
|
85
|
+
<label class="col-sm-2 control-label">地址信息:</label>
|
|
86
|
+
<div class="col-sm-10">
|
|
87
|
+
<input class="form-control input_view" style=""
|
|
88
|
+
v-model="useradders.f_address"
|
|
89
|
+
:value="useradders.f_address"
|
|
90
|
+
:readonly="true"/>
|
|
91
|
+
</div>
|
|
92
|
+
</div>-->
|
|
93
|
+
|
|
94
|
+
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
|
|
95
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
96
|
+
<div class="col-sm-6 text-left">表具{{$index+1}}信息</div>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="form-group col-sm-6" :class="[item.gasbrand ? '' : 'has-error']">
|
|
99
|
+
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
100
|
+
<div class="col-sm-8">
|
|
101
|
+
<input-select
|
|
102
|
+
class="select select_list"
|
|
103
|
+
:value.sync="item.gasbrand"
|
|
104
|
+
v-model="item.gasbrand"
|
|
105
|
+
:options="meterbrands"
|
|
106
|
+
@change="gasbrandChange(i)"
|
|
107
|
+
:disable="mark === 1"
|
|
108
|
+
:valueSingle="true"></input-select>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="form-group col-sm-6" :class="[item.gasmodel ? '' : 'has-error']">
|
|
112
|
+
<label class="col-sm-4 control-label">气表型号:</label>
|
|
113
|
+
<div class="col-sm-8">
|
|
114
|
+
<input-select
|
|
115
|
+
class="select select_list"
|
|
116
|
+
:value.sync="item.gasmodel"
|
|
117
|
+
v-model="item.gasmodel"
|
|
118
|
+
:options.sync="item.gasbrand.gasmodel"
|
|
119
|
+
@change="gasmodelChange(i)"
|
|
120
|
+
:disable="mark === 1"
|
|
121
|
+
:valueSingle="true"></input-select>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="form-group col-sm-6" >
|
|
125
|
+
<label class="col-sm-4 control-label">表  号:</label>
|
|
126
|
+
<div class="col-sm-8">
|
|
127
|
+
<input class="form-control input_view" style=""
|
|
128
|
+
placeholder="表号"
|
|
129
|
+
type="number"
|
|
130
|
+
οnkeyup="this.value=this.value.replace(/\s+/g,'')"
|
|
131
|
+
v-model="item.f_meternumber"
|
|
132
|
+
:value="item.f_meternumber"
|
|
133
|
+
@change="meternumberValidate(i)"
|
|
134
|
+
:readonly="mark === 1"/>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="form-group col-sm-6">
|
|
138
|
+
<label class="col-sm-4 control-label">质检号:</label>
|
|
139
|
+
<div class="col-sm-8">
|
|
140
|
+
<input class="form-control input_view" style=""
|
|
141
|
+
placeholder="质检号"
|
|
142
|
+
v-model="item.f_metertitles"
|
|
143
|
+
:value="item.f_metertitles"
|
|
144
|
+
:readonly="mark === 1"/>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="form-group col-sm-6">
|
|
148
|
+
<label class="col-sm-4 control-label">防盗卡号1:</label>
|
|
149
|
+
<div class="col-sm-8">
|
|
150
|
+
<input class="form-control input_view" style=""
|
|
151
|
+
placeholder="防盗卡号1"
|
|
152
|
+
v-model="item.f_defendcard"
|
|
153
|
+
:value="item.f_defendcard"
|
|
154
|
+
:readonly="mark === 1"/>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="form-group col-sm-6">
|
|
158
|
+
<label class="col-sm-4 control-label">防盗卡号2:</label>
|
|
159
|
+
<div class="col-sm-8">
|
|
160
|
+
<input class="form-control input_view" style=""
|
|
161
|
+
placeholder="防盗卡号2"
|
|
162
|
+
v-model="item.f_defendcard_two"
|
|
163
|
+
:value="item.f_defendcard_two"
|
|
164
|
+
:readonly="mark === 1"/>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="form-group col-sm-6">
|
|
168
|
+
<label class="col-sm-4 control-label">调压箱编号:</label>
|
|
169
|
+
<div class="col-sm-8">
|
|
170
|
+
<input-select
|
|
171
|
+
class="select select_list"
|
|
172
|
+
:value.sync="item.f_adjustable_id"
|
|
173
|
+
v-model="item.f_adjustable_id"
|
|
174
|
+
:options="adjustables"
|
|
175
|
+
:disable="mark === 1"
|
|
176
|
+
:valueSingle="true"></input-select>
|
|
177
|
+
<!-- <input class="form-control input_view" style=""
|
|
178
|
+
v-model="item.f_adjustable_id"
|
|
179
|
+
placeholder="调压箱编号"
|
|
180
|
+
:readonly="mark === 1"
|
|
181
|
+
/>-->
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="form-group col-sm-6">
|
|
185
|
+
<label class="col-sm-4 control-label">表箱号:</label>
|
|
186
|
+
<div class="col-sm-8">
|
|
187
|
+
<input class="form-control input_view" style=""
|
|
188
|
+
v-model="item.f_box_number"
|
|
189
|
+
placeholder="表箱号"
|
|
190
|
+
:readonly="mark === 1"
|
|
191
|
+
/>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
<div class="form-group col-sm-6">
|
|
195
|
+
<label class="col-sm-4 control-label">表 读 数:</label>
|
|
196
|
+
<div class="col-sm-8">
|
|
197
|
+
<input class="form-control input_view" style=""
|
|
198
|
+
type="number"
|
|
199
|
+
placeholder="表读数"
|
|
200
|
+
v-model="item.f_meter_base"
|
|
201
|
+
:value="item.f_meter_base"
|
|
202
|
+
:readonly="mark === 1"/>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
<div class="form-group col-sm-6">
|
|
206
|
+
<label class="col-sm-4 control-label">初始底数:</label>
|
|
207
|
+
<div class="col-sm-8">
|
|
208
|
+
<input class="form-control input_view" style=""
|
|
209
|
+
type="number"
|
|
210
|
+
v-model="item.f_initial_base"
|
|
211
|
+
:value="item.f_initial_base"
|
|
212
|
+
placeholder="初始底数"
|
|
213
|
+
:readonly="mark === 1"/>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
<div class="form-group col-sm-6">
|
|
217
|
+
<label class="col-sm-4 control-label">表  向:</label>
|
|
218
|
+
<div class="col-sm-8">
|
|
219
|
+
<input-select
|
|
220
|
+
class="select select_list"
|
|
221
|
+
:value.sync="item.f_aroundmeter"
|
|
222
|
+
v-model="item.f_aroundmeter"
|
|
223
|
+
:options="aroundmeters"
|
|
224
|
+
:disable="mark === 1"
|
|
225
|
+
:valueSingle="true"></input-select>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
<div class="form-group col-sm-6">
|
|
229
|
+
<label class="col-sm-4 control-label">安装位置:</label>
|
|
230
|
+
<div class="col-sm-8">
|
|
231
|
+
<input-select
|
|
232
|
+
class="select select_list"
|
|
233
|
+
:value.sync="item.f_position"
|
|
234
|
+
v-model="item.f_position"
|
|
235
|
+
:options="positions"
|
|
236
|
+
:disable="mark === 1"
|
|
237
|
+
:valueSingle="true"></input-select>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="form-group col-sm-6">
|
|
241
|
+
<label class="col-sm-4 control-label">安 装 人:</label>
|
|
242
|
+
<div class="col-sm-8">
|
|
243
|
+
<input class="form-control input_view" style=""
|
|
244
|
+
v-model="item.f_install_person"
|
|
245
|
+
:value.sync="item.f_install_person"
|
|
246
|
+
placeholder="安装人"
|
|
247
|
+
:readonly="mark === 1"
|
|
248
|
+
/>
|
|
249
|
+
<!-- <input-select-->
|
|
250
|
+
<!-- class="select select_list"-->
|
|
251
|
+
<!-- :value.sync="item.f_install_person"-->
|
|
252
|
+
<!-- v-model="item.f_install_person"-->
|
|
253
|
+
<!-- :options="installperson"-->
|
|
254
|
+
<!-- :disable="mark === 1"-->
|
|
255
|
+
<!-- :valueSingle="true"></input-select>-->
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
<div class="form-group col-sm-6">
|
|
259
|
+
<label class="col-sm-4 control-label">安装日期:</label>
|
|
260
|
+
<div class="col-sm-8">
|
|
261
|
+
<!-- <input class="form-control input_view" style=""
|
|
262
|
+
v-model="item.f_install_date"
|
|
263
|
+
:value.sync="installdate(item.f_install_date)"
|
|
264
|
+
placeholder="安装日期"
|
|
265
|
+
:readonly="mark === 1"
|
|
266
|
+
/>-->
|
|
267
|
+
<datepicker
|
|
268
|
+
placeholder="安装日期"
|
|
269
|
+
:value.sync="item.f_install_date"
|
|
270
|
+
v-model="item.f_install_date"
|
|
271
|
+
:default="true"
|
|
272
|
+
:format="'yyyy-MM-dd'"
|
|
273
|
+
:disabled="mark === 1"
|
|
274
|
+
:show-reset-button="reset">
|
|
275
|
+
</datepicker>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
<div class="form-group col-sm-6">
|
|
279
|
+
<label class="col-sm-4 control-label">生产日期:</label>
|
|
280
|
+
<div class="col-sm-8">
|
|
281
|
+
<datepicker
|
|
282
|
+
placeholder="生产日期"
|
|
283
|
+
:value.sync="item.f_factory_date"
|
|
284
|
+
v-model="item.f_factory_date"
|
|
285
|
+
:format="'yyyy-MM-dd'"
|
|
286
|
+
:default="true"
|
|
287
|
+
:disabled="mark === 1"
|
|
288
|
+
:show-reset-button="reset">
|
|
289
|
+
</datepicker>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
|
|
294
|
+
</article>
|
|
295
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
296
|
+
<template v-if="mark !== 1">
|
|
297
|
+
<!-- 去除一户多表 -->
|
|
298
|
+
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
299
|
+
</template>
|
|
300
|
+
</footer>
|
|
301
|
+
</modal>
|
|
302
|
+
</template>
|
|
303
|
+
<script>
|
|
304
|
+
import Vue from 'vue'
|
|
305
|
+
import {PagedList} from 'vue-client'
|
|
306
|
+
import {HttpResetClass} from 'vue-client'
|
|
307
|
+
import {isEmpty} from '../../../components/Util'
|
|
308
|
+
// Date格式化
|
|
309
|
+
Date.prototype.Format = function (fmt) {
|
|
310
|
+
var o = {
|
|
311
|
+
'M+': this.getMonth() + 1, // 月份
|
|
312
|
+
'd+': this.getDate(), // 日
|
|
313
|
+
'H+': this.getHours(), // 小时
|
|
314
|
+
'm+': this.getMinutes(), // 分
|
|
315
|
+
's+': this.getSeconds(), // 秒
|
|
316
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
317
|
+
'S': this.getMilliseconds() // 毫秒
|
|
318
|
+
}
|
|
319
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
320
|
+
for (var k in o) {
|
|
321
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
322
|
+
}
|
|
323
|
+
return fmt
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export default {
|
|
327
|
+
title: '安装明细',
|
|
328
|
+
props: {
|
|
329
|
+
selectdata: {
|
|
330
|
+
type: Object
|
|
331
|
+
},
|
|
332
|
+
mark: {
|
|
333
|
+
type: Number,
|
|
334
|
+
default: 0
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
data () {
|
|
338
|
+
return {
|
|
339
|
+
showFile: false,
|
|
340
|
+
showUserFile: false,
|
|
341
|
+
model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
|
|
342
|
+
meterbrands: [], // 气表品牌
|
|
343
|
+
useradders: null,
|
|
344
|
+
userinfo: {},
|
|
345
|
+
getfield: {
|
|
346
|
+
'f_address': '地址',
|
|
347
|
+
'f_user_name': '用户姓名/单位名称',
|
|
348
|
+
'f_meternumber': '表号',
|
|
349
|
+
'f_gasbrand': '气表品牌',
|
|
350
|
+
'f_gasmodel': '气表型号',
|
|
351
|
+
'f_metertitles': '表封号',
|
|
352
|
+
'f_meter_base': '表读数',
|
|
353
|
+
'f_initial_base': '初始底数',
|
|
354
|
+
'f_aroundmeter': '表向',
|
|
355
|
+
'f_user_phone': '电话',
|
|
356
|
+
'f_userinfo_comments': '备注',
|
|
357
|
+
'f_position': '安装位置',
|
|
358
|
+
'f_userinfo_code': '用户编号',
|
|
359
|
+
'f_material_name': '材料名称',
|
|
360
|
+
'f_material_style': '材料型号',
|
|
361
|
+
'f_material_price': '材料价格',
|
|
362
|
+
'f_material_unit': '材料单位',
|
|
363
|
+
'f_material_number': '材料数量'
|
|
364
|
+
},
|
|
365
|
+
showWork: false
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
ready () {
|
|
369
|
+
this.search()
|
|
370
|
+
this.getMeterbrands()
|
|
371
|
+
},
|
|
372
|
+
methods: {
|
|
373
|
+
// 保存档案
|
|
374
|
+
async saveUserFile() {
|
|
375
|
+
// 检查必填项
|
|
376
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
377
|
+
let userfile = this.userinfo.userfiles[i]
|
|
378
|
+
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
379
|
+
this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
|
|
380
|
+
return
|
|
381
|
+
}
|
|
382
|
+
if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
|
|
383
|
+
this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
|
|
384
|
+
return
|
|
385
|
+
}
|
|
386
|
+
/*if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
|
|
387
|
+
this.$showMessage(`表具${i+1}表号没有填写!!!`)
|
|
388
|
+
return
|
|
389
|
+
}*/
|
|
390
|
+
}
|
|
391
|
+
let data = {
|
|
392
|
+
user: this.$login.f,
|
|
393
|
+
useradders: this.useradders,
|
|
394
|
+
userinfo: this.userinfo,
|
|
395
|
+
selectdata: this.selectdata
|
|
396
|
+
}
|
|
397
|
+
let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
|
|
398
|
+
resolveMsg: null,
|
|
399
|
+
rejectMsg: '表具添加失败!!!'
|
|
400
|
+
})
|
|
401
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
402
|
+
},
|
|
403
|
+
// 检查表号是否存在
|
|
404
|
+
async meternumberValidate(i) {
|
|
405
|
+
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
406
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
407
|
+
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
408
|
+
return
|
|
409
|
+
}
|
|
410
|
+
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
411
|
+
let data = {
|
|
412
|
+
f_meternumber: this.userinfo.userfiles[i].f_meternumber,
|
|
413
|
+
f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
|
|
414
|
+
}
|
|
415
|
+
if (this.userinfo.userfiles[i].f_userfiles_id) {
|
|
416
|
+
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
417
|
+
}
|
|
418
|
+
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
|
|
419
|
+
resolveMsg: null,
|
|
420
|
+
rejectMsg: '表号验证失败!!'
|
|
421
|
+
})
|
|
422
|
+
if (res.data) {
|
|
423
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
424
|
+
this.$showAlert('表号已存在!!', 'warning', 3000)
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
// 选择气表型号
|
|
429
|
+
gasmodelChange(i) {
|
|
430
|
+
if (this.userinfo.userfiles[i].gasmodel) {
|
|
431
|
+
this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
// 选择气表品牌
|
|
435
|
+
gasbrandChange(i) {
|
|
436
|
+
// 清空已保存的气表型号
|
|
437
|
+
this.userinfo.userfiles[i].f_gasmodel_id = null
|
|
438
|
+
this.userinfo.userfiles[i].gasmodel = null
|
|
439
|
+
|
|
440
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
441
|
+
// 气表品牌id
|
|
442
|
+
this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
|
|
443
|
+
// 气表分类
|
|
444
|
+
this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
// 打开安装明细
|
|
448
|
+
async showUserFileModal (row) {
|
|
449
|
+
this.useradders = row
|
|
450
|
+
|
|
451
|
+
let http = new HttpResetClass()
|
|
452
|
+
let data = {
|
|
453
|
+
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
454
|
+
}
|
|
455
|
+
let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
|
|
456
|
+
resolveMsg: null,
|
|
457
|
+
rejectMsg: null
|
|
458
|
+
})
|
|
459
|
+
|
|
460
|
+
this.userinfo = res.data
|
|
461
|
+
|
|
462
|
+
// 已有表具的 气表信息补充
|
|
463
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
464
|
+
for (const item of this.meterbrands) {
|
|
465
|
+
if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
466
|
+
// this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
|
|
467
|
+
Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
471
|
+
for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
|
|
472
|
+
if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
|
|
473
|
+
// this.userinfo.userfiles[i].gasmodel = item.value
|
|
474
|
+
Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
this.showUserFile = true
|
|
481
|
+
},
|
|
482
|
+
// 获取气表品牌
|
|
483
|
+
async getMeterbrands() {
|
|
484
|
+
let http = new HttpResetClass()
|
|
485
|
+
let data = {
|
|
486
|
+
f_orgid: this.$login.f.orgid
|
|
487
|
+
}
|
|
488
|
+
let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
|
|
489
|
+
resolveMsg: null,
|
|
490
|
+
rejectMsg: null
|
|
491
|
+
})
|
|
492
|
+
this.meterbrands = res.data
|
|
493
|
+
},
|
|
494
|
+
searchCondition (args) {
|
|
495
|
+
var tablestate=''
|
|
496
|
+
if(this.selectdata.f_sub_state==='完工' ){
|
|
497
|
+
tablestate='正常'
|
|
498
|
+
}else{
|
|
499
|
+
tablestate='待开通'
|
|
500
|
+
}
|
|
501
|
+
if (this.selectdata.f_apply_type === '居民团体单户报建' || this.selectdata.f_apply_type === '其他报建') {
|
|
502
|
+
args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
|
|
503
|
+
} else {
|
|
504
|
+
args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
505
|
+
}
|
|
506
|
+
this.model.search(args.condition, args.model,tablestate)
|
|
507
|
+
},
|
|
508
|
+
// 查询
|
|
509
|
+
async search () {
|
|
510
|
+
this.$refs.cp.$refs.cri.search()
|
|
511
|
+
},
|
|
512
|
+
// 关闭安装明细
|
|
513
|
+
closeUserFile() {
|
|
514
|
+
this.showUserFile = false
|
|
515
|
+
this.useradders = null
|
|
516
|
+
this.userinfo = {}
|
|
517
|
+
this.search()
|
|
518
|
+
},
|
|
519
|
+
|
|
520
|
+
},
|
|
521
|
+
events: {
|
|
522
|
+
},
|
|
523
|
+
computed: {
|
|
524
|
+
getCondition () {
|
|
525
|
+
let condition = `ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
526
|
+
|
|
527
|
+
return {
|
|
528
|
+
condition: condition
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
// 调压箱初始化
|
|
532
|
+
adjustables () {
|
|
533
|
+
let data = {
|
|
534
|
+
tablename: 't_adjustablebox',
|
|
535
|
+
condition: `f_filialeid = '${this.$login.f.orgid}' and f_adjustable_state = '正常'`
|
|
536
|
+
}
|
|
537
|
+
let arr = []
|
|
538
|
+
new HttpResetClass().load('POST', 'rs/sql/apply_singleTable', {data:data}, {
|
|
539
|
+
resolveMsg: null,
|
|
540
|
+
rejectMsg: null
|
|
541
|
+
}).then((res) => {
|
|
542
|
+
res.data.forEach((item) => {
|
|
543
|
+
let temp = {}
|
|
544
|
+
temp.label = `[${item.f_adjustable_id}]-${item.f_adjustable_name}`
|
|
545
|
+
temp.value = item.f_adjustable_id
|
|
546
|
+
arr.push(temp)
|
|
547
|
+
})
|
|
548
|
+
return arr
|
|
549
|
+
})
|
|
550
|
+
},
|
|
551
|
+
// 安装人
|
|
552
|
+
installperson() {
|
|
553
|
+
return function (f_install_person) {
|
|
554
|
+
if (isEmpty(f_install_person)) {
|
|
555
|
+
return this.$login.f.name
|
|
556
|
+
}
|
|
557
|
+
return f_install_person
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
installdate() {
|
|
561
|
+
return function (f_install_date) {
|
|
562
|
+
if (isEmpty(f_install_date)) {
|
|
563
|
+
return new Date().Format('yyyy-MM-dd')
|
|
564
|
+
}
|
|
565
|
+
return f_install_date
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
// 表向
|
|
569
|
+
aroundmeters() {
|
|
570
|
+
return this.$appdata.getParam('左右表')
|
|
571
|
+
},
|
|
572
|
+
// 安装位置
|
|
573
|
+
positions() {
|
|
574
|
+
return this.$appdata.getParam('安装位置')
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
watch: {
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
</script>
|
|
581
|
+
<style scoped>
|
|
582
|
+
.head-but{
|
|
583
|
+
margin-left: 5px;
|
|
584
|
+
height: 34px;
|
|
585
|
+
/*background-color: #6aa6e2;*/
|
|
586
|
+
border-radius: 4px;
|
|
587
|
+
font-family: PingFang;
|
|
588
|
+
color: #ffffff;
|
|
589
|
+
}
|
|
590
|
+
/*清除model中的浮动*/
|
|
591
|
+
.clearfix:after,.clearfix:before{
|
|
592
|
+
display: table;
|
|
593
|
+
}
|
|
594
|
+
.clearfix:after{
|
|
595
|
+
clear: both;
|
|
596
|
+
}
|
|
597
|
+
.input_view{
|
|
598
|
+
padding: 8px;
|
|
599
|
+
background-color: #ffffff;
|
|
600
|
+
border-radius: 2px;
|
|
601
|
+
border: solid 1px #c7c7c7!important;
|
|
602
|
+
color: #333333!important;
|
|
603
|
+
font-size: 15px!important;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.input_view[readonly]{
|
|
607
|
+
border: 1px solid #DDD!important;
|
|
608
|
+
color:#ACA899!important;
|
|
609
|
+
}
|
|
610
|
+
.input_view:disabled{
|
|
611
|
+
border: 1px solid #DDD!important;
|
|
612
|
+
color:#ACA899!important;
|
|
613
|
+
}
|
|
614
|
+
</style>
|