apply-clients 3.5.4-7 → 3.5.4-72

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 (105) hide show
  1. package/build/dev-server.js +7 -11
  2. package/package.json +2 -2
  3. package/src/App.vue +25 -25
  4. package/src/apply.js +2 -3
  5. package/src/applyAndroid.js +2 -0
  6. package/src/assets//344/270/213/350/275/275.png +0 -0
  7. package/src/components/android/AppCheckTakePic.vue +168 -0
  8. package/src/components/android/Process/AppServiceControl.vue +4 -0
  9. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +493 -493
  10. package/src/components/android/Process/Processes/AppChargeManagementNew.vue +637 -0
  11. package/src/components/android/Process/Processes/AppInstallationDetails.vue +480 -480
  12. package/src/components/image/dxf.png +0 -0
  13. package/src/components/product/Function/Service/FunctionServiceControl.vue +1 -1
  14. package/src/components/product/Material/MaterialDetailed.vue +1 -1
  15. package/src/components/product/MaterialsManage/MaterialsBase.vue +5 -1
  16. package/src/components/product/MaterialsManage/MaterialsManage.vue +2 -2
  17. package/src/components/product/PcZhihuanManagement.vue +160 -0
  18. package/src/components/product/Process/ExplorationSelect.vue +4 -1
  19. package/src/components/product/Process/ExplorationUser.vue +1 -0
  20. package/src/components/product/Process/Processes/addMaterialScience.vue +471 -471
  21. package/src/components/product/Process/Processes/chargeManagement.vue +1 -1
  22. package/src/components/product/ServiceView.vue +22 -1
  23. package/src/components/product/Supervisory/SupervisoryControl.vue +141 -140
  24. package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
  25. package/src/filiale/baiyin/android/AppServiceControl.vue +1762 -0
  26. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +823 -0
  27. package/src/filiale/baiyin/android/ByDeviceManagement.vue +916 -0
  28. package/src/filiale/baiyin/android.js +8 -0
  29. package/src/filiale/fugou/android/AppAddMaterialScience.vue +442 -0
  30. package/src/filiale/fugou/android/AppChargeManagement.vue +126 -12
  31. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -0
  32. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -0
  33. package/src/filiale/fugou/android/AppServiceControl.vue +21 -4
  34. package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -0
  35. package/src/filiale/fugou/android.js +6 -1
  36. package/src/filiale/fugou/pc/ExplorationSelect.vue +515 -0
  37. package/src/filiale/fugou/pc/InstallationDetails.vue +44 -32
  38. package/src/filiale/fugou/pc/ServiceControl.vue +124 -379
  39. package/src/filiale/fugou/pc/addMaterialScience.vue +482 -0
  40. package/src/filiale/fugou/pc/devicesManagement.vue +483 -0
  41. package/src/filiale/fugou/pc.js +4 -1
  42. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +20 -8
  43. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -0
  44. package/src/filiale/gongyi/android/AppInstallationDetails.vue +15 -10
  45. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -0
  46. package/src/filiale/gongyi/android/AppSign.vue +16 -3
  47. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -0
  48. package/src/filiale/gongyi/android.js +3 -0
  49. package/src/filiale/gongyi/pc/ApplyUpload.vue +31 -39
  50. package/src/filiale/gongyi/pc/PcAddLogs.vue +12 -4
  51. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -0
  52. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -0
  53. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +1 -1
  54. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -0
  55. package/src/filiale/gongyi/pc/addMaterialScience.vue +43 -7
  56. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -0
  57. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -0
  58. package/src/filiale/gongyi/pc.js +6 -1
  59. package/src/filiale/hongda/pc/SupervisoryList.vue +13 -0
  60. package/src/filiale/jinhuang/pc/ServiceControl.vue +1925 -0
  61. package/src/filiale/jinhuang/pc/chargeManagementNew.vue +589 -0
  62. package/src/filiale/jinhuang/pc.js +7 -0
  63. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -0
  64. package/src/filiale/qianneng/android/AppExplorationUser.vue +38 -0
  65. package/src/filiale/qianneng/android/AppInstallationDetails.vue +20 -11
  66. package/src/filiale/qianneng/android.js +2 -1
  67. package/src/filiale/qianneng/pc/ApplyUpload.vue +5 -4
  68. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +11 -6
  69. package/src/filiale/qianneng/pc/Applydetail.vue +0 -5
  70. package/src/filiale/qianneng/pc/InstallFunction.vue +2 -2
  71. package/src/filiale/qianneng/pc/InstallationDetails.vue +32 -4
  72. package/src/filiale/qianneng/pc/ServiceControl.vue +1 -0
  73. package/src/filiale/qianneng/pc/printactivatecard.vue +6 -6
  74. package/src/filiale/ruihua/pc/InstallationDetails.vue +610 -610
  75. package/src/filiale/ruihua/pc/ServiceControl.vue +20 -0
  76. package/src/filiale/ruihua/pc/printVentilation.vue +21 -6
  77. package/src/filiale/ruihua/pc.js +12 -12
  78. package/src/filiale/shexian/android/AppServiceControl.vue +12 -2
  79. package/src/filiale/shexian/android/AppTakePic.vue +15 -55
  80. package/src/filiale/siyangRH/android/AppAddMaterialScience.vue +0 -2
  81. package/src/filiale/siyangRH/pc/chargeManagement.vue +810 -0
  82. package/src/filiale/siyangRH/pc.js +1 -0
  83. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +16 -1
  84. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +32 -2
  85. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +518 -506
  86. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1083 -1092
  87. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +34 -1
  88. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1524 -1524
  89. package/src/filiale/yangchunboneng/android/AppUpload.vue +205 -136
  90. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +156 -144
  91. package/src/filiale/yangchunboneng/android.js +20 -20
  92. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -375
  93. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +59 -19
  94. package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -0
  95. package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +365 -365
  96. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +206 -2
  97. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -0
  98. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +590 -535
  99. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -0
  100. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -0
  101. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -0
  102. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -0
  103. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +111 -13
  104. package/src/filiale/yangchunboneng/pc.js +24 -18
  105. package/src/main.js +1 -1
