apply-clients 3.5.6-2 → 3.5.6-4

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 (43) hide show
  1. package/build/dev-server.js +5 -5
  2. package/package.json +1 -1
  3. package/src/components/android/Process/AppServiceControl.vue +1760 -1760
  4. package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
  5. package/src/components/product/Install/ContractCharge.vue +210 -210
  6. package/src/filiale/fugou/android/AppAddMaterialScience.vue +444 -444
  7. package/src/filiale/fugou/android/AppAddReplacement.vue +512 -512
  8. package/src/filiale/fugou/android/AppZhihuanManagement.vue +242 -242
  9. package/src/filiale/fugou/pc/AddReplacement.vue +511 -511
  10. package/src/filiale/fugou/pc/ApplyChargeList.vue +554 -554
  11. package/src/filiale/fugou/pc/Applybatchdispatch.vue +754 -754
  12. package/src/filiale/fugou/pc/InstallationDetails.vue +646 -646
  13. package/src/filiale/fugou/pc/ServiceControl.vue +1732 -1732
  14. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
  15. package/src/filiale/fugou/pc.js +19 -19
  16. package/src/filiale/gongyi/pc/addressAndUserinfoManagement.vue +187 -187
  17. package/src/filiale/gongyi/pc.js +25 -25
  18. package/src/filiale/hongda/pc/addMaterialScience.vue +723 -723
  19. package/src/filiale/jinhuang/android/AppAddMaterialScience.vue +635 -635
  20. package/src/filiale/jinhuang/android/AppServiceControl.vue +1842 -1842
  21. package/src/filiale/jinhuang/android.js +7 -7
  22. package/src/filiale/jinhuang/pc/ExplorationSelect.vue +511 -511
  23. package/src/filiale/jinhuang/pc/ServiceControl.vue +2016 -2016
  24. package/src/filiale/jinhuang/pc/SupervisoryList.vue +19 -0
  25. package/src/filiale/jinhuang/pc/addMaterialScience.vue +638 -638
  26. package/src/filiale/jinhuang/pc.js +12 -12
  27. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +786 -786
  28. package/src/filiale/qianneng/pc/ServiceControl.vue +1387 -1387
  29. package/src/filiale/ruihua/pc/ServiceControl.vue +1973 -1973
  30. package/src/filiale/shexian/android/AppServiceControl.vue +1786 -1769
  31. package/src/filiale/shexian/android/AppSign.vue +152 -152
  32. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +527 -527
  33. package/src/filiale/yangchunboneng/android/AppContractCharge.vue +222 -222
  34. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1144 -1144
  35. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1879 -1879
  36. package/src/filiale/yangchunboneng/android.js +21 -21
  37. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
  38. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +612 -612
  39. package/src/filiale/yangchunboneng/pc/SupervisoryControl.vue +141 -141
  40. package/src/filiale/yangchunboneng/pc/buildOrderList.vue +421 -421
  41. package/src/filiale/yangchunboneng/pc/printBuildOrder.vue +175 -175
  42. package/src/filiale/yangchunboneng/pc.js +29 -29
  43. package/src/main.js +3 -3
