apply-clients 3.2.37 → 3.2.38-2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.2.37",
3
+ "version": "3.2.38-2",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,20 +1,20 @@
1
- <template>
2
- <div>
3
- <app-base class="bg">
4
- <div class='flex'>
5
- <article>
6
- <route :comp="{name: 'login'}"></route>
7
- </article>
8
- </div>
9
- </app-base>
10
- </div>
11
- </template>
12
-
13
- <script>
14
-
15
-
16
- export default {
17
-
18
-
19
- }
20
- </script>
1
+ <template>
2
+ <div>
3
+ <app-base class="bg">
4
+ <div class='flex'>
5
+ <article>
6
+ <route :comp="{name: 'login'}"></route>
7
+ </article>
8
+ </div>
9
+ </app-base>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+
15
+
16
+ export default {
17
+
18
+
19
+ }
20
+ </script>
@@ -1,456 +1,505 @@
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" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
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">{{ $parent.$parent.selectdata.f_price }}</p>
21
- </div>
22
- <div class="row" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
23
- <p class="col-xs-3 text-left font"><b class="control-label-justify">累计缴费</b></p>
24
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_cumulative_payment_money }}</p>
25
- </div>
26
- <div class="row">
27
- <p class="col-xs-3 text-left font"><b class="control-label-justify">地址信息</b></p>
28
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_address }}</p>
29
- </div>
30
- <div class="row text-right">
31
- <button class="btn btn-info"
32
- :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"
33
- @click.prevent="$parent.$parent.showUserFileModal(row)">
34
- {{row.f_userfiles_num > 0 ? '修正' : '添加'}}
35
- </button>
36
- </div>
37
- </div>
38
- </div>
39
- </list>
40
-
41
- <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
42
- <header slot="modal-header" class="modal-header">
43
- <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
44
- <h4 class="modal-title">安装明细</h4>
45
- </header>
46
- <article slot="modal-body" class="modal-body clearfix">
47
- <div class="form-group row vertical-center">
48
- <label class="col-xs-4 control-label">地址信息:</label>
49
- <div class="col-xs-8">
50
- <input class="form-control input_view" style=""
51
- v-model="useradders.f_address"
52
- :value="useradders.f_address"
53
- :readonly="true"/>
54
- </div>
55
- </div>
56
-
57
- <div v-for="(i, item) in userinfo.userfiles" class="form-group col-xs-12 panel panel-info">
58
- <div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
59
- <div class="form-group row vertical-center" :class="item.f_gasbrand_id ? '':'has-error'">
60
- <label class="col-xs-4 control-label">气表品牌:</label>
61
- <div class="col-xs-8">
62
- <input-select
63
- class="select select_list"
64
- :value.sync="item.gasbrand"
65
- v-model="item.gasbrand"
66
- :options="meterbrands"
67
- @change="gasbrandChange(i)"
68
- :valueSingle="true"></input-select>
69
- </div>
70
- </div>
71
- <div class="form-group row vertical-center" :class="item.f_gasmodel_id ? '':'has-error'">
72
- <label class="col-xs-4 control-label">气表型号:</label>
73
- <div class="col-xs-8">
74
- <input-select
75
- class="select select_list"
76
- :value.sync="item.gasmodel"
77
- v-model="item.gasmodel"
78
- :options="item.gasbrand.gasmodel"
79
- @change="gasmodelChange(i)"
80
- :valueSingle="true"></input-select>
81
- </div>
82
- </div>
83
- <div class="form-group row vertical-center" :class="item.f_meternumber ? '':'has-error'">
84
- <label class="col-xs-4 control-label">表&emsp;&emsp;号:</label>
85
- <div class="col-xs-8">
86
- <input class="form-control input_view" style=""
87
- placeholder="表号"
88
- v-model="item.f_meternumber"
89
- :value="item.f_meternumber"
90
- @change="meternumberValidate(i)"
91
- :readonly="false"/>
92
- </div>
93
- </div>
94
- <div class="form-group row vertical-center">
95
- <label class="col-xs-4 control-label ">表&ensp;封&ensp;号:</label>
96
- <div class="col-xs-8">
97
- <input class="form-control input_view" style=""
98
- placeholder="表封号"
99
- v-model="item.f_metertitles"
100
- :value="item.f_metertitles"
101
- :readonly="false"/>
102
- </div>
103
- </div>
104
- <div class="form-group row vertical-center">
105
- <label class="col-xs-4 control-label">表&ensp;读&ensp;数:</label>
106
- <div class="col-xs-8">
107
- <input class="form-control input_view" style=""
108
- type="number"
109
- placeholder="表读数"
110
- v-model="item.f_meter_base"
111
- :value="item.f_meter_base"
112
- :readonly="false"/>
113
- </div>
114
- </div>
115
- <div class="form-group row vertical-center">
116
- <label class="col-xs-4 control-label">初始底数:</label>
117
- <div class="col-xs-8">
118
- <input class="form-control input_view" style=""
119
- type="number"
120
- v-model="item.f_initial_base"
121
- :value="item.f_initial_base"
122
- placeholder="初始底数"
123
- :readonly="false"/>
124
- </div>
125
- </div>
126
- <div class="form-group row vertical-center">
127
- <label class="col-xs-4 control-label">表&emsp;&emsp;向:</label>
128
- <div class="col-xs-8">
129
- <input-select
130
- class="select select_list"
131
- :value.sync="item.f_aroundmeter"
132
- v-model="item.f_aroundmeter"
133
- :options="aroundmeters"
134
- :valueSingle="true"></input-select>
135
- </div>
136
- </div>
137
- <div class="form-group row vertical-center">
138
- <label class="col-xs-4 control-label">安装位置:</label>
139
- <div class="col-xs-8">
140
- <input-select
141
- class="select select_list"
142
- :value.sync="item.f_position"
143
- v-model="item.f_position"
144
- :options="positions"
145
- :valueSingle="true"></input-select>
146
- </div>
147
- </div>
148
- <div class="form-group row vertical-center">
149
- <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
150
- <div class="col-xs-8">
151
- <input-select
152
- class="select select_list"
153
- :value.sync="item.f_install_person"
154
- v-model="item.f_install_person"
155
- :options="installperson"
156
- :valueSingle="true"></input-select>
157
- </div>
158
- </div>
159
- <div class="form-group row vertical-center">
160
- <label class="col-xs-4 control-label">安装日期:</label>
161
- <div class="col-xs-8">
162
- <datepicker
163
- placeholder="安装日期"
164
- :value.sync="item.f_install_date"
165
- v-model="item.f_install_date"
166
- format="yyyy-MM-dd HH:mm:ss"
167
- :show-reset-button="reset">
168
- </datepicker>
169
- </div>
170
- </div>
171
- </div>
172
-
173
- </article>
174
- <footer slot="modal-footer" class="modal-footer">
175
- <!-- 去除一户多表 -->
176
- <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
177
- <button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
178
- </footer>
179
- </modal>
180
- </div>
181
-
182
- </template>
183
- <script>
184
- import Vue from 'vue'
185
- import {PagedList} from 'vue-client'
186
- import {HttpResetClass} from 'vue-client'
187
- import {isEmpty} from '../../../Util'
188
-
189
- export default {
190
- title: '安装明细',
191
- props: {
192
- selectdata: {
193
- type: Object
194
- },
195
- mark: {
196
- type: Number,
197
- default: 0
198
- }
199
- },
200
- data () {
201
- return {
202
- showUserFile: false,
203
- model: {
204
- rows: null
205
- },
206
- meterbrands: [], // 气表品牌
207
- useradders: null,
208
- userinfo: {}
209
- }
210
- },
211
- ready () {
212
- this.search()
213
- this.getMeterbrands()
214
- },
215
- methods: {
216
- // 保存档案
217
- async saveUserFile() {
218
- if (this.userinfo.userfiles.length > 1) {
219
- this.$showMessage('该地址下已有表具信息,暂不支持一户多表!!!')
220
- return
221
- }
222
- // 检查必填项
223
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
224
- let userfile = this.userinfo.userfiles[i]
225
- if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
226
- this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
227
- return
228
- }
229
- if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
230
- this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
231
- return
232
- }
233
- if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
234
- this.$showMessage(`表具${i+1}表号没有填写!!!`)
235
- return
236
- }
237
- }
238
- let data = {
239
- // 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":[]},
240
- user: Vue.user,
241
- useradders: this.useradders,
242
- userinfo: this.userinfo,
243
- selectdata: this.selectdata
244
- }
245
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/addInstallationDetails`, {data:data}, {
246
- resolveMsg: null,
247
- rejectMsg: '表具添加失败!!!'
248
- })
249
-
250
- this.closeUserFile()
251
- },
252
- // 检查表号是否存在
253
- async meternumberValidate(i) {
254
- if (!this.userinfo.userfiles[i].f_gasbrand_id) {
255
- this.userinfo.userfiles[i].f_meternumber = ''
256
- this.$showMessage('请先选择气表品牌!!!')
257
- return
258
- }
259
- if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
260
- let data = {
261
- f_meternumber: this.userinfo.userfiles[i].f_meternumber,
262
- f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
263
- }
264
- if (this.userinfo.userfiles[i].f_userfiles_id) {
265
- data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
266
- }
267
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
268
- resolveMsg: null,
269
- rejectMsg: '表号验证失败!!'
270
- })
271
- if (res.data) {
272
- this.userinfo.userfiles[i].f_meternumber = ''
273
- this.$showMessage('表号已存在!!')
274
- }
275
- }
276
- },
277
- // 选择气表型号
278
- gasmodelChange(i) {
279
- if (this.userinfo.userfiles[i].gasmodel) {
280
- this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
281
- }
282
- },
283
- // 选择气表品牌
284
- gasbrandChange(i) {
285
- // 清空已保存的气表型号
286
- this.userinfo.userfiles[i].f_gasmodel_id = null
287
- this.userinfo.userfiles[i].gasmodel = null
288
- if (this.userinfo.userfiles[i].gasbrand) {
289
- // 气表品牌id
290
- this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
291
- // 气表分类
292
- this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
293
- }
294
- },
295
- // 追加表具
296
- addUserFile() {
297
- this.userinfo.userfiles.push({})
298
- },
299
- // 打开安装明细
300
- async showUserFileModal (row) {
301
- this.useradders = row
302
-
303
- let http = new HttpResetClass()
304
- let data = {
305
- condition: `f_userinfo_id='${row.f_userinfo_id}'`
306
- }
307
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfoAndUserfiles`, {data:data}, {
308
- resolveMsg: null,
309
- rejectMsg: null
310
- })
311
-
312
- this.userinfo = res.data
313
-
314
- // 已有表具的 气表信息补充
315
- for (const userfile of this.userinfo.userfiles) {
316
- for (const item of this.meterbrands) {
317
- if (item.value.id === userfile.f_gasbrand_id) {
318
- userfile.gasbrand = item.value
319
- }
320
- }
321
- if (userfile.gasbrand) {
322
- for (const item of userfile.gasbrand.gasmodel) {
323
- if (item.value.id === userfile.f_gasmodel_id) {
324
- userfile.gasmodel = item.value
325
- }
326
- }
327
- }
328
- }
329
-
330
- this.showUserFile = true
331
- },
332
- // 获取气表品牌
333
- async getMeterbrands() {
334
- let http = new HttpResetClass()
335
- let data = {
336
- f_filialeid: Vue.user.orgid
337
- // f_filialeid: '559465'
338
- }
339
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterbrands`, {data:data}, {
340
- resolveMsg: null,
341
- rejectMsg: null
342
- })
343
- this.meterbrands = res.data
344
- },
345
- // 查询
346
- async search () {
347
- let http = new HttpResetClass()
348
- let data = {
349
- condition: " 1=1",
350
- f_process_id: this.selectdata.f_process_id
351
- }
352
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
353
- resolveMsg: null,
354
- rejectMsg: null
355
- })
356
- this.model.rows = res.data
357
- if (this.selectdata.f_apply_type === '开发商集体报建' || this.selectdata.f_apply_type === '散户集体报建' || this.selectdata.f_apply_type === '煤改气报建') {
358
- let f_installed_households = 0
359
- for (const item of res.data) {
360
- if (item.f_userfiles_num > 0) {
361
- f_installed_households++
362
- }
363
- }
364
- let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
365
- for (const item of this.selectdata.fields) {
366
- if (item.label === '已安装户数') {
367
- item.value = f_installed_households
368
- }
369
- if (item.label === '未安装户数') {
370
- item.value = f_uninstalled_households
371
- }
372
- }
373
- }
374
- },
375
- // 关闭安装明细
376
- closeUserFile() {
377
- this.showUserFile = false
378
- this.useradders = null
379
- this.userinfo = null
380
- this.search()
381
- }
382
- },
383
- events: {
384
- },
385
- computed: {
386
- // 安装人
387
- installperson() {
388
- return this.$login.f.f_installman.map(item => {
389
- return {
390
- label: item.name,
391
- value: item.name
392
- }
393
- })
394
- },
395
- // 表向
396
- aroundmeters() {
397
- return this.$appdata.getParam('左右表')
398
- },
399
- // 安装位置
400
- positions() {
401
- return this.$appdata.getParam('安装位置')
402
- }
403
- },
404
- watch: {
405
- }
406
- }
407
- </script>
408
- <style scoped>
409
- label {
410
- margin: 0px;
411
- }
412
- .vertical-center {
413
- display: flex;
414
- align-items: center;
415
- text-align: center;
416
- }
417
-
418
- .control-label-justify {
419
- display: inline-block;
420
- vertical-align: top;
421
- width: 100%;
422
- text-align: justify;
423
- font-family: PingFang-SC-Bold;
424
- }
425
-
426
- .control-label-justify::after {
427
- content: "";
428
- display: inline-block;
429
- width: 100%;
430
- overflow: hidden;
431
- height: 0;
432
- }
433
- .app-text {
434
- font-size: 12px;
435
- }
436
- .panel-self{
437
- border-radius: 10px;
438
- border:1px solid #499EDF;
439
- background-color: #F8F8F8;
440
- }
441
- .font{
442
- font: 15px PingFang-SC-Medium;
443
- color: #666666;
444
- }
445
- .input-font{
446
- font: 15px PingFang-SC-Medium;
447
- color: #333333;
448
- }
449
- /*清除model中的浮动*/
450
- .clearfix:after,.clearfix:before{
451
- display: table;
452
- }
453
- .clearfix:after{
454
- clear: both;
455
- }
456
- </style>
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" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
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">{{ $parent.$parent.selectdata.f_price }}</p>
21
+ </div>
22
+ <div class="row" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
23
+ <p class="col-xs-3 text-left font"><b class="control-label-justify">累计缴费</b></p>
24
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_cumulative_payment_money }}</p>
25
+ </div>
26
+ <div class="row">
27
+ <p class="col-xs-3 text-left font"><b class="control-label-justify">地址信息</b></p>
28
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_address }}</p>
29
+ </div>
30
+ <div class="row text-right">
31
+ <button class="btn btn-info"
32
+ :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"
33
+ @click.prevent="$parent.$parent.showUserFileModal(row)">
34
+ {{row.f_userfiles_num > 0 ? '修正' : '添加'}}
35
+ </button>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </list>
40
+
41
+ <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
42
+ <header slot="modal-header" class="modal-header">
43
+ <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
44
+ <h4 class="modal-title">安装明细</h4>
45
+ </header>
46
+ <article slot="modal-body" class="modal-body clearfix">
47
+ <div class="form-group row vertical-center">
48
+ <label class="col-xs-4 control-label">地址信息:</label>
49
+ <div class="col-xs-8">
50
+ <input class="form-control input_view" style=""
51
+ v-model="useradders.f_address"
52
+ :value="useradders.f_address"
53
+ :readonly="true"/>
54
+ </div>
55
+ </div>
56
+
57
+ <div v-for="(i, item) in userinfo.userfiles" class="form-group col-xs-12 panel panel-info">
58
+ <div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
59
+ <div class="form-group row vertical-center" :class="item.f_gasbrand_id ? '':'has-error'">
60
+ <label class="col-xs-4 control-label">气表品牌:</label>
61
+ <div class="col-xs-8">
62
+ <input-select
63
+ class="select select_list"
64
+ :value.sync="item.gasbrand"
65
+ v-model="item.gasbrand"
66
+ :options="meterbrands"
67
+ @change="gasbrandChange(i)"
68
+ :valueSingle="true"></input-select>
69
+ </div>
70
+ </div>
71
+ <div class="form-group row vertical-center" :class="item.f_gasmodel_id ? '':'has-error'">
72
+ <label class="col-xs-4 control-label">气表型号:</label>
73
+ <div class="col-xs-8">
74
+ <input-select
75
+ class="select select_list"
76
+ :value.sync="item.gasmodel"
77
+ v-model="item.gasmodel"
78
+ :options="item.gasbrand.gasmodel"
79
+ @change="gasmodelChange(i)"
80
+ :valueSingle="true"></input-select>
81
+ </div>
82
+ </div>
83
+ <div class="form-group row vertical-center" :class="item.f_meternumber ? '':'has-error'">
84
+ <label class="col-xs-4 control-label">表&emsp;&emsp;号:</label>
85
+ <div class="col-xs-8">
86
+ <input class="form-control input_view" style=""
87
+ placeholder="表号"
88
+ v-model="item.f_meternumber"
89
+ :value="item.f_meternumber"
90
+ @change="meternumberValidate(i)"
91
+ :readonly="false"/>
92
+ </div>
93
+ </div>
94
+ <div class="form-group row vertical-center" v-if="selectdata.f_apply_type !== '散户报建' && selectdata.f_apply_type !== '开发商集体报建' ">
95
+ <label class="col-xs-4 control-label ">表&ensp;封&ensp;号:</label>
96
+ <div class="col-xs-8">
97
+ <input class="form-control input_view" style=""
98
+ placeholder="表封号"
99
+ v-model="item.f_metertitles"
100
+ :value="item.f_metertitles"
101
+ :readonly="false"/>
102
+ </div>
103
+ </div>
104
+ <div class="form-group row vertical-center" v-if="selectdata.f_apply_type === '散户报建' || selectdata.f_apply_type === '开发商集体报建' ">
105
+ <label class="col-xs-4 control-label ">表前封号:</label>
106
+ <div class="col-xs-8">
107
+ <input class="form-control input_view" style=""
108
+ placeholder="表前封号"
109
+ v-model="item.f_before_metertitles"
110
+ :value="item.f_before_metertitles"
111
+ :readonly="false"/>
112
+ </div>
113
+ </div>
114
+ <div class="form-group row vertical-center" v-if="selectdata.f_apply_type === '散户报建' || selectdata.f_apply_type === '开发商集体报建' ">
115
+ <label class="col-xs-4 control-label ">表后封号:</label>
116
+ <div class="col-xs-8">
117
+ <input class="form-control input_view" style=""
118
+ placeholder="表后封号"
119
+ v-model="item.item.f_after_metertitles"
120
+ :value="item.item.f_after_metertitles"
121
+ :readonly="false"/>
122
+ </div>
123
+ </div>
124
+ <div class="form-group row vertical-center">
125
+ <label class="col-xs-4 control-label">表&ensp;读&ensp;数:</label>
126
+ <div class="col-xs-8">
127
+ <input class="form-control input_view" style=""
128
+ type="number"
129
+ placeholder="表读数"
130
+ v-model="item.f_meter_base"
131
+ :value="item.f_meter_base"
132
+ :readonly="false"/>
133
+ </div>
134
+ </div>
135
+ <div class="form-group row vertical-center">
136
+ <label class="col-xs-4 control-label">初始底数:</label>
137
+ <div class="col-xs-8">
138
+ <input class="form-control input_view" style=""
139
+ type="number"
140
+ v-model="item.f_initial_base"
141
+ :value="item.f_initial_base"
142
+ placeholder="初始底数"
143
+ :readonly="false"/>
144
+ </div>
145
+ </div>
146
+ <div class="form-group row vertical-center">
147
+ <label class="col-xs-4 control-label">表&emsp;&emsp;向:</label>
148
+ <div class="col-xs-8">
149
+ <input-select
150
+ class="select select_list"
151
+ :value.sync="item.f_aroundmeter"
152
+ v-model="item.f_aroundmeter"
153
+ :options="aroundmeters"
154
+ :valueSingle="true"></input-select>
155
+ </div>
156
+ </div>
157
+ <div class="form-group row vertical-center">
158
+ <label class="col-xs-4 control-label">安装位置:</label>
159
+ <div class="col-xs-8">
160
+ <input-select
161
+ class="select select_list"
162
+ :value.sync="item.f_position"
163
+ v-model="item.f_position"
164
+ :options="positions"
165
+ :valueSingle="true"></input-select>
166
+ </div>
167
+ </div>
168
+ <div class="form-group row vertical-center">
169
+ <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
170
+ <div class="col-xs-8">
171
+ <input-select
172
+ class="select select_list"
173
+ :value.sync="item.f_install_person"
174
+ v-model="item.f_install_person"
175
+ :options="installperson"
176
+ :valueSingle="true"></input-select>
177
+ </div>
178
+ </div>
179
+ <div class="form-group row vertical-center">
180
+ <label class="col-xs-4 control-label">安装日期:</label>
181
+ <div class="col-xs-8">
182
+ <datepicker
183
+ placeholder="安装日期"
184
+ :value.sync="item.f_install_date"
185
+ v-model="item.f_install_date"
186
+ format="yyyy-MM-dd HH:mm:ss"
187
+ :show-reset-button="reset">
188
+ </datepicker>
189
+ </div>
190
+ </div>
191
+ </div>
192
+
193
+ </article>
194
+ <footer slot="modal-footer" class="modal-footer">
195
+ <!-- 去除一户多表 -->
196
+ <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
197
+ <button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
198
+ </footer>
199
+ </modal>
200
+ </div>
201
+
202
+ </template>
203
+ <script>
204
+ import Vue from 'vue'
205
+ import {PagedList} from 'vue-client'
206
+ import {HttpResetClass} from 'vue-client'
207
+ import {isEmpty} from '../../../Util'
208
+
209
+ export default {
210
+ title: '安装明细',
211
+ props: {
212
+ selectdata: {
213
+ type: Object
214
+ },
215
+ mark: {
216
+ type: Number,
217
+ default: 0
218
+ }
219
+ },
220
+ data () {
221
+ return {
222
+ showUserFile: false,
223
+ model: {
224
+ rows: null
225
+ },
226
+ meterbrands: [], // 气表品牌
227
+ useradders: null,
228
+ userinfo: {}
229
+ }
230
+ },
231
+ ready () {
232
+ this.search()
233
+ this.getMeterbrands()
234
+ this.notInstalled()
235
+ },
236
+ methods: {
237
+ async notInstalled () {
238
+ let http = new HttpResetClass()
239
+ let data = {
240
+ condition: null
241
+ }
242
+ if (this.selectdata.f_apply_type === '开发商集体报建') {
243
+ data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state in ('正常','停用')`
244
+ } else {
245
+ data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '无效'`
246
+ }
247
+ let res = await http.load('POST', 'rs/sql/notInstalled', {data: data}, {resolveMsg: null, rejectMsg: null})
248
+ for (const item of this.selectdata.fields) {
249
+ if (item.label === '已安装户数') {
250
+ item.value = res.data[0].num
251
+ }
252
+ if (item.label === '未安装户数') {
253
+ item.value = this.selectdata.f_apply_count - res.data[0].num
254
+ }
255
+ }
256
+ },
257
+ // 保存档案
258
+ async saveUserFile() {
259
+ if (this.userinfo.userfiles.length > 1) {
260
+ this.$showMessage('该地址下已有表具信息,暂不支持一户多表!!!')
261
+ return
262
+ }
263
+ // 检查必填项
264
+ for (let i = 0; i < this.userinfo.userfiles.length; i++) {
265
+ let userfile = this.userinfo.userfiles[i]
266
+ if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
267
+ this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
268
+ return
269
+ }
270
+ if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
271
+ this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
272
+ return
273
+ }
274
+ if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
275
+ this.$showMessage(`表具${i+1}表号没有填写!!!`)
276
+ return
277
+ }
278
+ if (userfile.f_before_metertitles=== null || userfile.f_before_metertitles=== '') {
279
+ this.$showAlert(`表具${i+1}表前封号没有填写!!!`, 'warning', 3000)
280
+ return
281
+ }
282
+ if (userfile.f_after_metertitles=== null || userfile.f_after_metertitles=== '') {
283
+ this.$showAlert(`表具${i+1}表后封号没有填写!!!`, 'warning', 3000)
284
+ return
285
+ }
286
+ }
287
+ let data = {
288
+ // 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":[]},
289
+ user: Vue.user,
290
+ useradders: this.useradders,
291
+ userinfo: this.userinfo,
292
+ selectdata: this.selectdata
293
+ }
294
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/addInstallationDetails`, {data:data}, {
295
+ resolveMsg: null,
296
+ rejectMsg: '表具添加失败!!!'
297
+ })
298
+
299
+ this.closeUserFile()
300
+ },
301
+ // 检查表号是否存在
302
+ async meternumberValidate(i) {
303
+ if (!this.userinfo.userfiles[i].f_gasbrand_id) {
304
+ this.userinfo.userfiles[i].f_meternumber = ''
305
+ this.$showMessage('请先选择气表品牌!!!')
306
+ return
307
+ }
308
+ if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
309
+ let data = {
310
+ f_meternumber: this.userinfo.userfiles[i].f_meternumber,
311
+ f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
312
+ }
313
+ if (this.userinfo.userfiles[i].f_userfiles_id) {
314
+ data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
315
+ }
316
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
317
+ resolveMsg: null,
318
+ rejectMsg: '表号验证失败!!'
319
+ })
320
+ if (res.data) {
321
+ this.userinfo.userfiles[i].f_meternumber = ''
322
+ this.$showMessage('表号已存在!!')
323
+ }
324
+ }
325
+ },
326
+ // 选择气表型号
327
+ gasmodelChange(i) {
328
+ if (this.userinfo.userfiles[i].gasmodel) {
329
+ this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
330
+ }
331
+ },
332
+ // 选择气表品牌
333
+ gasbrandChange(i) {
334
+ // 清空已保存的气表型号
335
+ this.userinfo.userfiles[i].f_gasmodel_id = null
336
+ this.userinfo.userfiles[i].gasmodel = null
337
+ if (this.userinfo.userfiles[i].gasbrand) {
338
+ // 气表品牌id
339
+ this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
340
+ // 气表分类
341
+ this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
342
+ }
343
+ },
344
+ // 追加表具
345
+ addUserFile() {
346
+ this.userinfo.userfiles.push({})
347
+ },
348
+ // 打开安装明细
349
+ async showUserFileModal (row) {
350
+ this.useradders = row
351
+
352
+ let http = new HttpResetClass()
353
+ let data = {
354
+ condition: `f_userinfo_id='${row.f_userinfo_id}'`
355
+ }
356
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfoAndUserfiles`, {data:data}, {
357
+ resolveMsg: null,
358
+ rejectMsg: null
359
+ })
360
+
361
+ this.userinfo = res.data
362
+
363
+ // 已有表具的 气表信息补充
364
+ for (const userfile of this.userinfo.userfiles) {
365
+ for (const item of this.meterbrands) {
366
+ if (item.value.id === userfile.f_gasbrand_id) {
367
+ userfile.gasbrand = item.value
368
+ }
369
+ }
370
+ if (userfile.gasbrand) {
371
+ for (const item of userfile.gasbrand.gasmodel) {
372
+ if (item.value.id === userfile.f_gasmodel_id) {
373
+ userfile.gasmodel = item.value
374
+ }
375
+ }
376
+ }
377
+ }
378
+
379
+ this.showUserFile = true
380
+ },
381
+ // 获取气表品牌
382
+ async getMeterbrands() {
383
+ let http = new HttpResetClass()
384
+ let data = {
385
+ f_filialeid: Vue.user.orgid
386
+ // f_filialeid: '559465'
387
+ }
388
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterbrands`, {data:data}, {
389
+ resolveMsg: null,
390
+ rejectMsg: null
391
+ })
392
+ this.meterbrands = res.data
393
+ },
394
+ // 查询
395
+ async search () {
396
+ let http = new HttpResetClass()
397
+ let data = {
398
+ condition: " 1=1",
399
+ f_process_id: this.selectdata.f_process_id
400
+ }
401
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
402
+ resolveMsg: null,
403
+ rejectMsg: null
404
+ })
405
+ this.model.rows = res.data
406
+ if (this.selectdata.f_apply_type === '开发商集体报建' || this.selectdata.f_apply_type === '散户集体报建' || this.selectdata.f_apply_type === '煤改气报建') {
407
+ let f_installed_households = 0
408
+ for (const item of res.data) {
409
+ if (item.f_userfiles_num > 0) {
410
+ f_installed_households++
411
+ }
412
+ }
413
+ let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
414
+ for (const item of this.selectdata.fields) {
415
+ if (item.label === '已安装户数') {
416
+ item.value = f_installed_households
417
+ }
418
+ if (item.label === '未安装户数') {
419
+ item.value = f_uninstalled_households
420
+ }
421
+ }
422
+ }
423
+ },
424
+ // 关闭安装明细
425
+ closeUserFile() {
426
+ this.showUserFile = false
427
+ this.useradders = null
428
+ this.userinfo = null
429
+ this.search()
430
+ }
431
+ },
432
+ events: {
433
+ },
434
+ computed: {
435
+ // 安装人
436
+ installperson() {
437
+ return this.$login.f.f_installman.map(item => {
438
+ return {
439
+ label: item.name,
440
+ value: item.name
441
+ }
442
+ })
443
+ },
444
+ // 表向
445
+ aroundmeters() {
446
+ return this.$appdata.getParam('左右表')
447
+ },
448
+ // 安装位置
449
+ positions() {
450
+ return this.$appdata.getParam('安装位置')
451
+ }
452
+ },
453
+ watch: {
454
+ }
455
+ }
456
+ </script>
457
+ <style scoped>
458
+ label {
459
+ margin: 0px;
460
+ }
461
+ .vertical-center {
462
+ display: flex;
463
+ align-items: center;
464
+ text-align: center;
465
+ }
466
+
467
+ .control-label-justify {
468
+ display: inline-block;
469
+ vertical-align: top;
470
+ width: 100%;
471
+ text-align: justify;
472
+ font-family: PingFang-SC-Bold;
473
+ }
474
+
475
+ .control-label-justify::after {
476
+ content: "";
477
+ display: inline-block;
478
+ width: 100%;
479
+ overflow: hidden;
480
+ height: 0;
481
+ }
482
+ .app-text {
483
+ font-size: 12px;
484
+ }
485
+ .panel-self{
486
+ border-radius: 10px;
487
+ border:1px solid #499EDF;
488
+ background-color: #F8F8F8;
489
+ }
490
+ .font{
491
+ font: 15px PingFang-SC-Medium;
492
+ color: #666666;
493
+ }
494
+ .input-font{
495
+ font: 15px PingFang-SC-Medium;
496
+ color: #333333;
497
+ }
498
+ /*清除model中的浮动*/
499
+ .clearfix:after,.clearfix:before{
500
+ display: table;
501
+ }
502
+ .clearfix:after{
503
+ clear: both;
504
+ }
505
+ </style>
@@ -151,7 +151,7 @@
151
151
  :readonly="mark===1"/>
