apply-clients 3.5.4-8 → 3.5.4-80

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