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,683 +1,683 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
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>
|
|
7
|
-
</criteria>
|
|
8
|
-
<data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
|
|
9
|
-
<template partial='head'>
|
|
10
|
-
<tr>
|
|
11
|
-
<th>序号</th>
|
|
12
|
-
<th>客户编号</th>
|
|
13
|
-
<th>客户名称</th>
|
|
14
|
-
<th>客户电话</th>
|
|
15
|
-
<th>地址信息</th>
|
|
16
|
-
<th>表号</th>
|
|
17
|
-
<th>气表品牌</th>
|
|
18
|
-
<th>气表型号</th>
|
|
19
|
-
<th>
|
|
20
|
-
<button
|
|
21
|
-
v-if="$parent.$parent.$parent.selectdata.defname === '工程施工'"
|
|
22
|
-
type="button"
|
|
23
|
-
class="btn btn-info head-but"
|
|
24
|
-
@click="$parent.$parent.$parent.openSign()"
|
|
25
|
-
>签字照片
|
|
26
|
-
</button>
|
|
27
|
-
</th>
|
|
28
|
-
</tr>
|
|
29
|
-
</template>
|
|
30
|
-
<template partial='body'>
|
|
31
|
-
<tr>
|
|
32
|
-
<td style="text-align: center;">
|
|
33
|
-
<nobr>{{ $index + 1 }}</nobr>
|
|
34
|
-
</td>
|
|
35
|
-
<td style="text-align: center;">
|
|
36
|
-
<nobr>{{ row.f_userinfo_id }}</nobr>
|
|
37
|
-
</td>
|
|
38
|
-
<td style="text-align: center;">
|
|
39
|
-
<nobr>{{ row.f_user_name }}</nobr>
|
|
40
|
-
</td>
|
|
41
|
-
<td style="text-align: center;">
|
|
42
|
-
<nobr>{{ row.f_user_phone }}</nobr>
|
|
43
|
-
</td>
|
|
44
|
-
<td style="text-align: center;">
|
|
45
|
-
<nobr>{{ row.f_address }}{{ row.f_address_detail }}</nobr>
|
|
46
|
-
</td>
|
|
47
|
-
<td style="text-align: center;">
|
|
48
|
-
<nobr>{{ row.f_meternumber }}</nobr>
|
|
49
|
-
</td>
|
|
50
|
-
<td style="text-align: center;">
|
|
51
|
-
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
52
|
-
</td>
|
|
53
|
-
<td style="text-align: center;">
|
|
54
|
-
<nobr>{{ row.f_meter_style }}</nobr>
|
|
55
|
-
</td>
|
|
56
|
-
<td style="text-align: center;">
|
|
57
|
-
<nobr>
|
|
58
|
-
<button
|
|
59
|
-
type="button" name="button" class="btn btn-link"
|
|
60
|
-
@click="$parent.$parent.$parent.openModal(row)">
|
|
61
|
-
{{ $parent.$parent.$parent.mark === 1 || row.f_user_state === '正常' ? '查看' : '修正' }}
|
|
62
|
-
</button>
|
|
63
|
-
</nobr>
|
|
64
|
-
</td>
|
|
65
|
-
</tr>
|
|
66
|
-
</template>
|
|
67
|
-
</data-grid>
|
|
68
|
-
</criteria-paged>
|
|
69
|
-
</div>
|
|
70
|
-
|
|
71
|
-
<modal v-if="Sign" :show.sync="Sign" v-ref:modal :large="true" :backdrop="false">
|
|
72
|
-
<header slot="modal-header" class="modal-header">
|
|
73
|
-
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
74
|
-
<h4 class="modal-title">用户签字</h4>
|
|
75
|
-
</header>
|
|
76
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
77
|
-
<div class="left col-sm-6 col-xs-6">
|
|
78
|
-
<img-self :src="fileurl" width="100%" height="100%"></img-self>
|
|
79
|
-
</div>
|
|
80
|
-
</article>
|
|
81
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
82
|
-
<template v-if="mark !== 1 && userinfo.f_user_state !== '正常'">
|
|
83
|
-
</template>
|
|
84
|
-
</footer>
|
|
85
|
-
</modal>
|
|
86
|
-
<validator name="v">
|
|
87
|
-
<modal v-if="showModal" :show.sync="showModal" v-ref:modal :large="true" :backdrop="false">
|
|
88
|
-
<header slot="modal-header" class="modal-header">
|
|
89
|
-
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
90
|
-
<h4 class="modal-title">安装明细</h4>
|
|
91
|
-
</header>
|
|
92
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
93
|
-
<!-- 表具信息 -->
|
|
94
|
-
<div class="form-group col-sm-12 panel panel-info" v-if="showUserFile">
|
|
95
|
-
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
96
|
-
<div class="col-sm-6 text-left">旧表具信息</div>
|
|
97
|
-
</div>
|
|
98
|
-
<div class="form-group col-sm-6" :class="[$v.f_gasbrand_id.required ? 'has-error' : '']">
|
|
99
|
-
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
100
|
-
<div class="col-sm-8">
|
|
101
|
-
<input type="text" v-show="false" v-model="userfile.f_gasbrand_id" :value.sync="userfile.f_gasbrand_id"
|
|
102
|
-
v-validate:f_gasbrand_id="['required']">
|
|
103
|
-
<input-select
|
|
104
|
-
class="select select_list"
|
|
105
|
-
:value.sync="userfile.f_gasbrand_id"
|
|
106
|
-
v-model="userfile.f_gasbrand_id"
|
|
107
|
-
:options="meterBrandList"
|
|
108
|
-
@change="gasbrandChange()"
|
|
109
|
-
:disable="mark === 1 || userinfo.f_user_state === '正常' || gasbrandDisable"
|
|
110
|
-
:valueSingle="true"></input-select>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="form-group col-sm-6" :class="[$v.f_gasmodel_id.required ? 'has-error' : '']">
|
|
114
|
-
<label class="col-sm-4 control-label">气表型号:</label>
|
|
115
|
-
<div class="col-sm-8">
|
|
116
|
-
<input type="text" v-show="false" v-model="userfile.f_gasmodel_id" :value.sync="userfile.f_gasmodel_id"
|
|
117
|
-
v-validate:f_gasmodel_id="['required']">
|
|
118
|
-
<input-select
|
|
119
|
-
class="select select_list"
|
|
120
|
-
:value.sync="userfile.f_gasmodel_id"
|
|
121
|
-
v-model="userfile.f_gasmodel_id"
|
|
122
|
-
:options.sync="gasModelList"
|
|
123
|
-
:disable="mark === 1 || userinfo.f_user_state === '正常' || gasbrandDisable"
|
|
124
|
-
:valueSingle="true"></input-select>
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
<div class="form-group col-sm-6" :class="[$v.f_meternumber.required ? 'has-error' : '']">
|
|
128
|
-
<label class="col-sm-4 control-label">表  号:</label>
|
|
129
|
-
<div class="col-sm-8">
|
|
130
|
-
<input class="form-control input_view" style=""
|
|
131
|
-
placeholder="表号" v-validate:f_meternumber="['required']"
|
|
132
|
-
v-model="newUserfile.f_meternumber"
|
|
133
|
-
:value.sync="userfile.f_meternumber"
|
|
134
|
-
:readonly="mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
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="newUserfile.f_metertitles"
|
|
143
|
-
:value="userfile.f_metertitles"
|
|
144
|
-
:readonly="mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
<div class="form-group col-sm-6">
|
|
148
|
-
<label class="col-sm-4 control-label">表 读 数:</label>
|
|
149
|
-
<div class="col-sm-8">
|
|
150
|
-
<input class="form-control input_view" style=""
|
|
151
|
-
type="number"
|
|
152
|
-
placeholder="表读数"
|
|
153
|
-
v-model="newUserfile.f_meter_base"
|
|
154
|
-
:value="userfile.f_meter_base"
|
|
155
|
-
:readonly="mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
<div class="form-group col-sm-6">
|
|
159
|
-
<label class="col-sm-4 control-label">初始底数:</label>
|
|
160
|
-
<div class="col-sm-8">
|
|
161
|
-
<input class="form-control input_view" style=""
|
|
162
|
-
type="number"
|
|
163
|
-
v-model="newUserfile.f_initial_base"
|
|
164
|
-
:value="userfile.f_initial_base"
|
|
165
|
-
placeholder="初始底数"
|
|
166
|
-
:readonly="mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
|
-
<div class="form-group col-sm-6">
|
|
170
|
-
<label class="col-sm-4 control-label">表  向:</label>
|
|
171
|
-
<div class="col-sm-8">
|
|
172
|
-
<input-select
|
|
173
|
-
class="select select_list"
|
|
174
|
-
:value.sync="userfile.f_aroundmeter"
|
|
175
|
-
v-model="newUserfile.f_aroundmeter"
|
|
176
|
-
:options="aroundmeters"
|
|
177
|
-
:disable="mark === 1 || userinfo.f_user_state === '正常'"
|
|
178
|
-
:valueSingle="true"></input-select>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
<div class="form-group col-sm-6">
|
|
182
|
-
<label class="col-sm-4 control-label">安装位置:</label>
|
|
183
|
-
<div class="col-sm-8">
|
|
184
|
-
<input-select
|
|
185
|
-
class="select select_list"
|
|
186
|
-
:value.sync="userfile.f_position"
|
|
187
|
-
v-model="newUserfile.f_position"
|
|
188
|
-
:options="positions"
|
|
189
|
-
:disable="mark === 1 || userinfo.f_user_state === '正常'"
|
|
190
|
-
:valueSingle="true"></input-select>
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
<div class="form-group col-sm-6">
|
|
194
|
-
<label class="col-sm-4 control-label">安 装 人:</label>
|
|
195
|
-
<div class="col-sm-8">
|
|
196
|
-
<input class="form-control input_view" style=""
|
|
197
|
-
v-model="newUserfile.f_install_person"
|
|
198
|
-
:value.sync="installperson(userfile.f_install_person)"
|
|
199
|
-
placeholder="安装人"
|
|
200
|
-
readonly/>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
<div class="form-group col-sm-6">
|
|
204
|
-
<label class="col-sm-4 control-label">安装日期:</label>
|
|
205
|
-
<div class="col-sm-8">
|
|
206
|
-
<input class="form-control input_view" style=""
|
|
207
|
-
v-model="newUserfile.f_install_date"
|
|
208
|
-
:value.sync="installdate(userfile.f_install_date)"
|
|
209
|
-
placeholder="安装日期"
|
|
210
|
-
readonly/>
|
|
211
|
-
</div>
|
|
212
|
-
</div>
|
|
213
|
-
<div class="form-group col-sm-6">
|
|
214
|
-
<button type="button" class="btn btn-primary" @click="showNewUserFile = !showNewUserFile">换表</button>
|
|
215
|
-
</div>
|
|
216
|
-
<div class="form-group col-sm-12 panel panel-info" v-if="showNewUserFile || newUserfile.f_new_gasbrand_id">
|
|
217
|
-
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
218
|
-
<div class="col-sm-6 text-left">新表具信息</div>
|
|
219
|
-
</div>
|
|
220
|
-
<div class="form-group col-sm-6" :class="[$v.f_gasbrand_id.required ? 'has-error' : '']">
|
|
221
|
-
<label class="col-sm-4 control-label">新气表品牌:</label>
|
|
222
|
-
<div class="col-sm-8">
|
|
223
|
-
<input type="text" v-show="false" v-model="newUserfile.f_new_gasbrand_id"
|
|
224
|
-
:value.sync="newUserfile.f_new_gasbrand_id">
|
|
225
|
-
<input-select
|
|
226
|
-
class="select select_list"
|
|
227
|
-
:value.sync="newUserfile.f_new_gasbrand_id"
|
|
228
|
-
v-model="newUserfile.f_new_gasbrand_id"
|
|
229
|
-
:options="meterBrandList"
|
|
230
|
-
@change="gasbrandChange()"
|
|
231
|
-
:disable="mark === 1 || gasbrandDisable"
|
|
232
|
-
:valueSingle="true"></input-select>
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
<div class="form-group col-sm-6">
|
|
236
|
-
<label class="col-sm-4 control-label">新气表型号:</label>
|
|
237
|
-
<div class="col-sm-8">
|
|
238
|
-
<input type="text" v-show="false" v-model="newUserfile.f_new_gasmodel_id"
|
|
239
|
-
:value.sync="newUserfile.f_new_gasmodel_id">
|
|
240
|
-
<input-select
|
|
241
|
-
class="select select_list"
|
|
242
|
-
:value.sync="newUserfile.f_new_gasmodel_id"
|
|
243
|
-
v-model="newUserfile.f_new_gasmodel_id"
|
|
244
|
-
:options.sync="newgasModelList"
|
|
245
|
-
:disable="mark === 1 || gasbrandDisable"
|
|
246
|
-
:valueSingle="true"></input-select>
|
|
247
|
-
</div>
|
|
248
|
-
</div>
|
|
249
|
-
<div class="form-group col-sm-6">
|
|
250
|
-
<label class="col-sm-4 control-label">新 表 号:</label>
|
|
251
|
-
<div class="col-sm-8">
|
|
252
|
-
<input class="form-control input_view" style=""
|
|
253
|
-
placeholder="新表号"
|
|
254
|
-
v-model="newUserfile.f_new_meternumber"
|
|
255
|
-
:value.sync="newUserfile.f_new_meternumber"
|
|
256
|
-
@change="meternumberValidate()"
|
|
257
|
-
:readonly="mark === 1"/>
|
|
258
|
-
</div>
|
|
259
|
-
</div>
|
|
260
|
-
<div class="form-group col-sm-6">
|
|
261
|
-
<label class="col-sm-4 control-label">新表封号:</label>
|
|
262
|
-
<div class="col-sm-8">
|
|
263
|
-
<input class="form-control input_view" style=""
|
|
264
|
-
placeholder="新表封号"
|
|
265
|
-
v-model="newUserfile.f_new_metertitles"
|
|
266
|
-
:value="newUserfile.f_new_metertitles"
|
|
267
|
-
:readonly="mark === 1"/>
|
|
268
|
-
</div>
|
|
269
|
-
</div>
|
|
270
|
-
<div class="form-group col-sm-6">
|
|
271
|
-
<label class="col-sm-4 control-label">新表读数:</label>
|
|
272
|
-
<div class="col-sm-8">
|
|
273
|
-
<input class="form-control input_view" style=""
|
|
274
|
-
type="number"
|
|
275
|
-
placeholder="新表读数"
|
|
276
|
-
v-model="newUserfile.f_new_meter_base"
|
|
277
|
-
:value="newUserfile.f_new_meter_base"
|
|
278
|
-
:readonly="mark === 1"/>
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
<div class="form-group col-sm-6">
|
|
282
|
-
<label class="col-sm-4 control-label">新初始底数:</label>
|
|
283
|
-
<div class="col-sm-8">
|
|
284
|
-
<input class="form-control input_view" style=""
|
|
285
|
-
type="number"
|
|
286
|
-
v-model="newUserfile.f_new_initial_base"
|
|
287
|
-
:value="newUserfile.f_new_initial_base"
|
|
288
|
-
placeholder="新初始底数"
|
|
289
|
-
:readonly="mark === 1"/>
|
|
290
|
-
</div>
|
|
291
|
-
</div>
|
|
292
|
-
<div class="form-group col-sm-6">
|
|
293
|
-
<label class="col-sm-4 control-label">新 表 向:</label>
|
|
294
|
-
<div class="col-sm-8">
|
|
295
|
-
<input-select
|
|
296
|
-
class="select select_list"
|
|
297
|
-
:value.sync="newUserfile.f_new_aroundmeter"
|
|
298
|
-
v-model="newUserfile.f_new_aroundmeter"
|
|
299
|
-
:options="aroundmeters"
|
|
300
|
-
:disable="mark === 1"
|
|
301
|
-
:valueSingle="true"></input-select>
|
|
302
|
-
</div>
|
|
303
|
-
</div>
|
|
304
|
-
<div class="form-group col-sm-6">
|
|
305
|
-
<label class="col-sm-4 control-label">新安装位置:</label>
|
|
306
|
-
<div class="col-sm-8">
|
|
307
|
-
<input-select
|
|
308
|
-
class="select select_list"
|
|
309
|
-
:value.sync="newUserfile.f_new_position"
|
|
310
|
-
v-model="newUserfile.f_new_position"
|
|
311
|
-
:options="positions"
|
|
312
|
-
:disable="mark === 1"
|
|
313
|
-
:valueSingle="true"></input-select>
|
|
314
|
-
</div>
|
|
315
|
-
</div>
|
|
316
|
-
</div>
|
|
317
|
-
</div>
|
|
318
|
-
</article>
|
|
319
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
320
|
-
<template v-if="mark !== 1">
|
|
321
|
-
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
322
|
-
</template>
|
|
323
|
-
</footer>
|
|
324
|
-
</modal>
|
|
325
|
-
</validator>
|
|
326
|
-
</template>
|
|
327
|
-
<script>
|
|
328
|
-
import Vue from 'vue'
|
|
329
|
-
import {PagedList} from 'vue-client'
|
|
330
|
-
import {HttpResetClass} from 'vue-client'
|
|
331
|
-
import {isEmpty} from '../../../Util'
|
|
332
|
-
// Date格式化
|
|
333
|
-
Date.prototype.Format = function (fmt) {
|
|
334
|
-
var o = {
|
|
335
|
-
'M+': this.getMonth() + 1, // 月份
|
|
336
|
-
'd+': this.getDate(), // 日
|
|
337
|
-
'H+': this.getHours(), // 小时
|
|
338
|
-
'm+': this.getMinutes(), // 分
|
|
339
|
-
's+': this.getSeconds(), // 秒
|
|
340
|
-
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
341
|
-
'S': this.getMilliseconds() // 毫秒
|
|
342
|
-
}
|
|
343
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
344
|
-
for (var k in o) {
|
|
345
|
-
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
346
|
-
}
|
|
347
|
-
return fmt
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
export default {
|
|
351
|
-
title: '安装明细',
|
|
352
|
-
props: {
|
|
353
|
-
selectdata: {
|
|
354
|
-
type: Object
|
|
355
|
-
},
|
|
356
|
-
mark: {
|
|
357
|
-
type: Number,
|
|
358
|
-
default: 0
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
data() {
|
|
362
|
-
return {
|
|
363
|
-
gasbrandDisable: false,
|
|
364
|
-
showModal: false,
|
|
365
|
-
model: new PagedList('rs/sql/getApplyUserinfo', 20, null),
|
|
366
|
-
areaList: [],
|
|
367
|
-
area: {},
|
|
368
|
-
userinfo: {},
|
|
369
|
-
userfile: {},
|
|
370
|
-
newUserfile: {},
|
|
371
|
-
meterBrandList: [],
|
|
372
|
-
gasModelList: [],
|
|
373
|
-
newgasModelList: [],
|
|
374
|
-
Sign: false,
|
|
375
|
-
fileurl: null,
|
|
376
|
-
showUserinfo: {},
|
|
377
|
-
showNewUserFile: false
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
ready() {
|
|
381
|
-
this.search()
|
|
382
|
-
this.getMeterBrand()
|
|
383
|
-
},
|
|
384
|
-
methods: {
|
|
385
|
-
// 保存档案
|
|
386
|
-
async saveUserFile() {
|
|
387
|
-
let data = {
|
|
388
|
-
user: this.$login.f,
|
|
389
|
-
userinfo: this.userinfo,
|
|
390
|
-
userfile: this.userfile,
|
|
391
|
-
newUserfile: this.newUserfile,
|
|
392
|
-
selectdata: this.selectdata
|
|
393
|
-
}
|
|
394
|
-
let res = await this.$resetpost('rs/logic/ApplyAddNweUserfiles', {data: data}, {
|
|
395
|
-
resolveMsg: null,
|
|
396
|
-
rejectMsg: '新表具信息报错!!!'
|
|
397
|
-
})
|
|
398
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
399
|
-
},
|
|
400
|
-
ifDisable() {
|
|
401
|
-
if (this.selectdata.f_apply_type === '非民用报建' && this.selectdata.defname === '工程施工') {
|
|
402
|
-
this.gasbrandDisable = true
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
// 检查表号是否存在
|
|
406
|
-
async meternumberValidate() {
|
|
407
|
-
if (!this.newUserfile.f_gasbrand_id) {
|
|
408
|
-
this.newUserfile.f_meternumber = ''
|
|
409
|
-
this.$showMessage('请先选择气表品牌!!!')
|
|
410
|
-
return
|
|
411
|
-
}
|
|
412
|
-
if (this.newUserfile.f_new_gasbrand_id && this.newUserfile.f_new_meternumber) {
|
|
413
|
-
let data = {
|
|
414
|
-
f_meternumber: this.newUserfile.f_new_meternumber,
|
|
415
|
-
f_gasbrand_id: this.newUserfile.f_new_gasbrand_id
|
|
416
|
-
}
|
|
417
|
-
if (this.newUserfile.f_user_id) {
|
|
418
|
-
data.f_user_id = this.newUserfile.f_user_id
|
|
419
|
-
}
|
|
420
|
-
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data: data}, {
|
|
421
|
-
resolveMsg: null,
|
|
422
|
-
rejectMsg: '表号验证失败!!'
|
|
423
|
-
})
|
|
424
|
-
console.log(`查询结果${res.data}`)
|
|
425
|
-
console.log(res.data)
|
|
426
|
-
if (res.data === '表号已存在' || res.data === '表号无效') {
|
|
427
|
-
this.newUserfile.f_meternumber = ''
|
|
428
|
-
this.$showMessage(res.data)
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
// 选择气表品牌
|
|
433
|
-
async gasbrandChange() {
|
|
434
|
-
// 清空已保存的气表型号
|
|
435
|
-
// this.newUserfile.f_new_gasmodel_id = null
|
|
436
|
-
if (isEmpty(this.newUserfile.f_new_gasbrand_id)) {
|
|
437
|
-
return
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
let data = {
|
|
441
|
-
f_gasbrand_id: this.newUserfile.f_new_gasbrand_id
|
|
442
|
-
}
|
|
443
|
-
let http = new HttpResetClass()
|
|
444
|
-
let res = await http.load(
|
|
445
|
-
'POST',
|
|
446
|
-
`rs/sql/getGasModel`,
|
|
447
|
-
{data: data},
|
|
448
|
-
{resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
|
|
449
|
-
)
|
|
450
|
-
|
|
451
|
-
this.newgasModelList = res.data
|
|
452
|
-
|
|
453
|
-
data = {
|
|
454
|
-
tablename: 't_gasbrand',
|
|
455
|
-
condition: `id = '${this.newUserfile.f_new_gasbrand_id}'`
|
|
456
|
-
}
|
|
457
|
-
res = await http.load(
|
|
458
|
-
'POST',
|
|
459
|
-
`rs/sql/applySingleTable`,
|
|
460
|
-
{data: data},
|
|
461
|
-
{resolveMsg: null, rejectMsg: '表具类型查询失败!!!'}
|
|
462
|
-
)
|
|
463
|
-
this.newUserfile.f_new_meter_classify = res.data[0].f_meter_type
|
|
464
|
-
},
|
|
465
|
-
openSign() {
|
|
466
|
-
this.getFiles()
|
|
467
|
-
this.Sign = true
|
|
468
|
-
},
|
|
469
|
-
async getFiles() {
|
|
470
|
-
let http = new HttpResetClass()
|
|
471
|
-
console.log('=========pc签字查看===============')
|
|
472
|
-
let data = {
|
|
473
|
-
tablename: 't_files',
|
|
474
|
-
condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '工程施工' and fremarks = '报装手机签字文件'`
|
|
475
|
-
}
|
|
476
|
-
let res = await http.load('POST', `rs/sql/applySingleTable`, {data: data}, {
|
|
477
|
-
warnMsg: null,
|
|
478
|
-
resolveMsg: null
|
|
479
|
-
})
|
|
480
|
-
if (res.data.length > 0) {
|
|
481
|
-
console.log('=========签字地址===============', res.data[0])
|
|
482
|
-
let URL = res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)
|
|
483
|
-
res.data[0].f_downloadURL = "http://" + location.host + "/" + URL
|
|
484
|
-
console.log("=====查看文件地址=====", res.data[0].f_downloadURL)
|
|
485
|
-
this.fileurl = res.data[0].f_downloadURL
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
// 打开安装明细
|
|
489
|
-
async openModal(row) {
|
|
490
|
-
this.ifDisable()
|
|
491
|
-
if (row) {
|
|
492
|
-
console.log('------------------修正---------------------', row)
|
|
493
|
-
this.userinfo = row
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
let data = {
|
|
497
|
-
tablename: 't_userfiles',
|
|
498
|
-
condition: `f_userinfo_id = ${row.f_userinfo_id}`
|
|
499
|
-
}
|
|
500
|
-
let http = new HttpResetClass()
|
|
501
|
-
let res = await http.load(
|
|
502
|
-
'POST',
|
|
503
|
-
`rs/sql/applySingleTable`,
|
|
504
|
-
{data: data},
|
|
505
|
-
{resolveMsg: null, rejectMsg: '表档案查询失败!!!'}
|
|
506
|
-
)
|
|
507
|
-
this.userfile = res.data[0]
|
|
508
|
-
let newdata = {
|
|
509
|
-
tablename: 't_userfiles_modify',
|
|
510
|
-
condition: `f_userinfo_id = ${row.f_userinfo_id}`
|
|
511
|
-
}
|
|
512
|
-
let newRes = await http.load(
|
|
513
|
-
'POST',
|
|
514
|
-
`rs/sql/applySingleTable`,
|
|
515
|
-
{data: newdata},
|
|
516
|
-
{resolveMsg: null, rejectMsg: '更换表档案查询失败!!!'}
|
|
517
|
-
)
|
|
518
|
-
if (newRes.data.length > 0) {
|
|
519
|
-
|
|
520
|
-
this.newUserfile = newRes.data[0]
|
|
521
|
-
if (!isEmpty(this.newUserfile.f_new_gasbrand_id)) {
|
|
522
|
-
let data = {
|
|
523
|
-
f_gasbrand_id: this.newUserfile.f_new_gasbrand_id
|
|
524
|
-
}
|
|
525
|
-
let res = await http.load(
|
|
526
|
-
'POST',
|
|
527
|
-
`rs/sql/getGasModel`,
|
|
528
|
-
{data: data},
|
|
529
|
-
{resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
|
|
530
|
-
)
|
|
531
|
-
this.newgasModelList = res.data
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
if (!isEmpty(this.userfile.f_gasbrand_id)) {
|
|
536
|
-
let data = {
|
|
537
|
-
f_gasbrand_id: this.userfile.f_gasbrand_id
|
|
538
|
-
}
|
|
539
|
-
let res = await http.load(
|
|
540
|
-
'POST',
|
|
541
|
-
`rs/sql/getGasModel`,
|
|
542
|
-
{data: data},
|
|
543
|
-
{resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
|
|
544
|
-
)
|
|
545
|
-
|
|
546
|
-
this.gasModelList = res.data
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
console.log('cssss', this.newUserfile)
|
|
550
|
-
this.showModal = true
|
|
551
|
-
},
|
|
552
|
-
// 获取气表品牌
|
|
553
|
-
async getMeterBrand() {
|
|
554
|
-
let data = {}
|
|
555
|
-
|
|
556
|
-
let http = new HttpResetClass()
|
|
557
|
-
let res = await http.load(
|
|
558
|
-
'POST',
|
|
559
|
-
`rs/sql/getMeterBrand`,
|
|
560
|
-
{data: data},
|
|
561
|
-
{resolveMsg: null, rejectMsg: '气表品牌查询失败!!!'}
|
|
562
|
-
)
|
|
563
|
-
|
|
564
|
-
this.meterBrandList = res.data
|
|
565
|
-
this.meterBrandList.push({label: '无', value: 'null'})
|
|
566
|
-
},
|
|
567
|
-
searchCondition(args) {
|
|
568
|
-
|
|
569
|
-
args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
|
|
570
|
-
|
|
571
|
-
this.model.search(args.condition, args.model)
|
|
572
|
-
},
|
|
573
|
-
// 查询
|
|
574
|
-
async search() {
|
|
575
|
-
this.$refs.cp.$refs.cri.search()
|
|
576
|
-
},
|
|
577
|
-
// 关闭安装明细
|
|
578
|
-
closeUserFile() {
|
|
579
|
-
this.showModal = false
|
|
580
|
-
this.area = {}
|
|
581
|
-
this.userinfo = {}
|
|
582
|
-
this.userfile = {}
|
|
583
|
-
this.gasModelList = {}
|
|
584
|
-
this.newgasModelList = {}
|
|
585
|
-
this.newUserfile = {}
|
|
586
|
-
this.Sign = {}
|
|
587
|
-
this.search()
|
|
588
|
-
}
|
|
589
|
-
//关闭导入弹框
|
|
590
|
-
},
|
|
591
|
-
events: {
|
|
592
|
-
},
|
|
593
|
-
computed: {
|
|
594
|
-
showAddress() {
|
|
595
|
-
return this.selectdata.f_apply_type === '民用报建'
|
|
596
|
-
},
|
|
597
|
-
showUserInfo() {
|
|
598
|
-
return this.selectdata.f_apply_type === '民用报建' && this.selectdata.f_apply_nature !== '分户挂表'
|
|
599
|
-
},
|
|
600
|
-
showUserFile() {
|
|
601
|
-
return (this.selectdata.f_apply_type === '民用报建' && this.selectdata.f_apply_nature !== '分户挂表' && this.selectdata.defname === '工程施工') ||
|
|
602
|
-
this.selectdata.f_apply_type === '非民用报建' ||
|
|
603
|
-
this.selectdata.f_apply_type === '设备变更' ||
|
|
604
|
-
this.selectdata.f_apply_type === '分户挂表'
|
|
605
|
-
},
|
|
606
|
-
showInstall() {
|
|
607
|
-
return this.showUserFile && (this.selectdata.defname === '工程施工' || this.selectdata.defname === '施工通气' || this.selectdata.defname === '点火通气')
|
|
608
|
-
},
|
|
609
|
-
// 证件类型
|
|
610
|
-
credentialsList() {
|
|
611
|
-
return this.$appdata.getParam('证件类型')
|
|
612
|
-
},
|
|
613
|
-
// 安装人
|
|
614
|
-
installperson() {
|
|
615
|
-
return function (f_install_person) {
|
|
616
|
-
if (isEmpty(f_install_person)) {
|
|
617
|
-
return this.$login.f.name
|
|
618
|
-
}
|
|
619
|
-
return f_install_person
|
|
620
|
-
}
|
|
621
|
-
},
|
|
622
|
-
// 安装时间
|
|
623
|
-
installdate() {
|
|
624
|
-
return function (f_install_date) {
|
|
625
|
-
if (isEmpty(f_install_date)) {
|
|
626
|
-
return new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
627
|
-
}
|
|
628
|
-
return f_install_date
|
|
629
|
-
}
|
|
630
|
-
},
|
|
631
|
-
// 表向
|
|
632
|
-
aroundmeters() {
|
|
633
|
-
return this.$appdata.getParam('左右表')
|
|
634
|
-
},
|
|
635
|
-
// 安装位置
|
|
636
|
-
positions() {
|
|
637
|
-
return this.$appdata.getParam('安装位置')
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
watch: {
|
|
641
|
-
'newUserfile.f_new_gasmodel_id'(oval, nval) {
|
|
642
|
-
console.log("ssssssssssss", nval, oval)
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
</script>
|
|
647
|
-
<style scoped>
|
|
648
|
-
.head-but {
|
|
649
|
-
margin-left: 5px;
|
|
650
|
-
height: 34px;
|
|
651
|
-
/*background-color: #6aa6e2;*/
|
|
652
|
-
border-radius: 4px;
|
|
653
|
-
font-family: PingFang;
|
|
654
|
-
color: #ffffff;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
/*清除model中的浮动*/
|
|
658
|
-
.clearfix:after, .clearfix:before {
|
|
659
|
-
display: table;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
.clearfix:after {
|
|
663
|
-
clear: both;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
.input_view {
|
|
667
|
-
background-color: #ffffff;
|
|
668
|
-
border-radius: 2px;
|
|
669
|
-
border: solid 1px #c7c7c7 !important;
|
|
670
|
-
color: #333333 !important;
|
|
671
|
-
font-size: 15px !important;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
.input_view[readonly] {
|
|
675
|
-
border: 1px solid #DDD !important;
|
|
676
|
-
color: #ACA899 !important;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
.input_view:disabled {
|
|
680
|
-
border: 1px solid #DDD !important;
|
|
681
|
-
color: #ACA899 !important;
|
|
682
|
-
}
|
|
683
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
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>
|
|
7
|
+
</criteria>
|
|
8
|
+
<data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
|
|
9
|
+
<template partial='head'>
|
|
10
|
+
<tr>
|
|
11
|
+
<th>序号</th>
|
|
12
|
+
<th>客户编号</th>
|
|
13
|
+
<th>客户名称</th>
|
|
14
|
+
<th>客户电话</th>
|
|
15
|
+
<th>地址信息</th>
|
|
16
|
+
<th>表号</th>
|
|
17
|
+
<th>气表品牌</th>
|
|
18
|
+
<th>气表型号</th>
|
|
19
|
+
<th>
|
|
20
|
+
<button
|
|
21
|
+
v-if="$parent.$parent.$parent.selectdata.defname === '工程施工'"
|
|
22
|
+
type="button"
|
|
23
|
+
class="btn btn-info head-but"
|
|
24
|
+
@click="$parent.$parent.$parent.openSign()"
|
|
25
|
+
>签字照片
|
|
26
|
+
</button>
|
|
27
|
+
</th>
|
|
28
|
+
</tr>
|
|
29
|
+
</template>
|
|
30
|
+
<template partial='body'>
|
|
31
|
+
<tr>
|
|
32
|
+
<td style="text-align: center;">
|
|
33
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
34
|
+
</td>
|
|
35
|
+
<td style="text-align: center;">
|
|
36
|
+
<nobr>{{ row.f_userinfo_id }}</nobr>
|
|
37
|
+
</td>
|
|
38
|
+
<td style="text-align: center;">
|
|
39
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
40
|
+
</td>
|
|
41
|
+
<td style="text-align: center;">
|
|
42
|
+
<nobr>{{ row.f_user_phone }}</nobr>
|
|
43
|
+
</td>
|
|
44
|
+
<td style="text-align: center;">
|
|
45
|
+
<nobr>{{ row.f_address }}{{ row.f_address_detail }}</nobr>
|
|
46
|
+
</td>
|
|
47
|
+
<td style="text-align: center;">
|
|
48
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
49
|
+
</td>
|
|
50
|
+
<td style="text-align: center;">
|
|
51
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
52
|
+
</td>
|
|
53
|
+
<td style="text-align: center;">
|
|
54
|
+
<nobr>{{ row.f_meter_style }}</nobr>
|
|
55
|
+
</td>
|
|
56
|
+
<td style="text-align: center;">
|
|
57
|
+
<nobr>
|
|
58
|
+
<button
|
|
59
|
+
type="button" name="button" class="btn btn-link"
|
|
60
|
+
@click="$parent.$parent.$parent.openModal(row)">
|
|
61
|
+
{{ $parent.$parent.$parent.mark === 1 || row.f_user_state === '正常' ? '查看' : '修正' }}
|
|
62
|
+
</button>
|
|
63
|
+
</nobr>
|
|
64
|
+
</td>
|
|
65
|
+
</tr>
|
|
66
|
+
</template>
|
|
67
|
+
</data-grid>
|
|
68
|
+
</criteria-paged>
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<modal v-if="Sign" :show.sync="Sign" v-ref:modal :large="true" :backdrop="false">
|
|
72
|
+
<header slot="modal-header" class="modal-header">
|
|
73
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
74
|
+
<h4 class="modal-title">用户签字</h4>
|
|
75
|
+
</header>
|
|
76
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
77
|
+
<div class="left col-sm-6 col-xs-6">
|
|
78
|
+
<img-self :src="fileurl" width="100%" height="100%"></img-self>
|
|
79
|
+
</div>
|
|
80
|
+
</article>
|
|
81
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
82
|
+
<template v-if="mark !== 1 && userinfo.f_user_state !== '正常'">
|
|
83
|
+
</template>
|
|
84
|
+
</footer>
|
|
85
|
+
</modal>
|
|
86
|
+
<validator name="v">
|
|
87
|
+
<modal v-if="showModal" :show.sync="showModal" v-ref:modal :large="true" :backdrop="false">
|
|
88
|
+
<header slot="modal-header" class="modal-header">
|
|
89
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
90
|
+
<h4 class="modal-title">安装明细</h4>
|
|
91
|
+
</header>
|
|
92
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
93
|
+
<!-- 表具信息 -->
|
|
94
|
+
<div class="form-group col-sm-12 panel panel-info" v-if="showUserFile">
|
|
95
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
96
|
+
<div class="col-sm-6 text-left">旧表具信息</div>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="form-group col-sm-6" :class="[$v.f_gasbrand_id.required ? 'has-error' : '']">
|
|
99
|
+
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
100
|
+
<div class="col-sm-8">
|
|
101
|
+
<input type="text" v-show="false" v-model="userfile.f_gasbrand_id" :value.sync="userfile.f_gasbrand_id"
|
|
102
|
+
v-validate:f_gasbrand_id="['required']">
|
|
103
|
+
<input-select
|
|
104
|
+
class="select select_list"
|
|
105
|
+
:value.sync="userfile.f_gasbrand_id"
|
|
106
|
+
v-model="userfile.f_gasbrand_id"
|
|
107
|
+
:options="meterBrandList"
|
|
108
|
+
@change="gasbrandChange()"
|
|
109
|
+
:disable="mark === 1 || userinfo.f_user_state === '正常' || gasbrandDisable"
|
|
110
|
+
:valueSingle="true"></input-select>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="form-group col-sm-6" :class="[$v.f_gasmodel_id.required ? 'has-error' : '']">
|
|
114
|
+
<label class="col-sm-4 control-label">气表型号:</label>
|
|
115
|
+
<div class="col-sm-8">
|
|
116
|
+
<input type="text" v-show="false" v-model="userfile.f_gasmodel_id" :value.sync="userfile.f_gasmodel_id"
|
|
117
|
+
v-validate:f_gasmodel_id="['required']">
|
|
118
|
+
<input-select
|
|
119
|
+
class="select select_list"
|
|
120
|
+
:value.sync="userfile.f_gasmodel_id"
|
|
121
|
+
v-model="userfile.f_gasmodel_id"
|
|
122
|
+
:options.sync="gasModelList"
|
|
123
|
+
:disable="mark === 1 || userinfo.f_user_state === '正常' || gasbrandDisable"
|
|
124
|
+
:valueSingle="true"></input-select>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="form-group col-sm-6" :class="[$v.f_meternumber.required ? 'has-error' : '']">
|
|
128
|
+
<label class="col-sm-4 control-label">表  号:</label>
|
|
129
|
+
<div class="col-sm-8">
|
|
130
|
+
<input class="form-control input_view" style=""
|
|
131
|
+
placeholder="表号" v-validate:f_meternumber="['required']"
|
|
132
|
+
v-model="newUserfile.f_meternumber"
|
|
133
|
+
:value.sync="userfile.f_meternumber"
|
|
134
|
+
:readonly="mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
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="newUserfile.f_metertitles"
|
|
143
|
+
:value="userfile.f_metertitles"
|
|
144
|
+
:readonly="mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="form-group col-sm-6">
|
|
148
|
+
<label class="col-sm-4 control-label">表 读 数:</label>
|
|
149
|
+
<div class="col-sm-8">
|
|
150
|
+
<input class="form-control input_view" style=""
|
|
151
|
+
type="number"
|
|
152
|
+
placeholder="表读数"
|
|
153
|
+
v-model="newUserfile.f_meter_base"
|
|
154
|
+
:value="userfile.f_meter_base"
|
|
155
|
+
:readonly="mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="form-group col-sm-6">
|
|
159
|
+
<label class="col-sm-4 control-label">初始底数:</label>
|
|
160
|
+
<div class="col-sm-8">
|
|
161
|
+
<input class="form-control input_view" style=""
|
|
162
|
+
type="number"
|
|
163
|
+
v-model="newUserfile.f_initial_base"
|
|
164
|
+
:value="userfile.f_initial_base"
|
|
165
|
+
placeholder="初始底数"
|
|
166
|
+
:readonly="mark === 1 || userinfo.f_user_state === '正常'"/>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="form-group col-sm-6">
|
|
170
|
+
<label class="col-sm-4 control-label">表  向:</label>
|
|
171
|
+
<div class="col-sm-8">
|
|
172
|
+
<input-select
|
|
173
|
+
class="select select_list"
|
|
174
|
+
:value.sync="userfile.f_aroundmeter"
|
|
175
|
+
v-model="newUserfile.f_aroundmeter"
|
|
176
|
+
:options="aroundmeters"
|
|
177
|
+
:disable="mark === 1 || userinfo.f_user_state === '正常'"
|
|
178
|
+
:valueSingle="true"></input-select>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="form-group col-sm-6">
|
|
182
|
+
<label class="col-sm-4 control-label">安装位置:</label>
|
|
183
|
+
<div class="col-sm-8">
|
|
184
|
+
<input-select
|
|
185
|
+
class="select select_list"
|
|
186
|
+
:value.sync="userfile.f_position"
|
|
187
|
+
v-model="newUserfile.f_position"
|
|
188
|
+
:options="positions"
|
|
189
|
+
:disable="mark === 1 || userinfo.f_user_state === '正常'"
|
|
190
|
+
:valueSingle="true"></input-select>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="form-group col-sm-6">
|
|
194
|
+
<label class="col-sm-4 control-label">安 装 人:</label>
|
|
195
|
+
<div class="col-sm-8">
|
|
196
|
+
<input class="form-control input_view" style=""
|
|
197
|
+
v-model="newUserfile.f_install_person"
|
|
198
|
+
:value.sync="installperson(userfile.f_install_person)"
|
|
199
|
+
placeholder="安装人"
|
|
200
|
+
readonly/>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
<div class="form-group col-sm-6">
|
|
204
|
+
<label class="col-sm-4 control-label">安装日期:</label>
|
|
205
|
+
<div class="col-sm-8">
|
|
206
|
+
<input class="form-control input_view" style=""
|
|
207
|
+
v-model="newUserfile.f_install_date"
|
|
208
|
+
:value.sync="installdate(userfile.f_install_date)"
|
|
209
|
+
placeholder="安装日期"
|
|
210
|
+
readonly/>
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
<div class="form-group col-sm-6">
|
|
214
|
+
<button type="button" class="btn btn-primary" @click="showNewUserFile = !showNewUserFile">换表</button>
|
|
215
|
+
</div>
|
|
216
|
+
<div class="form-group col-sm-12 panel panel-info" v-if="showNewUserFile || newUserfile.f_new_gasbrand_id">
|
|
217
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
218
|
+
<div class="col-sm-6 text-left">新表具信息</div>
|
|
219
|
+
</div>
|
|
220
|
+
<div class="form-group col-sm-6" :class="[$v.f_gasbrand_id.required ? 'has-error' : '']">
|
|
221
|
+
<label class="col-sm-4 control-label">新气表品牌:</label>
|
|
222
|
+
<div class="col-sm-8">
|
|
223
|
+
<input type="text" v-show="false" v-model="newUserfile.f_new_gasbrand_id"
|
|
224
|
+
:value.sync="newUserfile.f_new_gasbrand_id">
|
|
225
|
+
<input-select
|
|
226
|
+
class="select select_list"
|
|
227
|
+
:value.sync="newUserfile.f_new_gasbrand_id"
|
|
228
|
+
v-model="newUserfile.f_new_gasbrand_id"
|
|
229
|
+
:options="meterBrandList"
|
|
230
|
+
@change="gasbrandChange()"
|
|
231
|
+
:disable="mark === 1 || gasbrandDisable"
|
|
232
|
+
:valueSingle="true"></input-select>
|
|
233
|
+
</div>
|
|
234
|
+
</div>
|
|
235
|
+
<div class="form-group col-sm-6">
|
|
236
|
+
<label class="col-sm-4 control-label">新气表型号:</label>
|
|
237
|
+
<div class="col-sm-8">
|
|
238
|
+
<input type="text" v-show="false" v-model="newUserfile.f_new_gasmodel_id"
|
|
239
|
+
:value.sync="newUserfile.f_new_gasmodel_id">
|
|
240
|
+
<input-select
|
|
241
|
+
class="select select_list"
|
|
242
|
+
:value.sync="newUserfile.f_new_gasmodel_id"
|
|
243
|
+
v-model="newUserfile.f_new_gasmodel_id"
|
|
244
|
+
:options.sync="newgasModelList"
|
|
245
|
+
:disable="mark === 1 || gasbrandDisable"
|
|
246
|
+
:valueSingle="true"></input-select>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
<div class="form-group col-sm-6">
|
|
250
|
+
<label class="col-sm-4 control-label">新 表 号:</label>
|
|
251
|
+
<div class="col-sm-8">
|
|
252
|
+
<input class="form-control input_view" style=""
|
|
253
|
+
placeholder="新表号"
|
|
254
|
+
v-model="newUserfile.f_new_meternumber"
|
|
255
|
+
:value.sync="newUserfile.f_new_meternumber"
|
|
256
|
+
@change="meternumberValidate()"
|
|
257
|
+
:readonly="mark === 1"/>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
<div class="form-group col-sm-6">
|
|
261
|
+
<label class="col-sm-4 control-label">新表封号:</label>
|
|
262
|
+
<div class="col-sm-8">
|
|
263
|
+
<input class="form-control input_view" style=""
|
|
264
|
+
placeholder="新表封号"
|
|
265
|
+
v-model="newUserfile.f_new_metertitles"
|
|
266
|
+
:value="newUserfile.f_new_metertitles"
|
|
267
|
+
:readonly="mark === 1"/>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
<div class="form-group col-sm-6">
|
|
271
|
+
<label class="col-sm-4 control-label">新表读数:</label>
|
|
272
|
+
<div class="col-sm-8">
|
|
273
|
+
<input class="form-control input_view" style=""
|
|
274
|
+
type="number"
|
|
275
|
+
placeholder="新表读数"
|
|
276
|
+
v-model="newUserfile.f_new_meter_base"
|
|
277
|
+
:value="newUserfile.f_new_meter_base"
|
|
278
|
+
:readonly="mark === 1"/>
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
<div class="form-group col-sm-6">
|
|
282
|
+
<label class="col-sm-4 control-label">新初始底数:</label>
|
|
283
|
+
<div class="col-sm-8">
|
|
284
|
+
<input class="form-control input_view" style=""
|
|
285
|
+
type="number"
|
|
286
|
+
v-model="newUserfile.f_new_initial_base"
|
|
287
|
+
:value="newUserfile.f_new_initial_base"
|
|
288
|
+
placeholder="新初始底数"
|
|
289
|
+
:readonly="mark === 1"/>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
<div class="form-group col-sm-6">
|
|
293
|
+
<label class="col-sm-4 control-label">新 表 向:</label>
|
|
294
|
+
<div class="col-sm-8">
|
|
295
|
+
<input-select
|
|
296
|
+
class="select select_list"
|
|
297
|
+
:value.sync="newUserfile.f_new_aroundmeter"
|
|
298
|
+
v-model="newUserfile.f_new_aroundmeter"
|
|
299
|
+
:options="aroundmeters"
|
|
300
|
+
:disable="mark === 1"
|
|
301
|
+
:valueSingle="true"></input-select>
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
<div class="form-group col-sm-6">
|
|
305
|
+
<label class="col-sm-4 control-label">新安装位置:</label>
|
|
306
|
+
<div class="col-sm-8">
|
|
307
|
+
<input-select
|
|
308
|
+
class="select select_list"
|
|
309
|
+
:value.sync="newUserfile.f_new_position"
|
|
310
|
+
v-model="newUserfile.f_new_position"
|
|
311
|
+
:options="positions"
|
|
312
|
+
:disable="mark === 1"
|
|
313
|
+
:valueSingle="true"></input-select>
|
|
314
|
+
</div>
|
|
315
|
+
</div>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
</article>
|
|
319
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
320
|
+
<template v-if="mark !== 1">
|
|
321
|
+
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
322
|
+
</template>
|
|
323
|
+
</footer>
|
|
324
|
+
</modal>
|
|
325
|
+
</validator>
|
|
326
|
+
</template>
|
|
327
|
+
<script>
|
|
328
|
+
import Vue from 'vue'
|
|
329
|
+
import {PagedList} from 'vue-client'
|
|
330
|
+
import {HttpResetClass} from 'vue-client'
|
|
331
|
+
import {isEmpty} from '../../../Util'
|
|
332
|
+
// Date格式化
|
|
333
|
+
Date.prototype.Format = function (fmt) {
|
|
334
|
+
var o = {
|
|
335
|
+
'M+': this.getMonth() + 1, // 月份
|
|
336
|
+
'd+': this.getDate(), // 日
|
|
337
|
+
'H+': this.getHours(), // 小时
|
|
338
|
+
'm+': this.getMinutes(), // 分
|
|
339
|
+
's+': this.getSeconds(), // 秒
|
|
340
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
341
|
+
'S': this.getMilliseconds() // 毫秒
|
|
342
|
+
}
|
|
343
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
344
|
+
for (var k in o) {
|
|
345
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
346
|
+
}
|
|
347
|
+
return fmt
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export default {
|
|
351
|
+
title: '安装明细',
|
|
352
|
+
props: {
|
|
353
|
+
selectdata: {
|
|
354
|
+
type: Object
|
|
355
|
+
},
|
|
356
|
+
mark: {
|
|
357
|
+
type: Number,
|
|
358
|
+
default: 0
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
data() {
|
|
362
|
+
return {
|
|
363
|
+
gasbrandDisable: false,
|
|
364
|
+
showModal: false,
|
|
365
|
+
model: new PagedList('rs/sql/getApplyUserinfo', 20, null),
|
|
366
|
+
areaList: [],
|
|
367
|
+
area: {},
|
|
368
|
+
userinfo: {},
|
|
369
|
+
userfile: {},
|
|
370
|
+
newUserfile: {},
|
|
371
|
+
meterBrandList: [],
|
|
372
|
+
gasModelList: [],
|
|
373
|
+
newgasModelList: [],
|
|
374
|
+
Sign: false,
|
|
375
|
+
fileurl: null,
|
|
376
|
+
showUserinfo: {},
|
|
377
|
+
showNewUserFile: false
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
ready() {
|
|
381
|
+
this.search()
|
|
382
|
+
this.getMeterBrand()
|
|
383
|
+
},
|
|
384
|
+
methods: {
|
|
385
|
+
// 保存档案
|
|
386
|
+
async saveUserFile() {
|
|
387
|
+
let data = {
|
|
388
|
+
user: this.$login.f,
|
|
389
|
+
userinfo: this.userinfo,
|
|
390
|
+
userfile: this.userfile,
|
|
391
|
+
newUserfile: this.newUserfile,
|
|
392
|
+
selectdata: this.selectdata
|
|
393
|
+
}
|
|
394
|
+
let res = await this.$resetpost('rs/logic/ApplyAddNweUserfiles', {data: data}, {
|
|
395
|
+
resolveMsg: null,
|
|
396
|
+
rejectMsg: '新表具信息报错!!!'
|
|
397
|
+
})
|
|
398
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
399
|
+
},
|
|
400
|
+
ifDisable() {
|
|
401
|
+
if (this.selectdata.f_apply_type === '非民用报建' && this.selectdata.defname === '工程施工') {
|
|
402
|
+
this.gasbrandDisable = true
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
// 检查表号是否存在
|
|
406
|
+
async meternumberValidate() {
|
|
407
|
+
if (!this.newUserfile.f_gasbrand_id) {
|
|
408
|
+
this.newUserfile.f_meternumber = ''
|
|
409
|
+
this.$showMessage('请先选择气表品牌!!!')
|
|
410
|
+
return
|
|
411
|
+
}
|
|
412
|
+
if (this.newUserfile.f_new_gasbrand_id && this.newUserfile.f_new_meternumber) {
|
|
413
|
+
let data = {
|
|
414
|
+
f_meternumber: this.newUserfile.f_new_meternumber,
|
|
415
|
+
f_gasbrand_id: this.newUserfile.f_new_gasbrand_id
|
|
416
|
+
}
|
|
417
|
+
if (this.newUserfile.f_user_id) {
|
|
418
|
+
data.f_user_id = this.newUserfile.f_user_id
|
|
419
|
+
}
|
|
420
|
+
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data: data}, {
|
|
421
|
+
resolveMsg: null,
|
|
422
|
+
rejectMsg: '表号验证失败!!'
|
|
423
|
+
})
|
|
424
|
+
console.log(`查询结果${res.data}`)
|
|
425
|
+
console.log(res.data)
|
|
426
|
+
if (res.data === '表号已存在' || res.data === '表号无效') {
|
|
427
|
+
this.newUserfile.f_meternumber = ''
|
|
428
|
+
this.$showMessage(res.data)
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
// 选择气表品牌
|
|
433
|
+
async gasbrandChange() {
|
|
434
|
+
// 清空已保存的气表型号
|
|
435
|
+
// this.newUserfile.f_new_gasmodel_id = null
|
|
436
|
+
if (isEmpty(this.newUserfile.f_new_gasbrand_id)) {
|
|
437
|
+
return
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
let data = {
|
|
441
|
+
f_gasbrand_id: this.newUserfile.f_new_gasbrand_id
|
|
442
|
+
}
|
|
443
|
+
let http = new HttpResetClass()
|
|
444
|
+
let res = await http.load(
|
|
445
|
+
'POST',
|
|
446
|
+
`rs/sql/getGasModel`,
|
|
447
|
+
{data: data},
|
|
448
|
+
{resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
this.newgasModelList = res.data
|
|
452
|
+
|
|
453
|
+
data = {
|
|
454
|
+
tablename: 't_gasbrand',
|
|
455
|
+
condition: `id = '${this.newUserfile.f_new_gasbrand_id}'`
|
|
456
|
+
}
|
|
457
|
+
res = await http.load(
|
|
458
|
+
'POST',
|
|
459
|
+
`rs/sql/applySingleTable`,
|
|
460
|
+
{data: data},
|
|
461
|
+
{resolveMsg: null, rejectMsg: '表具类型查询失败!!!'}
|
|
462
|
+
)
|
|
463
|
+
this.newUserfile.f_new_meter_classify = res.data[0].f_meter_type
|
|
464
|
+
},
|
|
465
|
+
openSign() {
|
|
466
|
+
this.getFiles()
|
|
467
|
+
this.Sign = true
|
|
468
|
+
},
|
|
469
|
+
async getFiles() {
|
|
470
|
+
let http = new HttpResetClass()
|
|
471
|
+
console.log('=========pc签字查看===============')
|
|
472
|
+
let data = {
|
|
473
|
+
tablename: 't_files',
|
|
474
|
+
condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '工程施工' and fremarks = '报装手机签字文件'`
|
|
475
|
+
}
|
|
476
|
+
let res = await http.load('POST', `rs/sql/applySingleTable`, {data: data}, {
|
|
477
|
+
warnMsg: null,
|
|
478
|
+
resolveMsg: null
|
|
479
|
+
})
|
|
480
|
+
if (res.data.length > 0) {
|
|
481
|
+
console.log('=========签字地址===============', res.data[0])
|
|
482
|
+
let URL = res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)
|
|
483
|
+
res.data[0].f_downloadURL = "http://" + location.host + "/" + URL
|
|
484
|
+
console.log("=====查看文件地址=====", res.data[0].f_downloadURL)
|
|
485
|
+
this.fileurl = res.data[0].f_downloadURL
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
// 打开安装明细
|
|
489
|
+
async openModal(row) {
|
|
490
|
+
this.ifDisable()
|
|
491
|
+
if (row) {
|
|
492
|
+
console.log('------------------修正---------------------', row)
|
|
493
|
+
this.userinfo = row
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
let data = {
|
|
497
|
+
tablename: 't_userfiles',
|
|
498
|
+
condition: `f_userinfo_id = ${row.f_userinfo_id}`
|
|
499
|
+
}
|
|
500
|
+
let http = new HttpResetClass()
|
|
501
|
+
let res = await http.load(
|
|
502
|
+
'POST',
|
|
503
|
+
`rs/sql/applySingleTable`,
|
|
504
|
+
{data: data},
|
|
505
|
+
{resolveMsg: null, rejectMsg: '表档案查询失败!!!'}
|
|
506
|
+
)
|
|
507
|
+
this.userfile = res.data[0]
|
|
508
|
+
let newdata = {
|
|
509
|
+
tablename: 't_userfiles_modify',
|
|
510
|
+
condition: `f_userinfo_id = ${row.f_userinfo_id}`
|
|
511
|
+
}
|
|
512
|
+
let newRes = await http.load(
|
|
513
|
+
'POST',
|
|
514
|
+
`rs/sql/applySingleTable`,
|
|
515
|
+
{data: newdata},
|
|
516
|
+
{resolveMsg: null, rejectMsg: '更换表档案查询失败!!!'}
|
|
517
|
+
)
|
|
518
|
+
if (newRes.data.length > 0) {
|
|
519
|
+
|
|
520
|
+
this.newUserfile = newRes.data[0]
|
|
521
|
+
if (!isEmpty(this.newUserfile.f_new_gasbrand_id)) {
|
|
522
|
+
let data = {
|
|
523
|
+
f_gasbrand_id: this.newUserfile.f_new_gasbrand_id
|
|
524
|
+
}
|
|
525
|
+
let res = await http.load(
|
|
526
|
+
'POST',
|
|
527
|
+
`rs/sql/getGasModel`,
|
|
528
|
+
{data: data},
|
|
529
|
+
{resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
|
|
530
|
+
)
|
|
531
|
+
this.newgasModelList = res.data
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
if (!isEmpty(this.userfile.f_gasbrand_id)) {
|
|
536
|
+
let data = {
|
|
537
|
+
f_gasbrand_id: this.userfile.f_gasbrand_id
|
|
538
|
+
}
|
|
539
|
+
let res = await http.load(
|
|
540
|
+
'POST',
|
|
541
|
+
`rs/sql/getGasModel`,
|
|
542
|
+
{data: data},
|
|
543
|
+
{resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
|
|
544
|
+
)
|
|
545
|
+
|
|
546
|
+
this.gasModelList = res.data
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
console.log('cssss', this.newUserfile)
|
|
550
|
+
this.showModal = true
|
|
551
|
+
},
|
|
552
|
+
// 获取气表品牌
|
|
553
|
+
async getMeterBrand() {
|
|
554
|
+
let data = {}
|
|
555
|
+
|
|
556
|
+
let http = new HttpResetClass()
|
|
557
|
+
let res = await http.load(
|
|
558
|
+
'POST',
|
|
559
|
+
`rs/sql/getMeterBrand`,
|
|
560
|
+
{data: data},
|
|
561
|
+
{resolveMsg: null, rejectMsg: '气表品牌查询失败!!!'}
|
|
562
|
+
)
|
|
563
|
+
|
|
564
|
+
this.meterBrandList = res.data
|
|
565
|
+
this.meterBrandList.push({label: '无', value: 'null'})
|
|
566
|
+
},
|
|
567
|
+
searchCondition(args) {
|
|
568
|
+
|
|
569
|
+
args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
|
|
570
|
+
|
|
571
|
+
this.model.search(args.condition, args.model)
|
|
572
|
+
},
|
|
573
|
+
// 查询
|
|
574
|
+
async search() {
|
|
575
|
+
this.$refs.cp.$refs.cri.search()
|
|
576
|
+
},
|
|
577
|
+
// 关闭安装明细
|
|
578
|
+
closeUserFile() {
|
|
579
|
+
this.showModal = false
|
|
580
|
+
this.area = {}
|
|
581
|
+
this.userinfo = {}
|
|
582
|
+
this.userfile = {}
|
|
583
|
+
this.gasModelList = {}
|
|
584
|
+
this.newgasModelList = {}
|
|
585
|
+
this.newUserfile = {}
|
|
586
|
+
this.Sign = {}
|
|
587
|
+
this.search()
|
|
588
|
+
}
|
|
589
|
+
//关闭导入弹框
|
|
590
|
+
},
|
|
591
|
+
events: {
|
|
592
|
+
},
|
|
593
|
+
computed: {
|
|
594
|
+
showAddress() {
|
|
595
|
+
return this.selectdata.f_apply_type === '民用报建'
|
|
596
|
+
},
|
|
597
|
+
showUserInfo() {
|
|
598
|
+
return this.selectdata.f_apply_type === '民用报建' && this.selectdata.f_apply_nature !== '分户挂表'
|
|
599
|
+
},
|
|
600
|
+
showUserFile() {
|
|
601
|
+
return (this.selectdata.f_apply_type === '民用报建' && this.selectdata.f_apply_nature !== '分户挂表' && this.selectdata.defname === '工程施工') ||
|
|
602
|
+
this.selectdata.f_apply_type === '非民用报建' ||
|
|
603
|
+
this.selectdata.f_apply_type === '设备变更' ||
|
|
604
|
+
this.selectdata.f_apply_type === '分户挂表'
|
|
605
|
+
},
|
|
606
|
+
showInstall() {
|
|
607
|
+
return this.showUserFile && (this.selectdata.defname === '工程施工' || this.selectdata.defname === '施工通气' || this.selectdata.defname === '点火通气')
|
|
608
|
+
},
|
|
609
|
+
// 证件类型
|
|
610
|
+
credentialsList() {
|
|
611
|
+
return this.$appdata.getParam('证件类型')
|
|
612
|
+
},
|
|
613
|
+
// 安装人
|
|
614
|
+
installperson() {
|
|
615
|
+
return function (f_install_person) {
|
|
616
|
+
if (isEmpty(f_install_person)) {
|
|
617
|
+
return this.$login.f.name
|
|
618
|
+
}
|
|
619
|
+
return f_install_person
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
// 安装时间
|
|
623
|
+
installdate() {
|
|
624
|
+
return function (f_install_date) {
|
|
625
|
+
if (isEmpty(f_install_date)) {
|
|
626
|
+
return new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
627
|
+
}
|
|
628
|
+
return f_install_date
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
// 表向
|
|
632
|
+
aroundmeters() {
|
|
633
|
+
return this.$appdata.getParam('左右表')
|
|
634
|
+
},
|
|
635
|
+
// 安装位置
|
|
636
|
+
positions() {
|
|
637
|
+
return this.$appdata.getParam('安装位置')
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
watch: {
|
|
641
|
+
'newUserfile.f_new_gasmodel_id'(oval, nval) {
|
|
642
|
+
console.log("ssssssssssss", nval, oval)
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
</script>
|
|
647
|
+
<style scoped>
|
|
648
|
+
.head-but {
|
|
649
|
+
margin-left: 5px;
|
|
650
|
+
height: 34px;
|
|
651
|
+
/*background-color: #6aa6e2;*/
|
|
652
|
+
border-radius: 4px;
|
|
653
|
+
font-family: PingFang;
|
|
654
|
+
color: #ffffff;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/*清除model中的浮动*/
|
|
658
|
+
.clearfix:after, .clearfix:before {
|
|
659
|
+
display: table;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.clearfix:after {
|
|
663
|
+
clear: both;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.input_view {
|
|
667
|
+
background-color: #ffffff;
|
|
668
|
+
border-radius: 2px;
|
|
669
|
+
border: solid 1px #c7c7c7 !important;
|
|
670
|
+
color: #333333 !important;
|
|
671
|
+
font-size: 15px !important;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.input_view[readonly] {
|
|
675
|
+
border: 1px solid #DDD !important;
|
|
676
|
+
color: #ACA899 !important;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.input_view:disabled {
|
|
680
|
+
border: 1px solid #DDD !important;
|
|
681
|
+
color: #ACA899 !important;
|
|
682
|
+
}
|
|
683
|
+
</style>
|