apply-clients 3.4.1 → 3.4.2-FuGu-7

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 (136) hide show
  1. package/android.html +23 -23
  2. package/build/css-loaders.js +34 -0
  3. package/build/dev-android.js +101 -0
  4. package/build/dev-client.js +8 -0
  5. package/build/dev-server-app.js +76 -0
  6. package/build/dev-server.js +119 -0
  7. package/build/example-server.js +80 -0
  8. package/build/release.sh +28 -0
  9. package/build/utils.js +80 -0
  10. package/build/webpack.base.conf.js +85 -0
  11. package/build/webpack.baseandroid.conf.js +84 -0
  12. package/build/webpack.dev.conf.js +51 -0
  13. package/build/webpack.devandroid.conf.js +34 -0
  14. package/build/webpack.example.conf.js +49 -0
  15. package/build/webpack.prod.conf.js +60 -0
  16. package/build/webpack.prodandroid.conf.js +60 -0
  17. package/build/webpack.test.conf.js +31 -0
  18. package/dingding.html +23 -0
  19. package/dist-android/static/doc.jpg +0 -0
  20. package/dist-android/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  21. package/dist-android/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  22. package/dist-android/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  23. package/dist-android/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  24. package/dist-android/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  25. package/dist-android/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  26. package/dist-android/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  27. package/dist-android/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  28. package/dist-android/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  29. package/dist-android/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  30. package/dist-android/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  31. package/dist-android/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  32. package/dist-android/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  33. package/dist-android/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  34. package/dist-android/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  35. package/dist-android/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  36. package/dist-android/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  37. package/dist-android/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  38. package/dist-android/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  39. package/dist-android/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  40. package/dist-android/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  41. package/dist-android/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  42. package/dist-android/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  43. package/dist-android/static/imgerror.jpg +0 -0
  44. package/dist-android/static/newStyle/clear.png +0 -0
  45. package/dist-android/static/newStyle/fife.png +0 -0
  46. package/dist-android/static/newStyle/hidden.png +0 -0
  47. package/dist-android/static/newStyle/label-clear.png +0 -0
  48. package/dist-android/static/newStyle/left-img.png +0 -0
  49. package/dist-android/static/newStyle/list_ok.png +0 -0
  50. package/dist-android/static/newStyle/login-check.png +0 -0
  51. package/dist-android/static/newStyle/login-con.png +0 -0
  52. package/dist-android/static/newStyle/login-do.gif +0 -0
  53. package/dist-android/static/newStyle/login-f.png +0 -0
  54. package/dist-android/static/newStyle/login-info.png +0 -0
  55. package/dist-android/static/newStyle/login-left.png +0 -0
  56. package/dist-android/static/newStyle/login-org.png +0 -0
  57. package/dist-android/static/newStyle/login-pwd.png +0 -0
  58. package/dist-android/static/newStyle/login-user.png +0 -0
  59. package/dist-android/static/newStyle/loginbg.gif +0 -0
  60. package/dist-android/static/newStyle/loginbg1280.gif +0 -0
  61. package/dist-android/static/newStyle/loginbg1366.gif +0 -0
  62. package/dist-android/static/newStyle/setting.png +0 -0
  63. package/dist-android/static/newStyle/setting1.png +0 -0
  64. package/dist-android/static/newStyle/shirk.png +0 -0
  65. package/dist-android/static/newStyle/stretch_bottom.png +0 -0
  66. package/dist-android/static/newStyle/stretch_left.png +0 -0
  67. package/dist-android/static/newStyle/stretch_right.png +0 -0
  68. package/dist-android/static/newStyle/stretch_top.png +0 -0
  69. package/dist-android/static/newStyle/system-off.png +0 -0
  70. package/dist-android/static/pdf.jpg +0 -0
  71. package/index.html +33 -33
  72. package/package.json +2 -1
  73. package/src/AndroidApp.vue +35 -35
  74. package/src/App.vue +20 -20
  75. package/src/DingDingApp.vue +51 -0
  76. package/src/android.js +21 -21
  77. package/src/apply.js +75 -81
  78. package/src/applyAndroid.js +25 -31
  79. package/src/applyDingDing.js +12 -0
  80. package/src/components/android/AppOnetomany.vue +301 -301
  81. package/src/components/android/AppServiceView.vue +566 -566
  82. package/src/components/android/AppSign.vue +142 -142
  83. package/src/components/android/AppTakePic.vue +143 -143
  84. package/src/components/android/Process/AppExplorationUser.vue +320 -320
  85. package/src/components/android/Process/AppServiceControl.vue +757 -757
  86. package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -456
  87. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -64
  88. package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -121
  89. package/src/components/android/TaskGraph.vue +125 -125
  90. package/src/components/build/Install/ExplorationUser.vue +304 -0
  91. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -0
  92. package/src/components/product/{Process/Processes/Print → ApplyCharge}/printCharge.vue +142 -142
  93. package/src/components/product/Function/InstallFunction.vue +131 -125
  94. package/src/components/product/Function/InstallInfoSelect.vue +21 -13
  95. package/src/components/product/Function/Service/FunctionServiceControl.vue +420 -222
  96. package/src/components/product/Onetomany.vue +377 -377
  97. package/src/components/product/Process/ExplorationSelect.vue +401 -410
  98. package/src/components/product/Process/ExplorationUser.vue +138 -138
  99. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -592
  100. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -207
  101. package/src/components/product/Process/Processes/chargeManagement.vue +634 -639
  102. package/src/components/product/Process/Service/ServiceControl.vue +58 -63
  103. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  104. package/src/components/product/ServiceView.vue +631 -631
  105. package/src/components/product/Stop/StopApply.vue +105 -103
  106. package/src/components/product/Stop/StopApplyList.vue +269 -269
  107. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +7 -0
  108. package/src/components/product/Supervisory/SupervisoryControl.vue +10 -0
  109. package/src/components/product/Supervisory/SupervisoryList.vue +6 -2
  110. package/src/components/product/Supervisory/SupervisoryhCart.vue +110 -107
  111. package/src/components/product/VueUtils/ApplyUpload.vue +273 -273
  112. package/src/components/product/VueUtils/HighMeter.vue +208 -208
  113. package/src/dingding.js +20 -0
  114. package/src/expandcssAndroid.less +1034 -1034
  115. package/src/main.js +23 -23
  116. package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
  117. package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
  118. package/src/components/product/Function/functions/StopInstall.vue +0 -106
  119. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  120. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  121. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  122. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  123. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  124. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -548
  125. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -754
  126. package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +0 -60
  127. package/src/filiale/yuchuan/android.js +0 -7
  128. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -528
  129. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
  130. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -395
  131. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -147
  132. package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +0 -66
  133. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +0 -759
  134. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +0 -470
  135. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -879
  136. package/src/filiale/yuchuan/pc.js +0 -11
