apply-clients 3.5.5-9 → 3.5.5-90

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 (81) hide show
  1. package/build/dev-server.js +7 -6
  2. package/package.json +6 -4
  3. package/src/App.vue +25 -25
  4. package/src/components/QXClient.js +333 -0
  5. package/src/components/SignTools.js +65 -0
  6. package/src/components/android/AppCheckTakePic.vue +168 -168
  7. package/src/components/android/Process/AppChargeList.vue +8 -0
  8. package/src/components/android/Process/AppExplorationUser.vue +1 -2
  9. package/src/components/android/Process/AppServiceControl.vue +1755 -1755
  10. package/src/components/product/Function/Service/FunctionServiceControl.vue +4 -4
  11. package/src/components/product/Install/ContractCharge.vue +210 -210
  12. package/src/components/product/PcZhihuanManagement.vue +160 -160
  13. package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -339
  14. package/src/components/product/Process/Processes/contractModel.vue +49 -37
  15. package/src/components/product/Process/Processes/selectApply.vue +251 -251
  16. package/src/components/product/Process/Processes/selectBcakApply.vue +250 -250
  17. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +2 -0
  18. package/src/filiale/fugou/android/AppAddMaterialScience.vue +444 -444
  19. package/src/filiale/fugou/android/AppAddReplacement.vue +512 -341
  20. package/src/filiale/fugou/android/AppChargeManagement.vue +739 -739
  21. package/src/filiale/fugou/android/AppDevicesManagement.vue +3 -1
  22. package/src/filiale/fugou/android/AppExplorationUser.vue +3 -3
  23. package/src/filiale/fugou/android/AppInstallationDetails.vue +2 -1
  24. package/src/filiale/fugou/android/AppServiceControl.vue +75 -17
  25. package/src/filiale/fugou/android/AppZhihuanManagement.vue +14 -2
  26. package/src/filiale/fugou/pc/AddReplacement.vue +511 -340
  27. package/src/filiale/fugou/pc/ApplyChargeList.vue +487 -480
  28. package/src/filiale/fugou/pc/Applybatchdispatch.vue +754 -0
  29. package/src/filiale/fugou/pc/ExplorationSelect.vue +3 -4
  30. package/src/filiale/fugou/pc/InstallationDetails.vue +1 -1
  31. package/src/filiale/fugou/pc/ServiceControl.vue +47 -20
  32. package/src/filiale/fugou/pc/StopApplyList.vue +291 -0
  33. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
  34. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -216
  35. package/src/filiale/fugou/pc/chargeReport.vue +215 -143
  36. package/src/filiale/fugou/pc/devicesManagement.vue +1 -0
  37. package/src/filiale/fugou/pc.js +3 -1
  38. package/src/filiale/gongyi/pc/addressAndUserinfoManagement.vue +187 -0
  39. package/src/filiale/gongyi/pc.js +25 -24
  40. package/src/filiale/hongda/pc/addMaterialScience.vue +723 -723
  41. package/src/filiale/jinhuang/android/AppAddMaterialScience.vue +635 -0
  42. package/src/filiale/jinhuang/android.js +6 -0
  43. package/src/filiale/jinhuang/pc/ContractList.vue +220 -0
  44. package/src/filiale/jinhuang/pc/ExplorationSelect.vue +523 -0
  45. package/src/filiale/jinhuang/pc/ServiceControl.vue +7 -0
  46. package/src/filiale/jinhuang/pc/addMaterialScience.vue +638 -0
  47. package/src/filiale/jinhuang/pc/addressAndUserinfoManagement.vue +41 -1
  48. package/src/filiale/jinhuang/pc.js +3 -0
  49. package/src/filiale/qianneng/android/AppServiceView.vue +13 -13
  50. package/src/filiale/qianneng/pc/ApplyMaterialDetailed.vue +1 -1
  51. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +786 -769
  52. package/src/filiale/qianneng/pc/Applydetail.vue +1 -1
  53. package/src/filiale/qianneng/pc/FunctionServiceControl.vue +10 -3
  54. package/src/filiale/qianneng/pc/ServiceControl.vue +1387 -1382
  55. package/src/filiale/ruihua/pc/ServiceControl.vue +2 -1
  56. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +527 -520
  57. package/src/filiale/yangchunboneng/android/AppContractCharge.vue +210 -210
  58. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +72 -5
  59. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1116 -1087
  60. package/src/filiale/yangchunboneng/android/AppProcessSupervisory.vue +331 -0
  61. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +219 -43
  62. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +21 -1
  63. package/src/filiale/yangchunboneng/android.js +21 -20
  64. package/src/filiale/yangchunboneng/pc/ApplyChargeList.vue +32 -4
  65. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
  66. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +612 -547
  67. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +4 -2
  68. package/src/filiale/yangchunboneng/pc/StopApplyList.vue +294 -0
  69. package/src/filiale/yangchunboneng/pc/SupervisoryControl.vue +141 -0
  70. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +54 -42
  71. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +5 -1
  72. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1 -1
  73. package/src/filiale/yangchunboneng/pc/buildOrderList.vue +411 -0
  74. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +5 -1
  75. package/src/filiale/yangchunboneng/pc/constructionInfo.vue +84 -0
  76. package/src/filiale/yangchunboneng/pc/printBuildOrder.vue +175 -0
  77. package/src/filiale/yangchunboneng/pc.js +29 -24
  78. package/src/main.js +4 -3
  79. package/src/test/SessionTestServlet.java +0 -69
  80. package/webapp/WEB-INF/web.xml +0 -52
  81. package/webapp/session-test.jsp +0 -59