152
152
  </div>
153
153
  </div>
154
- <div class="form-group col-sm-6">
154
+ <div class="form-group col-sm-6" v-if="selectdata.f_apply_type !== '散户报建' && selectdata.f_apply_type !== '开发商集体报建' ">
155
155
  <label class="col-sm-4 control-label">表封号:</label>
156
156
  <div class="col-sm-8">
157
157
  <input class="form-control input_view" style=""
@@ -162,6 +162,28 @@
162
162
  :readonly="mark===1"/>
163
163
  </div>
164
164
  </div>
165
+ <div class="form-group col-sm-6" :class="item.f_before_metertitles? '':'has-error'" v-if="selectdata.f_apply_type === '散户报建' || selectdata.f_apply_type === '开发商集体报建' ">
166
+ <label class="col-sm-4 control-label">表前封号:</label>
167
+ <div class="col-sm-8">
168
+ <input class="form-control input_view" style=""
169
+ placeholder="表前封号"
170
+ v-model="item.f_before_metertitles"
171
+ :value="item.f_before_metertitles"
172
+ :disable="mark===1"
173
+ :readonly="mark===1"/>
174
+ </div>
175
+ </div>
176
+ <div class="form-group col-sm-6" :class="item.f_after_metertitles? '':'has-error'" v-if="selectdata.f_apply_type === '散户报建' || selectdata.f_apply_type === '开发商集体报建' ">
177
+ <label class="col-sm-4 control-label">表后封号:</label>
178
+ <div class="col-sm-8">
179
+ <input class="form-control input_view" style=""
180
+ placeholder="表后封号"
181
+ v-model="item.f_after_metertitles"
182
+ :value="item.f_after_metertitles"
183
+ :disable="mark===1"
184
+ :readonly="mark===1"/>
185
+ </div>
186
+ </div>
165
187
  <div class="form-group col-sm-6">