@@ -1,759 +0,0 @@
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.mark === 1"
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="serinfo.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="mark === 1"
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"
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"
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"
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"
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
- if (!row) {
550
- console.log('-------------------添加----------------------')
551
- }
552
- console.log('------------------修正---------------------')
553
- this.initUseradders()
554
- this.showUserFile = true
555
- },
556
- async initUseradders () {
557
- if (this.selectdata.f_apply_type === '民用报建') {
558
- Vue.set(this.useradders, 'f_address_type', '民用地址')
559
- }
560
-
561
- await this.$getConfig(this, 'UserAddress')
562
-
563
- this.useradders = Object.assign({}, this.useradders, this.config)
564
- },
565
- async streetChange () {
566
- this.residentialList = []
567
- this.useradders.f_residential_area = null
568
- if (isEmpty(this.useradders.f_street)) {
569
- return
570
- }
571
- let data = {
572
- tablename: 't_area',
573
- condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.useradders.f_street}'`
574
- }
575
- let http = new HttpResetClass()
576
- let res = await http.load(
577
- 'POST',
578
- `rs/sql/singleTable`,
579
- {data: data},
580
- {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
581
- )
582
-
583
- this.residentialList = res.data.map(item => {
584
- return {
585
- label: item.f_residential_area,
586
- value: item.f_residential_area
587
- }
588
- })
589
- },
590
- async pcdChange () {
591
- this.streetList = []
592
- this.useradders.f_street = null
593
- this.residentialList = []
594
- this.useradders.f_residential_area = null
595
- if (isEmpty(this.useradders.f_pcd)) {
596
- return
597
- }
598
-
599
- let data = {
600
- tablename: 't_street',
601
- condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.useradders.f_pcd}'`
602
- }
603
- let http = new HttpResetClass()
604
- let res = await http.load(
605
- 'POST',
606
- `rs/sql/singleTable`,
607
- {data: data},
608
- {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
609
- )
610
-
611
- this.streetList = res.data.map(item => {
612
- return {
613
- label: item.f_street,
614
- value: item.f_street
615
- }
616
- })
617
- },
618
- async getPcdList () {
619
- let data = {
620
- tablename: 't_pcd',
621
- condition: `f_filialeid = '${this.$login.f.orgid}'`
622
- }
623
- let http = new HttpResetClass()
624
- let res = await http.load(
625
- 'POST',
626
- `rs/sql/singleTable`,
627
- {data: data},
628
- {resolveMsg: null, rejectMsg: '省市区查询失败!!!'}
629
- )
630
-
631
- this.pcdList = res.data.map(item => {
632
- return {
633
- label: item.f_pcd,
634
- value: item.f_pcd
635
- }
636
- })
637
- },
638
- async getSliceAreaList () {
639
- let data = {
640
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
641
- userid: this.$login.f.id
642
- }
643
-
644
- let http = new HttpResetClass()
645
- let res = await http.load(
646
- 'POST',
647
- `rs/search`,
648
- {data: data},
649
- {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
650
- )
651
-
652
- this.sliceAreaList = res.data.map(item => {
653
- return {
654
- label: item.name,
655
- value: item.name
656
- }
657
- })
658
- },
659
- // 获取气表品牌
660
- async getMeterbrands() {
661
- let http = new HttpResetClass()
662
- let data = {
663
- f_orgid: this.$login.f.orgid
664
- }
665
- let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
666
- resolveMsg: null,
667
- rejectMsg: null
668
- })
669
- this.meterbrands = res.data
670
- },
671
- searchCondition (args) {
672
- args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
673
-
674
- this.model.search(args.condition, args.model)
675
- },
676
- // 查询
677
- async search () {
678
- this.$refs.cp.$refs.cri.search()
679
- },
680
- // 关闭安装明细
681
- closeUserFile() {
682
- this.showUserFile = false
683
- this.useradders = {}
684
- this.userinfo = {}
685
- this.userfile = {}
686
- this.search()
687
- }
688
- },
689
- events: {
690
- },
691
- computed: {
692
- credentialsList() {
693
- return this.$appdata.getParam('证件类型')
694
- },
695
- // 安装人
696
- installperson() {
697
- return function (f_install_person) {
698
- if (isEmpty(f_install_person)) {
699
- return this.$login.f.name
700
- }
701
- return f_install_person
702
- }
703
- },
704
- // 安装时间
705
- installdate() {
706
- return function (f_install_date) {
707
- if (isEmpty(f_install_date)) {
708
- return new Date().Format('yyyy-MM-dd HH:mm:ss')
709
- }
710
- return f_install_date
711
- }
712
- },
713
- // 表向
714
- aroundmeters() {
715
- return this.$appdata.getParam('左右表')
716
- },
717
- // 安装位置
718
- positions() {
719
- return this.$appdata.getParam('安装位置')
720
- }
721
- },
722
- watch: {
723
- }
724
- }
725
- </script>
726
- <style scoped>
727
- .head-but{
728
- margin-left: 5px;
729
- height: 34px;
730
- /*background-color: #6aa6e2;*/
731
- border-radius: 4px;
732
- font-family: PingFang;
733
- color: #ffffff;
734
- }
735
- /*清除model中的浮动*/
736
- .clearfix:after,.clearfix:before{
737
- display: table;
738
- }
739
- .clearfix:after{
740
- clear: both;
741
- }
742
- .input_view{
743
- padding: 8px;
744
- background-color: #ffffff;
745
- border-radius: 2px;
746
- border: solid 1px #c7c7c7!important;
747
- color: #333333!important;
748
- font-size: 15px!important;
749
- }
750
-
751
- .input_view[readonly]{
752
- border: 1px solid #DDD!important;
753
- color:#ACA899!important;
754
- }
755
- .input_view:disabled{
756
- border: 1px solid #DDD!important;
757
- color:#ACA899!important;
758
- }
759
- </style>