apply-clients 3.3.216 → 3.4.1

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.
Files changed (96) hide show
  1. package/android.html +23 -23
  2. package/index.html +33 -33
  3. package/package.json +3 -3
  4. package/src/AndroidApp.vue +35 -30
  5. package/src/App.vue +20 -20
  6. package/src/android.js +21 -21
  7. package/src/apply.js +81 -90
  8. package/src/applyAndroid.js +1 -23
  9. package/src/components/android/AppOnetomany.vue +301 -285
  10. package/src/components/android/AppServiceView.vue +566 -570
  11. package/src/components/android/AppSign.vue +142 -142
  12. package/src/components/android/AppTakePic.vue +143 -144
  13. package/src/components/android/Process/AppExplorationUser.vue +320 -270
  14. package/src/components/android/Process/AppServiceControl.vue +757 -686
  15. package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -466
  16. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
  17. package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
  18. package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
  19. package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -115
  20. package/src/components/android/TaskGraph.vue +125 -0
  21. package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
  22. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  23. package/src/components/product/Function/InstallFunction.vue +125 -122
  24. package/src/components/product/Function/InstallInfoSelect.vue +292 -318
  25. package/src/components/product/Function/Service/FunctionServiceControl.vue +222 -254
  26. package/src/components/product/Function/StopApplyCrrdList.vue +176 -0
  27. package/src/components/product/Function/functions/ApplyRecordCancel.vue +102 -0
  28. package/src/components/product/Function/functions/StopInstall.vue +106 -0
  29. package/src/components/product/Onetomany.vue +377 -296
  30. package/src/components/product/Order/OrderApply.vue +30 -30
  31. package/src/components/product/Order/OrderApplyList.vue +78 -67
  32. package/src/components/product/Order/OrderMessage.vue +11 -87
  33. package/src/components/product/Process/ExplorationSelect.vue +410 -369
  34. package/src/components/product/Process/ExplorationUser.vue +138 -128
  35. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -504
  36. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  37. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  38. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  39. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  40. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  41. package/src/components/product/Process/Processes/Print/printCharge.vue +142 -0
  42. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -181
  43. package/src/components/product/Process/Processes/chargeManagement.vue +639 -638
  44. package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
  45. package/src/components/product/Process/Processes/selectApply.vue +1 -1
  46. package/src/components/product/Process/Service/ServiceControl.vue +1254 -883
  47. package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
  48. package/src/components/product/ServiceView.vue +631 -741
  49. package/src/components/product/Stop/StopApply.vue +103 -103
  50. package/src/components/product/Stop/StopApplyList.vue +269 -254
  51. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -517
  52. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -108
  53. package/src/components/product/Supervisory/SupervisoryList.vue +233 -253
  54. package/src/components/product/Supervisory/SupervisoryhCart.vue +107 -124
  55. package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
  56. package/src/components/product/VueUtils/HighMeter.vue +208 -0
  57. package/src/expandcssAndroid.less +1034 -517
  58. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +548 -414
  59. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +754 -456
  60. package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -0
  61. package/src/filiale/yuchuan/android.js +7 -8
  62. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -517
  63. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
  64. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +270 -231
  65. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +147 -131
  66. package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +66 -0
  67. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +759 -0
  68. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +470 -0
  69. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +879 -517
  70. package/src/filiale/yuchuan/pc.js +11 -13
  71. package/src/main.js +23 -23
  72. package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
  73. package/src/components/android/Function/AppInstallFunction.vue +0 -330
  74. package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
  75. package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
  76. package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
  77. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
  78. package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
  79. package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
  80. package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
  81. package/src/components/image/dwg.jpg +0 -0
  82. package/src/components/image/yasuobao.jpg +0 -0
  83. package/src/components/product/Function/Inform.vue +0 -73
  84. package/src/components/product/Function/MarketSurvey.vue +0 -81
  85. package/src/components/product/Process/Processes/printCharge.vue +0 -121
  86. package/src/components/product/Process/ShowBackReason.vue +0 -33
  87. package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
  88. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
  89. package/src/components/product/VueUtils/ToolsPage.vue +0 -51
  90. package/src/components/product/VueUtils/Tree.vue +0 -330
  91. package/src/filiale/wuan/android.js +0 -0
  92. package/src/filiale/wuan/pc.js +0 -4
  93. package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
  94. package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
  95. package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
  96. package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