@@ -0,0 +1,754 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div style="height: 95%" class="basic-main" >
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-3">
9
+ <label class="font_normal_body">客户名称:</label>
10
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
11
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
12
+ </div>
13
+ <div class="form-group col-sm-3">
14
+ <label class="font_normal_body">组织机构:</label>
15
+ <res-select
16
+ restype='organization'
17
+ :initresid='$parent.$parent.curorgid'
18
+ @res-select="$parent.$parent.getorg"
19
+ is-mul="false"
20
+ ></res-select>
21
+ </div>
22
+ <div class="form-group col-sm-3 button-range">
23
+ <export-excel :data="$parent.$parent.getCondition"
24
+ :field="$parent.$parent.getfield"
25
+ sqlurl="rs/logic/applyExportfile"
26
+ sql-name="checkuser"
27
+ template-name='批量业务信息导出'
28
+ :choose-col="true"></export-excel>
29
+ <button class="button_export button_spacing" @click="$parent.$parent.showModal = !$parent.$parent.showModal">批量下派</button>
30
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
31
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
32
+ <div style="float: right;" class="button_spacing button_search"
33
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
34
+ @click="$parent.$parent.hidden()"></div>
35
+ </div>
36
+ </div>
37
+ <div class="row" v-show="$parent.$parent.criteriaShow">
38
+ <div class="form-group col-sm-3">
39
+ <label class="font_normal_body">用户编号:</label>
40
+ <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
41
+ v-on:keyup.enter="$parent.$parent.search()"
42
+ condition="u.f_userinfo_code like '%{}%'">
43
+ </div>
44
+ <div class="form-group col-sm-3">
45
+ <label class="font_normal_body">工程编号:</label>
46
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
47
+ v-on:keyup.enter="$parent.$parent.search()"
48
+ condition="u.f_apply_num like '%{}%'">
49
+ </div>
50
+ <div class="form-group col-sm-3">
51
+ <label class="font_normal_body">父工程编号:</label>
52
+ <input type="text" style="width:60%" class="input_search" placeholder='父工程编号' v-model="model.f_parent_apply_num"
53
+ v-on:keyup.enter="$parent.$parent.search()"
54
+ condition="u.f_parent_apply_num like '%{}%'">
55
+ </div>
56
+ <div class="form-group col-sm-3">
57
+ <label class="font_normal_body">合同金额:</label>
58
+ <input type="text" style="width:60%" class="input_search" placeholder='合同金额' v-model="model.f_contract_money"
59
+ v-on:keyup.enter="$parent.$parent.search()"
60
+ condition="u.f_contract_money like '%{}%'">
61
+ </div>
62
+ <div class="form-group col-sm-3">
63
+ <label class="font_normal_body">联系电话:</label>
64
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
65
+ v-on:keyup.enter="$parent.$parent.search()"
66
+ condition="f_phone like '%{}%'">
67
+ </div>
68
+ <div class="form-group col-sm-3">
69
+ <label class="font_normal_body">合同编号:</label>
70
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
71
+ v-on:keyup.enter="$parent.$parent.search()"
72
+ condition="f_contract_number = '{}'">
73
+ </div>
74
+ <div class="form-group col-sm-3">
75
+ <label class="font_normal_body">报建类型:</label>
76
+ <v-select
77
+ v-model="model.f_apply_type"
78
+ placeholder='报建类型'
79
+ condition="f_apply_type = '{}'"
80
+ :value.sync="model.f_apply_type"
81
+ :options='$parent.$parent.applytype'
82
+ class="select select_list"
83
+ :value-single="true"
84
+ @change="$parent.$parent.applyTypeChange()"
85
+ close-on-select ></v-select>
86
+ </div>
87
+ <div class="form-group col-sm-3">
88
+ <label class="font_normal_body">办理环节:</label>
89
+ <v-select
90
+ v-model="model.defname"
91
+ placeholder='办理环节'
92
+ condition="act.defname = '{}'"
93
+ :value.sync="model.defname"
94
+ :options='$parent.$parent.defnames'
95
+ class="select select_list"
96
+ :value-single="true"
97
+ close-on-select ></v-select>
98
+ </div>
99
+ <div class="form-group col-sm-3">
100
+ <label class="font_normal_body">报建性质:</label>
101
+ <v-select
102
+ v-model="model.f_apply_nature"
103
+ placeholder='报建性质'
104
+ condition="f_apply_nature = '{}'"
105
+ :value.sync="model.f_apply_nature"
106
+ :options='$parent.$parent.applyNatures'
107
+ class="select select_list"
108
+ :value-single="true"
109
+ close-on-select ></v-select>
110
+ </div>
111
+ <div class="form-group col-sm-3">
112
+ <label class="font_normal_body">是否室内:</label>
113
+ <v-select
114
+ v-model="model.f_no_indoors"
115
+ placeholder='是否室内'
116
+ condition="f_no_indoors = '{}'"
117
+ :value.sync="model.f_no_indoors"
118
+ :options='$parent.$parent.noindoors'
119
+ class="select select_list"
120
+ :value-single="true"
121
+ close-on-select ></v-select>
122
+ </div>
123
+ <div class="form-group col-sm-3">
124
+ <label class="font_normal_body">用户地址:</label>
125
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
126
+ v-on:keyup.enter="$parent.$parent.search()"
127
+ condition="f_address like '%{}%'">
128
+ </div>
129
+ <div class="form-group col-sm-3">
130
+ <label for="startDate" class="font_normal_body">开始时间:</label>
131
+ <datepicker id="startDate" placeholder="开始日期"
132
+ style="width: 60%!important;"
133
+ v-model="model.startDate"
134
+ :value.sync="model.startDate"
135
+ :format="'yyyy-MM-dd 00:00:00'"
136
+ :show-reset-button="true"
137
+ condition="f_apply_date >= '{}'">
138
+ </datepicker>
139
+ </div>
140
+ <div class="form-group col-sm-3">
141
+ <label for="endDate" class="font_normal_body">结束时间:</label>
142
+ <datepicker id="endDate" placeholder="结束日期"
143
+ style="width: 60%!important;"
144
+ v-model="model.endDate"
145
+ :value.sync="model.endDate"
146
+ :format="'yyyy-MM-dd 23:59:59'"
147
+ :show-reset-button="true"
148
+ condition="f_apply_date <= '{}'">
149
+ </datepicker>
150
+ </div>
151
+ <div class="form-group col-sm-3">
152
+ <label class="font_normal_body">稍后处理:</label>
153
+ <v-select
154
+ v-model="model.f_no_valid"
155
+ placeholder='稍后处理'
156
+ condition="lp.f_no_valid = '{}'"
157
+ :value.sync="model.f_no_valid"
158
+ :options='$parent.$parent.laterList'
159
+ class="select select_list"
160
+ :value-single="true"
161
+ close-on-select ></v-select>
162
+ </div>
163
+ <div class="form-group col-sm-3">
164
+ <label class="font_normal_body">节点发起人:</label>
165
+ <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
166
+ v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </criteria> <data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
171
+ <template partial='head'>
172
+ <tr class="title">
173
+ <th style="white-space: nowrap;">序号</th>
174
+ <th style="white-space: nowrap;">工程编号</th>
175
+ <th style="white-space: nowrap;">客户编号</th>
176
+ <th style="white-space: nowrap;">客户名称</th>
177
+ <th style="white-space: nowrap;">地址</th>
178
+ <th style="white-space: nowrap;">电话</th>
179
+ <th style="white-space: nowrap;">入户证号</th>
180
+ <th style="white-space: nowrap;">来源</th>
181
+ <th style="white-space: nowrap;">报建类型</th>
182
+ <th style="white-space: nowrap;">报建性质</th>
183
+ <th style="white-space: nowrap;">办理环节</th>
184
+ <th style="white-space: nowrap;">施工人</th>
185
+ <th style="white-space: nowrap;">流程状态</th>
186
+ <th style="white-space: nowrap;">报建日期</th>
187
+ <th style="white-space: nowrap;">备注</th>
188
+ </tr>
189
+ </template>
190
+ <template partial='body'>
191
+ <tr>
192
+ <td style="text-align: center;">
193
+ <nobr>{{$index+1}}</nobr>
194
+ </td>
195
+ <td style="text-align: center;">
196
+ <nobr>{{row.f_apply_num}}</nobr>
197
+ </td>
198
+ <td style="text-align: center;">
199
+ <nobr>{{row.f_userinfo_code}}</nobr>
200
+ </td>
201
+ <td style="text-align: center;">
202
+ <nobr>{{row.f_user_name}}</nobr>
203
+ </td>
204
+ <td style="text-align: center;">
205
+ <nobr>{{row.f_address}}</nobr>
206
+ </td>
207
+ <td style="text-align: center;">
208
+ <nobr>{{row.f_phone}}</nobr>
209
+ </td>
210
+ <td style="text-align: center;">
211
+ <nobr>{{row.f_entry_number}}</nobr>
212
+ </td>
213
+ <td style="text-align: center;">
214
+ <nobr>{{row.f_apply_source}}</nobr>
215
+ </td>
216
+ <td style="text-align: center;">
217
+ <nobr>{{row.f_apply_type}}</nobr>
218
+ </td>
219
+ <td style="text-align: center;">
220
+ <nobr>{{row.f_apply_nature}}</nobr>
221
+ </td>
222
+ <td style="text-align: center;">
223
+ <nobr>{{row.defname}}</nobr>
224
+ </td>
225
+ <td style="text-align: center;">
226
+ <nobr>{{row.f_budget_people}}</nobr>
227
+ </td>
228
+ <td style="text-align: center;">
229
+ <nobr>{{row.f_sub_state}}</nobr>
230
+ </td>
231
+ <td style="text-align: center;">
232
+ <nobr>{{row.f_apply_date}}</nobr>
233
+ </td>
234
+ <td style="text-align: center;">
235
+ <nobr>{{row.f_apply_remarks}}</nobr>
236
+ </td>
237
+ </tr>
238
+ </template>
239
+ </data-grid>
240
+ </criteria-paged>
241
+ <!--下发人-->
242
+ <modal :show.sync="showModal" :large="true" :backdrop="false" title="打印预览">
243
+ <header slot="modal-header" class="modal-header">
244
+ <button type="button" class="close" @click="closePrint"><span>&times;</span></button>
245
+ </header>
246
+ <article slot="modal-body" class="modal-body clearfix">
247
+ <div class="form-group" style="margin: 10px auto">
248
+ <label class="col-sm-3 control-label">下发人:</label>
249
+ <div class="col-sm-9">
250
+ <v-select
251
+ v-model="f_issue_man"
252
+ placeholder='请选择需要下派的人员'
253
+ :value.sync="f_issue_man"
254
+ :options='f_issue_mans'
255
+ :value-single="true"
256
+ class="select select_list"
257
+ :search="false"
258
+ close-on-select ></v-select>
259
+ </div>
260
+ </div>
261
+ </article>
262
+ <footer slot="modal-footer" class="modal-footer">
263
+ <button type="button" class="btn btn-primary" @click="closeProgress">取消</button>
264
+ <button type="button" class="btn btn-primary" @click="batchdispatch('提交')">确认</button>
265
+ </footer>
266
+ </modal>
267
+ <!--批量下发-->
268
+ <modal :show.sync="showProgress" v-ref:progress :backdrop="false">
269
+ <header slot="modal-header" class="modal-header">
270
+ <button type="button" class="close" @click="closeProgress"><span>&times;</span></button>
271
+ <h4 class="modal-title">正在批量操作中,请耐心等待...</h4>
272
+ </header>
273
+ <article slot="modal-body" class="modal-body">
274
+ <div class="progress" style="margin: 20px">
275
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent}">
276
+ {{ percent }}
277
+ </div>
278
+ </div>
279
+ </article>
280
+ <footer slot="modal-footer" class="modal-footer">
281
+ </footer>
282
+ </modal>
283
+ <!--批量打印-->
284
+ <modal v-model="showPrint" :show.sync="showPrint" :large="true" :backdrop="false" title="打印预览">
285
+ <header slot="modal-header" class="modal-header">
286
+ <button type="button" class="close" @click="closePrint"><span>&times;</span></button>
287
+ <h4 class="modal-title">打印预览</h4>
288
+ </header>
289
+ <article slot="modal-body" class="modal-body clearfix">
290
+ <style id="printChargeStyle">
291
+ table{
292
+ margin: auto;
293
+ border-collapse:collapse;
294
+ border: 1px solid black;
295
+ }
296
+ .input-center{
297
+ text-align: center;
298
+ }
299
+ </style>
300
+ <div id="printCharge" v-if="userinfo.f_apply_type == '居民用户报建'||userinfo.f_apply_type == '居民团体单户报建'">
301
+ <div style="margin-bottom: 10px;text-align: center;" >
302
+ <span style="font-size: 20px;font-weight: 600">{{ $login.f.orgs}}派工流程表</span>
303
+ </div>
304
+ <table border="1" width="100%">
305
+ <tr>
306
+ <td class="input-center" :style="stylecss">工程编号:</td>
307
+ <td class="input-center" :style="stylecss">{{userinfo.f_apply_num}}</td>
308
+ <td class="input-center" :style="stylecss">合同编号:</td>
309
+ <td class="input-center" :style="stylecss">{{userinfo.f_contract_number}}</td>
310
+ <td class="input-center" :style="stylecss">派工类型:</td>
311
+ <td class="input-center" :style="stylecss">{{userinfo.f_apply_type}}</td>
312
+ </tr>
313
+ <tr>
314
+ <td class="input-center" :style="stylecss">客户编号:</td>
315
+ <td class="input-center" :style="stylecss">{{userinfo.f_userinfo_code}}</td>
316
+ <td class="input-center" :style="stylecss">客户类型:</td>
317
+ <td class="input-center" :style="stylecss">{{userinfo.f_user_type}}</td>
318
+ <td class="input-center" :style="stylecss">入户证号:</td>
319
+ <td class="input-center" :style="stylecss">{{userinfo.f_entry_number}}</td>
320
+ </tr>
321
+ <tr>
322
+ <td class="input-center" :style="stylecss">客户名称:</td>
323
+ <td class="input-center" :style="stylecss">{{userinfo.f_user_name}}</td>
324
+ <td class="input-center" :style="stylecss">报建性质:</td>
325
+ <td class="input-center" :style="stylecss">{{userinfo.f_apply_nature}}</td>
326
+ <td class="input-center" :style="stylecss">客户电话:</td>
327
+ <td class="input-center" :style="stylecss">{{userinfo.f_phone}}</td>
328
+ </tr>
329
+ <tr>
330
+ <td class="input-center" :style="stylecss">详细地址:</td>
331
+ <td class="input-center" colspan="3" :style="stylecss">{{userinfo.f_address}}</td>
332
+ <td class="input-center" :style="stylecss">联系人:</td>
333
+ <td class="input-center" :style="stylecss">{{userinfo.f_contact}}</td>
334
+ </tr>
335
+ <tr style="height: 60px;">
336
+ <td class="input-center" :style="stylecss">工程备注:</td>
337
+ <td class="input-center" colspan="3" :style="'font-weight: bolder;'+stylecss">{{userinfo.f_apply_remarks}}</td>
338
+ <td class="input-center" :style="stylecss">联系人电话:</td>
339
+ <td class="input-center" :style="stylecss">{{userinfo.f_standby_phone}}</td>
340
+ </tr>
341
+ <tr>
342
+ <td class="input-center" :style="stylecss">气表品牌:</td>
343
+ <td class="input-center" :style="stylecss">{{userfiles.f_gasbrand}}</td>
344
+ <td class="input-center" :style="stylecss">气表型号:</td>
345
+ <td class="input-center" :style="stylecss">{{userfiles.f_gasmodel}}</td>
346
+ <td class="input-center" :style="stylecss">气表编号:</td>
347
+ <td class="input-center" :style="stylecss">{{userfiles.f_meternumber}}</td>
348
+ </tr>
349
+ <tr>
350
+ <td class="input-center" :style="stylecss">用气设备:</td>
351
+ <td class="input-center" colspan="2" :style="stylecss">{{f_gas_appliances}}</td>
352
+ <td class="input-center" :style="stylecss">防盗卡号:</td>
353
+ <td class="input-center" colspan="2" :style="stylecss"></td>
354
+ </tr>
355
+ <tr>
356
+ <td class="input-center" :style="stylecss">派工人员:</td>
357
+ <td class="input-center" colspan="2" :style="stylecss">{{userfor.f_person}}</td>
358
+ <td class="input-center" :style="stylecss">派工时间:</td>
359
+ <td class="input-center" colspan="2" :style="stylecss">{{userfor.finishtime}}</td>
360
+ </tr>
361
+ <tr>
362
+ <td class="input-center" :style="stylecss">设计人员:</td>
363
+ <td class="input-center" colspan="2" :style="stylecss">{{userinfo.f_reconnaissance_people}}</td>
364
+ <td class="input-center" :style="stylecss">设计时间:</td>
365
+ <td class="input-center" colspan="2" :style="stylecss">{{userinfo.f_reconnaissance_time}}</td>
366
+ </tr>
367
+ <tr>
368
+ <td class="input-center" :style="stylecss">安装人员:</td>
369
+ <td class="input-center" colspan="2" :style="stylecss"></td>
370
+ <td class="input-center" :style="stylecss">安装时间:</td>
371
+ <td class="input-center" colspan="2" :style="stylecss"></td>
372
+ </tr>
373
+ <tr>
374
+ <td class="input-center" :style="stylecss">验收人员:</td>
375
+ <td class="input-center" :style="stylecss"></td>
376
+ <td class="input-center" :style="stylecss">验收时间:</td>
377
+ <td class="input-center" :style="stylecss"></td>
378
+ <td class="input-center" :style="stylecss">申请验收时间:</td>
379
+ <td class="input-center" :style="stylecss"></td>
380
+ </tr>
381
+ <tr>
382
+ <td class="input-center" :style="stylecss">客户满意度:</td>
383
+ <td class="input-center" colspan="5" :style="stylecss">您对我们的服务是否满意?&nbsp;&nbsp;<input type="checkbox"/>&nbsp;满意&nbsp;&nbsp;<input type="checkbox"/>&nbsp;不满意</td>
384
+ </tr>
385
+ <tr>
386
+ <td class="input-center" :style="stylecss">用户签字:</td>
387
+ <td class="input-center"colspan="2" :style="stylecss"></td>
388
+ <td class="input-center" :style="stylecss">签字时间:</td>
389
+ <td class="input-center"colspan="2" :style="stylecss"></td>
390
+ </tr>
391
+ <tr>
392
+ <td class="input-center" :style="stylecss">材料核算员:</td>
393
+ <td class="input-center" colspan="2" :style="stylecss"></td>
394
+ <td class="input-center" :style="stylecss">核算时间:</td>
395
+ <td class="input-center" colspan="2" :style="stylecss"></td>
396
+ </tr>
397
+ </table>
398
+ <div style="" >
399
+ <span style="font-size: 18px;">&nbsp;&nbsp;*此表材料核算后返市场部归档</span>
400
+ </div>
401
+ </div>
402
+
403
+ <div id="printCharge" v-if="userinfo.f_apply_type == '非居用户报建'|| userinfo.f_apply_type == '其他报建'">
404
+ <div style="margin-bottom: 10px;text-align: center;" >
405
+ <span style="font-size: 20px;font-weight: 600">{{ $login.f.orgs}}派工流程表</span>
406
+ </div>
407
+ <table border="1" width="100%">
408
+ <tr>
409
+ <td class="input-center" :style="stylecss">工程编号:</td>
410
+ <td class="input-center" :style="stylecss">{{userinfo.f_apply_num}}</td>
411
+ <td class="input-center" :style="stylecss">合同编号:</td>
412
+ <td class="input-center" :style="stylecss">{{userinfo.f_contract_number}}</td>
413
+ <td class="input-center" :style="stylecss">派工类型:</td>
414
+ <td class="input-center" :style="stylecss">{{userinfo.f_apply_type}}</td>
415
+ </tr>
416
+ <tr>
417
+ <td class="input-center" :style="stylecss">客户编号:</td>
418
+ <td class="input-center" :style="stylecss">{{userinfo.f_userinfo_code}}</td>
419
+ <td class="input-center" :style="stylecss">客户类型:</td>
420
+ <td class="input-center" :style="stylecss">{{userinfo.f_user_type}}</td>
421
+ <td class="input-center" :style="stylecss">入户证号:</td>
422
+ <td class="input-center" :style="stylecss">{{userinfo.f_entry_number}}</td>
423
+ </tr>
424
+ <tr>
425
+ <td class="input-center" :style="stylecss">客户名称:</td>
426
+ <td class="input-center" :style="stylecss">{{userinfo.f_user_name}}</td>
427
+ <td class="input-center" :style="stylecss">报建性质:</td>
428
+ <td class="input-center" :style="stylecss">{{userinfo.f_apply_nature}}</td>
429
+ <td class="input-center" :style="stylecss">客户电话:</td>
430
+ <td class="input-center" :style="stylecss">{{userinfo.f_phone}}</td>
431
+ </tr>
432
+ <tr>
433
+ <td class="input-center" :style="stylecss">营业名称:</td>
434
+ <td class="input-center" colspan="3" :style="stylecss">{{userinfo.f_company_name}}</td>
435
+ <td class="input-center" :style="stylecss">联系人:</td>
436
+ <td class="input-center" :style="stylecss">{{userinfo.f_contact}}</td>
437
+ </tr>
438
+ <tr>
439
+ <td class="input-center" :style="stylecss">详细地址:</td>
440
+ <td class="input-center" colspan="3" :style="stylecss">{{userinfo.f_address}}</td>
441
+ <td class="input-center" :style="stylecss">联系人电话:</td>
442
+ <td class="input-center" :style="stylecss">{{userinfo.f_standby_phone}}</td>
443
+ </tr>
444
+ <tr style="height: 60px;">
445
+ <td class="input-center" :style="stylecss">工程备注:</td>
446
+ <td class="input-center" colspan="5" :style="'font-weight: bolder;'+stylecss">{{userinfo.f_apply_remarks}}</td>
447
+ </tr>
448
+ <tr>
449
+ <td class="input-center" :style="stylecss">气表品牌:</td>
450
+ <td class="input-center" :style="stylecss">{{userfiles.f_gasbrand}}</td>
451
+ <td class="input-center" :style="stylecss">气表型号:</td>
452
+ <td class="input-center" :style="stylecss">{{userfiles.f_gasmodel}}</td>
453
+ <td class="input-center" :style="stylecss">气表编号:</td>
454
+ <td class="input-center" :style="stylecss">{{userfiles.f_meternumber}}</td>
455
+ </tr>
456
+ <tr>
457
+ <td class="input-center" :style="stylecss">用气设备:</td>
458
+ <td class="input-center" colspan="2" :style="stylecss">{{f_gas_appliances}}</td>
459
+ <td class="input-center" :style="stylecss">防盗卡号:</td>
460
+ <td class="input-center" colspan="2" :style="stylecss"></td>
461
+ </tr>
462
+ <tr>
463
+ <td class="input-center" :style="stylecss">派工人员:</td>
464
+ <td class="input-center" colspan="2" :style="stylecss">{{userfor.f_person}}</td>
465
+ <td class="input-center" :style="stylecss">派工时间:</td>
466
+ <td class="input-center" colspan="2" :style="stylecss">{{userfor.finishtime}}</td>
467
+ </tr>
468
+ <tr>
469
+ <td class="input-center" :style="stylecss">设计人员:</td>
470
+ <td class="input-center" colspan="2" :style="stylecss">{{userinfo.f_reconnaissance_people}}</td>
471
+ <td class="input-center" :style="stylecss">设计时间:</td>
472
+ <td class="input-center" colspan="2" :style="stylecss">{{userinfo.f_reconnaissance_time}}</td>
473
+ </tr>
474
+ <tr>
475
+ <td class="input-center" :style="stylecss">安装人员:</td>
476
+ <td class="input-center" colspan="2" :style="stylecss"></td>
477
+ <td class="input-center" :style="stylecss">安装时间:</td>
478
+ <td class="input-center" colspan="2" :style="stylecss"></td>
479
+ </tr>
480
+ <tr>
481
+ <td class="input-center" :style="stylecss">验收人员:</td>
482
+ <td class="input-center" :style="stylecss"></td>
483
+ <td class="input-center" :style="stylecss">验收时间:</td>
484
+ <td class="input-center" :style="stylecss"></td>
485
+ <td class="input-center" :style="stylecss">申请验收时间:</td>
486
+ <td class="input-center" :style="stylecss"></td>
487
+ </tr>
488
+ <tr>
489
+ <td class="input-center" :style="stylecss">客户满意度:</td>
490
+ <td class="input-center" colspan="5" :style="stylecss">您对我们的服务是否满意?&nbsp;&nbsp;<input type="checkbox"/>&nbsp;满意&nbsp;&nbsp;<input type="checkbox"/>&nbsp;不满意</td>
491
+ </tr>
492
+ <tr>
493
+ <td class="input-center" :style="stylecss">用户签字:</td>
494
+ <td class="input-center"colspan="2" :style="stylecss"></td>
495
+ <td class="input-center" :style="stylecss">签字时间:</td>
496
+ <td class="input-center"colspan="2" :style="stylecss"></td>
497
+ </tr>
498
+ <tr>
499
+ <td class="input-center" :style="stylecss">材料核算员:</td>
500
+ <td class="input-center" colspan="2"></td>
501
+ <td class="input-center" :style="stylecss">核算时间:</td>
502
+ <td class="input-center" colspan="2" :style="stylecss"></td>
503
+ </tr>
504
+ </table>
505
+ <div style="" >
506
+ <span style="font-size: 18px;">&nbsp;&nbsp;*此表材料核算后返市场部归档</span>
507
+ </div>
508
+ </div>
509
+ <print-element v-show="false" :type="type" v-ref:print id='printCharge' styleid='printChargeStyle'
510
+ top='20' left='30' width='100%' height='100%'>
511
+ </print-element>
512
+ </article>
513
+ <footer slot="modal-footer" class="modal-footer">
514
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
515
+ </footer>
516
+ </modal>
517
+ </div>
518
+ </div>
519
+ </template>
520
+
521
+ <script>
522
+ import {HttpResetClass, PagedList} from 'vue-client'
523
+ import {isEmpty, toStandardDateString} from '../../../components/Util'
524
+ export default {
525
+ title: '批量业务',
526
+ data () {
527
+ return {
528
+ model: new PagedList('rs/sql/checkuser', 30, {
529
+ data: {
530
+ id: this.$login.f.id,
531
+ orgid: this.$login.f.orgid
532
+ }
533
+ }),
534
+ criteriaShow: false,
535
+ curorgid: [this.$login.f.orgid],
536
+ defnames: [
537
+ {label: '工程派工', value: '工程派工'},
538
+ ],
539
+ gasNatures: [
540
+ {label: '全部',value: ''},
541
+ ...this.$appdata.getParam('用气性质')
542
+ ],
543
+ applyNatures: [{label: '全部', value: ''},...this.$appdata.getParam('报建性质')], // 报建性质
544
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
545
+ usertype: [{label: '全部', value: ''},{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}],//客户类型
546
+ percent: 0,
547
+ showProgress: false,
548
+ showModal: false,
549
+ f_issue_man:'',
550
+ f_issue_mans: [],
551
+ showPrint:false,
552
+ showdate:{},
553
+ type:'PRINT',
554
+ userinfo:{},
555
+ userfiles:{},
556
+ userfor:{},
557
+ getfield: {
558
+ 'f_apply_num': '工程编号',
559
+ 'f_userinfo_code': '客户编号',
560
+ 'f_user_name': '客户名称',
561
+ 'f_address': '地址',
562
+ 'f_phone': '电话',
563
+ 'f_entry_number': '入户证号',
564
+ 'f_apply_source': '来源',
565
+ 'f_apply_type': '报建类型',
566
+ 'f_apply_nature': '报建性质',
567
+ 'defname': '办理环节',
568
+ 'f_budget_people': '施工人',
569
+ 'f_sub_state': '流程状态',
570
+ 'f_apply_date': '报建日期',
571
+ 'f_apply_remarks': '备注'
572
+ }
573
+ }
574
+ },
575
+ ready () {
576
+ },
577
+ methods: {
578
+ clear () {
579
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
580
+ this.$refs.cp.$refs.cri.model[key] = ''
581
+ })
582
+ },
583
+
584
+ searchCondition (args) {
585
+ if (isEmpty(args.model.defname)) {
586
+ this.$showMessage('请选择办理环节!!!')
587
+ return
588
+ }
589
+ this.model.search(args.condition, args.model)
590
+ this.selectman()
591
+ },
592
+ // 批量下发 打印
593
+ async batchdispatch (button) {
594
+ this.showModal = false
595
+ let selectdatas = this.$refs.cp.$refs.grid.getRowData()
596
+ if (selectdatas.length > 0) {
597
+ let res = await this.$showMessage(`当前数据条数: ${selectdatas.length}, 条数过大时${button}时间可能会过长, 是否确认${button}?`)
598
+ if(res == 'confirm'){
599
+ this.showProgress = true
600
+ for (let i = 0;i < selectdatas.length;i++ ){
601
+ if (button == '提交'){
602
+ await this.button(selectdatas[i])
603
+ }
604
+ if(button == '打印'){
605
+ await this.getData(selectdatas[i])
606
+ this.print()
607
+ }
608
+ this.percent = this.getPercent(i, selectdatas.length)
609
+ }
610
+ if (button == '提交'){
611
+ this.$refs.cp.$refs.grid.selectInit()
612
+ }
613
+ this.closeProgress()
614
+ }
615
+ } else {
616
+ this.$showAlert('请选择要操作的单子!!!', 'warning', 3000)
617
+ }
618
+ this.search()
619
+ },
620
+ async button (selectdata) {
621
+ selectdata.button = {button_name : '提交'}
622
+ if (selectdata.defname == '工程派工'){
623
+ selectdata.button = {button_name : '下发',f_issue_man:this.f_issue_man}
624
+ }
625
+ selectdata.start_activity = '工程派工'
626
+ selectdata.user = this.$login.f
627
+ selectdata.tables =['t_apply']
628
+ let http = new HttpResetClass()
629
+ await http.load('post',
630
+ `rs/logic/ApplyProductService`,
631
+ {data: selectdata},
632
+ {resolveMsg: null, rejectMsg: null}
633
+ )
634
+ },
635
+ async applyTypeChange () {
636
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
637
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
638
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
639
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
640
+ )
641
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
642
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
643
+ } else {
644
+ this.defnames = [{label: '全部', value: ''}]
645
+ this.applyNatures = [{label: '全部', value: ''}]
646
+ }
647
+ },
648
+ // 查询
649
+ search () {
650
+ this.$refs.cp.$refs.cri.search()
651
+ },
652
+ hidden () {
653
+ this.criteriaShow = !this.criteriaShow
654
+ },
655
+ getPercent (num, total) {
656
+ num = parseFloat(num)
657
+ total = parseFloat(total)
658
+ if (isNaN(num) || isNaN(total)) {
659
+ return '-'
660
+ }
661
+ return total <= 0 ? '0%' : Math.round((num / total) * 10000) / 100.0 + '%'
662
+ },
663
+ getorg (val) {
664
+ if (val.length <= 0) {
665
+ return
666
+ }
667
+ this.$refs.cp.$refs.cri.model.orgid = val[0]
668
+ },
669
+ // 关闭
670
+ closeProgress(){
671
+ this.showProgress = false
672
+ this.showModal = false
673
+ this.percent = 0
674
+ },
675
+ // 下发人员查询
676
+ async selectman () {
677
+ let source = 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
678
+ let data = {
679
+ source: source,
680
+ userid: this.$login.f.id
681
+ }
682
+ let res = await this.$resetpost(
683
+ 'rs/search',
684
+ {data: data},
685
+ {resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
686
+ )
687
+ this.f_issue_mans = res.data.map(source => {
688
+ return {
689
+ "label": source.name,
690
+ "value": source.id
691
+ }
692
+ }).sort((a,b)=>a.label.localeCompare(b.label, 'zh-Hans-CN'))
693
+ },
694
+ closePrint () {
695
+ this.showPrint = false
696
+ },
697
+ print () {
698
+ this.$refs.print.PrintTable()
699
+ },
700
+ async getData (row) {
701
+ this.userinfo = {}
702
+ this.userfiles = {}
703
+ this.userinfo = {}
704
+ let http = new HttpResetClass()
705
+ let condition1 = ''
706
+ if (row.f_sub_state === '完工') {
707
+ condition1 = `f_userinfo_id = '${row.f_userinfo_id}' and f_table_state='正常'`
708
+ } else {
709
+ condition1 = `f_userinfo_id = '${row.f_userinfo_id}' and f_table_state='待开通'`
710
+ }
711
+ let data = {
712
+ condition: condition1
713
+ }
714
+ await http.load('POST', 'rs/sql/getUserFilesAndDevicesAmount', {data: data}, {
715
+ resolveMsg: null,
716
+ rejectMsg: null
717
+ }).then(res => {
718
+ this.userfiles = res.data[0]
719
+ data = {
720
+ tablename: 'activityins',
721
+ condition: `id = (select max(id) from activityins where processid = '${row.f_process_id}' and defname = '合同签订') `
722
+ }
723
+ http.load('POST', 'rs/sql/apply_singleTable', {data: data}, {
724
+ resolveMsg: null,
725
+ rejectMsg: null
726
+ }).then(res1 => {
727
+ this.userfor.f_person = res1.data[0].person
728
+ this.userfor.finishtime = res1.data[0].finishtime.substring(0, 10)
729
+ })
730
+ })
731
+ this.userinfo = row
732
+ },
733
+ },
734
+ computed: {
735
+ getCondition () {
736
+ return {
737
+ condition: this.model.condition,
738
+ data: {
739
+ id: this.$login.f.id,
740
+ orgid: this.$login.f.orgid
741
+ }
742
+ }
743
+ },
744
+ stylecss () {
745
+ let width = this.$appdata.getSingleValue('报建派工单打印宽度') ? this.$appdata.getSingleValue('报建派工单打印宽度') : '12.5%'
746
+ let height = this.$appdata.getSingleValue('报建派工单打印高度') ? this.$appdata.getSingleValue('报建派工单打印高度') : '30px'
747
+ return `height:${height};width: ${width};`
748
+ }
749
+ }
750
+ }
751
+ </script>
752
+
753
+ <style scoped>
754
+ </style>