@@ -1,511 +1,511 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3">
8
- <label class="font_normal_body">客户名称:</label>
9
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
10
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
11
- </div>
12
- <div class="form-group col-sm-3">
13
- <label class="font_normal_body">组织机构:</label>
14
- <res-select
15
- restype='organization'
16
- :initresid='$parent.$parent.curorgid'
17
- @res-select="$parent.$parent.getorg"
18
- is-mul="false"
19
- ></res-select>
20
- </div>
21
- <!-- <div class="form-group col-sm-3">-->
22
- <!-- <label class="font_normal_body">工程编号:</label>-->
23
- <!-- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"-->
24
- <!-- v-on:keyup.enter="$parent.$parent.search()"-->
25
- <!-- condition="u.f_apply_num = '{}'">-->
26
- <!-- </div>-->
27
- <div class="form-group col-sm-3 button-range">
28
- <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"
29
- href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>
30
- <button class="button_new button_spacing" style="width: max-content"
31
- v-if="$parent.$parent.projectStart"
32
- @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>
33
- <button class="button_new button_spacing" style="width: max-content"
34
- v-if="$parent.$parent.projectStart"
35
- @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
36
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
37
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
- <div
40
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
42
- class="button_spacing"
43
- style="float: right">
44
- </div>
45
- </div>
46
- </div>
47
- <div class="row" v-show="$parent.$parent.criteriaShow">
48
- <!-- <div class="form-group col-sm-3">-->
49
- <!-- <label class="font_normal_body">客户名称:</label>-->
50
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
51
- <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>-->
52
- <!-- </div>-->
53
- <div class="form-group col-sm-3">
54
- <label class="font_normal_body">用户编号:</label>
55
- <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
56
- v-on:keyup.enter="$parent.$parent.search()"
57
- condition="ui.f_userinfo_code like '%{}%'">
58
- </div>
59
- <div class="form-group col-sm-3">
60
- <label class="font_normal_body">工程编号:</label>
61
- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
62
- v-on:keyup.enter="$parent.$parent.search()"
63
- condition="u.f_apply_num like '%{}%'">
64
- </div>
65
- <div class="form-group col-sm-3">
66
- <label class="font_normal_body">合同金额:</label>
67
- <input type="text" style="width:60%" class="input_search" placeholder='合同金额' v-model="model.f_contract_money"
68
- v-on:keyup.enter="$parent.$parent.search()"
69
- condition="u.f_contract_money like '%{}%'">
70
- </div>
71
- <div class="form-group col-sm-3">
72
- <label class="font_normal_body">联系电话:</label>
73
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
74
- v-on:keyup.enter="$parent.$parent.search()"
75
- condition="f_phone like '%{}%'">
76
- </div>
77
- <div class="form-group col-sm-3">
78
- <label class="font_normal_body">合同编号:</label>
79
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
80
- v-on:keyup.enter="$parent.$parent.search()"
81
- condition="f_contract_number = '{}'">
82
- </div>
83
- <div class="form-group col-sm-3">
84
- <label class="font_normal_body">报建类型:</label>
85
- <v-select
86
- v-model="model.f_apply_type"
87
- placeholder='报建类型'
88
- condition="f_apply_type = '{}'"
89
- :value.sync="model.f_apply_type"
90
- :options='$parent.$parent.applytype'
91
- class="select select_list"
92
- :value-single="true"
93
- @change="$parent.$parent.applyTypeChange()"
94
- close-on-select ></v-select>
95
- </div>
96
- <div class="form-group col-sm-3">
97
- <label class="font_normal_body">办理环节:</label>
98
- <v-select
99
- v-model="model.defname"
100
- placeholder='办理环节'
101
- condition="act.defname = '{}'"
102
- :value.sync="model.defname"
103
- :options='$parent.$parent.defnames'
104
- class="select select_list"
105
- :value-single="true"
106
- close-on-select ></v-select>
107
- </div>
108
- <div class="form-group col-sm-3">
109
- <label class="font_normal_body">报建性质:</label>
110
- <v-select
111
- v-model="model.f_apply_nature"
112
- placeholder='报建性质'
113
- condition="f_apply_nature = '{}'"
114
- :value.sync="model.f_apply_nature"
115
- :options='$parent.$parent.applyNatures'
116
- class="select select_list"
117
- :value-single="true"
118
- close-on-select ></v-select>
119
- </div>
120
- <div class="form-group col-sm-3">
121
- <label class="font_normal_body">用户地址:</label>
122
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
123
- v-on:keyup.enter="$parent.$parent.search()"
124
- condition="f_address like '%{}%'">
125
- </div>
126
- <div class="form-group col-sm-3">
127
- <label for="startDate" class="font_normal_body">开始时间:</label>
128
- <datepicker id="startDate" placeholder="开始日期"
129
- style="width: 60%!important;"
130
- v-model="model.startDate"
131
- :value.sync="model.startDate"
132
- :format="'yyyy-MM-dd 00:00:00'"
133
- :show-reset-button="true"
134
- condition="f_apply_date >= '{}'">
135
- </datepicker>
136
- </div>
137
- <div class="form-group col-sm-3">
138
- <label for="endDate" class="font_normal_body">结束时间:</label>
139
- <datepicker id="endDate" placeholder="结束日期"
140
- style="width: 60%!important;"
141
- v-model="model.endDate"
142
- :value.sync="model.endDate"
143
- :format="'yyyy-MM-dd 23:59:59'"
144
- :show-reset-button="true"
145
- condition="f_apply_date <= '{}'">
146
- </datepicker>
147
- </div>
148
- <div class="form-group col-sm-3">
149
- <label class="font_normal_body">稍后处理:</label>
150
- <v-select
151
- v-model="model.f_no_valid"
152
- placeholder='稍后处理'
153
- condition="lp.f_no_valid = '{}'"
154
- :value.sync="model.f_no_valid"
155
- :options='$parent.$parent.laterList'
156
- class="select select_list"
157
- :value-single="true"
158
- close-on-select ></v-select>
159
- </div>
160
- <div class="form-group col-sm-3">
161
- <label class="font_normal_body">节点发起人:</label>
162
- <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
163
- v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
164
- </div>
165
- <div class="form-group col-sm-3">
166
- <label class="font_normal_body">老居民首次开发:</label>
167
- <v-select
168
- v-model="model.f_first_user"
169
- placeholder='是否老居民首次开发'
170
- condition="f_first_user = '{}'"
171
- :value.sync="model.f_first_user"
172
- :options='$parent.$parent.firstUser'
173
- class="select select_list"
174
- :value-single="true"
175
- close-on-select ></v-select>
176
- </div>
177
- </div>
178
- </div>
179
- </criteria>
180
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
181
- <template partial='head'>
182
- <tr>
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
- <th style="white-space: nowrap;">地址</th>
189
- <th style="white-space: nowrap;">来源</th>
190
- <th style="white-space: nowrap;">报建类型</th>
191
- <th style="white-space: nowrap;">办理环节</th>
192
- <th style="white-space: nowrap;">流程状态</th>
193
- <th style="white-space: nowrap;">报建日期</th>
194
- <th style="white-space: nowrap;">操作</th>
195
- </tr>
196
- </template>
197
- <template partial='body'>
198
- <tr class="back-style">
199
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
200
- <nobr><font>{{$index+1}}</font></nobr>
201
- </td>
202
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
203
- <nobr><font>{{row.f_apply_num}}</font></nobr>
204
- </td>
205
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
206
- <nobr><font>{{row.f_user_name}}</font></nobr>
207
- </td>
208
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
209
- <nobr><font>{{row.f_operator}}</font></nobr>
210
- </td>
211
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
212
- <nobr><font>{{row.f_phone}}</font></nobr>
213
- </td>
214
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
215
- <nobr><font>{{row.f_address}}</font></nobr>
216
- </td>
217
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
218
- <nobr><font>{{row.f_apply_source}}</font></nobr>
219
- </td>
220
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
221
- <nobr><font>{{row.f_apply_type}}</font></nobr>
222
- </td>
223
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
224
- <nobr><font>{{row.defname}}</font></nobr>
225
- </td>
226
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
227
- <nobr><font>{{row.f_sub_state}}</font></nobr>
228
- </td>
229
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
230
- <nobr><font>{{row.f_apply_date}}</font></nobr>
231
- </td>
232
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
233
- <dropdown>
234
- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
235
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
236
- </button>
237
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
238
- <li>
239
- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
240
- <a href="#" @click="$parent.$parent.$parent.openLater(row)" v-if="row.f_no_valid !== '有效'">稍后处理</a>
241
- </li>
242
- </ul>
243
- </dropdown>
244
- </td>
245
- </tr>
246
- </template>
247
- </data-grid>
248
- </criteria-paged>
249
-
250
- <modal
251
- v-if="showModal"
252
- :show.sync="showModal"
253
- backdrop="false"
254
- title="工程类型"
255
- cancel-text="取消"
256
- ok-text="确认"
257
- :callback="apply"
258
- >
259
- <div class="form-horizontal" slot="modal-body">
260
- <div class="form-group" style="margin: 10px auto">
261
- <label class="col-sm-3 control-label">报建类型:</label>
262
- <div class="col-sm-9">
263
- <v-select
264
- v-model="applyType"
265
- placeholder='请选择需要发起的工程类型'
266
- :value.sync="applyType"
267
- :options='$appdata.getParam("报建类型")'
268
- :value-single="true"
269
- class="select select_list"
270
- :search="false"
271
- close-on-select ></v-select>
272
- </div>
273
- </div>
274
- </div>
275
- </modal>
276
-
277
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
278
- <header slot="modal-header" class="modal-header">
279
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
280
- <h4 class="modal-title">选择文件</h4>
281
- </header>
282
- <article slot="modal-body" class="modal-body">
283
- <div class="form-group">
284
- <file-upload class="my-file-uploader" action="singlepage/rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
285
- </div>
286
- </article>
287
- <footer slot="modal-footer" class="modal-footer"></footer>
288
- </modal>
289
- </div>
290
- </template>
291
- <script>
292
- import {HttpResetClass, PagedList} from 'vue-client'
293
- import {isEmpty} from "../../../components/Util";
294
-
295
- export default {
296
- title: '工程列表',
297
- props: ['showData'],
298
- data () {
299
- return {
300
- model: new PagedList('rs/sql/checkuser', 20, {
301
- data: {
302
- id: this.$login.f.id,
303
- orgid: this.$login.f.orgid
304
- }
305
- }),
306
- showModal: false, // 控制发起类型选择
307
- applyType: '', // 报建类型
308
- curorgid: [this.$login.f.orgid],
309
- ignitertype: [{label: '全部', value: ''},{label: '一次点火', value: '一次点火'},{label: '二次点火', value: '二次点火'}],
310
- firstUser: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
311
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
312
- defnames: [{label: '全部', value: ''}], // 流程节点
313
- applyNatures: [{label: '全部', value: ''}], // 报建性质
314
- criteriaShow: false,
315
- showFile: false,
316
- laterList: [
317
- {label: '全部', value: ''},
318
- {label: '有效', value: '有效'}
319
- ]
320
- }
321
- },
322
- ready () {
323
- // 调用查询
324
- this.search()
325
- },
326
- methods: {
327
- openLater (row) {
328
- this.$dispatch('openLater', row)
329
- },
330
- closeFile () {
331
- this.showFile = false
332
- // 将选的文件清空
333
- this.$refs.file.$el.querySelector('input').value = ''
334
- this.search()
335
- },
336
- // 点击操作
337
- click (val) {
338
- this.$dispatch('apply', val)
339
- },
340
- // 获取流程id
341
- async getProcessId(processname) {
342
- let data = {
343
- workname: processname
344
- }
345
- let http = new HttpResetClass()
346
- let res = await http.load(
347
- 'POST',
348
- 'rs/logic/getProcessId',
349
- {data: data},
350
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
351
- )
352
-
353
- return res.data
354
- },
355
- // 报装申请
356
- async apply () {
357
- if (this.applyType === '' || this.applyType === null) {
358
- this.$showAlert('请选择需要发起的类型', 'warning', 3000)
359
- return
360
- }
361
- let data = {
362
- f_apply_type: this.applyType
363
- }
364
- if (this.applyType === '散户报建') {
365
- data.processname = '散户报建流程'
366
- data.defname = '报装申请'
367
- } else if (this.applyType === '工商户报建') {
368
- data.processname = '工商户报建流程'
369
- data.defname = '报装申请'
370
- } else if (this.applyType === '改管报建') {
371
- data.processname = '改管报建流程'
372
- data.defname = '报装申请'
373
- } else if (this.applyType === '增容报建') {
374
- data.processname = '增容报建流程'
375
- data.defname = '报装申请'
376
- } else if (this.applyType === '团购报建') {
377
- data.processname = '团购报建流程'
378
- data.defname = '报装申请'
379
- } else if (this.applyType === '退款报建') {
380
- data.processname = '退款报建流程'
381
- data.defname = '终止报建'
382
- } else if (this.applyType === '团购转散户') {
383
- data.processname = '团购转散户报建流程'
384
- data.defname = '信息确认'
385
- }else if (this.applyType === '报警器报建') {
386
- data.processname = '报警器报建流程'
387
- data.defname = '报装申请'
388
- }else if (this.applyType === '工商业报警器报建') {
389
- data.processname = '工商业报警器报建流程'
390
- data.defname = '报装申请'
391
- }else if (this.applyType === '集体报建') {
392
- data.processname = '集体报建流程'
393
- data.defname = '报装申请'
394
- } else if (this.applyType === '工商业报建') {
395
- data.processname = '工商业报建流程'
396
- data.defname = '报装申请'
397
- } else if (this.applyType === '民改商报建') {
398
- data.processname = '民改商报建流程'
399
- data.defname = '报装申请'
400
- } else {
401
- this.$showMessage('暂无此类报装')
402
- return
403
- }
404
-
405
- data.f_sub_state = "新增"
406
- data.f_apply_source = "线下发起"
407
- data.f_process_id = await this.getProcessId(data.processname)
408
-
409
- // 调用ExplorationUser事件
410
- this.$dispatch('apply', data)
411
-
412
- this.applyType = null
413
- this.showModal = false
414
- },
415
- loadPage () {
416
- this.$dispatch('loadPage')
417
- },
418
- search () {
419
- this.$dispatch('search')
420
- },
421
- async applyTypeChange () {
422
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
423
- let res = await this.$resetpost('rs/logic/getDefnameByType',
424
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
425
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
426
- )
427
-
428
- this.defnames = [{label: '全部', value: ''}, ...res.data]
429
-
430
- 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}性质`)]
431
- } else {
432
- this.defnames = [{label: '全部', value: ''}]
433
-
434
- this.applyNatures = [{label: '全部', value: ''}]
435
- }
436
- },
437
- clear () {
438
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
439
- this.$refs.cp.$refs.cri.model[key] = null
440
- })
441
- },
442
- getorg (val) {
443
- if (val.length <= 0) {
444
- return
445
- }
446
- this.model.params.data.orgid = val[0]
447
- }
448
- },
449
- computed: {
450
- projectStart () {
451
- return this.$login.r.includes('报建发起')
452
- }
453
- },
454
- watch: {
455
- 'model.rows': {
456
- handler: function () {
457
- let isover = [] // 过期(超时)数据
458
- let isbeforeover = [] // 未过期 提前提醒
459
- for (let i = 0; i < this.model.rows.length; i++) {
460
- let item = this.model.rows[i]
461
- if (item.isover === '过期') {
462
- isover.push(i + 1)
463
- }
464
- if (item.isbeforeover === '预期提醒') {
465
- isbeforeover.push(i + 1)
466
- }
467
- }
468
- let msg = null
469
- if (isover.length > 0) {
470
- msg = `第${isover.toString()}条数据已过期`
471
- this.$showAlert(msg, 'warning', 3000)
472
- }
473
-
474
- if (isbeforeover.length > 0) {
475
- msg = `第${isbeforeover.toString()}条数据即将过期`
476
- if (isover.length > 0) {
477
- setTimeout(() => {
478
- this.$showAlert(msg, 'warning', 3000)
479
- }, 4000)
480
- } else {
481
- this.$showAlert(msg, 'warning', 3000)
482
- }
483
- }
484
- }
485
- }
486
- },
487
- events: {
488
- async 'onFileUpload'(file, result) {
489
- let data = {
490
- filepath: result.f_realpath,
491
- user: this.$login.f
492
- }
493
- let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
494
-
495
- this.closeFile()
496
- }
497
- }
498
- }
499
- </script>
500
- <style scoped>
501
- .back-style{
502
- background-color: #ffa726;
503
- }
504
- .p1 {
505
- color: #dc0b12;
506
- font-weight:bold
507
- }
508
- .p {
509
- color: #ffaf4f;
510
- }
511
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">客户名称:</label>
9
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
10
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
11
+ </div>
12
+ <div class="form-group col-sm-3">
13
+ <label class="font_normal_body">组织机构:</label>
14
+ <res-select
15
+ restype='organization'
16
+ :initresid='$parent.$parent.curorgid'
17
+ @res-select="$parent.$parent.getorg"
18
+ is-mul="false"
19
+ ></res-select>
20
+ </div>
21
+ <!-- <div class="form-group col-sm-3">-->
22
+ <!-- <label class="font_normal_body">工程编号:</label>-->
23
+ <!-- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"-->
24
+ <!-- v-on:keyup.enter="$parent.$parent.search()"-->
25
+ <!-- condition="u.f_apply_num = '{}'">-->
26
+ <!-- </div>-->
27
+ <div class="form-group col-sm-3 button-range">
28
+ <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"
29
+ href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>
30
+ <button class="button_new button_spacing" style="width: max-content"
31
+ v-if="$parent.$parent.projectStart"
32
+ @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>
33
+ <button class="button_new button_spacing" style="width: max-content"
34
+ v-if="$parent.$parent.projectStart"
35
+ @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
36
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
37
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+ <div
40
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
42
+ class="button_spacing"
43
+ style="float: right">
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <div class="row" v-show="$parent.$parent.criteriaShow">
48
+ <!-- <div class="form-group col-sm-3">-->
49
+ <!-- <label class="font_normal_body">客户名称:</label>-->
50
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
51
+ <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>-->
52
+ <!-- </div>-->
53
+ <div class="form-group col-sm-3">
54
+ <label class="font_normal_body">用户编号:</label>
55
+ <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
56
+ v-on:keyup.enter="$parent.$parent.search()"
57
+ condition="ui.f_userinfo_code like '%{}%'">
58
+ </div>
59
+ <div class="form-group col-sm-3">
60
+ <label class="font_normal_body">工程编号:</label>
61
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
62
+ v-on:keyup.enter="$parent.$parent.search()"
63
+ condition="u.f_apply_num like '%{}%'">
64
+ </div>
65
+ <div class="form-group col-sm-3">
66
+ <label class="font_normal_body">合同金额:</label>
67
+ <input type="text" style="width:60%" class="input_search" placeholder='合同金额' v-model="model.f_contract_money"
68
+ v-on:keyup.enter="$parent.$parent.search()"
69
+ condition="u.f_contract_money like '%{}%'">
70
+ </div>
71
+ <div class="form-group col-sm-3">
72
+ <label class="font_normal_body">联系电话:</label>
73
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
74
+ v-on:keyup.enter="$parent.$parent.search()"
75
+ condition="f_phone like '%{}%'">
76
+ </div>
77
+ <div class="form-group col-sm-3">
78
+ <label class="font_normal_body">合同编号:</label>
79
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
80
+ v-on:keyup.enter="$parent.$parent.search()"
81
+ condition="f_contract_number = '{}'">
82
+ </div>
83
+ <div class="form-group col-sm-3">
84
+ <label class="font_normal_body">报建类型:</label>
85
+ <v-select
86
+ v-model="model.f_apply_type"
87
+ placeholder='报建类型'
88
+ condition="f_apply_type = '{}'"
89
+ :value.sync="model.f_apply_type"
90
+ :options='$parent.$parent.applytype'
91
+ class="select select_list"
92
+ :value-single="true"
93
+ @change="$parent.$parent.applyTypeChange()"
94
+ close-on-select ></v-select>
95
+ </div>
96
+ <div class="form-group col-sm-3">
97
+ <label class="font_normal_body">办理环节:</label>
98
+ <v-select
99
+ v-model="model.defname"
100
+ placeholder='办理环节'
101
+ condition="act.defname = '{}'"
102
+ :value.sync="model.defname"
103
+ :options='$parent.$parent.defnames'
104
+ class="select select_list"
105
+ :value-single="true"
106
+ close-on-select ></v-select>
107
+ </div>
108
+ <div class="form-group col-sm-3">
109
+ <label class="font_normal_body">报建性质:</label>
110
+ <v-select
111
+ v-model="model.f_apply_nature"
112
+ placeholder='报建性质'
113
+ condition="f_apply_nature = '{}'"
114
+ :value.sync="model.f_apply_nature"
115
+ :options='$parent.$parent.applyNatures'
116
+ class="select select_list"
117
+ :value-single="true"
118
+ close-on-select ></v-select>
119
+ </div>
120
+ <div class="form-group col-sm-3">
121
+ <label class="font_normal_body">用户地址:</label>
122
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
123
+ v-on:keyup.enter="$parent.$parent.search()"
124
+ condition="f_address like '%{}%'">
125
+ </div>
126
+ <div class="form-group col-sm-3">
127
+ <label for="startDate" class="font_normal_body">开始时间:</label>
128
+ <datepicker id="startDate" placeholder="开始日期"
129
+ style="width: 60%!important;"
130
+ v-model="model.startDate"
131
+ :value.sync="model.startDate"
132
+ :format="'yyyy-MM-dd 00:00:00'"
133
+ :show-reset-button="true"
134
+ condition="f_apply_date >= '{}'">
135
+ </datepicker>
136
+ </div>
137
+ <div class="form-group col-sm-3">
138
+ <label for="endDate" class="font_normal_body">结束时间:</label>
139
+ <datepicker id="endDate" placeholder="结束日期"
140
+ style="width: 60%!important;"
141
+ v-model="model.endDate"
142
+ :value.sync="model.endDate"
143
+ :format="'yyyy-MM-dd 23:59:59'"
144
+ :show-reset-button="true"
145
+ condition="f_apply_date <= '{}'">
146
+ </datepicker>
147
+ </div>
148
+ <div class="form-group col-sm-3">
149
+ <label class="font_normal_body">稍后处理:</label>
150
+ <v-select
151
+ v-model="model.f_no_valid"
152
+ placeholder='稍后处理'
153
+ condition="lp.f_no_valid = '{}'"
154
+ :value.sync="model.f_no_valid"
155
+ :options='$parent.$parent.laterList'
156
+ class="select select_list"
157
+ :value-single="true"
158
+ close-on-select ></v-select>
159
+ </div>
160
+ <div class="form-group col-sm-3">
161
+ <label class="font_normal_body">节点发起人:</label>
162
+ <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
163
+ v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
164
+ </div>
165
+ <div class="form-group col-sm-3">
166
+ <label class="font_normal_body">老居民首次开发:</label>
167
+ <v-select
168
+ v-model="model.f_first_user"
169
+ placeholder='是否老居民首次开发'
170
+ condition="f_first_user = '{}'"
171
+ :value.sync="model.f_first_user"
172
+ :options='$parent.$parent.firstUser'
173
+ class="select select_list"
174
+ :value-single="true"
175
+ close-on-select ></v-select>
176
+ </div>
177
+ </div>
178
+ </div>
179
+ </criteria>
180
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
181
+ <template partial='head'>
182
+ <tr>
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
+ <th style="white-space: nowrap;">地址</th>
189
+ <th style="white-space: nowrap;">来源</th>
190
+ <th style="white-space: nowrap;">报建类型</th>
191
+ <th style="white-space: nowrap;">办理环节</th>
192
+ <th style="white-space: nowrap;">流程状态</th>
193
+ <th style="white-space: nowrap;">报建日期</th>
194
+ <th style="white-space: nowrap;">操作</th>
195
+ </tr>
196
+ </template>
197
+ <template partial='body'>
198
+ <tr class="back-style">
199
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
200
+ <nobr><font>{{$index+1}}</font></nobr>
201
+ </td>
202
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
203
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
204
+ </td>
205
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
206
+ <nobr><font>{{row.f_user_name}}</font></nobr>
207
+ </td>
208
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
209
+ <nobr><font>{{row.f_operator}}</font></nobr>
210
+ </td>
211
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
212
+ <nobr><font>{{row.f_phone}}</font></nobr>
213
+ </td>
214
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
215
+ <nobr><font>{{row.f_address}}</font></nobr>
216
+ </td>
217
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
218
+ <nobr><font>{{row.f_apply_source}}</font></nobr>
219
+ </td>
220
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
221
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
222
+ </td>
223
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
224
+ <nobr><font>{{row.defname}}</font></nobr>
225
+ </td>
226
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
227
+ <nobr><font>{{row.f_sub_state}}</font></nobr>
228
+ </td>
229
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
230
+ <nobr><font>{{row.f_apply_date}}</font></nobr>
231
+ </td>
232
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
233
+ <dropdown>
234
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
235
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
236
+ </button>
237
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
238
+ <li>
239
+ <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
240
+ <a href="#" @click="$parent.$parent.$parent.openLater(row)" v-if="row.f_no_valid !== '有效'">稍后处理</a>
241
+ </li>
242
+ </ul>
243
+ </dropdown>
244
+ </td>
245
+ </tr>
246
+ </template>
247
+ </data-grid>
248
+ </criteria-paged>
249
+
250
+ <modal
251
+ v-if="showModal"
252
+ :show.sync="showModal"
253
+ backdrop="false"
254
+ title="工程类型"
255
+ cancel-text="取消"
256
+ ok-text="确认"
257
+ :callback="apply"
258
+ >
259
+ <div class="form-horizontal" slot="modal-body">
260
+ <div class="form-group" style="margin: 10px auto">
261
+ <label class="col-sm-3 control-label">报建类型:</label>
262
+ <div class="col-sm-9">
263
+ <v-select
264
+ v-model="applyType"
265
+ placeholder='请选择需要发起的工程类型'
266
+ :value.sync="applyType"
267
+ :options='$appdata.getParam("报建类型")'
268
+ :value-single="true"
269
+ class="select select_list"
270
+ :search="false"
271
+ close-on-select ></v-select>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ </modal>
276
+
277
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
278
+ <header slot="modal-header" class="modal-header">
279
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
280
+ <h4 class="modal-title">选择文件</h4>
281
+ </header>
282
+ <article slot="modal-body" class="modal-body">
283
+ <div class="form-group">
284
+ <file-upload class="my-file-uploader" action="singlepage/rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
285
+ </div>
286
+ </article>
287
+ <footer slot="modal-footer" class="modal-footer"></footer>
288
+ </modal>
289
+ </div>
290
+ </template>
291
+ <script>
292
+ import {HttpResetClass, PagedList} from 'vue-client'
293
+ import {isEmpty} from "../../../components/Util";
294
+
295
+ export default {
296
+ title: '工程列表',
297
+ props: ['showData'],
298
+ data () {
299
+ return {
300
+ model: new PagedList('rs/sql/checkuser', 20, {
301
+ data: {
302
+ id: this.$login.f.id,
303
+ orgid: this.$login.f.orgid
304
+ }
305
+ }),
306
+ showModal: false, // 控制发起类型选择
307
+ applyType: '', // 报建类型
308
+ curorgid: [this.$login.f.orgid],
309
+ ignitertype: [{label: '全部', value: ''},{label: '一次点火', value: '一次点火'},{label: '二次点火', value: '二次点火'}],
310
+ firstUser: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
311
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
312
+ defnames: [{label: '全部', value: ''}], // 流程节点
313
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
314
+ criteriaShow: false,
315
+ showFile: false,
316
+ laterList: [
317
+ {label: '全部', value: ''},
318
+ {label: '有效', value: '有效'}
319
+ ]
320
+ }
321
+ },
322
+ ready () {
323
+ // 调用查询
324
+ this.search()
325
+ },
326
+ methods: {
327
+ openLater (row) {
328
+ this.$dispatch('openLater', row)
329
+ },
330
+ closeFile () {
331
+ this.showFile = false
332
+ // 将选的文件清空
333
+ this.$refs.file.$el.querySelector('input').value = ''
334
+ this.search()
335
+ },
336
+ // 点击操作
337
+ click (val) {
338
+ this.$dispatch('apply', val)
339
+ },
340
+ // 获取流程id
341
+ async getProcessId(processname) {
342
+ let data = {
343
+ workname: processname
344
+ }
345
+ let http = new HttpResetClass()
346
+ let res = await http.load(
347
+ 'POST',
348
+ 'rs/logic/getProcessId',
349
+ {data: data},
350
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
351
+ )
352
+
353
+ return res.data
354
+ },
355
+ // 报装申请
356
+ async apply () {
357
+ if (this.applyType === '' || this.applyType === null) {
358
+ this.$showAlert('请选择需要发起的类型', 'warning', 3000)
359
+ return
360
+ }
361
+ let data = {
362
+ f_apply_type: this.applyType
363
+ }
364
+ if (this.applyType === '散户报建') {
365
+ data.processname = '散户报建流程'
366
+ data.defname = '报装申请'
367
+ } else if (this.applyType === '工商户报建') {
368
+ data.processname = '工商户报建流程'
369
+ data.defname = '报装申请'
370
+ } else if (this.applyType === '改管报建') {
371
+ data.processname = '改管报建流程'
372
+ data.defname = '报装申请'
373
+ } else if (this.applyType === '增容报建') {
374
+ data.processname = '增容报建流程'
375
+ data.defname = '报装申请'
376
+ } else if (this.applyType === '团购报建') {
377
+ data.processname = '团购报建流程'
378
+ data.defname = '报装申请'
379
+ } else if (this.applyType === '退款报建') {
380
+ data.processname = '退款报建流程'
381
+ data.defname = '终止报建'
382
+ } else if (this.applyType === '团购转散户') {
383
+ data.processname = '团购转散户报建流程'
384
+ data.defname = '信息确认'
385
+ }else if (this.applyType === '报警器报建') {
386
+ data.processname = '报警器报建流程'
387
+ data.defname = '报装申请'
388
+ }else if (this.applyType === '工商业报警器报建') {
389
+ data.processname = '工商业报警器报建流程'
390
+ data.defname = '报装申请'
391
+ }else if (this.applyType === '集体报建') {
392
+ data.processname = '集体报建流程'
393
+ data.defname = '报装申请'
394
+ } else if (this.applyType === '工商业报建') {
395
+ data.processname = '工商业报建流程'
396
+ data.defname = '报装申请'
397
+ } else if (this.applyType === '民改商报建') {
398
+ data.processname = '民改商报建流程'
399
+ data.defname = '报装申请'
400
+ } else {
401
+ this.$showMessage('暂无此类报装')
402
+ return
403
+ }
404
+
405
+ data.f_sub_state = "新增"
406
+ data.f_apply_source = "线下发起"
407
+ data.f_process_id = await this.getProcessId(data.processname)
408
+
409
+ // 调用ExplorationUser事件
410
+ this.$dispatch('apply', data)
411
+
412
+ this.applyType = null
413
+ this.showModal = false
414
+ },
415
+ loadPage () {
416
+ this.$dispatch('loadPage')
417
+ },
418
+ search () {
419
+ this.$dispatch('search')
420
+ },
421
+ async applyTypeChange () {
422
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
423
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
424
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
425
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
426
+ )
427
+
428
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
429
+
430
+ 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}性质`)]
431
+ } else {
432
+ this.defnames = [{label: '全部', value: ''}]
433
+
434
+ this.applyNatures = [{label: '全部', value: ''}]
435
+ }
436
+ },
437
+ clear () {
438
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
439
+ this.$refs.cp.$refs.cri.model[key] = null
440
+ })
441
+ },
442
+ getorg (val) {
443
+ if (val.length <= 0) {
444
+ return
445
+ }
446
+ this.model.params.data.orgid = val[0]
447
+ }
448
+ },
449
+ computed: {
450
+ projectStart () {
451
+ return this.$login.r.includes('报建发起')
452
+ }
453
+ },
454
+ watch: {
455
+ 'model.rows': {
456
+ handler: function () {
457
+ let isover = [] // 过期(超时)数据
458
+ let isbeforeover = [] // 未过期 提前提醒
459
+ for (let i = 0; i < this.model.rows.length; i++) {
460
+ let item = this.model.rows[i]
461
+ if (item.isover === '过期') {
462
+ isover.push(i + 1)
463
+ }
464
+ if (item.isbeforeover === '预期提醒') {
465
+ isbeforeover.push(i + 1)
466
+ }
467
+ }
468
+ let msg = null
469
+ if (isover.length > 0) {
470
+ msg = `第${isover.toString()}条数据已过期`
471
+ this.$showAlert(msg, 'warning', 3000)
472
+ }
473
+
474
+ if (isbeforeover.length > 0) {
475
+ msg = `第${isbeforeover.toString()}条数据即将过期`
476
+ if (isover.length > 0) {
477
+ setTimeout(() => {
478
+ this.$showAlert(msg, 'warning', 3000)
479
+ }, 4000)
480
+ } else {
481
+ this.$showAlert(msg, 'warning', 3000)
482
+ }
483
+ }
484
+ }
485
+ }
486
+ },
487
+ events: {
488
+ async 'onFileUpload'(file, result) {
489
+ let data = {
490
+ filepath: result.f_realpath,
491
+ user: this.$login.f
492
+ }
493
+ let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
494
+
495
+ this.closeFile()
496
+ }
497
+ }
498
+ }
499
+ </script>
500
+ <style scoped>
501
+ .back-style{
502
+ background-color: #ffa726;
503
+ }
504
+ .p1 {
505
+ color: #dc0b12;
506
+ font-weight:bold
507
+ }
508
+ .p {
509
+ color: #ffaf4f;
510
+ }
511
+ </style>