apply-clients 3.4.2-FuGu-26 → 3.4.2-FuGu-27
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
CHANGED
|
@@ -1,461 +1,463 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<list :model="model" partial='list'>
|
|
4
|
-
<div partial class="auto app-text panel">
|
|
5
|
-
<div class="panel-body panel-self">
|
|
6
|
-
<div class="row">
|
|
7
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户编号</b></p>
|
|
8
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_userinfo_code }}</p>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="row">
|
|
11
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户名称</b></p>
|
|
12
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_name }}</p>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="row">
|
|
15
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户电话</b></p>
|
|
16
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_phone }}</p>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="row">
|
|
19
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">地址信息</b></p>
|
|
20
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_address }}</p>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="row text-right">
|
|
23
|
-
<button class="btn btn-info"
|
|
24
|
-
:disabled="(row.f_cumulative_payment_money < $parent.$parent.selectdata.f_price && ($parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建')) || $parent.$parent.mark === 1"
|
|
25
|
-
@click.prevent="$parent.$parent.showUserFileModal(row)">
|
|
26
|
-
{{row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
27
|
-
</button>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</list>
|
|
32
|
-
|
|
33
|
-
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
34
|
-
<header slot="modal-header" class="modal-header">
|
|
35
|
-
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
36
|
-
<h4 class="modal-title">安装明细</h4>
|
|
37
|
-
</header>
|
|
38
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
39
|
-
<div class="form-group row vertical-center">
|
|
40
|
-
<label class="col-xs-4 control-label">地址信息:</label>
|
|
41
|
-
<div class="col-xs-8">
|
|
42
|
-
<input class="form-control input_view" style=""
|
|
43
|
-
v-model="useradders.f_address"
|
|
44
|
-
:value="useradders.f_address"
|
|
45
|
-
:readonly="true"/>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-xs-12 panel panel-info">
|
|
50
|
-
<div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
|
|
51
|
-
<div class="form-group row vertical-center" :class="item.f_gasbrand_id ? '':'has-error'">
|
|
52
|
-
<label class="col-xs-4 control-label">气表品牌:</label>
|
|
53
|
-
<div class="col-xs-8">
|
|
54
|
-
<input-select
|
|
55
|
-
class="select select_list"
|
|
56
|
-
:value.sync="item.gasbrand"
|
|
57
|
-
v-model="item.gasbrand"
|
|
58
|
-
:options="meterbrands"
|
|
59
|
-
@change="gasbrandChange(i)"
|
|
60
|
-
:valueSingle="true"></input-select>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
<div class="form-group row vertical-center" :class="item.f_gasmodel_id ? '':'has-error'">
|
|
64
|
-
<label class="col-xs-4 control-label">气表型号:</label>
|
|
65
|
-
<div class="col-xs-8">
|
|
66
|
-
<input-select
|
|
67
|
-
class="select select_list"
|
|
68
|
-
:value.sync="item.gasmodel"
|
|
69
|
-
v-model="item.gasmodel"
|
|
70
|
-
:options="item.gasbrand.gasmodel"
|
|
71
|
-
@change="gasmodelChange(i)"
|
|
72
|
-
:valueSingle="true"></input-select>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="form-group row vertical-center" :class="item.f_meternumber ? '':'has-error'">
|
|
76
|
-
<label class="col-xs-4 control-label">表  号:</label>
|
|
77
|
-
<div class="col-xs-8">
|
|
78
|
-
<input class="form-control input_view" style=""
|
|
79
|
-
placeholder="表号"
|
|
80
|
-
v-model="item.f_meternumber"
|
|
81
|
-
:value="item.f_meternumber"
|
|
82
|
-
@change="meternumberValidate(i)"
|
|
83
|
-
:readonly="false"/>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
<div class="form-group row vertical-center">
|
|
87
|
-
<label class="col-xs-4 control-label ">表 封 号:</label>
|
|
88
|
-
<div class="col-xs-8">
|
|
89
|
-
<input class="form-control input_view" style=""
|
|
90
|
-
placeholder="表封号"
|
|
91
|
-
v-model="item.f_metertitles"
|
|
92
|
-
:value="item.f_metertitles"
|
|
93
|
-
:readonly="false"/>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
<div class="form-group row vertical-center">
|
|
97
|
-
<label class="col-xs-4 control-label">表 读 数:</label>
|
|
98
|
-
<div class="col-xs-8">
|
|
99
|
-
<input class="form-control input_view" style=""
|
|
100
|
-
type="number"
|
|
101
|
-
placeholder="表读数"
|
|
102
|
-
v-model="item.f_meter_base"
|
|
103
|
-
:value="item.f_meter_base"
|
|
104
|
-
:readonly="false"/>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
<div class="form-group row vertical-center">
|
|
108
|
-
<label class="col-xs-4 control-label">初始底数:</label>
|
|
109
|
-
<div class="col-xs-8">
|
|
110
|
-
<input class="form-control input_view" style=""
|
|
111
|
-
type="number"
|
|
112
|
-
v-model="item.f_initial_base"
|
|
113
|
-
:value="item.f_initial_base"
|
|
114
|
-
placeholder="初始底数"
|
|
115
|
-
:readonly="false"/>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
<div class="form-group row vertical-center">
|
|
119
|
-
<label class="col-xs-4 control-label">表  向:</label>
|
|
120
|
-
<div class="col-xs-8">
|
|
121
|
-
<input-select
|
|
122
|
-
class="select select_list"
|
|
123
|
-
:value.sync="item.f_aroundmeter"
|
|
124
|
-
v-model="item.f_aroundmeter"
|
|
125
|
-
:options="aroundmeters"
|
|
126
|
-
:valueSingle="true"></input-select>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<div class="form-group row vertical-center">
|
|
130
|
-
<label class="col-xs-4 control-label">安装位置:</label>
|
|
131
|
-
<div class="col-xs-8">
|
|
132
|
-
<input-select
|
|
133
|
-
class="select select_list"
|
|
134
|
-
:value.sync="item.f_position"
|
|
135
|
-
v-model="item.f_position"
|
|
136
|
-
:options="positions"
|
|
137
|
-
:valueSingle="true"></input-select>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
<div class="form-group row vertical-center">
|
|
141
|
-
<label class="col-xs-4 control-label">安 装 人:</label>
|
|
142
|
-
<div class="col-xs-8">
|
|
143
|
-
<input
|
|
144
|
-
class="form-control input_view"
|
|
145
|
-
:value.sync="installperson(item.f_install_person)"
|
|
146
|
-
v-model="item.f_install_person"
|
|
147
|
-
placeholder="安装人"
|
|
148
|
-
readonly></input>
|
|
149
|
-
<!-- <input-select-->
|
|
150
|
-
<!-- class="select select_list"-->
|
|
151
|
-
<!-- :value.sync="item.f_install_person"-->
|
|
152
|
-
<!-- v-model="item.f_install_person"-->
|
|
153
|
-
<!-- :options="installperson"-->
|
|
154
|
-
<!-- :disable="mark === 1"-->
|
|
155
|
-
<!-- :valueSingle="true"></input-select>-->
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
<div class="form-group row vertical-center">
|
|
159
|
-
<label class="col-xs-4 control-label">安装日期:</label>
|
|
160
|
-
<div class="col-xs-8">
|
|
161
|
-
<datepicker
|
|
162
|
-
placeholder="安装日期"
|
|
163
|
-
:value.sync="item.f_install_date"
|
|
164
|
-
v-model="item.f_install_date"
|
|
165
|
-
format="yyyy-MM-dd HH:mm:ss"
|
|
166
|
-
:show-reset-button="reset">
|
|
167
|
-
</datepicker>
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
|
|
172
|
-
</article>
|
|
173
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
174
|
-
<!-- 去除一户多表 -->
|
|
175
|
-
<button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
|
|
176
|
-
<button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
|
|
177
|
-
</footer>
|
|
178
|
-
</modal>
|
|
179
|
-
</div>
|
|
180
|
-
|
|
181
|
-
</template>
|
|
182
|
-
<script>
|
|
183
|
-
import Vue from 'vue'
|
|
184
|
-
import {PagedList} from 'vue-client'
|
|
185
|
-
import {HttpResetClass} from 'vue-client'
|
|
186
|
-
import {isEmpty} from '../../../Util'
|
|
187
|
-
|
|
188
|
-
export default {
|
|
189
|
-
title: '安装明细',
|
|
190
|
-
props: {
|
|
191
|
-
selectdata: {
|
|
192
|
-
type: Object
|
|
193
|
-
},
|
|
194
|
-
mark: {
|
|
195
|
-
type: Number,
|
|
196
|
-
default: 0
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
data () {
|
|
200
|
-
return {
|
|
201
|
-
showUserFile: false,
|
|
202
|
-
model: {
|
|
203
|
-
rows: null
|
|
204
|
-
},
|
|
205
|
-
meterbrands: [], // 气表品牌
|
|
206
|
-
useradders: null,
|
|
207
|
-
userinfo: {}
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
ready () {
|
|
211
|
-
this.search()
|
|
212
|
-
this.getMeterbrands()
|
|
213
|
-
},
|
|
214
|
-
methods: {
|
|
215
|
-
// 保存档案
|
|
216
|
-
async saveUserFile() {
|
|
217
|
-
if (this.userinfo.userfiles.length > 1) {
|
|
218
|
-
this.$showMessage('该地址下已有表具信息,暂不支持一户多表!!!')
|
|
219
|
-
return
|
|
220
|
-
}
|
|
221
|
-
// 检查必填项
|
|
222
|
-
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
223
|
-
let userfile = this.userinfo.userfiles[i]
|
|
224
|
-
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
225
|
-
this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
|
|
226
|
-
return
|
|
227
|
-
}
|
|
228
|
-
if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
|
|
229
|
-
this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
|
|
230
|
-
return
|
|
231
|
-
}
|
|
232
|
-
if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
|
|
233
|
-
this.$showMessage(`表具${i+1}表号没有填写!!!`)
|
|
234
|
-
return
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
let data = {
|
|
238
|
-
// user: {"parentname":"客服中心","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"1552","name":"街道管理","templatename":"functionedit","id":"1551","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.17.21.82.1551","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"149","name":"小区管理","templatename":"functionedit","id":"148","position":"4","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.17.21.82.148","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"155","name":"地址管理","templatename":"functionedit","id":"154","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.17.21.82.154","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"83661","name":"档案信息","templatename":"functionedit","id":"83660","position":"10","fullname":"资源管理.功能模块.客服系统.档案管理.档案信息","fullid":"3.17.21.82.83660","tablename":"t_function","showmodel":"[\"右边\"]"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"397738","name":"预备户建档","templatename":"functionedit","id":"397737","position":"12","fullname":"资源管理.功能模块.客服系统.档案管理.预备户建档","fullid":"3.17.21.82.397737","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"user-files","hasright":true,"resourcetype":"function","parentid":"82","children":[],"selfid":"3","name":"用户档案","templatename":"functionedit","id":"2","position":"17","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.17.21.82.2","tablename":"t_function"}],"selfid":"83","name":"档案管理","templatename":"functionedit","id":"82","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.17.21.82","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/售气收费.png","hasright":true,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"charge-manage","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"173","name":"收费(综合)","templatename":"functionedit","id":"172","position":"1","fullname":"资源管理.功能模块.客服系统.售气收费.收费(综合)","fullid":"3.17.21.88.172","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"charge-manage-new","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"533134","name":"新版收费","templatename":"functionedit","id":"533133","position":"2","fullname":"资源管理.功能模块.客服系统.售气收费.新版收费","fullid":"3.17.21.88.533133","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"insurance-manage","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"586351","name":"保险收费","templatename":"functionedit","id":"586350","position":"3","fullname":"资源管理.功能模块.客服系统.售气收费.保险收费","fullid":"3.17.21.88.586350","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"售气收费","link":"meter-charge","hasright":true,"resourcetype":"function","parentid":"88","children":[],"selfid":"255341","name":"收费","templatename":"functionedit","id":"255340","position":"4","fullname":"资源管理.功能模块.客服系统.售气收费.收费","fullid":"3.17.21.88.255340","tablename":"t_function"}],"selfid":"89","name":"售气收费","templatename":"functionedit","id":"88","position":"3","fullname":"资源管理.功能模块.客服系统.售气收费","fullid":"3.17.21.88","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/综合查询.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"综合业务","link":"gas-brand-manage","hasright":true,"resourcetype":"function","parentid":"94","f_parentname":"综合业务","children":[],"selfid":"185","name":"气表管理","templatename":"functionedit","id":"184","position":"2","fullname":"资源管理.功能模块.客服系统.综合业务.气表管理","fullid":"3.17.21.94.184","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"综合业务","link":"param-manage","hasright":true,"resourcetype":"function","parentid":"94","f_parentname":"综合业务","children":[],"selfid":"191","name":"参数管理","templatename":"functionedit","id":"190","position":"3","fullname":"资源管理.功能模块.客服系统.综合业务.参数管理","fullid":"3.17.21.94.190","tablename":"t_function","showmodel":"右边"}],"selfid":"95","name":"综合业务","templatename":"functionedit","id":"94","position":"4","fullname":"资源管理.功能模块.客服系统.综合业务","fullid":"3.17.21.94","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319029","name":"报建业务","templatename":"functionedit","id":"319028","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.报建业务","fullid":"3.17.21.195729.319028","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319035","name":"报建流程","templatename":"functionedit","id":"319034","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.报建流程","fullid":"3.17.21.195729.319034","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319041","name":"流程监控","templatename":"functionedit","id":"319040","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.17.21.195729.319040","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319047","name":"收费明细","templatename":"functionedit","id":"319046","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.17.21.195729.319046","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"apply-charge-report","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"198758","name":"收费报表","templatename":"functionedit","id":"198757","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.收费报表","fullid":"3.17.21.195729.198757","tablename":"t_function"}],"selfid":"195730","name":"报建业务","templatename":"functionedit","id":"195729","position":"21","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.17.21.195729","tablename":"t_function","showmodel":"右边"}],"qrcode":"/rs/user/getQRcode?QRCODE=8888","rolesnames":"营业厅报装,市场部报装,工程部报装,财务部报装,客服中心报装","roles":"99232,174614,174620,174626,174632","f_sex":"男","f_icon":"tree_user","fullnames":"武安明星.客服中心.bjcs","dir":"mingxing","accesstime":"1626420492744","userid":"8888","parentid":"174608","fullids":"559465.174608.17713.","number":"55665","selfid":"17714","templatename":"useredit","logindate":"2021-03-09 11:17:36.727","id":"17713","state":"在职","tablename":"t_user","deptype":"部门","depids":"174608","loginid":"11","imgid":null,"initpassword":"1","rolestr":"营业厅报装,市场部报装,工程部报装,财务部报装,客服中心报装","deps":"客服中心","loginnum":"0","resourcetype":"user","orgid":"559465","f_department_name":"客服中心","ename":"bjcs","deleted":"false","entitytype":"t_user","loginip":"192.168.120.141","name":"bjcs","position":"1","orgs":"武安明星","f_role_name":"营业厅报装 市场部报装 工程部报装 财务部报装 客服中心报装 ","f_allArea":[],"f_gasman":[],"lics":[]},
|
|
239
|
-
user: Vue.user,
|
|
240
|
-
useradders: this.useradders,
|
|
241
|
-
userinfo: this.userinfo,
|
|
242
|
-
selectdata: this.selectdata
|
|
243
|
-
}
|
|
244
|
-
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/addInstallationDetails`, {data:data}, {
|
|
245
|
-
resolveMsg: null,
|
|
246
|
-
rejectMsg: '表具添加失败!!!'
|
|
247
|
-
})
|
|
248
|
-
|
|
249
|
-
this.
|
|
250
|
-
},
|
|
251
|
-
// 检查表号是否存在
|
|
252
|
-
async meternumberValidate(i) {
|
|
253
|
-
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
254
|
-
this.userinfo.userfiles[i].f_meternumber = ''
|
|
255
|
-
this.$showMessage('请先选择气表品牌!!!')
|
|
256
|
-
return
|
|
257
|
-
}
|
|
258
|
-
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
259
|
-
let data = {
|
|
260
|
-
f_meternumber: this.userinfo.userfiles[i].f_meternumber,
|
|
261
|
-
f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
|
|
262
|
-
}
|
|
263
|
-
if (this.userinfo.userfiles[i].f_userfiles_id) {
|
|
264
|
-
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
265
|
-
}
|
|
266
|
-
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
|
|
267
|
-
resolveMsg: null,
|
|
268
|
-
rejectMsg: '表号验证失败!!'
|
|
269
|
-
})
|
|
270
|
-
if (res.data) {
|
|
271
|
-
this.userinfo.userfiles[i].f_meternumber = ''
|
|
272
|
-
this.$showMessage('表号已存在!!')
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
// 选择气表型号
|
|
277
|
-
gasmodelChange(i) {
|
|
278
|
-
if (this.userinfo.userfiles[i].gasmodel) {
|
|
279
|
-
this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
// 选择气表品牌
|
|
283
|
-
gasbrandChange(i) {
|
|
284
|
-
// 清空已保存的气表型号
|
|
285
|
-
this.userinfo.userfiles[i].f_gasmodel_id = null
|
|
286
|
-
this.userinfo.userfiles[i].gasmodel = null
|
|
287
|
-
if (this.userinfo.userfiles[i].gasbrand) {
|
|
288
|
-
// 气表品牌id
|
|
289
|
-
this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
|
|
290
|
-
// 气表分类
|
|
291
|
-
this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
// 追加表具
|
|
295
|
-
addUserFile() {
|
|
296
|
-
this.userinfo.userfiles.push({})
|
|
297
|
-
},
|
|
298
|
-
// 打开安装明细
|
|
299
|
-
async showUserFileModal (row) {
|
|
300
|
-
this.useradders = row
|
|
301
|
-
|
|
302
|
-
let http = new HttpResetClass()
|
|
303
|
-
let data = {
|
|
304
|
-
condition: `f_userinfo_id='${row.f_userinfo_id}'`
|
|
305
|
-
}
|
|
306
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfoAndUserfiles`, {data:data}, {
|
|
307
|
-
resolveMsg: null,
|
|
308
|
-
rejectMsg: null
|
|
309
|
-
})
|
|
310
|
-
|
|
311
|
-
this.userinfo = res.data
|
|
312
|
-
|
|
313
|
-
// 已有表具的 气表信息补充
|
|
314
|
-
for (
|
|
315
|
-
for (const item of this.meterbrands) {
|
|
316
|
-
if (item.value.id ===
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
//
|
|
396
|
-
//
|
|
397
|
-
//
|
|
398
|
-
//
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<list :model="model" partial='list'>
|
|
4
|
+
<div partial class="auto app-text panel">
|
|
5
|
+
<div class="panel-body panel-self">
|
|
6
|
+
<div class="row">
|
|
7
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户编号</b></p>
|
|
8
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_userinfo_code }}</p>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="row">
|
|
11
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户名称</b></p>
|
|
12
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_name }}</p>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="row">
|
|
15
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户电话</b></p>
|
|
16
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_phone }}</p>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="row">
|
|
19
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">地址信息</b></p>
|
|
20
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_address }}</p>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="row text-right">
|
|
23
|
+
<button class="btn btn-info"
|
|
24
|
+
:disabled="(row.f_cumulative_payment_money < $parent.$parent.selectdata.f_price && ($parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建')) || $parent.$parent.mark === 1"
|
|
25
|
+
@click.prevent="$parent.$parent.showUserFileModal(row)">
|
|
26
|
+
{{row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
27
|
+
</button>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</list>
|
|
32
|
+
|
|
33
|
+
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
34
|
+
<header slot="modal-header" class="modal-header">
|
|
35
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
36
|
+
<h4 class="modal-title">安装明细</h4>
|
|
37
|
+
</header>
|
|
38
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
39
|
+
<div class="form-group row vertical-center">
|
|
40
|
+
<label class="col-xs-4 control-label">地址信息:</label>
|
|
41
|
+
<div class="col-xs-8">
|
|
42
|
+
<input class="form-control input_view" style=""
|
|
43
|
+
v-model="useradders.f_address"
|
|
44
|
+
:value="useradders.f_address"
|
|
45
|
+
:readonly="true"/>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-xs-12 panel panel-info">
|
|
50
|
+
<div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
|
|
51
|
+
<div class="form-group row vertical-center" :class="item.f_gasbrand_id ? '':'has-error'">
|
|
52
|
+
<label class="col-xs-4 control-label">气表品牌:</label>
|
|
53
|
+
<div class="col-xs-8">
|
|
54
|
+
<input-select
|
|
55
|
+
class="select select_list"
|
|
56
|
+
:value.sync="item.gasbrand"
|
|
57
|
+
v-model="item.gasbrand"
|
|
58
|
+
:options="meterbrands"
|
|
59
|
+
@change="gasbrandChange(i)"
|
|
60
|
+
:valueSingle="true"></input-select>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="form-group row vertical-center" :class="item.f_gasmodel_id ? '':'has-error'">
|
|
64
|
+
<label class="col-xs-4 control-label">气表型号:</label>
|
|
65
|
+
<div class="col-xs-8">
|
|
66
|
+
<input-select
|
|
67
|
+
class="select select_list"
|
|
68
|
+
:value.sync="item.gasmodel"
|
|
69
|
+
v-model="item.gasmodel"
|
|
70
|
+
:options="item.gasbrand.gasmodel"
|
|
71
|
+
@change="gasmodelChange(i)"
|
|
72
|
+
:valueSingle="true"></input-select>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="form-group row vertical-center" :class="item.f_meternumber ? '':'has-error'">
|
|
76
|
+
<label class="col-xs-4 control-label">表  号:</label>
|
|
77
|
+
<div class="col-xs-8">
|
|
78
|
+
<input class="form-control input_view" style=""
|
|
79
|
+
placeholder="表号"
|
|
80
|
+
v-model="item.f_meternumber"
|
|
81
|
+
:value="item.f_meternumber"
|
|
82
|
+
@change="meternumberValidate(i)"
|
|
83
|
+
:readonly="false"/>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="form-group row vertical-center">
|
|
87
|
+
<label class="col-xs-4 control-label ">表 封 号:</label>
|
|
88
|
+
<div class="col-xs-8">
|
|
89
|
+
<input class="form-control input_view" style=""
|
|
90
|
+
placeholder="表封号"
|
|
91
|
+
v-model="item.f_metertitles"
|
|
92
|
+
:value="item.f_metertitles"
|
|
93
|
+
:readonly="false"/>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="form-group row vertical-center">
|
|
97
|
+
<label class="col-xs-4 control-label">表 读 数:</label>
|
|
98
|
+
<div class="col-xs-8">
|
|
99
|
+
<input class="form-control input_view" style=""
|
|
100
|
+
type="number"
|
|
101
|
+
placeholder="表读数"
|
|
102
|
+
v-model="item.f_meter_base"
|
|
103
|
+
:value="item.f_meter_base"
|
|
104
|
+
:readonly="false"/>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="form-group row vertical-center">
|
|
108
|
+
<label class="col-xs-4 control-label">初始底数:</label>
|
|
109
|
+
<div class="col-xs-8">
|
|
110
|
+
<input class="form-control input_view" style=""
|
|
111
|
+
type="number"
|
|
112
|
+
v-model="item.f_initial_base"
|
|
113
|
+
:value="item.f_initial_base"
|
|
114
|
+
placeholder="初始底数"
|
|
115
|
+
:readonly="false"/>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="form-group row vertical-center">
|
|
119
|
+
<label class="col-xs-4 control-label">表  向:</label>
|
|
120
|
+
<div class="col-xs-8">
|
|
121
|
+
<input-select
|
|
122
|
+
class="select select_list"
|
|
123
|
+
:value.sync="item.f_aroundmeter"
|
|
124
|
+
v-model="item.f_aroundmeter"
|
|
125
|
+
:options="aroundmeters"
|
|
126
|
+
:valueSingle="true"></input-select>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="form-group row vertical-center">
|
|
130
|
+
<label class="col-xs-4 control-label">安装位置:</label>
|
|
131
|
+
<div class="col-xs-8">
|
|
132
|
+
<input-select
|
|
133
|
+
class="select select_list"
|
|
134
|
+
:value.sync="item.f_position"
|
|
135
|
+
v-model="item.f_position"
|
|
136
|
+
:options="positions"
|
|
137
|
+
:valueSingle="true"></input-select>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="form-group row vertical-center">
|
|
141
|
+
<label class="col-xs-4 control-label">安 装 人:</label>
|
|
142
|
+
<div class="col-xs-8">
|
|
143
|
+
<input
|
|
144
|
+
class="form-control input_view"
|
|
145
|
+
:value.sync="installperson(item.f_install_person)"
|
|
146
|
+
v-model="item.f_install_person"
|
|
147
|
+
placeholder="安装人"
|
|
148
|
+
readonly></input>
|
|
149
|
+
<!-- <input-select-->
|
|
150
|
+
<!-- class="select select_list"-->
|
|
151
|
+
<!-- :value.sync="item.f_install_person"-->
|
|
152
|
+
<!-- v-model="item.f_install_person"-->
|
|
153
|
+
<!-- :options="installperson"-->
|
|
154
|
+
<!-- :disable="mark === 1"-->
|
|
155
|
+
<!-- :valueSingle="true"></input-select>-->
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="form-group row vertical-center">
|
|
159
|
+
<label class="col-xs-4 control-label">安装日期:</label>
|
|
160
|
+
<div class="col-xs-8">
|
|
161
|
+
<datepicker
|
|
162
|
+
placeholder="安装日期"
|
|
163
|
+
:value.sync="item.f_install_date"
|
|
164
|
+
v-model="item.f_install_date"
|
|
165
|
+
format="yyyy-MM-dd HH:mm:ss"
|
|
166
|
+
:show-reset-button="reset">
|
|
167
|
+
</datepicker>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
</article>
|
|
173
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
174
|
+
<!-- 去除一户多表 -->
|
|
175
|
+
<button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
|
|
176
|
+
<button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
|
|
177
|
+
</footer>
|
|
178
|
+
</modal>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
</template>
|
|
182
|
+
<script>
|
|
183
|
+
import Vue from 'vue'
|
|
184
|
+
import {PagedList} from 'vue-client'
|
|
185
|
+
import {HttpResetClass} from 'vue-client'
|
|
186
|
+
import {isEmpty} from '../../../Util'
|
|
187
|
+
|
|
188
|
+
export default {
|
|
189
|
+
title: '安装明细',
|
|
190
|
+
props: {
|
|
191
|
+
selectdata: {
|
|
192
|
+
type: Object
|
|
193
|
+
},
|
|
194
|
+
mark: {
|
|
195
|
+
type: Number,
|
|
196
|
+
default: 0
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
data () {
|
|
200
|
+
return {
|
|
201
|
+
showUserFile: false,
|
|
202
|
+
model: {
|
|
203
|
+
rows: null
|
|
204
|
+
},
|
|
205
|
+
meterbrands: [], // 气表品牌
|
|
206
|
+
useradders: null,
|
|
207
|
+
userinfo: {}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
ready () {
|
|
211
|
+
this.search()
|
|
212
|
+
this.getMeterbrands()
|
|
213
|
+
},
|
|
214
|
+
methods: {
|
|
215
|
+
// 保存档案
|
|
216
|
+
async saveUserFile() {
|
|
217
|
+
if (this.userinfo.userfiles.length > 1) {
|
|
218
|
+
this.$showMessage('该地址下已有表具信息,暂不支持一户多表!!!')
|
|
219
|
+
return
|
|
220
|
+
}
|
|
221
|
+
// 检查必填项
|
|
222
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
223
|
+
let userfile = this.userinfo.userfiles[i]
|
|
224
|
+
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
225
|
+
this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
|
|
226
|
+
return
|
|
227
|
+
}
|
|
228
|
+
if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
|
|
229
|
+
this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
|
|
230
|
+
return
|
|
231
|
+
}
|
|
232
|
+
if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
|
|
233
|
+
this.$showMessage(`表具${i+1}表号没有填写!!!`)
|
|
234
|
+
return
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
let data = {
|
|
238
|
+
// user: {"parentname":"客服中心","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"1552","name":"街道管理","templatename":"functionedit","id":"1551","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.17.21.82.1551","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"149","name":"小区管理","templatename":"functionedit","id":"148","position":"4","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.17.21.82.148","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"155","name":"地址管理","templatename":"functionedit","id":"154","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.17.21.82.154","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"83661","name":"档案信息","templatename":"functionedit","id":"83660","position":"10","fullname":"资源管理.功能模块.客服系统.档案管理.档案信息","fullid":"3.17.21.82.83660","tablename":"t_function","showmodel":"[\"右边\"]"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"397738","name":"预备户建档","templatename":"functionedit","id":"397737","position":"12","fullname":"资源管理.功能模块.客服系统.档案管理.预备户建档","fullid":"3.17.21.82.397737","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"user-files","hasright":true,"resourcetype":"function","parentid":"82","children":[],"selfid":"3","name":"用户档案","templatename":"functionedit","id":"2","position":"17","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.17.21.82.2","tablename":"t_function"}],"selfid":"83","name":"档案管理","templatename":"functionedit","id":"82","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.17.21.82","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/售气收费.png","hasright":true,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"charge-manage","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"173","name":"收费(综合)","templatename":"functionedit","id":"172","position":"1","fullname":"资源管理.功能模块.客服系统.售气收费.收费(综合)","fullid":"3.17.21.88.172","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"charge-manage-new","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"533134","name":"新版收费","templatename":"functionedit","id":"533133","position":"2","fullname":"资源管理.功能模块.客服系统.售气收费.新版收费","fullid":"3.17.21.88.533133","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"insurance-manage","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"586351","name":"保险收费","templatename":"functionedit","id":"586350","position":"3","fullname":"资源管理.功能模块.客服系统.售气收费.保险收费","fullid":"3.17.21.88.586350","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"售气收费","link":"meter-charge","hasright":true,"resourcetype":"function","parentid":"88","children":[],"selfid":"255341","name":"收费","templatename":"functionedit","id":"255340","position":"4","fullname":"资源管理.功能模块.客服系统.售气收费.收费","fullid":"3.17.21.88.255340","tablename":"t_function"}],"selfid":"89","name":"售气收费","templatename":"functionedit","id":"88","position":"3","fullname":"资源管理.功能模块.客服系统.售气收费","fullid":"3.17.21.88","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/综合查询.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"综合业务","link":"gas-brand-manage","hasright":true,"resourcetype":"function","parentid":"94","f_parentname":"综合业务","children":[],"selfid":"185","name":"气表管理","templatename":"functionedit","id":"184","position":"2","fullname":"资源管理.功能模块.客服系统.综合业务.气表管理","fullid":"3.17.21.94.184","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"综合业务","link":"param-manage","hasright":true,"resourcetype":"function","parentid":"94","f_parentname":"综合业务","children":[],"selfid":"191","name":"参数管理","templatename":"functionedit","id":"190","position":"3","fullname":"资源管理.功能模块.客服系统.综合业务.参数管理","fullid":"3.17.21.94.190","tablename":"t_function","showmodel":"右边"}],"selfid":"95","name":"综合业务","templatename":"functionedit","id":"94","position":"4","fullname":"资源管理.功能模块.客服系统.综合业务","fullid":"3.17.21.94","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319029","name":"报建业务","templatename":"functionedit","id":"319028","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.报建业务","fullid":"3.17.21.195729.319028","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319035","name":"报建流程","templatename":"functionedit","id":"319034","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.报建流程","fullid":"3.17.21.195729.319034","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319041","name":"流程监控","templatename":"functionedit","id":"319040","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.17.21.195729.319040","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319047","name":"收费明细","templatename":"functionedit","id":"319046","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.17.21.195729.319046","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"apply-charge-report","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"198758","name":"收费报表","templatename":"functionedit","id":"198757","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.收费报表","fullid":"3.17.21.195729.198757","tablename":"t_function"}],"selfid":"195730","name":"报建业务","templatename":"functionedit","id":"195729","position":"21","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.17.21.195729","tablename":"t_function","showmodel":"右边"}],"qrcode":"/rs/user/getQRcode?QRCODE=8888","rolesnames":"营业厅报装,市场部报装,工程部报装,财务部报装,客服中心报装","roles":"99232,174614,174620,174626,174632","f_sex":"男","f_icon":"tree_user","fullnames":"武安明星.客服中心.bjcs","dir":"mingxing","accesstime":"1626420492744","userid":"8888","parentid":"174608","fullids":"559465.174608.17713.","number":"55665","selfid":"17714","templatename":"useredit","logindate":"2021-03-09 11:17:36.727","id":"17713","state":"在职","tablename":"t_user","deptype":"部门","depids":"174608","loginid":"11","imgid":null,"initpassword":"1","rolestr":"营业厅报装,市场部报装,工程部报装,财务部报装,客服中心报装","deps":"客服中心","loginnum":"0","resourcetype":"user","orgid":"559465","f_department_name":"客服中心","ename":"bjcs","deleted":"false","entitytype":"t_user","loginip":"192.168.120.141","name":"bjcs","position":"1","orgs":"武安明星","f_role_name":"营业厅报装 市场部报装 工程部报装 财务部报装 客服中心报装 ","f_allArea":[],"f_gasman":[],"lics":[]},
|
|
239
|
+
user: Vue.user,
|
|
240
|
+
useradders: this.useradders,
|
|
241
|
+
userinfo: this.userinfo,
|
|
242
|
+
selectdata: this.selectdata
|
|
243
|
+
}
|
|
244
|
+
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/addInstallationDetails`, {data:data}, {
|
|
245
|
+
resolveMsg: null,
|
|
246
|
+
rejectMsg: '表具添加失败!!!'
|
|
247
|
+
})
|
|
248
|
+
|
|
249
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
250
|
+
},
|
|
251
|
+
// 检查表号是否存在
|
|
252
|
+
async meternumberValidate(i) {
|
|
253
|
+
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
254
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
255
|
+
this.$showMessage('请先选择气表品牌!!!')
|
|
256
|
+
return
|
|
257
|
+
}
|
|
258
|
+
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
259
|
+
let data = {
|
|
260
|
+
f_meternumber: this.userinfo.userfiles[i].f_meternumber,
|
|
261
|
+
f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
|
|
262
|
+
}
|
|
263
|
+
if (this.userinfo.userfiles[i].f_userfiles_id) {
|
|
264
|
+
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
265
|
+
}
|
|
266
|
+
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
|
|
267
|
+
resolveMsg: null,
|
|
268
|
+
rejectMsg: '表号验证失败!!'
|
|
269
|
+
})
|
|
270
|
+
if (res.data) {
|
|
271
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
272
|
+
this.$showMessage('表号已存在!!')
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
// 选择气表型号
|
|
277
|
+
gasmodelChange(i) {
|
|
278
|
+
if (this.userinfo.userfiles[i].gasmodel) {
|
|
279
|
+
this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
// 选择气表品牌
|
|
283
|
+
gasbrandChange(i) {
|
|
284
|
+
// 清空已保存的气表型号
|
|
285
|
+
this.userinfo.userfiles[i].f_gasmodel_id = null
|
|
286
|
+
this.userinfo.userfiles[i].gasmodel = null
|
|
287
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
288
|
+
// 气表品牌id
|
|
289
|
+
this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
|
|
290
|
+
// 气表分类
|
|
291
|
+
this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
// 追加表具
|
|
295
|
+
addUserFile() {
|
|
296
|
+
this.userinfo.userfiles.push({})
|
|
297
|
+
},
|
|
298
|
+
// 打开安装明细
|
|
299
|
+
async showUserFileModal (row) {
|
|
300
|
+
this.useradders = row
|
|
301
|
+
|
|
302
|
+
let http = new HttpResetClass()
|
|
303
|
+
let data = {
|
|
304
|
+
condition: `f_userinfo_id='${row.f_userinfo_id}'`
|
|
305
|
+
}
|
|
306
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfoAndUserfiles`, {data:data}, {
|
|
307
|
+
resolveMsg: null,
|
|
308
|
+
rejectMsg: null
|
|
309
|
+
})
|
|
310
|
+
|
|
311
|
+
this.userinfo = res.data
|
|
312
|
+
|
|
313
|
+
// 已有表具的 气表信息补充
|
|
314
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
315
|
+
for (const item of this.meterbrands) {
|
|
316
|
+
if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
317
|
+
// this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
|
|
318
|
+
Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
322
|
+
for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
|
|
323
|
+
if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
|
|
324
|
+
// this.userinfo.userfiles[i].gasmodel = item.value
|
|
325
|
+
Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
this.showUserFile = true
|
|
332
|
+
},
|
|
333
|
+
// 获取气表品牌
|
|
334
|
+
async getMeterbrands() {
|
|
335
|
+
let http = new HttpResetClass()
|
|
336
|
+
let data = {
|
|
337
|
+
f_orgid: Vue.user.orgid
|
|
338
|
+
// f_filialeid: '559465'
|
|
339
|
+
}
|
|
340
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterbrands`, {data:data}, {
|
|
341
|
+
resolveMsg: null,
|
|
342
|
+
rejectMsg: null
|
|
343
|
+
})
|
|
344
|
+
this.meterbrands = res.data
|
|
345
|
+
},
|
|
346
|
+
// 查询
|
|
347
|
+
async search () {
|
|
348
|
+
let http = new HttpResetClass()
|
|
349
|
+
let data = {
|
|
350
|
+
condition: `1=1 and ua.f_process_id = '${this.selectdata.f_process_id}'`,
|
|
351
|
+
f_process_id: this.selectdata.f_process_id
|
|
352
|
+
}
|
|
353
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
|
|
354
|
+
resolveMsg: null,
|
|
355
|
+
rejectMsg: null
|
|
356
|
+
})
|
|
357
|
+
this.model.rows = res.data
|
|
358
|
+
if (this.selectdata.f_apply_type === '开发商集体报建' || this.selectdata.f_apply_type === '散户集体报建' || this.selectdata.f_apply_type === '煤改气报建') {
|
|
359
|
+
let f_installed_households = 0
|
|
360
|
+
for (const item of res.data) {
|
|
361
|
+
if (item.f_userfiles_num > 0) {
|
|
362
|
+
f_installed_households++
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
|
|
366
|
+
for (const item of this.selectdata.fields) {
|
|
367
|
+
if (item.label === '已安装户数') {
|
|
368
|
+
item.value = f_installed_households
|
|
369
|
+
}
|
|
370
|
+
if (item.label === '未安装户数') {
|
|
371
|
+
item.value = f_uninstalled_households
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
// 关闭安装明细
|
|
377
|
+
closeUserFile() {
|
|
378
|
+
this.showUserFile = false
|
|
379
|
+
this.useradders = null
|
|
380
|
+
this.userinfo = null
|
|
381
|
+
this.search()
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
events: {
|
|
385
|
+
},
|
|
386
|
+
computed: {
|
|
387
|
+
// 安装人
|
|
388
|
+
installperson() {
|
|
389
|
+
return function (f_install_person) {
|
|
390
|
+
if (isEmpty(f_install_person)) {
|
|
391
|
+
return Vue.user.name
|
|
392
|
+
}
|
|
393
|
+
return f_install_person
|
|
394
|
+
}
|
|
395
|
+
// return Vue.user.f_installman.map(item => {
|
|
396
|
+
// return {
|
|
397
|
+
// label: item.name,
|
|
398
|
+
// value: item.name
|
|
399
|
+
// }
|
|
400
|
+
// })
|
|
401
|
+
},
|
|
402
|
+
// 表向
|
|
403
|
+
aroundmeters() {
|
|
404
|
+
return this.$appdata.getParam('左右表')
|
|
405
|
+
},
|
|
406
|
+
// 安装位置
|
|
407
|
+
positions() {
|
|
408
|
+
return this.$appdata.getParam('安装位置')
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
watch: {
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
</script>
|
|
415
|
+
<style scoped>
|
|
416
|
+
label {
|
|
417
|
+
margin: 0px;
|
|
418
|
+
}
|
|
419
|
+
.vertical-center {
|
|
420
|
+
display: flex;
|
|
421
|
+
align-items: center;
|
|
422
|
+
text-align: center;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.control-label-justify {
|
|
426
|
+
display: inline-block;
|
|
427
|
+
vertical-align: top;
|
|
428
|
+
width: 100%;
|
|
429
|
+
text-align: justify;
|
|
430
|
+
font-family: PingFang-SC-Bold;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.control-label-justify::after {
|
|
434
|
+
content: "";
|
|
435
|
+
display: inline-block;
|
|
436
|
+
width: 100%;
|
|
437
|
+
overflow: hidden;
|
|
438
|
+
height: 0;
|
|
439
|
+
}
|
|
440
|
+
.app-text {
|
|
441
|
+
font-size: 12px;
|
|
442
|
+
}
|
|
443
|
+
.panel-self{
|
|
444
|
+
border-radius: 10px;
|
|
445
|
+
border:1px solid #499EDF;
|
|
446
|
+
background-color: #F8F8F8;
|
|
447
|
+
}
|
|
448
|
+
.font{
|
|
449
|
+
font: 15px PingFang-SC-Medium;
|
|
450
|
+
color: #666666;
|
|
451
|
+
}
|
|
452
|
+
.input-font{
|
|
453
|
+
font: 15px PingFang-SC-Medium;
|
|
454
|
+
color: #333333;
|
|
455
|
+
}
|
|
456
|
+
/*清除model中的浮动*/
|
|
457
|
+
.clearfix:after,.clearfix:before{
|
|
458
|
+
display: table;
|
|
459
|
+
}
|
|
460
|
+
.clearfix:after{
|
|
461
|
+
clear: both;
|
|
462
|
+
}
|
|
463
|
+
</style>
|