Blame view

admin-web-master/src/views/shopRental/rentTermination/index.vue 9.38 KB
3f535f30   杨鑫   '初始'
1
2
  <template>
    <div style="background-color:#f7f7f7;padding:10px 10px;">
93c8bac5   李宇   1
3
      <div class="zhuti" v-if="onaction == '1'">
3f535f30   杨鑫   '初始'
4
5
        <div style="height:58px;line-height:58px;">
          <div style="color:#0006"> <span>商铺租赁服务</span> <span style="padding:0 5px;">></span> <span
900ab311   李宇   1
6
              style="color:#000000e6">退租决算管理</span></div>
3f535f30   杨鑫   '初始'
7
8
9
10
11
        </div>
        <!-- 线上 -->
        <div>
          <!-- 搜索 -->
          <div class="formSearch">
93c8bac5   李宇   1
12
            <el-form :inline="true" :model="pagequery">
4373acf5   wesley88   1
13
              <el-form-item label="合同名称">
93c8bac5   李宇   1
14
15
                <el-input v-model="pagequery.contractName" placeholder="请输入" style="width:168px;" />
              </el-form-item>
3f535f30   杨鑫   '初始'
16
            </el-form>
93c8bac5   李宇   1
17
  
3f535f30   杨鑫   '初始'
18
19
20
21
22
23
24
25
            <div>
              <el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询
              </el-button>
              <el-button @click="resetting" class="buttonHover"
                style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置
              </el-button>
            </div>
          </div>
900ab311   李宇   1
26
          <!-- <div style="margin-bottom: 20px;">
93c8bac5   李宇   1
27
28
            <el-button @click="removeonaction('2')" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;"
              icon="el-icon-circle-plus-outline">新增</el-button>
900ab311   李宇   1
29
30
            <el-button @click="" style="background-color: #3F9B6A;color: #fff">批量导入</el-button>
          </div> -->
3f535f30   杨鑫   '初始'
31
32
          <!-- 表格 -->
  
93c8bac5   李宇   1
33
          <el-table :data="tableData"
3f535f30   杨鑫   '初始'
34
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
4373acf5   wesley88   1
35
            <el-table-column label="承租人名称">
93c8bac5   李宇   1
36
              <template slot-scope="scope">
4373acf5   wesley88   1
37
                {{scope.row.tenantName}}
3f535f30   杨鑫   '初始'
38
  
93c8bac5   李宇   1
39
40
              </template>
            </el-table-column>
4373acf5   wesley88   1
41
            <el-table-column label="租赁类型">
93c8bac5   李宇   1
42
              <template slot-scope="scope">
4373acf5   wesley88   1
43
                {{scope.row.contractType}}
3f535f30   杨鑫   '初始'
44
  
93c8bac5   李宇   1
45
46
              </template>
            </el-table-column>
4373acf5   wesley88   1
47
            <el-table-column label="租金/周期">
93c8bac5   李宇   1
48
              <template slot-scope="scope">
4373acf5   wesley88   1
49
                {{scope.row.contractAmount}} / {{scope.row.paymentCycle}}
3f535f30   杨鑫   '初始'
50
  
93c8bac5   李宇   1
51
52
              </template>
            </el-table-column>
4373acf5   wesley88   1
53
            <el-table-column label="合同编号">
93c8bac5   李宇   1
54
              <template slot-scope="scope">
4373acf5   wesley88   1
55
                {{scope.row.contractNumber}}
3f535f30   杨鑫   '初始'
56
  
93c8bac5   李宇   1
57
58
              </template>
            </el-table-column>
4373acf5   wesley88   1
59
            <el-table-column label="租赁起止时间">
93c8bac5   李宇   1
60
              <template slot-scope="scope">
4373acf5   wesley88   1
61
                {{scope.row.contractSigningDate}}至{{scope.row.contractTerminationDate}}
93c8bac5   李宇   1
62
63
64
  
              </template>
            </el-table-column>
3f535f30   杨鑫   '初始'
65
  
900ab311   李宇   1
66
67
            <el-table-column label="操作" min-width="150" fixed="right">
              <template slot-scope="scope">
93c8bac5   李宇   1
68
                <div @click="details(scope.row)" class="tableBtn greens">查看</div>
900ab311   李宇   1
69
70
                <div @click="addgzd(scope.row)" class="tableBtn greens">生成退租告知单</div>
              </template>
93c8bac5   李宇   1
71
72
73
74
            </el-table-column>
          </el-table>
          <div style="display: flex;justify-content: space-between;" class="bom">
            <div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
900ab311   李宇   1
75
            <el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="10" background
93c8bac5   李宇   1
76
77
78
              small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
              @current-change="handleCurrentChange">
            </el-pagination>
3f535f30   杨鑫   '初始'
79
          </div>
3f535f30   杨鑫   '初始'
80
  
93c8bac5   李宇   1
81
        </div>
3f535f30   杨鑫   '初始'
82
  
93c8bac5   李宇   1
83
      </div>
3f535f30   杨鑫   '初始'
84
  
3f535f30   杨鑫   '初始'
85
86
87
88
  
  
  
  
3f535f30   杨鑫   '初始'
89
  
