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
|
<el-input v-model="pagequery.contractName" placeholder="请输入" style="width:168px;" />
|
3f535f30
杨鑫
'初始'
|
15
|
</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
25
|
style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置
</el-button>
</div>
</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="承租人名称">
|
900ab311
李宇
1
|
36
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
37
|
{{scope.row.tenantName}}
|
900ab311
李宇
1
|
38
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.contractType}}
|
900ab311
李宇
1
|
44
45
46
|
</template>
</el-table-column>
|
4373acf5
wesley88
1
|
47
|
<el-table-column label="租金/周期">
|
900ab311
李宇
1
|
48
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
49
|
{{scope.row.contractAmount}} / {{scope.row.paymentCycle}}
|
900ab311
李宇
1
|
50
51
52
|
</template>
</el-table-column>
|
4373acf5
wesley88
1
|
53
|
<el-table-column label="合同编号">
|
900ab311
李宇
1
|
54
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
55
|
{{scope.row.contractNumber}}
|
900ab311
李宇
1
|
56
57
58
|
</template>
</el-table-column>
|
4373acf5
wesley88
1
|
59
|
<el-table-column label="租赁起止时间">
|
900ab311
李宇
1
|
60
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
61
|
{{scope.row.contractSigningDate}}至{{scope.row.contractTerminationDate}}
|
900ab311
李宇
1
|
62
63
64
|
</template>
</el-table-column>
|
4373acf5
wesley88
1
|
65
|
<el-table-column label="到期天数">
|
900ab311
李宇
1
|
66
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
67
|
{{ calculateDaysUntilExpiration(scope.row.contractTerminationDate)}}
|
900ab311
李宇
1
|
68
69
70
|
</template>
</el-table-column>
|
900ab311
李宇
1
|
71
|
<el-table-column label="操作" min-width="150" fixed="right">
|
3f535f30
杨鑫
'初始'
|
72
73
|
<template slot-scope="scope">
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
|
4373acf5
wesley88
1
|
74
|
<!-- <div @click="addgzd(scope.row)" class="tableBtn greens">发送提醒</div> -->
|
3f535f30
杨鑫
'初始'
|
75
76
77
|
</template>
</el-table-column>
</el-table>
|
900ab311
李宇
1
|
78
79
|
<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
|
80
81
|
<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
|
82
83
|
@current-change="handleCurrentChange">
</el-pagination>
|
3f535f30
杨鑫
'初始'
|
84
85
|
</div>
|
3f535f30
杨鑫
'初始'
|
86
87
|
</div>
|
900ab311
李宇
1
|
88
89
90
91
92
93
94
|
</div>
|
4373acf5
wesley88
1
|
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
<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>
</el-form>
|
900ab311
李宇
1
|
109
|
|
4373acf5
wesley88
1
|
110
111
112
113
114
115
|
</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>
|
3f535f30
杨鑫
'初始'
|
116
|
</div>
|
4373acf5
wesley88
1
|
117
118
|
</el-dialog>
|
900ab311
李宇
1
|
119
120
121
122
123
124
|
<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>
</div>
<div>
|
4373acf5
wesley88
1
|
125
|
<busCha :info="detailsinfo" @removeonaction="removeonaction"></busCha>
|
900ab311
李宇
1
|
126
|
</div>
|
4373acf5
wesley88
1
|
127
128
129
130
131
|
<!-- <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
|
132
|
</div>
|
3f535f30
杨鑫
'初始'
|
133
|
|
4373acf5
wesley88
1
|
134
135
|
</div>
<!-- </div> -->
|
3f535f30
杨鑫
'初始'
|
136
137
138
139
140
|
</template>
<script>
import {
|
900ab311
李宇
1
|
141
|
contractGetAllnew,
|
3f535f30
杨鑫
'初始'
|
142
|
} from '../../../api/manage.js'
|
4373acf5
wesley88
1
|
143
144
145
146
|
import {
cereReminderSet,
cereReminderSetedit
} from '../../../api/commodityLease.js'
|
900ab311
李宇
1
|
147
148
|
// import add from './add'
import busCha from '../../../components/buscha/busCha'
|
4373acf5
wesley88
1
|
149
|
import wangEditor from "@/components/editor/index"
|
3f535f30
杨鑫
'初始'
|
150
|
export default {
|
3f535f30
杨鑫
'初始'
|
151
152
|
data() {
return {
|
4373acf5
wesley88
1
|
153
154
155
156
157
|
zhong: {
},
yujingSet: false,
detailsinfo: {},
|
900ab311
李宇
1
|
158
159
|
pagequery: {
pageNumber: 0,
|
3f535f30
杨鑫
'初始'
|
160
|
pageSize: 10,
|
4373acf5
wesley88
1
|
161
162
|
dataStatus:'1',
contractName: ''
|
3f535f30
杨鑫
'初始'
|
163
|
},
|
900ab311
李宇
1
|
164
165
166
|
tableData: [],
total: 0,
onaction: '1',
|
4373acf5
wesley88
1
|
167
|
info: {}
|
3f535f30
杨鑫
'初始'
|
168
169
|
}
},
|
900ab311
李宇
1
|
170
|
components: {
|
4373acf5
wesley88
1
|
171
172
|
busCha,
wangEditor
|
3f535f30
杨鑫
'初始'
|
173
|
},
|
900ab311
李宇
1
|
174
175
|
created() {
this.getAll()
|
3f535f30
杨鑫
'初始'
|
176
177
178
|
},
methods: {
|
4373acf5
wesley88
1
|
179
180
181
182
183
184
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
|
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: '2'
}).then(res => {
console.error(res)
this.zhong = res.data
})
this.yujingSet = true
},
|
900ab311
李宇
1
|
219
220
221
|
addgzd(row) {
this.detailsinfo = row
this.onaction = '2'
|
3f535f30
杨鑫
'初始'
|
222
|
},
|
900ab311
李宇
1
|
223
224
225
|
details(row) {
this.detailsinfo = row
this.onaction = '3'
|
3f535f30
杨鑫
'初始'
|
226
|
},
|
900ab311
李宇
1
|
227
228
|
biangeng(row) {
alert(`合同变更 - 店铺ID: ${row.id}`);
|
3f535f30
杨鑫
'初始'
|
229
|
},
|
900ab311
李宇
1
|
230
231
|
xuyue(row) {
alert(`合同续约 - 店铺ID: ${row.id}`);
|
3f535f30
杨鑫
'初始'
|
232
|
},
|
900ab311
李宇
1
|
233
234
|
zhongzhi(row) {
alert(`合同终止 - 店铺ID: ${row.id}`);
|
8550d958
杨鑫
'最新'
|
235
|
},
|
900ab311
李宇
1
|
236
237
238
239
|
async getAll() {
const res = await contractGetAllnew(this.pagequery)
this.tableData = res.data.content
this.total = res.data.totalElements
|
3f535f30
杨鑫
'初始'
|
240
|
},
|
900ab311
李宇
1
|
241
242
243
|
removeonaction(e) {
console.error(e)
this.onaction = e
|
3f535f30
杨鑫
'初始'
|
244
245
|
},
handleCurrentChange(val) {
|
4373acf5
wesley88
1
|
246
|
this.pagequery.pageNumber = val - 1
|
900ab311
李宇
1
|
247
|
this.getAll()
|
3f535f30
杨鑫
'初始'
|
248
|
},
|
900ab311
李宇
1
|
249
250
|
handleSizeChange(val) {
this.pagequery.pageSize = val
|
3f535f30
杨鑫
'初始'
|
251
252
|
},
// 查询按钮
|
900ab311
李宇
1
|
253
254
255
|
async onSubmit() {
this.pagequery.pageNumber = 0
this.getAll()
|
3f535f30
杨鑫
'初始'
|
256
257
|
},
//重置按钮
|
900ab311
李宇
1
|
258
259
260
261
|
resetting() {
this.pagequery = {
pageNumber: 0,
pageSize: 10,
|
4373acf5
wesley88
1
|
262
263
|
dataStatus:'1',
contractName: ''
|
900ab311
李宇
1
|
264
265
|
},
this.getAll()
|
3f535f30
杨鑫
'初始'
|
266
|
},
|
3f535f30
杨鑫
'初始'
|
267
268
269
270
271
272
|
}
}
</script>
<style scoped>
|
3f535f30
杨鑫
'初始'
|
273
|
.zhuti {
|
4373acf5
wesley88
1
|
274
|
padding: 0 20px 20px 20px;
|
3f535f30
杨鑫
'初始'
|
275
276
277
278
|
min-height: calc(100vh - 50px - 20px);
background-color: #Fff;
}
|
4373acf5
wesley88
1
|
279
280
|
.chengeXia{
border-bottom: 6px solid #3F9B6A;padding-bottom: 4px;color: #3F9B6A;
|
3f535f30
杨鑫
'初始'
|
281
282
|
}
|
4373acf5
wesley88
1
|
283
|
/deep/ .el-form-item__content {
|
3f535f30
杨鑫
'初始'
|
284
|
line-height: 0;
|
4373acf5
wesley88
1
|
285
|
}
|
3f535f30
杨鑫
'初始'
|
286
|
|
d64cd58f
wesley88
上传验收小程序
|
287
|
|
3f535f30
杨鑫
'初始'
|
288
289
290
291
292
293
|
.formSearch {
display: flex;
width: 100%;
font-size: 14px;
justify-content: space-between;
|
4373acf5
wesley88
1
|
294
295
|
padding-bottom: 10px;
|
3f535f30
杨鑫
'初始'
|
296
297
298
299
300
301
302
303
|
}
.greens {
color: #3F9B6A;
}
/deep/ .el-table__row {
font-size: 14px;
|
4373acf5
wesley88
1
|
304
305
|
color:#000000e6;
height:42px;
|
3f535f30
杨鑫
'初始'
|
306
307
308
309
310
|
}
.fenye {
margin-top: 20px;
display: flex;
|
4373acf5
wesley88
1
|
311
|
justify-content: flex-end;
|
3f535f30
杨鑫
'初始'
|
312
313
314
315
316
317
|
}
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: #3F9B6A;
}
|
4373acf5
wesley88
1
|
318
319
|
.el-row {
margin-bottom: 20px;
|
3f535f30
杨鑫
'初始'
|
320
|
|
4373acf5
wesley88
1
|
321
322
323
324
|
&:last-child {
margin-bottom: 0;
}
}
|
3f535f30
杨鑫
'初始'
|
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
|
.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
|
356
|
/deep/ .bg-purple[data-v-3bebae82]{
|
3f535f30
杨鑫
'初始'
|
357
358
359
360
|
background: #fff;
height: 50px;
}
|
4373acf5
wesley88
1
|
361
|
::v-deep .bg-purple{
|
3f535f30
杨鑫
'初始'
|
362
363
364
|
background: #fff;
height: 50px;
}
|
3f535f30
杨鑫
'初始'
|
365
366
367
|
/deep/ .el-form--label-top .el-form-item__label {
padding: 0;
}
|
4373acf5
wesley88
1
|
368
369
370
371
372
373
374
375
376
377
|
::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
杨鑫
'初始'
|
378
379
380
|
::v-deep .el-dialog__wrapper {
.el-dialog__header {
|
4373acf5
wesley88
1
|
381
|
background-color: #FAFAFA;
|
3f535f30
杨鑫
'初始'
|
382
383
|
}
}
|
4373acf5
wesley88
1
|
384
385
386
|
::v-deep .el-input__inner:focus {
border: #3F9B6A 1px solid;
}
|
3f535f30
杨鑫
'初始'
|
387
388
389
390
391
392
|
.dialog-footer {
display: flex;
justify-content: flex-end;
border-top: solid rgba(209, 209, 209, 0.2) 2px;
padding-top: 20px;
}
|
4373acf5
wesley88
1
|
393
394
395
396
397
398
399
400
401
402
403
404
405
406
|
::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
杨鑫
'初始'
|
407
|
color: #3F9B6A;
|
4373acf5
wesley88
1
|
408
|
}
|
3f535f30
杨鑫
'初始'
|
409
|
|
4373acf5
wesley88
1
|
410
411
412
413
|
.el-pagination__sizes .el-input .el-input__inner:hover{
border-color: #3F9B6A;
}
::v-deep .el-dialog__wrapper{
|
900ab311
李宇
1
|
414
|
|
4373acf5
wesley88
1
|
415
|
.dialog_css{
|
3f535f30
杨鑫
'初始'
|
416
|
margin-right: 12px;
|
4373acf5
wesley88
1
|
417
418
419
420
421
422
|
margin-top:61px !important;
.el-dialog__title {
font-size: 16px !important;
font-weight: 600;
color: #000;
}
|
3f535f30
杨鑫
'初始'
|
423
|
}
|
4373acf5
wesley88
1
|
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
|
.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
杨鑫
'初始'
|
451
452
453
|
background-color: #FAFAFA !important;
}
|
4373acf5
wesley88
1
|
454
455
456
|
.el-table tr{
height:56px;
}
|
900ab311
李宇
1
|
457
|
|
4373acf5
wesley88
1
|
458
459
460
|
::v-deep .table3{
.el-table__empty-block{
display:none;
|
3f535f30
杨鑫
'初始'
|
461
|
}
|
4373acf5
wesley88
1
|
462
463
464
465
|
}
::v-deep .textarea{
width: 85%;
.el-textarea__inner{
|
3f535f30
杨鑫
'初始'
|
466
|
width: 100%;
|
3f535f30
杨鑫
'初始'
|
467
|
}
|
4373acf5
wesley88
1
|
468
469
470
471
472
|
}
::v-deep .el-button--mini{
padding: 7px 10px;
}
::v-deep .pass_input{
|
900ab311
李宇
1
|
473
|
width: 100%;
|
900ab311
李宇
1
|
474
475
|
.el-input__inner {
border: none;
|
4373acf5
wesley88
1
|
476
477
478
479
480
481
482
483
|
padding:0;
}
}
::v-deep .pass_select{
width: 100%;
.el-input__inner {
border: none;
padding:0;
|
900ab311
李宇
1
|
484
|
}
|
4373acf5
wesley88
1
|
485
486
487
|
.el-icon-arrow-up:before{
content:''
}
|
3f535f30
杨鑫
'初始'
|
488
|
|
4373acf5
wesley88
1
|
489
490
491
492
|
}
/deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
background-color: #fff;
}
|
900ab311
李宇
1
|
493
|
|
900ab311
李宇
1
|
494
|
|
3f535f30
杨鑫
'初始'
|
495
496
|
</style>
<style lang="scss" scoped>
|
4373acf5
wesley88
1
|
497
498
499
500
|
::v-deep .bian_css{
.el-dialog__header{
padding:0px;
}
|
3f535f30
杨鑫
'初始'
|
501
|
}
|
4373acf5
wesley88
1
|
502
503
|
::v-deep .buttonHover:hover{
color:#3f9b6a !important;
|
3f535f30
杨鑫
'初始'
|
504
505
506
507
|
border-color: #c5e1d2 !important;
background-color: #ecf5f0 !important;
outline: none;
}
|
4373acf5
wesley88
1
|
508
509
510
511
|
::v-deep .el-pagination__total{
position: absolute;
left: 33px;
}
|
3f535f30
杨鑫
'初始'
|
512
|
</style>
|
4373acf5
wesley88
1
|
|
|