apply-clients 3.1.55 → 3.1.57
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/package.json +1 -1
- package/src/App.vue +20 -20
- package/src/apply.js +77 -77
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +316 -316
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +26 -26
- package/src/components/product/Function/InstallFunction.vue +165 -165
- package/src/components/product/Function/InstallInfoSelect.vue +278 -278
- package/src/components/product/Function/Service/FunctionServiceControl.vue +262 -262
- package/src/components/product/Function/functions/ChargeManagement.vue +1013 -1013
- package/src/components/product/Order/OrderApply.vue +467 -467
- package/src/components/product/Process/ExplorationSelect.vue +371 -371
- package/src/components/product/Process/ExplorationUser.vue +168 -168
- package/src/components/product/Process/Service/ServiceControl.vue +29 -13
- package/src/components/product/Report/ApplyDevicesList.vue +249 -249
- package/src/components/product/Report/ApplyGongliaoList.vue +239 -239
- package/src/components/product/Report/ApplyReportSearch.vue +26 -26
- package/src/components/product/Report/ReportControl.vue +129 -129
- package/src/components/product/ReportForm/CustomerRecordMessage.vue +1593 -1593
- package/src/components/product/ServiceView.vue +728 -728
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +169 -169
- package/src/components/product/Supervisory/SupervisoryControl.vue +132 -132
- package/src/components/product/Supervisory/SupervisoryControl2.vue +132 -132
- package/src/components/product/Supervisory/SupervisoryList.vue +311 -311
- package/src/components/product/Supervisory/SupervisoryList2.vue +368 -368
- package/src/components/product/Supervisory/SupervisoryhCart.vue +105 -105
- package/yarn-error.log +0 -9175
|
@@ -1,1593 +1,1593 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex col-sm-12" style="margin-top:0px;">
|
|
3
|
-
<div class="auto" style="overflow:auto;margin: 15px 0 0 15px;">
|
|
4
|
-
<div class="form-inline auto col-sm-12">
|
|
5
|
-
<div class="row col-sm-12">
|
|
6
|
-
<div class="form-group col-sm-3">
|
|
7
|
-
<label class=" control-label" >客户姓名</label>
|
|
8
|
-
<input type="text" class="input_search" placeholder='客户姓名' v-model="model.f_user_name"
|
|
9
|
-
@keyup.enter="filterParams(param)" >
|
|
10
|
-
</div>
|
|
11
|
-
<div class="form-group col-sm-3">
|
|
12
|
-
<label class=" control-label" >客户电话</label>
|
|
13
|
-
<input type="text" class="input_search" placeholder='客户电话' v-model="model.f_user_phone"
|
|
14
|
-
@keyup.enter="filterParams(param)" >
|
|
15
|
-
</div>
|
|
16
|
-
<div class="form-group col-sm-5" >
|
|
17
|
-
<button type="button" class="btn btn-default" @click="filterParams(param),this.user_search()">查询</button>
|
|
18
|
-
<button style="margin-left:10px;" type="button" class="btn btn-success" @click="impexcel()" v-show="edit">导入档案工料费</button>
|
|
19
|
-
<button style="margin-left:10px;" type="button" class="btn btn-success" @click="impexcel1()" v-show="edit">导入增值产品</button>
|
|
20
|
-
<button style="margin-left:10px;" type="button" class="btn btn-success" v-show="edit">
|
|
21
|
-
<a href="http://117.33.132.196:6300/webapps/applyinstall/excel/导入档案及工料费.xlsx" target="_blank" style="color: white; margin-right:10px">档案模板</a>
|
|
22
|
-
<a href="http://117.33.132.196:6300/webapps/applyinstall/excel/导入增值产品.xlsx" target="_blank" style="color: white">增值产品模板</a>
|
|
23
|
-
</button>
|
|
24
|
-
<!-- <button style="margin-left:10px;" type="button" class="btn btn-success" @click="impexcel1()" v-show="this.selectdata.defname == '安装施工'">气表模板下载</button>-->
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="row col-sm-12">
|
|
28
|
-
<div class="form-group col-sm-3">
|
|
29
|
-
</div>
|
|
30
|
-
<div class="form-group col-sm-3">
|
|
31
|
-
</div>
|
|
32
|
-
<div class="form-group col-sm-5" style="margin-left: 59px;">
|
|
33
|
-
<button style="margin-left:10px;" type="button" class="btn btn-success" @click="meterUpload()" v-show="this.selectdata.defname == '安装施工'">气表模板下载</button>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<!--户档案管理组件-->
|
|
39
|
-
<div class="col-sm-12 span recordTable" style="margin-top: 10px;height:70vh;">
|
|
40
|
-
|
|
41
|
-
<partial-view v-ref:single-load>
|
|
42
|
-
<data-grid :model="model" v-ref:grid>
|
|
43
|
-
<template partial='head'>
|
|
44
|
-
<tr>
|
|
45
|
-
<th>档案编号</th>
|
|
46
|
-
<th>用户编号</th>
|
|
47
|
-
<th>用户姓名</th>
|
|
48
|
-
<th>用户电话</th>
|
|
49
|
-
<th>地址</th>
|
|
50
|
-
<th>用户状态</th>
|
|
51
|
-
<th >操作</th>
|
|
52
|
-
</tr>
|
|
53
|
-
</template>
|
|
54
|
-
<template partial='body' >
|
|
55
|
-
<td style="text-align: center">{{row.f_userinfo_id}}</td>
|
|
56
|
-
<td style="text-align: center">{{row.f_userinfo_code}}</td>
|
|
57
|
-
<td style="text-align: center">{{row.f_user_name}}</td>
|
|
58
|
-
<td style="text-align: center">{{row.f_user_phone}}</td>
|
|
59
|
-
<td style="text-align: center">{{row.f_address}}</td>
|
|
60
|
-
<td style="text-align: center">{{row.f_user_state}}</td>
|
|
61
|
-
<td v-show="edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>
|
|
62
|
-
<td class="" style="text-align: center">
|
|
63
|
-
<button type="button" name="button" class="btn btn-link"
|
|
64
|
-
@click.stop="$parent.$parent.$parent.modifyParam(row)" >修改
|
|
65
|
-
</button>
|
|
66
|
-
<button type="button" name="button" class="btn btn-link"
|
|
67
|
-
@click.stop="$parent.$parent.$parent.searchProduct(row)" >增值产品
|
|
68
|
-
</button>
|
|
69
|
-
<!-- <button type="button" name="button" class="btn btn-link"-->
|
|
70
|
-
<!-- @click.stop="$parent.$parent.$parent.delete(row)">删除-->
|
|
71
|
-
<!-- </button>-->
|
|
72
|
-
</td>
|
|
73
|
-
</template>
|
|
74
|
-
</data-grid>
|
|
75
|
-
|
|
76
|
-
</partial-view>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
<div class="col-sm-12 span recordTable" style="margin-top: -154px;height:auto;" v-if="isShowdetail" >
|
|
80
|
-
<p class="text-center" style="padding: 8px;font-size: 20px">表档案列表
|
|
81
|
-
|
|
82
|
-
<button type="button" class="close" @click="isShowdetail=false" aria-hidden="true">×</button>
|
|
83
|
-
</p>
|
|
84
|
-
<partial-view v-ref:single-load>
|
|
85
|
-
<data-grid :model="batchmodel" v-ref:batchgrid>
|
|
86
|
-
<template partial='head'>
|
|
87
|
-
<tr>
|
|
88
|
-
<th>序号</th>
|
|
89
|
-
<th>户档案编号</th>
|
|
90
|
-
<th>表档案编号</th>
|
|
91
|
-
<th>表号</th>
|
|
92
|
-
<!-- <th>表箱号</th>-->
|
|
93
|
-
<th>气表品牌</th>
|
|
94
|
-
<th>气表型号</th>
|
|
95
|
-
<!-- <th>气表类型</th>-->
|
|
96
|
-
<th>通气人</th>
|
|
97
|
-
<th>通气时间</th>
|
|
98
|
-
<th>操作</th>
|
|
99
|
-
</tr>
|
|
100
|
-
</template>
|
|
101
|
-
<template partial='body'>
|
|
102
|
-
<td style="text-align: center">{{$index+1}}</td>
|
|
103
|
-
<td style="text-align: center">{{row.f_userinfo_id}}</td>
|
|
104
|
-
<td style="text-align: center">{{row.f_userfiles_id}}</td>
|
|
105
|
-
<td style="text-align: center">{{row.f_meternumber}}</td>
|
|
106
|
-
<!-- <td style="text-align: center">{{row.f_metertitles}}</td>-->
|
|
107
|
-
<td style="text-align: center">{{row.f_meter_brand}}</td>
|
|
108
|
-
<td style="text-align: center">{{row.f_meter_style}}</td>
|
|
109
|
-
<!-- <td style="text-align: center">{{row.f_meter_type}}</td>-->
|
|
110
|
-
<td style="text-align: center">{{row.f_gas_person}}</td>
|
|
111
|
-
<td style="text-align: center">{{row.f_gas_date}}</td>
|
|
112
|
-
<!--<td>{{row.f_remarks}}</td>-->
|
|
113
|
-
<td class="" style="text-align: center">
|
|
114
|
-
<button type="button" name="button" class="btn btn-link"
|
|
115
|
-
@click.stop="$parent.$parent.$parent.filesModify(row)" >修改
|
|
116
|
-
</button>
|
|
117
|
-
<button type="button" name="button" class="btn btn-link"
|
|
118
|
-
@click.stop="$parent.$parent.$parent.deleteItem(row)">删除
|
|
119
|
-
</button>
|
|
120
|
-
<!-- <button type="button" name="button" class="btn btn-link"
|
|
121
|
-
@click.stop="$parent.$parent.$parent.deleteItem(row)" >删除
|
|
122
|
-
</button>-->
|
|
123
|
-
</td>
|
|
124
|
-
</template>
|
|
125
|
-
</data-grid>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
</partial-view>
|
|
131
|
-
</div>
|
|
132
|
-
|
|
133
|
-
</div>
|
|
134
|
-
<modal :show.sync="show" v-ref:modal backdrop="false">
|
|
135
|
-
<header slot="modal-header" class="modal-header">
|
|
136
|
-
<button type="button" class="close" @click="close"><span>×</span></button>
|
|
137
|
-
<h4 class="modal-title">配置</h4>
|
|
138
|
-
</header>
|
|
139
|
-
<!--户档案修改-->
|
|
140
|
-
<article slot="modal-body" class="modal-body" >
|
|
141
|
-
<div class="from-group" style="width: 100%">
|
|
142
|
-
<label style="width: 15%;float: left">用户姓名</label>
|
|
143
|
-
<input type="text" class="form-control" readonly="readonly" v-model="selectItem.f_user_name" style="width: 80%;float: left"/>
|
|
144
|
-
</div>
|
|
145
|
-
<div class="from-group" style="width: 100%">
|
|
146
|
-
<label style="width: 15%;float: left">用户电话</label>
|
|
147
|
-
<input type="text" class="form-control" readonly="readonly" v-model="selectItem.f_user_phone" style="width: 80%;float: left">
|
|
148
|
-
</div>
|
|
149
|
-
<!-- <div class="from-group" style="width: 100%">-->
|
|
150
|
-
<!-- <label style="width: 15%;float: left">区/县</label>-->
|
|
151
|
-
<!-- <input type="text" class="form-control" v-model="selectItem.f_pcd" style="width: 80%;float: left">-->
|
|
152
|
-
<!-- </div>-->
|
|
153
|
-
<!-- <div class="from-group" style="width: 100%">-->
|
|
154
|
-
<!-- <label style="width: 15%;float: left">片区</label>-->
|
|
155
|
-
<!-- <input type="text" class="form-control" v-model="selectItem.f_slice_area" style="width: 80%;float: left">-->
|
|
156
|
-
<!-- </div>-->
|
|
157
|
-
<div class="from-group" style="width: 100%">
|
|
158
|
-
<label style="width: 15%;float: left">街道</label>
|
|
159
|
-
<input type="text" class="form-control" v-model="selectItem.f_street" style="width: 80%;float: left">
|
|
160
|
-
</div>
|
|
161
|
-
<div class="from-group" style="width: 100%">
|
|
162
|
-
<label style="width: 15%;float: left">小区</label>
|
|
163
|
-
<input type="text" class="form-control" v-model="selectItem.f_residential_area" style="width: 80%;float: left">
|
|
164
|
-
</div>
|
|
165
|
-
<div class="from-group" style="width: 100%">
|
|
166
|
-
<label style="width: 15%;float: left">楼号</label>
|
|
167
|
-
<input type="text" class="form-control" v-model="selectItem.f_building" style="width: 80%;float: left">
|
|
168
|
-
</div>
|
|
169
|
-
<div class="from-group" style="width: 100%">
|
|
170
|
-
<label style="width: 15%;float: left">单元号</label>
|
|
171
|
-
<input type="text" class="form-control" v-model="selectItem.f_unit" style="width: 80%;float: left">
|
|
172
|
-
</div>
|
|
173
|
-
<div class="from-group" style="width: 100%">
|
|
174
|
-
<label style="width: 15%;float: left">楼层</label>
|
|
175
|
-
<input type="text" class="form-control" v-model="selectItem.f_floor" style="width: 80%;float: left">
|
|
176
|
-
</div>
|
|
177
|
-
<div class="from-group" style="width: 100%">
|
|
178
|
-
<label style="width: 15%;float: left">门牌号</label>
|
|
179
|
-
<input type="text" class="form-control" v-model="selectItem.f_room" style="width: 80%;float: left">
|
|
180
|
-
</div>
|
|
181
|
-
<!-- <div class="from-group" style="width: 100%">-->
|
|
182
|
-
<!-- <label style="width: 15%;float: left">人口数</label>-->
|
|
183
|
-
<!-- <input type="number" class="form-control" v-model="selectItem.f_people_num" style="width: 80%;float: left">-->
|
|
184
|
-
<!-- </div>-->
|
|
185
|
-
<div class="from-group" style="width: 100%">
|
|
186
|
-
<label style="width: 15%;float: left">用户状态</label>
|
|
187
|
-
<v-select :value.sync="selectItem.f_user_state" v-model="selectItem.f_user_state"
|
|
188
|
-
:options='userstate' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
189
|
-
close-on-select >
|
|
190
|
-
</v-select>
|
|
191
|
-
</div>
|
|
192
|
-
</article>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
196
|
-
<div class="from-group" style="width: 100%;float: left">
|
|
197
|
-
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
198
|
-
<button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
|
|
199
|
-
</div>
|
|
200
|
-
</footer>
|
|
201
|
-
</modal>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
<modal :show.sync="addshow" v-ref:modal backdrop="false">
|
|
205
|
-
<header slot="modal-header" class="modal-header">
|
|
206
|
-
<button type="button" class="close" @click="addclose"><span>×</span></button>
|
|
207
|
-
<h4 class="modal-title">配置</h4>
|
|
208
|
-
</header>
|
|
209
|
-
<!--表档案修改-->
|
|
210
|
-
<article slot="modal-body" class="modal-body" >
|
|
211
|
-
<div class="from-group">
|
|
212
|
-
<label style="width: 20%;float: left">表号</label>
|
|
213
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meternumber"/>
|
|
214
|
-
</div>
|
|
215
|
-
|
|
216
|
-
<!-- <div class="from-group">-->
|
|
217
|
-
<!-- <label style="width: 20%;float: left">表箱号</label>-->
|
|
218
|
-
<!-- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_metertitles"/>-->
|
|
219
|
-
<!-- </div>-->
|
|
220
|
-
<div class="from-group" v-if="this.selectdata.defname != '通气'">
|
|
221
|
-
<label style="width: 20%;float: left">气表品牌</label>
|
|
222
|
-
<v-select :value.sync="selectItem.f_meter_brand" v-model="selectItem.f_meter_brand"
|
|
223
|
-
:options='meterbrand' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
224
|
-
close-on-select search="">
|
|
225
|
-
</v-select>
|
|
226
|
-
</div>
|
|
227
|
-
<!-- 通气时显示 -->
|
|
228
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
229
|
-
<label style="width: 20%;float: left">气表品牌</label>
|
|
230
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meter_brand"/>
|
|
231
|
-
</div>
|
|
232
|
-
|
|
233
|
-
<div class="from-group" v-if="this.selectdata.defname != '通气'">
|
|
234
|
-
<label style="width: 20%;float: left">气表型号</label>
|
|
235
|
-
<v-select :value.sync="selectItem.f_meter_style" v-model="selectItem.f_meter_style"
|
|
236
|
-
:options='meterstyle' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
237
|
-
close-on-select >
|
|
238
|
-
</v-select>
|
|
239
|
-
</div>
|
|
240
|
-
<!-- 通气时显示 -->
|
|
241
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
242
|
-
<label style="width: 20%;float: left">气表型号</label>
|
|
243
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meter_style"/>
|
|
244
|
-
</div>
|
|
245
|
-
|
|
246
|
-
<div class="from-group" v-if="this.selectdata.defname != '通气'">
|
|
247
|
-
<label style="width: 20%;float: left">左右表</label>
|
|
248
|
-
<v-select :value.sync="selectItem.f_aroundmeter" v-model="selectItem.f_aroundmeter"
|
|
249
|
-
:options='aroundmeter' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
250
|
-
close-on-select >
|
|
251
|
-
</v-select>
|
|
252
|
-
</div>
|
|
253
|
-
<!-- 通气时显示 -->
|
|
254
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
255
|
-
<label style="width: 20%;float: left">左右表</label>
|
|
256
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_aroundmeter"/>
|
|
257
|
-
</div>
|
|
258
|
-
|
|
259
|
-
<!-- <div class="from-group">-->
|
|
260
|
-
<!-- <label style="width: 20%;float: left">表状态</label>-->
|
|
261
|
-
<!-- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_table_state"/>-->
|
|
262
|
-
<!-- </div>-->
|
|
263
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
264
|
-
<label style="width: 20%;float: left">气价名称</label>
|
|
265
|
-
<v-select :value.sync="selectItem.f_price_name" v-model="selectItem.f_price_name"
|
|
266
|
-
:options='pricename' placeholder='请选择' style="width: 80%;float: left" :width="'80%'" @change="priceChange"
|
|
267
|
-
close-on-select >
|
|
268
|
-
</v-select>
|
|
269
|
-
</div>
|
|
270
|
-
<!-- <div class="from-group">-->
|
|
271
|
-
<!-- <label style="width: 20%;float: left">客户类型</label>-->
|
|
272
|
-
<!-- <v-select :value.sync="selectItem.f_user_type" v-model="selectItem.f_user_type" :width="'80%'"-->
|
|
273
|
-
<!-- :options='usertypes' placeholder='请选择' style="width: 80%;float: left"-->
|
|
274
|
-
<!-- close-on-select >-->
|
|
275
|
-
<!-- </v-select>-->
|
|
276
|
-
<!-- </div>-->
|
|
277
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
278
|
-
<label style="width: 20%;float: left">客户类型</label>
|
|
279
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_user_type" />
|
|
280
|
-
</div>
|
|
281
|
-
<!-- <div class="from-group">-->
|
|
282
|
-
<!-- <label style="width: 20%;float: left">用气性质</label>-->
|
|
283
|
-
<!-- <v-select :value.sync="selectItem.f_gasproperties" v-model="selectItem.f_gasproperties"-->
|
|
284
|
-
<!-- :options='gasproperties' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"-->
|
|
285
|
-
<!-- close-on-select >-->
|
|
286
|
-
<!-- </v-select>-->
|
|
287
|
-
<!-- </div>-->
|
|
288
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
289
|
-
<label style="width: 20%;float: left">用气性质</label>
|
|
290
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_gasproperties"/>
|
|
291
|
-
</div>
|
|
292
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
293
|
-
<label style="width: 20%;float: left">价格</label>
|
|
294
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_price"/>
|
|
295
|
-
</div>
|
|
296
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
297
|
-
<label style="width: 20%;float: left">气价类型</label>
|
|
298
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_price_type"/>
|
|
299
|
-
</div>
|
|
300
|
-
<!-- <div class="from-group">-->
|
|
301
|
-
<!-- <label style="width: 20%;float: left">气价类型</label>-->
|
|
302
|
-
<!-- <v-select :value.sync="selectItem.f_price_type" v-model="selectItem.f_price_type"-->
|
|
303
|
-
<!-- :options='pricetype' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"-->
|
|
304
|
-
<!-- close-on-select >-->
|
|
305
|
-
<!-- </v-select>-->
|
|
306
|
-
<!-- </div>-->
|
|
307
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
308
|
-
<label style="width: 20%;float: left">气表类型</label>
|
|
309
|
-
<v-select :value.sync="selectItem.f_meter_classify" v-model="selectItem.f_meter_classify"
|
|
310
|
-
:options='meterclassify' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
311
|
-
close-on-select >
|
|
312
|
-
</v-select>
|
|
313
|
-
</div>
|
|
314
|
-
<!-- <div class="from-group" v-if="this.selectdata.defname == '通气'">-->
|
|
315
|
-
<!-- <label style="width: 20%;float: left">安装位置</label>-->
|
|
316
|
-
<!-- <v-select :value.sync="selectItem.f_position" v-model="selectItem.f_position"-->
|
|
317
|
-
<!-- :options='position' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"-->
|
|
318
|
-
<!-- close-on-select >-->
|
|
319
|
-
<!-- </v-select>-->
|
|
320
|
-
<!-- </div>-->
|
|
321
|
-
<!-- <div class="from-group" v-if="this.selectdata.defname == '通气'">-->
|
|
322
|
-
<!-- <label style="width: 20%;float: left">抄表员</label>-->
|
|
323
|
-
<!-- <v-select :value.sync="selectItem.f_inputtor" v-model="selectItem.f_inputtor"-->
|
|
324
|
-
<!-- :options='inputtor' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"-->
|
|
325
|
-
<!-- close-on-select >-->
|
|
326
|
-
<!-- </v-select>-->
|
|
327
|
-
<!-- </div>-->
|
|
328
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气' && this.super_book">
|
|
329
|
-
<label style="width: 20%;float: left">抄表本</label>
|
|
330
|
-
<v-select :value.sync="selectItem.f_super_book" v-model="selectItem.f_super_book"
|
|
331
|
-
:options='super_book_array' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
332
|
-
close-on-select >
|
|
333
|
-
</v-select>
|
|
334
|
-
</div>
|
|
335
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
336
|
-
<label style="width: 20%;float: left">通气人</label>
|
|
337
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_gas_person"/>
|
|
338
|
-
</div>
|
|
339
|
-
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
340
|
-
<label style="width: 20%;float: left">通气时间</label>
|
|
341
|
-
<datepicker style="width: 80%;float: left" :width="'80%'"
|
|
342
|
-
:value.sync="selectItem.f_gas_date"
|
|
343
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
344
|
-
v-model="selectItem.f_gas_date"
|
|
345
|
-
:readonly="true"
|
|
346
|
-
:show-reset-button="reset">
|
|
347
|
-
</datepicker>
|
|
348
|
-
</div>
|
|
349
|
-
<!-- <div class="from-group">-->
|
|
350
|
-
<!-- <label style="width: 20%;float: left">通气表号</label>-->
|
|
351
|
-
<!-- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_gas_meternumber"/>-->
|
|
352
|
-
<!-- </div>-->
|
|
353
|
-
<!--<div class="from-group">
|
|
354
|
-
<label style="width: 20%;float: left">输损率</label>
|
|
355
|
-
<input type="number" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_lossrate" v-validate:f_lossrate='{dctest: [1, "<" ] }'/>
|
|
356
|
-
</div>-->
|
|
357
|
-
|
|
358
|
-
</article>
|
|
359
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
360
|
-
<button type="button" class="btn btn-default" @click='addclose'>取消</button>
|
|
361
|
-
<button type="button" class="btn btn-success" v-if="showqueren" @click='addconfirm'>确认</button>
|
|
362
|
-
<button type="button" class="btn btn-success" v-else>提交中</button>
|
|
363
|
-
</footer>
|
|
364
|
-
</modal>
|
|
365
|
-
|
|
366
|
-
<modal :show.sync="updateshow" v-ref:modal backdrop="false">
|
|
367
|
-
<header slot="modal-header" class="modal-header">
|
|
368
|
-
<button type="button" class="close" @click="updateclose"><span>×</span></button>
|
|
369
|
-
<h4 class="modal-title">配置</h4>
|
|
370
|
-
</header>
|
|
371
|
-
<!--户档案修改-->
|
|
372
|
-
<article slot="modal-body" class="modal-body" >
|
|
373
|
-
<div class="from-group">
|
|
374
|
-
<label style="width: 20%;float: left">表号</label>
|
|
375
|
-
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meternumber"/>
|
|
376
|
-
</div>
|
|
377
|
-
<div class="from-group">
|
|
378
|
-
<label style="width: 20%;float: left">气表品牌</label>
|
|
379
|
-
<v-select :value.sync="selectItem.f_meter_brand" v-model="selectItem.f_meter_brand"
|
|
380
|
-
:options='meterbrand' placeholder='请选择' style="width: 80%;float: left"
|
|
381
|
-
close-on-select search="">
|
|
382
|
-
</v-select>
|
|
383
|
-
</div>
|
|
384
|
-
<div class="from-group">
|
|
385
|
-
<label style="width: 20%;float: left">表型号</label>
|
|
386
|
-
<v-select :value.sync="selectItem.f_meter_style" v-model="selectItem.f_meter_style"
|
|
387
|
-
:options='meterstyle' placeholder='请选择' style="width: 80%;float: left"
|
|
388
|
-
close-on-select >
|
|
389
|
-
</v-select>
|
|
390
|
-
</div>
|
|
391
|
-
</article>
|
|
392
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
393
|
-
<button type="button" class="btn btn-default" @click='updateclose'>取消</button>
|
|
394
|
-
<button type="button" class="btn btn-success" @click='updateconfirm'>确认</button>
|
|
395
|
-
</footer>
|
|
396
|
-
</modal>
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
<!-- <modal :show.sync="showFile" v-ref:modal backdrop="false">-->
|
|
400
|
-
<!-- <header slot="modal-header" class="modal-header">-->
|
|
401
|
-
<!-- <button type="button" class="close" @click="closeFile"><span>×</span></button>-->
|
|
402
|
-
<!-- <h4 class="modal-title">档案及工料费导入</h4>-->
|
|
403
|
-
<!-- </header>-->
|
|
404
|
-
<!-- <article slot="modal-body" class="modal-body">-->
|
|
405
|
-
<!-- <div class="form-group">-->
|
|
406
|
-
<!-- <file-upload class="my-file-uploader" :name="key+(Math.random()+3)+8882" :id="key+(Math.random()+3)+8882"-->
|
|
407
|
-
<!-- action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file></file-upload>-->
|
|
408
|
-
<!-- </div>-->
|
|
409
|
-
<!-- </article>-->
|
|
410
|
-
<!-- <footer slot="modal-footer" class="modal-footer"></footer>-->
|
|
411
|
-
<!-- </modal>-->
|
|
412
|
-
<!-- <modal :show.sync="showInfo" v-ref:modal backdrop="false">-->
|
|
413
|
-
<!-- <header slot="modal-header" class="modal-header">-->
|
|
414
|
-
<!-- <button type="button" class="close" @click="closeFile1"><span>×</span></button>-->
|
|
415
|
-
<!-- <h4 class="modal-title">增值产品导入</h4>-->
|
|
416
|
-
<!-- </header>-->
|
|
417
|
-
<!-- <article slot="modal-body" class="modal-body">-->
|
|
418
|
-
<!-- <div class="form-group">-->
|
|
419
|
-
<!-- <file-upload class="my-file-uploader" :name="key+(Math.random()+3)+8883" :id="key+(Math.random()+3)+8883"-->
|
|
420
|
-
<!-- action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file_one></file-upload>-->
|
|
421
|
-
<!-- </div>-->
|
|
422
|
-
<!-- </article>-->
|
|
423
|
-
<!-- <footer slot="modal-footer" class="modal-footer"></footer>-->
|
|
424
|
-
<!-- </modal>-->
|
|
425
|
-
<!-- 档案及工料费导入 -->
|
|
426
|
-
<modal :show.sync="showFile" v-ref:modal backdrop="false">
|
|
427
|
-
<header slot="modal-header" class="modal-header">
|
|
428
|
-
<button type="button" class="close" @click="closeFile"><span class="glyphicon glyphicon-remove"></span></button>
|
|
429
|
-
<h4 class="modal-title" style="text-align: center">档案及工料费导入</h4>
|
|
430
|
-
</header>
|
|
431
|
-
<article slot="modal-body" class="modal-body form-horizontal">
|
|
432
|
-
<div class="form-group" style="text-align: center">
|
|
433
|
-
<file-upload class="my-file-uploader" :name="'myFile' + selectdata.f_process_id"
|
|
434
|
-
action="rs/file/uploadFile" tagname="文件导入" :headers="headers" multiple v-ref:file></file-upload>
|
|
435
|
-
</div>
|
|
436
|
-
</article>
|
|
437
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
438
|
-
</footer>
|
|
439
|
-
</modal>
|
|
440
|
-
<!-- 增值产品导入 -->
|
|
441
|
-
<modal :show.sync="showInfo" v-ref:modal backdrop="false">
|
|
442
|
-
<header slot="modal-header" class="modal-header">
|
|
443
|
-
<button type="button" class="close" @click="closeFile1"><span class="glyphicon glyphicon-remove"></span></button>
|
|
444
|
-
<h4 class="modal-title" style="text-align: center">增值产品导入</h4>
|
|
445
|
-
</header>
|
|
446
|
-
<article slot="modal-body" class="modal-body form-horizontal">
|
|
447
|
-
<div class="form-group" style="text-align: center">
|
|
448
|
-
<file-upload class="my-file-uploader" :name="'myFile' + selectdata.f_process_id"
|
|
449
|
-
action="rs/file/uploadFile" tagname="文件导入" :headers="headers" multiple v-ref:file1></file-upload>
|
|
450
|
-
</div>
|
|
451
|
-
</article>
|
|
452
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
453
|
-
</footer>
|
|
454
|
-
</modal>
|
|
455
|
-
<!-- 弹出框显示增值产品信息 -->
|
|
456
|
-
<modal :show.sync="productPage" v-ref:modal backdrop="false" style="width: 100%">
|
|
457
|
-
<header slot="modal-header" class="modal-header" style="width: 100%">
|
|
458
|
-
<button type="button" class="close" @click="closeProduct"><span class="glyphicon glyphicon-remove"></span></button>
|
|
459
|
-
<h4 class="modal-title" style="text-align: center">增值产品信息</h4>
|
|
460
|
-
</header>
|
|
461
|
-
<article slot="modal-body" class="modal-body clearfix" style="width: 100%">
|
|
462
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
463
|
-
<!-- <label class="col-sm-2 control-label">增值产品类型:</label>-->
|
|
464
|
-
<!-- <div class="col-sm-10">-->
|
|
465
|
-
<!-- <input type="text"-->
|
|
466
|
-
<!-- class="form-control input_view"-->
|
|
467
|
-
<!-- readonly-->
|
|
468
|
-
<!-- v-model="productData.f_increment_type" />-->
|
|
469
|
-
<!-- </div>-->
|
|
470
|
-
<!-- </div>-->
|
|
471
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
472
|
-
<!-- <label class="col-sm-2 control-label">型号:</label>-->
|
|
473
|
-
<!-- <div class="col-sm-10">-->
|
|
474
|
-
<!-- <input type="text"-->
|
|
475
|
-
<!-- class="form-control input_view"-->
|
|
476
|
-
<!-- style="width: 100%"-->
|
|
477
|
-
<!-- readonly-->
|
|
478
|
-
<!-- v-model="productData.f_increment_style" />-->
|
|
479
|
-
<!-- </div>-->
|
|
480
|
-
<!-- </div>-->
|
|
481
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
482
|
-
<!-- <label class="col-sm-2 control-label">收款方式:</label>-->
|
|
483
|
-
<!-- <div class="col-sm-10">-->
|
|
484
|
-
<!-- <input type="text"-->
|
|
485
|
-
<!-- class="form-control input_view"-->
|
|
486
|
-
<!-- style="width: 100%"-->
|
|
487
|
-
<!-- readonly-->
|
|
488
|
-
<!-- v-model="productData.f_increment_payment_method" />-->
|
|
489
|
-
<!-- </div>-->
|
|
490
|
-
<!-- </div>-->
|
|
491
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
492
|
-
<!-- <label class="col-sm-2 control-label">售价:</label>-->
|
|
493
|
-
<!-- <div class="col-sm-10">-->
|
|
494
|
-
<!-- <input type="text"-->
|
|
495
|
-
<!-- class="form-control input_view"-->
|
|
496
|
-
<!-- style="width: 100%"-->
|
|
497
|
-
<!-- readonly-->
|
|
498
|
-
<!-- v-model="productData.f_increment_money" />-->
|
|
499
|
-
<!-- </div>-->
|
|
500
|
-
<!-- </div>-->
|
|
501
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
502
|
-
<!-- <label class="col-sm-2 control-label">增值产品票号:</label>-->
|
|
503
|
-
<!-- <div class="col-sm-10">-->
|
|
504
|
-
<!-- <input type="text"-->
|
|
505
|
-
<!-- class="form-control input_view"-->
|
|
506
|
-
<!-- style="width: 100%"-->
|
|
507
|
-
<!-- readonly-->
|
|
508
|
-
<!-- v-model="productData.f_increment_ticket_number" />-->
|
|
509
|
-
<!-- </div>-->
|
|
510
|
-
<!-- </div>-->
|
|
511
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
512
|
-
<!-- <label class="col-sm-2 control-label">增值产品营销人员:</label>-->
|
|
513
|
-
<!-- <div class="col-sm-10">-->
|
|
514
|
-
<!-- <input type="text"-->
|
|
515
|
-
<!-- class="form-control input_view"-->
|
|
516
|
-
<!-- style="width: 100%"-->
|
|
517
|
-
<!-- readonly-->
|
|
518
|
-
<!-- v-model="productData.f_increment_marketing_person" />-->
|
|
519
|
-
<!-- </div>-->
|
|
520
|
-
<!-- </div>-->
|
|
521
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
522
|
-
<!-- <label class="col-sm-2 control-label">套数:</label>-->
|
|
523
|
-
<!-- <div class="col-sm-10">-->
|
|
524
|
-
<!-- <input type="text"-->
|
|
525
|
-
<!-- class="form-control input_view"-->
|
|
526
|
-
<!-- style="width: 100%"-->
|
|
527
|
-
<!-- readonly-->
|
|
528
|
-
<!-- v-model="productData.f_increment_number" />-->
|
|
529
|
-
<!-- </div>-->
|
|
530
|
-
<!-- </div>-->
|
|
531
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
532
|
-
<!-- <label class="col-sm-2 control-label">增值产品备注:</label>-->
|
|
533
|
-
<!-- <div class="col-sm-10">-->
|
|
534
|
-
<!-- <input type="text"-->
|
|
535
|
-
<!-- class="form-control input_view"-->
|
|
536
|
-
<!-- style="width: 100%"-->
|
|
537
|
-
<!-- readonly-->
|
|
538
|
-
<!-- v-model="productData.f_increment_remarks" />-->
|
|
539
|
-
<!-- </div>-->
|
|
540
|
-
<!-- </div>-->
|
|
541
|
-
<!-- <div class="form-group col-sm-12">-->
|
|
542
|
-
<!-- <label class="col-sm-2 control-label">增值产品收费日期:</label>-->
|
|
543
|
-
<!-- <div class="col-sm-10">-->
|
|
544
|
-
<!-- <input type="text"-->
|
|
545
|
-
<!-- class="form-control input_view"-->
|
|
546
|
-
<!-- style="width: 100%"-->
|
|
547
|
-
<!-- readonly-->
|
|
548
|
-
<!-- v-model="productData.f_increment_charge_date" />-->
|
|
549
|
-
<!-- </div>-->
|
|
550
|
-
<!-- </div>-->
|
|
551
|
-
|
|
552
|
-
<div class="col-sm-12 span recordTable" style="margin-top: 10px;height:70vh;width: 100%">
|
|
553
|
-
|
|
554
|
-
<partial-view v-ref:single-load>
|
|
555
|
-
<data-grid :model="productData" v-ref:grid>
|
|
556
|
-
<template partial='head'>
|
|
557
|
-
<tr>
|
|
558
|
-
<th>增值产品类型</th>
|
|
559
|
-
<th>型号</th>
|
|
560
|
-
<th>收款方式</th>
|
|
561
|
-
<th>售价</th>
|
|
562
|
-
<th>增值产品票号</th>
|
|
563
|
-
<th>增值产品营销人员</th>
|
|
564
|
-
<th >套数</th>
|
|
565
|
-
<th >增值产品备注</th>
|
|
566
|
-
<th >增值产品收费日期</th>
|
|
567
|
-
</tr>
|
|
568
|
-
</template>
|
|
569
|
-
<template partial='body' >
|
|
570
|
-
<td style="text-align: center">{{row.f_increment_type}}</td>
|
|
571
|
-
<td style="text-align: center">{{row.f_increment_style}}</td>
|
|
572
|
-
<td style="text-align: center">{{row.f_increment_payment_method}}</td>
|
|
573
|
-
<td style="text-align: center">{{row.f_increment_money}}</td>
|
|
574
|
-
<td style="text-align: center">{{row.f_increment_ticket_number}}</td>
|
|
575
|
-
<td style="text-align: center">{{row.f_increment_marketing_person}}</td>
|
|
576
|
-
<td style="text-align: center">{{row.f_increment_number}}</td>
|
|
577
|
-
<td style="text-align: center">{{row.f_increment_remarks}}</td>
|
|
578
|
-
<td style="text-align: center">{{row.f_increment_charge_date}}</td>
|
|
579
|
-
|
|
580
|
-
</template>
|
|
581
|
-
</data-grid>
|
|
582
|
-
|
|
583
|
-
</partial-view>
|
|
584
|
-
</div>
|
|
585
|
-
</article>
|
|
586
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
587
|
-
</footer>
|
|
588
|
-
</modal>
|
|
589
|
-
<work-busy :is-busy="iswork" v-show="iswork"></work-busy>
|
|
590
|
-
</template>
|
|
591
|
-
|
|
592
|
-
<script>
|
|
593
|
-
import {HttpResetClass} from 'vue-client'
|
|
594
|
-
// import axios from 'axios'
|
|
595
|
-
import Vue from 'vue'
|
|
596
|
-
export default {
|
|
597
|
-
title: '档案信息',
|
|
598
|
-
props: ['selectdata', 'key','edit'],
|
|
599
|
-
data() {
|
|
600
|
-
return {
|
|
601
|
-
iswork:false,
|
|
602
|
-
headers: {'username': this.$login.f.name, 'blodid': this.selectdata.f_process_id, 'fusetype': '报建execl导入用户档案'},
|
|
603
|
-
//户档案表头
|
|
604
|
-
userHeadData: ['档案编号', '用户姓名', '用户电话', '区', '片区', '街道名称', '小区名称', '楼号', '单元号', '楼层', '门牌号', '用气性质', '用户状态'],
|
|
605
|
-
//户档案内容
|
|
606
|
-
userBodyData: ['f_userinfo_id', 'f_user_name', 'f_user_phone', 'f_area', 'f_slice_area', 'f_street', 'f_residential_area', 'f_building', 'f_unit', 'f_floor', 'f_room', 'f_gasproperties', 'f_user_state'],
|
|
607
|
-
//表档案表头
|
|
608
|
-
surHeadData: ['户档案编号', '表号', '气表品牌', '表型号','通气表号','通气人','通气时间','被修改表号'],
|
|
609
|
-
//表档案内容
|
|
610
|
-
surBodyData: ['f_userinfo_id', 'f_meternumber', 'f_meter_brand', 'f_meter_style','f_gas_meternumber','f_gas_person','f_gas_date','f_gas_meternumber'],
|
|
611
|
-
//设备表头
|
|
612
|
-
eqHeadData: ['户档案编号', '设备编号', '设备类型', '设备品牌','设备型号','设备数量'],
|
|
613
|
-
//设备内容
|
|
614
|
-
eqBodyData: ['f_userinfo_id', 'f_devices_no', 'f_devices_type', 'f_brand','f_devices_model','f_devices_num'],
|
|
615
|
-
record: {},
|
|
616
|
-
selectItem: {
|
|
617
|
-
'f_meternumber': null,
|
|
618
|
-
'f_meter_brand': null,
|
|
619
|
-
'f_meter_style': null,
|
|
620
|
-
'f_aroundmeter': null,
|
|
621
|
-
'f_price_name': null,
|
|
622
|
-
'f_price_type': null,
|
|
623
|
-
'f_price': null,
|
|
624
|
-
'f_gasproperties': null,
|
|
625
|
-
'f_user_type': null,
|
|
626
|
-
'f_meter_classify': null,
|
|
627
|
-
'f_position': null,
|
|
628
|
-
'f_inputtor': null,
|
|
629
|
-
'f_gas_person': null,
|
|
630
|
-
'f_gas_date': null,
|
|
631
|
-
'f_super_book': null
|
|
632
|
-
},
|
|
633
|
-
pricetype:[],
|
|
634
|
-
pricename:[],
|
|
635
|
-
model: {
|
|
636
|
-
rows: []
|
|
637
|
-
},
|
|
638
|
-
batchmodel :{
|
|
639
|
-
rows: []
|
|
640
|
-
},
|
|
641
|
-
params: { // 选择的具体内容
|
|
642
|
-
rows: []
|
|
643
|
-
},
|
|
644
|
-
condition: '',
|
|
645
|
-
show: false,
|
|
646
|
-
showFile: false,
|
|
647
|
-
showInfo: false,// 表信息导入
|
|
648
|
-
showCon: false,
|
|
649
|
-
ischecked: false,
|
|
650
|
-
getfield: {},
|
|
651
|
-
checked: [],
|
|
652
|
-
isShowdetail:false,
|
|
653
|
-
userinfo_id: null,
|
|
654
|
-
addshow:false,
|
|
655
|
-
meterstyle:[],
|
|
656
|
-
meterbrand:[],
|
|
657
|
-
styletype:[],
|
|
658
|
-
updateshow:false,
|
|
659
|
-
importtype:null,
|
|
660
|
-
showqueren:true,
|
|
661
|
-
userstate:this.$appdata.getParam('用户状态'),
|
|
662
|
-
checker:this.$appdata.getParam('安全员'),
|
|
663
|
-
coststate:this.$appdata.getParam('结算状态'),
|
|
664
|
-
costtype:this.$appdata.getParam('缴费类型'),
|
|
665
|
-
aroundmeter:this.$appdata.getParam('左右表'),
|
|
666
|
-
// gasproperties:this.$appdata.getParam('用气性质'),
|
|
667
|
-
// usertypes:this.$appdata.getParam('用户类型'),
|
|
668
|
-
// tablestate:this.$appdata.getParam('表状态'),
|
|
669
|
-
meterclassify:this.$appdata.getParam('气表类型'),
|
|
670
|
-
whetherhairpin:this.$appdata.getParam('是否发卡'),
|
|
671
|
-
// position:this.$appdata.getParam('安装位置'),
|
|
672
|
-
inputtor:null,
|
|
673
|
-
viewPage: false,
|
|
674
|
-
userinfo_array: [],
|
|
675
|
-
super_book: false,
|
|
676
|
-
super_book_array: [],
|
|
677
|
-
upload_meter: false,
|
|
678
|
-
productPage: false,
|
|
679
|
-
productData: {
|
|
680
|
-
rows: []
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
},
|
|
684
|
-
ready() {
|
|
685
|
-
// 获取抄表员
|
|
686
|
-
// let data = []
|
|
687
|
-
// let array = []
|
|
688
|
-
// data = this.$login.f.f_gasman.map(item => {
|
|
689
|
-
// return item.name;
|
|
690
|
-
// })
|
|
691
|
-
// for (let q = 0; q < data.length; q++) {
|
|
692
|
-
// let arraydata = {
|
|
693
|
-
// 'label': data[q],
|
|
694
|
-
// 'value': data[q]
|
|
695
|
-
// }
|
|
696
|
-
// if (array.length != 0) {
|
|
697
|
-
// for (let w = 0; w < array.length; w++) {
|
|
698
|
-
// if (array[w].label == data[q]) {
|
|
699
|
-
// break
|
|
700
|
-
// }
|
|
701
|
-
// while (w == array.length - 1) {
|
|
702
|
-
// array.push(arraydata)
|
|
703
|
-
// break
|
|
704
|
-
// }
|
|
705
|
-
// }
|
|
706
|
-
// } else {
|
|
707
|
-
// array.push(arraydata)
|
|
708
|
-
// }
|
|
709
|
-
// }
|
|
710
|
-
// this.inputtor = array
|
|
711
|
-
this.load()
|
|
712
|
-
this.getitem()
|
|
713
|
-
|
|
714
|
-
if (this.selectdata.defname == '通气') {
|
|
715
|
-
this.getPriceInfo()
|
|
716
|
-
// this.getMeterBook()
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
watch: {
|
|
720
|
-
'selectdata'() {
|
|
721
|
-
this.headers.blodid = this.selectdata.f_process_id
|
|
722
|
-
this.load()
|
|
723
|
-
},
|
|
724
|
-
// 'selectItem.f_meter_classify[0]'(val) {
|
|
725
|
-
// if (val == '机表') {
|
|
726
|
-
// this.super_book = true
|
|
727
|
-
// this.getMeterBook()
|
|
728
|
-
// }else {
|
|
729
|
-
// this.super_book = false
|
|
730
|
-
// }
|
|
731
|
-
// },
|
|
732
|
-
'selectItem.f_meter_brand[0]'(val) {
|
|
733
|
-
console.log('选择的品牌改变了',val)
|
|
734
|
-
if (!val){
|
|
735
|
-
return
|
|
736
|
-
}
|
|
737
|
-
this.$resetpost('rs/logic/getMeterStyle', {data:{f_meter_brand :val, f_orgid: this.$login.f.orgid}} ,{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
738
|
-
console.log('获取的选项',res)
|
|
739
|
-
let house2 = []
|
|
740
|
-
for (let row of res.data){
|
|
741
|
-
house2.push({label: row.f_meter_style,value: row.f_meter_style})
|
|
742
|
-
}
|
|
743
|
-
this.meterstyle = house2
|
|
744
|
-
})
|
|
745
|
-
},
|
|
746
|
-
// 'selectItem.f_meternumber'() {
|
|
747
|
-
// if (this.selectItem.hasOwnProperty("f_meternumber")) {
|
|
748
|
-
// if (this.selectItem.f_meternumber == null || this.selectItem.f_meternumber == undefined || this.selectItem.f_meternumber == '' || this.selectItem.f_meternumber.trim().length == 0){
|
|
749
|
-
// this.$set('selectItem.f_table_state', "待安装")
|
|
750
|
-
// }else {
|
|
751
|
-
// this.$set('selectItem.f_table_state', "已安装")
|
|
752
|
-
// }
|
|
753
|
-
// }
|
|
754
|
-
//
|
|
755
|
-
// }
|
|
756
|
-
},
|
|
757
|
-
|
|
758
|
-
computed: {
|
|
759
|
-
address() {
|
|
760
|
-
let strAddress = `${this.record.f_area ? this.record.f_area
|
|
761
|
-
+ '-' : ''}${this.record.f_street ? this.record.f_street
|
|
762
|
-
+ '-' : ''}${this.record.f_residential_area ? this.record.f_residential_area
|
|
763
|
-
+ '' : ''}${this.record.f_building ? this.record.f_building
|
|
764
|
-
+ '号楼' : ''}${this.record.f_unit ? this.record.f_unit
|
|
765
|
-
+ '单元' : ''}${this.record.f_floor ? this.record.f_floor
|
|
766
|
-
+ '层' : ''}${this.record.f_room ? this.record.f_room
|
|
767
|
-
+ '室' : ''}`
|
|
768
|
-
this.record.f_address = strAddress
|
|
769
|
-
return strAddress
|
|
770
|
-
},
|
|
771
|
-
getfield() {
|
|
772
|
-
let data = {}
|
|
773
|
-
this.userBodyData.forEach((value, index) => {
|
|
774
|
-
data[this.userBodyData[index]] = this.userHeadData[index]
|
|
775
|
-
})
|
|
776
|
-
|
|
777
|
-
console.log('data', data)
|
|
778
|
-
return data
|
|
779
|
-
}
|
|
780
|
-
},
|
|
781
|
-
methods: {
|
|
782
|
-
// 获取气价信息
|
|
783
|
-
async getPriceInfo() {
|
|
784
|
-
console.log('开始获取气价信息')
|
|
785
|
-
let http = new HttpResetClass()
|
|
786
|
-
let condition = "f_orgid = '" + this.$login.f.orgid + "'"
|
|
787
|
-
let res = await http.load('POST','rs/sql/applysingleTable',{data:{tablename:'t_stairprice',condition:condition}}, {resolveMsg: null, rejectMsg: null})
|
|
788
|
-
let data = []
|
|
789
|
-
let array = []
|
|
790
|
-
data = res.data.map(item => {
|
|
791
|
-
return item.f_price_name;
|
|
792
|
-
})
|
|
793
|
-
for (let q = 0; q < data.length; q++) {
|
|
794
|
-
let arraydata = {
|
|
795
|
-
'label': data[q],
|
|
796
|
-
'value': data[q]
|
|
797
|
-
}
|
|
798
|
-
if (array.length != 0) {
|
|
799
|
-
for (let w = 0; w < array.length; w++) {
|
|
800
|
-
if (array[w].label == data[q]) {
|
|
801
|
-
break
|
|
802
|
-
}
|
|
803
|
-
while (w == array.length - 1) {
|
|
804
|
-
array.push(arraydata)
|
|
805
|
-
break
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
} else {
|
|
809
|
-
array.push(arraydata)
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
this.pricename = array
|
|
813
|
-
},
|
|
814
|
-
// 获取抄表册
|
|
815
|
-
// async getMeterBook() {
|
|
816
|
-
// let http = new HttpResetClass()
|
|
817
|
-
// let condition = " f_orgname = '" + this.$login.f.orgs + "'"
|
|
818
|
-
// let res = await http.load('POST','rs/sql/applysingleTable',{data:{tablename: 't_meter_book', condition: condition}}, {resolveMsg: null, rejectMsg: "获取抄表本失败"})
|
|
819
|
-
// let data = []
|
|
820
|
-
// let array = []
|
|
821
|
-
// data = res.data.map(item => {
|
|
822
|
-
// return item.f_book_name;
|
|
823
|
-
// })
|
|
824
|
-
// for (let q = 0; q < data.length; q++) {
|
|
825
|
-
// let arraydata = {
|
|
826
|
-
// 'label': data[q],
|
|
827
|
-
// 'value': data[q]
|
|
828
|
-
// }
|
|
829
|
-
// if (array.length != 0) {
|
|
830
|
-
// for (let w = 0; w < array.length; w++) {
|
|
831
|
-
// if (array[w].label == data[q]) {
|
|
832
|
-
// break
|
|
833
|
-
// }
|
|
834
|
-
// while (w == array.length - 1) {
|
|
835
|
-
// array.push(arraydata)
|
|
836
|
-
// break
|
|
837
|
-
// }
|
|
838
|
-
// }
|
|
839
|
-
// } else {
|
|
840
|
-
// array.push(arraydata)
|
|
841
|
-
// }
|
|
842
|
-
// }
|
|
843
|
-
// this.super_book_array = array
|
|
844
|
-
//
|
|
845
|
-
// },
|
|
846
|
-
// 根据气价名称获取其他相对应数据
|
|
847
|
-
priceChange(val) {
|
|
848
|
-
console.log("被选中的数据:" + val)
|
|
849
|
-
this.getData(val)
|
|
850
|
-
},
|
|
851
|
-
async getData(val) {
|
|
852
|
-
let http2 = new HttpResetClass()
|
|
853
|
-
let condition2 = "s.f_orgid = '" + this.$login.f.orgid + "'" + " and s.f_price_name = '" + val + "'"
|
|
854
|
-
http2.load('POST','rs/sql/searchGasPrice',{data:{condition:condition2}}, {resolveMsg: null, rejectMsg: null}).then((res2)=>{
|
|
855
|
-
console.log("气价数据:" + JSON.stringify(res2.data))
|
|
856
|
-
// for (let j = 0; j < this.$refs.service_show.data.fields.length; j++) {
|
|
857
|
-
// if (this.$refs.service_show.data.fields[j].label == '气价类型') {
|
|
858
|
-
// console.log("气价类型:" + res2.data[0])
|
|
859
|
-
// console.log("气价类型1:" + res2.data[0].f_price_type)
|
|
860
|
-
// Vue.set(this.selectItem,'f_price_type',res2.data[0].f_price_type)
|
|
861
|
-
// this.selectItem.f_price_type = res2.data[0].f_price_type
|
|
862
|
-
// console.log("气价类型2:" + this.$refs.service_show.data.fields[j].value)
|
|
863
|
-
// }
|
|
864
|
-
//气价拼接
|
|
865
|
-
// if (this.$refs.service_show.data.fields[j].label == '价格') {
|
|
866
|
-
let p = 1
|
|
867
|
-
let resultPrice = ''
|
|
868
|
-
for(let l = 0; l < res2.data.length; l++){
|
|
869
|
-
resultPrice = resultPrice + res2.data[l].price + ' |'
|
|
870
|
-
if (p == 3) {
|
|
871
|
-
break
|
|
872
|
-
}
|
|
873
|
-
p++
|
|
874
|
-
}
|
|
875
|
-
console.log("拼接的价格:" + resultPrice)
|
|
876
|
-
//this.selectItem.f_price = resultPrice
|
|
877
|
-
this.$set('selectItem.f_price',resultPrice)
|
|
878
|
-
this.$set('selectItem.f_gasproperties',res2.data[0].f_gasproperties)
|
|
879
|
-
this.$set('selectItem.f_user_type',res2.data[0].f_user_type)
|
|
880
|
-
this.$set('selectItem.f_price_type',res2.data[0].f_price_type)
|
|
881
|
-
// }
|
|
882
|
-
// if (this.$refs.service_show.data.fields[j].label == '用气性质') {
|
|
883
|
-
// this.$set(this.selectItem,'f_gasproperties',res2.data[0].f_gasproperties)
|
|
884
|
-
//this.selectItem.f_gasproperties = res2.data[0].f_gasproperties
|
|
885
|
-
// }
|
|
886
|
-
// if (this.$refs.service_show.data.fields[j].label == '客户类型') {
|
|
887
|
-
//this.selectItem.f_user_type = res2.data[0].f_user_type
|
|
888
|
-
// }
|
|
889
|
-
// }
|
|
890
|
-
})
|
|
891
|
-
|
|
892
|
-
},
|
|
893
|
-
getitem(){
|
|
894
|
-
console.log('开始获取品牌')
|
|
895
|
-
let condition = '1=1'
|
|
896
|
-
let http = new HttpResetClass()
|
|
897
|
-
let data = {
|
|
898
|
-
condition: condition,
|
|
899
|
-
f_orgid: this.$login.f.orgid
|
|
900
|
-
}
|
|
901
|
-
http.load('POST','rs/logic/getRecordItem', {data: data}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
902
|
-
console.log('获取的选项',res)
|
|
903
|
-
let house2 = []
|
|
904
|
-
for (let row of res.data.meterbrand){
|
|
905
|
-
house2.push({label: row.f_meter_brand,value: row.f_meter_brand})
|
|
906
|
-
}
|
|
907
|
-
this.meterbrand = house2
|
|
908
|
-
})
|
|
909
|
-
},
|
|
910
|
-
upload_meter_close(){
|
|
911
|
-
this.upload_meter = false
|
|
912
|
-
},
|
|
913
|
-
addDetailed(){
|
|
914
|
-
this.importtype='2'
|
|
915
|
-
this.showFile = true
|
|
916
|
-
},
|
|
917
|
-
addclose(){
|
|
918
|
-
this.addshow = false
|
|
919
|
-
this.selectItem = {}
|
|
920
|
-
},
|
|
921
|
-
|
|
922
|
-
updateclose(){
|
|
923
|
-
this.updateshow = false
|
|
924
|
-
this.selectItem = {}
|
|
925
|
-
},
|
|
926
|
-
showdetail(val) {
|
|
927
|
-
|
|
928
|
-
console.log(val)
|
|
929
|
-
this.userinfo_id = val
|
|
930
|
-
this.isShowdetail=true
|
|
931
|
-
this.loadfiles()
|
|
932
|
-
},
|
|
933
|
-
async loadfiles() {
|
|
934
|
-
if (!this.selectdata)
|
|
935
|
-
return
|
|
936
|
-
let data = {
|
|
937
|
-
tablename: 't_userfiles',
|
|
938
|
-
condition: 'a.f_userinfo_id=' + '\'' + this.userinfo_id + '\''
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
let self = this
|
|
942
|
-
let http = new HttpResetClass()
|
|
943
|
-
let res = await http.load('POST', 'rs/sql/getUserfiles', {data: data}, {
|
|
944
|
-
resolveMsg: null,
|
|
945
|
-
rejectMsg: '获取表档案信息失败'
|
|
946
|
-
})
|
|
947
|
-
self.batchmodel.rows = []
|
|
948
|
-
|
|
949
|
-
self.batchmodel.rows = res.data
|
|
950
|
-
},
|
|
951
|
-
selected (val) {
|
|
952
|
-
this.selectItem = {"q":"q"}
|
|
953
|
-
},
|
|
954
|
-
//选择需要转银收的户档案
|
|
955
|
-
chooseOne(e, row, rows) {
|
|
956
|
-
console.log('row', row)
|
|
957
|
-
console.log('e', e)
|
|
958
|
-
this.ischecked = e.target.checked
|
|
959
|
-
console.log("state", e.target.checked)
|
|
960
|
-
//判断当前行是否被选中
|
|
961
|
-
if (this.ischecked) {
|
|
962
|
-
this.checked.push(row)
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
//修改选中的数据状态
|
|
966
|
-
changeState() {
|
|
967
|
-
if (this.checked.length > 0) {
|
|
968
|
-
let http = new HttpResetClass()
|
|
969
|
-
http.load('POST', 'rs/logic/updateUserState', {data: {rows: this.checked}}).then((res) => {
|
|
970
|
-
this.show = false
|
|
971
|
-
this.ischecked = false
|
|
972
|
-
// 如果没有id,需要在数组中添加
|
|
973
|
-
this.load()
|
|
974
|
-
this.checked = []
|
|
975
|
-
})
|
|
976
|
-
}
|
|
977
|
-
},
|
|
978
|
-
// 父组件更新子组件属性
|
|
979
|
-
updateData(val) {
|
|
980
|
-
this.headers.blodid = val.f_process_id
|
|
981
|
-
this.selectdata = val
|
|
982
|
-
},
|
|
983
|
-
async load() {
|
|
984
|
-
if (!this.selectdata || !this.selectdata.f_process_id){
|
|
985
|
-
return
|
|
986
|
-
}
|
|
987
|
-
console.log("当前数据",!this.selectdata.f_process_id)
|
|
988
|
-
let data = {
|
|
989
|
-
f_process_id: this.selectdata.f_process_id
|
|
990
|
-
}
|
|
991
|
-
let self = this
|
|
992
|
-
let http = new HttpResetClass()
|
|
993
|
-
let res = await http.load('POST', 'rs/sql/getUserArchives', {data: data}, {
|
|
994
|
-
resolveMsg: null,
|
|
995
|
-
rejectMsg: '获取户档案信息失败'
|
|
996
|
-
})
|
|
997
|
-
self.model.rows = []
|
|
998
|
-
self.model.rows = res.data
|
|
999
|
-
self.params = res.data
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
},
|
|
1003
|
-
impexcel() {
|
|
1004
|
-
this.importtype='1'
|
|
1005
|
-
this.showFile = true
|
|
1006
|
-
},
|
|
1007
|
-
meterUpload() {
|
|
1008
|
-
this.importtype='1'
|
|
1009
|
-
this.upload_meter = true
|
|
1010
|
-
},
|
|
1011
|
-
impexcel1() {
|
|
1012
|
-
this.importtype='1'
|
|
1013
|
-
for (let i = 0; i < this.model.rows.length; i++) {
|
|
1014
|
-
this.userinfo_array.push(this.model.rows[i].f_userinfo_id)
|
|
1015
|
-
}
|
|
1016
|
-
this.showInfo = true
|
|
1017
|
-
// this.showCon = true
|
|
1018
|
-
},
|
|
1019
|
-
showClose() {
|
|
1020
|
-
this.showCon = false
|
|
1021
|
-
},
|
|
1022
|
-
closeFile() {
|
|
1023
|
-
this.showFile = false
|
|
1024
|
-
this.showInfo = false
|
|
1025
|
-
// 将选的文件清空
|
|
1026
|
-
this.$refs.file.$el.querySelector('input').value = ''
|
|
1027
|
-
},
|
|
1028
|
-
closeFile1() {
|
|
1029
|
-
this.showFile = false
|
|
1030
|
-
this.showInfo = false
|
|
1031
|
-
// 将选的文件清空
|
|
1032
|
-
this.$refs.file_one.$el.querySelector('input').value = ''
|
|
1033
|
-
},
|
|
1034
|
-
closeProduct() {
|
|
1035
|
-
this.productData.rows = []
|
|
1036
|
-
this.productPage = false
|
|
1037
|
-
},
|
|
1038
|
-
delete(row){
|
|
1039
|
-
console.log('开始删除')
|
|
1040
|
-
let http = new HttpResetClass()
|
|
1041
|
-
http.load('POST', 'rs/logic/deleteUserinfo', {data: {f_userinfo_id: row.f_userinfo_id}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
1042
|
-
console.log('返回的数据:',res)
|
|
1043
|
-
if (res.data != null && res.data != "") {
|
|
1044
|
-
this.$showMessage(res.data)
|
|
1045
|
-
}else {
|
|
1046
|
-
this.$showMessage("删除成功!")
|
|
1047
|
-
this.load()
|
|
1048
|
-
}
|
|
1049
|
-
})
|
|
1050
|
-
},
|
|
1051
|
-
|
|
1052
|
-
deleteItem(row) {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
/* this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
1056
|
-
if (res === 'confirm') {
|
|
1057
|
-
let http = new HttpResetClass()
|
|
1058
|
-
http.load('DELETE', `rs/entity/t_userinfo/${row.f_userinfo_id}`).then((res) => {
|
|
1059
|
-
this.load()
|
|
1060
|
-
})
|
|
1061
|
-
}
|
|
1062
|
-
})*/
|
|
1063
|
-
|
|
1064
|
-
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
1065
|
-
if (res === 'confirm') {
|
|
1066
|
-
let http = new HttpResetClass()
|
|
1067
|
-
console.log("用户id:" + row.f_userfiles_id)
|
|
1068
|
-
http.load('DELETE', `rs/entity/t_userfiles/${row.f_userfiles_id}`).then((res) => {
|
|
1069
|
-
this.loadfiles()
|
|
1070
|
-
})
|
|
1071
|
-
}
|
|
1072
|
-
})
|
|
1073
|
-
|
|
1074
|
-
},
|
|
1075
|
-
//户档案查询
|
|
1076
|
-
filterParams(param) {
|
|
1077
|
-
this.isShowdetail=false
|
|
1078
|
-
if (param && param !== "") {
|
|
1079
|
-
let temp = []
|
|
1080
|
-
for (var i = 0; i < this.model.rows.length; i++) {
|
|
1081
|
-
if (this.model.rows[i].f_user_name.includes(param)) {
|
|
1082
|
-
temp.push(this.model.rows[i])
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
this.model.rows = temp
|
|
1086
|
-
} else {
|
|
1087
|
-
this.model.rows = this.params
|
|
1088
|
-
}
|
|
1089
|
-
},
|
|
1090
|
-
//表档案查询
|
|
1091
|
-
filterParam(param) {
|
|
1092
|
-
if (param && param !== "") {
|
|
1093
|
-
let temp = []
|
|
1094
|
-
for (var i = 0; i < this.model.rows.length; i++) {
|
|
1095
|
-
if (this.model.rows[i].f_meter_brand.includes(param)) {
|
|
1096
|
-
temp.push(this.model.rows[i])
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
this.model.rows = temp
|
|
1100
|
-
} else {
|
|
1101
|
-
this.model.rows = this.params
|
|
1102
|
-
}
|
|
1103
|
-
},
|
|
1104
|
-
//设备列表查询
|
|
1105
|
-
findEq(param) {
|
|
1106
|
-
if (param && param !== "") {
|
|
1107
|
-
let temp = []
|
|
1108
|
-
for (var i = 0; i < this.model.rows.length; i++) {
|
|
1109
|
-
if (this.model.rows[i].f_meter_brand.includes(param)) {
|
|
1110
|
-
temp.push(this.model.rows[i])
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
this.model.rows = temp
|
|
1114
|
-
} else {
|
|
1115
|
-
this.model.rows = this.params
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
add() {
|
|
1119
|
-
this.show = true
|
|
1120
|
-
console.log("点击了添加")
|
|
1121
|
-
},
|
|
1122
|
-
async user_search() {
|
|
1123
|
-
if (!this.selectdata)
|
|
1124
|
-
return
|
|
1125
|
-
let data = {
|
|
1126
|
-
condition: ' 1 = 1',
|
|
1127
|
-
f_process_id: this.selectdata.f_process_id
|
|
1128
|
-
}
|
|
1129
|
-
if (this.model.f_user_name != null && this.model.f_user_name != undefined && this.model.f_user_name != '') {
|
|
1130
|
-
data.condition = ' u.f_user_name = ' + '\'' + this.model.f_user_name + '\''
|
|
1131
|
-
}else if (this.model.f_user_phone != null && this.model.f_user_phone != undefined && this.model.f_user_phone != '') {
|
|
1132
|
-
data.condition = ' u.f_user_phone = ' + '\'' + this.model.f_user_phone + '\''
|
|
1133
|
-
}else if (this.model.f_user_name != undefined && this.model.f_user_phone != undefined) {
|
|
1134
|
-
data.condition = ' u.f_user_phone = ' + '\'' + this.model.f_user_phone + '\'' + ' and u.f_user_name = ' + '\'' + this.model.f_user_name + '\''
|
|
1135
|
-
}
|
|
1136
|
-
let self = this
|
|
1137
|
-
let http = new HttpResetClass()
|
|
1138
|
-
let res = await http.load('POST', 'rs/sql/reportFormUser', {data: data}, {
|
|
1139
|
-
resolveMsg: null,
|
|
1140
|
-
rejectMsg: '获取户档案信息失败'
|
|
1141
|
-
})
|
|
1142
|
-
self.model.rows = []
|
|
1143
|
-
self.model.rows = res.data
|
|
1144
|
-
if (res.data.length == 0) {
|
|
1145
|
-
this.$showMessage("该用户无数据")
|
|
1146
|
-
}
|
|
1147
|
-
},
|
|
1148
|
-
// 修改按钮
|
|
1149
|
-
modifyParam(row) {
|
|
1150
|
-
this.$set('selectItem.f_userinfo_id', row.f_userinfo_id)
|
|
1151
|
-
this.$set('selectItem.f_user_name', row.f_user_name)
|
|
1152
|
-
this.$set('selectItem.f_user_phone', row.f_user_phone)
|
|
1153
|
-
// this.$set('selectItem.f_pcd', row.f_pcd)
|
|
1154
|
-
// this.$set('selectItem.f_slice_area', row.f_slice_area)
|
|
1155
|
-
this.$set('selectItem.f_area', row.f_area)
|
|
1156
|
-
this.$set('selectItem.f_street', row.f_street)
|
|
1157
|
-
this.$set('selectItem.f_residential_area', row.f_residential_area)
|
|
1158
|
-
this.$set('selectItem.f_building', row.f_building)
|
|
1159
|
-
this.$set('selectItem.f_unit', row.f_unit)
|
|
1160
|
-
this.$set('selectItem.f_floor', row.f_floor)
|
|
1161
|
-
this.$set('selectItem.f_room', row.f_room)
|
|
1162
|
-
// this.selectItem.f_cost_type= [row.f_cost_type]
|
|
1163
|
-
// this.selectItem.f_cost_state=[row.f_cost_state]
|
|
1164
|
-
// this.$set('selectItem.f_people_num', row.f_people_num)
|
|
1165
|
-
// this.selectItem.f_checker=[row.f_checker]
|
|
1166
|
-
this.selectItem.f_user_state= [row.f_user_state]
|
|
1167
|
-
this.$set('selectItem.version', row.version)
|
|
1168
|
-
this.show = true
|
|
1169
|
-
},
|
|
1170
|
-
//查询用户增值产品
|
|
1171
|
-
searchProduct(row) {
|
|
1172
|
-
let data = {
|
|
1173
|
-
tablename: 't_standing_book',
|
|
1174
|
-
condition: `f_userinfo_id = ${row.f_userinfo_id}`
|
|
1175
|
-
}
|
|
1176
|
-
let http = new HttpResetClass()
|
|
1177
|
-
let res = http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
|
|
1178
|
-
resolveMsg: null,
|
|
1179
|
-
rejectMsg: '获取增值产品信息失败'
|
|
1180
|
-
}).then(res => {
|
|
1181
|
-
if (res.data.length > 0) {
|
|
1182
|
-
// console.log("增值产品:" + JSON.stringify(res.data))
|
|
1183
|
-
// console.log(JSON.stringify(res.data.length))
|
|
1184
|
-
this.productData.rows = res.data
|
|
1185
|
-
this.productPage = true
|
|
1186
|
-
}else {
|
|
1187
|
-
this.$showMessage("该用户无增值产品!")
|
|
1188
|
-
}
|
|
1189
|
-
})
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
},
|
|
1193
|
-
|
|
1194
|
-
//获取当前用户表档案信息
|
|
1195
|
-
getUserFiles(row) {
|
|
1196
|
-
this.isShowFiles = true
|
|
1197
|
-
console.log('获取户档案信息')
|
|
1198
|
-
|
|
1199
|
-
let data = {
|
|
1200
|
-
tablename: 't_userfiles',
|
|
1201
|
-
condition: `f_userinfo_id=${row.f_userinfo_id}`
|
|
1202
|
-
}
|
|
1203
|
-
let http = new HttpResetClass()
|
|
1204
|
-
let resGasbrand = http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
1205
|
-
resolveMsg: null,
|
|
1206
|
-
rejectMsg: '获取档案信息失败'
|
|
1207
|
-
})
|
|
1208
|
-
self.model.rows = []
|
|
1209
|
-
self.model.rows = res.data
|
|
1210
|
-
},
|
|
1211
|
-
//表档案修改
|
|
1212
|
-
filesModify(row) {
|
|
1213
|
-
console.log('表档案数据',row)
|
|
1214
|
-
this.$set('selectItem.f_userinfo_id', row.f_userinfo_id)
|
|
1215
|
-
this.$set('selectItem.f_user_id', row.f_user_id)
|
|
1216
|
-
// 表号
|
|
1217
|
-
this.$set('selectItem.f_meternumber', row.f_meternumber)
|
|
1218
|
-
// 表箱号
|
|
1219
|
-
// this.$set('selectItem.f_metertitles', row.f_metertitles)
|
|
1220
|
-
// 气表品牌
|
|
1221
|
-
// let data1 = row.f_meter_brand
|
|
1222
|
-
// let array1 = []
|
|
1223
|
-
// let arraydata1 = {
|
|
1224
|
-
// 'label': data1,
|
|
1225
|
-
// 'value': data1
|
|
1226
|
-
// }
|
|
1227
|
-
// array1.push(arraydata1)
|
|
1228
|
-
this.$set('selectItem.f_meter_brand', row.f_meter_brand)
|
|
1229
|
-
// 气表型号
|
|
1230
|
-
// let data2 = row.f_meter_style
|
|
1231
|
-
// let array2 = []
|
|
1232
|
-
// let arraydata2 = {
|
|
1233
|
-
// 'label': data2,
|
|
1234
|
-
// 'value': data2
|
|
1235
|
-
// }
|
|
1236
|
-
// array2.push(arraydata2)
|
|
1237
|
-
this.$set('selectItem.f_meter_style', row.f_meter_style)
|
|
1238
|
-
// 左右表
|
|
1239
|
-
// let data3 = row.f_aroundmeter
|
|
1240
|
-
// let array3 = []
|
|
1241
|
-
// let arraydata3 = {
|
|
1242
|
-
// 'label': data3,
|
|
1243
|
-
// 'value': data3
|
|
1244
|
-
// }
|
|
1245
|
-
// array3.push(arraydata3)
|
|
1246
|
-
this.$set('selectItem.f_aroundmeter', row.f_aroundmeter)
|
|
1247
|
-
// 表状态
|
|
1248
|
-
// console.log("表状态:" + row.f_table_state)
|
|
1249
|
-
// let data4 = row.f_table_state
|
|
1250
|
-
// let array4 = []
|
|
1251
|
-
// let arraydata4 = {
|
|
1252
|
-
// 'label': data4,
|
|
1253
|
-
// 'value': data4
|
|
1254
|
-
// }
|
|
1255
|
-
// array4.push(arraydata4)
|
|
1256
|
-
// this.$set('selectItem.f_table_state', array4)
|
|
1257
|
-
// 气价名称
|
|
1258
|
-
// let data5 = row.f_price_name
|
|
1259
|
-
// let array5 = []
|
|
1260
|
-
// let arraydata5 = {
|
|
1261
|
-
// 'label': data5,
|
|
1262
|
-
// 'value': data5
|
|
1263
|
-
// }
|
|
1264
|
-
// array5.push(arraydata5)
|
|
1265
|
-
this.$set('selectItem.f_price_name', row.f_price_name)
|
|
1266
|
-
// 客户类型
|
|
1267
|
-
this.$set('selectItem.f_user_type', row.f_user_type)
|
|
1268
|
-
// 用气性质
|
|
1269
|
-
this.$set('selectItem.f_gasproperties', row.f_gasproperties)
|
|
1270
|
-
// 价格
|
|
1271
|
-
this.$set('selectItem.f_price', row.f_price)
|
|
1272
|
-
// 气价类型
|
|
1273
|
-
this.$set('selectItem.f_price_type', row.f_price_type)
|
|
1274
|
-
// 气表类型
|
|
1275
|
-
// let data6 = row.f_meter_classify
|
|
1276
|
-
// let array6 = []
|
|
1277
|
-
// let arraydata6 = {
|
|
1278
|
-
// 'label': data6,
|
|
1279
|
-
// 'value': data6
|
|
1280
|
-
// }
|
|
1281
|
-
// array6.push(arraydata6)
|
|
1282
|
-
this.$set('selectItem.f_meter_classify', row.f_meter_classify)
|
|
1283
|
-
// 安装位置
|
|
1284
|
-
// let data7 = row.f_position
|
|
1285
|
-
// let array7 = []
|
|
1286
|
-
// let arraydata7 = {
|
|
1287
|
-
// 'label': data7,
|
|
1288
|
-
// 'value': data7
|
|
1289
|
-
// }
|
|
1290
|
-
// array7.push(arraydata7)
|
|
1291
|
-
this.$set('selectItem.f_position', row.f_position)
|
|
1292
|
-
// 抄表员
|
|
1293
|
-
// let data8 = row.f_inputtor
|
|
1294
|
-
// let array8 = []
|
|
1295
|
-
// let arraydata8 = {
|
|
1296
|
-
// 'label': data8,
|
|
1297
|
-
// 'value': data8
|
|
1298
|
-
// }
|
|
1299
|
-
// array8.push(arraydata8)
|
|
1300
|
-
// this.$set('selectItem.f_inputtor', row.f_inputtor)
|
|
1301
|
-
// 通气人
|
|
1302
|
-
this.$set('selectItem.f_gas_person', row.f_gas_person)
|
|
1303
|
-
// 通气时间
|
|
1304
|
-
this.$set('selectItem.f_gas_date', row.f_gas_date)
|
|
1305
|
-
console.log("气表品牌:" + row.f_meter_brand,"气表型号:" + row.f_meter_style)
|
|
1306
|
-
this.$set('selectItem.version', row.version)
|
|
1307
|
-
// this.$set('selectItem.f_meter_base', row.f_meter_base)
|
|
1308
|
-
// this.$set('selectItem.f_heater_gas', row.f_heater_gas)
|
|
1309
|
-
// this.$set('selectItem.f_whether_hairpin', row.f_whether_hairpin)
|
|
1310
|
-
// this.$set('selectItem.f_lossrate', row.f_lossrate)
|
|
1311
|
-
this.addshow = true
|
|
1312
|
-
this.getpricetype()
|
|
1313
|
-
|
|
1314
|
-
},
|
|
1315
|
-
getpricetype(){
|
|
1316
|
-
// console.log('开始获取气价类别')
|
|
1317
|
-
// let condition =`f_user_type = '${this.selectItem.f_user_type}' and f_filiale = '${this.$login.f.f_fengongsi}'
|
|
1318
|
-
// and f_gasproperties = '${this.selectItem.f_gasproperties}'`
|
|
1319
|
-
// this.$resetpost('rs/logic/getRecordItem', {condition}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
1320
|
-
// console.log('获取的选项',res)
|
|
1321
|
-
// let house2 = []
|
|
1322
|
-
// for (let row of res.data.pricetype){
|
|
1323
|
-
// house2.push({label: row.f_price_type,value: row.f_price_type})
|
|
1324
|
-
// }
|
|
1325
|
-
// // this.pricetype = house2
|
|
1326
|
-
// let house = []
|
|
1327
|
-
// for (let row of res.data.meterbrand){
|
|
1328
|
-
// house.push({label: row.f_meter_brand,value: row.f_meter_brand})
|
|
1329
|
-
// }
|
|
1330
|
-
// this.meterbrand = house
|
|
1331
|
-
// let house3 = []
|
|
1332
|
-
// for (let row of res.data.pricename){
|
|
1333
|
-
// house3.push({label: row.f_price_name,value: row.f_price_name})
|
|
1334
|
-
// }
|
|
1335
|
-
// //this.pricename = house3
|
|
1336
|
-
// })
|
|
1337
|
-
},
|
|
1338
|
-
//新增修改或删除提交
|
|
1339
|
-
async confirm() {
|
|
1340
|
-
let http = new HttpResetClass()
|
|
1341
|
-
await http.load('POST', 'rs/logic/recordSave', this.selectItem).then((res) => {
|
|
1342
|
-
this.show = false
|
|
1343
|
-
// 如果没有id,需要在数组中添加
|
|
1344
|
-
this.load()
|
|
1345
|
-
this.selectItem = {}
|
|
1346
|
-
})
|
|
1347
|
-
|
|
1348
|
-
},
|
|
1349
|
-
|
|
1350
|
-
async addconfirm() {
|
|
1351
|
-
if (this.selectItem.f_meternumber == null || this.selectItem.f_meternumber == undefined || this.selectItem.f_meternumber.trim().length == 0){
|
|
1352
|
-
this.$showAlert("表号不能为空","warning", 3000)
|
|
1353
|
-
return
|
|
1354
|
-
}
|
|
1355
|
-
// if (this.selectItem.f_metertitles == null || this.selectItem.f_metertitles == undefined || this.selectItem.f_metertitles.trim().length == 0){
|
|
1356
|
-
// this.$showAlert("表箱号不能为空","warning", 3000)
|
|
1357
|
-
// return
|
|
1358
|
-
// }
|
|
1359
|
-
// console.log("==========+++++++++=============:" + this.selectItem,"okk:" + JSON.stringify(this.selectItem))
|
|
1360
|
-
if (this.selectItem.f_meter_brand != null){
|
|
1361
|
-
if (this.selectItem.f_meter_brand[0] == null || this.selectItem.f_meter_brand[0] == undefined || this.selectItem.f_meter_brand[0].trim().length == 0){
|
|
1362
|
-
this.$showAlert("气表品牌不能为空","warning", 3000)
|
|
1363
|
-
return
|
|
1364
|
-
}
|
|
1365
|
-
}else {
|
|
1366
|
-
this.$showAlert("气表品牌不能为空","warning", 3000)
|
|
1367
|
-
return
|
|
1368
|
-
}
|
|
1369
|
-
// 气表型号不能为空
|
|
1370
|
-
if (this.selectItem.f_meter_style != null){
|
|
1371
|
-
if (this.selectItem.f_meter_style[0] == null || this.selectItem.f_meter_style[0] == undefined || this.selectItem.f_meter_style[0].trim().length == 0){
|
|
1372
|
-
this.$showAlert("气表型号不能为空","warning", 3000)
|
|
1373
|
-
return
|
|
1374
|
-
}
|
|
1375
|
-
}else {
|
|
1376
|
-
this.$showAlert("气表型号不能为空","warning", 3000)
|
|
1377
|
-
return
|
|
1378
|
-
}
|
|
1379
|
-
// 左右表不能为空
|
|
1380
|
-
if (this.selectItem.f_aroundmeter != null){
|
|
1381
|
-
if (this.selectItem.f_aroundmeter[0] == null || this.selectItem.f_aroundmeter[0] == undefined || this.selectItem.f_aroundmeter[0].trim().length == 0){
|
|
1382
|
-
this.$showAlert("左右表不能为空","warning", 3000)
|
|
1383
|
-
return
|
|
1384
|
-
}
|
|
1385
|
-
}else {
|
|
1386
|
-
this.$showAlert("左右表不能为空","warning", 3000)
|
|
1387
|
-
return
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
this.showqueren = false
|
|
1392
|
-
let http = new HttpResetClass()
|
|
1393
|
-
this.$set('selectItem.f_userinfo_id', this.userinfo_id)
|
|
1394
|
-
this.selectItem.f_filiale = this.$login.f.orgs
|
|
1395
|
-
this.selectItem.orgid = this.$login.f.orgid
|
|
1396
|
-
this.selectItem.defname = this.selectdata.defname
|
|
1397
|
-
await http.load('POST', 'rs/logic/addmeterrecord', this.selectItem).then((res) => {
|
|
1398
|
-
this.addshow = false
|
|
1399
|
-
// 如果没有id,需要在数组中添加
|
|
1400
|
-
this.loadfiles()
|
|
1401
|
-
this.selectItem = {}
|
|
1402
|
-
if (res.data.msg != null && res.data.msg != "") {
|
|
1403
|
-
this.$showMessage(res.data.msg)
|
|
1404
|
-
}else {
|
|
1405
|
-
this.$showMessage("修改成功!")
|
|
1406
|
-
}
|
|
1407
|
-
})
|
|
1408
|
-
this.showqueren = true
|
|
1409
|
-
},
|
|
1410
|
-
async updateconfirm(){
|
|
1411
|
-
let http = new HttpResetClass()
|
|
1412
|
-
|
|
1413
|
-
await http.load('POST', 'rs/logic/updatemetrecord', this.selectItem,{resolveMsg: null, rejectMsg: '修改失败'}).then((res) => {
|
|
1414
|
-
this.updateshow = false
|
|
1415
|
-
// 如果没有id,需要在数组中添加
|
|
1416
|
-
this.loadfiles()
|
|
1417
|
-
this.selectItem = {}
|
|
1418
|
-
|
|
1419
|
-
})
|
|
1420
|
-
},
|
|
1421
|
-
userinfoArray(val) {
|
|
1422
|
-
console.log("1213---------------" + val)
|
|
1423
|
-
if (val == null || val == undefined || val.length == 0) {
|
|
1424
|
-
for (let i = 0; i < this.userinfo_array.length; i++) {
|
|
1425
|
-
if (this.userinfo_array[i] != val) {
|
|
1426
|
-
this.userinfo_array.delete(row.f_userinfo_id)
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
}else {
|
|
1430
|
-
for (let i = 0; i < this.userinfo_array.length; i++) {
|
|
1431
|
-
if (this.userinfo_array[i] != val) {
|
|
1432
|
-
this.userinfo_array.push(val)
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
},
|
|
1439
|
-
|
|
1440
|
-
// 关闭模态框
|
|
1441
|
-
close() {
|
|
1442
|
-
this.show = false
|
|
1443
|
-
this.selectItem = {}
|
|
1444
|
-
},
|
|
1445
|
-
},
|
|
1446
|
-
events: {
|
|
1447
|
-
async onFileUpload(file, res) {
|
|
1448
|
-
if (!this.selectdata.f_process_id) {
|
|
1449
|
-
this.$showMessage("数据异常,导入失败")
|
|
1450
|
-
return
|
|
1451
|
-
}
|
|
1452
|
-
if (this.showFile) {
|
|
1453
|
-
this.iswork = true;
|
|
1454
|
-
//档案导入
|
|
1455
|
-
let data = {
|
|
1456
|
-
tablename: 't_userinfo',
|
|
1457
|
-
filepath: res.f_downloadpath,
|
|
1458
|
-
f_area:this.selectdata.f_area,
|
|
1459
|
-
f_slice_area:this.selectdata.f_slice_area,
|
|
1460
|
-
f_street:this.selectdata.f_street,
|
|
1461
|
-
f_residential_area:this.selectdata.f_residential_area,
|
|
1462
|
-
f_process_id: this.selectdata.f_process_id,
|
|
1463
|
-
f_user_type: this.selectdata.f_user_type,
|
|
1464
|
-
f_key: this.$login.f.f_orgids,
|
|
1465
|
-
f_operator: this.$login.f.name,
|
|
1466
|
-
f_orgid: this.$login.f.orgid,
|
|
1467
|
-
f_operatorid:this.$login.f.id,
|
|
1468
|
-
f_orgname:this.$login.f.orgs,
|
|
1469
|
-
f_depid: this.$login.f.depids,
|
|
1470
|
-
f_depname: this.$login.f.deps,
|
|
1471
|
-
f_gasproperties: this.selectdata.f_gasproperties,
|
|
1472
|
-
f_date: new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
1473
|
-
};
|
|
1474
|
-
console.log('即将转发的数据',data);
|
|
1475
|
-
// try{
|
|
1476
|
-
// await axios.post('rs/logic/recordImport',
|
|
1477
|
-
// data).then((res)=>{
|
|
1478
|
-
// if(res.data){
|
|
1479
|
-
// this.iswork=false;
|
|
1480
|
-
// this.load();
|
|
1481
|
-
// this.closeFile();
|
|
1482
|
-
// let mm = '';
|
|
1483
|
-
// for(var i=0;i<res.data.msg.length;i++){
|
|
1484
|
-
// mm+= `${res.data.msg[i].msg}`
|
|
1485
|
-
// }
|
|
1486
|
-
// let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm}`
|
|
1487
|
-
// this.$showMessage(msg)
|
|
1488
|
-
// }
|
|
1489
|
-
// })
|
|
1490
|
-
let http = new HttpResetClass()
|
|
1491
|
-
await http.load('POST', 'rs/logic/recordImport', data, {
|
|
1492
|
-
resolveMsg: null,
|
|
1493
|
-
rejectMsg: '导入失败'
|
|
1494
|
-
}).then((res) => {
|
|
1495
|
-
if(res.data){
|
|
1496
|
-
this.iswork=false;
|
|
1497
|
-
this.load();
|
|
1498
|
-
this.closeFile();
|
|
1499
|
-
let mm = '';
|
|
1500
|
-
for(let i = 0; i < res.data.msg.length; i++){
|
|
1501
|
-
mm+= `${res.data.msg[i].msg}`
|
|
1502
|
-
}
|
|
1503
|
-
let worry = '';
|
|
1504
|
-
for(let j = 0; j < res.data.worry.length; j++){
|
|
1505
|
-
worry += `${res.data.worry[j].msg}`
|
|
1506
|
-
}
|
|
1507
|
-
let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm},提醒:${worry}`
|
|
1508
|
-
if (res.data.code == 500) {
|
|
1509
|
-
this.iswork=false;
|
|
1510
|
-
msg = res.data.msg
|
|
1511
|
-
}
|
|
1512
|
-
console.log("返回的数据:" + JSON.stringify(res.data))
|
|
1513
|
-
this.$showMessage(msg)
|
|
1514
|
-
}
|
|
1515
|
-
})
|
|
1516
|
-
// }catch(e){
|
|
1517
|
-
//
|
|
1518
|
-
// this.$showAlert('导入出错,请检查导入文件模板格式!','danger',2000);
|
|
1519
|
-
// }
|
|
1520
|
-
}
|
|
1521
|
-
// 表信息
|
|
1522
|
-
if (this.showInfo) {
|
|
1523
|
-
this.iswork = true;
|
|
1524
|
-
//表信息导入
|
|
1525
|
-
let data = {
|
|
1526
|
-
tablename: 't_standing_book',
|
|
1527
|
-
filepath: res.f_downloadpath,
|
|
1528
|
-
f_process_id: this.selectdata.f_process_id,
|
|
1529
|
-
f_key: this.$login.f.f_orgids,
|
|
1530
|
-
f_operator: this.$login.f.name,
|
|
1531
|
-
f_orgid: this.$login.f.orgid,
|
|
1532
|
-
f_operatorid:this.$login.f.id,
|
|
1533
|
-
f_orgname:this.$login.f.orgs,
|
|
1534
|
-
f_depid: this.$login.f.depids,
|
|
1535
|
-
f_depname: this.$login.f.deps,
|
|
1536
|
-
userinfo_array: this.userinfo_array
|
|
1537
|
-
};
|
|
1538
|
-
console.log('即将转发的数据',data);
|
|
1539
|
-
let http = new HttpResetClass()
|
|
1540
|
-
await http.load('POST', 'rs/logic/incrementImport', data, {
|
|
1541
|
-
resolveMsg: null,
|
|
1542
|
-
rejectMsg: '导入失败'
|
|
1543
|
-
}).then((res) => {
|
|
1544
|
-
if(res.data){
|
|
1545
|
-
this.iswork=false;
|
|
1546
|
-
this.load();
|
|
1547
|
-
this.closeFile();
|
|
1548
|
-
let mm = '';
|
|
1549
|
-
for(var i=0;i<res.data.msg.length;i++){
|
|
1550
|
-
mm+= `${res.data.msg[i].msg}`
|
|
1551
|
-
}
|
|
1552
|
-
let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm}`
|
|
1553
|
-
if (res.data.code == 500) {
|
|
1554
|
-
this.iswork=false;
|
|
1555
|
-
msg = res.data.msg
|
|
1556
|
-
}
|
|
1557
|
-
console.log("返回的数据:" + JSON.stringify(res.data))
|
|
1558
|
-
this.$showMessage(msg)
|
|
1559
|
-
}
|
|
1560
|
-
})
|
|
1561
|
-
// try{
|
|
1562
|
-
// await axios.post('rs/logic/incrementImport',
|
|
1563
|
-
// data).then((res)=>{
|
|
1564
|
-
// if(res.data){
|
|
1565
|
-
// this.iswork=false;
|
|
1566
|
-
// this.load();
|
|
1567
|
-
// this.closeFile1();
|
|
1568
|
-
// let mm = '';
|
|
1569
|
-
// for(var i=0;i<res.data.msg.length;i++){
|
|
1570
|
-
// mm+= `${res.data.msg[i].msg}`
|
|
1571
|
-
// }
|
|
1572
|
-
// let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm}`
|
|
1573
|
-
// this.$showMessage(msg)
|
|
1574
|
-
// }
|
|
1575
|
-
// })
|
|
1576
|
-
// }catch(e){
|
|
1577
|
-
// this.iswork=false;
|
|
1578
|
-
// this.$showAlert('导入出错,请检查导入文件模板格式!','danger',2000);
|
|
1579
|
-
// }
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
</script>
|
|
1585
|
-
<style>
|
|
1586
|
-
.recordTable table tr th {
|
|
1587
|
-
font-weight: bold;
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
.recordTable table tr:hover {
|
|
1591
|
-
background-color: rgb(230, 230, 230);
|
|
1592
|
-
}
|
|
1593
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex col-sm-12" style="margin-top:0px;">
|
|
3
|
+
<div class="auto" style="overflow:auto;margin: 15px 0 0 15px;">
|
|
4
|
+
<div class="form-inline auto col-sm-12">
|
|
5
|
+
<div class="row col-sm-12">
|
|
6
|
+
<div class="form-group col-sm-3">
|
|
7
|
+
<label class=" control-label" >客户姓名</label>
|
|
8
|
+
<input type="text" class="input_search" placeholder='客户姓名' v-model="model.f_user_name"
|
|
9
|
+
@keyup.enter="filterParams(param)" >
|
|
10
|
+
</div>
|
|
11
|
+
<div class="form-group col-sm-3">
|
|
12
|
+
<label class=" control-label" >客户电话</label>
|
|
13
|
+
<input type="text" class="input_search" placeholder='客户电话' v-model="model.f_user_phone"
|
|
14
|
+
@keyup.enter="filterParams(param)" >
|
|
15
|
+
</div>
|
|
16
|
+
<div class="form-group col-sm-5" >
|
|
17
|
+
<button type="button" class="btn btn-default" @click="filterParams(param),this.user_search()">查询</button>
|
|
18
|
+
<button style="margin-left:10px;" type="button" class="btn btn-success" @click="impexcel()" v-show="edit">导入档案工料费</button>
|
|
19
|
+
<button style="margin-left:10px;" type="button" class="btn btn-success" @click="impexcel1()" v-show="edit">导入增值产品</button>
|
|
20
|
+
<button style="margin-left:10px;" type="button" class="btn btn-success" v-show="edit">
|
|
21
|
+
<a href="http://117.33.132.196:6300/webapps/applyinstall/excel/导入档案及工料费.xlsx" target="_blank" style="color: white; margin-right:10px">档案模板</a>
|
|
22
|
+
<a href="http://117.33.132.196:6300/webapps/applyinstall/excel/导入增值产品.xlsx" target="_blank" style="color: white">增值产品模板</a>
|
|
23
|
+
</button>
|
|
24
|
+
<!-- <button style="margin-left:10px;" type="button" class="btn btn-success" @click="impexcel1()" v-show="this.selectdata.defname == '安装施工'">气表模板下载</button>-->
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="row col-sm-12">
|
|
28
|
+
<div class="form-group col-sm-3">
|
|
29
|
+
</div>
|
|
30
|
+
<div class="form-group col-sm-3">
|
|
31
|
+
</div>
|
|
32
|
+
<div class="form-group col-sm-5" style="margin-left: 59px;">
|
|
33
|
+
<button style="margin-left:10px;" type="button" class="btn btn-success" @click="meterUpload()" v-show="this.selectdata.defname == '安装施工'">气表模板下载</button>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<!--户档案管理组件-->
|
|
39
|
+
<div class="col-sm-12 span recordTable" style="margin-top: 10px;height:70vh;">
|
|
40
|
+
|
|
41
|
+
<partial-view v-ref:single-load>
|
|
42
|
+
<data-grid :model="model" v-ref:grid>
|
|
43
|
+
<template partial='head'>
|
|
44
|
+
<tr>
|
|
45
|
+
<th>档案编号</th>
|
|
46
|
+
<th>用户编号</th>
|
|
47
|
+
<th>用户姓名</th>
|
|
48
|
+
<th>用户电话</th>
|
|
49
|
+
<th>地址</th>
|
|
50
|
+
<th>用户状态</th>
|
|
51
|
+
<th >操作</th>
|
|
52
|
+
</tr>
|
|
53
|
+
</template>
|
|
54
|
+
<template partial='body' >
|
|
55
|
+
<td style="text-align: center">{{row.f_userinfo_id}}</td>
|
|
56
|
+
<td style="text-align: center">{{row.f_userinfo_code}}</td>
|
|
57
|
+
<td style="text-align: center">{{row.f_user_name}}</td>
|
|
58
|
+
<td style="text-align: center">{{row.f_user_phone}}</td>
|
|
59
|
+
<td style="text-align: center">{{row.f_address}}</td>
|
|
60
|
+
<td style="text-align: center">{{row.f_user_state}}</td>
|
|
61
|
+
<td v-show="edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>
|
|
62
|
+
<td class="" style="text-align: center">
|
|
63
|
+
<button type="button" name="button" class="btn btn-link"
|
|
64
|
+
@click.stop="$parent.$parent.$parent.modifyParam(row)" >修改
|
|
65
|
+
</button>
|
|
66
|
+
<button type="button" name="button" class="btn btn-link"
|
|
67
|
+
@click.stop="$parent.$parent.$parent.searchProduct(row)" >增值产品
|
|
68
|
+
</button>
|
|
69
|
+
<!-- <button type="button" name="button" class="btn btn-link"-->
|
|
70
|
+
<!-- @click.stop="$parent.$parent.$parent.delete(row)">删除-->
|
|
71
|
+
<!-- </button>-->
|
|
72
|
+
</td>
|
|
73
|
+
</template>
|
|
74
|
+
</data-grid>
|
|
75
|
+
|
|
76
|
+
</partial-view>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div class="col-sm-12 span recordTable" style="margin-top: -154px;height:auto;" v-if="isShowdetail" >
|
|
80
|
+
<p class="text-center" style="padding: 8px;font-size: 20px">表档案列表
|
|
81
|
+
|
|
82
|
+
<button type="button" class="close" @click="isShowdetail=false" aria-hidden="true">×</button>
|
|
83
|
+
</p>
|
|
84
|
+
<partial-view v-ref:single-load>
|
|
85
|
+
<data-grid :model="batchmodel" v-ref:batchgrid>
|
|
86
|
+
<template partial='head'>
|
|
87
|
+
<tr>
|
|
88
|
+
<th>序号</th>
|
|
89
|
+
<th>户档案编号</th>
|
|
90
|
+
<th>表档案编号</th>
|
|
91
|
+
<th>表号</th>
|
|
92
|
+
<!-- <th>表箱号</th>-->
|
|
93
|
+
<th>气表品牌</th>
|
|
94
|
+
<th>气表型号</th>
|
|
95
|
+
<!-- <th>气表类型</th>-->
|
|
96
|
+
<th>通气人</th>
|
|
97
|
+
<th>通气时间</th>
|
|
98
|
+
<th>操作</th>
|
|
99
|
+
</tr>
|
|
100
|
+
</template>
|
|
101
|
+
<template partial='body'>
|
|
102
|
+
<td style="text-align: center">{{$index+1}}</td>
|
|
103
|
+
<td style="text-align: center">{{row.f_userinfo_id}}</td>
|
|
104
|
+
<td style="text-align: center">{{row.f_userfiles_id}}</td>
|
|
105
|
+
<td style="text-align: center">{{row.f_meternumber}}</td>
|
|
106
|
+
<!-- <td style="text-align: center">{{row.f_metertitles}}</td>-->
|
|
107
|
+
<td style="text-align: center">{{row.f_meter_brand}}</td>
|
|
108
|
+
<td style="text-align: center">{{row.f_meter_style}}</td>
|
|
109
|
+
<!-- <td style="text-align: center">{{row.f_meter_type}}</td>-->
|
|
110
|
+
<td style="text-align: center">{{row.f_gas_person}}</td>
|
|
111
|
+
<td style="text-align: center">{{row.f_gas_date}}</td>
|
|
112
|
+
<!--<td>{{row.f_remarks}}</td>-->
|
|
113
|
+
<td class="" style="text-align: center">
|
|
114
|
+
<button type="button" name="button" class="btn btn-link"
|
|
115
|
+
@click.stop="$parent.$parent.$parent.filesModify(row)" >修改
|
|
116
|
+
</button>
|
|
117
|
+
<button type="button" name="button" class="btn btn-link"
|
|
118
|
+
@click.stop="$parent.$parent.$parent.deleteItem(row)">删除
|
|
119
|
+
</button>
|
|
120
|
+
<!-- <button type="button" name="button" class="btn btn-link"
|
|
121
|
+
@click.stop="$parent.$parent.$parent.deleteItem(row)" >删除
|
|
122
|
+
</button>-->
|
|
123
|
+
</td>
|
|
124
|
+
</template>
|
|
125
|
+
</data-grid>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</partial-view>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
</div>
|
|
134
|
+
<modal :show.sync="show" v-ref:modal backdrop="false">
|
|
135
|
+
<header slot="modal-header" class="modal-header">
|
|
136
|
+
<button type="button" class="close" @click="close"><span>×</span></button>
|
|
137
|
+
<h4 class="modal-title">配置</h4>
|
|
138
|
+
</header>
|
|
139
|
+
<!--户档案修改-->
|
|
140
|
+
<article slot="modal-body" class="modal-body" >
|
|
141
|
+
<div class="from-group" style="width: 100%">
|
|
142
|
+
<label style="width: 15%;float: left">用户姓名</label>
|
|
143
|
+
<input type="text" class="form-control" readonly="readonly" v-model="selectItem.f_user_name" style="width: 80%;float: left"/>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="from-group" style="width: 100%">
|
|
146
|
+
<label style="width: 15%;float: left">用户电话</label>
|
|
147
|
+
<input type="text" class="form-control" readonly="readonly" v-model="selectItem.f_user_phone" style="width: 80%;float: left">
|
|
148
|
+
</div>
|
|
149
|
+
<!-- <div class="from-group" style="width: 100%">-->
|
|
150
|
+
<!-- <label style="width: 15%;float: left">区/县</label>-->
|
|
151
|
+
<!-- <input type="text" class="form-control" v-model="selectItem.f_pcd" style="width: 80%;float: left">-->
|
|
152
|
+
<!-- </div>-->
|
|
153
|
+
<!-- <div class="from-group" style="width: 100%">-->
|
|
154
|
+
<!-- <label style="width: 15%;float: left">片区</label>-->
|
|
155
|
+
<!-- <input type="text" class="form-control" v-model="selectItem.f_slice_area" style="width: 80%;float: left">-->
|
|
156
|
+
<!-- </div>-->
|
|
157
|
+
<div class="from-group" style="width: 100%">
|
|
158
|
+
<label style="width: 15%;float: left">街道</label>
|
|
159
|
+
<input type="text" class="form-control" v-model="selectItem.f_street" style="width: 80%;float: left">
|
|
160
|
+
</div>
|
|
161
|
+
<div class="from-group" style="width: 100%">
|
|
162
|
+
<label style="width: 15%;float: left">小区</label>
|
|
163
|
+
<input type="text" class="form-control" v-model="selectItem.f_residential_area" style="width: 80%;float: left">
|
|
164
|
+
</div>
|
|
165
|
+
<div class="from-group" style="width: 100%">
|
|
166
|
+
<label style="width: 15%;float: left">楼号</label>
|
|
167
|
+
<input type="text" class="form-control" v-model="selectItem.f_building" style="width: 80%;float: left">
|
|
168
|
+
</div>
|
|
169
|
+
<div class="from-group" style="width: 100%">
|
|
170
|
+
<label style="width: 15%;float: left">单元号</label>
|
|
171
|
+
<input type="text" class="form-control" v-model="selectItem.f_unit" style="width: 80%;float: left">
|
|
172
|
+
</div>
|
|
173
|
+
<div class="from-group" style="width: 100%">
|
|
174
|
+
<label style="width: 15%;float: left">楼层</label>
|
|
175
|
+
<input type="text" class="form-control" v-model="selectItem.f_floor" style="width: 80%;float: left">
|
|
176
|
+
</div>
|
|
177
|
+
<div class="from-group" style="width: 100%">
|
|
178
|
+
<label style="width: 15%;float: left">门牌号</label>
|
|
179
|
+
<input type="text" class="form-control" v-model="selectItem.f_room" style="width: 80%;float: left">
|
|
180
|
+
</div>
|
|
181
|
+
<!-- <div class="from-group" style="width: 100%">-->
|
|
182
|
+
<!-- <label style="width: 15%;float: left">人口数</label>-->
|
|
183
|
+
<!-- <input type="number" class="form-control" v-model="selectItem.f_people_num" style="width: 80%;float: left">-->
|
|
184
|
+
<!-- </div>-->
|
|
185
|
+
<div class="from-group" style="width: 100%">
|
|
186
|
+
<label style="width: 15%;float: left">用户状态</label>
|
|
187
|
+
<v-select :value.sync="selectItem.f_user_state" v-model="selectItem.f_user_state"
|
|
188
|
+
:options='userstate' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
189
|
+
close-on-select >
|
|
190
|
+
</v-select>
|
|
191
|
+
</div>
|
|
192
|
+
</article>
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
196
|
+
<div class="from-group" style="width: 100%;float: left">
|
|
197
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
198
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
|
|
199
|
+
</div>
|
|
200
|
+
</footer>
|
|
201
|
+
</modal>
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
<modal :show.sync="addshow" v-ref:modal backdrop="false">
|
|
205
|
+
<header slot="modal-header" class="modal-header">
|
|
206
|
+
<button type="button" class="close" @click="addclose"><span>×</span></button>
|
|
207
|
+
<h4 class="modal-title">配置</h4>
|
|
208
|
+
</header>
|
|
209
|
+
<!--表档案修改-->
|
|
210
|
+
<article slot="modal-body" class="modal-body" >
|
|
211
|
+
<div class="from-group">
|
|
212
|
+
<label style="width: 20%;float: left">表号</label>
|
|
213
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meternumber"/>
|
|
214
|
+
</div>
|
|
215
|
+
|
|
216
|
+
<!-- <div class="from-group">-->
|
|
217
|
+
<!-- <label style="width: 20%;float: left">表箱号</label>-->
|
|
218
|
+
<!-- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_metertitles"/>-->
|
|
219
|
+
<!-- </div>-->
|
|
220
|
+
<div class="from-group" v-if="this.selectdata.defname != '通气'">
|
|
221
|
+
<label style="width: 20%;float: left">气表品牌</label>
|
|
222
|
+
<v-select :value.sync="selectItem.f_meter_brand" v-model="selectItem.f_meter_brand"
|
|
223
|
+
:options='meterbrand' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
224
|
+
close-on-select search="">
|
|
225
|
+
</v-select>
|
|
226
|
+
</div>
|
|
227
|
+
<!-- 通气时显示 -->
|
|
228
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
229
|
+
<label style="width: 20%;float: left">气表品牌</label>
|
|
230
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meter_brand"/>
|
|
231
|
+
</div>
|
|
232
|
+
|
|
233
|
+
<div class="from-group" v-if="this.selectdata.defname != '通气'">
|
|
234
|
+
<label style="width: 20%;float: left">气表型号</label>
|
|
235
|
+
<v-select :value.sync="selectItem.f_meter_style" v-model="selectItem.f_meter_style"
|
|
236
|
+
:options='meterstyle' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
237
|
+
close-on-select >
|
|
238
|
+
</v-select>
|
|
239
|
+
</div>
|
|
240
|
+
<!-- 通气时显示 -->
|
|
241
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
242
|
+
<label style="width: 20%;float: left">气表型号</label>
|
|
243
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meter_style"/>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
<div class="from-group" v-if="this.selectdata.defname != '通气'">
|
|
247
|
+
<label style="width: 20%;float: left">左右表</label>
|
|
248
|
+
<v-select :value.sync="selectItem.f_aroundmeter" v-model="selectItem.f_aroundmeter"
|
|
249
|
+
:options='aroundmeter' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
250
|
+
close-on-select >
|
|
251
|
+
</v-select>
|
|
252
|
+
</div>
|
|
253
|
+
<!-- 通气时显示 -->
|
|
254
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
255
|
+
<label style="width: 20%;float: left">左右表</label>
|
|
256
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_aroundmeter"/>
|
|
257
|
+
</div>
|
|
258
|
+
|
|
259
|
+
<!-- <div class="from-group">-->
|
|
260
|
+
<!-- <label style="width: 20%;float: left">表状态</label>-->
|
|
261
|
+
<!-- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_table_state"/>-->
|
|
262
|
+
<!-- </div>-->
|
|
263
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
264
|
+
<label style="width: 20%;float: left">气价名称</label>
|
|
265
|
+
<v-select :value.sync="selectItem.f_price_name" v-model="selectItem.f_price_name"
|
|
266
|
+
:options='pricename' placeholder='请选择' style="width: 80%;float: left" :width="'80%'" @change="priceChange"
|
|
267
|
+
close-on-select >
|
|
268
|
+
</v-select>
|
|
269
|
+
</div>
|
|
270
|
+
<!-- <div class="from-group">-->
|
|
271
|
+
<!-- <label style="width: 20%;float: left">客户类型</label>-->
|
|
272
|
+
<!-- <v-select :value.sync="selectItem.f_user_type" v-model="selectItem.f_user_type" :width="'80%'"-->
|
|
273
|
+
<!-- :options='usertypes' placeholder='请选择' style="width: 80%;float: left"-->
|
|
274
|
+
<!-- close-on-select >-->
|
|
275
|
+
<!-- </v-select>-->
|
|
276
|
+
<!-- </div>-->
|
|
277
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
278
|
+
<label style="width: 20%;float: left">客户类型</label>
|
|
279
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_user_type" />
|
|
280
|
+
</div>
|
|
281
|
+
<!-- <div class="from-group">-->
|
|
282
|
+
<!-- <label style="width: 20%;float: left">用气性质</label>-->
|
|
283
|
+
<!-- <v-select :value.sync="selectItem.f_gasproperties" v-model="selectItem.f_gasproperties"-->
|
|
284
|
+
<!-- :options='gasproperties' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"-->
|
|
285
|
+
<!-- close-on-select >-->
|
|
286
|
+
<!-- </v-select>-->
|
|
287
|
+
<!-- </div>-->
|
|
288
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
289
|
+
<label style="width: 20%;float: left">用气性质</label>
|
|
290
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_gasproperties"/>
|
|
291
|
+
</div>
|
|
292
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
293
|
+
<label style="width: 20%;float: left">价格</label>
|
|
294
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_price"/>
|
|
295
|
+
</div>
|
|
296
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
297
|
+
<label style="width: 20%;float: left">气价类型</label>
|
|
298
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_price_type"/>
|
|
299
|
+
</div>
|
|
300
|
+
<!-- <div class="from-group">-->
|
|
301
|
+
<!-- <label style="width: 20%;float: left">气价类型</label>-->
|
|
302
|
+
<!-- <v-select :value.sync="selectItem.f_price_type" v-model="selectItem.f_price_type"-->
|
|
303
|
+
<!-- :options='pricetype' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"-->
|
|
304
|
+
<!-- close-on-select >-->
|
|
305
|
+
<!-- </v-select>-->
|
|
306
|
+
<!-- </div>-->
|
|
307
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
308
|
+
<label style="width: 20%;float: left">气表类型</label>
|
|
309
|
+
<v-select :value.sync="selectItem.f_meter_classify" v-model="selectItem.f_meter_classify"
|
|
310
|
+
:options='meterclassify' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
311
|
+
close-on-select >
|
|
312
|
+
</v-select>
|
|
313
|
+
</div>
|
|
314
|
+
<!-- <div class="from-group" v-if="this.selectdata.defname == '通气'">-->
|
|
315
|
+
<!-- <label style="width: 20%;float: left">安装位置</label>-->
|
|
316
|
+
<!-- <v-select :value.sync="selectItem.f_position" v-model="selectItem.f_position"-->
|
|
317
|
+
<!-- :options='position' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"-->
|
|
318
|
+
<!-- close-on-select >-->
|
|
319
|
+
<!-- </v-select>-->
|
|
320
|
+
<!-- </div>-->
|
|
321
|
+
<!-- <div class="from-group" v-if="this.selectdata.defname == '通气'">-->
|
|
322
|
+
<!-- <label style="width: 20%;float: left">抄表员</label>-->
|
|
323
|
+
<!-- <v-select :value.sync="selectItem.f_inputtor" v-model="selectItem.f_inputtor"-->
|
|
324
|
+
<!-- :options='inputtor' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"-->
|
|
325
|
+
<!-- close-on-select >-->
|
|
326
|
+
<!-- </v-select>-->
|
|
327
|
+
<!-- </div>-->
|
|
328
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气' && this.super_book">
|
|
329
|
+
<label style="width: 20%;float: left">抄表本</label>
|
|
330
|
+
<v-select :value.sync="selectItem.f_super_book" v-model="selectItem.f_super_book"
|
|
331
|
+
:options='super_book_array' placeholder='请选择' style="width: 80%;float: left" :width="'80%'"
|
|
332
|
+
close-on-select >
|
|
333
|
+
</v-select>
|
|
334
|
+
</div>
|
|
335
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
336
|
+
<label style="width: 20%;float: left">通气人</label>
|
|
337
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_gas_person"/>
|
|
338
|
+
</div>
|
|
339
|
+
<div class="from-group" v-if="this.selectdata.defname == '通气'">
|
|
340
|
+
<label style="width: 20%;float: left">通气时间</label>
|
|
341
|
+
<datepicker style="width: 80%;float: left" :width="'80%'"
|
|
342
|
+
:value.sync="selectItem.f_gas_date"
|
|
343
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
344
|
+
v-model="selectItem.f_gas_date"
|
|
345
|
+
:readonly="true"
|
|
346
|
+
:show-reset-button="reset">
|
|
347
|
+
</datepicker>
|
|
348
|
+
</div>
|
|
349
|
+
<!-- <div class="from-group">-->
|
|
350
|
+
<!-- <label style="width: 20%;float: left">通气表号</label>-->
|
|
351
|
+
<!-- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_gas_meternumber"/>-->
|
|
352
|
+
<!-- </div>-->
|
|
353
|
+
<!--<div class="from-group">
|
|
354
|
+
<label style="width: 20%;float: left">输损率</label>
|
|
355
|
+
<input type="number" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_lossrate" v-validate:f_lossrate='{dctest: [1, "<" ] }'/>
|
|
356
|
+
</div>-->
|
|
357
|
+
|
|
358
|
+
</article>
|
|
359
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
360
|
+
<button type="button" class="btn btn-default" @click='addclose'>取消</button>
|
|
361
|
+
<button type="button" class="btn btn-success" v-if="showqueren" @click='addconfirm'>确认</button>
|
|
362
|
+
<button type="button" class="btn btn-success" v-else>提交中</button>
|
|
363
|
+
</footer>
|
|
364
|
+
</modal>
|
|
365
|
+
|
|
366
|
+
<modal :show.sync="updateshow" v-ref:modal backdrop="false">
|
|
367
|
+
<header slot="modal-header" class="modal-header">
|
|
368
|
+
<button type="button" class="close" @click="updateclose"><span>×</span></button>
|
|
369
|
+
<h4 class="modal-title">配置</h4>
|
|
370
|
+
</header>
|
|
371
|
+
<!--户档案修改-->
|
|
372
|
+
<article slot="modal-body" class="modal-body" >
|
|
373
|
+
<div class="from-group">
|
|
374
|
+
<label style="width: 20%;float: left">表号</label>
|
|
375
|
+
<input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meternumber"/>
|
|
376
|
+
</div>
|
|
377
|
+
<div class="from-group">
|
|
378
|
+
<label style="width: 20%;float: left">气表品牌</label>
|
|
379
|
+
<v-select :value.sync="selectItem.f_meter_brand" v-model="selectItem.f_meter_brand"
|
|
380
|
+
:options='meterbrand' placeholder='请选择' style="width: 80%;float: left"
|
|
381
|
+
close-on-select search="">
|
|
382
|
+
</v-select>
|
|
383
|
+
</div>
|
|
384
|
+
<div class="from-group">
|
|
385
|
+
<label style="width: 20%;float: left">表型号</label>
|
|
386
|
+
<v-select :value.sync="selectItem.f_meter_style" v-model="selectItem.f_meter_style"
|
|
387
|
+
:options='meterstyle' placeholder='请选择' style="width: 80%;float: left"
|
|
388
|
+
close-on-select >
|
|
389
|
+
</v-select>
|
|
390
|
+
</div>
|
|
391
|
+
</article>
|
|
392
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
393
|
+
<button type="button" class="btn btn-default" @click='updateclose'>取消</button>
|
|
394
|
+
<button type="button" class="btn btn-success" @click='updateconfirm'>确认</button>
|
|
395
|
+
</footer>
|
|
396
|
+
</modal>
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
<!-- <modal :show.sync="showFile" v-ref:modal backdrop="false">-->
|
|
400
|
+
<!-- <header slot="modal-header" class="modal-header">-->
|
|
401
|
+
<!-- <button type="button" class="close" @click="closeFile"><span>×</span></button>-->
|
|
402
|
+
<!-- <h4 class="modal-title">档案及工料费导入</h4>-->
|
|
403
|
+
<!-- </header>-->
|
|
404
|
+
<!-- <article slot="modal-body" class="modal-body">-->
|
|
405
|
+
<!-- <div class="form-group">-->
|
|
406
|
+
<!-- <file-upload class="my-file-uploader" :name="key+(Math.random()+3)+8882" :id="key+(Math.random()+3)+8882"-->
|
|
407
|
+
<!-- action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file></file-upload>-->
|
|
408
|
+
<!-- </div>-->
|
|
409
|
+
<!-- </article>-->
|
|
410
|
+
<!-- <footer slot="modal-footer" class="modal-footer"></footer>-->
|
|
411
|
+
<!-- </modal>-->
|
|
412
|
+
<!-- <modal :show.sync="showInfo" v-ref:modal backdrop="false">-->
|
|
413
|
+
<!-- <header slot="modal-header" class="modal-header">-->
|
|
414
|
+
<!-- <button type="button" class="close" @click="closeFile1"><span>×</span></button>-->
|
|
415
|
+
<!-- <h4 class="modal-title">增值产品导入</h4>-->
|
|
416
|
+
<!-- </header>-->
|
|
417
|
+
<!-- <article slot="modal-body" class="modal-body">-->
|
|
418
|
+
<!-- <div class="form-group">-->
|
|
419
|
+
<!-- <file-upload class="my-file-uploader" :name="key+(Math.random()+3)+8883" :id="key+(Math.random()+3)+8883"-->
|
|
420
|
+
<!-- action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file_one></file-upload>-->
|
|
421
|
+
<!-- </div>-->
|
|
422
|
+
<!-- </article>-->
|
|
423
|
+
<!-- <footer slot="modal-footer" class="modal-footer"></footer>-->
|
|
424
|
+
<!-- </modal>-->
|
|
425
|
+
<!-- 档案及工料费导入 -->
|
|
426
|
+
<modal :show.sync="showFile" v-ref:modal backdrop="false">
|
|
427
|
+
<header slot="modal-header" class="modal-header">
|
|
428
|
+
<button type="button" class="close" @click="closeFile"><span class="glyphicon glyphicon-remove"></span></button>
|
|
429
|
+
<h4 class="modal-title" style="text-align: center">档案及工料费导入</h4>
|
|
430
|
+
</header>
|
|
431
|
+
<article slot="modal-body" class="modal-body form-horizontal">
|
|
432
|
+
<div class="form-group" style="text-align: center">
|
|
433
|
+
<file-upload class="my-file-uploader" :name="'myFile' + selectdata.f_process_id"
|
|
434
|
+
action="rs/file/uploadFile" tagname="文件导入" :headers="headers" multiple v-ref:file></file-upload>
|
|
435
|
+
</div>
|
|
436
|
+
</article>
|
|
437
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
438
|
+
</footer>
|
|
439
|
+
</modal>
|
|
440
|
+
<!-- 增值产品导入 -->
|
|
441
|
+
<modal :show.sync="showInfo" v-ref:modal backdrop="false">
|
|
442
|
+
<header slot="modal-header" class="modal-header">
|
|
443
|
+
<button type="button" class="close" @click="closeFile1"><span class="glyphicon glyphicon-remove"></span></button>
|
|
444
|
+
<h4 class="modal-title" style="text-align: center">增值产品导入</h4>
|
|
445
|
+
</header>
|
|
446
|
+
<article slot="modal-body" class="modal-body form-horizontal">
|
|
447
|
+
<div class="form-group" style="text-align: center">
|
|
448
|
+
<file-upload class="my-file-uploader" :name="'myFile' + selectdata.f_process_id"
|
|
449
|
+
action="rs/file/uploadFile" tagname="文件导入" :headers="headers" multiple v-ref:file1></file-upload>
|
|
450
|
+
</div>
|
|
451
|
+
</article>
|
|
452
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
453
|
+
</footer>
|
|
454
|
+
</modal>
|
|
455
|
+
<!-- 弹出框显示增值产品信息 -->
|
|
456
|
+
<modal :show.sync="productPage" v-ref:modal backdrop="false" style="width: 100%">
|
|
457
|
+
<header slot="modal-header" class="modal-header" style="width: 100%">
|
|
458
|
+
<button type="button" class="close" @click="closeProduct"><span class="glyphicon glyphicon-remove"></span></button>
|
|
459
|
+
<h4 class="modal-title" style="text-align: center">增值产品信息</h4>
|
|
460
|
+
</header>
|
|
461
|
+
<article slot="modal-body" class="modal-body clearfix" style="width: 100%">
|
|
462
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
463
|
+
<!-- <label class="col-sm-2 control-label">增值产品类型:</label>-->
|
|
464
|
+
<!-- <div class="col-sm-10">-->
|
|
465
|
+
<!-- <input type="text"-->
|
|
466
|
+
<!-- class="form-control input_view"-->
|
|
467
|
+
<!-- readonly-->
|
|
468
|
+
<!-- v-model="productData.f_increment_type" />-->
|
|
469
|
+
<!-- </div>-->
|
|
470
|
+
<!-- </div>-->
|
|
471
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
472
|
+
<!-- <label class="col-sm-2 control-label">型号:</label>-->
|
|
473
|
+
<!-- <div class="col-sm-10">-->
|
|
474
|
+
<!-- <input type="text"-->
|
|
475
|
+
<!-- class="form-control input_view"-->
|
|
476
|
+
<!-- style="width: 100%"-->
|
|
477
|
+
<!-- readonly-->
|
|
478
|
+
<!-- v-model="productData.f_increment_style" />-->
|
|
479
|
+
<!-- </div>-->
|
|
480
|
+
<!-- </div>-->
|
|
481
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
482
|
+
<!-- <label class="col-sm-2 control-label">收款方式:</label>-->
|
|
483
|
+
<!-- <div class="col-sm-10">-->
|
|
484
|
+
<!-- <input type="text"-->
|
|
485
|
+
<!-- class="form-control input_view"-->
|
|
486
|
+
<!-- style="width: 100%"-->
|
|
487
|
+
<!-- readonly-->
|
|
488
|
+
<!-- v-model="productData.f_increment_payment_method" />-->
|
|
489
|
+
<!-- </div>-->
|
|
490
|
+
<!-- </div>-->
|
|
491
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
492
|
+
<!-- <label class="col-sm-2 control-label">售价:</label>-->
|
|
493
|
+
<!-- <div class="col-sm-10">-->
|
|
494
|
+
<!-- <input type="text"-->
|
|
495
|
+
<!-- class="form-control input_view"-->
|
|
496
|
+
<!-- style="width: 100%"-->
|
|
497
|
+
<!-- readonly-->
|
|
498
|
+
<!-- v-model="productData.f_increment_money" />-->
|
|
499
|
+
<!-- </div>-->
|
|
500
|
+
<!-- </div>-->
|
|
501
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
502
|
+
<!-- <label class="col-sm-2 control-label">增值产品票号:</label>-->
|
|
503
|
+
<!-- <div class="col-sm-10">-->
|
|
504
|
+
<!-- <input type="text"-->
|
|
505
|
+
<!-- class="form-control input_view"-->
|
|
506
|
+
<!-- style="width: 100%"-->
|
|
507
|
+
<!-- readonly-->
|
|
508
|
+
<!-- v-model="productData.f_increment_ticket_number" />-->
|
|
509
|
+
<!-- </div>-->
|
|
510
|
+
<!-- </div>-->
|
|
511
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
512
|
+
<!-- <label class="col-sm-2 control-label">增值产品营销人员:</label>-->
|
|
513
|
+
<!-- <div class="col-sm-10">-->
|
|
514
|
+
<!-- <input type="text"-->
|
|
515
|
+
<!-- class="form-control input_view"-->
|
|
516
|
+
<!-- style="width: 100%"-->
|
|
517
|
+
<!-- readonly-->
|
|
518
|
+
<!-- v-model="productData.f_increment_marketing_person" />-->
|
|
519
|
+
<!-- </div>-->
|
|
520
|
+
<!-- </div>-->
|
|
521
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
522
|
+
<!-- <label class="col-sm-2 control-label">套数:</label>-->
|
|
523
|
+
<!-- <div class="col-sm-10">-->
|
|
524
|
+
<!-- <input type="text"-->
|
|
525
|
+
<!-- class="form-control input_view"-->
|
|
526
|
+
<!-- style="width: 100%"-->
|
|
527
|
+
<!-- readonly-->
|
|
528
|
+
<!-- v-model="productData.f_increment_number" />-->
|
|
529
|
+
<!-- </div>-->
|
|
530
|
+
<!-- </div>-->
|
|
531
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
532
|
+
<!-- <label class="col-sm-2 control-label">增值产品备注:</label>-->
|
|
533
|
+
<!-- <div class="col-sm-10">-->
|
|
534
|
+
<!-- <input type="text"-->
|
|
535
|
+
<!-- class="form-control input_view"-->
|
|
536
|
+
<!-- style="width: 100%"-->
|
|
537
|
+
<!-- readonly-->
|
|
538
|
+
<!-- v-model="productData.f_increment_remarks" />-->
|
|
539
|
+
<!-- </div>-->
|
|
540
|
+
<!-- </div>-->
|
|
541
|
+
<!-- <div class="form-group col-sm-12">-->
|
|
542
|
+
<!-- <label class="col-sm-2 control-label">增值产品收费日期:</label>-->
|
|
543
|
+
<!-- <div class="col-sm-10">-->
|
|
544
|
+
<!-- <input type="text"-->
|
|
545
|
+
<!-- class="form-control input_view"-->
|
|
546
|
+
<!-- style="width: 100%"-->
|
|
547
|
+
<!-- readonly-->
|
|
548
|
+
<!-- v-model="productData.f_increment_charge_date" />-->
|
|
549
|
+
<!-- </div>-->
|
|
550
|
+
<!-- </div>-->
|
|
551
|
+
|
|
552
|
+
<div class="col-sm-12 span recordTable" style="margin-top: 10px;height:70vh;width: 100%">
|
|
553
|
+
|
|
554
|
+
<partial-view v-ref:single-load>
|
|
555
|
+
<data-grid :model="productData" v-ref:grid>
|
|
556
|
+
<template partial='head'>
|
|
557
|
+
<tr>
|
|
558
|
+
<th>增值产品类型</th>
|
|
559
|
+
<th>型号</th>
|
|
560
|
+
<th>收款方式</th>
|
|
561
|
+
<th>售价</th>
|
|
562
|
+
<th>增值产品票号</th>
|
|
563
|
+
<th>增值产品营销人员</th>
|
|
564
|
+
<th >套数</th>
|
|
565
|
+
<th >增值产品备注</th>
|
|
566
|
+
<th >增值产品收费日期</th>
|
|
567
|
+
</tr>
|
|
568
|
+
</template>
|
|
569
|
+
<template partial='body' >
|
|
570
|
+
<td style="text-align: center">{{row.f_increment_type}}</td>
|
|
571
|
+
<td style="text-align: center">{{row.f_increment_style}}</td>
|
|
572
|
+
<td style="text-align: center">{{row.f_increment_payment_method}}</td>
|
|
573
|
+
<td style="text-align: center">{{row.f_increment_money}}</td>
|
|
574
|
+
<td style="text-align: center">{{row.f_increment_ticket_number}}</td>
|
|
575
|
+
<td style="text-align: center">{{row.f_increment_marketing_person}}</td>
|
|
576
|
+
<td style="text-align: center">{{row.f_increment_number}}</td>
|
|
577
|
+
<td style="text-align: center">{{row.f_increment_remarks}}</td>
|
|
578
|
+
<td style="text-align: center">{{row.f_increment_charge_date}}</td>
|
|
579
|
+
|
|
580
|
+
</template>
|
|
581
|
+
</data-grid>
|
|
582
|
+
|
|
583
|
+
</partial-view>
|
|
584
|
+
</div>
|
|
585
|
+
</article>
|
|
586
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
587
|
+
</footer>
|
|
588
|
+
</modal>
|
|
589
|
+
<work-busy :is-busy="iswork" v-show="iswork"></work-busy>
|
|
590
|
+
</template>
|
|
591
|
+
|
|
592
|
+
<script>
|
|
593
|
+
import {HttpResetClass} from 'vue-client'
|
|
594
|
+
// import axios from 'axios'
|
|
595
|
+
import Vue from 'vue'
|
|
596
|
+
export default {
|
|
597
|
+
title: '档案信息',
|
|
598
|
+
props: ['selectdata', 'key','edit'],
|
|
599
|
+
data() {
|
|
600
|
+
return {
|
|
601
|
+
iswork:false,
|
|
602
|
+
headers: {'username': this.$login.f.name, 'blodid': this.selectdata.f_process_id, 'fusetype': '报建execl导入用户档案'},
|
|
603
|
+
//户档案表头
|
|
604
|
+
userHeadData: ['档案编号', '用户姓名', '用户电话', '区', '片区', '街道名称', '小区名称', '楼号', '单元号', '楼层', '门牌号', '用气性质', '用户状态'],
|
|
605
|
+
//户档案内容
|
|
606
|
+
userBodyData: ['f_userinfo_id', 'f_user_name', 'f_user_phone', 'f_area', 'f_slice_area', 'f_street', 'f_residential_area', 'f_building', 'f_unit', 'f_floor', 'f_room', 'f_gasproperties', 'f_user_state'],
|
|
607
|
+
//表档案表头
|
|
608
|
+
surHeadData: ['户档案编号', '表号', '气表品牌', '表型号','通气表号','通气人','通气时间','被修改表号'],
|
|
609
|
+
//表档案内容
|
|
610
|
+
surBodyData: ['f_userinfo_id', 'f_meternumber', 'f_meter_brand', 'f_meter_style','f_gas_meternumber','f_gas_person','f_gas_date','f_gas_meternumber'],
|
|
611
|
+
//设备表头
|
|
612
|
+
eqHeadData: ['户档案编号', '设备编号', '设备类型', '设备品牌','设备型号','设备数量'],
|
|
613
|
+
//设备内容
|
|
614
|
+
eqBodyData: ['f_userinfo_id', 'f_devices_no', 'f_devices_type', 'f_brand','f_devices_model','f_devices_num'],
|
|
615
|
+
record: {},
|
|
616
|
+
selectItem: {
|
|
617
|
+
'f_meternumber': null,
|
|
618
|
+
'f_meter_brand': null,
|
|
619
|
+
'f_meter_style': null,
|
|
620
|
+
'f_aroundmeter': null,
|
|
621
|
+
'f_price_name': null,
|
|
622
|
+
'f_price_type': null,
|
|
623
|
+
'f_price': null,
|
|
624
|
+
'f_gasproperties': null,
|
|
625
|
+
'f_user_type': null,
|
|
626
|
+
'f_meter_classify': null,
|
|
627
|
+
'f_position': null,
|
|
628
|
+
'f_inputtor': null,
|
|
629
|
+
'f_gas_person': null,
|
|
630
|
+
'f_gas_date': null,
|
|
631
|
+
'f_super_book': null
|
|
632
|
+
},
|
|
633
|
+
pricetype:[],
|
|
634
|
+
pricename:[],
|
|
635
|
+
model: {
|
|
636
|
+
rows: []
|
|
637
|
+
},
|
|
638
|
+
batchmodel :{
|
|
639
|
+
rows: []
|
|
640
|
+
},
|
|
641
|
+
params: { // 选择的具体内容
|
|
642
|
+
rows: []
|
|
643
|
+
},
|
|
644
|
+
condition: '',
|
|
645
|
+
show: false,
|
|
646
|
+
showFile: false,
|
|
647
|
+
showInfo: false,// 表信息导入
|
|
648
|
+
showCon: false,
|
|
649
|
+
ischecked: false,
|
|
650
|
+
getfield: {},
|
|
651
|
+
checked: [],
|
|
652
|
+
isShowdetail:false,
|
|
653
|
+
userinfo_id: null,
|
|
654
|
+
addshow:false,
|
|
655
|
+
meterstyle:[],
|
|
656
|
+
meterbrand:[],
|
|
657
|
+
styletype:[],
|
|
658
|
+
updateshow:false,
|
|
659
|
+
importtype:null,
|
|
660
|
+
showqueren:true,
|
|
661
|
+
userstate:this.$appdata.getParam('用户状态'),
|
|
662
|
+
checker:this.$appdata.getParam('安全员'),
|
|
663
|
+
coststate:this.$appdata.getParam('结算状态'),
|
|
664
|
+
costtype:this.$appdata.getParam('缴费类型'),
|
|
665
|
+
aroundmeter:this.$appdata.getParam('左右表'),
|
|
666
|
+
// gasproperties:this.$appdata.getParam('用气性质'),
|
|
667
|
+
// usertypes:this.$appdata.getParam('用户类型'),
|
|
668
|
+
// tablestate:this.$appdata.getParam('表状态'),
|
|
669
|
+
meterclassify:this.$appdata.getParam('气表类型'),
|
|
670
|
+
whetherhairpin:this.$appdata.getParam('是否发卡'),
|
|
671
|
+
// position:this.$appdata.getParam('安装位置'),
|
|
672
|
+
inputtor:null,
|
|
673
|
+
viewPage: false,
|
|
674
|
+
userinfo_array: [],
|
|
675
|
+
super_book: false,
|
|
676
|
+
super_book_array: [],
|
|
677
|
+
upload_meter: false,
|
|
678
|
+
productPage: false,
|
|
679
|
+
productData: {
|
|
680
|
+
rows: []
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
ready() {
|
|
685
|
+
// 获取抄表员
|
|
686
|
+
// let data = []
|
|
687
|
+
// let array = []
|
|
688
|
+
// data = this.$login.f.f_gasman.map(item => {
|
|
689
|
+
// return item.name;
|
|
690
|
+
// })
|
|
691
|
+
// for (let q = 0; q < data.length; q++) {
|
|
692
|
+
// let arraydata = {
|
|
693
|
+
// 'label': data[q],
|
|
694
|
+
// 'value': data[q]
|
|
695
|
+
// }
|
|
696
|
+
// if (array.length != 0) {
|
|
697
|
+
// for (let w = 0; w < array.length; w++) {
|
|
698
|
+
// if (array[w].label == data[q]) {
|
|
699
|
+
// break
|
|
700
|
+
// }
|
|
701
|
+
// while (w == array.length - 1) {
|
|
702
|
+
// array.push(arraydata)
|
|
703
|
+
// break
|
|
704
|
+
// }
|
|
705
|
+
// }
|
|
706
|
+
// } else {
|
|
707
|
+
// array.push(arraydata)
|
|
708
|
+
// }
|
|
709
|
+
// }
|
|
710
|
+
// this.inputtor = array
|
|
711
|
+
this.load()
|
|
712
|
+
this.getitem()
|
|
713
|
+
|
|
714
|
+
if (this.selectdata.defname == '通气') {
|
|
715
|
+
this.getPriceInfo()
|
|
716
|
+
// this.getMeterBook()
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
watch: {
|
|
720
|
+
'selectdata'() {
|
|
721
|
+
this.headers.blodid = this.selectdata.f_process_id
|
|
722
|
+
this.load()
|
|
723
|
+
},
|
|
724
|
+
// 'selectItem.f_meter_classify[0]'(val) {
|
|
725
|
+
// if (val == '机表') {
|
|
726
|
+
// this.super_book = true
|
|
727
|
+
// this.getMeterBook()
|
|
728
|
+
// }else {
|
|
729
|
+
// this.super_book = false
|
|
730
|
+
// }
|
|
731
|
+
// },
|
|
732
|
+
'selectItem.f_meter_brand[0]'(val) {
|
|
733
|
+
console.log('选择的品牌改变了',val)
|
|
734
|
+
if (!val){
|
|
735
|
+
return
|
|
736
|
+
}
|
|
737
|
+
this.$resetpost('rs/logic/getMeterStyle', {data:{f_meter_brand :val, f_orgid: this.$login.f.orgid}} ,{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
738
|
+
console.log('获取的选项',res)
|
|
739
|
+
let house2 = []
|
|
740
|
+
for (let row of res.data){
|
|
741
|
+
house2.push({label: row.f_meter_style,value: row.f_meter_style})
|
|
742
|
+
}
|
|
743
|
+
this.meterstyle = house2
|
|
744
|
+
})
|
|
745
|
+
},
|
|
746
|
+
// 'selectItem.f_meternumber'() {
|
|
747
|
+
// if (this.selectItem.hasOwnProperty("f_meternumber")) {
|
|
748
|
+
// if (this.selectItem.f_meternumber == null || this.selectItem.f_meternumber == undefined || this.selectItem.f_meternumber == '' || this.selectItem.f_meternumber.trim().length == 0){
|
|
749
|
+
// this.$set('selectItem.f_table_state', "待安装")
|
|
750
|
+
// }else {
|
|
751
|
+
// this.$set('selectItem.f_table_state', "已安装")
|
|
752
|
+
// }
|
|
753
|
+
// }
|
|
754
|
+
//
|
|
755
|
+
// }
|
|
756
|
+
},
|
|
757
|
+
|
|
758
|
+
computed: {
|
|
759
|
+
address() {
|
|
760
|
+
let strAddress = `${this.record.f_area ? this.record.f_area
|
|
761
|
+
+ '-' : ''}${this.record.f_street ? this.record.f_street
|
|
762
|
+
+ '-' : ''}${this.record.f_residential_area ? this.record.f_residential_area
|
|
763
|
+
+ '' : ''}${this.record.f_building ? this.record.f_building
|
|
764
|
+
+ '号楼' : ''}${this.record.f_unit ? this.record.f_unit
|
|
765
|
+
+ '单元' : ''}${this.record.f_floor ? this.record.f_floor
|
|
766
|
+
+ '层' : ''}${this.record.f_room ? this.record.f_room
|
|
767
|
+
+ '室' : ''}`
|
|
768
|
+
this.record.f_address = strAddress
|
|
769
|
+
return strAddress
|
|
770
|
+
},
|
|
771
|
+
getfield() {
|
|
772
|
+
let data = {}
|
|
773
|
+
this.userBodyData.forEach((value, index) => {
|
|
774
|
+
data[this.userBodyData[index]] = this.userHeadData[index]
|
|
775
|
+
})
|
|
776
|
+
|
|
777
|
+
console.log('data', data)
|
|
778
|
+
return data
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
methods: {
|
|
782
|
+
// 获取气价信息
|
|
783
|
+
async getPriceInfo() {
|
|
784
|
+
console.log('开始获取气价信息')
|
|
785
|
+
let http = new HttpResetClass()
|
|
786
|
+
let condition = "f_orgid = '" + this.$login.f.orgid + "'"
|
|
787
|
+
let res = await http.load('POST','rs/sql/applysingleTable',{data:{tablename:'t_stairprice',condition:condition}}, {resolveMsg: null, rejectMsg: null})
|
|
788
|
+
let data = []
|
|
789
|
+
let array = []
|
|
790
|
+
data = res.data.map(item => {
|
|
791
|
+
return item.f_price_name;
|
|
792
|
+
})
|
|
793
|
+
for (let q = 0; q < data.length; q++) {
|
|
794
|
+
let arraydata = {
|
|
795
|
+
'label': data[q],
|
|
796
|
+
'value': data[q]
|
|
797
|
+
}
|
|
798
|
+
if (array.length != 0) {
|
|
799
|
+
for (let w = 0; w < array.length; w++) {
|
|
800
|
+
if (array[w].label == data[q]) {
|
|
801
|
+
break
|
|
802
|
+
}
|
|
803
|
+
while (w == array.length - 1) {
|
|
804
|
+
array.push(arraydata)
|
|
805
|
+
break
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
} else {
|
|
809
|
+
array.push(arraydata)
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
this.pricename = array
|
|
813
|
+
},
|
|
814
|
+
// 获取抄表册
|
|
815
|
+
// async getMeterBook() {
|
|
816
|
+
// let http = new HttpResetClass()
|
|
817
|
+
// let condition = " f_orgname = '" + this.$login.f.orgs + "'"
|
|
818
|
+
// let res = await http.load('POST','rs/sql/applysingleTable',{data:{tablename: 't_meter_book', condition: condition}}, {resolveMsg: null, rejectMsg: "获取抄表本失败"})
|
|
819
|
+
// let data = []
|
|
820
|
+
// let array = []
|
|
821
|
+
// data = res.data.map(item => {
|
|
822
|
+
// return item.f_book_name;
|
|
823
|
+
// })
|
|
824
|
+
// for (let q = 0; q < data.length; q++) {
|
|
825
|
+
// let arraydata = {
|
|
826
|
+
// 'label': data[q],
|
|
827
|
+
// 'value': data[q]
|
|
828
|
+
// }
|
|
829
|
+
// if (array.length != 0) {
|
|
830
|
+
// for (let w = 0; w < array.length; w++) {
|
|
831
|
+
// if (array[w].label == data[q]) {
|
|
832
|
+
// break
|
|
833
|
+
// }
|
|
834
|
+
// while (w == array.length - 1) {
|
|
835
|
+
// array.push(arraydata)
|
|
836
|
+
// break
|
|
837
|
+
// }
|
|
838
|
+
// }
|
|
839
|
+
// } else {
|
|
840
|
+
// array.push(arraydata)
|
|
841
|
+
// }
|
|
842
|
+
// }
|
|
843
|
+
// this.super_book_array = array
|
|
844
|
+
//
|
|
845
|
+
// },
|
|
846
|
+
// 根据气价名称获取其他相对应数据
|
|
847
|
+
priceChange(val) {
|
|
848
|
+
console.log("被选中的数据:" + val)
|
|
849
|
+
this.getData(val)
|
|
850
|
+
},
|
|
851
|
+
async getData(val) {
|
|
852
|
+
let http2 = new HttpResetClass()
|
|
853
|
+
let condition2 = "s.f_orgid = '" + this.$login.f.orgid + "'" + " and s.f_price_name = '" + val + "'"
|
|
854
|
+
http2.load('POST','rs/sql/searchGasPrice',{data:{condition:condition2}}, {resolveMsg: null, rejectMsg: null}).then((res2)=>{
|
|
855
|
+
console.log("气价数据:" + JSON.stringify(res2.data))
|
|
856
|
+
// for (let j = 0; j < this.$refs.service_show.data.fields.length; j++) {
|
|
857
|
+
// if (this.$refs.service_show.data.fields[j].label == '气价类型') {
|
|
858
|
+
// console.log("气价类型:" + res2.data[0])
|
|
859
|
+
// console.log("气价类型1:" + res2.data[0].f_price_type)
|
|
860
|
+
// Vue.set(this.selectItem,'f_price_type',res2.data[0].f_price_type)
|
|
861
|
+
// this.selectItem.f_price_type = res2.data[0].f_price_type
|
|
862
|
+
// console.log("气价类型2:" + this.$refs.service_show.data.fields[j].value)
|
|
863
|
+
// }
|
|
864
|
+
//气价拼接
|
|
865
|
+
// if (this.$refs.service_show.data.fields[j].label == '价格') {
|
|
866
|
+
let p = 1
|
|
867
|
+
let resultPrice = ''
|
|
868
|
+
for(let l = 0; l < res2.data.length; l++){
|
|
869
|
+
resultPrice = resultPrice + res2.data[l].price + ' |'
|
|
870
|
+
if (p == 3) {
|
|
871
|
+
break
|
|
872
|
+
}
|
|
873
|
+
p++
|
|
874
|
+
}
|
|
875
|
+
console.log("拼接的价格:" + resultPrice)
|
|
876
|
+
//this.selectItem.f_price = resultPrice
|
|
877
|
+
this.$set('selectItem.f_price',resultPrice)
|
|
878
|
+
this.$set('selectItem.f_gasproperties',res2.data[0].f_gasproperties)
|
|
879
|
+
this.$set('selectItem.f_user_type',res2.data[0].f_user_type)
|
|
880
|
+
this.$set('selectItem.f_price_type',res2.data[0].f_price_type)
|
|
881
|
+
// }
|
|
882
|
+
// if (this.$refs.service_show.data.fields[j].label == '用气性质') {
|
|
883
|
+
// this.$set(this.selectItem,'f_gasproperties',res2.data[0].f_gasproperties)
|
|
884
|
+
//this.selectItem.f_gasproperties = res2.data[0].f_gasproperties
|
|
885
|
+
// }
|
|
886
|
+
// if (this.$refs.service_show.data.fields[j].label == '客户类型') {
|
|
887
|
+
//this.selectItem.f_user_type = res2.data[0].f_user_type
|
|
888
|
+
// }
|
|
889
|
+
// }
|
|
890
|
+
})
|
|
891
|
+
|
|
892
|
+
},
|
|
893
|
+
getitem(){
|
|
894
|
+
console.log('开始获取品牌')
|
|
895
|
+
let condition = '1=1'
|
|
896
|
+
let http = new HttpResetClass()
|
|
897
|
+
let data = {
|
|
898
|
+
condition: condition,
|
|
899
|
+
f_orgid: this.$login.f.orgid
|
|
900
|
+
}
|
|
901
|
+
http.load('POST','rs/logic/getRecordItem', {data: data}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
902
|
+
console.log('获取的选项',res)
|
|
903
|
+
let house2 = []
|
|
904
|
+
for (let row of res.data.meterbrand){
|
|
905
|
+
house2.push({label: row.f_meter_brand,value: row.f_meter_brand})
|
|
906
|
+
}
|
|
907
|
+
this.meterbrand = house2
|
|
908
|
+
})
|
|
909
|
+
},
|
|
910
|
+
upload_meter_close(){
|
|
911
|
+
this.upload_meter = false
|
|
912
|
+
},
|
|
913
|
+
addDetailed(){
|
|
914
|
+
this.importtype='2'
|
|
915
|
+
this.showFile = true
|
|
916
|
+
},
|
|
917
|
+
addclose(){
|
|
918
|
+
this.addshow = false
|
|
919
|
+
this.selectItem = {}
|
|
920
|
+
},
|
|
921
|
+
|
|
922
|
+
updateclose(){
|
|
923
|
+
this.updateshow = false
|
|
924
|
+
this.selectItem = {}
|
|
925
|
+
},
|
|
926
|
+
showdetail(val) {
|
|
927
|
+
|
|
928
|
+
console.log(val)
|
|
929
|
+
this.userinfo_id = val
|
|
930
|
+
this.isShowdetail=true
|
|
931
|
+
this.loadfiles()
|
|
932
|
+
},
|
|
933
|
+
async loadfiles() {
|
|
934
|
+
if (!this.selectdata)
|
|
935
|
+
return
|
|
936
|
+
let data = {
|
|
937
|
+
tablename: 't_userfiles',
|
|
938
|
+
condition: 'a.f_userinfo_id=' + '\'' + this.userinfo_id + '\''
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
let self = this
|
|
942
|
+
let http = new HttpResetClass()
|
|
943
|
+
let res = await http.load('POST', 'rs/sql/getUserfiles', {data: data}, {
|
|
944
|
+
resolveMsg: null,
|
|
945
|
+
rejectMsg: '获取表档案信息失败'
|
|
946
|
+
})
|
|
947
|
+
self.batchmodel.rows = []
|
|
948
|
+
|
|
949
|
+
self.batchmodel.rows = res.data
|
|
950
|
+
},
|
|
951
|
+
selected (val) {
|
|
952
|
+
this.selectItem = {"q":"q"}
|
|
953
|
+
},
|
|
954
|
+
//选择需要转银收的户档案
|
|
955
|
+
chooseOne(e, row, rows) {
|
|
956
|
+
console.log('row', row)
|
|
957
|
+
console.log('e', e)
|
|
958
|
+
this.ischecked = e.target.checked
|
|
959
|
+
console.log("state", e.target.checked)
|
|
960
|
+
//判断当前行是否被选中
|
|
961
|
+
if (this.ischecked) {
|
|
962
|
+
this.checked.push(row)
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
//修改选中的数据状态
|
|
966
|
+
changeState() {
|
|
967
|
+
if (this.checked.length > 0) {
|
|
968
|
+
let http = new HttpResetClass()
|
|
969
|
+
http.load('POST', 'rs/logic/updateUserState', {data: {rows: this.checked}}).then((res) => {
|
|
970
|
+
this.show = false
|
|
971
|
+
this.ischecked = false
|
|
972
|
+
// 如果没有id,需要在数组中添加
|
|
973
|
+
this.load()
|
|
974
|
+
this.checked = []
|
|
975
|
+
})
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
// 父组件更新子组件属性
|
|
979
|
+
updateData(val) {
|
|
980
|
+
this.headers.blodid = val.f_process_id
|
|
981
|
+
this.selectdata = val
|
|
982
|
+
},
|
|
983
|
+
async load() {
|
|
984
|
+
if (!this.selectdata || !this.selectdata.f_process_id){
|
|
985
|
+
return
|
|
986
|
+
}
|
|
987
|
+
console.log("当前数据",!this.selectdata.f_process_id)
|
|
988
|
+
let data = {
|
|
989
|
+
f_process_id: this.selectdata.f_process_id
|
|
990
|
+
}
|
|
991
|
+
let self = this
|
|
992
|
+
let http = new HttpResetClass()
|
|
993
|
+
let res = await http.load('POST', 'rs/sql/getUserArchives', {data: data}, {
|
|
994
|
+
resolveMsg: null,
|
|
995
|
+
rejectMsg: '获取户档案信息失败'
|
|
996
|
+
})
|
|
997
|
+
self.model.rows = []
|
|
998
|
+
self.model.rows = res.data
|
|
999
|
+
self.params = res.data
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
},
|
|
1003
|
+
impexcel() {
|
|
1004
|
+
this.importtype='1'
|
|
1005
|
+
this.showFile = true
|
|
1006
|
+
},
|
|
1007
|
+
meterUpload() {
|
|
1008
|
+
this.importtype='1'
|
|
1009
|
+
this.upload_meter = true
|
|
1010
|
+
},
|
|
1011
|
+
impexcel1() {
|
|
1012
|
+
this.importtype='1'
|
|
1013
|
+
for (let i = 0; i < this.model.rows.length; i++) {
|
|
1014
|
+
this.userinfo_array.push(this.model.rows[i].f_userinfo_id)
|
|
1015
|
+
}
|
|
1016
|
+
this.showInfo = true
|
|
1017
|
+
// this.showCon = true
|
|
1018
|
+
},
|
|
1019
|
+
showClose() {
|
|
1020
|
+
this.showCon = false
|
|
1021
|
+
},
|
|
1022
|
+
closeFile() {
|
|
1023
|
+
this.showFile = false
|
|
1024
|
+
this.showInfo = false
|
|
1025
|
+
// 将选的文件清空
|
|
1026
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
1027
|
+
},
|
|
1028
|
+
closeFile1() {
|
|
1029
|
+
this.showFile = false
|
|
1030
|
+
this.showInfo = false
|
|
1031
|
+
// 将选的文件清空
|
|
1032
|
+
this.$refs.file_one.$el.querySelector('input').value = ''
|
|
1033
|
+
},
|
|
1034
|
+
closeProduct() {
|
|
1035
|
+
this.productData.rows = []
|
|
1036
|
+
this.productPage = false
|
|
1037
|
+
},
|
|
1038
|
+
delete(row){
|
|
1039
|
+
console.log('开始删除')
|
|
1040
|
+
let http = new HttpResetClass()
|
|
1041
|
+
http.load('POST', 'rs/logic/deleteUserinfo', {data: {f_userinfo_id: row.f_userinfo_id}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
1042
|
+
console.log('返回的数据:',res)
|
|
1043
|
+
if (res.data != null && res.data != "") {
|
|
1044
|
+
this.$showMessage(res.data)
|
|
1045
|
+
}else {
|
|
1046
|
+
this.$showMessage("删除成功!")
|
|
1047
|
+
this.load()
|
|
1048
|
+
}
|
|
1049
|
+
})
|
|
1050
|
+
},
|
|
1051
|
+
|
|
1052
|
+
deleteItem(row) {
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
/* this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
1056
|
+
if (res === 'confirm') {
|
|
1057
|
+
let http = new HttpResetClass()
|
|
1058
|
+
http.load('DELETE', `rs/entity/t_userinfo/${row.f_userinfo_id}`).then((res) => {
|
|
1059
|
+
this.load()
|
|
1060
|
+
})
|
|
1061
|
+
}
|
|
1062
|
+
})*/
|
|
1063
|
+
|
|
1064
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
1065
|
+
if (res === 'confirm') {
|
|
1066
|
+
let http = new HttpResetClass()
|
|
1067
|
+
console.log("用户id:" + row.f_userfiles_id)
|
|
1068
|
+
http.load('DELETE', `rs/entity/t_userfiles/${row.f_userfiles_id}`).then((res) => {
|
|
1069
|
+
this.loadfiles()
|
|
1070
|
+
})
|
|
1071
|
+
}
|
|
1072
|
+
})
|
|
1073
|
+
|
|
1074
|
+
},
|
|
1075
|
+
//户档案查询
|
|
1076
|
+
filterParams(param) {
|
|
1077
|
+
this.isShowdetail=false
|
|
1078
|
+
if (param && param !== "") {
|
|
1079
|
+
let temp = []
|
|
1080
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
1081
|
+
if (this.model.rows[i].f_user_name.includes(param)) {
|
|
1082
|
+
temp.push(this.model.rows[i])
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
this.model.rows = temp
|
|
1086
|
+
} else {
|
|
1087
|
+
this.model.rows = this.params
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
//表档案查询
|
|
1091
|
+
filterParam(param) {
|
|
1092
|
+
if (param && param !== "") {
|
|
1093
|
+
let temp = []
|
|
1094
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
1095
|
+
if (this.model.rows[i].f_meter_brand.includes(param)) {
|
|
1096
|
+
temp.push(this.model.rows[i])
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
this.model.rows = temp
|
|
1100
|
+
} else {
|
|
1101
|
+
this.model.rows = this.params
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
//设备列表查询
|
|
1105
|
+
findEq(param) {
|
|
1106
|
+
if (param && param !== "") {
|
|
1107
|
+
let temp = []
|
|
1108
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
1109
|
+
if (this.model.rows[i].f_meter_brand.includes(param)) {
|
|
1110
|
+
temp.push(this.model.rows[i])
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
this.model.rows = temp
|
|
1114
|
+
} else {
|
|
1115
|
+
this.model.rows = this.params
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
add() {
|
|
1119
|
+
this.show = true
|
|
1120
|
+
console.log("点击了添加")
|
|
1121
|
+
},
|
|
1122
|
+
async user_search() {
|
|
1123
|
+
if (!this.selectdata)
|
|
1124
|
+
return
|
|
1125
|
+
let data = {
|
|
1126
|
+
condition: ' 1 = 1',
|
|
1127
|
+
f_process_id: this.selectdata.f_process_id
|
|
1128
|
+
}
|
|
1129
|
+
if (this.model.f_user_name != null && this.model.f_user_name != undefined && this.model.f_user_name != '') {
|
|
1130
|
+
data.condition = ' u.f_user_name = ' + '\'' + this.model.f_user_name + '\''
|
|
1131
|
+
}else if (this.model.f_user_phone != null && this.model.f_user_phone != undefined && this.model.f_user_phone != '') {
|
|
1132
|
+
data.condition = ' u.f_user_phone = ' + '\'' + this.model.f_user_phone + '\''
|
|
1133
|
+
}else if (this.model.f_user_name != undefined && this.model.f_user_phone != undefined) {
|
|
1134
|
+
data.condition = ' u.f_user_phone = ' + '\'' + this.model.f_user_phone + '\'' + ' and u.f_user_name = ' + '\'' + this.model.f_user_name + '\''
|
|
1135
|
+
}
|
|
1136
|
+
let self = this
|
|
1137
|
+
let http = new HttpResetClass()
|
|
1138
|
+
let res = await http.load('POST', 'rs/sql/reportFormUser', {data: data}, {
|
|
1139
|
+
resolveMsg: null,
|
|
1140
|
+
rejectMsg: '获取户档案信息失败'
|
|
1141
|
+
})
|
|
1142
|
+
self.model.rows = []
|
|
1143
|
+
self.model.rows = res.data
|
|
1144
|
+
if (res.data.length == 0) {
|
|
1145
|
+
this.$showMessage("该用户无数据")
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
// 修改按钮
|
|
1149
|
+
modifyParam(row) {
|
|
1150
|
+
this.$set('selectItem.f_userinfo_id', row.f_userinfo_id)
|
|
1151
|
+
this.$set('selectItem.f_user_name', row.f_user_name)
|
|
1152
|
+
this.$set('selectItem.f_user_phone', row.f_user_phone)
|
|
1153
|
+
// this.$set('selectItem.f_pcd', row.f_pcd)
|
|
1154
|
+
// this.$set('selectItem.f_slice_area', row.f_slice_area)
|
|
1155
|
+
this.$set('selectItem.f_area', row.f_area)
|
|
1156
|
+
this.$set('selectItem.f_street', row.f_street)
|
|
1157
|
+
this.$set('selectItem.f_residential_area', row.f_residential_area)
|
|
1158
|
+
this.$set('selectItem.f_building', row.f_building)
|
|
1159
|
+
this.$set('selectItem.f_unit', row.f_unit)
|
|
1160
|
+
this.$set('selectItem.f_floor', row.f_floor)
|
|
1161
|
+
this.$set('selectItem.f_room', row.f_room)
|
|
1162
|
+
// this.selectItem.f_cost_type= [row.f_cost_type]
|
|
1163
|
+
// this.selectItem.f_cost_state=[row.f_cost_state]
|
|
1164
|
+
// this.$set('selectItem.f_people_num', row.f_people_num)
|
|
1165
|
+
// this.selectItem.f_checker=[row.f_checker]
|
|
1166
|
+
this.selectItem.f_user_state= [row.f_user_state]
|
|
1167
|
+
this.$set('selectItem.version', row.version)
|
|
1168
|
+
this.show = true
|
|
1169
|
+
},
|
|
1170
|
+
//查询用户增值产品
|
|
1171
|
+
searchProduct(row) {
|
|
1172
|
+
let data = {
|
|
1173
|
+
tablename: 't_standing_book',
|
|
1174
|
+
condition: `f_userinfo_id = ${row.f_userinfo_id}`
|
|
1175
|
+
}
|
|
1176
|
+
let http = new HttpResetClass()
|
|
1177
|
+
let res = http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
|
|
1178
|
+
resolveMsg: null,
|
|
1179
|
+
rejectMsg: '获取增值产品信息失败'
|
|
1180
|
+
}).then(res => {
|
|
1181
|
+
if (res.data.length > 0) {
|
|
1182
|
+
// console.log("增值产品:" + JSON.stringify(res.data))
|
|
1183
|
+
// console.log(JSON.stringify(res.data.length))
|
|
1184
|
+
this.productData.rows = res.data
|
|
1185
|
+
this.productPage = true
|
|
1186
|
+
}else {
|
|
1187
|
+
this.$showMessage("该用户无增值产品!")
|
|
1188
|
+
}
|
|
1189
|
+
})
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
},
|
|
1193
|
+
|
|
1194
|
+
//获取当前用户表档案信息
|
|
1195
|
+
getUserFiles(row) {
|
|
1196
|
+
this.isShowFiles = true
|
|
1197
|
+
console.log('获取户档案信息')
|
|
1198
|
+
|
|
1199
|
+
let data = {
|
|
1200
|
+
tablename: 't_userfiles',
|
|
1201
|
+
condition: `f_userinfo_id=${row.f_userinfo_id}`
|
|
1202
|
+
}
|
|
1203
|
+
let http = new HttpResetClass()
|
|
1204
|
+
let resGasbrand = http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
1205
|
+
resolveMsg: null,
|
|
1206
|
+
rejectMsg: '获取档案信息失败'
|
|
1207
|
+
})
|
|
1208
|
+
self.model.rows = []
|
|
1209
|
+
self.model.rows = res.data
|
|
1210
|
+
},
|
|
1211
|
+
//表档案修改
|
|
1212
|
+
filesModify(row) {
|
|
1213
|
+
console.log('表档案数据',row)
|
|
1214
|
+
this.$set('selectItem.f_userinfo_id', row.f_userinfo_id)
|
|
1215
|
+
this.$set('selectItem.f_user_id', row.f_user_id)
|
|
1216
|
+
// 表号
|
|
1217
|
+
this.$set('selectItem.f_meternumber', row.f_meternumber)
|
|
1218
|
+
// 表箱号
|
|
1219
|
+
// this.$set('selectItem.f_metertitles', row.f_metertitles)
|
|
1220
|
+
// 气表品牌
|
|
1221
|
+
// let data1 = row.f_meter_brand
|
|
1222
|
+
// let array1 = []
|
|
1223
|
+
// let arraydata1 = {
|
|
1224
|
+
// 'label': data1,
|
|
1225
|
+
// 'value': data1
|
|
1226
|
+
// }
|
|
1227
|
+
// array1.push(arraydata1)
|
|
1228
|
+
this.$set('selectItem.f_meter_brand', row.f_meter_brand)
|
|
1229
|
+
// 气表型号
|
|
1230
|
+
// let data2 = row.f_meter_style
|
|
1231
|
+
// let array2 = []
|
|
1232
|
+
// let arraydata2 = {
|
|
1233
|
+
// 'label': data2,
|
|
1234
|
+
// 'value': data2
|
|
1235
|
+
// }
|
|
1236
|
+
// array2.push(arraydata2)
|
|
1237
|
+
this.$set('selectItem.f_meter_style', row.f_meter_style)
|
|
1238
|
+
// 左右表
|
|
1239
|
+
// let data3 = row.f_aroundmeter
|
|
1240
|
+
// let array3 = []
|
|
1241
|
+
// let arraydata3 = {
|
|
1242
|
+
// 'label': data3,
|
|
1243
|
+
// 'value': data3
|
|
1244
|
+
// }
|
|
1245
|
+
// array3.push(arraydata3)
|
|
1246
|
+
this.$set('selectItem.f_aroundmeter', row.f_aroundmeter)
|
|
1247
|
+
// 表状态
|
|
1248
|
+
// console.log("表状态:" + row.f_table_state)
|
|
1249
|
+
// let data4 = row.f_table_state
|
|
1250
|
+
// let array4 = []
|
|
1251
|
+
// let arraydata4 = {
|
|
1252
|
+
// 'label': data4,
|
|
1253
|
+
// 'value': data4
|
|
1254
|
+
// }
|
|
1255
|
+
// array4.push(arraydata4)
|
|
1256
|
+
// this.$set('selectItem.f_table_state', array4)
|
|
1257
|
+
// 气价名称
|
|
1258
|
+
// let data5 = row.f_price_name
|
|
1259
|
+
// let array5 = []
|
|
1260
|
+
// let arraydata5 = {
|
|
1261
|
+
// 'label': data5,
|
|
1262
|
+
// 'value': data5
|
|
1263
|
+
// }
|
|
1264
|
+
// array5.push(arraydata5)
|
|
1265
|
+
this.$set('selectItem.f_price_name', row.f_price_name)
|
|
1266
|
+
// 客户类型
|
|
1267
|
+
this.$set('selectItem.f_user_type', row.f_user_type)
|
|
1268
|
+
// 用气性质
|
|
1269
|
+
this.$set('selectItem.f_gasproperties', row.f_gasproperties)
|
|
1270
|
+
// 价格
|
|
1271
|
+
this.$set('selectItem.f_price', row.f_price)
|
|
1272
|
+
// 气价类型
|
|
1273
|
+
this.$set('selectItem.f_price_type', row.f_price_type)
|
|
1274
|
+
// 气表类型
|
|
1275
|
+
// let data6 = row.f_meter_classify
|
|
1276
|
+
// let array6 = []
|
|
1277
|
+
// let arraydata6 = {
|
|
1278
|
+
// 'label': data6,
|
|
1279
|
+
// 'value': data6
|
|
1280
|
+
// }
|
|
1281
|
+
// array6.push(arraydata6)
|
|
1282
|
+
this.$set('selectItem.f_meter_classify', row.f_meter_classify)
|
|
1283
|
+
// 安装位置
|
|
1284
|
+
// let data7 = row.f_position
|
|
1285
|
+
// let array7 = []
|
|
1286
|
+
// let arraydata7 = {
|
|
1287
|
+
// 'label': data7,
|
|
1288
|
+
// 'value': data7
|
|
1289
|
+
// }
|
|
1290
|
+
// array7.push(arraydata7)
|
|
1291
|
+
this.$set('selectItem.f_position', row.f_position)
|
|
1292
|
+
// 抄表员
|
|
1293
|
+
// let data8 = row.f_inputtor
|
|
1294
|
+
// let array8 = []
|
|
1295
|
+
// let arraydata8 = {
|
|
1296
|
+
// 'label': data8,
|
|
1297
|
+
// 'value': data8
|
|
1298
|
+
// }
|
|
1299
|
+
// array8.push(arraydata8)
|
|
1300
|
+
// this.$set('selectItem.f_inputtor', row.f_inputtor)
|
|
1301
|
+
// 通气人
|
|
1302
|
+
this.$set('selectItem.f_gas_person', row.f_gas_person)
|
|
1303
|
+
// 通气时间
|
|
1304
|
+
this.$set('selectItem.f_gas_date', row.f_gas_date)
|
|
1305
|
+
console.log("气表品牌:" + row.f_meter_brand,"气表型号:" + row.f_meter_style)
|
|
1306
|
+
this.$set('selectItem.version', row.version)
|
|
1307
|
+
// this.$set('selectItem.f_meter_base', row.f_meter_base)
|
|
1308
|
+
// this.$set('selectItem.f_heater_gas', row.f_heater_gas)
|
|
1309
|
+
// this.$set('selectItem.f_whether_hairpin', row.f_whether_hairpin)
|
|
1310
|
+
// this.$set('selectItem.f_lossrate', row.f_lossrate)
|
|
1311
|
+
this.addshow = true
|
|
1312
|
+
this.getpricetype()
|
|
1313
|
+
|
|
1314
|
+
},
|
|
1315
|
+
getpricetype(){
|
|
1316
|
+
// console.log('开始获取气价类别')
|
|
1317
|
+
// let condition =`f_user_type = '${this.selectItem.f_user_type}' and f_filiale = '${this.$login.f.f_fengongsi}'
|
|
1318
|
+
// and f_gasproperties = '${this.selectItem.f_gasproperties}'`
|
|
1319
|
+
// this.$resetpost('rs/logic/getRecordItem', {condition}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
1320
|
+
// console.log('获取的选项',res)
|
|
1321
|
+
// let house2 = []
|
|
1322
|
+
// for (let row of res.data.pricetype){
|
|
1323
|
+
// house2.push({label: row.f_price_type,value: row.f_price_type})
|
|
1324
|
+
// }
|
|
1325
|
+
// // this.pricetype = house2
|
|
1326
|
+
// let house = []
|
|
1327
|
+
// for (let row of res.data.meterbrand){
|
|
1328
|
+
// house.push({label: row.f_meter_brand,value: row.f_meter_brand})
|
|
1329
|
+
// }
|
|
1330
|
+
// this.meterbrand = house
|
|
1331
|
+
// let house3 = []
|
|
1332
|
+
// for (let row of res.data.pricename){
|
|
1333
|
+
// house3.push({label: row.f_price_name,value: row.f_price_name})
|
|
1334
|
+
// }
|
|
1335
|
+
// //this.pricename = house3
|
|
1336
|
+
// })
|
|
1337
|
+
},
|
|
1338
|
+
//新增修改或删除提交
|
|
1339
|
+
async confirm() {
|
|
1340
|
+
let http = new HttpResetClass()
|
|
1341
|
+
await http.load('POST', 'rs/logic/recordSave', this.selectItem).then((res) => {
|
|
1342
|
+
this.show = false
|
|
1343
|
+
// 如果没有id,需要在数组中添加
|
|
1344
|
+
this.load()
|
|
1345
|
+
this.selectItem = {}
|
|
1346
|
+
})
|
|
1347
|
+
|
|
1348
|
+
},
|
|
1349
|
+
|
|
1350
|
+
async addconfirm() {
|
|
1351
|
+
if (this.selectItem.f_meternumber == null || this.selectItem.f_meternumber == undefined || this.selectItem.f_meternumber.trim().length == 0){
|
|
1352
|
+
this.$showAlert("表号不能为空","warning", 3000)
|
|
1353
|
+
return
|
|
1354
|
+
}
|
|
1355
|
+
// if (this.selectItem.f_metertitles == null || this.selectItem.f_metertitles == undefined || this.selectItem.f_metertitles.trim().length == 0){
|
|
1356
|
+
// this.$showAlert("表箱号不能为空","warning", 3000)
|
|
1357
|
+
// return
|
|
1358
|
+
// }
|
|
1359
|
+
// console.log("==========+++++++++=============:" + this.selectItem,"okk:" + JSON.stringify(this.selectItem))
|
|
1360
|
+
if (this.selectItem.f_meter_brand != null){
|
|
1361
|
+
if (this.selectItem.f_meter_brand[0] == null || this.selectItem.f_meter_brand[0] == undefined || this.selectItem.f_meter_brand[0].trim().length == 0){
|
|
1362
|
+
this.$showAlert("气表品牌不能为空","warning", 3000)
|
|
1363
|
+
return
|
|
1364
|
+
}
|
|
1365
|
+
}else {
|
|
1366
|
+
this.$showAlert("气表品牌不能为空","warning", 3000)
|
|
1367
|
+
return
|
|
1368
|
+
}
|
|
1369
|
+
// 气表型号不能为空
|
|
1370
|
+
if (this.selectItem.f_meter_style != null){
|
|
1371
|
+
if (this.selectItem.f_meter_style[0] == null || this.selectItem.f_meter_style[0] == undefined || this.selectItem.f_meter_style[0].trim().length == 0){
|
|
1372
|
+
this.$showAlert("气表型号不能为空","warning", 3000)
|
|
1373
|
+
return
|
|
1374
|
+
}
|
|
1375
|
+
}else {
|
|
1376
|
+
this.$showAlert("气表型号不能为空","warning", 3000)
|
|
1377
|
+
return
|
|
1378
|
+
}
|
|
1379
|
+
// 左右表不能为空
|
|
1380
|
+
if (this.selectItem.f_aroundmeter != null){
|
|
1381
|
+
if (this.selectItem.f_aroundmeter[0] == null || this.selectItem.f_aroundmeter[0] == undefined || this.selectItem.f_aroundmeter[0].trim().length == 0){
|
|
1382
|
+
this.$showAlert("左右表不能为空","warning", 3000)
|
|
1383
|
+
return
|
|
1384
|
+
}
|
|
1385
|
+
}else {
|
|
1386
|
+
this.$showAlert("左右表不能为空","warning", 3000)
|
|
1387
|
+
return
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
this.showqueren = false
|
|
1392
|
+
let http = new HttpResetClass()
|
|
1393
|
+
this.$set('selectItem.f_userinfo_id', this.userinfo_id)
|
|
1394
|
+
this.selectItem.f_filiale = this.$login.f.orgs
|
|
1395
|
+
this.selectItem.orgid = this.$login.f.orgid
|
|
1396
|
+
this.selectItem.defname = this.selectdata.defname
|
|
1397
|
+
await http.load('POST', 'rs/logic/addmeterrecord', this.selectItem).then((res) => {
|
|
1398
|
+
this.addshow = false
|
|
1399
|
+
// 如果没有id,需要在数组中添加
|
|
1400
|
+
this.loadfiles()
|
|
1401
|
+
this.selectItem = {}
|
|
1402
|
+
if (res.data.msg != null && res.data.msg != "") {
|
|
1403
|
+
this.$showMessage(res.data.msg)
|
|
1404
|
+
}else {
|
|
1405
|
+
this.$showMessage("修改成功!")
|
|
1406
|
+
}
|
|
1407
|
+
})
|
|
1408
|
+
this.showqueren = true
|
|
1409
|
+
},
|
|
1410
|
+
async updateconfirm(){
|
|
1411
|
+
let http = new HttpResetClass()
|
|
1412
|
+
|
|
1413
|
+
await http.load('POST', 'rs/logic/updatemetrecord', this.selectItem,{resolveMsg: null, rejectMsg: '修改失败'}).then((res) => {
|
|
1414
|
+
this.updateshow = false
|
|
1415
|
+
// 如果没有id,需要在数组中添加
|
|
1416
|
+
this.loadfiles()
|
|
1417
|
+
this.selectItem = {}
|
|
1418
|
+
|
|
1419
|
+
})
|
|
1420
|
+
},
|
|
1421
|
+
userinfoArray(val) {
|
|
1422
|
+
console.log("1213---------------" + val)
|
|
1423
|
+
if (val == null || val == undefined || val.length == 0) {
|
|
1424
|
+
for (let i = 0; i < this.userinfo_array.length; i++) {
|
|
1425
|
+
if (this.userinfo_array[i] != val) {
|
|
1426
|
+
this.userinfo_array.delete(row.f_userinfo_id)
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
}else {
|
|
1430
|
+
for (let i = 0; i < this.userinfo_array.length; i++) {
|
|
1431
|
+
if (this.userinfo_array[i] != val) {
|
|
1432
|
+
this.userinfo_array.push(val)
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
},
|
|
1439
|
+
|
|
1440
|
+
// 关闭模态框
|
|
1441
|
+
close() {
|
|
1442
|
+
this.show = false
|
|
1443
|
+
this.selectItem = {}
|
|
1444
|
+
},
|
|
1445
|
+
},
|
|
1446
|
+
events: {
|
|
1447
|
+
async onFileUpload(file, res) {
|
|
1448
|
+
if (!this.selectdata.f_process_id) {
|
|
1449
|
+
this.$showMessage("数据异常,导入失败")
|
|
1450
|
+
return
|
|
1451
|
+
}
|
|
1452
|
+
if (this.showFile) {
|
|
1453
|
+
this.iswork = true;
|
|
1454
|
+
//档案导入
|
|
1455
|
+
let data = {
|
|
1456
|
+
tablename: 't_userinfo',
|
|
1457
|
+
filepath: res.f_downloadpath,
|
|
1458
|
+
f_area:this.selectdata.f_area,
|
|
1459
|
+
f_slice_area:this.selectdata.f_slice_area,
|
|
1460
|
+
f_street:this.selectdata.f_street,
|
|
1461
|
+
f_residential_area:this.selectdata.f_residential_area,
|
|
1462
|
+
f_process_id: this.selectdata.f_process_id,
|
|
1463
|
+
f_user_type: this.selectdata.f_user_type,
|
|
1464
|
+
f_key: this.$login.f.f_orgids,
|
|
1465
|
+
f_operator: this.$login.f.name,
|
|
1466
|
+
f_orgid: this.$login.f.orgid,
|
|
1467
|
+
f_operatorid:this.$login.f.id,
|
|
1468
|
+
f_orgname:this.$login.f.orgs,
|
|
1469
|
+
f_depid: this.$login.f.depids,
|
|
1470
|
+
f_depname: this.$login.f.deps,
|
|
1471
|
+
f_gasproperties: this.selectdata.f_gasproperties,
|
|
1472
|
+
f_date: new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
1473
|
+
};
|
|
1474
|
+
console.log('即将转发的数据',data);
|
|
1475
|
+
// try{
|
|
1476
|
+
// await axios.post('rs/logic/recordImport',
|
|
1477
|
+
// data).then((res)=>{
|
|
1478
|
+
// if(res.data){
|
|
1479
|
+
// this.iswork=false;
|
|
1480
|
+
// this.load();
|
|
1481
|
+
// this.closeFile();
|
|
1482
|
+
// let mm = '';
|
|
1483
|
+
// for(var i=0;i<res.data.msg.length;i++){
|
|
1484
|
+
// mm+= `${res.data.msg[i].msg}`
|
|
1485
|
+
// }
|
|
1486
|
+
// let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm}`
|
|
1487
|
+
// this.$showMessage(msg)
|
|
1488
|
+
// }
|
|
1489
|
+
// })
|
|
1490
|
+
let http = new HttpResetClass()
|
|
1491
|
+
await http.load('POST', 'rs/logic/recordImport', data, {
|
|
1492
|
+
resolveMsg: null,
|
|
1493
|
+
rejectMsg: '导入失败'
|
|
1494
|
+
}).then((res) => {
|
|
1495
|
+
if(res.data){
|
|
1496
|
+
this.iswork=false;
|
|
1497
|
+
this.load();
|
|
1498
|
+
this.closeFile();
|
|
1499
|
+
let mm = '';
|
|
1500
|
+
for(let i = 0; i < res.data.msg.length; i++){
|
|
1501
|
+
mm+= `${res.data.msg[i].msg}`
|
|
1502
|
+
}
|
|
1503
|
+
let worry = '';
|
|
1504
|
+
for(let j = 0; j < res.data.worry.length; j++){
|
|
1505
|
+
worry += `${res.data.worry[j].msg}`
|
|
1506
|
+
}
|
|
1507
|
+
let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm},提醒:${worry}`
|
|
1508
|
+
if (res.data.code == 500) {
|
|
1509
|
+
this.iswork=false;
|
|
1510
|
+
msg = res.data.msg
|
|
1511
|
+
}
|
|
1512
|
+
console.log("返回的数据:" + JSON.stringify(res.data))
|
|
1513
|
+
this.$showMessage(msg)
|
|
1514
|
+
}
|
|
1515
|
+
})
|
|
1516
|
+
// }catch(e){
|
|
1517
|
+
//
|
|
1518
|
+
// this.$showAlert('导入出错,请检查导入文件模板格式!','danger',2000);
|
|
1519
|
+
// }
|
|
1520
|
+
}
|
|
1521
|
+
// 表信息
|
|
1522
|
+
if (this.showInfo) {
|
|
1523
|
+
this.iswork = true;
|
|
1524
|
+
//表信息导入
|
|
1525
|
+
let data = {
|
|
1526
|
+
tablename: 't_standing_book',
|
|
1527
|
+
filepath: res.f_downloadpath,
|
|
1528
|
+
f_process_id: this.selectdata.f_process_id,
|
|
1529
|
+
f_key: this.$login.f.f_orgids,
|
|
1530
|
+
f_operator: this.$login.f.name,
|
|
1531
|
+
f_orgid: this.$login.f.orgid,
|
|
1532
|
+
f_operatorid:this.$login.f.id,
|
|
1533
|
+
f_orgname:this.$login.f.orgs,
|
|
1534
|
+
f_depid: this.$login.f.depids,
|
|
1535
|
+
f_depname: this.$login.f.deps,
|
|
1536
|
+
userinfo_array: this.userinfo_array
|
|
1537
|
+
};
|
|
1538
|
+
console.log('即将转发的数据',data);
|
|
1539
|
+
let http = new HttpResetClass()
|
|
1540
|
+
await http.load('POST', 'rs/logic/incrementImport', data, {
|
|
1541
|
+
resolveMsg: null,
|
|
1542
|
+
rejectMsg: '导入失败'
|
|
1543
|
+
}).then((res) => {
|
|
1544
|
+
if(res.data){
|
|
1545
|
+
this.iswork=false;
|
|
1546
|
+
this.load();
|
|
1547
|
+
this.closeFile();
|
|
1548
|
+
let mm = '';
|
|
1549
|
+
for(var i=0;i<res.data.msg.length;i++){
|
|
1550
|
+
mm+= `${res.data.msg[i].msg}`
|
|
1551
|
+
}
|
|
1552
|
+
let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm}`
|
|
1553
|
+
if (res.data.code == 500) {
|
|
1554
|
+
this.iswork=false;
|
|
1555
|
+
msg = res.data.msg
|
|
1556
|
+
}
|
|
1557
|
+
console.log("返回的数据:" + JSON.stringify(res.data))
|
|
1558
|
+
this.$showMessage(msg)
|
|
1559
|
+
}
|
|
1560
|
+
})
|
|
1561
|
+
// try{
|
|
1562
|
+
// await axios.post('rs/logic/incrementImport',
|
|
1563
|
+
// data).then((res)=>{
|
|
1564
|
+
// if(res.data){
|
|
1565
|
+
// this.iswork=false;
|
|
1566
|
+
// this.load();
|
|
1567
|
+
// this.closeFile1();
|
|
1568
|
+
// let mm = '';
|
|
1569
|
+
// for(var i=0;i<res.data.msg.length;i++){
|
|
1570
|
+
// mm+= `${res.data.msg[i].msg}`
|
|
1571
|
+
// }
|
|
1572
|
+
// let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm}`
|
|
1573
|
+
// this.$showMessage(msg)
|
|
1574
|
+
// }
|
|
1575
|
+
// })
|
|
1576
|
+
// }catch(e){
|
|
1577
|
+
// this.iswork=false;
|
|
1578
|
+
// this.$showAlert('导入出错,请检查导入文件模板格式!','danger',2000);
|
|
1579
|
+
// }
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
</script>
|
|
1585
|
+
<style>
|
|
1586
|
+
.recordTable table tr th {
|
|
1587
|
+
font-weight: bold;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
.recordTable table tr:hover {
|
|
1591
|
+
background-color: rgb(230, 230, 230);
|
|
1592
|
+
}
|
|
1593
|
+
</style>
|