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,456 +1,754 @@
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 class="col-xs-12 col-xs-12 form-group app-btn">
3
+ <button class="btn btn-info" @click.prevent="showUserFileModal()">添加用户</button>
4
+ </div>
5
+ <div class="col-xs-12 col-xs-12">
6
+ <list :model="model" partial='list'>
7
+ <div partial class="auto app-text panel">
8
+ <div class="panel-body panel-self">
9
+ <div class="row">
10
+ <p class="col-xs-3 text-left font"><b class="control-label-justify">客户编号</b></p>
11
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_userinfo_code }}</p>
12
+ </div>
13
+ <div class="row">
14
+ <p class="col-xs-3 text-left font"><b class="control-label-justify">客户名称</b></p>
15
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_name }}</p>
16
+ </div>
17
+ <div class="row">
18
+ <p class="col-xs-3 text-left font"><b class="control-label-justify">客户电话</b></p>
19
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_phone }}</p>
20
+ </div>
21
+ <div class="row" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
22
+ <p class="col-xs-3 text-left font"><b class="control-label-justify">单价</b></p>
23
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ $parent.$parent.selectdata.f_price }}</p>
24
+ </div>
25
+ <div class="row" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
26
+ <p class="col-xs-3 text-left font"><b class="control-label-justify">累计缴费</b></p>
27
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_cumulative_payment_money }}</p>
28
+ </div>
29
+ <div class="row">
30
+ <p class="col-xs-3 text-left font"><b class="control-label-justify">地址信息</b></p>
31
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_address }}</p>
32
+ </div>
33
+ <div class="row text-right">
34
+ <button class="btn btn-info"
35
+ :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"
36
+ @click.prevent="$parent.$parent.showUserFileModal(row)">
37
+ {{row.f_userfiles_num > 0 ? '修正' : '添加'}}
38
+ </button>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </list>
43
+ </div>
44
+
45
+ <validator name="v">
46
+ <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false">
47
+ <header slot="modal-header" class="modal-header">
48
+ <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
49
+ <h4 class="modal-title">安装明细</h4>
50
+ </header>
51
+ <article slot="modal-body" class="modal-body clearfix">
52
+ <!-- 基本信息 -->
53
+ <div 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-12 text-left">用户信息</div>
56
+ </div>
57
+ <div class="form-group row vertical-center">
58
+ <label class="col-xs-4 control-label">客户名称:</label>
59
+ <div class="col-xs-8">
60
+ <input class="form-control input_view" style=""
61
+ v-model="userinfo.f_user_name"
62
+ :value.sync="serinfo.f_user_name"
63
+ :readonly="mark === 1"
64
+ placeholder="客户名称"/>
65
+ </div>
66
+ </div>
67
+ <div class="form-group row vertical-center">
68
+ <label class="col-xs-4 control-label">客户电话:</label>
69
+ <div class="col-xs-8">
70
+ <input class="form-control input_view" style=""
71
+ v-model="userinfo.f_user_phone"
72
+ :value.sync="userinfo.f_user_phone"
73
+ :readonly="mark === 1"
74
+ placeholder="客户电话"/>
75
+ </div>
76
+ </div>
77
+ <div class="form-group row vertical-center">
78
+ <label class="col-xs-4 control-label">证件类型:</label>
79
+ <div class="col-xs-8">
80
+ <input-select
81
+ class="select select_list"
82
+ :value.sync="userinfo.f_credentials"
83
+ v-model="userinfo.f_credentials"
84
+ :options="credentialsList"
85
+ :disable="mark === 1"
86
+ :valueSingle="true"></input-select>
87
+ </div>
88
+ </div>
89
+ <div class="form-group row vertical-center">
90
+ <label class="col-xs-4 control-label">证件号码:</label>
91
+ <div class="col-xs-8">
92
+ <input class="form-control input_view" style=""
93
+ placeholder="证件号码"
94
+ v-model="userinfo.f_idnumber"
95
+ :value="userinfo.f_idnumber"
96
+ :readonly="mark === 1"/>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ <!-- 地址信息 -->
101
+ <div class="form-group col-xs-12 panel panel-info">
102
+ <div class="panel-heading head row" style="background-color: #e8f4ff;margin-bottom: 10px">
103
+ <div class="col-xs-6 text-left">地址信息</div>
104
+ </div>
105
+ <div class="form-group row vertical-center" :class="[$v.f_address_type.required ? 'has-error' : '']">
106
+ <label class="col-xs-4 control-label">地址类型:</label>
107
+ <div class="col-xs-8">
108
+ <input type="text" v-show="false" v-model="useradders.f_address_type" :value.sync="useradders.f_address_type" v-validate:f_address_type = "['required']" >
109
+ <input-select
110
+ class="select select_list"
111
+ :value.sync="useradders.f_address_type"
112
+ v-model="useradders.f_address_type"
113
+ :options="addressTypeList"
114
+ :disable="mark === 1"
115
+ :valueSingle="true"></input-select>
116
+ </div>
117
+ </div>
118
+ <div class="form-group row vertical-center" :class="[$v.f_slice_area.required ? 'has-error' : '']">
119
+ <label class="col-xs-4 control-label">片&emsp;&emsp;区:</label>
120
+ <div class="col-xs-8">
121
+ <input type="text" v-show="false" v-model="useradders.f_slice_area" v-validate:f_slice_area = "['required']" >
122
+ <input-select
123
+ class="select select_list"
124
+ :value.sync="useradders.f_slice_area"
125
+ v-model="useradders.f_slice_area"
126
+ :options="sliceAreaList"
127
+ :disable="mark === 1"
128
+ :valueSingle="true"></input-select>
129
+ </div>
130
+ </div>
131
+ <div class="form-group row vertical-center" :class="[$v.f_pcd.required ? 'has-error' : '']">
132
+ <label class="col-xs-4 control-label">省&ensp;市&ensp;区:</label>
133
+ <div class="col-xs-8">
134
+ <input type="text" v-show="false" v-model="useradders.f_pcd" :value.sync="useradders.f_pcd" v-validate:f_pcd = "['required']" >
135
+ <input-select
136
+ class="select select_list"
137
+ :value.sync="useradders.f_pcd"
138
+ v-model="useradders.f_pcd"
139
+ :options="pcdList"
140
+ @change="pcdChange(),addressSplicing()"
141
+ :disable="mark === 1"
142
+ :valueSingle="true"></input-select>
143
+ </div>
144
+ </div>
145
+ <div class="form-group row vertical-center" :class="[$v.f_street.required ? 'has-error' : '']">
146
+ <label class="col-xs-4 control-label">街&emsp;&emsp;道:</label>
147
+ <div class="col-xs-8">
148
+ <input type="text" v-show="false" v-model="useradders.f_street" :value.sync="useradders.f_street" v-validate:f_street = "['required']" >
149
+ <input-select
150
+ class="select select_list"
151
+ :value.sync="useradders.f_street"
152
+ v-model="useradders.f_street"
153
+ :options="streetList"
154
+ @change="streetChange(),addressSplicing()"
155
+ :disable="mark === 1"
156
+ :valueSingle="true"></input-select>
157
+ </div>
158
+ </div>
159
+ <div class="form-group row vertical-center" v-if="useradders.f_address_type === '民用地址'" :class="[$v.f_residential_area.required ? 'has-error' : '']">
160
+ <label class="col-xs-4 control-label">小&emsp;&emsp;区:</label>
161
+ <div class="col-xs-8">
162
+ <input type="text" v-show="false" v-model="useradders.f_residential_area" :value.sync="useradders.f_residential_area" v-validate:f_residential_area = "['required']" >
163
+ <input-select
164
+ class="select select_list"
165
+ :value.sync="useradders.f_residential_area"
166
+ v-model="useradders.f_residential_area"
167
+ :options="residentialList"
168
+ @change="addressSplicing"
169
+ :disable="mark === 1"
170
+ :valueSingle="true"></input-select>
171
+ </div>
172
+ </div>
173
+ <div class="form-group row vertical-center" v-if="useradders.f_address_type === '特殊地址'">
174
+ <label class="col-xs-4 control-label">小&emsp;&emsp;区:</label>
175
+ <div class="col-xs-8">
176
+ <input-select
177
+ class="select select_list"
178
+ :value.sync="useradders.f_residential_area"
179
+ v-model="useradders.f_residential_area"
180
+ :options="residentialList"
181
+ @change="addressSplicing"
182
+ :disable="mark === 1"
183
+ :valueSingle="true"></input-select>
184
+ </div>
185
+ </div>
186
+ <div class="form-group row vertical-center" v-if="useradders.f_address_type === '民用地址'">
187
+ <label class="col-xs-4 control-label">楼&emsp;&emsp;号:</label>
188
+ <div class="col-xs-8">
189
+ <input class="form-control input_view col-xs-10" style="width: 80%"
190
+ placeholder="楼号"
191
+ v-model="useradders.f_building"
192
+ :value="useradders.f_building"
193
+ @change="addressSplicing"
194
+ :readonly="mark === 1"/>
195
+ <input class="form-control input_view col-xs-2" style="width: 20%"
196
+ v-model="useradders.f_building_suffix"
197
+ :value="useradders.f_building_suffix"
198
+ @change="addressSplicing"
199
+ :readonly="mark === 1"/>
200
+ </div>
201
+ </div>
202
+ <div class="form-group row vertical-center" v-if="useradders.f_address_type === '民用地址'">
203
+ <label class="col-xs-4 control-label">单&emsp;&emsp;元:</label>
204
+ <div class="col-xs-8">
205
+ <input class="form-control input_view col-xs-10" style="width: 80%"
206
+ placeholder="单元"
207
+ v-model="useradders.f_unit"
208
+ :value="useradders.f_unit"
209
+ @change="addressSplicing"
210
+ :readonly="mark === 1"/>
211
+ <input class="form-control input_view col-xs-2" style="width: 20%"
212
+ v-model="useradders.f_unit_suffix"
213
+ :value="useradders.f_unit_suffix"
214
+ @change="addressSplicing"
215
+ :readonly="mark === 1"/>
216
+ </div>
217
+ </div>
218
+ <div class="form-group row vertical-center" v-if="useradders.f_address_type === '民用地址'">
219
+ <label class="col-xs-4 control-label">楼&emsp;&emsp;层:</label>
220
+ <div class="col-xs-8">
221
+ <input class="form-control input_view col-xs-10" style="width: 80%"
222
+ placeholder="楼层"
223
+ v-model="useradders.f_floor"
224
+ :value="useradders.f_floor"
225
+ @change="addressSplicing"
226
+ :readonly="mark === 1"/>
227
+ <input class="form-control input_view col-xs-2" style="width: 20%"
228
+ v-model="useradders.f_floor_suffix"
229
+ :value="useradders.f_floor_suffix"
230
+ @change="addressSplicing"
231
+ :readonly="mark === 1"/>
232
+ </div>
233
+ </div>
234
+ <div class="form-group row vertical-center" v-if="useradders.f_address_type === '民用地址'" :class="[$v.f_room.required ? 'has-error' : '']">
235
+ <label class="col-xs-4 control-label">门&ensp;牌&ensp;号:</label>
236
+ <div class="col-xs-8">
237
+ <input class="form-control input_view col-xs-10" style="width: 80%"
238
+ placeholder="门牌号" v-validate:f_room = "['required']"
239
+ v-model="useradders.f_room"
240
+ :value="useradders.f_room"
241
+ @change="addressSplicing"
242
+ :readonly="mark === 1"/>
243
+ <input class="form-control input_view col-xs-2" style="width: 20%"
244
+ v-model="useradders.f_room_suffix"
245
+ :value="useradders.f_room_suffix"
246
+ @change="addressSplicing"
247
+ :readonly="mark === 1"/>
248
+ </div>
249
+ </div>
250
+ <div class="form-group row vertical-center">
251
+ <label class="col-xs-4 control-label">地&emsp;&emsp;址:</label>
252
+ <div class="col-xs-8">
253
+ <input class="form-control input_view"
254
+ placeholder="地址"
255
+ v-model="useradders.f_address"
256
+ :value.sync="useradders.f_address"
257
+ :readonly="mark === 1"/>
258
+ </div>
259
+ </div>
260
+ </div>
261
+ <!-- 表具信息 -->
262
+ <div class="form-group col-xs-12 panel panel-info">
263
+ <div class="panel-heading head row" style="background-color: #e8f4ff;margin-bottom: 10px">
264
+ <div class="col-xs-6 text-left">表具信息</div>
265
+ <div class="col-xs-6 text-right">
266
+ <svg @click="scanCode()" style="width: 25px;height: 25px;margin-right: 10px" t="1636095770822" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2457" width="64" height="64"><path d="M928.016126 543.908618 95.983874 543.908618c-17.717453 0-31.994625-14.277171-31.994625-31.994625S78.26642 479.919368 95.983874 479.919368l832.032253 0c17.717453 0 31.994625 14.277171 31.994625 31.994625S945.73358 543.908618 928.016126 543.908618z" p-id="2458"></path><path d="M832.032253 928.016126 639.892491 928.016126c-17.717453 0-31.994625-14.277171-31.994625-31.994625s14.277171-31.994625 31.994625-31.994625l191.967747 0c17.717453 0 31.994625-14.277171 31.994625-31.994625l0-159.973123c0-17.717453 14.277171-31.994625 31.994625-31.994625s31.994625 14.277171 31.994625 31.994625l0 159.973123C928.016126 884.840585 884.840585 928.016126 832.032253 928.016126z" p-id="2459"></path><path d="M351.94087 928.016126l-159.973123 0c-52.980346 0-95.983874-43.003528-95.983874-95.983874l0-159.973123c0-17.717453 14.277171-31.994625 31.994625-31.994625S159.973123 654.341676 159.973123 672.05913l0 159.973123c0 17.717453 14.449185 31.994625 31.994625 31.994625l159.973123 0c17.717453 0 31.994625 14.277171 31.994625 31.994625C383.935495 913.738955 369.658324 928.016126 351.94087 928.016126z" p-id="2460"></path><path d="M127.978498 383.935495c-17.717453 0-31.994625-14.277171-31.994625-31.994625l0-159.973123c0-52.980346 43.003528-95.983874 95.983874-95.983874l159.973123 0c17.717453 0 31.994625 14.277171 31.994625 31.994625S369.658324 159.973123 351.94087 159.973123l-159.973123 0c-17.545439 0-31.994625 14.449185-31.994625 31.994625l0 159.973123C159.973123 369.658324 145.695952 383.935495 127.978498 383.935495z" p-id="2461"></path><path d="M896.021502 383.935495c-17.717453 0-31.994625-14.277171-31.994625-31.994625l0-159.973123c0-17.545439-14.277171-31.994625-31.994625-31.994625L639.892491 159.973123c-17.717453 0-31.994625-14.277171-31.994625-31.994625s14.277171-31.994625 31.994625-31.994625l191.967747 0c52.980346 0 95.983874 43.003528 95.983874 95.983874l0 159.973123C928.016126 369.658324 913.738955 383.935495 896.021502 383.935495z" p-id="2462"></path></svg>
267
+ </div>
268
+ </div>
269
+ <div class="form-group row vertical-center" :class="[$v.gasbrand.required ? 'has-error' : '']">
270
+ <label class="col-xs-4 control-label">气表品牌:</label>
271
+ <div class="col-xs-8">
272
+ <input type="text" v-show="false" v-model="userfile.gasbrand.id" :value.sync="userfile.gasbrand.id" v-validate:gasbrand = "['required']" >
273
+ <input-select
274
+ class="select select_list"
275
+ :value.sync="userfile.gasbrand"
276
+ v-model="userfile.gasbrand"
277
+ :options="meterbrands"
278
+ @change="gasbrandChange()"
279
+ :disable="mark === 1"
280
+ :valueSingle="true"></input-select>
281
+ </div>
282
+ </div>
283
+ <div class="form-group row vertical-center" :class="[$v.gasmodel.required ? 'has-error' : '']">
284
+ <label class="col-xs-4 control-label">气表型号:</label>
285
+ <div class="col-xs-8">
286
+ <input type="text" v-show="false" v-model="userfile.gasmodel.id" :value.sync="userfile.gasmodel.id" v-validate:gasmodel = "['required']" >
287
+ <input-select
288
+ class="select select_list"
289
+ :value.sync="userfile.gasmodel"
290
+ v-model="userfile.gasmodel"
291
+ :options.sync="userfile.gasbrand.gasmodel"
292
+ @change="gasmodelChange()"
293
+ :disable="mark === 1"
294
+ :valueSingle="true"></input-select>
295
+ </div>
296
+ </div>
297
+ <div class="form-group row vertical-center" :class="[$v.f_meternumber.required ? 'has-error' : '']">
298
+ <label class="col-xs-4 control-label">表&emsp;&emsp;号:</label>
299
+ <div class="col-xs-8">
300
+ <input class="form-control input_view" style=""
301
+ placeholder="表号" v-validate:f_meternumber = "['required']"
302
+ v-model="userfile.f_meternumber"
303
+ :value.sync="userfile.f_meternumber"
304
+ @change="meternumberValidate()"
305
+ :readonly="mark === 1"/>
306
+ </div>
307
+ </div>
308
+ <div class="form-group row vertical-center">
309
+ <label class="col-xs-4 control-label">表&ensp;封&ensp;号:</label>
310
+ <div class="col-xs-8">
311
+ <input class="form-control input_view" style=""
312
+ placeholder="表封号"
313
+ v-model="userfile.f_metertitles"
314
+ :value="userfile.f_metertitles"
315
+ :readonly="mark === 1"/>
316
+ </div>
317
+ </div>
318
+ <div class="form-group row vertical-center">
319
+ <label class="col-xs-4 control-label">表&ensp;读&ensp;数:</label>
320
+ <div class="col-xs-8">
321
+ <input class="form-control input_view" style=""
322
+ type="number"
323
+ placeholder="表读数"
324
+ v-model="userfile.f_meter_base"
325
+ :value="userfile.f_meter_base"
326
+ :readonly="mark === 1"/>
327
+ </div>
328
+ </div>
329
+ <div class="form-group row vertical-center">
330
+ <label class="col-xs-4 control-label">初始底数:</label>
331
+ <div class="col-xs-8">
332
+ <input class="form-control input_view" style=""
333
+ type="number"
334
+ v-model="userfile.f_initial_base"
335
+ :value="userfile.f_initial_base"
336
+ placeholder="初始底数"
337
+ :readonly="mark === 1"/>
338
+ </div>
339
+ </div>
340
+ <div class="form-group row vertical-center">
341
+ <label class="col-xs-4 control-label">表&emsp;&emsp;向:</label>
342
+ <div class="col-xs-8">
343
+ <input-select
344
+ class="select select_list"
345
+ :value.sync="userfile.f_aroundmeter"
346
+ v-model="userfile.f_aroundmeter"
347
+ :options="aroundmeters"
348
+ :disable="mark === 1"
349
+ :valueSingle="true"></input-select>
350
+ </div>
351
+ </div>
352
+ <div class="form-group row vertical-center">
353
+ <label class="col-xs-4 control-label">安装位置:</label>
354
+ <div class="col-xs-8">
355
+ <input-select
356
+ class="select select_list"
357
+ :value.sync="userfile.f_position"
358
+ v-model="userfile.f_position"
359
+ :options="positions"
360
+ :disable="mark === 1"
361
+ :valueSingle="true"></input-select>
362
+ </div>
363
+ </div>
364
+ <div class="form-group row vertical-center">
365
+ <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
366
+ <div class="col-xs-8">
367
+ <input class="form-control input_view" style=""
368
+ v-model="userfile.f_install_person"
369
+ :value.sync="installperson(userfile.f_install_person)"
370
+ placeholder="安装人"
371
+ readonly/>
372
+ </div>
373
+ </div>
374
+ <div class="form-group row vertical-center">
375
+ <label class="col-xs-4 control-label">安装日期:</label>
376
+ <div class="col-xs-8">
377
+ <input class="form-control input_view" style=""
378
+ v-model="userfile.f_install_date"
379
+ :value.sync="installdate(userfile.f_install_date)"
380
+ placeholder="安装日期"
381
+ readonly/>
382
+ </div>
383
+ </div>
384
+ </div>
385
+ </article>
386
+ <footer slot="modal-footer" class="modal-footer">
387
+ <template v-if="mark !== 1">
388
+ <button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
389
+ </template>
390
+ </footer>
391
+ </modal>
392
+ </validator>
393
+
394
+ </template>
395
+ <script>
396
+ import Vue from 'vue'
397
+ import {PagedList} from 'vue-client'
398
+ import {HttpResetClass} from 'vue-client'
399
+ import {isEmpty} from '../../../../../components/Util'
400
+ // Date格式化
401
+ Date.prototype.Format = function (fmt) {
402
+ var o = {
403
+ 'M+': this.getMonth() + 1, // 月份
404
+ 'd+': this.getDate(), // 日
405
+ 'H+': this.getHours(), // 小时
406
+ 'm+': this.getMinutes(), // 分
407
+ 's+': this.getSeconds(), // 秒
408
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
409
+ 'S': this.getMilliseconds() // 毫秒
410
+ }
411
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
412
+ for (var k in o) {
413
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
414
+ }
415
+ return fmt
416
+ }
417
+
418
+ export default {
419
+ title: '安装明细',
420
+ props: {
421
+ selectdata: {
422
+ type: Object
423
+ },
424
+ mark: {
425
+ type: Number,
426
+ default: 0
427
+ }
428
+ },
429
+ data () {
430
+ return {
431
+ showUserFile: false,
432
+ model: {
433
+ rows: null
434
+ },
435
+ meterbrands: [], // 气表品牌
436
+ useradders: {},
437
+ userinfo: {},
438
+ userfile: {},
439
+ addressTypeList: [
440
+ {label: '民用地址', value: '民用地址'},
441
+ {label: '特殊地址', value: '特殊地址'}
442
+ ],
443
+ sliceAreaList: [],
444
+ pcdList: [],
445
+ streetList: [],
446
+ residentialList: [],
447
+ config: {}
448
+ }
449
+ },
450
+ ready () {
451
+ this.search()
452
+ this.getMeterbrands()
453
+ this.getSliceAreaList()
454
+ this.getPcdList()
455
+ },
456
+ methods: {
457
+ scanCode () {
458
+ console.log('===============扫码===================')
459
+ HostApp.__this__=this,
460
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
461
+ },
462
+ getCode() {
463
+ let code = HostApp.getCode().data;
464
+ console.log('===========扫码结果=============')
465
+ console.log(code)
466
+ this.$showMessage(`扫码结果: ${code}`)
467
+ this.userfile.f_meternumber = code
468
+ },
469
+ // 保存档案
470
+ async saveUserFile() {
471
+ let data = {
472
+ user: Vue.user,
473
+ useradders: this.useradders,
474
+ userinfo: this.userinfo,
475
+ userfile: this.userfile,
476
+ selectdata: this.selectdata
477
+ }
478
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/applyAddUserinfo`, {data:data}, {
479
+ resolveMsg: null,
480
+ rejectMsg: '用户档案添加失败!!!'
481
+ })
482
+ this.$dispatch('breakControl', this.selectdata)
483
+ },
484
+ addressSplicing () {
485
+ let f_pcd = this.useradders.f_pcd || ''
486
+ let f_street = this.useradders.f_street || ''
487
+ let f_residential_area = this.useradders.f_residential_area || ''
488
+ let f_building = this.useradders.f_building || ''
489
+ let f_building_suffix = f_building ? this.useradders.f_building_suffix : ''
490
+ let f_unit = this.useradders.f_unit || ''
491
+ let f_unit_suffix = f_unit ? this.useradders.f_unit_suffix : ''
492
+ let f_floor = this.useradders.f_floor || ''
493
+ let f_floor_suffix = f_floor ? this.useradders.f_floor_suffix : ''
494
+ let f_room = this.useradders.f_room || ''
495
+ let f_room_suffix = f_room ? this.useradders.f_room_suffix : ''
496
+
497
+ Vue.set(this.useradders, 'f_address', f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix)
498
+ },
499
+ // 检查表号是否存在
500
+ async meternumberValidate() {
501
+ if (!this.userfile.f_gasbrand_id) {
502
+ this.userfile.f_meternumber = ''
503
+ this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
504
+ return
505
+ }
506
+ if (this.userfile.f_gasbrand_id && this.userfile.f_meternumber) {
507
+ let data = {
508
+ f_meternumber: this.userfile.f_meternumber,
509
+ f_gasbrand_id: this.userfile.f_gasbrand_id
510
+ }
511
+ if (this.userfile.f_userfiles_id) {
512
+ data.f_userfiles_id = this.userfile.f_userfiles_id
513
+ }
514
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
515
+ resolveMsg: null,
516
+ rejectMsg: '表号验证失败!!'
517
+ })
518
+ if (res.data) {
519
+ this.userfile.f_meternumber = ''
520
+ this.$showAlert('表号已存在!!', 'warning', 3000)
521
+ }
522
+ }
523
+ },
524
+ // 选择气表型号
525
+ gasmodelChange() {
526
+ if (this.userfile.gasmodel) {
527
+ this.userfile.f_gasmodel_id = this.userfile.gasmodel.id
528
+ }
529
+ },
530
+ // 选择气表品牌
531
+ gasbrandChange() {
532
+ // 清空已保存的气表型号
533
+ this.userfile.f_gasmodel_id = null
534
+ this.userfile.gasmodel = null
535
+
536
+ if (this.userfile.gasbrand) {
537
+ // 气表品牌id
538
+ this.userfile.f_gasbrand_id = this.userfile.gasbrand.id
539
+ // 气表分类
540
+ this.userfile.f_meter_classify = this.userfile.gasbrand.f_meter_type
541
+ }
542
+ },
543
+ // 打开安装明细
544
+ async showUserFileModal (row) {
545
+ if (!row) {
546
+ console.log('-------------------添加----------------------')
547
+ }
548
+ console.log('------------------修正---------------------')
549
+ this.initUseradders()
550
+ this.showUserFile = true
551
+ },
552
+ async initUseradders () {
553
+ if (this.selectdata.f_apply_type === '民用报建') {
554
+ Vue.set(this.useradders, 'f_address_type', '民用地址')
555
+ }
556
+
557
+ await this.$getConfig(this, 'UserAddress')
558
+
559
+ this.useradders = Object.assign({}, this.useradders, this.config)
560
+ },
561
+ async streetChange () {
562
+ this.residentialList = []
563
+ this.useradders.f_residential_area = null
564
+ if (isEmpty(this.useradders.f_street)) {
565
+ return
566
+ }
567
+ let data = {
568
+ tablename: 't_area',
569
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.useradders.f_street}'`
570
+ // condition: `f_filialeid = '21142' and f_street = '${this.useradders.f_street}'`
571
+ }
572
+ let http = new HttpResetClass()
573
+ let res = await http.load(
574
+ 'POST',
575
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
576
+ {data: data},
577
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
578
+ )
579
+
580
+ this.residentialList = res.data.map(item => {
581
+ return {
582
+ label: item.f_residential_area,
583
+ value: item.f_residential_area
584
+ }
585
+ })
586
+ },
587
+ async pcdChange () {
588
+ this.streetList = []
589
+ this.useradders.f_street = null
590
+ this.residentialList = []
591
+ this.useradders.f_residential_area = null
592
+ if (isEmpty(this.useradders.f_pcd)) {
593
+ return
594
+ }
595
+
596
+ let data = {
597
+ tablename: 't_street',
598
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.useradders.f_pcd}'`
599
+ // condition: `f_filialeid = '21142' and f_pcd = '${this.useradders.f_pcd}'`
600
+ }
601
+ let http = new HttpResetClass()
602
+ let res = await http.load(
603
+ 'POST',
604
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
605
+ {data: data},
606
+ {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
607
+ )
608
+
609
+ this.streetList = res.data.map(item => {
610
+ return {
611
+ label: item.f_street,
612
+ value: item.f_street
613
+ }
614
+ })
615
+ },
616
+ async getPcdList () {
617
+ let data = {
618
+ tablename: 't_pcd',
619
+ condition: `f_filialeid = '${Vue.user.orgid}'`
620
+ // condition: `f_filialeid = '21142'`
621
+ }
622
+ let http = new HttpResetClass()
623
+ let res = await http.load(
624
+ 'POST',
625
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
626
+ {data: data},
627
+ {resolveMsg: null, rejectMsg: '省市区查询失败!!!'}
628
+ )
629
+
630
+ this.pcdList = res.data.map(item => {
631
+ return {
632
+ label: item.f_pcd,
633
+ value: item.f_pcd
634
+ }
635
+ })
636
+ },
637
+ async getSliceAreaList () {
638
+ let data = {
639
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
640
+ userid: Vue.user.id
641
+ // userid: '21142'
642
+ }
643
+
644
+ let http = new HttpResetClass()
645
+ let res = await http.load(
646
+ 'POST',
647
+ `${this.$androidUtil.getProxyUrl()}/rs/search`,
648
+ {data: data},
649
+ {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
650
+ )
651
+
652
+ this.sliceAreaList = res.data.map(item => {
653
+ return {
654
+ label: item.name,
655
+ value: item.name
656
+ }
657
+ })
658
+ },
659
+ // 获取气表品牌
660
+ async getMeterbrands() {
661
+ let http = new HttpResetClass()
662
+ let data = {
663
+ f_orgid: Vue.user.orgid
664
+ // f_orgid: 21142
665
+ }
666
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterbrands`, {data:data}, {
667
+ resolveMsg: null,
668
+ rejectMsg: null
669
+ })
670
+ this.meterbrands = res.data
671
+ },
672
+ searchCondition (args) {
673
+ args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
674
+
675
+ this.model.search(args.condition, args.model)
676
+ },
677
+ // 查询
678
+ async search () {
679
+ let http = new HttpResetClass()
680
+ let data = {
681
+ condition: `ua.f_process_id = '${this.selectdata.f_process_id}'`
682
+ }
683
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
684
+ // let res = await http.load('POST', `rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
685
+ resolveMsg: null,
686
+ rejectMsg: null
687
+ })
688
+ this.model.rows = res.data
689
+ },
690
+ // 关闭安装明细
691
+ closeUserFile() {
692
+ this.showUserFile = false
693
+ this.useradders = {}
694
+ this.userinfo = {}
695
+ this.userfile = {}
696
+ this.search()
697
+ }
698
+ },
699
+ events: {
700
+ },
701
+ computed: {
702
+ credentialsList() {
703
+ return this.$appdata.getParam('证件类型')
704
+ },
705
+ // 安装人
706
+ installperson() {
707
+ return function (f_install_person) {
708
+ if (isEmpty(f_install_person)) {
709
+ return Vue.user.name
710
+ }
711
+ return f_install_person
712
+ }
713
+ },
714
+ // 安装时间
715
+ installdate() {
716
+ return function (f_install_date) {
717
+ if (isEmpty(f_install_date)) {
718
+ return new Date().Format('yyyy-MM-dd HH:mm:ss')
719
+ }
720
+ return f_install_date
721
+ }
722
+ },
723
+ // 表向
724
+ aroundmeters() {
725
+ return this.$appdata.getParam('左右表')
726
+ },
727
+ // 安装位置
728
+ positions() {
729
+ return this.$appdata.getParam('安装位置')
730
+ }
731
+ },
732
+ watch: {
733
+ }
734
+ }
735
+ </script>
736
+ <style scoped>
737
+ .panel-self{
738
+ border-radius: 10px;
739
+ border:1px solid #499EDF;
740
+ background-color: #F8F8F8;
741
+ }
742
+ .vertical-center {
743
+ display: flex;
744
+ align-items: center;
745
+ text-align: center;
746
+ }
747
+ /*清除model中的浮动*/
748
+ .clearfix:after,.clearfix:before{
749
+ display: table;
750
+ }
751
+ .clearfix:after{
752
+ clear: both;
753
+ }
754
+ </style>