@@ -1,480 +1,480 @@
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="安装明细" width="100%">
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
- type="number"
93
- οnkeyup="this.value=this.value.replace(/\s+/g,'')"
94
- :value="item.f_meternumber"
95
- @change="meternumberValidate(i)"
96
- :readonly="false"/>
97
- </div>
98
- </div>
99
- <div class="form-group row vertical-center">
100
- <label class="col-xs-4 control-label ">表&ensp;封&ensp;号:</label>
101
- <div class="col-xs-8">
102
- <input class="form-control input_view" style=""
103
- placeholder="表封号"
104
- v-model="item.f_metertitles"
105
- :value="item.f_metertitles"
106
- :readonly="false"/>
107
- </div>
108
- </div>
109
- <div class="form-group row vertical-center">
110
- <label class="col-xs-4 control-label">表&ensp;读&ensp;数:</label>
111
- <div class="col-xs-8">
112
- <input class="form-control input_view" style=""
113
- type="number"
114
- placeholder="表读数"
115
- v-model="item.f_meter_base"
116
- :value="item.f_meter_base"
117
- :readonly="false"/>
118
- </div>
119
- </div>
120
- <div class="form-group row vertical-center">
121
- <label class="col-xs-4 control-label">初始底数:</label>
122
- <div class="col-xs-8">
123
- <input class="form-control input_view" style=""
124
- type="number"
125
- v-model="item.f_initial_base"
126
- :value="item.f_initial_base"
127
- placeholder="初始底数"
128
- :readonly="false"/>
129
- </div>
130
- </div>
131
- <div class="form-group row vertical-center">
132
- <label class="col-xs-4 control-label">表&emsp;&emsp;向:</label>
133
- <div class="col-xs-8">
134
- <input-select
135
- class="select select_list"
136
- :value.sync="item.f_aroundmeter"
137
- v-model="item.f_aroundmeter"
138
- :options="aroundmeters"
139
- :valueSingle="true"></input-select>
140
- </div>
141
- </div>
142
- <div class="form-group row vertical-center">
143
- <label class="col-xs-4 control-label">安装位置:</label>
144
- <div class="col-xs-8">
145
- <input-select
146
- class="select select_list"
147
- :value.sync="item.f_position"
148
- v-model="item.f_position"
149
- :options="positions"
150
- :valueSingle="true"></input-select>
151
- </div>
152
- </div>
153
- <div class="form-group row vertical-center">
154
- <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
155
- <div class="col-xs-8">
156
- <input class="form-control input_view" style=""
157
- v-model="item.f_install_person"
158
- :value.sync="installperson(item.f_install_person)"
159
- placeholder="安装人"
160
- readonly/>
161
- <!-- <input-select-->
162
- <!-- class="select select_list"-->
163
- <!-- :value.sync="item.f_install_person"-->
164
- <!-- v-model="item.f_install_person"-->
165
- <!-- :options="installperson"-->
166
- <!-- :valueSingle="true"></input-select>-->
167
- </div>
168
- </div>
169
- <div class="form-group row vertical-center">
170
- <label class="col-xs-4 control-label">安装日期:</label>
171
- <div class="col-xs-8">
172
- <input class="form-control input_view" style=""
173
- v-model="item.f_install_date"
174
- :value.sync="installdate(item.f_install_date)"
175
- placeholder="安装日期"
176
- readonly/>
177
- <!-- <datepicker-->
178
- <!-- placeholder="安装日期"-->
179
- <!-- :value.sync="item.f_install_date"-->
180
- <!-- v-model="item.f_install_date"-->
181
- <!-- format="yyyy-MM-dd HH:mm:ss"-->
182
- <!-- :show-reset-button="reset">-->
183
- <!-- </datepicker>-->
184
- </div>
185
- </div>
186
- </div>
187
-
188
- </article>
189
- <footer slot="modal-footer" class="modal-footer">
190
- <!-- 去除一户多表 -->
191
- <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
192
- <button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
193
- </footer>
194
- </modal>
195
- </div>
196
-
197
- </template>
198
- <script>
199
- import Vue from 'vue'
200
- import {PagedList} from 'vue-client'
201
- import {HttpResetClass} from 'vue-client'
202
- import {isEmpty} from '../../../Util'
203
- // Date格式化
204
- Date.prototype.Format = function (fmt) {
205
- var o = {
206
- 'M+': this.getMonth() + 1, // 月份
207
- 'd+': this.getDate(), // 日
208
- 'H+': this.getHours(), // 小时
209
- 'm+': this.getMinutes(), // 分
210
- 's+': this.getSeconds(), // 秒
211
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
212
- 'S': this.getMilliseconds() // 毫秒
213
- }
214
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
215
- for (var k in o) {
216
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
217
- }
218
- return fmt
219
- }
220
-
221
- export default {
222
- title: '安装明细',
223
- props: {
224
- selectdata: {
225
- type: Object
226
- },
227
- mark: {
228
- type: Number,
229
- default: 0
230
- }
231
- },
232
- data () {
233
- return {
234
- showUserFile: false,
235
- model: {
236
- rows: null
237
- },
238
- meterbrands: [], // 气表品牌
239
- useradders: null,
240
- userinfo: {}
241
- }
242
- },
243
- ready () {
244
- this.search()
245
- this.getMeterbrands()
246
- },
247
- methods: {
248
- // 删除未保存的表具
249
- async deleteUserFile (index) {
250
- this.userinfo.userfiles.splice(index, 1)
251
- },
252
- // 追加表具
253
- addUserFile() {
254
- this.userinfo.userfiles.push({})
255
- },
256
- // 保存档案
257
- async saveUserFile() {
258
- // 检查必填项
259
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
260
- let userfile = this.userinfo.userfiles[i]
261
- if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
262
- this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
263
- return
264
- }
265
- if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
266
- this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
267
- return
268
- }
269
- if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
270
- this.$showMessage(`表具${i+1}表号没有填写!!!`)
271
- return
272
- }
273
- }
274
- let data = {
275
- // 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":[]},
276
- user: Vue.user,
277
- useradders: this.useradders,
278
- userinfo: this.userinfo,
279
- selectdata: this.selectdata
280
- }
281
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/addInstallationDetails`, {data:data}, {
282
- // let res = await this.$resetpost(`rs/logic/addInstallationDetails`, {data:data}, {
283
- resolveMsg: null,
284
- rejectMsg: '表具添加失败!!!'
285
- })
286
-
287
- this.closeUserFile()
288
- this.$dispatch('breakControl')
289
- },
290
- // 检查表号是否存在
291
- async meternumberValidate(i) {
292
- if (!this.userinfo.userfiles[i].f_gasbrand_id) {
293
- this.userinfo.userfiles[i].f_meternumber = ''
294
- this.$showMessage('请先选择气表品牌!!!')
295
- return
296
- }
297
- if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
298
- let data = {
299
- f_meternumber: this.userinfo.userfiles[i].f_meternumber,
300
- f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
301
- }
302
- if (this.userinfo.userfiles[i].f_userfiles_id) {
303
- data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
304
- }
305
- let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
306
- // let res = await this.$resetpost(`rs/logic/meterbrandsNumberValidate`, {data:data}, {
307
- resolveMsg: null,
308
- rejectMsg: '表号验证失败!!'
309
- })
310
- if (res.data) {
311
- this.userinfo.userfiles[i].f_meternumber = ''
312
- this.$showMessage('表号已存在!!')
313
- }
314
- }
315
- },
316
- // 选择气表型号
317
- gasmodelChange(i) {
318
- if (this.userinfo.userfiles[i].gasmodel) {
319
- this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
320
- }
321
- },
322
- // 选择气表品牌
323
- gasbrandChange(i) {
324
- // 清空已保存的气表型号
325
- this.userinfo.userfiles[i].f_gasmodel_id = null
326
- this.userinfo.userfiles[i].gasmodel = null
327
-
328
- if (this.userinfo.userfiles[i].gasbrand) {
329
- // 气表品牌id
330
- this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
331
- // 气表分类
332
- this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
333
- }
334
- },
335
- // 打开安装明细
336
- async showUserFileModal (row) {
337
- this.useradders = row
338
-
339
- let http = new HttpResetClass()
340
- let data = {
341
- condition: `f_userinfo_id='${row.f_userinfo_id}'`
342
- }
343
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfoAndUserfiles`, {data:data}, {
344
- // let res = await http.load('POST', `rs/logic/getUserinfoAndUserfiles`, {data:data}, {
345
- resolveMsg: null,
346
- rejectMsg: null
347
- })
348
-
349
- this.userinfo = res.data
350
-
351
- // 已有表具的 气表信息补充
352
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
353
- for (const item of this.meterbrands) {
354
- if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
355
- // this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
356
- Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
357
- }
358
- }
359
- if (this.userinfo.userfiles[i].gasbrand) {
360
- for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
361
- if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
362
- // this.userinfo.userfiles[i].gasmodel = item.value
363
- Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
364
- }
365
- }
366
- }
367
- }
368
-
369
- this.showUserFile = true
370
- },
371
- // 获取气表品牌
372
- async getMeterbrands() {
373
- let http = new HttpResetClass()
374
- let data = {
375
- f_orgid: Vue.user.orgid
376
- // f_orgid: '10101'
377
- }
378
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterbrands`, {data:data}, {
379
- // let res = await http.load('POST', `rs/logic/getMeterbrands`, {data:data}, {
380
- resolveMsg: null,
381
- rejectMsg: null
382
- })
383
- this.meterbrands = res.data
384
- },
385
- // 查询
386
- async search () {
387
- var tablestate=''
388
- if(this.selectdata.f_sub_state==='完工'){
389
- tablestate='正常'
390
- }else{
391
- tablestate='待开通'
392
- }
393
- let http = new HttpResetClass()
394
- let data = {
395
- condition: `ua.f_process_id = '${this.selectdata.f_process_id}'`,
396
- condValue : tablestate
397
- }
398
-
399
- if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建' || this.selectdata.f_apply_type === '通气点火') {
400
- data.condition = `ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
401
- }
402
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
403
- // let res = await http.load('POST', `rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
404
- resolveMsg: null,
405
- rejectMsg: null
406
- })
407
- this.model.rows = res.data
408
- if (this.selectdata.f_apply_type === '团购报建') {
409
- let f_installed_households = 0
410
- for (const item of res.data) {
411
- if (item.f_userfiles_num > 0) {
412
- f_installed_households++
413
- }
414
- }
415
- let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
416
- for (const item of this.selectdata.fields) {
417
- if (item.label === '已安装户数') {
418
- item.value = f_installed_households
419
- }
420
- if (item.label === '未安装户数') {
421
- item.value = f_uninstalled_households
422
- }
423
- }
424
- }
425
- },
426
- // 关闭安装明细
427
- closeUserFile() {
428
- this.showUserFile = false
429
- this.useradders = null
430
- this.userinfo = {}
431
- this.search()
432
- },
433
- },
434
- events: {
435
- },
436
- computed: {
437
- // 安装人
438
- installperson() {
439
- return function (f_install_person) {
440
- if (isEmpty(f_install_person)) {
441
- return Vue.user.name
442
- }
443
- return f_install_person
444
- }
445
- },
446
- installdate() {
447
- return function (f_install_date) {
448
- if (isEmpty(f_install_date)) {
449
- return new Date().Format('yyyy-MM-dd HH:mm:ss')
450
- }
451
- return f_install_date
452
- }
453
- },
454
- // 表向
455
- aroundmeters() {
456
- return this.$appdata.getParam('左右表')
457
- },
458
- // 安装位置
459
- positions() {
460
- return this.$appdata.getParam('安装位置')
461
- }
462
- },
463
- watch: {
464
- }
465
- }
466
- </script>
467
- <style scoped>
468
- .vertical-center {
469
- display: flex;
470
- align-items: center;
471
- text-align: center;
472
- }
473
- /*清除model中的浮动*/
474
- .clearfix:after,.clearfix:before{
475
- display: table;
476
- }
477
- .clearfix:after{
478
- clear: both;
479
- }
480
- </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>客户编号</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="安装明细" width="100%">
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
+ type="number"
93
+ οnkeyup="this.value=this.value.replace(/\s+/g,'')"
94
+ :value="item.f_meternumber"
95
+ @change="meternumberValidate(i)"
96
+ :readonly="false"/>
97
+ </div>
98
+ </div>
99
+ <div class="form-group row vertical-center">
100
+ <label class="col-xs-4 control-label ">表&ensp;封&ensp;号:</label>
101
+ <div class="col-xs-8">
102
+ <input class="form-control input_view" style=""
103
+ placeholder="表封号"
104
+ v-model="item.f_metertitles"
105
+ :value="item.f_metertitles"
106
+ :readonly="false"/>
107
+ </div>
108
+ </div>
109
+ <div class="form-group row vertical-center">
110
+ <label class="col-xs-4 control-label">表&ensp;读&ensp;数:</label>
111
+ <div class="col-xs-8">
112
+ <input class="form-control input_view" style=""
113
+ type="number"
114
+ placeholder="表读数"
115
+ v-model="item.f_meter_base"
116
+ :value="item.f_meter_base"
117
+ :readonly="false"/>
118
+ </div>
119
+ </div>
120
+ <div class="form-group row vertical-center">
121
+ <label class="col-xs-4 control-label">初始底数:</label>
122
+ <div class="col-xs-8">
123
+ <input class="form-control input_view" style=""
124
+ type="number"
125
+ v-model="item.f_initial_base"
126
+ :value="item.f_initial_base"
127
+ placeholder="初始底数"
128
+ :readonly="false"/>
129
+ </div>
130
+ </div>
131
+ <div class="form-group row vertical-center">
132
+ <label class="col-xs-4 control-label">表&emsp;&emsp;向:</label>
133
+ <div class="col-xs-8">
134
+ <input-select
135
+ class="select select_list"
136
+ :value.sync="item.f_aroundmeter"
137
+ v-model="item.f_aroundmeter"
138
+ :options="aroundmeters"
139
+ :valueSingle="true"></input-select>
140
+ </div>
141
+ </div>
142
+ <div class="form-group row vertical-center">
143
+ <label class="col-xs-4 control-label">安装位置:</label>
144
+ <div class="col-xs-8">
145
+ <input-select
146
+ class="select select_list"
147
+ :value.sync="item.f_position"
148
+ v-model="item.f_position"
149
+ :options="positions"
150
+ :valueSingle="true"></input-select>
151
+ </div>
152
+ </div>
153
+ <div class="form-group row vertical-center">
154
+ <label class="col-xs-4 control-label">安&ensp;装&ensp;人:</label>
155
+ <div class="col-xs-8">
156
+ <input class="form-control input_view" style=""
157
+ v-model="item.f_install_person"
158
+ :value.sync="installperson(item.f_install_person)"
159
+ placeholder="安装人"
160
+ readonly/>
161
+ <!-- <input-select-->
162
+ <!-- class="select select_list"-->
163
+ <!-- :value.sync="item.f_install_person"-->
164
+ <!-- v-model="item.f_install_person"-->
165
+ <!-- :options="installperson"-->
166
+ <!-- :valueSingle="true"></input-select>-->
167
+ </div>
168
+ </div>
169
+ <div class="form-group row vertical-center">
170
+ <label class="col-xs-4 control-label">安装日期:</label>
171
+ <div class="col-xs-8">
172
+ <input class="form-control input_view" style=""
173
+ v-model="item.f_install_date"
174
+ :value.sync="installdate(item.f_install_date)"
175
+ placeholder="安装日期"
176
+ readonly/>
177
+ <!-- <datepicker-->
178
+ <!-- placeholder="安装日期"-->
179
+ <!-- :value.sync="item.f_install_date"-->
180
+ <!-- v-model="item.f_install_date"-->
181
+ <!-- format="yyyy-MM-dd HH:mm:ss"-->
182
+ <!-- :show-reset-button="reset">-->
183
+ <!-- </datepicker>-->
184
+ </div>
185
+ </div>
186
+ </div>
187
+
188
+ </article>
189
+ <footer slot="modal-footer" class="modal-footer">
190
+ <!-- 去除一户多表 -->
191
+ <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
192
+ <button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
193
+ </footer>
194
+ </modal>
195
+ </div>
196
+
197
+ </template>
198
+ <script>
199
+ import Vue from 'vue'
200
+ import {PagedList} from 'vue-client'
201
+ import {HttpResetClass} from 'vue-client'
202
+ import {isEmpty} from '../../../Util'
203
+ // Date格式化
204
+ Date.prototype.Format = function (fmt) {
205
+ var o = {
206
+ 'M+': this.getMonth() + 1, // 月份
207
+ 'd+': this.getDate(), // 日
208
+ 'H+': this.getHours(), // 小时
209
+ 'm+': this.getMinutes(), // 分
210
+ 's+': this.getSeconds(), // 秒
211
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
212
+ 'S': this.getMilliseconds() // 毫秒
213
+ }
214
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
215
+ for (var k in o) {
216
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
217
+ }
218
+ return fmt
219
+ }
220
+
221
+ export default {
222
+ title: '安装明细',
223
+ props: {
224
+ selectdata: {
225
+ type: Object
226
+ },
227
+ mark: {
228
+ type: Number,
229
+ default: 0
230
+ }
231
+ },
232
+ data () {
233
+ return {
234
+ showUserFile: false,
235
+ model: {
236
+ rows: null
237
+ },
238
+ meterbrands: [], // 气表品牌
239
+ useradders: null,
240
+ userinfo: {}
241
+ }
242
+ },
243
+ ready () {
244
+ this.search()
245
+ this.getMeterbrands()
246
+ },
247
+ methods: {
248
+ // 删除未保存的表具
249
+ async deleteUserFile (index) {
250
+ this.userinfo.userfiles.splice(index, 1)
251
+ },
252
+ // 追加表具
253
+ addUserFile() {
254
+ this.userinfo.userfiles.push({})
255
+ },
256
+ // 保存档案
257
+ async saveUserFile() {
258
+ // 检查必填项
259
+ for (let i = 0; i < this.userinfo.userfiles.length; i++) {
260
+ let userfile = this.userinfo.userfiles[i]
261
+ if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
262
+ this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
263
+ return
264
+ }
265
+ if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
266
+ this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
267
+ return
268
+ }
269
+ if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
270
+ this.$showMessage(`表具${i+1}表号没有填写!!!`)
271
+ return
272
+ }
273
+ }
274
+ let data = {
275
+ // 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":[]},
276
+ user: Vue.user,
277
+ useradders: this.useradders,
278
+ userinfo: this.userinfo,
279
+ selectdata: this.selectdata
280
+ }
281
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/addInstallationDetails`, {data:data}, {
282
+ // let res = await this.$resetpost(`rs/logic/addInstallationDetails`, {data:data}, {
283
+ resolveMsg: null,
284
+ rejectMsg: '表具添加失败!!!'
285
+ })
286
+
287
+ this.closeUserFile()
288
+ this.$dispatch('breakControl')
289
+ },
290
+ // 检查表号是否存在
291
+ async meternumberValidate(i) {
292
+ if (!this.userinfo.userfiles[i].f_gasbrand_id) {
293
+ this.userinfo.userfiles[i].f_meternumber = ''
294
+ this.$showMessage('请先选择气表品牌!!!')
295
+ return
296
+ }
297
+ if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
298
+ let data = {
299
+ f_meternumber: this.userinfo.userfiles[i].f_meternumber,
300
+ f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
301
+ }
302
+ if (this.userinfo.userfiles[i].f_userfiles_id) {
303
+ data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
304
+ }
305
+ let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
306
+ // let res = await this.$resetpost(`rs/logic/meterbrandsNumberValidate`, {data:data}, {
307
+ resolveMsg: null,
308
+ rejectMsg: '表号验证失败!!'
309
+ })
310
+ if (res.data) {
311
+ this.userinfo.userfiles[i].f_meternumber = ''
312
+ this.$showMessage('表号已存在!!')
313
+ }
314
+ }
315
+ },
316
+ // 选择气表型号
317
+ gasmodelChange(i) {
318
+ if (this.userinfo.userfiles[i].gasmodel) {
319
+ this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
320
+ }
321
+ },
322
+ // 选择气表品牌
323
+ gasbrandChange(i) {
324
+ // 清空已保存的气表型号
325
+ this.userinfo.userfiles[i].f_gasmodel_id = null
326
+ this.userinfo.userfiles[i].gasmodel = null
327
+
328
+ if (this.userinfo.userfiles[i].gasbrand) {
329
+ // 气表品牌id
330
+ this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
331
+ // 气表分类
332
+ this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
333
+ }
334
+ },
335
+ // 打开安装明细
336
+ async showUserFileModal (row) {
337
+ this.useradders = row
338
+
339
+ let http = new HttpResetClass()
340
+ let data = {
341
+ condition: `f_userinfo_id='${row.f_userinfo_id}'`
342
+ }
343
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfoAndUserfiles`, {data:data}, {
344
+ // let res = await http.load('POST', `rs/logic/getUserinfoAndUserfiles`, {data:data}, {
345
+ resolveMsg: null,
346
+ rejectMsg: null
347
+ })
348
+
349
+ this.userinfo = res.data
350
+
351
+ // 已有表具的 气表信息补充
352
+ for (let i = 0; i < this.userinfo.userfiles.length; i++) {
353
+ for (const item of this.meterbrands) {
354
+ if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
355
+ // this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
356
+ Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
357
+ }
358
+ }
359
+ if (this.userinfo.userfiles[i].gasbrand) {
360
+ for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
361
+ if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
362
+ // this.userinfo.userfiles[i].gasmodel = item.value
363
+ Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
364
+ }
365
+ }
366
+ }
367
+ }
368
+
369
+ this.showUserFile = true
370
+ },
371
+ // 获取气表品牌
372
+ async getMeterbrands() {
373
+ let http = new HttpResetClass()
374
+ let data = {
375
+ f_orgid: Vue.user.orgid
376
+ // f_orgid: '10101'
377
+ }
378
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterbrands`, {data:data}, {
379
+ // let res = await http.load('POST', `rs/logic/getMeterbrands`, {data:data}, {
380
+ resolveMsg: null,
381
+ rejectMsg: null
382
+ })
383
+ this.meterbrands = res.data
384
+ },
385
+ // 查询
386
+ async search () {
387
+ var tablestate=''
388
+ if(this.selectdata.f_sub_state==='完工'){
389
+ tablestate='正常'
390
+ }else{
391
+ tablestate='待开通'
392
+ }
393
+ let http = new HttpResetClass()
394
+ let data = {
395
+ condition: `ua.f_process_id = '${this.selectdata.f_process_id}'`,
396
+ condValue : tablestate
397
+ }
398
+
399
+ if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建' || this.selectdata.f_apply_type === '通气点火') {
400
+ data.condition = `ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
401
+ }
402
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
403
+ // let res = await http.load('POST', `rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
404
+ resolveMsg: null,
405
+ rejectMsg: null
406
+ })
407
+ this.model.rows = res.data
408
+ if (this.selectdata.f_apply_type === '团购报建') {
409
+ let f_installed_households = 0
410
+ for (const item of res.data) {
411
+ if (item.f_userfiles_num > 0) {
412
+ f_installed_households++
413
+ }
414
+ }
415
+ let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
416
+ for (const item of this.selectdata.fields) {
417
+ if (item.label === '已安装户数') {
418
+ item.value = f_installed_households
419
+ }
420
+ if (item.label === '未安装户数') {
421
+ item.value = f_uninstalled_households
422
+ }
423
+ }
424
+ }
425
+ },
426
+ // 关闭安装明细
427
+ closeUserFile() {
428
+ this.showUserFile = false
429
+ this.useradders = null
430
+ this.userinfo = {}
431
+ this.search()
432
+ },
433
+ },
434
+ events: {
435
+ },
436
+ computed: {
437
+ // 安装人
438
+ installperson() {
439
+ return function (f_install_person) {
440
+ if (isEmpty(f_install_person)) {
441
+ return Vue.user.name
442
+ }
443
+ return f_install_person
444
+ }
445
+ },
446
+ installdate() {
447
+ return function (f_install_date) {
448
+ if (isEmpty(f_install_date)) {
449
+ return new Date().Format('yyyy-MM-dd HH:mm:ss')
450
+ }
451
+ return f_install_date
452
+ }
453
+ },
454
+ // 表向
455
+ aroundmeters() {
456
+ return this.$appdata.getParam('左右表')
457
+ },
458
+ // 安装位置
459
+ positions() {
460
+ return this.$appdata.getParam('安装位置')
461
+ }
462
+ },
463
+ watch: {
464
+ }
465
+ }
466
+ </script>
467
+ <style scoped>
468
+ .vertical-center {
469
+ display: flex;
470
+ align-items: center;
471
+ text-align: center;
472
+ }
473
+ /*清除model中的浮动*/
474
+ .clearfix:after,.clearfix:before{
475
+ display: table;
476
+ }
477
+ .clearfix:after{
478
+ clear: both;
479
+ }
480
+ </style>