apply-clients 3.4.64 → 3.4.66

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 +2 -2
  2. package/dist-android/static/18.js +2 -2
  3. package/dist-android/static/18.js.map +1 -1
  4. package/dist-android/static/19.js +2 -2
  5. package/dist-android/static/19.js.map +1 -1
  6. package/dist-android/static/24.js +2 -2
  7. package/dist-android/static/24.js.map +1 -1
  8. package/dist-android/static/25.js +2 -2
  9. package/dist-android/static/25.js.map +1 -1
  10. package/dist-android/static/26.js +2 -2
  11. package/dist-android/static/26.js.map +1 -1
  12. package/dist-android/static/28.js +2 -2
  13. package/dist-android/static/28.js.map +1 -1
  14. package/dist-android/static/30.js +2 -2
  15. package/dist-android/static/30.js.map +1 -1
  16. package/dist-android/static/34.js +2 -2
  17. package/dist-android/static/34.js.map +1 -1
  18. package/dist-android/static/43.js +2 -2
  19. package/dist-android/static/43.js.map +1 -1
  20. package/dist-android/static/47.js +2 -2
  21. package/dist-android/static/47.js.map +1 -1
  22. package/dist-android/static/50.js +2 -2
  23. package/dist-android/static/50.js.map +1 -1
  24. package/dist-android/static/52.js +2 -2
  25. package/dist-android/static/52.js.map +1 -1
  26. package/dist-android/static/53.js +2 -2
  27. package/dist-android/static/53.js.map +1 -1
  28. package/dist-android/static/54.js +2 -2
  29. package/dist-android/static/54.js.map +1 -1
  30. package/dist-android/static/60.js +2 -2
  31. package/dist-android/static/60.js.map +1 -1
  32. package/dist-android/static/63.js +2 -2
  33. package/dist-android/static/63.js.map +1 -1
  34. package/dist-android/static/64.js +2 -2
  35. package/dist-android/static/64.js.map +1 -1
  36. package/dist-android/static/78.js +2 -2
  37. package/dist-android/static/78.js.map +1 -1
  38. package/dist-android/static/83.js +2 -2
  39. package/dist-android/static/83.js.map +1 -1
  40. package/dist-android/static/84.js +2 -2
  41. package/dist-android/static/84.js.map +1 -1
  42. package/dist-android/static/86.js +2 -2
  43. package/dist-android/static/86.js.map +1 -1
  44. package/dist-android/static/87.js +2 -2
  45. package/dist-android/static/87.js.map +1 -1
  46. package/dist-android/static/89.js +2 -2
  47. package/dist-android/static/89.js.map +1 -1
  48. package/dist-android/static/97.js +2 -2
  49. package/dist-android/static/97.js.map +1 -1
  50. package/dist-android/static/app.js +80 -80
  51. package/dist-android/static/app.js.map +1 -1
  52. package/package.json +4 -3
  53. package/src/apply.js +5 -0
  54. package/src/applyAndroid.js +2 -0
  55. package/src/components/android/AppSign.vue +154 -154
  56. package/src/components/android/AppTakePic.vue +143 -143
  57. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -344
  58. package/src/components/android/Ignition/VentilationIgnition.vue +408 -0
  59. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +455 -0
  60. package/src/components/android/Process/AppServiceControl.vue +1708 -1708
  61. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -477
  62. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -519
  63. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -298
  64. package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -156
  65. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -537
  66. package/src/components/product/ApplyCharge/ApplyChargeList.vue +470 -470
  67. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -445
  68. package/src/components/product/Ignition/IgnitionDispatch.vue +92 -0
  69. package/src/components/product/Ignition/IgnitionList.vue +236 -0
  70. package/src/components/product/Ignition/IgnitionListManage.vue +413 -0
  71. package/src/components/product/Ignition/IgnitionRecord.vue +357 -0
  72. package/src/components/product/Process/ExplorationSelect.vue +0 -13
  73. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -454
  74. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  75. package/src/components/product/Process/Processes/devicesManagement.vue +484 -484
  76. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
  77. package/src/components/product/Process/Service/ServiceControl.vue +56 -1
  78. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  79. package/src/components/product/Process/ShowBackReason.vue +33 -33
  80. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +882 -882
  81. package/src/components/product/VueUtils/ApplyUpload.vue +287 -287
  82. package/src/filiale/gehua/pc/ServiceControl.vue +1938 -1938
  83. package/src/filiale/gehua/pc/SupervisoryServiceControl.vue +890 -890
  84. package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +520 -520
  85. package/src/filiale/guangxi/android/Process/Processes/AppDevicesManagement.vue +519 -519
  86. package/src/filiale/guangxi/android/Process/Processes/AppServiceControl.vue +1708 -1708
  87. package/src/filiale/guangxi/android/Process/Processes/AppSupplementalAgreement.vue +298 -298
  88. package/src/filiale/guangxi/pc/ApplyCharge/ApplyChargeList.vue +470 -470
  89. package/src/filiale/guangxi/pc/ApplyCharge/chargeManagement.vue +724 -724
  90. package/src/filiale/guangxi/pc/Process/Service/ServiceControl.vue +1922 -1922
  91. package/src/filiale/guangxi/pc/Process/Service/ShowBackReason.vue +33 -33
  92. package/src/filiale/guangxi/pc/Process/Service/SupervisoryServiceControl.vue +891 -891
  93. package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +517 -517
  94. package/src/filiale/guangxi/pc/Process/ShowBackReason.vue +33 -33
  95. package/src/filiale/shexian/pc/ExplorationSelect.vue +474 -0
  96. package/src/filiale/shexian/pc.js +6 -0
  97. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +735 -735
  98. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -824
  99. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -650
  100. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -528
  101. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -809
  102. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -595
  103. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +621 -621
  104. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1108 -1108
  105. package/dist.7z +0 -0