166
188
  <label class="col-sm-4 control-label">表读数:</label>
167
189
  <div class="col-sm-8">
@@ -288,7 +310,7 @@
288
310
  condition: null
289
311
  }
290
312
  if (this.selectdata.f_apply_type === '开发商集体报建') {
291
- data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}'`
313
+ data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state in ('正常','停用')`
292
314
  } else {
293
315
  data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '无效'`
294
316
  }
@@ -322,8 +344,12 @@
322
344
  this.$showAlert(`表具${i+1}气表型号没有选择!!!`, 'warning', 3000)
323
345
  return
324
346
  }
325
- if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
326
- this.$showAlert(`表具${i+1}表号没有填写!!!`, 'warning', 3000)
347
+ if (userfile.f_before_metertitles=== null || userfile.f_before_metertitles=== '') {
348
+ this.$showAlert(`表具${i+1}表前封号没有填写!!!`, 'warning', 3000)
349
+ return
350
+ }
351
+ if (userfile.f_after_metertitles=== null || userfile.f_after_metertitles=== '') {
352
+ this.$showAlert(`表具${i+1}表后封号没有填写!!!`, 'warning', 3000)
327
353
  return
328
354
  }
329
355
  }
@@ -458,7 +484,7 @@
458
484
  user: this.$login.f
459
485
  }
460
486
  let url = null
461
- if (this.selectdata.f_apply_type === '开发商集体报建') {
487
+ if (this.selectdata.f_apply_type === '开发商集体报建' || this.selectdata.f_apply_type === '散户集体报建') {
462
488
  url = 'rs/logic/importAddressUserFiles'
463
489
  } else {
464
490
  url = 'rs/logic/importAddInstallationDetails'
@@ -183,6 +183,16 @@ export default {
183
183
  computed: {
184
184
  },
185
185
  watch: {
186
+ 'model.count': {
187
+ handler: function () {
188
+ if (this.model.count != this.selectdata.f_apply_count) {
189
+ console.log(this.model.count)
190
+ console.log(this.selectdata.f_apply_count)
191
+ console.log(this.model.count !== this.selectdata.f_apply_count)
192
+ this.selectdata.f_apply_count = this.model.count
193
+ }
194
+ }
195
+ }
186
196
  }
187
197
  }
188
198
  </script>