@@ -1,466 +1,456 @@
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>客户编号</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>客户名称</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>客户电话</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>地址信息</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">
23
- <p class="col-xs-3 text-left font"><b>表具数量</b></p>
24
- <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</p>
25
- </div>
26
- <div class="row text-right">
27
- <button class="btn btn-info"
28
- :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"
29
- @click.prevent="$parent.$parent.showUserFileModal(row)">
30
- {{row.f_userfiles_num > 0 ? '修正' : '添加'}}
31
- </button>
32
- </div>
33
- </div>
34
- </div>
35
- </list>
36
-
37
- <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
38
- <header slot="modal-header" class="modal-header">
39
- <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
40
- <h4 class="modal-title">安装明细</h4>
41
- </header>
42
- <article slot="modal-body" class="modal-body clearfix">
43
- <div class="form-group row vertical-center">
44
- <label class="col-xs-4 control-label">地址信息:</label>
45
- <div class="col-xs-8">
46
- <input class="form-control input_view" style=""
47
- v-model="useradders.f_address"
48
- :value="useradders.f_address"
49
- :readonly="true"/>
50
- </div>
51
- </div>
52
-
53
- <div v-for="(i, item) in userinfo.userfiles" class="form-group col-xs-12 panel panel-info">
54
- <div class="panel-heading head row" style="background-color: #e8f4ff;margin-bottom: 10px">
55
- <div class="col-xs-6 text-left">表具{{$index+1}}信息</div>
56
- <div class="col-xs-6 text-right"><button
57
- class="btn btn-danger"
58
- v-if="!item.f_userfiles_id"
59
- @click.prevent="deleteUserFile(i)"
60
- >删除</button></div>
61
- </div>
62
- <div class="form-group row vertical-center" :class="item.f_gasbrand_id ? '':'has-error'">
63
- <label class="col-xs-4 control-label">气表品牌:</label>
64
- <div class="col-xs-8">
65
- <input-select
66
- class="select select_list"
67
- :value.sync="item.gasbrand"
68
- v-model="item.gasbrand"
69
- :options="meterbrands"
70
- @change="gasbrandChange(i)"
71
- :valueSingle="true"></input-select>
72
- </div>
73
- </div>
74
- <div class="form-group row vertical-center" :class="item.f_gasmodel_id ? '':'has-error'">
75
- <label class="col-xs-4 control-label">气表型号:</label>
76
- <div class="col-xs-8">
77
- <input-select
78
- class="select select_list"
79
- :value.sync="item.gasmodel"
80
- v-model="item.gasmodel"
81
- :options="item.gasbrand.gasmodel"
82
- @change="gasmodelChange(i)"
83
- :valueSingle="true"></input-select>
84
- </div>
85
- </div>
86
- <div class="form-group row vertical-center" :class="item.f_meternumber ? '':'has-error'">
87
- <label class="col-xs-4 control-label">表&emsp;&emsp;号:</label>
88
- <div class="col-xs-8">
89
- <input class="form-control input_view" style=""
90
- placeholder="表号"
91
- v-model="item.f_meternumber"
92
- :value="item.f_meternumber"
93
- @change="meternumberValidate(i)"
94
- :readonly="false"/>
95
- </div>
96
- </div>
97
- <div class="form-group row vertical-center">
98
- <label class="col-xs-4 control-label ">表&ensp;封&ensp;号:</label>
99
- <div class="col-xs-8">
100
- <input class="form-control input_view" style=""
101
- placeholder="表封号"
102
- v-model="item.f_metertitles"
103
- :value="item.f_metertitles"
104
- :readonly="false"/>
105
- </div>
106
- </div>
107
- <div class="form-group row vertical-center">
108
- <label class="col-xs-4 control-label">表&ensp;读&ensp;数:</label>
109
- <div class="col-xs-8">
110
- <input class="form-control input_view" style=""
111
- type="number"
112
- placeholder="表读数"
113
- v-model="item.f_meter_base"
114
- :value="item.f_meter_base"
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 class="form-control input_view" style=""
122
- type="number"
123
- v-model="item.f_initial_base"
124
- :value="item.f_initial_base"
125
- placeholder="初始底数"
126
- :readonly="false"/>
127
- </div>
128
- </div>
129
- <div class="form-group row vertical-center">
130
- <label class="col-xs-4 control-label">表&emsp;&emsp;向:</label>
131
- <div class="col-xs-8">
132
- <input-select
133
- class="select select_list"
134
- :value.sync="item.f_aroundmeter"
135
- v-model="item.f_aroundmeter"
136
- :options="aroundmeters"
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-select
144
- class="select select_list"
145
- :value.sync="item.f_position"
146
- v-model="item.f_position"
147
- :options="positions"
148
- :valueSingle="true"></input-select>
149
- </div>
150
- </div>
151
- <div class="form-group row vertical-center">
152
- <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
153
- <div class="col-xs-8">
154
- <input class="form-control input_view" style=""
155
- v-model="item.f_install_person"
156
- :value.sync="installperson"
157
- placeholder="安装人"
158
- readonly/>
159
- <!-- <input-select-->
160
- <!-- class="select select_list"-->
161
- <!-- :value.sync="item.f_install_person"-->
162
- <!-- v-model="item.f_install_person"-->
163
- <!-- :options="installperson"-->
164
- <!-- :valueSingle="true"></input-select>-->
165
- </div>
166
- </div>
167
- <div class="form-group row vertical-center">
168
- <label class="col-xs-4 control-label">安装日期:</label>
169
- <div class="col-xs-8">
170
- <input class="form-control input_view" style=""
171
- v-model="item.f_install_date"
172
- :value.sync="installdate(item.f_install_date)"
173
- placeholder="安装日期"
174
- readonly/>
175
- <!-- <datepicker-->
176
- <!-- placeholder="安装日期"-->
177
- <!-- :value.sync="item.f_install_date"-->
178
- <!-- v-model="item.f_install_date"-->
179
- <!-- format="yyyy-MM-dd HH:mm:ss"-->
180
- <!-- :show-reset-button="reset">-->
181
- <!-- </datepicker>-->
182
- </div>
183
- </div>
184
- </div>
185
-
186
- </article>
187
- <footer slot="modal-footer" class="modal-footer">
188
- <!-- 去除一户多表 -->
189
- <button type="button" class="btn btn-primary" @click="addUserFile">添加表具</button>
190
- <button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
191
- </footer>
192
- </modal>
193
- </div>
194
-
195
- </template>
196
- <script>
197
- import Vue from 'vue'
198
- import {PagedList} from 'vue-client'
199
- import {HttpResetClass} from 'vue-client'
200
- import {isEmpty} from '../../../Util'
201
- // Date格式化
202
- Date.prototype.Format = function (fmt) {
203
- var o = {
204
- 'M+': this.getMonth() + 1, // 月份
205
- 'd+': this.getDate(), // 日
206
- 'H+': this.getHours(), // 小时
207
- 'm+': this.getMinutes(), // 分
208
- 's+': this.getSeconds(), // 秒
209
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
210
- 'S': this.getMilliseconds() // 毫秒
211
- }
212
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
213
- for (var k in o) {
214
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
215
- }
216
- return fmt
217
- }
218
-
219
- export default {
220
- title: '安装明细',
221
- props: {
222
- selectdata: {
223
- type: Object
224
- },
225
- mark: {
226
- type: Number,
227
- default: 0
228
- }
229
- },
230
- data () {
231
- return {
232
- showUserFile: false,
233
- model: {
234
- rows: null
235
- },
236
- meterbrands: [], // 气表品牌
237
- useradders: null,
238
- userinfo: {}
239
- }
240
- },
241
- ready () {
242
- this.search()
243
- this.getMeterbrands()
244
- },
245
- methods: {
246
- // 删除未保存的表具
247
- async deleteUserFile (index) {
248
- this.userinfo.userfiles.splice(index, 1)
249
- },
250
- // 追加表具
251
- addUserFile() {
252
- this.userinfo.userfiles.push({})
253
- },
254
- // 保存档案
255
- async saveUserFile() {
256
- // 检查必填项
257
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
258
- let userfile = this.userinfo.userfiles[i]
259
- if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
260
- this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
261
- return
262
- }
263
- if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
264
- this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
265
- return
266
- }
267
- if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
268
- this.$showMessage(`表具${i+1}表号没有填写!!!`)
269
- return
270
- }
271
- }
272
- let data = {
273
- // user: {"f_show_department_name":"","parentname":"营业厅","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"8","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/综合业务.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"综合业务","link":"param-manage","hasright":true,"resourcetype":"function","parentid":"284","children":[],"selfid":"303","name":"参数管理","templatename":"functionedit","id":"302","position":"3","fullname":"资源管理.功能模块.客服系统.综合业务.参数管理","fullid":"3.21.27.284.302","tablename":"t_function"}],"selfid":"285","name":"综合业务","templatename":"functionedit","id":"284","position":"5","fullname":"资源管理.功能模块.客服系统.综合业务","fullid":"3.21.27.284","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"11","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=406b-1630284429661-03197","rolesnames":"营业厅报装,设计部报装,市场部报装,工程部报装,运营部报装,财务部报装","roles":"34751,34757,34763,34769,34775,35326","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.营业厅.报建测试","dir":"zhoukou","userid":"406b-1630284429661-03197","accesstime":"1630409418399","parentid":"34715","f_show_rolestr":"","fullids":"30463.10101.34715.34781.","number":"10101","f_idnumber":{},"selfid":"34782","templatename":"useredit","logindate":"2021-08-30 16:36:39","id":"34781","state":"在职","tablename":"t_user","deptype":"部门","depids":"34715","loginid":"15","imgid":{},"f_user_telephone":{},"rolestr":"营业厅报装,设计部报装,市场部报装,工程部报装,运营部报装,财务部报装","deps":"营业厅","loginnum":"0","f_age":{},"resourcetype":"user","orgid":"10101","f_department_name":"营业厅","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":{},"loginip":"192.168.66.138","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","f_role_name":"营业厅报装 设计部报装 市场部报装 工程部报装 运营部报装 财务部报装 ","f_allArea":[],"f_gasman":[],"lics":[]},
274
- user: Vue.user,
275
- useradders: this.useradders,
276
- userinfo: this.userinfo,
277
- selectdata: this.selectdata
278
- }
279
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/addInstallationDetails`, {data:data}, {
280
- // let res = await this.$resetpost(`rs/logic/addInstallationDetails`, {data:data}, {
281
- resolveMsg: null,
282
- rejectMsg: '表具添加失败!!!'
283
- })
284
-
285
- this.closeUserFile()
286
- this.$dispatch('breakControl')
287
- },
288
- // 检查表号是否存在
289
- async meternumberValidate(i) {
290
- if (!this.userinfo.userfiles[i].f_gasbrand_id) {
291
- this.userinfo.userfiles[i].f_meternumber = ''
292
- this.$showMessage('请先选择气表品牌!!!')
293
- return
294
- }
295
- if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
296
- let data = {
297
- f_meternumber: this.userinfo.userfiles[i].f_meternumber,
298
- f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
299
- }
300
- if (this.userinfo.userfiles[i].f_userfiles_id) {
301
- data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
302
- }
303
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
304
- // let res = await this.$resetpost(`rs/logic/meterbrandsNumberValidate`, {data:data}, {
305
- resolveMsg: null,
306
- rejectMsg: '表号验证失败!!'
307
- })
308
- if (res.data) {
309
- this.userinfo.userfiles[i].f_meternumber = ''
310
- this.$showMessage('表号已存在!!')
311
- }
312
- }
313
- },
314
- // 选择气表型号
315
- gasmodelChange(i) {
316
- if (this.userinfo.userfiles[i].gasmodel) {
317
- this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
318
- }
319
- },
320
- // 选择气表品牌
321
- gasbrandChange(i) {
322
- // 清空已保存的气表型号
323
- this.userinfo.userfiles[i].f_gasmodel_id = null
324
- this.userinfo.userfiles[i].gasmodel = null
325
-
326
- if (this.userinfo.userfiles[i].gasbrand) {
327
- // 气表品牌id
328
- this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
329
- // 气表分类
330
- this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
331
- }
332
- },
333
- // 打开安装明细
334
- async showUserFileModal (row) {
335
- this.useradders = row
336
-
337
- let http = new HttpResetClass()
338
- let data = {
339
- condition: `f_userinfo_id='${row.f_userinfo_id}'`
340
- }
341
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfoAndUserfiles`, {data:data}, {
342
- // let res = await http.load('POST', `rs/logic/getUserinfoAndUserfiles`, {data:data}, {
343
- resolveMsg: null,
344
- rejectMsg: null
345
- })
346
-
347
- this.userinfo = res.data
348
-
349
- // 已有表具的 气表信息补充
350
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
351
- for (const item of this.meterbrands) {
352
- if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
353
- // this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
354
- Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
355
- }
356
- }
357
- if (this.userinfo.userfiles[i].gasbrand) {
358
- for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
359
- if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
360
- // this.userinfo.userfiles[i].gasmodel = item.value
361
- Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
362
- }
363
- }
364
- }
365
- }
366
-
367
- this.showUserFile = true
368
- },
369
- // 获取气表品牌
370
- async getMeterbrands() {
371
- let http = new HttpResetClass()
372
- let data = {
373
- f_orgid: Vue.user.orgid
374
- // f_orgid: '10101'
375
- }
376
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterbrands`, {data:data}, {
377
- // let res = await http.load('POST', `rs/logic/getMeterbrands`, {data:data}, {
378
- resolveMsg: null,
379
- rejectMsg: null
380
- })
381
- this.meterbrands = res.data
382
- },
383
- // 查询
384
- async search () {
385
- let http = new HttpResetClass()
386
- let data = {
387
- condition: `ua.f_process_id = '${this.selectdata.f_process_id}'`
388
- }
389
-
390
- if (this.selectdata.f_apply_type === '团购转散户') {
391
- data.condition = `ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
392
- }
393
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
394
- // let res = await http.load('POST', `rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
395
- resolveMsg: null,
396
- rejectMsg: null
397
- })
398
- this.model.rows = res.data
399
- if (this.selectdata.f_apply_type === '团购报建') {
400
- let f_installed_households = 0
401
- for (const item of res.data) {
402
- if (item.f_userfiles_num > 0) {
403
- f_installed_households++
404
- }
405
- }
406
- let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
407
- for (const item of this.selectdata.fields) {
408
- if (item.label === '已安装户数') {
409
- item.value = f_installed_households
410
- }
411
- if (item.label === '未安装户数') {
412
- item.value = f_uninstalled_households
413
- }
414
- }
415
- }
416
- },
417
- // 关闭安装明细
418
- closeUserFile() {
419
- this.showUserFile = false
420
- this.useradders = null
421
- this.userinfo = {}
422
- this.search()
423
- },
424
- },
425
- events: {
426
- },
427
- computed: {
428
- // 安装人
429
- installperson() {
430
- return Vue.user.name
431
- },
432
- installdate() {
433
- return function (f_install_date) {
434
- if (isEmpty(f_install_date)) {
435
- return new Date().Format('yyyy-MM-dd HH:mm:ss')
436
- }
437
- return f_install_date
438
- }
439
- },
440
- // 表向
441
- aroundmeters() {
442
- return this.$appdata.getParam('左右表')
443
- },
444
- // 安装位置
445
- positions() {
446
- return this.$appdata.getParam('安装位置')
447
- }
448
- },
449
- watch: {
450
- }
451
- }
452
- </script>
453
- <style scoped>
454
- .vertical-center {
455
- display: flex;
456
- align-items: center;
457
- text-align: center;
458
- }
459
- /*清除model中的浮动*/
460
- .clearfix:after,.clearfix:before{
461
- display: table;
462
- }
463
- .clearfix:after{
464
- clear: both;
465
- }
466
- </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">
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>