3f535f30
杨鑫
'初始'
|
1
2
|
<template>
<div style="background-color:#f7f7f7;padding:10px 10px;">
|
900ab311
李宇
1
|
3
|
<div class="zhuti" v-if="onaction == '1'">
|
3f535f30
杨鑫
'初始'
|
4
|
<div style="height:58px;line-height:58px;">
|
900ab311
李宇
1
|
5
|
<div style="color:#0006"> <span>商铺租赁服务</span> <span style="padding:0 5px;">></span> <span
|
4373acf5
wesley88
1
|
6
|
style="color:#000000e6">到期预警</span></div>
|
3f535f30
杨鑫
'初始'
|
7
8
9
10
11
|
</div>
<!-- 线上 -->
<div>
<!-- 搜索 -->
<div class="formSearch">
|
900ab311
李宇
1
|
12
|
<el-form :inline="true" :model="pagequery">
|
4373acf5
wesley88
1
|
13
|
<el-form-item label="合同名称">
|
900ab311
李宇
1
|
14
15
|
<el-input v-model="pagequery.contractName" placeholder="请输入" style="width:168px;" />
</el-form-item>
|
3f535f30
杨鑫
'初始'
|
16
|
</el-form>
|
900ab311
李宇
1
|
17
|
|
3f535f30
杨鑫
'初始'
|
18
|
<div>
|
900ab311
李宇
1
|
19
|
<el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询
|
3f535f30
杨鑫
'初始'
|
20
|
</el-button>
|
900ab311
李宇
1
|
21
|
<el-button @click="resetting" class="buttonHover"
|
3f535f30
杨鑫
'初始'
|
22
23
24
|
style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置
</el-button>
</div>
|
3f535f30
杨鑫
'初始'
|
25
|
</div>
|
4373acf5
wesley88
1
|
26
27
28
29
30
|
<div style="margin-bottom: 20px;">
<el-button @click="openyujingSet()" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;"
icon="el-icon-circle-plus-outline">预警设置</el-button>
<!-- <el-button @click="" style="background-color: #3F9B6A;color: #fff">批量导入</el-button> -->
</div>
|
3f535f30
杨鑫
'初始'
|
31
32
|
<!-- 表格 -->
|
900ab311
李宇
1
|
33
34
|
<el-table :data="tableData"
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
4373acf5
wesley88
1
|
35
|
<el-table-column label="合同编号">
|
3f535f30
杨鑫
'初始'
|
36
|
<template slot-scope="scope">
|
900ab311
李宇
1
|
37
38
|
{{scope.row.contractName}}
|
3f535f30
杨鑫
'初始'
|
39
40
|
</template>
</el-table-column>
|
4373acf5
wesley88
1
|
41
|
<el-table-column label="合同名称">
|
900ab311
李宇
1
|
42
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
43
|
{{scope.row.contractName}}
|
900ab311
李宇
1
|
44
45
46
47
48
49
50
51
52
|
</template>
</el-table-column>
<el-table-column label="姓名">
<template slot-scope="scope">
{{scope.row.tenantName}}
</template>
</el-table-column>
|
4373acf5
wesley88
1
|
53
|
<el-table-column label="联系方式">
|
900ab311
李宇
1
|
54
55
|
<template slot-scope="scope">
{{scope.row.tenantTelephone}}
|
3f535f30
杨鑫
'初始'
|
56
57
58
|
</template>
</el-table-column>
|
4373acf5
wesley88
1
|
59
60
61
62
63
|
<el-table-column label="租赁资源">
<template slot-scope="scope">
{{scope.row.contractAmount}}
</template>
|
900ab311
李宇
1
|
64
|
</el-table-column>
|
4373acf5
wesley88
1
|
65
|
<el-table-column label="租赁起止时间">
|
900ab311
李宇
1
|
66
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
67
|
{{scope.row.contractSigningDate}}至{{scope.row.contractTerminationDate}}
|
900ab311
李宇
1
|
68
69
70
|
</template>
</el-table-column>
|
4373acf5
wesley88
1
|
71
|
<el-table-column label="到期天数">
|
900ab311
李宇
1
|
72
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
73
74
|
{{ calculateDaysUntilExpiration(scope.row.contractTerminationDate)}}
|
900ab311
李宇
1
|
75
76
|
</template>
</el-table-column>
|
900ab311
李宇
1
|
77
78
79
|
<el-table-column label="操作" min-width="150" fixed="right">
<template slot-scope="scope">
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
|
4373acf5
wesley88
1
|
80
|
<!-- <div @click="addgzd(scope.row)" class="tableBtn greens">发送提醒</div> -->
|
900ab311
李宇
1
|
81
82
|
</template>
</el-table-column>
|
3f535f30
杨鑫
'初始'
|
83
|
</el-table>
|
900ab311
李宇
1
|
84
85
|
<div style="display: flex;justify-content: space-between;" class="bom">
<div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
|
4373acf5
wesley88
1
|
86
87
|
<el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="10"
background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
|
900ab311
李宇
1
|
88
89
|
@current-change="handleCurrentChange">
</el-pagination>
|
3f535f30
杨鑫
'初始'
|
90
91
|
</div>
|
900ab311
李宇
1
|
92
93
94
95
96
97
98
|
</div>
</div>
|
3f535f30
杨鑫
'初始'
|
99
|
|
900ab311
李宇
1
|
100
|
|
4373acf5
wesley88
1
|
101
102
103
104
105
106
107
108
109
110
|
<el-dialog title="预警设置" :visible.sync="yujingSet" style="padding: 0;" width="60%" center :close-on-click-modal="false" :show-close="false" top="20vh">
<div>
<div style="margin-bottom: 20px;">
<el-form ref="form" :model="zhong" label-width="120px">
<el-form-item label="合同剩余天数">
<el-input v-model="zhong.contractExpirationDays"></el-input>
</el-form-item>
<el-form-item label="提醒内容">
<wang-editor v-model="zhong.reminderContent" ref="editor" :height="200"></wang-editor>
</el-form-item>
|
3f535f30
杨鑫
'初始'
|
111
|
|
4373acf5
wesley88
1
|
112
113
114
115
116
117
118
119
120
121
|
</el-form>
</div>
<div style="display: flex;justify-content: flex-end;">
<el-button @click="yuclose" class="buttonHover"
style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">返回</el-button>
<el-button @click="yuChenk" style="background-color: #3F9B6A;color: #fff">确定</el-button>
</div>
|
8550d958
杨鑫
'最新'
|
122
|
</div>
|
4373acf5
wesley88
1
|
123
124
|
</el-dialog>
|
900ab311
李宇
1
|
125
126
127
128
|
<div class="zhuti" v-if="onaction == '3'">
<div style="height:58px;line-height:58px;">
<div style="color:#0006"> <span>出租管理</span> <span style="padding:0 5px;">></span> <span
style="color:#000000e6">查看</span></div>
|
3f535f30
杨鑫
'初始'
|
129
|
</div>
|
900ab311
李宇
1
|
130
|
<div>
|
4373acf5
wesley88
1
|
131
|
<busCha :info="detailsinfo" @removeonaction="removeonaction"></busCha>
|
900ab311
李宇
1
|
132
|
</div>
|
4373acf5
wesley88
1
|
133
134
135
136
137
|
<!-- <div>
<el-button class="buttonHover"
style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
@click="removeonaction('1')">返回</el-button>
</div> -->
|
900ab311
李宇
1
|
138
|
</div>
|
3f535f30
杨鑫
'初始'
|
139
|
|
4373acf5
wesley88
1
|
140
141
|
</div>
<!-- </div> -->
|
3f535f30
杨鑫
'初始'
|
142
143
144
145
146
|
</template>
<script>
import {
|
900ab311
李宇
1
|
147
|
contractGetAllnew,
|
3f535f30
杨鑫
'初始'
|
148
|
} from '../../../api/manage.js'
|
4373acf5
wesley88
1
|
149
150
151
152
|
import {
cereReminderSet,
cereReminderSetedit
} from '../../../api/commodityLease.js'
|
900ab311
李宇
1
|
153
154
|
// import add from './add'
import busCha from '../../../components/buscha/busCha'
|
4373acf5
wesley88
1
|
155
|
import wangEditor from "@/components/editor/index"
|
3f535f30
杨鑫
'初始'
|
156
|
export default {
|
3f535f30
杨鑫
'初始'
|
157
158
|
data() {
return {
|
4373acf5
wesley88
1
|
159
160
161
162
163
|
zhong: {
},
yujingSet: false,
detailsinfo: {},
|
900ab311
李宇
1
|
164
165
|
pagequery: {
pageNumber: 0,
|
3f535f30
杨鑫
'初始'
|
166
|
pageSize: 10,
|
4373acf5
wesley88
1
|
167
168
|
dataStatus:'1',
contractName: ''
|
3f535f30
杨鑫
'初始'
|
169
|
},
|
900ab311
李宇
1
|
170
171
172
|
tableData: [],
total: 0,
onaction: '1',
|
4373acf5
wesley88
1
|
173
|
info: {}
|
3f535f30
杨鑫
'初始'
|
174
175
|
}
},
|
900ab311
李宇
1
|
176
|
components: {
|
4373acf5
wesley88
1
|
177
178
|
busCha,
wangEditor
|
3f535f30
杨鑫
'初始'
|
179
|
},
|
900ab311
李宇
1
|
180
181
|
created() {
this.getAll()
|
3f535f30
杨鑫
'初始'
|
182
183
184
|
},
methods: {
|
4373acf5
wesley88
1
|
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
calculateDaysUntilExpiration(endDateString) {
const endDate = new Date(endDateString);
const today = new Date();
const timeDifference = endDate - today;
const daysDifference = Math.ceil(timeDifference / (1000 * 60 * 60 * 24));
return daysDifference >= 0 ? daysDifference : '已过期';
},
yuclose() {
this.yujingSet = false
},
yuChenk() {
console.error(this.zhong)
cereReminderSetedit(this.zhong).then(res => {
console.error(res)
if (res.code == 200) {
this.$message({
message: '预警设置成功',
type: 'success'
})
this.yujingSet = false
} else {
this.$message({
message: '预警设置失败',
type: 'error'
})
}
})
},
openyujingSet() {
cereReminderSet({
reminderType: '1'
}).then(res => {
console.error(res)
this.zhong = res.data
})
this.yujingSet = true
},
|
900ab311
李宇
1
|
223
224
225
|
addgzd(row) {
this.detailsinfo = row
this.onaction = '2'
|
3f535f30
杨鑫
'初始'
|
226
|
},
|
900ab311
李宇
1
|
227
228
229
|
details(row) {
this.detailsinfo = row
this.onaction = '3'
|
8550d958
杨鑫
'最新'
|
230
|
},
|
900ab311
李宇
1
|
231
232
|
biangeng(row) {
alert(`合同变更 - 店铺ID: ${row.id}`);
|
8550d958
杨鑫
'最新'
|
233
|
},
|
900ab311
李宇
1
|
234
235
|
xuyue(row) {
alert(`合同续约 - 店铺ID: ${row.id}`);
|
8550d958
杨鑫
'最新'
|
236
|
},
|
900ab311
李宇
1
|
237
238
|
zhongzhi(row) {
alert(`合同终止 - 店铺ID: ${row.id}`);
|
3f535f30
杨鑫
'初始'
|
239
|
},
|
900ab311
李宇
1
|
240
241
242
243
|
async getAll() {
const res = await contractGetAllnew(this.pagequery)
this.tableData = res.data.content
this.total = res.data.totalElements
|
3f535f30
杨鑫
'初始'
|
244
|
},
|
900ab311
李宇
1
|
245
246
247
|
removeonaction(e) {
console.error(e)
this.onaction = e
|
3f535f30
杨鑫
'初始'
|
248
249
|
},
handleCurrentChange(val) {
|
4373acf5
wesley88
1
|
250
|
this.pagequery.pageNumber = val - 1
|
900ab311
李宇
1
|
251
|
this.getAll()
|
3f535f30
杨鑫
'初始'
|
252
|
},
|
900ab311
李宇
1
|
253
254
|
handleSizeChange(val) {
this.pagequery.pageSize = val
|
3f535f30
杨鑫
'初始'
|
255
256
|
},
// 查询按钮
|
900ab311
李宇
1
|
257
258
259
|
async onSubmit() {
this.pagequery.pageNumber = 0
this.getAll()
|
3f535f30
杨鑫
'初始'
|
260
261
|
},
//重置按钮
|
900ab311
李宇
1
|
262
263
264
265
|
resetting() {
this.pagequery = {
pageNumber: 0,
pageSize: 10,
|
4373acf5
wesley88
1
|
266
267
|
dataStatus:'1',
contractName: ''
|
900ab311
李宇
1
|
268
269
270
|
},
this.getAll()
},
|
3f535f30
杨鑫
'初始'
|
271
|
}
|
900ab311
李宇
1
|
272
|
|
3f535f30
杨鑫
'初始'
|
273
274
275
276
|
}
</script>
<style scoped>
|
3f535f30
杨鑫
'初始'
|
277
|
.zhuti {
|
4373acf5
wesley88
1
|
278
|
padding: 0 20px 20px 20px;
|
3f535f30
杨鑫
'初始'
|
279
280
281
282
|
min-height: calc(100vh - 50px - 20px);
background-color: #Fff;
}
|
4373acf5
wesley88
1
|
283
284
|
.chengeXia{
border-bottom: 6px solid #3F9B6A;padding-bottom: 4px;color: #3F9B6A;
|
3f535f30
杨鑫
'初始'
|
285
286
|
}
|
4373acf5
wesley88
1
|
287
|
/deep/ .el-form-item__content {
|
3f535f30
杨鑫
'初始'
|
288
|
line-height: 0;
|
4373acf5
wesley88
1
|
289
|
}
|
3f535f30
杨鑫
'初始'
|
290
291
292
293
|
.tableBtn {
display: inline-block;
margin-right: 10px;
|
4373acf5
wesley88
1
|
294
|
color:#ACACAC;
|
3f535f30
杨鑫
'初始'
|
295
296
297
298
299
300
301
|
}
.formSearch {
display: flex;
width: 100%;
font-size: 14px;
justify-content: space-between;
|
4373acf5
wesley88
1
|
302
303
|
padding-bottom: 10px;
|
3f535f30
杨鑫
'初始'
|
304
305
306
307
308
309
310
311
|
}
.greens {
color: #3F9B6A;
}
/deep/ .el-table__row {
font-size: 14px;
|
4373acf5
wesley88
1
|
312
313
|
color:#000000e6;
height:42px;
|
3f535f30
杨鑫
'初始'
|
314
315
316
317
318
|
}
.fenye {
margin-top: 20px;
display: flex;
|
4373acf5
wesley88
1
|
319
|
justify-content: flex-end;
|
3f535f30
杨鑫
'初始'
|
320
321
322
323
324
325
|
}
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: #3F9B6A;
}
|
4373acf5
wesley88
1
|
326
327
|
.el-row {
margin-bottom: 20px;
|
3f535f30
杨鑫
'初始'
|
328
|
|
4373acf5
wesley88
1
|
329
330
331
332
|
&:last-child {
margin-bottom: 0;
}
}
|
3f535f30
杨鑫
'初始'
|
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
|
.el-col {
border-radius: 4px;
}
.bg-purple-dark {
background: #99a9bf;
}
.bg-purple {
background: #d3dce6;
}
.bg-purple-light {
background: #e5e9f2;
}
.grid-content {
border-radius: 4px;
min-height: 36px;
}
.row-bg {
padding: 10px 0;
background-color: #f9fafc;
}
/deep/ .bg-purple[data-v-0e3fe4ec] {
background: #fff;
height: 50px;
}
|
4373acf5
wesley88
1
|
364
|
/deep/ .bg-purple[data-v-3bebae82]{
|
3f535f30
杨鑫
'初始'
|
365
366
367
368
|
background: #fff;
height: 50px;
}
|
4373acf5
wesley88
1
|
369
|
::v-deep .bg-purple{
|
3f535f30
杨鑫
'初始'
|
370
371
372
|
background: #fff;
height: 50px;
}
|
3f535f30
杨鑫
'初始'
|
373
374
375
|
/deep/ .el-form--label-top .el-form-item__label {
padding: 0;
}
|
4373acf5
wesley88
1
|
376
377
378
379
380
381
382
383
384
385
|
::v-deep .el-form-item{
margin-bottom:16px;
}
.device-form .el-form-item__label::after {
content: "*";
color: #1A1A1A;
margin-left: 5px;
font-size: 16px;
}
|
3f535f30
杨鑫
'初始'
|
386
387
388
|
::v-deep .el-dialog__wrapper {
.el-dialog__header {
|
4373acf5
wesley88
1
|
389
|
background-color: #FAFAFA;
|
3f535f30
杨鑫
'初始'
|
390
391
|
}
}
|
4373acf5
wesley88
1
|
392
393
394
|
::v-deep .el-input__inner:focus {
border: #3F9B6A 1px solid;
}
|
3f535f30
杨鑫
'初始'
|
395
396
397
398
399
400
|
.dialog-footer {
display: flex;
justify-content: flex-end;
border-top: solid rgba(209, 209, 209, 0.2) 2px;
padding-top: 20px;
}
|
4373acf5
wesley88
1
|
401
402
403
404
405
406
407
408
409
410
411
412
413
414
|
::v-deep .el-input__inner:focus {
border: #3F9B6A 1px solid;
}
::v-deep .el-input__inner:hover {
border: #3F9B6A 1px solid;
}
::v-deep .el-select .el-input.is-focus .el-input__inner{
border-color:#3F9B6A
}
::v-deep .btn .el-button:focus,
.el-button:hover {
border: 1px solid #3F9B6A;
}
.el-select-dropdown__item.selected{
|
3f535f30
杨鑫
'初始'
|
415
|
color: #3F9B6A;
|
4373acf5
wesley88
1
|
416
|
}
|
3f535f30
杨鑫
'初始'
|
417
|
|
4373acf5
wesley88
1
|
418
419
420
421
|
.el-pagination__sizes .el-input .el-input__inner:hover{
border-color: #3F9B6A;
}
::v-deep .el-dialog__wrapper{
|
3f535f30
杨鑫
'初始'
|
422
|
|
4373acf5
wesley88
1
|
423
|
.dialog_css{
|
3f535f30
杨鑫
'初始'
|
424
|
margin-right: 12px;
|
4373acf5
wesley88
1
|
425
426
427
428
429
430
|
margin-top:61px !important;
.el-dialog__title {
font-size: 16px !important;
font-weight: 600;
color: #000;
}
|
900ab311
李宇
1
|
431
|
}
|
4373acf5
wesley88
1
|
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
|
.diaslog_zhong{
margin-left: 20%;
margin-top:61px !important;
}
}
::v-deep .diaslog_zhong{
margin-left: 20%;
margin-top:61px !important;
.el-dialog__header{
background-color:#fff;
border-bottom:1px solid #EFEFEF;
.el-dialog__title{
font-size: 14px;
color: #000000e6;
}
}
.el-dialog__body{
padding:10px 20px 30px 20px
}
}
/deep/ .el-table_1_column_8 .hetong{
color:#7DBB9A;
text-decoration: underline;
}
/deep/ .first-column-bg {
|
3f535f30
杨鑫
'初始'
|
459
460
461
|
background-color: #FAFAFA !important;
}
|
4373acf5
wesley88
1
|
462
463
464
|
.el-table tr{
height:56px;
}
|
3f535f30
杨鑫
'初始'
|
465
|
|
4373acf5
wesley88
1
|
466
467
468
|
::v-deep .table3{
.el-table__empty-block{
display:none;
|
3f535f30
杨鑫
'初始'
|
469
|
}
|
4373acf5
wesley88
1
|
470
471
472
473
|
}
::v-deep .textarea{
width: 85%;
.el-textarea__inner{
|
3f535f30
杨鑫
'初始'
|
474
|
width: 100%;
|
3f535f30
杨鑫
'初始'
|
475
|
}
|
4373acf5
wesley88
1
|
476
477
478
479
480
|
}
::v-deep .el-button--mini{
padding: 7px 10px;
}
::v-deep .pass_input{
|
900ab311
李宇
1
|
481
|
width: 100%;
|
900ab311
李宇
1
|
482
483
|
.el-input__inner {
border: none;
|
4373acf5
wesley88
1
|
484
485
486
487
488
489
490
491
|
padding:0;
}
}
::v-deep .pass_select{
width: 100%;
.el-input__inner {
border: none;
padding:0;
|
900ab311
李宇
1
|
492
|
}
|
4373acf5
wesley88
1
|
493
494
495
|
.el-icon-arrow-up:before{
content:''
}
|
900ab311
李宇
1
|
496
|
|
4373acf5
wesley88
1
|
497
498
499
500
|
}
/deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
background-color: #fff;
}
|
3f535f30
杨鑫
'初始'
|
501
|
|
3f535f30
杨鑫
'初始'
|
502
|
|
3f535f30
杨鑫
'初始'
|
503
504
|
</style>
<style lang="scss" scoped>
|
4373acf5
wesley88
1
|
505
506
507
508
|
::v-deep .bian_css{
.el-dialog__header{
padding:0px;
}
|
3f535f30
杨鑫
'初始'
|
509
|
}
|
4373acf5
wesley88
1
|
510
511
|
::v-deep .buttonHover:hover{
color:#3f9b6a !important;
|
3f535f30
杨鑫
'初始'
|
512
513
514
515
|
border-color: #c5e1d2 !important;
background-color: #ecf5f0 !important;
outline: none;
}
|
4373acf5
wesley88
1
|
516
517
518
519
|
::v-deep .el-pagination__total{
position: absolute;
left: 33px;
}
|
3f535f30
杨鑫
'初始'
|
520
|
</style>
|
4373acf5
wesley88
1
|
|
|