@@ -1,809 +1,809 @@
1
- <template>
2
- <work-busy :is-busy="showWork" v-show="showWork"></work-busy>
3
-
4
- <div class="col-sm-12" style="margin: 20px 0px;">
5
- <criteria-paged :model="model" v-ref:cp>
6
- <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- </div>
9
- </criteria>
10
- <data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
11
- <template partial='head'>
12
- <tr>
13
- <th>序号</th>
14
- <th>客户编号</th>
15
- <th>客户名称</th>
16
- <th>客户电话</th>
17
- <th>地址信息</th>
18
- <th>表具数量</th>
19
- <th>
20
- <button
21
- type="button"
22
- class="btn btn-info head-but"
23
- @click="$parent.$parent.$parent.showUserFileModal()"
24
- :disabled="$parent.$parent.$parent.mark === 1 || $parent.$parent.$parent.model.count >= $parent.$parent.$parent.selectdata.f_install_count"
25
- >添加用户</button>
26
- </th>
27
- </tr>
28
- </template>
29
- <template partial='body'>
30
- <tr>
31
- <td style="text-align: center;">
32
- <nobr>{{$index+1}}</nobr>
33
- </td>
34
- <td style="text-align: center;">
35
- <nobr>{{row.f_userinfo_code}}</nobr>
36
- </td>
37
- <td style="text-align: center;">
38
- <nobr>{{row.f_user_name}}</nobr>
39
- </td>
40
- <td style="text-align: center;">
41
- <nobr>{{row.f_user_phone}}</nobr>
42
- </td>
43
- <td style="text-align: center;">
44
- <nobr>{{row.f_address}}</nobr>
45
- </td>
46
- <td style="text-align: center;">
47
- <nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
48
- </td>
49
- <td style="text-align: center;">
50
- <nobr>
51
- <button
52
- v-if="false"
53
- type="button" name="button" class="btn btn-link"
54
- @click="$parent.$parent.$parent.showUserFileModal(row)">
55
- {{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_userfiles_num > 0 ? '修正' : '添加'}}
56
- </button>
57
- </nobr>
58
- </td>
59
- </tr>
60
- </template>
61
- </data-grid>
62
- </criteria-paged>
63
- </div>
64
-
65
- <validator name="v">
66
- <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false">
67
- <header slot="modal-header" class="modal-header">
68
- <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
69
- <h4 class="modal-title">安装明细</h4>
70
- </header>
71
- <article slot="modal-body" class="modal-body clearfix">
72
- <!-- 基本信息 -->
73
- <div class="form-group col-sm-12 panel panel-info">
74
- <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
75
- <div class="col-sm-6 text-left">用户信息</div>
76
- </div>
77
- <div class="form-group col-sm-6">
78
- <label class="col-sm-4 control-label">客户名称:</label>
79
- <div class="col-sm-8">
80
- <input class="form-control input_view" style=""
81
- v-model="userinfo.f_user_name"
82
- :value.sync="userinfo.f_user_name"
83
- :readonly="mark === 1"
84
- placeholder="客户名称"/>
85
- </div>
86
- </div>
87
- <div class="form-group col-sm-6">
88
- <label class="col-sm-4 control-label">客户电话:</label>
89
- <div class="col-sm-8">
90
- <input class="form-control input_view" style=""
91
- v-model="userinfo.f_user_phone"
92
- :value.sync="userinfo.f_user_phone"
93
- :readonly="mark === 1"
94
- placeholder="客户电话"/>
95
- </div>
96
- </div>
97
- <div class="form-group col-sm-6">
98
- <label class="col-sm-4 control-label">证件类型:</label>
99
- <div class="col-sm-8">
100
- <input-select
101
- class="select select_list"
102
- :value.sync="userinfo.f_credentials"
103
- v-model="userinfo.f_credentials"
104
- :options="credentialsList"
105
- :disable="mark === 1"
106
- :valueSingle="true"></input-select>
107
- </div>
108
- </div>
109
- <div class="form-group col-sm-6">
110
- <label class="col-sm-4 control-label">证件号码:</label>
111
- <div class="col-sm-8">
112
- <input class="form-control input_view" style=""
113
- placeholder="证件号码"
114
- v-model="userinfo.f_idnumber"
115
- :value="userinfo.f_idnumber"
116
- :readonly="mark === 1"/>
117
- </div>
118
- </div>
119
- </div>
120
- <!-- 地址信息 -->
121
- <div class="form-group col-sm-12 panel panel-info">
122
- <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
123
- <div class="col-sm-6 text-left">地址信息</div>
124
- </div>
125
- <div class="form-group col-sm-6" :class="[$v.f_address_type.required ? 'has-error' : '']">
126
- <label class="col-sm-4 control-label">地址类型:</label>
127
- <div class="col-sm-8">
128
- <input type="text" v-show="false" v-model="useradders.f_address_type" :value.sync="useradders.f_address_type" v-validate:f_address_type = "['required']" >
129
- <input-select
130
- class="select select_list"
131
- :value.sync="useradders.f_address_type"
132
- v-model="useradders.f_address_type"
133
- :options="addressTypeList"
134
- :disable="true"
135
- :valueSingle="true"></input-select>
136
- </div>
137
- </div>
138
- <div class="form-group col-sm-6" :class="[$v.f_slice_area.required ? 'has-error' : '']">
139
- <label class="col-sm-4 control-label">片&emsp;&emsp;区:</label>
140
- <div class="col-sm-8">
141
- <input type="text" v-show="false" v-model="useradders.f_slice_area" v-validate:f_slice_area = "['required']" >
142
- <input-select
143
- class="select select_list"
144
- :value.sync="useradders.f_slice_area"
145
- v-model="useradders.f_slice_area"
146
- :options="sliceAreaList"
147
- :disable="mark === 1 || selectdata.f_apply_nature === '小区'"
148
- :valueSingle="true"></input-select>
149
- </div>
150
- </div>
151
- <div class="form-group col-sm-6" :class="[$v.f_pcd.required ? 'has-error' : '']">
152
- <label class="col-sm-4 control-label">省&ensp;市&ensp;区:</label>
153
- <div class="col-sm-8">
154
- <input type="text" v-show="false" v-model="useradders.f_pcd" :value.sync="useradders.f_pcd" v-validate:f_pcd = "['required']" >
155
- <input-select
156
- class="select select_list"
157
- :value.sync="useradders.f_pcd"
158
- v-model="useradders.f_pcd"
159
- :options="pcdList"
160
- @change="pcdChange(),addressSplicing()"
161
- :disable="mark === 1 || selectdata.f_apply_nature === '小区'"
162
- :valueSingle="true"></input-select>
163
- </div>
164
- </div>
165
- <div class="form-group col-sm-6" :class="[$v.f_street.required ? 'has-error' : '']">
166
- <label class="col-sm-4 control-label">街&emsp;&emsp;道:</label>
167
- <div class="col-sm-8">
168
- <input type="text" v-show="false" v-model="useradders.f_street" :value.sync="useradders.f_street" v-validate:f_street = "['required']" >
169
- <input-select
170
- class="select select_list"
171
- :value.sync="useradders.f_street"
172
- v-model="useradders.f_street"
173
- :options="streetList"
174
- @change="streetChange(),addressSplicing()"
175
- :disable="mark === 1 || selectdata.f_apply_nature === '小区'"
176
- :valueSingle="true"></input-select>
177
- </div>
178
- </div>
179
- <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'" :class="[$v.f_residential_area.required ? 'has-error' : '']">
180
- <label class="col-sm-4 control-label">小&emsp;&emsp;区:</label>
181
- <div class="col-sm-8">
182
- <input type="text" v-show="false" v-model="useradders.f_residential_area" :value.sync="useradders.f_residential_area" v-validate:f_residential_area = "['required']" >
183
- <input-select
184
- class="select select_list"
185
- :value.sync="useradders.f_residential_area"
186
- v-model="useradders.f_residential_area"
187
- :options="residentialList"
188
- @change="addressSplicing"
189
- :disable="mark === 1 || selectdata.f_apply_nature === '小区'"
190
- :valueSingle="true"></input-select>
191
- </div>
192
- </div>
193
- <div class="form-group col-sm-6" v-if="useradders.f_address_type === '特殊地址'">
194
- <label class="col-sm-4 control-label">小&emsp;&emsp;区:</label>
195
- <div class="col-sm-8">
196
- <input-select
197
- class="select select_list"
198
- :value.sync="useradders.f_residential_area"
199
- v-model="useradders.f_residential_area"
200
- :options="residentialList"
201
- @change="addressSplicing"
202
- :disable="mark === 1"
203
- :valueSingle="true"></input-select>
204
- </div>
205
- </div>
206
- <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
207
- <label class="col-sm-4 control-label">楼&emsp;&emsp;号:</label>
208
- <div class="col-sm-8">
209
- <input class="form-control input_view col-sm-10" style="width: 80%"
210
- placeholder="楼号"
211
- v-model="useradders.f_building"
212
- :value="useradders.f_building"
213
- @change="addressSplicing"
214
- :readonly="mark === 1"/>
215
- <input class="form-control input_view col-sm-2" style="width: 20%"
216
- v-model="useradders.f_building_suffix"
217
- :value="useradders.f_building_suffix"
218
- @change="addressSplicing"
219
- :readonly="mark === 1"/>
220
- </div>
221
- </div>
222
- <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
223
- <label class="col-sm-4 control-label">单&emsp;&emsp;元:</label>
224
- <div class="col-sm-8">
225
- <input class="form-control input_view col-sm-10" style="width: 80%"
226
- placeholder="单元"
227
- v-model="useradders.f_unit"
228
- :value="useradders.f_unit"
229
- @change="addressSplicing"
230
- :readonly="mark === 1"/>
231
- <input class="form-control input_view col-sm-2" style="width: 20%"
232
- v-model="useradders.f_unit_suffix"
233
- :value="useradders.f_unit_suffix"
234
- @change="addressSplicing"
235
- :readonly="mark === 1"/>
236
- </div>
237
- </div>
238
- <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
239
- <label class="col-sm-4 control-label">楼&emsp;&emsp;层:</label>
240
- <div class="col-sm-8">
241
- <input class="form-control input_view col-sm-10" style="width: 80%"
242
- placeholder="楼层"
243
- v-model="useradders.f_floor"
244
- :value="useradders.f_floor"
245
- @change="addressSplicing"
246
- :readonly="mark === 1"/>
247
- <input class="form-control input_view col-sm-2" style="width: 20%"
248
- v-model="useradders.f_floor_suffix"
249
- :value="useradders.f_floor_suffix"
250
- @change="addressSplicing"
251
- :readonly="mark === 1"/>
252
- </div>
253
- </div>
254
- <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'" :class="[$v.f_room.required ? 'has-error' : '']">
255
- <label class="col-sm-4 control-label">门&ensp;牌&ensp;号:</label>
256
- <div class="col-sm-8">
257
- <input class="form-control input_view col-sm-10" style="width: 80%"
258
- placeholder="门牌号" v-validate:f_room = "['required']"
259
- v-model="useradders.f_room"
260
- :value="useradders.f_room"
261
- @change="addressSplicing"
262
- :readonly="mark === 1"/>
263
- <input class="form-control input_view col-sm-2" style="width: 20%"
264
- v-model="useradders.f_room_suffix"
265
- :value="useradders.f_room_suffix"
266
- @change="addressSplicing"
267
- :readonly="mark === 1"/>
268
- </div>
269
- </div>
270
- <div class="form-group col-sm-12">
271
- <label class="col-sm-2 control-label">地&emsp;&emsp;址:</label>
272
- <div class="col-sm-10">
273
- <input class="form-control input_view"
274
- placeholder="地址"
275
- v-model="useradders.f_address"
276
- :value.sync="useradders.f_address"
277
- :readonly="mark === 1"/>
278
- </div>
279
- </div>
280
- </div>
281
- <!-- 表具信息 -->
282
- <div class="form-group col-sm-12 panel panel-info">
283
- <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
284
- <div class="col-sm-6 text-left">表具信息</div>
285
- </div>
286
- <div class="form-group col-sm-6" :class="[$v.gasbrand.required ? 'has-error' : '']">
287
- <label class="col-sm-4 control-label">气表品牌:</label>
288
- <div class="col-sm-8">
289
- <input type="text" v-show="false" v-model="userfile.gasbrand.id" :value.sync="userfile.gasbrand.id" v-validate:gasbrand = "['required']" >
290
- <input-select
291
- class="select select_list"
292
- :value.sync="userfile.gasbrand"
293
- v-model="userfile.gasbrand"
294
- :options="meterbrands"
295
- @change="gasbrandChange()"
296
- :disable="mark === 1"
297
- :valueSingle="true"></input-select>
298
- </div>
299
- </div>
300
- <div class="form-group col-sm-6" :class="[$v.gasmodel.required ? 'has-error' : '']">
301
- <label class="col-sm-4 control-label">气表型号:</label>
302
- <div class="col-sm-8">
303
- <input type="text" v-show="false" v-model="userfile.gasmodel.id" :value.sync="userfile.gasmodel.id" v-validate:gasmodel = "['required']" >
304
- <input-select
305
- class="select select_list"
306
- :value.sync="userfile.gasmodel"
307
- v-model="userfile.gasmodel"
308
- :options.sync="userfile.gasbrand.gasmodel"
309
- @change="gasmodelChange()"
310
- :disable="mark === 1"
311
- :valueSingle="true"></input-select>
312
- </div>
313
- </div>
314
- <div class="form-group col-sm-6" :class="[$v.f_meternumber.required ? 'has-error' : '']">
315
- <label class="col-sm-4 control-label">表&emsp;&emsp;号:</label>
316
- <div class="col-sm-8">
317
- <input class="form-control input_view" style=""
318
- placeholder="表号" v-validate:f_meternumber = "['required']"
319
- v-model="userfile.f_meternumber"
320
- :value.sync="userfile.f_meternumber"
321
- @change="meternumberValidate()"
322
- :readonly="mark === 1"/>
323
- </div>
324
- </div>
325
- <div class="form-group col-sm-6">
326
- <label class="col-sm-4 control-label">表&ensp;封&ensp;号:</label>
327
- <div class="col-sm-8">
328
- <input class="form-control input_view" style=""
329
- placeholder="表封号"
330
- v-model="userfile.f_metertitles"
331
- :value="userfile.f_metertitles"
332
- :readonly="mark === 1"/>
333
- </div>
334
- </div>
335
- <div class="form-group col-sm-6">
336
- <label class="col-sm-4 control-label">表&ensp;读&ensp;数:</label>
337
- <div class="col-sm-8">
338
- <input class="form-control input_view" style=""
339
- type="number"
340
- placeholder="表读数"
341
- v-model="userfile.f_meter_base"
342
- :value="userfile.f_meter_base"
343
- :readonly="mark === 1"/>
344
- </div>
345
- </div>
346
- <div class="form-group col-sm-6">
347
- <label class="col-sm-4 control-label">初始底数:</label>
348
- <div class="col-sm-8">
349
- <input class="form-control input_view" style=""
350
- type="number"
351
- v-model="userfile.f_initial_base"
352
- :value="userfile.f_initial_base"
353
- placeholder="初始底数"
354
- :readonly="mark === 1"/>
355
- </div>
356
- </div>
357
- <div class="form-group col-sm-6">
358
- <label class="col-sm-4 control-label">表&emsp;&emsp;向:</label>
359
- <div class="col-sm-8">
360
- <input-select
361
- class="select select_list"
362
- :value.sync="userfile.f_aroundmeter"
363
- v-model="userfile.f_aroundmeter"
364
- :options="aroundmeters"
365
- :disable="mark === 1"
366
- :valueSingle="true"></input-select>
367
- </div>
368
- </div>
369
- <div class="form-group col-sm-6">
370
- <label class="col-sm-4 control-label">安装位置:</label>
371
- <div class="col-sm-8">
372
- <input-select
373
- class="select select_list"
374
- :value.sync="userfile.f_position"
375
- v-model="userfile.f_position"
376
- :options="positions"
377
- :disable="mark === 1"
378
- :valueSingle="true"></input-select>
379
- </div>
380
- </div>
381
- <div class="form-group col-sm-6">
382
- <label class="col-sm-4 control-label">安&ensp;装&ensp;人:</label>
383
- <div class="col-sm-8">
384
- <input class="form-control input_view" style=""
385
- v-model="userfile.f_install_person"
386
- :value.sync="installperson(userfile.f_install_person)"
387
- placeholder="安装人"
388
- readonly/>
389
- </div>
390
- </div>
391
- <div class="form-group col-sm-6">
392
- <label class="col-sm-4 control-label">安装日期:</label>
393
- <div class="col-sm-8">
394
- <input class="form-control input_view" style=""
395
- v-model="userfile.f_install_date"
396
- :value.sync="installdate(userfile.f_install_date)"
397
- placeholder="安装日期"
398
- readonly/>
399
- </div>
400
- </div>
401
- </div>
402
- </article>
403
- <footer slot="modal-footer" class="modal-footer">
404
- <template v-if="mark !== 1">
405
- <button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
406
- </template>
407
- </footer>
408
- </modal>
409
- </validator>
410
- </template>
411
- <script>
412
- import Vue from 'vue'
413
- import {PagedList} from 'vue-client'
414
- import {HttpResetClass} from 'vue-client'
415
- import {isEmpty} from '../../../../../components/Util'
416
- // Date格式化
417
- Date.prototype.Format = function (fmt) {
418
- var o = {
419
- 'M+': this.getMonth() + 1, // 月份
420
- 'd+': this.getDate(), // 日
421
- 'H+': this.getHours(), // 小时
422
- 'm+': this.getMinutes(), // 分
423
- 's+': this.getSeconds(), // 秒
424
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
425
- 'S': this.getMilliseconds() // 毫秒
426
- }
427
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
428
- for (var k in o) {
429
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
430
- }
431
- return fmt
432
- }
433
-
434
- export default {
435
- title: '安装明细',
436
- props: {
437
- selectdata: {
438
- type: Object
439
- },
440
- mark: {
441
- type: Number,
442
- default: 0
443
- }
444
- },
445
- data () {
446
- return {
447
- showWork: false,
448
- showFile: false,
449
- showUserFile: false,
450
- model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
451
- meterbrands: [], // 气表品牌
452
- useradders: {},
453
- userinfo: {},
454
- userfile: {},
455
- addressTypeList: [
456
- {label: '民用地址', value: '民用地址'},
457
- {label: '特殊地址', value: '特殊地址'}
458
- ],
459
- sliceAreaList: [],
460
- pcdList: [],
461
- streetList: [],
462
- residentialList: [],
463
- config: {}
464
- }
465
- },
466
- ready () {
467
- this.search()
468
- this.getMeterbrands()
469
- this.getSliceAreaList()
470
- this.getPcdList()
471
- },
472
- methods: {
473
- // 保存档案
474
- async saveUserFile() {
475
- let data = {
476
- user: this.$login.f,
477
- useradders: this.useradders,
478
- userinfo: this.userinfo,
479
- userfile: this.userfile,
480
- selectdata: this.selectdata
481
- }
482
- let res = await this.$resetpost('rs/logic/applyAddUserinfo', {data:data}, {
483
- resolveMsg: null,
484
- rejectMsg: '用户档案添加失败!!!'
485
- })
486
- this.$dispatch('breakControl', this.selectdata)
487
- },
488
- addressSplicing () {
489
- let f_pcd = this.useradders.f_pcd || ''
490
- let f_street = this.useradders.f_street || ''
491
- let f_residential_area = this.useradders.f_residential_area || ''
492
- let f_building = this.useradders.f_building || ''
493
- let f_building_suffix = f_building ? this.useradders.f_building_suffix : ''
494
- let f_unit = this.useradders.f_unit || ''
495
- let f_unit_suffix = f_unit ? this.useradders.f_unit_suffix : ''
496
- let f_floor = this.useradders.f_floor || ''
497
- let f_floor_suffix = f_floor ? this.useradders.f_floor_suffix : ''
498
- let f_room = this.useradders.f_room || ''
499
- let f_room_suffix = f_room ? this.useradders.f_room_suffix : ''
500
-
501
- 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)
502
- },
503
- // 检查表号是否存在
504
- async meternumberValidate() {
505
- if (!this.userfile.f_gasbrand_id) {
506
- this.userfile.f_meternumber = ''
507
- this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
508
- return
509
- }
510
- if (this.userfile.f_gasbrand_id && this.userfile.f_meternumber) {
511
- let data = {
512
- f_meternumber: this.userfile.f_meternumber,
513
- f_gasbrand_id: this.userfile.f_gasbrand_id
514
- }
515
- if (this.userfile.f_userfiles_id) {
516
- data.f_userfiles_id = this.userfile.f_userfiles_id
517
- }
518
- let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
519
- resolveMsg: null,
520
- rejectMsg: '表号验证失败!!'
521
- })
522
- if (res.data) {
523
- this.userfile.f_meternumber = ''
524
- this.$showAlert('表号已存在!!', 'warning', 3000)
525
- }
526
- }
527
- },
528
- // 选择气表型号
529
- gasmodelChange() {
530
- if (this.userfile.gasmodel) {
531
- this.userfile.f_gasmodel_id = this.userfile.gasmodel.id
532
- }
533
- },
534
- // 选择气表品牌
535
- gasbrandChange() {
536
- // 清空已保存的气表型号
537
- this.userfile.f_gasmodel_id = null
538
- this.userfile.gasmodel = null
539
-
540
- if (this.userfile.gasbrand) {
541
- // 气表品牌id
542
- this.userfile.f_gasbrand_id = this.userfile.gasbrand.id
543
- // 气表分类
544
- this.userfile.f_meter_classify = this.userfile.gasbrand.f_meter_type
545
- }
546
- },
547
- // 打开安装明细
548
- async showUserFileModal (row) {
549
-
550
- if (row) {
551
- console.log('------------------修正---------------------')
552
- this.useradders = Object.assign({}, this.useradders, row)
553
- if (this.selectdata.f_apply_type === '民用报建') {
554
- Vue.set(this.useradders, 'f_address_type', '民用地址')
555
- }
556
-
557
- let http = new HttpResetClass()
558
- let data = {
559
- tablename: 't_userinfo',
560
- condition: `f_userinfo_id = '${row.f_userinfo_id}'`
561
- }
562
- let res = await http.load(
563
- 'POST',
564
- `rs/sql/apply_singleTable`,
565
- {data: data},
566
- {resolveMsg: null, rejectMsg: '档案信息查询失败!!!'}
567
- )
568
- this.userinfo = res.data[0]
569
-
570
- data = {
571
- tablename: 't_userfiles',
572
- condition: `f_userinfo_id = '${row.f_userinfo_id}'`
573
- }
574
- res = await http.load(
575
- 'POST',
576
- `rs/sql/apply_singleTable`,
577
- {data: data},
578
- {resolveMsg: null, rejectMsg: '表具信息查询失败!!!'}
579
- )
580
- this.userfile = res.data[0]
581
- // 已有表具的 气表信息补充
582
- for (const item of this.meterbrands) {
583
- if (item.value.id == this.userfile.f_gasbrand_id) {
584
- this.userfile.gasbrand = item.value
585
- }
586
- }
587
- if (this.userfile.gasbrand) {
588
- for (const item of this.userfile.gasbrand.gasmodel) {
589
- if (item.value.id == this.userfile.f_gasmodel_id) {
590
- this.userfile.gasmodel = item.value
591
- }
592
- }
593
- }
594
- } else {
595
- console.log('-------------------添加----------------------')
596
- this.initUseradders()
597
- }
598
- this.showUserFile = true
599
- },
600
- async initUseradders () {
601
- if (this.selectdata.f_apply_type === '民用报建') {
602
- Vue.set(this.useradders, 'f_address_type', '民用地址')
603
- }
604
- if (this.selectdata.f_apply_type === '民用报建' && this.selectdata.f_apply_nature === '小区') {
605
- Vue.set(this.useradders, 'f_slice_area', this.selectdata.f_slice_area)
606
- Vue.set(this.useradders, 'f_pcd', this.selectdata.f_pcd)
607
- Vue.set(this.useradders, 'f_street', this.selectdata.f_street)
608
- Vue.set(this.useradders, 'f_residential_area', this.selectdata.f_residential_area)
609
- }
610
-
611
- await this.$getConfig(this, 'UserAddress')
612
-
613
- this.useradders = Object.assign({}, this.useradders, this.config)
614
- },
615
- async streetChange () {
616
- this.residentialList = []
617
- this.useradders.f_residential_area = null
618
- if (isEmpty(this.useradders.f_street)) {
619
- return
620
- }
621
- let data = {
622
- tablename: 't_area',
623
- condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.useradders.f_street}'`
624
- }
625
- let http = new HttpResetClass()
626
- let res = await http.load(
627
- 'POST',
628
- `rs/sql/apply_singleTable`,
629
- {data: data},
630
- {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
631
- )
632
-
633
- this.residentialList = res.data.map(item => {
634
- return {
635
- label: item.f_residential_area,
636
- value: item.f_residential_area
637
- }
638
- })
639
- },
640
- async pcdChange () {
641
- this.streetList = []
642
- this.useradders.f_street = null
643
- this.residentialList = []
644
- this.useradders.f_residential_area = null
645
- if (isEmpty(this.useradders.f_pcd)) {
646
- return
647
- }
648
-
649
- let data = {
650
- tablename: 't_street',
651
- condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.useradders.f_pcd}'`
652
- }
653
- let http = new HttpResetClass()
654
- let res = await http.load(
655
- 'POST',
656
- `rs/sql/apply_singleTable`,
657
- {data: data},
658
- {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
659
- )
660
-
661
- this.streetList = res.data.map(item => {
662
- return {
663
- label: item.f_street,
664
- value: item.f_street
665
- }
666
- })
667
- },
668
- async getPcdList () {
669
- let data = {
670
- tablename: 't_pcd',
671
- condition: `f_filialeid = '${this.$login.f.orgid}'`
672
- }
673
- let http = new HttpResetClass()
674
- let res = await http.load(
675
- 'POST',
676
- `rs/sql/apply_singleTable`,
677
- {data: data},
678
- {resolveMsg: null, rejectMsg: '省市区查询失败!!!'}
679
- )
680
-
681
- this.pcdList = res.data.map(item => {
682
- return {
683
- label: item.f_pcd,
684
- value: item.f_pcd
685
- }
686
- })
687
- },
688
- async getSliceAreaList () {
689
- let data = {
690
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
691
- userid: this.$login.f.id
692
- }
693
-
694
- let http = new HttpResetClass()
695
- let res = await http.load(
696
- 'POST',
697
- `rs/search`,
698
- {data: data},
699
- {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
700
- )
701
-
702
- this.sliceAreaList = res.data.map(item => {
703
- return {
704
- label: item.name,
705
- value: item.name
706
- }
707
- })
708
- },
709
- // 获取气表品牌
710
- async getMeterbrands() {
711
- let http = new HttpResetClass()
712
- let data = {
713
- f_orgid: this.$login.f.orgid
714
- }
715
- let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
716
- resolveMsg: null,
717
- rejectMsg: null
718
- })
719
- this.meterbrands = res.data
720
- },
721
- searchCondition (args) {
722
- args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
723
-
724
- this.model.search(args.condition, args.model)
725
- },
726
- // 查询
727
- async search () {
728
- this.$refs.cp.$refs.cri.search()
729
- },
730
- // 关闭安装明细
731
- closeUserFile() {
732
- this.showUserFile = false
733
- this.useradders = {}
734
- this.userinfo = {}
735
- this.userfile = {}
736
- this.search()
737
- }
738
- },
739
- events: {
740
- },
741
- computed: {
742
- credentialsList() {
743
- return this.$appdata.getParam('证件类型')
744
- },
745
- // 安装人
746
- installperson() {
747
- return function (f_install_person) {
748
- if (isEmpty(f_install_person)) {
749
- return this.$login.f.name
750
- }
751
- return f_install_person
752
- }
753
- },
754
- // 安装时间
755
- installdate() {
756
- return function (f_install_date) {
757
- if (isEmpty(f_install_date)) {
758
- return new Date().Format('yyyy-MM-dd HH:mm:ss')
759
- }
760
- return f_install_date
761
- }
762
- },
763
- // 表向
764
- aroundmeters() {
765
- return this.$appdata.getParam('左右表')
766
- },
767
- // 安装位置
768
- positions() {
769
- return this.$appdata.getParam('安装位置')
770
- }
771
- },
772
- watch: {
773
- }
774
- }
775
- </script>
776
- <style scoped>
777
- .head-but{
778
- margin-left: 5px;
779
- height: 34px;
780
- /*background-color: #6aa6e2;*/
781
- border-radius: 4px;
782
- font-family: PingFang;
783
- color: #ffffff;
784
- }
785
- /*清除model中的浮动*/
786
- .clearfix:after,.clearfix:before{
787
- display: table;
788
- }
789
- .clearfix:after{
790
- clear: both;
791
- }
792
- .input_view{
793
- padding: 8px;
794
- background-color: #ffffff;
795
- border-radius: 2px;
796
- border: solid 1px #c7c7c7!important;
797
- color: #333333!important;
798
- font-size: 15px!important;
799
- }
800
-
801
- .input_view[readonly]{
802
- border: 1px solid #DDD!important;
803
- color:#ACA899!important;
804
- }
805
- .input_view:disabled{
806
- border: 1px solid #DDD!important;
807
- color:#ACA899!important;
808
- }
809
- </style>
1
+ <template>
2
+ <work-busy :is-busy="showWork" v-show="showWork"></work-busy>
3
+
4
+ <div class="col-sm-12" style="margin: 20px 0px;">
5
+ <criteria-paged :model="model" v-ref:cp>
6
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ </div>
9
+ </criteria>
10
+ <data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
11
+ <template partial='head'>
12
+ <tr>
13
+ <th>序号</th>
14
+ <th>客户编号</th>
15
+ <th>客户名称</th>
16
+ <th>客户电话</th>
17
+ <th>地址信息</th>
18
+ <th>表具数量</th>
19
+ <th>
20
+ <button
21
+ type="button"
22
+ class="btn btn-info head-but"
23
+ @click="$parent.$parent.$parent.showUserFileModal()"
24
+ :disabled="$parent.$parent.$parent.mark === 1 || $parent.$parent.$parent.model.count >= $parent.$parent.$parent.selectdata.f_install_count"
25
+ >添加用户</button>
26
+ </th>
27
+ </tr>
28
+ </template>
29
+ <template partial='body'>
30
+ <tr>
31
+ <td style="text-align: center;">
32
+ <nobr>{{$index+1}}</nobr>
33
+ </td>
34
+ <td style="text-align: center;">
35
+ <nobr>{{row.f_userinfo_code}}</nobr>
36
+ </td>
37
+ <td style="text-align: center;">
38
+ <nobr>{{row.f_user_name}}</nobr>
39
+ </td>
40
+ <td style="text-align: center;">
41
+ <nobr>{{row.f_user_phone}}</nobr>
42
+ </td>
43
+ <td style="text-align: center;">
44
+ <nobr>{{row.f_address}}</nobr>
45
+ </td>
46
+ <td style="text-align: center;">
47
+ <nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
48
+ </td>
49
+ <td style="text-align: center;">
50
+ <nobr>
51
+ <button
52
+ v-if="false"
53
+ type="button" name="button" class="btn btn-link"
54
+ @click="$parent.$parent.$parent.showUserFileModal(row)">
55
+ {{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_userfiles_num > 0 ? '修正' : '添加'}}
56
+ </button>
57
+ </nobr>
58
+ </td>
59
+ </tr>
60
+ </template>
61
+ </data-grid>
62
+ </criteria-paged>
63
+ </div>
64
+
65
+ <validator name="v">
66
+ <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false">
67
+ <header slot="modal-header" class="modal-header">
68
+ <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
69
+ <h4 class="modal-title">安装明细</h4>
70
+ </header>
71
+ <article slot="modal-body" class="modal-body clearfix">
72
+ <!-- 基本信息 -->
73
+ <div class="form-group col-sm-12 panel panel-info">
74
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
75
+ <div class="col-sm-6 text-left">用户信息</div>
76
+ </div>
77
+ <div class="form-group col-sm-6">
78
+ <label class="col-sm-4 control-label">客户名称:</label>
79
+ <div class="col-sm-8">
80
+ <input class="form-control input_view" style=""
81
+ v-model="userinfo.f_user_name"
82
+ :value.sync="userinfo.f_user_name"
83
+ :readonly="mark === 1"
84
+ placeholder="客户名称"/>
85
+ </div>
86
+ </div>
87
+ <div class="form-group col-sm-6">
88
+ <label class="col-sm-4 control-label">客户电话:</label>
89
+ <div class="col-sm-8">
90
+ <input class="form-control input_view" style=""
91
+ v-model="userinfo.f_user_phone"
92
+ :value.sync="userinfo.f_user_phone"
93
+ :readonly="mark === 1"
94
+ placeholder="客户电话"/>
95
+ </div>
96
+ </div>
97
+ <div class="form-group col-sm-6">
98
+ <label class="col-sm-4 control-label">证件类型:</label>
99
+ <div class="col-sm-8">
100
+ <input-select
101
+ class="select select_list"
102
+ :value.sync="userinfo.f_credentials"
103
+ v-model="userinfo.f_credentials"
104
+ :options="credentialsList"
105
+ :disable="mark === 1"
106
+ :valueSingle="true"></input-select>
107
+ </div>
108
+ </div>
109
+ <div class="form-group col-sm-6">
110
+ <label class="col-sm-4 control-label">证件号码:</label>
111
+ <div class="col-sm-8">
112
+ <input class="form-control input_view" style=""
113
+ placeholder="证件号码"
114
+ v-model="userinfo.f_idnumber"
115
+ :value="userinfo.f_idnumber"
116
+ :readonly="mark === 1"/>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ <!-- 地址信息 -->
121
+ <div class="form-group col-sm-12 panel panel-info">
122
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
123
+ <div class="col-sm-6 text-left">地址信息</div>
124
+ </div>
125
+ <div class="form-group col-sm-6" :class="[$v.f_address_type.required ? 'has-error' : '']">
126
+ <label class="col-sm-4 control-label">地址类型:</label>
127
+ <div class="col-sm-8">
128
+ <input type="text" v-show="false" v-model="useradders.f_address_type" :value.sync="useradders.f_address_type" v-validate:f_address_type = "['required']" >
129
+ <input-select
130
+ class="select select_list"
131
+ :value.sync="useradders.f_address_type"
132
+ v-model="useradders.f_address_type"
133
+ :options="addressTypeList"
134
+ :disable="true"
135
+ :valueSingle="true"></input-select>
136
+ </div>
137
+ </div>
138
+ <div class="form-group col-sm-6" :class="[$v.f_slice_area.required ? 'has-error' : '']">
139
+ <label class="col-sm-4 control-label">片&emsp;&emsp;区:</label>
140
+ <div class="col-sm-8">
141
+ <input type="text" v-show="false" v-model="useradders.f_slice_area" v-validate:f_slice_area = "['required']" >
142
+ <input-select
143
+ class="select select_list"
144
+ :value.sync="useradders.f_slice_area"
145
+ v-model="useradders.f_slice_area"
146
+ :options="sliceAreaList"
147
+ :disable="mark === 1 || selectdata.f_apply_nature === '小区'"
148
+ :valueSingle="true"></input-select>
149
+ </div>
150
+ </div>
151
+ <div class="form-group col-sm-6" :class="[$v.f_pcd.required ? 'has-error' : '']">
152
+ <label class="col-sm-4 control-label">省&ensp;市&ensp;区:</label>
153
+ <div class="col-sm-8">
154
+ <input type="text" v-show="false" v-model="useradders.f_pcd" :value.sync="useradders.f_pcd" v-validate:f_pcd = "['required']" >
155
+ <input-select
156
+ class="select select_list"
157
+ :value.sync="useradders.f_pcd"
158
+ v-model="useradders.f_pcd"
159
+ :options="pcdList"
160
+ @change="pcdChange(),addressSplicing()"
161
+ :disable="mark === 1 || selectdata.f_apply_nature === '小区'"
162
+ :valueSingle="true"></input-select>
163
+ </div>
164
+ </div>
165
+ <div class="form-group col-sm-6" :class="[$v.f_street.required ? 'has-error' : '']">
166
+ <label class="col-sm-4 control-label">街&emsp;&emsp;道:</label>
167
+ <div class="col-sm-8">
168
+ <input type="text" v-show="false" v-model="useradders.f_street" :value.sync="useradders.f_street" v-validate:f_street = "['required']" >
169
+ <input-select
170
+ class="select select_list"
171
+ :value.sync="useradders.f_street"
172
+ v-model="useradders.f_street"
173
+ :options="streetList"
174
+ @change="streetChange(),addressSplicing()"
175
+ :disable="mark === 1 || selectdata.f_apply_nature === '小区'"
176
+ :valueSingle="true"></input-select>
177
+ </div>
178
+ </div>
179
+ <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'" :class="[$v.f_residential_area.required ? 'has-error' : '']">
180
+ <label class="col-sm-4 control-label">小&emsp;&emsp;区:</label>
181
+ <div class="col-sm-8">
182
+ <input type="text" v-show="false" v-model="useradders.f_residential_area" :value.sync="useradders.f_residential_area" v-validate:f_residential_area = "['required']" >
183
+ <input-select
184
+ class="select select_list"
185
+ :value.sync="useradders.f_residential_area"
186
+ v-model="useradders.f_residential_area"
187
+ :options="residentialList"
188
+ @change="addressSplicing"
189
+ :disable="mark === 1 || selectdata.f_apply_nature === '小区'"
190
+ :valueSingle="true"></input-select>
191
+ </div>
192
+ </div>
193
+ <div class="form-group col-sm-6" v-if="useradders.f_address_type === '特殊地址'">
194
+ <label class="col-sm-4 control-label">小&emsp;&emsp;区:</label>
195
+ <div class="col-sm-8">
196
+ <input-select
197
+ class="select select_list"
198
+ :value.sync="useradders.f_residential_area"
199
+ v-model="useradders.f_residential_area"
200
+ :options="residentialList"
201
+ @change="addressSplicing"
202
+ :disable="mark === 1"
203
+ :valueSingle="true"></input-select>
204
+ </div>
205
+ </div>
206
+ <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
207
+ <label class="col-sm-4 control-label">楼&emsp;&emsp;号:</label>
208
+ <div class="col-sm-8">
209
+ <input class="form-control input_view col-sm-10" style="width: 80%"
210
+ placeholder="楼号"
211
+ v-model="useradders.f_building"
212
+ :value="useradders.f_building"
213
+ @change="addressSplicing"
214
+ :readonly="mark === 1"/>
215
+ <input class="form-control input_view col-sm-2" style="width: 20%"
216
+ v-model="useradders.f_building_suffix"
217
+ :value="useradders.f_building_suffix"
218
+ @change="addressSplicing"
219
+ :readonly="mark === 1"/>
220
+ </div>
221
+ </div>
222
+ <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
223
+ <label class="col-sm-4 control-label">单&emsp;&emsp;元:</label>
224
+ <div class="col-sm-8">
225
+ <input class="form-control input_view col-sm-10" style="width: 80%"
226
+ placeholder="单元"
227
+ v-model="useradders.f_unit"
228
+ :value="useradders.f_unit"
229
+ @change="addressSplicing"
230
+ :readonly="mark === 1"/>
231
+ <input class="form-control input_view col-sm-2" style="width: 20%"
232
+ v-model="useradders.f_unit_suffix"
233
+ :value="useradders.f_unit_suffix"
234
+ @change="addressSplicing"
235
+ :readonly="mark === 1"/>
236
+ </div>
237
+ </div>
238
+ <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'">
239
+ <label class="col-sm-4 control-label">楼&emsp;&emsp;层:</label>
240
+ <div class="col-sm-8">
241
+ <input class="form-control input_view col-sm-10" style="width: 80%"
242
+ placeholder="楼层"
243
+ v-model="useradders.f_floor"
244
+ :value="useradders.f_floor"
245
+ @change="addressSplicing"
246
+ :readonly="mark === 1"/>
247
+ <input class="form-control input_view col-sm-2" style="width: 20%"
248
+ v-model="useradders.f_floor_suffix"
249
+ :value="useradders.f_floor_suffix"
250
+ @change="addressSplicing"
251
+ :readonly="mark === 1"/>
252
+ </div>
253
+ </div>
254
+ <div class="form-group col-sm-6" v-if="useradders.f_address_type === '民用地址'" :class="[$v.f_room.required ? 'has-error' : '']">
255
+ <label class="col-sm-4 control-label">门&ensp;牌&ensp;号:</label>
256
+ <div class="col-sm-8">
257
+ <input class="form-control input_view col-sm-10" style="width: 80%"
258
+ placeholder="门牌号" v-validate:f_room = "['required']"
259
+ v-model="useradders.f_room"
260
+ :value="useradders.f_room"
261
+ @change="addressSplicing"
262
+ :readonly="mark === 1"/>
263
+ <input class="form-control input_view col-sm-2" style="width: 20%"
264
+ v-model="useradders.f_room_suffix"
265
+ :value="useradders.f_room_suffix"
266
+ @change="addressSplicing"
267
+ :readonly="mark === 1"/>
268
+ </div>
269
+ </div>
270
+ <div class="form-group col-sm-12">
271
+ <label class="col-sm-2 control-label">地&emsp;&emsp;址:</label>
272
+ <div class="col-sm-10">
273
+ <input class="form-control input_view"
274
+ placeholder="地址"
275
+ v-model="useradders.f_address"
276
+ :value.sync="useradders.f_address"
277
+ :readonly="mark === 1"/>
278
+ </div>
279
+ </div>
280
+ </div>
281
+ <!-- 表具信息 -->
282
+ <div class="form-group col-sm-12 panel panel-info">
283
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
284
+ <div class="col-sm-6 text-left">表具信息</div>
285
+ </div>
286
+ <div class="form-group col-sm-6" :class="[$v.gasbrand.required ? 'has-error' : '']">
287
+ <label class="col-sm-4 control-label">气表品牌:</label>
288
+ <div class="col-sm-8">
289
+ <input type="text" v-show="false" v-model="userfile.gasbrand.id" :value.sync="userfile.gasbrand.id" v-validate:gasbrand = "['required']" >
290
+ <input-select
291
+ class="select select_list"
292
+ :value.sync="userfile.gasbrand"
293
+ v-model="userfile.gasbrand"
294
+ :options="meterbrands"
295
+ @change="gasbrandChange()"
296
+ :disable="mark === 1"
297
+ :valueSingle="true"></input-select>
298
+ </div>
299
+ </div>
300
+ <div class="form-group col-sm-6" :class="[$v.gasmodel.required ? 'has-error' : '']">
301
+ <label class="col-sm-4 control-label">气表型号:</label>
302
+ <div class="col-sm-8">
303
+ <input type="text" v-show="false" v-model="userfile.gasmodel.id" :value.sync="userfile.gasmodel.id" v-validate:gasmodel = "['required']" >
304
+ <input-select
305
+ class="select select_list"
306
+ :value.sync="userfile.gasmodel"
307
+ v-model="userfile.gasmodel"
308
+ :options.sync="userfile.gasbrand.gasmodel"
309
+ @change="gasmodelChange()"
310
+ :disable="mark === 1"
311
+ :valueSingle="true"></input-select>
312
+ </div>
313
+ </div>
314
+ <div class="form-group col-sm-6" :class="[$v.f_meternumber.required ? 'has-error' : '']">
315
+ <label class="col-sm-4 control-label">表&emsp;&emsp;号:</label>
316
+ <div class="col-sm-8">
317
+ <input class="form-control input_view" style=""
318
+ placeholder="表号" v-validate:f_meternumber = "['required']"
319
+ v-model="userfile.f_meternumber"
320
+ :value.sync="userfile.f_meternumber"
321
+ @change="meternumberValidate()"
322
+ :readonly="mark === 1"/>
323
+ </div>
324
+ </div>
325
+ <div class="form-group col-sm-6">
326
+ <label class="col-sm-4 control-label">表&ensp;封&ensp;号:</label>
327
+ <div class="col-sm-8">
328
+ <input class="form-control input_view" style=""
329
+ placeholder="表封号"
330
+ v-model="userfile.f_metertitles"
331
+ :value="userfile.f_metertitles"
332
+ :readonly="mark === 1"/>
333
+ </div>
334
+ </div>
335
+ <div class="form-group col-sm-6">
336
+ <label class="col-sm-4 control-label">表&ensp;读&ensp;数:</label>
337
+ <div class="col-sm-8">
338
+ <input class="form-control input_view" style=""
339
+ type="number"
340
+ placeholder="表读数"
341
+ v-model="userfile.f_meter_base"
342
+ :value="userfile.f_meter_base"
343
+ :readonly="mark === 1"/>
344
+ </div>
345
+ </div>
346
+ <div class="form-group col-sm-6">
347
+ <label class="col-sm-4 control-label">初始底数:</label>
348
+ <div class="col-sm-8">
349
+ <input class="form-control input_view" style=""
350
+ type="number"
351
+ v-model="userfile.f_initial_base"
352
+ :value="userfile.f_initial_base"
353
+ placeholder="初始底数"
354
+ :readonly="mark === 1"/>
355
+ </div>
356
+ </div>
357
+ <div class="form-group col-sm-6">
358
+ <label class="col-sm-4 control-label">表&emsp;&emsp;向:</label>
359
+ <div class="col-sm-8">
360
+ <input-select
361
+ class="select select_list"
362
+ :value.sync="userfile.f_aroundmeter"
363
+ v-model="userfile.f_aroundmeter"
364
+ :options="aroundmeters"
365
+ :disable="mark === 1"
366
+ :valueSingle="true"></input-select>
367
+ </div>
368
+ </div>
369
+ <div class="form-group col-sm-6">
370
+ <label class="col-sm-4 control-label">安装位置:</label>
371
+ <div class="col-sm-8">
372
+ <input-select
373
+ class="select select_list"
374
+ :value.sync="userfile.f_position"
375
+ v-model="userfile.f_position"
376
+ :options="positions"
377
+ :disable="mark === 1"
378
+ :valueSingle="true"></input-select>
379
+ </div>
380
+ </div>
381
+ <div class="form-group col-sm-6">
382
+ <label class="col-sm-4 control-label">安&ensp;装&ensp;人:</label>
383
+ <div class="col-sm-8">
384
+ <input class="form-control input_view" style=""
385
+ v-model="userfile.f_install_person"
386
+ :value.sync="installperson(userfile.f_install_person)"
387
+ placeholder="安装人"
388
+ readonly/>
389
+ </div>
390
+ </div>
391
+ <div class="form-group col-sm-6">
392
+ <label class="col-sm-4 control-label">安装日期:</label>
393
+ <div class="col-sm-8">
394
+ <input class="form-control input_view" style=""
395
+ v-model="userfile.f_install_date"
396
+ :value.sync="installdate(userfile.f_install_date)"
397
+ placeholder="安装日期"
398
+ readonly/>
399
+ </div>
400
+ </div>
401
+ </div>
402
+ </article>
403
+ <footer slot="modal-footer" class="modal-footer">
404
+ <template v-if="mark !== 1">
405
+ <button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
406
+ </template>
407
+ </footer>
408
+ </modal>
409
+ </validator>
410
+ </template>
411
+ <script>
412
+ import Vue from 'vue'
413
+ import {PagedList} from 'vue-client'
414
+ import {HttpResetClass} from 'vue-client'
415
+ import {isEmpty} from '../../../../../components/Util'
416
+ // Date格式化
417
+ Date.prototype.Format = function (fmt) {
418
+ var o = {
419
+ 'M+': this.getMonth() + 1, // 月份
420
+ 'd+': this.getDate(), // 日
421
+ 'H+': this.getHours(), // 小时
422
+ 'm+': this.getMinutes(), // 分
423
+ 's+': this.getSeconds(), // 秒
424
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
425
+ 'S': this.getMilliseconds() // 毫秒
426
+ }
427
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
428
+ for (var k in o) {
429
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
430
+ }
431
+ return fmt
432
+ }
433
+
434
+ export default {
435
+ title: '安装明细',
436
+ props: {
437
+ selectdata: {
438
+ type: Object
439
+ },
440
+ mark: {
441
+ type: Number,
442
+ default: 0
443
+ }
444
+ },
445
+ data () {
446
+ return {
447
+ showWork: false,
448
+ showFile: false,
449
+ showUserFile: false,
450
+ model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
451
+ meterbrands: [], // 气表品牌
452
+ useradders: {},
453
+ userinfo: {},
454
+ userfile: {},
455
+ addressTypeList: [
456
+ {label: '民用地址', value: '民用地址'},
457
+ {label: '特殊地址', value: '特殊地址'}
458
+ ],
459
+ sliceAreaList: [],
460
+ pcdList: [],
461
+ streetList: [],
462
+ residentialList: [],
463
+ config: {}
464
+ }
465
+ },
466
+ ready () {
467
+ this.search()
468
+ this.getMeterbrands()
469
+ this.getSliceAreaList()
470
+ this.getPcdList()
471
+ },
472
+ methods: {
473
+ // 保存档案
474
+ async saveUserFile() {
475
+ let data = {
476
+ user: this.$login.f,
477
+ useradders: this.useradders,
478
+ userinfo: this.userinfo,
479
+ userfile: this.userfile,
480
+ selectdata: this.selectdata
481
+ }
482
+ let res = await this.$resetpost('rs/logic/applyAddUserinfo', {data:data}, {
483
+ resolveMsg: null,
484
+ rejectMsg: '用户档案添加失败!!!'
485
+ })
486
+ this.$dispatch('breakControl', this.selectdata)
487
+ },
488
+ addressSplicing () {
489
+ let f_pcd = this.useradders.f_pcd || ''
490
+ let f_street = this.useradders.f_street || ''
491
+ let f_residential_area = this.useradders.f_residential_area || ''
492
+ let f_building = this.useradders.f_building || ''
493
+ let f_building_suffix = f_building ? this.useradders.f_building_suffix : ''
494
+ let f_unit = this.useradders.f_unit || ''
495
+ let f_unit_suffix = f_unit ? this.useradders.f_unit_suffix : ''
496
+ let f_floor = this.useradders.f_floor || ''
497
+ let f_floor_suffix = f_floor ? this.useradders.f_floor_suffix : ''
498
+ let f_room = this.useradders.f_room || ''
499
+ let f_room_suffix = f_room ? this.useradders.f_room_suffix : ''
500
+
501
+ 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)
502
+ },
503
+ // 检查表号是否存在
504
+ async meternumberValidate() {
505
+ if (!this.userfile.f_gasbrand_id) {
506
+ this.userfile.f_meternumber = ''
507
+ this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
508
+ return
509
+ }
510
+ if (this.userfile.f_gasbrand_id && this.userfile.f_meternumber) {
511
+ let data = {
512
+ f_meternumber: this.userfile.f_meternumber,
513
+ f_gasbrand_id: this.userfile.f_gasbrand_id
514
+ }
515
+ if (this.userfile.f_userfiles_id) {
516
+ data.f_userfiles_id = this.userfile.f_userfiles_id
517
+ }
518
+ let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
519
+ resolveMsg: null,
520
+ rejectMsg: '表号验证失败!!'
521
+ })
522
+ if (res.data) {
523
+ this.userfile.f_meternumber = ''
524
+ this.$showAlert('表号已存在!!', 'warning', 3000)
525
+ }
526
+ }
527
+ },
528
+ // 选择气表型号
529
+ gasmodelChange() {
530
+ if (this.userfile.gasmodel) {
531
+ this.userfile.f_gasmodel_id = this.userfile.gasmodel.id
532
+ }
533
+ },
534
+ // 选择气表品牌
535
+ gasbrandChange() {
536
+ // 清空已保存的气表型号
537
+ this.userfile.f_gasmodel_id = null
538
+ this.userfile.gasmodel = null
539
+
540
+ if (this.userfile.gasbrand) {
541
+ // 气表品牌id
542
+ this.userfile.f_gasbrand_id = this.userfile.gasbrand.id
543
+ // 气表分类
544
+ this.userfile.f_meter_classify = this.userfile.gasbrand.f_meter_type
545
+ }
546
+ },
547
+ // 打开安装明细
548
+ async showUserFileModal (row) {
549
+
550
+ if (row) {
551
+ console.log('------------------修正---------------------')
552
+ this.useradders = Object.assign({}, this.useradders, row)
553
+ if (this.selectdata.f_apply_type === '民用报建') {
554
+ Vue.set(this.useradders, 'f_address_type', '民用地址')
555
+ }
556
+
557
+ let http = new HttpResetClass()
558
+ let data = {
559
+ tablename: 't_userinfo',
560
+ condition: `f_userinfo_id = '${row.f_userinfo_id}'`
561
+ }
562
+ let res = await http.load(
563
+ 'POST',
564
+ `rs/sql/apply_singleTable`,
565
+ {data: data},
566
+ {resolveMsg: null, rejectMsg: '档案信息查询失败!!!'}
567
+ )
568
+ this.userinfo = res.data[0]
569
+
570
+ data = {
571
+ tablename: 't_userfiles',
572
+ condition: `f_userinfo_id = '${row.f_userinfo_id}'`
573
+ }
574
+ res = await http.load(
575
+ 'POST',
576
+ `rs/sql/apply_singleTable`,
577
+ {data: data},
578
+ {resolveMsg: null, rejectMsg: '表具信息查询失败!!!'}
579
+ )
580
+ this.userfile = res.data[0]
581
+ // 已有表具的 气表信息补充
582
+ for (const item of this.meterbrands) {
583
+ if (item.value.id == this.userfile.f_gasbrand_id) {
584
+ this.userfile.gasbrand = item.value
585
+ }
586
+ }
587
+ if (this.userfile.gasbrand) {
588
+ for (const item of this.userfile.gasbrand.gasmodel) {
589
+ if (item.value.id == this.userfile.f_gasmodel_id) {
590
+ this.userfile.gasmodel = item.value
591
+ }
592
+ }
593
+ }
594
+ } else {
595
+ console.log('-------------------添加----------------------')
596
+ this.initUseradders()
597
+ }
598
+ this.showUserFile = true
599
+ },
600
+ async initUseradders () {
601
+ if (this.selectdata.f_apply_type === '民用报建') {
602
+ Vue.set(this.useradders, 'f_address_type', '民用地址')
603
+ }
604
+ if (this.selectdata.f_apply_type === '民用报建' && this.selectdata.f_apply_nature === '小区') {
605
+ Vue.set(this.useradders, 'f_slice_area', this.selectdata.f_slice_area)
606
+ Vue.set(this.useradders, 'f_pcd', this.selectdata.f_pcd)
607
+ Vue.set(this.useradders, 'f_street', this.selectdata.f_street)
608
+ Vue.set(this.useradders, 'f_residential_area', this.selectdata.f_residential_area)
609
+ }
610
+
611
+ await this.$getConfig(this, 'UserAddress')
612
+
613
+ this.useradders = Object.assign({}, this.useradders, this.config)
614
+ },
615
+ async streetChange () {
616
+ this.residentialList = []
617
+ this.useradders.f_residential_area = null
618
+ if (isEmpty(this.useradders.f_street)) {
619
+ return
620
+ }
621
+ let data = {
622
+ tablename: 't_area',
623
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.useradders.f_street}'`
624
+ }
625
+ let http = new HttpResetClass()
626
+ let res = await http.load(
627
+ 'POST',
628
+ `rs/sql/apply_singleTable`,
629
+ {data: data},
630
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
631
+ )
632
+
633
+ this.residentialList = res.data.map(item => {
634
+ return {
635
+ label: item.f_residential_area,
636
+ value: item.f_residential_area
637
+ }
638
+ })
639
+ },
640
+ async pcdChange () {
641
+ this.streetList = []
642
+ this.useradders.f_street = null
643
+ this.residentialList = []
644
+ this.useradders.f_residential_area = null
645
+ if (isEmpty(this.useradders.f_pcd)) {
646
+ return
647
+ }
648
+
649
+ let data = {
650
+ tablename: 't_street',
651
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.useradders.f_pcd}'`
652
+ }
653
+ let http = new HttpResetClass()
654
+ let res = await http.load(
655
+ 'POST',
656
+ `rs/sql/apply_singleTable`,
657
+ {data: data},
658
+ {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
659
+ )
660
+
661
+ this.streetList = res.data.map(item => {
662
+ return {
663
+ label: item.f_street,
664
+ value: item.f_street
665
+ }
666
+ })
667
+ },
668
+ async getPcdList () {
669
+ let data = {
670
+ tablename: 't_pcd',
671
+ condition: `f_filialeid = '${this.$login.f.orgid}'`
672
+ }
673
+ let http = new HttpResetClass()
674
+ let res = await http.load(
675
+ 'POST',
676
+ `rs/sql/apply_singleTable`,
677
+ {data: data},
678
+ {resolveMsg: null, rejectMsg: '省市区查询失败!!!'}
679
+ )
680
+
681
+ this.pcdList = res.data.map(item => {
682
+ return {
683
+ label: item.f_pcd,
684
+ value: item.f_pcd
685
+ }
686
+ })
687
+ },
688
+ async getSliceAreaList () {
689
+ let data = {
690
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
691
+ userid: this.$login.f.id
692
+ }
693
+
694
+ let http = new HttpResetClass()
695
+ let res = await http.load(
696
+ 'POST',
697
+ `rs/search`,
698
+ {data: data},
699
+ {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
700
+ )
701
+
702
+ this.sliceAreaList = res.data.map(item => {
703
+ return {
704
+ label: item.name,
705
+ value: item.name
706
+ }
707
+ })
708
+ },
709
+ // 获取气表品牌
710
+ async getMeterbrands() {
711
+ let http = new HttpResetClass()
712
+ let data = {
713
+ f_orgid: this.$login.f.orgid
714
+ }
715
+ let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
716
+ resolveMsg: null,
717
+ rejectMsg: null
718
+ })
719
+ this.meterbrands = res.data
720
+ },
721
+ searchCondition (args) {
722
+ args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
723
+
724
+ this.model.search(args.condition, args.model)
725
+ },
726
+ // 查询
727
+ async search () {
728
+ this.$refs.cp.$refs.cri.search()
729
+ },
730
+ // 关闭安装明细
731
+ closeUserFile() {
732
+ this.showUserFile = false
733
+ this.useradders = {}
734
+ this.userinfo = {}
735
+ this.userfile = {}
736
+ this.search()
737
+ }
738
+ },
739
+ events: {
740
+ },
741
+ computed: {
742
+ credentialsList() {
743
+ return this.$appdata.getParam('证件类型')
744
+ },
745
+ // 安装人
746
+ installperson() {
747
+ return function (f_install_person) {
748
+ if (isEmpty(f_install_person)) {
749
+ return this.$login.f.name
750
+ }
751
+ return f_install_person
752
+ }
753
+ },
754
+ // 安装时间
755
+ installdate() {
756
+ return function (f_install_date) {
757
+ if (isEmpty(f_install_date)) {
758
+ return new Date().Format('yyyy-MM-dd HH:mm:ss')
759
+ }
760
+ return f_install_date
761
+ }
762
+ },
763
+ // 表向
764
+ aroundmeters() {
765
+ return this.$appdata.getParam('左右表')
766
+ },
767
+ // 安装位置
768
+ positions() {
769
+ return this.$appdata.getParam('安装位置')
770
+ }
771
+ },
772
+ watch: {
773
+ }
774
+ }
775
+ </script>
776
+ <style scoped>
777
+ .head-but{
778
+ margin-left: 5px;
779
+ height: 34px;
780
+ /*background-color: #6aa6e2;*/
781
+ border-radius: 4px;
782
+ font-family: PingFang;
783
+ color: #ffffff;
784
+ }
785
+ /*清除model中的浮动*/
786
+ .clearfix:after,.clearfix:before{
787
+ display: table;
788
+ }
789
+ .clearfix:after{
790
+ clear: both;
791
+ }
792
+ .input_view{
793
+ padding: 8px;
794
+ background-color: #ffffff;
795
+ border-radius: 2px;
796
+ border: solid 1px #c7c7c7!important;
797
+ color: #333333!important;
798
+ font-size: 15px!important;
799
+ }
800
+
801
+ .input_view[readonly]{
802
+ border: 1px solid #DDD!important;
803
+ color:#ACA899!important;
804
+ }
805
+ .input_view:disabled{
806
+ border: 1px solid #DDD!important;
807
+ color:#ACA899!important;
808
+ }
809
+ </style>