93c8bac5   李宇   1
90
91
      <div class="zhuti" v-if="onaction == '2'">
        <div style="height:58px;line-height:58px;">
900ab311   李宇   1
92
          <div style="color:#0006"> <span>退租决算管理</span> <span style="padding:0 5px;">></span> <span
93c8bac5   李宇   1
93
94
              style="color:#000000e6">新增</span></div>
        </div>
3f535f30   杨鑫   '初始'
95
  
93c8bac5   李宇   1
96
        <div style="padding: 20px 20px 20px 0;">
900ab311   李宇   1
97
98
99
100
101
102
103
104
105
          <add :info="detailsinfo" @removeonaction="removeonaction"></add>
        </div>
      </div>
      <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
106
          <busCha :info="detailsinfo" @removeonaction="removeonaction"></busCha>
3f535f30   杨鑫   '初始'
107
        </div>
4373acf5   wesley88   1
108
109
110
111
112
        <!-- <div>
          <el-button class="buttonHover"
            style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
            @click="removeonaction('1')">返回</el-button>
        </div> -->
93c8bac5   李宇   1
113
      </div>
3f535f30   杨鑫   '初始'
114
115
116
117
118
119
    </div>
  
  
  </template>
  
  <script>
900ab311   李宇   1
120
121
122
    import {
      contractGetAllnew,
    } from '../../../api/manage.js'
93c8bac5   李宇   1
123
    import add from './add'
900ab311   李宇   1
124
    import busCha from '../../../components/buscha/busCha'
3f535f30   杨鑫   '初始'
125
    export default {
3f535f30   杨鑫   '初始'
126
127
      data() {
        return {
900ab311   李宇   1
128
          detailsinfo:{},
93c8bac5   李宇   1
129
          pagequery: {
900ab311   李宇   1
130
            pageNumber: 0,
93c8bac5   李宇   1
131
            pageSize: 10,
4373acf5   wesley88   1
132
133
            contractName: '',
            dataStatus:'1',
93c8bac5   李宇   1
134
135
136
137
          },
          tableData: [],
          total: 0,
          onaction: '1',
900ab311   李宇   1
138
          info:{}
3f535f30   杨鑫   '初始'
139
140
        }
      },
93c8bac5   李宇   1
141
      components: {
900ab311   李宇   1
142
143
144
145
146
        add,busCha
      },
      created() {
        this.getAll()
  
3f535f30   杨鑫   '初始'
147
148
      },
      methods: {
900ab311   李宇   1
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
        addgzd(row) {
          this.detailsinfo = row
          this.onaction = '2'
        },
        details(row) {
          this.detailsinfo = row
          this.onaction = '3'
        },
        biangeng(row) {
          alert(`合同变更 - 店铺ID: ${row.id}`);
        },
        xuyue(row) {
          alert(`合同续约 - 店铺ID: ${row.id}`);
        },
        zhongzhi(row) {
          alert(`合同终止 - 店铺ID: ${row.id}`);
        },
        async getAll() {
          const res = await contractGetAllnew(this.pagequery)
8550d958   杨鑫   '最新'
168
          this.tableData = res.data.content
900ab311   李宇   1
169
          this.total = res.data.totalElements
8550d958   杨鑫   '最新'
170
        },
93c8bac5   李宇   1
171
172
173
        removeonaction(e) {
          console.error(e)
          this.onaction = e
3f535f30   杨鑫   '初始'
174
175
        },
        handleCurrentChange(val) {
900ab311   李宇   1
176
177
          this.pagequery.pageNumber = val-1
          this.getAll()
3f535f30   杨鑫   '初始'
178
        },
93c8bac5   李宇   1
179
180
        handleSizeChange(val) {
          this.pagequery.pageSize = val
3f535f30   杨鑫   '初始'
181
182
183
        },
        // 查询按钮
        async onSubmit() {
900ab311   李宇   1
184
          this.pagequery.pageNumber = 0
93c8bac5   李宇   1
185
          this.getAll()
3f535f30   杨鑫   '初始'
186
187
188
        },
        //重置按钮
        resetting() {
93c8bac5   李宇   1
189
          this.pagequery = {
900ab311   李宇   1
190
              pageNumber: 0,
93c8bac5   李宇   1
191
              pageSize: 10,
4373acf5   wesley88   1
192
193
              contractName: '',
              dataStatus:'1',
3f535f30   杨鑫   '初始'
194
            },
93c8bac5   李宇   1
195
196
            this.getAll()
        },
3f535f30   杨鑫   '初始'
197
      }
93c8bac5   李宇   1
198
  
3f535f30   杨鑫   '初始'
199
200
201
202
    }
  </script>
  
  <style scoped>
93c8bac5   李宇   1
203
    .el-table {
900ab311   李宇   1
204
      /* height: calc(100vh - 330px); */
93c8bac5   李宇   1
205
    }
900ab311   李宇   1
206
  
