apply-clients 7.1.36-yuchuan-2 → 7.1.36-yuchuan-3
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 +7 -3
- package/package.json +3 -3
- package/src/AndroidApp.vue +35 -35
- package/src/apply.js +12 -1
- package/src/applyAndroid.js +87 -83
- package/src/components/android/AppUpload.vue +15 -0
- package/src/components/android/Ignition/VentilationIgnition.vue +1 -1
- package/src/components/android/Process/AppExplorationUser.vue +2 -2
- package/src/components/android/Process/AppServiceControl.vue +1410 -1397
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +334 -334
- package/src/components/android/Task/Build/BuildTsak.vue +7 -4
- package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +317 -432
- package/src/components/android/Task/GuanXianJianShe/AppGuanXianCaiLiao.vue +237 -0
- package/src/components/android/Task/ShenHe/BuZhangShenHe.vue +64 -64
- package/src/components/android/Task/ShenHe/JingLiShenHe.vue +64 -64
- package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +11 -7
- package/src/components/android/Task/UpBuild/UpBuildDui.vue +5 -2
- package/src/components/android/Task/UpBuild/UpBuildTsak.vue +5 -2
- package/src/components/android/Task/UpBuild/UpJianLi.vue +98 -98
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +943 -606
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +8 -7
- package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -235
- package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +324 -323
- package/src/components/product/ChongZheng/ApplyChongZhengList.vue +10 -9
- package/src/components/product/Function/InstallInfoSelect.vue +371 -370
- package/src/components/product/Function/Service/FunctionServiceControl.vue +475 -475
- package/src/components/product/Ignition/IgnitionList.vue +236 -236
- package/src/components/product/Ignition/IgnitionListManage.vue +403 -204
- package/src/components/product/Ignition/IgnitionRecord.vue +14 -13
- package/src/components/product/List/ShowAllActivity.vue +455 -0
- package/src/components/product/List/ShowDevices.vue +279 -279
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +9 -8
- package/src/components/product/Print/BuildOrder/printBuildOrder.vue +6 -0
- package/src/components/product/Process/ExplorationSelect.vue +591 -581
- package/src/components/product/Process/ExplorationUser.vue +158 -158
- package/src/components/product/Process/New1ExplorationUser.vue +201 -0
- package/src/components/product/Process/New2ExplorationUser.vue +163 -0
- package/src/components/product/Process/NewExplorationSelect.vue +586 -0
- package/src/components/product/Process/NewExplorationUser.vue +219 -184
- package/src/components/product/Process/Processes/ApplyChaiChuInfo.vue +587 -587
- package/src/components/product/Process/Processes/InstallationDetails.vue +80 -7
- package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +224 -224
- package/src/components/product/Process/Processes/newDevicesManagement.vue +26 -1
- package/src/components/product/Process/Processes/newInstallationDetails.vue +1 -36
- package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -241
- package/src/components/product/Process/Service/ServiceControl.vue +2166 -2162
- package/src/components/product/Report/ReportItems.vue +85 -79
- package/src/components/product/Report/apply-stair-kaifa.vue +0 -1
- package/src/components/product/Report/gongchengbu.vue +199 -0
- package/src/components/product/ServiceView.vue +644 -644
- package/src/components/product/Stop/StopApplyList.vue +8 -8
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +594 -594
- package/src/components/product/Supervisory/SupervisoryList.vue +539 -537
- package/src/components/product/Supervisory/YiBanSupervisoryControl.vue +114 -0
- package/src/components/product/Supervisory/YiBanSupervisoryList.vue +541 -0
- package/src/main.js +27 -27
- package/dist-android.7z +0 -0
- package/dist.7z +0 -0
- package/rebel.xml +0 -16
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +0 -207
- package/yarn-error.log +0 -9976
|
@@ -1,587 +1,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>
|
|
6
|
-
<criteria partial='criteria' @condition-changed='search' 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 class="textNoLineBreak">序号</th>
|
|
14
|
-
<th class="textNoLineBreak">客户编号</th>
|
|
15
|
-
<th class="textNoLineBreak">用户姓名</th>
|
|
16
|
-
<th class="textNoLineBreak">电话</th>
|
|
17
|
-
<th class="textNoLineBreak">证件类型</th>
|
|
18
|
-
<th class="textNoLineBreak">证件号码</th>
|
|
19
|
-
<th class="textNoLineBreak">表号</th>
|
|
20
|
-
<th class="textNoLineBreak">地址</th>
|
|
21
|
-
<th class="textNoLineBreak">当前状态</th>
|
|
22
|
-
<th class="textNoLineBreak">
|
|
23
|
-
<button
|
|
24
|
-
v-if="$parent.$parent.$parent.selectdata.defname === '工程施工'"
|
|
25
|
-
type="button"
|
|
26
|
-
class="btn btn-info head-but"
|
|
27
|
-
@click="$parent.$parent.$parent.openSign()"
|
|
28
|
-
>签字照片
|
|
29
|
-
</button>
|
|
30
|
-
<p v-else>操作</p>
|
|
31
|
-
</th>
|
|
32
|
-
</tr>
|
|
33
|
-
</template>
|
|
34
|
-
<template partial='body'>
|
|
35
|
-
<tr>
|
|
36
|
-
<td style="text-align: center;">
|
|
37
|
-
<nobr>{{ $index + 1 }}</nobr>
|
|
38
|
-
</td>
|
|
39
|
-
<td style="text-align: center;">
|
|
40
|
-
<nobr>{{ row.f_userinfo_id }}</nobr>
|
|
41
|
-
</td>
|
|
42
|
-
<td style="text-align: center;">
|
|
43
|
-
<nobr>{{ row.f_user_name }}</nobr>
|
|
44
|
-
</td>
|
|
45
|
-
<td style="text-align: center;">
|
|
46
|
-
<nobr>{{ row.f_user_phone }}</nobr>
|
|
47
|
-
</td>
|
|
48
|
-
<td style="text-align: center;">
|
|
49
|
-
<nobr>{{ row.f_credentials }}</nobr>
|
|
50
|
-
</td>
|
|
51
|
-
<td style="text-align: center;">
|
|
52
|
-
<nobr>{{ row.f_idnumber }}</nobr>
|
|
53
|
-
</td>
|
|
54
|
-
<td style="text-align: center;">
|
|
55
|
-
<nobr>{{ row.f_meternumber }}</nobr>
|
|
56
|
-
</td>
|
|
57
|
-
<td>
|
|
58
|
-
<nobr>{{ row.f_address }}</nobr>
|
|
59
|
-
</td>
|
|
60
|
-
<td>
|
|
61
|
-
<nobr>{{ row.f_sub_state }}</nobr>
|
|
62
|
-
</td>
|
|
63
|
-
<td>
|
|
64
|
-
<nobr>
|
|
65
|
-
<button
|
|
66
|
-
type="button" name="button" class="btn btn-link"
|
|
67
|
-
@click="$parent.$parent.$parent.openModel(row)"
|
|
68
|
-
>
|
|
69
|
-
查看
|
|
70
|
-
</button>
|
|
71
|
-
<button
|
|
72
|
-
type="button" name="button" class="btn btn-link"
|
|
73
|
-
@click="$parent.$parent.$parent.deleteUserinfo(row)"
|
|
74
|
-
v-if="$parent.$parent.$parent.showDeleteUserInfo"
|
|
75
|
-
:disabled="row.f_sub_state === '已销户'"
|
|
76
|
-
>
|
|
77
|
-
销户
|
|
78
|
-
</button>
|
|
79
|
-
<button
|
|
80
|
-
type="button" name="button" class="btn btn-link"
|
|
81
|
-
@click="$parent.$parent.$parent.deleteChaiChuInfo(row.id)"
|
|
82
|
-
v-if="$parent.$parent.$parent.showDeleteButton"
|
|
83
|
-
:disabled="$parent.$parent.$parent.mark === 1"
|
|
84
|
-
>
|
|
85
|
-
删除
|
|
86
|
-
</button>
|
|
87
|
-
</nobr>
|
|
88
|
-
</td>
|
|
89
|
-
</tr>
|
|
90
|
-
</template>
|
|
91
|
-
</data-grid>
|
|
92
|
-
</criteria-paged>
|
|
93
|
-
</div>
|
|
94
|
-
<modal v-if="showModel" :show.sync="showModel" v-ref:modal :large="true" :backdrop="false">
|
|
95
|
-
<header slot="modal-header" class="modal-header">
|
|
96
|
-
<button type="button" class="close" @click="closeModel"><span>×</span></button>
|
|
97
|
-
<h4 class="modal-title">安装明细</h4>
|
|
98
|
-
</header>
|
|
99
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
100
|
-
<!-- 基本信息 -->
|
|
101
|
-
<div class="form-group col-sm-12 panel panel-info">
|
|
102
|
-
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
103
|
-
<div class="col-sm-6 text-left">用户信息</div>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
<div class="form-group col-sm-6">
|
|
107
|
-
<label class="col-sm-4 control-label">客户编号:</label>
|
|
108
|
-
<div class="col-sm-8">
|
|
109
|
-
<input class="form-control input_view" style=""
|
|
110
|
-
v-model="userinfo.f_userinfo_id"
|
|
111
|
-
:value.sync="userinfo.f_userinfo_id"
|
|
112
|
-
:readonly="true"
|
|
113
|
-
placeholder="客户名称"/>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
<div class="form-group col-sm-6">
|
|
117
|
-
<label class="col-sm-4 control-label">用户名称:</label>
|
|
118
|
-
<div class="col-sm-8">
|
|
119
|
-
<input class="form-control input_view" style=""
|
|
120
|
-
v-model="userinfo.f_user_name"
|
|
121
|
-
:value.sync="userinfo.f_user_name"
|
|
122
|
-
:readonly="true"
|
|
123
|
-
placeholder="客户名称"/>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<div class="form-group col-sm-6">
|
|
127
|
-
<label class="col-sm-4 control-label">客户电话:</label>
|
|
128
|
-
<div class="col-sm-8">
|
|
129
|
-
<input class="form-control input_view" style=""
|
|
130
|
-
v-model="userinfo.f_user_phone"
|
|
131
|
-
:value.sync="userinfo.f_user_phone"
|
|
132
|
-
:readonly="true"
|
|
133
|
-
placeholder="客户电话"/>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
<div class="form-group col-sm-6">
|
|
137
|
-
<label class="col-sm-4 control-label">证件类型:</label>
|
|
138
|
-
<div class="col-sm-8">
|
|
139
|
-
<input class="form-control input_view" style=""
|
|
140
|
-
v-model="userinfo.f_credentials"
|
|
141
|
-
:value.sync="userinfo.f_credentials"
|
|
142
|
-
:readonly="true"
|
|
143
|
-
placeholder="证件类型"/>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
<div class="form-group col-sm-6">
|
|
147
|
-
<label class="col-sm-4 control-label">证件号码:</label>
|
|
148
|
-
<div class="col-sm-8">
|
|
149
|
-
<input class="form-control input_view" style=""
|
|
150
|
-
placeholder="证件号码"
|
|
151
|
-
v-model="userinfo.f_idnumber"
|
|
152
|
-
:value="userinfo.f_idnumber"
|
|
153
|
-
:readonly="true"/>
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
<!-- 地址信息 -->
|
|
157
|
-
<div class="form-group col-sm-12">
|
|
158
|
-
<label class="col-sm-2 control-label">地  址:</label>
|
|
159
|
-
<div class="col-sm-10">
|
|
160
|
-
<input class="form-control input_view"
|
|
161
|
-
placeholder="地址"
|
|
162
|
-
v-model="userinfo.f_address"
|
|
163
|
-
:value.sync="userinfo.f_address"
|
|
164
|
-
:readonly="true"/>
|
|
165
|
-
</div>
|
|
166
|
-
</div>
|
|
167
|
-
<!-- 表具信息 -->
|
|
168
|
-
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
169
|
-
<div class="col-sm-6 text-left">表具信息</div>
|
|
170
|
-
</div>
|
|
171
|
-
<div class="form-group col-sm-6">
|
|
172
|
-
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
173
|
-
<div class="col-sm-8">
|
|
174
|
-
<input class="form-control input_view"
|
|
175
|
-
placeholder="气表品牌"
|
|
176
|
-
v-model="userinfo.f_gasbrand"
|
|
177
|
-
:value.sync="userinfo.f_gasbrand"
|
|
178
|
-
:readonly="true"/>
|
|
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 class="form-control input_view"
|
|
185
|
-
placeholder="气表型号"
|
|
186
|
-
v-model="userinfo.f_gasmodel"
|
|
187
|
-
:value.sync="userinfo.f_gasmodel"
|
|
188
|
-
:readonly="true"/>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
<div class="form-group col-sm-6">
|
|
192
|
-
<label class="col-sm-4 control-label">表  号:</label>
|
|
193
|
-
<div class="col-sm-8">
|
|
194
|
-
<input class="form-control input_view" style=""
|
|
195
|
-
placeholder="表号"
|
|
196
|
-
v-model="userinfo.f_meternumber"
|
|
197
|
-
:value.sync="userinfo.f_meternumber"
|
|
198
|
-
:readonly="true"/>
|
|
199
|
-
</div>
|
|
200
|
-
</div>
|
|
201
|
-
<div class="form-group col-sm-6">
|
|
202
|
-
<label class="col-sm-4 control-label">表 封 号:</label>
|
|
203
|
-
<div class="col-sm-8">
|
|
204
|
-
<input class="form-control input_view" style=""
|
|
205
|
-
placeholder="表封号"
|
|
206
|
-
v-model="userinfo.f_metertitles"
|
|
207
|
-
:value="userinfo.f_metertitles"
|
|
208
|
-
:readonly="true"/>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
<div class="form-group col-sm-6">
|
|
212
|
-
<label class="col-sm-4 control-label">表 底 数:</label>
|
|
213
|
-
<div class="col-sm-8">
|
|
214
|
-
<input class="form-control input_view" style=""
|
|
215
|
-
type="number"
|
|
216
|
-
placeholder="表底数"
|
|
217
|
-
v-model="userinfo.f_meter_base"
|
|
218
|
-
:value="userinfo.f_meter_base"
|
|
219
|
-
:readonly="true"/>
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
<div class="form-group col-sm-6">
|
|
223
|
-
<label class="col-sm-4 control-label">最后购气时间:</label>
|
|
224
|
-
<div class="col-sm-8">
|
|
225
|
-
<input class="form-control input_view" style=""
|
|
226
|
-
v-model="userinfo.f_delivery_date"
|
|
227
|
-
:value="userinfo.f_delivery_date"
|
|
228
|
-
:readonly="true"/>
|
|
229
|
-
</div>
|
|
230
|
-
</div>
|
|
231
|
-
<div class="form-group col-sm-6">
|
|
232
|
-
<label class="col-sm-4 control-label">剩余金额:</label>
|
|
233
|
-
<div class="col-sm-8">
|
|
234
|
-
<input class="form-control input_view" style=""
|
|
235
|
-
v-model="userinfo.f_balance_amount"
|
|
236
|
-
:value="userinfo.f_balance_amount"
|
|
237
|
-
:readonly="true"/>
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
<div class="form-group col-sm-6" v-if="selectdata.defname === '核对气量'">
|
|
241
|
-
<label class="col-sm-4 control-label">累购气量:</label>
|
|
242
|
-
<div class="col-sm-8">
|
|
243
|
-
<input class="form-control input_view" style=""
|
|
244
|
-
type="number"
|
|
245
|
-
v-model="inputNumber.f_gas_total"
|
|
246
|
-
:value="inputNumber.f_gas_total"
|
|
247
|
-
:readonly="nowData.f_sub_state === '已销户'"/>
|
|
248
|
-
</div>
|
|
249
|
-
</div>
|
|
250
|
-
<div class="form-group col-sm-6" v-if="selectdata.defname === '核对气量'">
|
|
251
|
-
<label class="col-sm-4 control-label">累购金额:</label>
|
|
252
|
-
<div class="col-sm-8">
|
|
253
|
-
<input class="form-control input_view" style=""
|
|
254
|
-
type="number"
|
|
255
|
-
v-model="inputNumber.f_money_total"
|
|
256
|
-
:value="inputNumber.f_money_total"
|
|
257
|
-
:readonly="nowData.f_sub_state === '已销户'"/>
|
|
258
|
-
</div>
|
|
259
|
-
</div>
|
|
260
|
-
<div v-for="(i, item) in devicesInfo" class="form-group col-sm-12 panel panel-info">
|
|
261
|
-
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
262
|
-
<div class="col-sm-12 text-left">设备{{ $index + 1 }}信息</div>
|
|
263
|
-
</div>
|
|
264
|
-
<div class="form-group col-sm-3">
|
|
265
|
-
<label class="col-sm-4 control-label">设备:</label>
|
|
266
|
-
<div class="col-sm-8">
|
|
267
|
-
<input class="form-control input_view" style=""
|
|
268
|
-
placeholder="设备类型"
|
|
269
|
-
v-model="item.f_devices_type"
|
|
270
|
-
:value="item.f_devices_type"
|
|
271
|
-
readonly/>
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
274
|
-
<div class="form-group col-sm-3">
|
|
275
|
-
<label class="col-sm-4 control-label">编号:</label>
|
|
276
|
-
<div class="col-sm-8">
|
|
277
|
-
<input class="form-control input_view" style=""
|
|
278
|
-
placeholder="设备编号"
|
|
279
|
-
v-model="item.f_devices_no"
|
|
280
|
-
:value="item.f_devices_no"
|
|
281
|
-
readonly/>
|
|
282
|
-
</div>
|
|
283
|
-
</div>
|
|
284
|
-
<div class="form-group col-sm-3">
|
|
285
|
-
<label class="col-sm-4 control-label">品牌:</label>
|
|
286
|
-
<div class="col-sm-8">
|
|
287
|
-
<input class="form-control input_view" style=""
|
|
288
|
-
placeholder="设备品牌"
|
|
289
|
-
v-model="item.f_brand"
|
|
290
|
-
:value="item.f_brand"
|
|
291
|
-
readonly/>
|
|
292
|
-
</div>
|
|
293
|
-
</div>
|
|
294
|
-
<div class="form-group col-sm-3">
|
|
295
|
-
<label class="col-sm-4 control-label">型号:</label>
|
|
296
|
-
<div class="col-sm-8">
|
|
297
|
-
<input class="form-control input_view" style=""
|
|
298
|
-
placeholder="设备型号"
|
|
299
|
-
v-model="item.f_devices_model"
|
|
300
|
-
:value="item.f_devices_model"
|
|
301
|
-
readonly/>
|
|
302
|
-
</div>
|
|
303
|
-
</div>
|
|
304
|
-
<div class="form-group col-sm-3">
|
|
305
|
-
<label class="col-sm-4 control-label">数量:</label>
|
|
306
|
-
<div class="col-sm-8">
|
|
307
|
-
<input class="form-control input_view" style="" type="number"
|
|
308
|
-
placeholder="设备数量"
|
|
309
|
-
v-model="item.f_devices_num"
|
|
310
|
-
:value="item.f_devices_num"
|
|
311
|
-
readonly/>
|
|
312
|
-
</div>
|
|
313
|
-
</div>
|
|
314
|
-
<div class="form-group col-sm-3">
|
|
315
|
-
<label class="col-sm-4 control-label">功率:</label>
|
|
316
|
-
<div class="col-sm-8">
|
|
317
|
-
<input class="form-control input_view" style=""
|
|
318
|
-
placeholder="设备功率"
|
|
319
|
-
type="number"
|
|
320
|
-
v-model="item.f_devices_tonnage"
|
|
321
|
-
:value="item.f_devices_tonnage"
|
|
322
|
-
readonly/>
|
|
323
|
-
</div>
|
|
324
|
-
</div>
|
|
325
|
-
<div class="form-group col-sm-3">
|
|
326
|
-
<label class="col-sm-4 control-label">日期:</label>
|
|
327
|
-
<div class="col-sm-8">
|
|
328
|
-
<input class="form-control input_view" style=""
|
|
329
|
-
placeholder="安装日期"
|
|
330
|
-
v-model="item.f_install_date"
|
|
331
|
-
:value="item.f_install_date"
|
|
332
|
-
readonly/>
|
|
333
|
-
</div>
|
|
334
|
-
</div>
|
|
335
|
-
<div class="form-group col-sm-3">
|
|
336
|
-
<label class="col-sm-4 control-label">单位:</label>
|
|
337
|
-
<div class="col-sm-8">
|
|
338
|
-
<input class="form-control input_view" style=""
|
|
339
|
-
placeholder="功率单位"
|
|
340
|
-
v-model="item.f_devices_tonnage_unit"
|
|
341
|
-
:value="item.f_devices_tonnage_unit"
|
|
342
|
-
readonly/>
|
|
343
|
-
</div>
|
|
344
|
-
</div>
|
|
345
|
-
</div>
|
|
346
|
-
</article>
|
|
347
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
348
|
-
<template v-if="selectdata.defname === '核对气量'">
|
|
349
|
-
<button
|
|
350
|
-
type="button" name="button" class="btn btn-info"
|
|
351
|
-
@click="closeModel()"
|
|
352
|
-
>取消</button>
|
|
353
|
-
<button
|
|
354
|
-
type="button" name="button" class="btn btn-info"
|
|
355
|
-
@click="saveGasNumber(userinfo)"
|
|
356
|
-
:disabled="nowData.f_sub_state === '已销户'"
|
|
357
|
-
>保存</button>
|
|
358
|
-
</template>
|
|
359
|
-
</footer>
|
|
360
|
-
</modal>
|
|
361
|
-
<modal v-if="Sign" :show.sync="Sign" v-ref:modal :large="true" :backdrop="false">
|
|
362
|
-
<header slot="modal-header" class="modal-header">
|
|
363
|
-
<button type="button" class="close" @click="closeModel"><span>×</span></button>
|
|
364
|
-
<h4 class="modal-title">用户签字</h4>
|
|
365
|
-
</header>
|
|
366
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
367
|
-
<div class="left col-sm-6 col-xs-6">
|
|
368
|
-
<img-self :src="fileUrl" width="100%" height="100%"></img-self>
|
|
369
|
-
</div>
|
|
370
|
-
</article>
|
|
371
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
372
|
-
<template v-if="mark !== 1 && userinfo.f_user_state !== '正常'">
|
|
373
|
-
</template>
|
|
374
|
-
</footer>
|
|
375
|
-
</modal>
|
|
376
|
-
<validator name="x">
|
|
377
|
-
<modal v-if="showDeleteModel" :show.sync="showDeleteModel" v-ref:modal :large="true" :backdrop="false">
|
|
378
|
-
<header slot="modal-header" class="modal-header">
|
|
379
|
-
<button type="button" class="close" @click="closeModel"><span>×</span></button>
|
|
380
|
-
<h4 class="modal-title">销户原因</h4>
|
|
381
|
-
</header>
|
|
382
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
383
|
-
<div class="left col-sm-12 col-xs-12" :class="[$x.f_cancel_cause.required ? 'has-error' : '']">
|
|
384
|
-
<div class="form-group col-sm-12">
|
|
385
|
-
<label class="col-sm-2 control-label">销户原因:</label>
|
|
386
|
-
<div class="col-sm-10">
|
|
387
|
-
<input class="form-control input_view" style=""
|
|
388
|
-
v-validate:f_cancel_cause="['required']"
|
|
389
|
-
v-model="userinfo.f_cancel_cause"
|
|
390
|
-
:value.sync="userinfo.f_cancel_cause"
|
|
391
|
-
placeholder="销户原因"/>
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
</article>
|
|
396
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
397
|
-
<button type="button" class="btn btn-primary" @click="deleteUser" :disabled="!$x.valid">确认</button>
|
|
398
|
-
</footer>
|
|
399
|
-
</modal>
|
|
400
|
-
</validator>
|
|
401
|
-
</template>
|
|
402
|
-
<script>
|
|
403
|
-
import {PagedList} from 'vue-client'
|
|
404
|
-
import {HttpResetClass} from 'vue-client'
|
|
405
|
-
|
|
406
|
-
export default {
|
|
407
|
-
title: '拆除用户信息',
|
|
408
|
-
props: {
|
|
409
|
-
selectdata: {
|
|
410
|
-
type: Object
|
|
411
|
-
},
|
|
412
|
-
mark: {
|
|
413
|
-
type: Number,
|
|
414
|
-
default: 0 // 0:正常 1:禁用
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
data() {
|
|
418
|
-
return {
|
|
419
|
-
model: new PagedList('rs/sql/getChaiChuUserinfo', 20, {
|
|
420
|
-
data: {
|
|
421
|
-
f_process_id: this.selectdata.f_process_id
|
|
422
|
-
}
|
|
423
|
-
}),
|
|
424
|
-
showWork: false,
|
|
425
|
-
userinfo: {},
|
|
426
|
-
showDeleteModel: false,
|
|
427
|
-
Sign: false,
|
|
428
|
-
fileUrl: null,
|
|
429
|
-
showModel: false,
|
|
430
|
-
devicesInfo: {},
|
|
431
|
-
nowData:{},
|
|
432
|
-
inputNumber: {
|
|
433
|
-
f_gas_total: null,
|
|
434
|
-
f_money_total: null
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
ready() {
|
|
439
|
-
this.search()
|
|
440
|
-
},
|
|
441
|
-
methods: {
|
|
442
|
-
async openModel (row) {
|
|
443
|
-
this.nowData = row
|
|
444
|
-
this.getDeviceList(row)
|
|
445
|
-
let data = {
|
|
446
|
-
f_userinfo_id: row.f_userinfo_id
|
|
447
|
-
}
|
|
448
|
-
let http = new HttpResetClass()
|
|
449
|
-
let res = await http.load(
|
|
450
|
-
'POST',
|
|
451
|
-
`rs/sql/getUserAllInfo`,
|
|
452
|
-
{data: data},
|
|
453
|
-
{resolveMsg: null, rejectMsg: '用户信息查询失败!!!'}
|
|
454
|
-
)
|
|
455
|
-
if (res.data.length > 0){
|
|
456
|
-
this.userinfo = res.data[0]
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
this.inputNumber.f_gas_total = row.f_gas_total
|
|
460
|
-
this.inputNumber.f_money_total = row.f_money_total
|
|
461
|
-
|
|
462
|
-
this.showModel = !this.showModel
|
|
463
|
-
},
|
|
464
|
-
async getDeviceList(row){
|
|
465
|
-
let data = {
|
|
466
|
-
tablename: 't_devices',
|
|
467
|
-
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
468
|
-
}
|
|
469
|
-
let http = new HttpResetClass()
|
|
470
|
-
let res = await http.load(
|
|
471
|
-
'POST',
|
|
472
|
-
`rs/sql/applySingleTable`,
|
|
473
|
-
{data: data},
|
|
474
|
-
{resolveMsg: null, rejectMsg: '设备查询失败!!!'}
|
|
475
|
-
)
|
|
476
|
-
this.devicesInfo = res.data
|
|
477
|
-
},
|
|
478
|
-
async deleteUserinfo(row) {
|
|
479
|
-
this.userinfo = row
|
|
480
|
-
this.showDeleteModel = !this.showDeleteModel
|
|
481
|
-
},
|
|
482
|
-
async deleteUser (row) {
|
|
483
|
-
let res = await this.$showMessage('此操作不可撤回,您确定要删除这条记录吗?')
|
|
484
|
-
if (res === 'cancel') {
|
|
485
|
-
return
|
|
486
|
-
}
|
|
487
|
-
let data = {
|
|
488
|
-
login: this.$login.f,
|
|
489
|
-
userinfo: this.userinfo,
|
|
490
|
-
selectdata: this.selectdata
|
|
491
|
-
}
|
|
492
|
-
res = await this.$resetpost('rs/logic/applyDeleteUserinfo', {data:data}, {
|
|
493
|
-
resolveMsg: null,
|
|
494
|
-
rejectMsg: '删除失败!!!'
|
|
495
|
-
})
|
|
496
|
-
|
|
497
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
498
|
-
},
|
|
499
|
-
deleteChaiChuInfo(index) {
|
|
500
|
-
this.$resetdelete(`rs/entity/t_apply_chai`, {id: index}, {
|
|
501
|
-
resolveMsg: '删除成功',
|
|
502
|
-
rejectMsg: '删除失败'
|
|
503
|
-
}).then((res) => {
|
|
504
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
505
|
-
})
|
|
506
|
-
},
|
|
507
|
-
async saveGasNumber(row) {
|
|
508
|
-
let data = {
|
|
509
|
-
userinfo: row,
|
|
510
|
-
inputNumber: this.inputNumber,
|
|
511
|
-
selectdata: this.selectdata
|
|
512
|
-
}
|
|
513
|
-
let res = await this.$resetpost('rs/logic/applySaveInfo', {data: data}, {
|
|
514
|
-
resolveMsg: '保存成功!!!',
|
|
515
|
-
rejectMsg: '保存失败!!!'
|
|
516
|
-
})
|
|
517
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
518
|
-
},
|
|
519
|
-
openSign() {
|
|
520
|
-
this.getFiles()
|
|
521
|
-
this.Sign = true
|
|
522
|
-
},
|
|
523
|
-
async getFiles() {
|
|
524
|
-
let http = new HttpResetClass()
|
|
525
|
-
console.log('=========pc签字查看===============')
|
|
526
|
-
let data = {
|
|
527
|
-
tablename: 't_files',
|
|
528
|
-
condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '工程施工' and fremarks = '报装手机签字文件'`
|
|
529
|
-
}
|
|
530
|
-
let res = await http.load('POST', `rs/sql/applySingleTable`, {data: data}, {
|
|
531
|
-
warnMsg: null,
|
|
532
|
-
resolveMsg: null
|
|
533
|
-
})
|
|
534
|
-
if (res.data.length > 0) {
|
|
535
|
-
console.log('=========签字地址===============', res.data[0])
|
|
536
|
-
let URL = res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)
|
|
537
|
-
res.data[0].f_downloadURL = "http://" + location.host + "/" + URL
|
|
538
|
-
console.log("=====查看文件地址=====", res.data[0].f_downloadURL)
|
|
539
|
-
this.fileUrl = res.data[0].f_downloadURL
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
async search() {
|
|
543
|
-
this.$refs.cp.$refs.cri.search()
|
|
544
|
-
},
|
|
545
|
-
// 关闭文件上传对话框
|
|
546
|
-
closeModel() {
|
|
547
|
-
this.showWork = false
|
|
548
|
-
this.showModel = false
|
|
549
|
-
this.showDeleteModel = false
|
|
550
|
-
this.userinfo = {}
|
|
551
|
-
this.devicesInfo = {}
|
|
552
|
-
this.Sign = false
|
|
553
|
-
// 将选的文件清空
|
|
554
|
-
this.$refs.file.$el.querySelector('input').value = ''
|
|
555
|
-
this.search()
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
|
-
events: {
|
|
559
|
-
'beforeFileUpload'(file) {
|
|
560
|
-
this.showWork = true
|
|
561
|
-
}
|
|
562
|
-
},
|
|
563
|
-
computed: {
|
|
564
|
-
showDeleteUserInfo() {
|
|
565
|
-
return this.selectdata.f_apply_type === '设备拆除' && this.selectdata.defname === '核对气量'
|
|
566
|
-
},
|
|
567
|
-
showDeleteButton() {
|
|
568
|
-
return this.selectdata.f_apply_type === '设备拆除' && this.selectdata.defname === '报建受理'
|
|
569
|
-
},
|
|
570
|
-
},
|
|
571
|
-
watch: {}
|
|
572
|
-
}
|
|
573
|
-
</script>
|
|
574
|
-
<style scoped>
|
|
575
|
-
.textNoLineBreak {
|
|
576
|
-
white-space: nowrap;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.head-but {
|
|
580
|
-
margin-left: 5px;
|
|
581
|
-
height: 34px;
|
|
582
|
-
/*background-color: #6aa6e2;*/
|
|
583
|
-
border-radius: 4px;
|
|
584
|
-
font-family: PingFang;
|
|
585
|
-
color: #ffffff;
|
|
586
|
-
}
|
|
587
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<work-busy :is-busy="showWork" v-show="showWork"></work-busy>
|
|
3
|
+
|
|
4
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
5
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='search' 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 class="textNoLineBreak">序号</th>
|
|
14
|
+
<th class="textNoLineBreak">客户编号</th>
|
|
15
|
+
<th class="textNoLineBreak">用户姓名</th>
|
|
16
|
+
<th class="textNoLineBreak">电话</th>
|
|
17
|
+
<th class="textNoLineBreak">证件类型</th>
|
|
18
|
+
<th class="textNoLineBreak">证件号码</th>
|
|
19
|
+
<th class="textNoLineBreak">表号</th>
|
|
20
|
+
<th class="textNoLineBreak">地址</th>
|
|
21
|
+
<th class="textNoLineBreak">当前状态</th>
|
|
22
|
+
<th class="textNoLineBreak">
|
|
23
|
+
<button
|
|
24
|
+
v-if="$parent.$parent.$parent.selectdata.defname === '工程施工'"
|
|
25
|
+
type="button"
|
|
26
|
+
class="btn btn-info head-but"
|
|
27
|
+
@click="$parent.$parent.$parent.openSign()"
|
|
28
|
+
>签字照片
|
|
29
|
+
</button>
|
|
30
|
+
<p v-else>操作</p>
|
|
31
|
+
</th>
|
|
32
|
+
</tr>
|
|
33
|
+
</template>
|
|
34
|
+
<template partial='body'>
|
|
35
|
+
<tr>
|
|
36
|
+
<td style="text-align: center;">
|
|
37
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
38
|
+
</td>
|
|
39
|
+
<td style="text-align: center;">
|
|
40
|
+
<nobr>{{ row.f_userinfo_id }}</nobr>
|
|
41
|
+
</td>
|
|
42
|
+
<td style="text-align: center;">
|
|
43
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
44
|
+
</td>
|
|
45
|
+
<td style="text-align: center;">
|
|
46
|
+
<nobr>{{ row.f_user_phone }}</nobr>
|
|
47
|
+
</td>
|
|
48
|
+
<td style="text-align: center;">
|
|
49
|
+
<nobr>{{ row.f_credentials }}</nobr>
|
|
50
|
+
</td>
|
|
51
|
+
<td style="text-align: center;">
|
|
52
|
+
<nobr>{{ row.f_idnumber }}</nobr>
|
|
53
|
+
</td>
|
|
54
|
+
<td style="text-align: center;">
|
|
55
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
56
|
+
</td>
|
|
57
|
+
<td>
|
|
58
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
59
|
+
</td>
|
|
60
|
+
<td>
|
|
61
|
+
<nobr>{{ row.f_sub_state }}</nobr>
|
|
62
|
+
</td>
|
|
63
|
+
<td>
|
|
64
|
+
<nobr>
|
|
65
|
+
<button
|
|
66
|
+
type="button" name="button" class="btn btn-link"
|
|
67
|
+
@click="$parent.$parent.$parent.openModel(row)"
|
|
68
|
+
>
|
|
69
|
+
查看
|
|
70
|
+
</button>
|
|
71
|
+
<button
|
|
72
|
+
type="button" name="button" class="btn btn-link"
|
|
73
|
+
@click="$parent.$parent.$parent.deleteUserinfo(row)"
|
|
74
|
+
v-if="$parent.$parent.$parent.showDeleteUserInfo"
|
|
75
|
+
:disabled="row.f_sub_state === '已销户'"
|
|
76
|
+
>
|
|
77
|
+
销户
|
|
78
|
+
</button>
|
|
79
|
+
<button
|
|
80
|
+
type="button" name="button" class="btn btn-link"
|
|
81
|
+
@click="$parent.$parent.$parent.deleteChaiChuInfo(row.id)"
|
|
82
|
+
v-if="$parent.$parent.$parent.showDeleteButton"
|
|
83
|
+
:disabled="$parent.$parent.$parent.mark === 1"
|
|
84
|
+
>
|
|
85
|
+
删除
|
|
86
|
+
</button>
|
|
87
|
+
</nobr>
|
|
88
|
+
</td>
|
|
89
|
+
</tr>
|
|
90
|
+
</template>
|
|
91
|
+
</data-grid>
|
|
92
|
+
</criteria-paged>
|
|
93
|
+
</div>
|
|
94
|
+
<modal v-if="showModel" :show.sync="showModel" v-ref:modal :large="true" :backdrop="false">
|
|
95
|
+
<header slot="modal-header" class="modal-header">
|
|
96
|
+
<button type="button" class="close" @click="closeModel"><span>×</span></button>
|
|
97
|
+
<h4 class="modal-title">安装明细</h4>
|
|
98
|
+
</header>
|
|
99
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
100
|
+
<!-- 基本信息 -->
|
|
101
|
+
<div class="form-group col-sm-12 panel panel-info">
|
|
102
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
103
|
+
<div class="col-sm-6 text-left">用户信息</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="form-group col-sm-6">
|
|
107
|
+
<label class="col-sm-4 control-label">客户编号:</label>
|
|
108
|
+
<div class="col-sm-8">
|
|
109
|
+
<input class="form-control input_view" style=""
|
|
110
|
+
v-model="userinfo.f_userinfo_id"
|
|
111
|
+
:value.sync="userinfo.f_userinfo_id"
|
|
112
|
+
:readonly="true"
|
|
113
|
+
placeholder="客户名称"/>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="form-group col-sm-6">
|
|
117
|
+
<label class="col-sm-4 control-label">用户名称:</label>
|
|
118
|
+
<div class="col-sm-8">
|
|
119
|
+
<input class="form-control input_view" style=""
|
|
120
|
+
v-model="userinfo.f_user_name"
|
|
121
|
+
:value.sync="userinfo.f_user_name"
|
|
122
|
+
:readonly="true"
|
|
123
|
+
placeholder="客户名称"/>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="form-group col-sm-6">
|
|
127
|
+
<label class="col-sm-4 control-label">客户电话:</label>
|
|
128
|
+
<div class="col-sm-8">
|
|
129
|
+
<input class="form-control input_view" style=""
|
|
130
|
+
v-model="userinfo.f_user_phone"
|
|
131
|
+
:value.sync="userinfo.f_user_phone"
|
|
132
|
+
:readonly="true"
|
|
133
|
+
placeholder="客户电话"/>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="form-group col-sm-6">
|
|
137
|
+
<label class="col-sm-4 control-label">证件类型:</label>
|
|
138
|
+
<div class="col-sm-8">
|
|
139
|
+
<input class="form-control input_view" style=""
|
|
140
|
+
v-model="userinfo.f_credentials"
|
|
141
|
+
:value.sync="userinfo.f_credentials"
|
|
142
|
+
:readonly="true"
|
|
143
|
+
placeholder="证件类型"/>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
<div class="form-group col-sm-6">
|
|
147
|
+
<label class="col-sm-4 control-label">证件号码:</label>
|
|
148
|
+
<div class="col-sm-8">
|
|
149
|
+
<input class="form-control input_view" style=""
|
|
150
|
+
placeholder="证件号码"
|
|
151
|
+
v-model="userinfo.f_idnumber"
|
|
152
|
+
:value="userinfo.f_idnumber"
|
|
153
|
+
:readonly="true"/>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
<!-- 地址信息 -->
|
|
157
|
+
<div class="form-group col-sm-12">
|
|
158
|
+
<label class="col-sm-2 control-label">地  址:</label>
|
|
159
|
+
<div class="col-sm-10">
|
|
160
|
+
<input class="form-control input_view"
|
|
161
|
+
placeholder="地址"
|
|
162
|
+
v-model="userinfo.f_address"
|
|
163
|
+
:value.sync="userinfo.f_address"
|
|
164
|
+
:readonly="true"/>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
<!-- 表具信息 -->
|
|
168
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
169
|
+
<div class="col-sm-6 text-left">表具信息</div>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="form-group col-sm-6">
|
|
172
|
+
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
173
|
+
<div class="col-sm-8">
|
|
174
|
+
<input class="form-control input_view"
|
|
175
|
+
placeholder="气表品牌"
|
|
176
|
+
v-model="userinfo.f_gasbrand"
|
|
177
|
+
:value.sync="userinfo.f_gasbrand"
|
|
178
|
+
:readonly="true"/>
|
|
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 class="form-control input_view"
|
|
185
|
+
placeholder="气表型号"
|
|
186
|
+
v-model="userinfo.f_gasmodel"
|
|
187
|
+
:value.sync="userinfo.f_gasmodel"
|
|
188
|
+
:readonly="true"/>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
<div class="form-group col-sm-6">
|
|
192
|
+
<label class="col-sm-4 control-label">表  号:</label>
|
|
193
|
+
<div class="col-sm-8">
|
|
194
|
+
<input class="form-control input_view" style=""
|
|
195
|
+
placeholder="表号"
|
|
196
|
+
v-model="userinfo.f_meternumber"
|
|
197
|
+
:value.sync="userinfo.f_meternumber"
|
|
198
|
+
:readonly="true"/>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
<div class="form-group col-sm-6">
|
|
202
|
+
<label class="col-sm-4 control-label">表 封 号:</label>
|
|
203
|
+
<div class="col-sm-8">
|
|
204
|
+
<input class="form-control input_view" style=""
|
|
205
|
+
placeholder="表封号"
|
|
206
|
+
v-model="userinfo.f_metertitles"
|
|
207
|
+
:value="userinfo.f_metertitles"
|
|
208
|
+
:readonly="true"/>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
<div class="form-group col-sm-6">
|
|
212
|
+
<label class="col-sm-4 control-label">表 底 数:</label>
|
|
213
|
+
<div class="col-sm-8">
|
|
214
|
+
<input class="form-control input_view" style=""
|
|
215
|
+
type="number"
|
|
216
|
+
placeholder="表底数"
|
|
217
|
+
v-model="userinfo.f_meter_base"
|
|
218
|
+
:value="userinfo.f_meter_base"
|
|
219
|
+
:readonly="true"/>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
<div class="form-group col-sm-6">
|
|
223
|
+
<label class="col-sm-4 control-label">最后购气时间:</label>
|
|
224
|
+
<div class="col-sm-8">
|
|
225
|
+
<input class="form-control input_view" style=""
|
|
226
|
+
v-model="userinfo.f_delivery_date"
|
|
227
|
+
:value="userinfo.f_delivery_date"
|
|
228
|
+
:readonly="true"/>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
<div class="form-group col-sm-6">
|
|
232
|
+
<label class="col-sm-4 control-label">剩余金额:</label>
|
|
233
|
+
<div class="col-sm-8">
|
|
234
|
+
<input class="form-control input_view" style=""
|
|
235
|
+
v-model="userinfo.f_balance_amount"
|
|
236
|
+
:value="userinfo.f_balance_amount"
|
|
237
|
+
:readonly="true"/>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="form-group col-sm-6" v-if="selectdata.defname === '核对气量'">
|
|
241
|
+
<label class="col-sm-4 control-label">累购气量:</label>
|
|
242
|
+
<div class="col-sm-8">
|
|
243
|
+
<input class="form-control input_view" style=""
|
|
244
|
+
type="number"
|
|
245
|
+
v-model="inputNumber.f_gas_total"
|
|
246
|
+
:value="inputNumber.f_gas_total"
|
|
247
|
+
:readonly="nowData.f_sub_state === '已销户'"/>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
<div class="form-group col-sm-6" v-if="selectdata.defname === '核对气量'">
|
|
251
|
+
<label class="col-sm-4 control-label">累购金额:</label>
|
|
252
|
+
<div class="col-sm-8">
|
|
253
|
+
<input class="form-control input_view" style=""
|
|
254
|
+
type="number"
|
|
255
|
+
v-model="inputNumber.f_money_total"
|
|
256
|
+
:value="inputNumber.f_money_total"
|
|
257
|
+
:readonly="nowData.f_sub_state === '已销户'"/>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
<div v-for="(i, item) in devicesInfo" class="form-group col-sm-12 panel panel-info">
|
|
261
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
262
|
+
<div class="col-sm-12 text-left">设备{{ $index + 1 }}信息</div>
|
|
263
|
+
</div>
|
|
264
|
+
<div class="form-group col-sm-3">
|
|
265
|
+
<label class="col-sm-4 control-label">设备:</label>
|
|
266
|
+
<div class="col-sm-8">
|
|
267
|
+
<input class="form-control input_view" style=""
|
|
268
|
+
placeholder="设备类型"
|
|
269
|
+
v-model="item.f_devices_type"
|
|
270
|
+
:value="item.f_devices_type"
|
|
271
|
+
readonly/>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
<div class="form-group col-sm-3">
|
|
275
|
+
<label class="col-sm-4 control-label">编号:</label>
|
|
276
|
+
<div class="col-sm-8">
|
|
277
|
+
<input class="form-control input_view" style=""
|
|
278
|
+
placeholder="设备编号"
|
|
279
|
+
v-model="item.f_devices_no"
|
|
280
|
+
:value="item.f_devices_no"
|
|
281
|
+
readonly/>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
<div class="form-group col-sm-3">
|
|
285
|
+
<label class="col-sm-4 control-label">品牌:</label>
|
|
286
|
+
<div class="col-sm-8">
|
|
287
|
+
<input class="form-control input_view" style=""
|
|
288
|
+
placeholder="设备品牌"
|
|
289
|
+
v-model="item.f_brand"
|
|
290
|
+
:value="item.f_brand"
|
|
291
|
+
readonly/>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
<div class="form-group col-sm-3">
|
|
295
|
+
<label class="col-sm-4 control-label">型号:</label>
|
|
296
|
+
<div class="col-sm-8">
|
|
297
|
+
<input class="form-control input_view" style=""
|
|
298
|
+
placeholder="设备型号"
|
|
299
|
+
v-model="item.f_devices_model"
|
|
300
|
+
:value="item.f_devices_model"
|
|
301
|
+
readonly/>
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
<div class="form-group col-sm-3">
|
|
305
|
+
<label class="col-sm-4 control-label">数量:</label>
|
|
306
|
+
<div class="col-sm-8">
|
|
307
|
+
<input class="form-control input_view" style="" type="number"
|
|
308
|
+
placeholder="设备数量"
|
|
309
|
+
v-model="item.f_devices_num"
|
|
310
|
+
:value="item.f_devices_num"
|
|
311
|
+
readonly/>
|
|
312
|
+
</div>
|
|
313
|
+
</div>
|
|
314
|
+
<div class="form-group col-sm-3">
|
|
315
|
+
<label class="col-sm-4 control-label">功率:</label>
|
|
316
|
+
<div class="col-sm-8">
|
|
317
|
+
<input class="form-control input_view" style=""
|
|
318
|
+
placeholder="设备功率"
|
|
319
|
+
type="number"
|
|
320
|
+
v-model="item.f_devices_tonnage"
|
|
321
|
+
:value="item.f_devices_tonnage"
|
|
322
|
+
readonly/>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
<div class="form-group col-sm-3">
|
|
326
|
+
<label class="col-sm-4 control-label">日期:</label>
|
|
327
|
+
<div class="col-sm-8">
|
|
328
|
+
<input class="form-control input_view" style=""
|
|
329
|
+
placeholder="安装日期"
|
|
330
|
+
v-model="item.f_install_date"
|
|
331
|
+
:value="item.f_install_date"
|
|
332
|
+
readonly/>
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
<div class="form-group col-sm-3">
|
|
336
|
+
<label class="col-sm-4 control-label">单位:</label>
|
|
337
|
+
<div class="col-sm-8">
|
|
338
|
+
<input class="form-control input_view" style=""
|
|
339
|
+
placeholder="功率单位"
|
|
340
|
+
v-model="item.f_devices_tonnage_unit"
|
|
341
|
+
:value="item.f_devices_tonnage_unit"
|
|
342
|
+
readonly/>
|
|
343
|
+
</div>
|
|
344
|
+
</div>
|
|
345
|
+
</div>
|
|
346
|
+
</article>
|
|
347
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
348
|
+
<template v-if="selectdata.defname === '核对气量'">
|
|
349
|
+
<button
|
|
350
|
+
type="button" name="button" class="btn btn-info"
|
|
351
|
+
@click="closeModel()"
|
|
352
|
+
>取消</button>
|
|
353
|
+
<button
|
|
354
|
+
type="button" name="button" class="btn btn-info"
|
|
355
|
+
@click="saveGasNumber(userinfo)"
|
|
356
|
+
:disabled="nowData.f_sub_state === '已销户'"
|
|
357
|
+
>保存</button>
|
|
358
|
+
</template>
|
|
359
|
+
</footer>
|
|
360
|
+
</modal>
|
|
361
|
+
<modal v-if="Sign" :show.sync="Sign" v-ref:modal :large="true" :backdrop="false">
|
|
362
|
+
<header slot="modal-header" class="modal-header">
|
|
363
|
+
<button type="button" class="close" @click="closeModel"><span>×</span></button>
|
|
364
|
+
<h4 class="modal-title">用户签字</h4>
|
|
365
|
+
</header>
|
|
366
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
367
|
+
<div class="left col-sm-6 col-xs-6">
|
|
368
|
+
<img-self :src="fileUrl" width="100%" height="100%"></img-self>
|
|
369
|
+
</div>
|
|
370
|
+
</article>
|
|
371
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
372
|
+
<template v-if="mark !== 1 && userinfo.f_user_state !== '正常'">
|
|
373
|
+
</template>
|
|
374
|
+
</footer>
|
|
375
|
+
</modal>
|
|
376
|
+
<validator name="x">
|
|
377
|
+
<modal v-if="showDeleteModel" :show.sync="showDeleteModel" v-ref:modal :large="true" :backdrop="false">
|
|
378
|
+
<header slot="modal-header" class="modal-header">
|
|
379
|
+
<button type="button" class="close" @click="closeModel"><span>×</span></button>
|
|
380
|
+
<h4 class="modal-title">销户原因</h4>
|
|
381
|
+
</header>
|
|
382
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
383
|
+
<div class="left col-sm-12 col-xs-12" :class="[$x.f_cancel_cause.required ? 'has-error' : '']">
|
|
384
|
+
<div class="form-group col-sm-12">
|
|
385
|
+
<label class="col-sm-2 control-label">销户原因:</label>
|
|
386
|
+
<div class="col-sm-10">
|
|
387
|
+
<input class="form-control input_view" style=""
|
|
388
|
+
v-validate:f_cancel_cause="['required']"
|
|
389
|
+
v-model="userinfo.f_cancel_cause"
|
|
390
|
+
:value.sync="userinfo.f_cancel_cause"
|
|
391
|
+
placeholder="销户原因"/>
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
</article>
|
|
396
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
397
|
+
<button type="button" class="btn btn-primary" @click="deleteUser" :disabled="!$x.valid">确认</button>
|
|
398
|
+
</footer>
|
|
399
|
+
</modal>
|
|
400
|
+
</validator>
|
|
401
|
+
</template>
|
|
402
|
+
<script>
|
|
403
|
+
import {PagedList} from 'vue-client'
|
|
404
|
+
import {HttpResetClass} from 'vue-client'
|
|
405
|
+
|
|
406
|
+
export default {
|
|
407
|
+
title: '拆除用户信息',
|
|
408
|
+
props: {
|
|
409
|
+
selectdata: {
|
|
410
|
+
type: Object
|
|
411
|
+
},
|
|
412
|
+
mark: {
|
|
413
|
+
type: Number,
|
|
414
|
+
default: 0 // 0:正常 1:禁用
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
data() {
|
|
418
|
+
return {
|
|
419
|
+
model: new PagedList('rs/sql/getChaiChuUserinfo', 20, {
|
|
420
|
+
data: {
|
|
421
|
+
f_process_id: this.selectdata.f_process_id
|
|
422
|
+
}
|
|
423
|
+
}),
|
|
424
|
+
showWork: false,
|
|
425
|
+
userinfo: {},
|
|
426
|
+
showDeleteModel: false,
|
|
427
|
+
Sign: false,
|
|
428
|
+
fileUrl: null,
|
|
429
|
+
showModel: false,
|
|
430
|
+
devicesInfo: {},
|
|
431
|
+
nowData:{},
|
|
432
|
+
inputNumber: {
|
|
433
|
+
f_gas_total: null,
|
|
434
|
+
f_money_total: null
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
ready() {
|
|
439
|
+
this.search()
|
|
440
|
+
},
|
|
441
|
+
methods: {
|
|
442
|
+
async openModel (row) {
|
|
443
|
+
this.nowData = row
|
|
444
|
+
this.getDeviceList(row)
|
|
445
|
+
let data = {
|
|
446
|
+
f_userinfo_id: row.f_userinfo_id
|
|
447
|
+
}
|
|
448
|
+
let http = new HttpResetClass()
|
|
449
|
+
let res = await http.load(
|
|
450
|
+
'POST',
|
|
451
|
+
`rs/sql/getUserAllInfo`,
|
|
452
|
+
{data: data},
|
|
453
|
+
{resolveMsg: null, rejectMsg: '用户信息查询失败!!!'}
|
|
454
|
+
)
|
|
455
|
+
if (res.data.length > 0){
|
|
456
|
+
this.userinfo = res.data[0]
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
this.inputNumber.f_gas_total = row.f_gas_total
|
|
460
|
+
this.inputNumber.f_money_total = row.f_money_total
|
|
461
|
+
|
|
462
|
+
this.showModel = !this.showModel
|
|
463
|
+
},
|
|
464
|
+
async getDeviceList(row){
|
|
465
|
+
let data = {
|
|
466
|
+
tablename: 't_devices',
|
|
467
|
+
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
468
|
+
}
|
|
469
|
+
let http = new HttpResetClass()
|
|
470
|
+
let res = await http.load(
|
|
471
|
+
'POST',
|
|
472
|
+
`rs/sql/applySingleTable`,
|
|
473
|
+
{data: data},
|
|
474
|
+
{resolveMsg: null, rejectMsg: '设备查询失败!!!'}
|
|
475
|
+
)
|
|
476
|
+
this.devicesInfo = res.data
|
|
477
|
+
},
|
|
478
|
+
async deleteUserinfo(row) {
|
|
479
|
+
this.userinfo = row
|
|
480
|
+
this.showDeleteModel = !this.showDeleteModel
|
|
481
|
+
},
|
|
482
|
+
async deleteUser (row) {
|
|
483
|
+
let res = await this.$showMessage('此操作不可撤回,您确定要删除这条记录吗?')
|
|
484
|
+
if (res === 'cancel') {
|
|
485
|
+
return
|
|
486
|
+
}
|
|
487
|
+
let data = {
|
|
488
|
+
login: this.$login.f,
|
|
489
|
+
userinfo: this.userinfo,
|
|
490
|
+
selectdata: this.selectdata
|
|
491
|
+
}
|
|
492
|
+
res = await this.$resetpost('rs/logic/applyDeleteUserinfo', {data:data}, {
|
|
493
|
+
resolveMsg: null,
|
|
494
|
+
rejectMsg: '删除失败!!!'
|
|
495
|
+
})
|
|
496
|
+
|
|
497
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
498
|
+
},
|
|
499
|
+
deleteChaiChuInfo(index) {
|
|
500
|
+
this.$resetdelete(`rs/entity/t_apply_chai`, {id: index}, {
|
|
501
|
+
resolveMsg: '删除成功',
|
|
502
|
+
rejectMsg: '删除失败'
|
|
503
|
+
}).then((res) => {
|
|
504
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
505
|
+
})
|
|
506
|
+
},
|
|
507
|
+
async saveGasNumber(row) {
|
|
508
|
+
let data = {
|
|
509
|
+
userinfo: row,
|
|
510
|
+
inputNumber: this.inputNumber,
|
|
511
|
+
selectdata: this.selectdata
|
|
512
|
+
}
|
|
513
|
+
let res = await this.$resetpost('rs/logic/applySaveInfo', {data: data}, {
|
|
514
|
+
resolveMsg: '保存成功!!!',
|
|
515
|
+
rejectMsg: '保存失败!!!'
|
|
516
|
+
})
|
|
517
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
518
|
+
},
|
|
519
|
+
openSign() {
|
|
520
|
+
this.getFiles()
|
|
521
|
+
this.Sign = true
|
|
522
|
+
},
|
|
523
|
+
async getFiles() {
|
|
524
|
+
let http = new HttpResetClass()
|
|
525
|
+
console.log('=========pc签字查看===============')
|
|
526
|
+
let data = {
|
|
527
|
+
tablename: 't_files',
|
|
528
|
+
condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '工程施工' and fremarks = '报装手机签字文件'`
|
|
529
|
+
}
|
|
530
|
+
let res = await http.load('POST', `rs/sql/applySingleTable`, {data: data}, {
|
|
531
|
+
warnMsg: null,
|
|
532
|
+
resolveMsg: null
|
|
533
|
+
})
|
|
534
|
+
if (res.data.length > 0) {
|
|
535
|
+
console.log('=========签字地址===============', res.data[0])
|
|
536
|
+
let URL = res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)
|
|
537
|
+
res.data[0].f_downloadURL = "http://" + location.host + "/" + URL
|
|
538
|
+
console.log("=====查看文件地址=====", res.data[0].f_downloadURL)
|
|
539
|
+
this.fileUrl = res.data[0].f_downloadURL
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
async search() {
|
|
543
|
+
this.$refs.cp.$refs.cri.search()
|
|
544
|
+
},
|
|
545
|
+
// 关闭文件上传对话框
|
|
546
|
+
closeModel() {
|
|
547
|
+
this.showWork = false
|
|
548
|
+
this.showModel = false
|
|
549
|
+
this.showDeleteModel = false
|
|
550
|
+
this.userinfo = {}
|
|
551
|
+
this.devicesInfo = {}
|
|
552
|
+
this.Sign = false
|
|
553
|
+
// 将选的文件清空
|
|
554
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
555
|
+
this.search()
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
events: {
|
|
559
|
+
'beforeFileUpload'(file) {
|
|
560
|
+
this.showWork = true
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
computed: {
|
|
564
|
+
showDeleteUserInfo() {
|
|
565
|
+
return this.selectdata.f_apply_type === '设备拆除' && this.selectdata.defname === '核对气量'
|
|
566
|
+
},
|
|
567
|
+
showDeleteButton() {
|
|
568
|
+
return this.selectdata.f_apply_type === '设备拆除' && this.selectdata.defname === '报建受理'
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
|
+
watch: {}
|
|
572
|
+
}
|
|
573
|
+
</script>
|
|
574
|
+
<style scoped>
|
|
575
|
+
.textNoLineBreak {
|
|
576
|
+
white-space: nowrap;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.head-but {
|
|
580
|
+
margin-left: 5px;
|
|
581
|
+
height: 34px;
|
|
582
|
+
/*background-color: #6aa6e2;*/
|
|
583
|
+
border-radius: 4px;
|
|
584
|
+
font-family: PingFang;
|
|
585
|
+
color: #ffffff;
|
|
586
|
+
}
|
|
587
|
+
</style>
|