3f535f30   杨鑫   '初始'
207
208
209
210
    .zhuti {
      padding: 0 20px 20px 20px;
      min-height: calc(100vh - 50px - 20px);
      background-color: #Fff;
93c8bac5   李宇   1
211
  
3f535f30   杨鑫   '初始'
212
213
214
215
216
217
218
219
    }
  
    .chengeXia {
      border-bottom: 6px solid #3F9B6A;
      padding-bottom: 4px;
      color: #3F9B6A;
    }
  
93c8bac5   李宇   1
220
    /* /deep/ .el-form-item__content {
3f535f30   杨鑫   '初始'
221
      line-height: 0;
93c8bac5   李宇   1
222
    } */
3f535f30   杨鑫   '初始'
223
224
225
226
227
228
229
230
231
232
233
234
  
    .tableBtn {
      display: inline-block;
      margin-right: 10px;
      color: #ACACAC;
    }
  
    .formSearch {
      display: flex;
      width: 100%;
      font-size: 14px;
      justify-content: space-between;
3f535f30   杨鑫   '初始'
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
    }
  
    .greens {
      color: #3F9B6A;
    }
  
    /deep/ .el-table__row {
      font-size: 14px;
      color: #000000e6;
      height: 42px;
    }
  
    .fenye {
      margin-top: 20px;
      display: flex;
93c8bac5   李宇   1
250
      justify-content: space-between;
3f535f30   杨鑫   '初始'
251
252
253
254
255
256
    }
  
    /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
      background-color: #3F9B6A;
    }
  
3f535f30   杨鑫   '初始'
257
  
3f535f30   杨鑫   '初始'
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
  
    .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;
    }
  
    /deep/ .bg-purple[data-v-3bebae82] {
      background: #fff;
      height: 50px;
    }
  
    ::v-deep .bg-purple {
      background: #fff;
      height: 50px;
    }
  
    /deep/ .el-form--label-top .el-form-item__label {
      padding: 0;
    }
  
3f535f30   杨鑫   '初始'
304
305
    ::v-deep .el-dialog__wrapper {
      .el-dialog__header {
93c8bac5   李宇   1
306
        background-color: #fff;
3f535f30   杨鑫   '初始'
307
308
309
      }
    }
  
93c8bac5   李宇   1
310
  
3f535f30   杨鑫   '初始'
311
312
313
314
315
316
317
318
  
    .dialog-footer {
      display: flex;
      justify-content: flex-end;
      border-top: solid rgba(209, 209, 209, 0.2) 2px;
      padding-top: 20px;
    }
  
3f535f30   杨鑫   '初始'
319
  
3f535f30   杨鑫   '初始'
320
  
3f535f30   杨鑫   '初始'
321
322
323
324
325
  
    .el-select-dropdown__item.selected {
      color: #3F9B6A;
    }
  
93c8bac5   李宇   1
326
327
    ::v-deep .el-dialog__title {
      color: #000;
3f535f30   杨鑫   '初始'
328
329
330
331
332
333
334
335
    }
  
    ::v-deep .el-dialog__wrapper {
  
      .dialog_css {
        margin-right: 12px;
        margin-top: 61px !important;
  
3f535f30   杨鑫   '初始'
336
337
338
339
340
341
342
343
344
      }
  
      .diaslog_zhong {
        margin-left: 222px;
        margin-top: 61px !important;
      }
  
    }
  
93c8bac5   李宇   1
345
346
347
    /deep/ .el-table_1_column_8 .hetong {
      color: #7DBB9A;
      text-decoration: underline;
3f535f30   杨鑫   '初始'
348
349
    }
  
93c8bac5   李宇   1
350
351
352
    /deep/ .first-column-bg {
      background-color: #FAFAFA !important;
    }
3f535f30   杨鑫   '初始'
353
  
93c8bac5   李宇   1
354
355
356
    .el-table tr {
      height: 56px;
    }
3f535f30   杨鑫   '初始'
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
  
    ::v-deep .table3 {
      .el-table__empty-block {
        display: none;
      }
    }
  
    ::v-deep .textarea {
      width: 85%;
  
      .el-textarea__inner {
        width: 100%;
      }
    }
  
93c8bac5   李宇   1
372
373
374
375
    ::v-deep .el-button--mini {
      padding: 7px 10px;
    }
  
3f535f30   杨鑫   '初始'
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
    ::v-deep .pass_input {
      width: 100%;
  
      .el-input__inner {
        border: none;
        padding: 0;
      }
    }
  
    ::v-deep .pass_select {
      width: 100%;
  
      .el-input__inner {
        border: none;
        padding: 0;
      }
  
      .el-icon-arrow-up:before {
        content: ''
      }
  
    }
  
    /deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
      background-color: #fff;
    }
3f535f30   杨鑫   '初始'
402
403
  </style>
  <style lang="scss" scoped>
93c8bac5   李宇   1
404
405
    ::v-deep .el-dialog__body {
      padding: 0 0 !important;
3f535f30   杨鑫   '初始'
406
407
408
409
410
411
412
413
    }
  
    ::v-deep .buttonHover:hover {
      color: #3f9b6a !important;
      border-color: #c5e1d2 !important;
      background-color: #ecf5f0 !important;
      outline: none;
    }
3f535f30   杨鑫   '初始'
414
  </style>