Blame view

admin-web-master/src/views/rent/audit/index.vue 14.2 KB
3f535f30   杨鑫   '初始'
1
2
  <template>
    <div style="background-color:#f7f7f7;padding:10px 10px;">
4373acf5   wesley88   1
3
      <div class="zhuti" v-if="onaction == '1'">
3f535f30   杨鑫   '初始'
4
        <div style="height:58px;line-height:58px;">
4373acf5   wesley88   1
5
          <div style="color:#0006"> <span>商铺租赁服务</span> <span style="padding:0 5px;">></span> <span
ab818baa   杨鑫   '1'
6
              style="color:#000000e6">招商租赁审核</span></div>
3f535f30   杨鑫   '初始'
7
        </div>
4373acf5   wesley88   1
8
        <!-- 线上 -->
3f535f30   杨鑫   '初始'
9
10
11
        <div>
          <!-- 搜索 -->
          <div class="formSearch">
4373acf5   wesley88   1
12
13
14
            <el-form :inline="true" :model="pagequery">
              <el-form-item label="合同名称">
                <el-input v-model="pagequery.contractName" placeholder="请输入" style="width:168px;" />
ab818baa   杨鑫   '1'
15
16
              </el-form-item>
            </el-form>
3f535f30   杨鑫   '初始'
17
18
  
            <div>
4373acf5   wesley88   1
19
              <el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询
3f535f30   杨鑫   '初始'
20
              </el-button>
ab818baa   杨鑫   '1'
21
22
              <el-button @click="resetting" class="buttonHover"
                style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置
3f535f30   杨鑫   '初始'
23
24
25
              </el-button>
            </div>
          </div>
4373acf5   wesley88   1
26
27
28
29
30
          <!-- <div style="margin-bottom: 20px;">
            <el-button @click="removeonaction('2')" 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
          <!-- 表格 -->
4373acf5   wesley88   1
32
33
  
          <el-table :data="tableData"
ab818baa   杨鑫   '1'
34
35
36
37
38
39
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
            <el-table-column label="序号" min-width="80">
              <template slot-scope="scope">
                {{scope.$index + 1}}
              </template>
            </el-table-column>
4373acf5   wesley88   1
40
            <el-table-column label="资源名称">
ab818baa   杨鑫   '1'
41
              <template slot-scope="scope">
4373acf5   wesley88   1
42
                {{scope.row.cereAdvertisingInformation.id?scope.row.cereAdvertisingInformation.id:scope.row.cereBasicInformationShop.shopName?scope.row.cereBasicInformationShop.shopName:scope.row.cereBasicInformationVenue.venueName?scope.row.cereBasicInformationVenue.venueName:''}}
ab818baa   杨鑫   '1'
43
44
              </template>
            </el-table-column>
4373acf5   wesley88   1
45
            <el-table-column label="资源类型">
ab818baa   杨鑫   '1'
46
              <template slot-scope="scope">
4373acf5   wesley88   1
47
                {{scope.row.cereAdvertisingInformation.id?'广告位':scope.row.cereBasicInformationShop.id?'商铺':scope.row.cereBasicInformationVenue.id?'场地':''}}
ab818baa   杨鑫   '1'
48
49
              </template>
            </el-table-column>
4373acf5   wesley88   1
50
            <el-table-column label="姓名">
ab818baa   杨鑫   '1'
51
              <template slot-scope="scope">
4373acf5   wesley88   1
52
                {{scope.row.operatorName?scope.row.operatorName:scope.row.lesseeName?scope.row.lesseeName:''}}
ab818baa   杨鑫   '1'
53
54
              </template>
            </el-table-column>
4373acf5   wesley88   1
55
            <el-table-column label="联系电话">
ab818baa   杨鑫   '1'
56
57
58
59
              <template slot-scope="scope">
                {{scope.row.operatorName?scope.row.operatorName:scope.row.lesseeName?scope.row.lesseeName:''}}
              </template>
            </el-table-column>
4373acf5   wesley88   1
60
            <el-table-column label="意向租期" prop="intendedLeaseTerm">
ab818baa   杨鑫   '1'
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
            </el-table-column>
  
            <el-table-column label="经营用途" min-width="150" porp='businessPurpose'>
              <template slot-scope="scope">
                {{scope.row.businessPurpose}}
              </template>
            </el-table-column>
            <el-table-column label="提交时间" min-width="250" porp='applicationTime'>
              <template slot-scope="scope">
                {{scope.row.applicationTime}}
              </template>
            </el-table-column>
            <el-table-column label="状态" min-width="100" porp='auditStatus'>
              <template slot-scope="scope">
                {{scope.row.auditStatus =='1'?'待审核':scope.row.auditStatus =='2'?'待签约':scope.row.auditStatus =='3'?'已驳回':scope.row.auditStatus =='4'?'已签约':'已终止'}}
              </template>
            </el-table-column>
  
4373acf5   wesley88   1
79
            <el-table-column label="操作" min-width="150" fixed="right">
ab818baa   杨鑫   '1'
80
              <template slot-scope="scope">
4373acf5   wesley88   1
81
82
83
84
                <div @click="details(scope.row)" class="tableBtn greens">查看</div>
                <div v-if='scope.row.auditStatus == 1' @click="remove(scope.row,'2')" class="tableBtn greens">同意</div>
                <div v-if='scope.row.auditStatus == 1' @click="remove(scope.row,'3')" class="tableBtn greens">驳回</div>
                <div v-if='scope.row.auditStatus == 2' @click="removeinfo(scope.row,'合同续约')" class="tableBtn greens">录入合同</div>
ab818baa   杨鑫   '1'
85
86
87
              </template>
            </el-table-column>
          </el-table>
4373acf5   wesley88   1
88
89
90
91
92
93
          <div style="display: flex;justify-content: space-between;" class="bom">
            <div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
            <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"
              @current-change="handleCurrentChange">
            </el-pagination>
ab818baa   杨鑫   '1'
94
          </div>
ab818baa   杨鑫   '1'
95
  
ab818baa   杨鑫   '1'
96
        </div>
ab818baa   杨鑫   '1'
97
  
4373acf5   wesley88   1
98
      </div>
ab818baa   杨鑫   '1'
99
  
ab818baa   杨鑫   '1'
100
  
ab818baa   杨鑫   '1'
101
  
ab818baa   杨鑫   '1'
102
  
ab818baa   杨鑫   '1'
103
  
ab818baa   杨鑫   '1'
104
  
4373acf5   wesley88   1
105
106
107
108
      <div class="zhuti" v-if="onaction == '2'">
        <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>
ab818baa   杨鑫   '1'
109
        </div>
ab818baa   杨鑫   '1'
110
  
4373acf5   wesley88   1
111
112
        <div style="padding: 20px 20px 20px 0;">
          <add :info="formInline" @removeonaction="removeonaction"></add>
ab818baa   杨鑫   '1'
113
        </div>
4373acf5   wesley88   1
114
115
      </div>
      <div class="zhuti" v-if="onaction == '3'">
ab818baa   杨鑫   '1'
116
117
118
119
        <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>
4373acf5   wesley88   1
120
121
122
123
124
125
126
127
128
129
130
131
132
        <div>
          <zl :info="detailsinfo" @removeonaction="removeonaction"></zl>
        </div>
        <!-- <div>
          <el-button class="buttonHover"
            style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
            @click="removeonaction('1')">返回</el-button>
        </div> -->
      </div>
      <div class="zhuti" v-if="onaction == '4'">
        <div style="height:58px;line-height:58px;">
          <div style="color:#0006"> <span>招商租赁审核</span> <span style="padding:0 5px;">></span> <span
              style="color:#000000e6">{{contractChangeReason}}</span></div>
ab818baa   杨鑫   '1'
133
        </div>
ab818baa   杨鑫   '1'
134
  
4373acf5   wesley88   1
135
136
137
138
        <div style="padding: 20px 20px 20px 0;">
          <addremove :info="detailsinfo" :contractChangeReason="contractChangeReason" @removeonaction="removeonaction">
          </addremove>
        </div>
ab818baa   杨鑫   '1'
139
      </div>
3f535f30   杨鑫   '初始'
140
    </div>
4373acf5   wesley88   1
141
142
  
  
3f535f30   杨鑫   '初始'
143
144
145
  </template>
  
  <script>
3f535f30   杨鑫   '初始'
146
147
148
149
150
151
    import {
      GetAll,
      queryGetAll,
      msgadd,
      msgedit,
      close,
4373acf5   wesley88   1
152
153
154
155
    } from '@/api/cereBusinessInfo'
    import add from '@/components/add/addht.vue'
    import addremove from '@/components/add/addremoveht.vue'
    import zl from '@/components/chakan/zl'
3f535f30   杨鑫   '初始'
156
    import {
4373acf5   wesley88   1
157
158
      cereContractInformation
    } from '@/api/commodityLease.js'
3f535f30   杨鑫   '初始'
159
160
161
    export default {
      data() {
        return {
4373acf5   wesley88   1
162
163
164
165
166
          contractChangeReason: '',
          detailsinfo: {},
          pagequery: {
            dataStatus:'1',
            pageNumber: 0,
3f535f30   杨鑫   '初始'
167
            pageSize: 10,
4373acf5   wesley88   1
168
            contractName: ''
3f535f30   杨鑫   '初始'
169
          },
4373acf5   wesley88   1
170
171
172
173
          tableData: [],
          total: 0,
          onaction: '1',
          formInline: {
3f535f30   杨鑫   '初始'
174
          },
3f535f30   杨鑫   '初始'
175
176
        }
      },
4373acf5   wesley88   1
177
178
179
180
181
      components: {
        add,
        zl,
        addremove
      },
3f535f30   杨鑫   '初始'
182
183
      created() {
        this.getAll()
3f535f30   杨鑫   '初始'
184
      },
3f535f30   杨鑫   '初始'
185
      methods: {
4373acf5   wesley88   1
186
187
188
189
190
191
192
193
194
195
196
197
198
199
        remove(e,auditStatus) {
          msgedit({id:e.id,'auditStatus':auditStatus}).then(res => {
            console.error(res)
            if (res.code == 200) {
              this.$message({
                message: '处理成功',
                type: 'success'
              })
              this.yujingSet = false
            } else {
              this.$message({
                message: '处理失败',
                type: 'error'
              })
ab818baa   杨鑫   '1'
200
            }
ba37c587   杨鑫   '最新版本'
201
          })
4373acf5   wesley88   1
202
          
3f535f30   杨鑫   '初始'
203
        },
4373acf5   wesley88   1
204
205
206
        gettime() {
          // 获取当前时间
          let currentTime = new Date();
3f535f30   杨鑫   '初始'
207
  
4373acf5   wesley88   1
208
209
          // 获取年份
          let year = currentTime.getFullYear();
3f535f30   杨鑫   '初始'
210
  
4373acf5   wesley88   1
211
212
          // 获取月份(注意月份是从0开始计数的,所以需要加1)
          let month = currentTime.getMonth() + 1;
3f535f30   杨鑫   '初始'
213
  
4373acf5   wesley88   1
214
215
          // 获取日期
          let day = currentTime.getDate();
3f535f30   杨鑫   '初始'
216
  
4373acf5   wesley88   1
217
218
          // 获取小时
          let hours = currentTime.getHours();
ab818baa   杨鑫   '1'
219
  
4373acf5   wesley88   1
220
221
          // 获取分钟
          let minutes = currentTime.getMinutes();
6ee6b0b7   杨鑫   '最新'
222
  
4373acf5   wesley88   1
223
224
          // 获取秒数
          let seconds = currentTime.getSeconds();
6ee6b0b7   杨鑫   '最新'
225
  
4373acf5   wesley88   1
226
227
          // 获取毫秒数
          let milliseconds = currentTime.getMilliseconds();
6ee6b0b7   杨鑫   '最新'
228
  
4373acf5   wesley88   1
229
230
          // 格式化时间为 YYYY-MM-DD
          let formattedDate = `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
3f535f30   杨鑫   '初始'
231
  
4373acf5   wesley88   1
232
233
234
235
236
237
238
          // 格式化时间为 HH:MM:SS
          let formattedTime =
            `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
  
          // 格式化时间为 YYYY-MM-DD HH:MM:SS
          let formattedDateTime = `${formattedDate} ${formattedTime}`;
          return formattedDateTime
3f535f30   杨鑫   '初始'
239
  
3f535f30   杨鑫   '初始'
240
        },
4373acf5   wesley88   1
241
242
243
        details(row) {
          this.detailsinfo = row
          this.onaction = '3'
3f535f30   杨鑫   '初始'
244
        },
4373acf5   wesley88   1
245
246
247
248
        removeinfo(row, e) {
          this.contractChangeReason = e
          this.detailsinfo = row
          this.onaction = '4'
3f535f30   杨鑫   '初始'
249
        },
4373acf5   wesley88   1
250
251
252
253
        async getAll() {
          const res = await GetAll(this.pagequery)
          this.tableData = res.data.content
          this.total = res.data.totalElements
3f535f30   杨鑫   '初始'
254
        },
4373acf5   wesley88   1
255
256
257
258
259
        removeonaction(e) {
          console.error(e)
          this.onaction = e
          this.pagequery.pageNumber = 0
          this.getAll()
3f535f30   杨鑫   '初始'
260
        },
4373acf5   wesley88   1
261
262
263
        handleCurrentChange(val) {
          this.pagequery.pageNumber = val - 1
          this.getAll()
3f535f30   杨鑫   '初始'
264
        },
4373acf5   wesley88   1
265
266
        handleSizeChange(val) {
          this.pagequery.pageSize = val
3f535f30   杨鑫   '初始'
267
        },
4373acf5   wesley88   1
268
269
270
        // 查询按钮
        async onSubmit() {
          this.pagequery.pageNumber = 0
ab818baa   杨鑫   '1'
271
          this.getAll()
3f535f30   杨鑫   '初始'
272
        },
4373acf5   wesley88   1
273
274
275
276
277
278
279
280
281
        //重置按钮
        resetting() {
          this.pagequery = {
              pageNumber: 0,
              pageSize: 10,
              dataStatus:'1',
              contractName: ''
            },
            this.getAll()
3f535f30   杨鑫   '初始'
282
283
        },
      }
4373acf5   wesley88   1
284
  
3f535f30   杨鑫   '初始'
285
286
    }
  </script>
3f535f30   杨鑫   '初始'
287
  
4373acf5   wesley88   1
288
  <style scoped>
3f535f30   杨鑫   '初始'
289
    .zhuti {
4373acf5   wesley88   1
290
      padding: 0  20px 20px 20px;
3f535f30   杨鑫   '初始'
291
292
293
294
      min-height: calc(100vh - 50px - 20px);
      background-color: #Fff;
  
    }
4373acf5   wesley88   1
295
296
    .chengeXia{
      border-bottom: 6px solid #3F9B6A;padding-bottom: 4px;color: #3F9B6A;
3f535f30   杨鑫   '初始'
297
298
    }
  
4373acf5   wesley88   1
299
300
    /deep/ .el-form-item__content {
      /* line-height: 0; */
3f535f30   杨鑫   '初始'
301
302
303
304
305
    }
  
    .tableBtn {
      display: inline-block;
      margin-right: 10px;
4373acf5   wesley88   1
306
      color:#ACACAC;
3f535f30   杨鑫   '初始'
307
308
309
310
311
312
313
    }
  
    .formSearch {
      display: flex;
      width: 100%;
      font-size: 14px;
      justify-content: space-between;
4373acf5   wesley88   1
314
315
      padding-bottom: 10px;
  
3f535f30   杨鑫   '初始'
316
317
318
319
320
321
    }
  
    .greens {
      color: #3F9B6A;
    }
  
4373acf5   wesley88   1
322
323
324
325
326
    /deep/ .el-table__row {
      font-size: 14px;
      color:#000000e6;
      height:42px;
    }
3f535f30   杨鑫   '初始'
327
328
329
330
331
  
    .fenye {
      margin-top: 20px;
      display: flex;
      justify-content: flex-end;
3f535f30   杨鑫   '初始'
332
333
334
335
336
337
    }
  
    /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
      background-color: #3F9B6A;
    }
  
4373acf5   wesley88   1
338
339
    .el-row {
      margin-bottom: 20px;
3f535f30   杨鑫   '初始'
340
  
4373acf5   wesley88   1
341
342
343
      &:last-child {
        margin-bottom: 0;
      }
3f535f30   杨鑫   '初始'
344
345
346
347
348
349
350
351
352
353
354
    }
  
    .el-col {
      border-radius: 4px;
    }
  
    .bg-purple-dark {
      background: #99a9bf;
    }
  
    .bg-purple {
4373acf5   wesley88   1
355
      background: #d3dce6;
3f535f30   杨鑫   '初始'
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
    }
  
    .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
376
377
378
      /deep/ .bg-purple[data-v-3bebae82]{
      background: #fff;
      height: 50px;
ab818baa   杨鑫   '1'
379
380
    }
  
4373acf5   wesley88   1
381
382
383
  ::v-deep .bg-purple{
      background: #fff;
      height: 50px;
3f535f30   杨鑫   '初始'
384
    }
4373acf5   wesley88   1
385
386
    /deep/ .el-form--label-top .el-form-item__label {
      padding: 0;
3f535f30   杨鑫   '初始'
387
    }
4373acf5   wesley88   1
388
389
390
391
392
393
394
395
  ::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   杨鑫   '初始'
396
397
    }
  
3f535f30   杨鑫   '初始'
398
  
4373acf5   wesley88   1
399
400
401
    ::v-deep .el-dialog__wrapper {
      .el-dialog__header {
        background-color: #FAFAFA;
3f535f30   杨鑫   '初始'
402
403
      }
    }
4373acf5   wesley88   1
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
   ::v-deep .el-input__inner:focus {
        border: #3F9B6A 1px solid;
     }
    .dialog-footer {
      display: flex;
      justify-content: flex-end;
      border-top: solid rgba(209, 209, 209, 0.2) 2px;
      padding-top: 20px;
    }
   ::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   杨鑫   '初始'
427
      color: #3F9B6A;
4373acf5   wesley88   1
428
  }
ab818baa   杨鑫   '1'
429
  
4373acf5   wesley88   1
430
  .el-pagination__sizes .el-input .el-input__inner:hover{
ab818baa   杨鑫   '1'
431
      border-color: #3F9B6A;
4373acf5   wesley88   1
432
433
  }
  ::v-deep .el-dialog__wrapper{
ab818baa   杨鑫   '1'
434
  
4373acf5   wesley88   1
435
    .dialog_css{
3f535f30   杨鑫   '初始'
436
        margin-right: 12px;
4373acf5   wesley88   1
437
        margin-top:61px !important;
3f535f30   杨鑫   '初始'
438
439
440
441
442
        .el-dialog__title {
          font-size: 16px !important;
          font-weight: 600;
          color: #000;
        }
4373acf5   wesley88   1
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
    }
    .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 {
      background-color: #FAFAFA !important;
    }
  
  .el-table tr{
    height:56px;
  }
  
  ::v-deep .table3{
    .el-table__empty-block{
      display:none;
    }
  }
  ::v-deep .textarea{
    width: 85%;
     .el-textarea__inner{
      width: 100%;
    }
  }
  ::v-deep .el-button--mini{
    padding: 7px 10px;
  }
  ::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;
3f535f30   杨鑫   '初始'
504
      }
4373acf5   wesley88   1
505
506
    .el-icon-arrow-up:before{
      content:''
3f535f30   杨鑫   '初始'
507
    }
3f535f30   杨鑫   '初始'
508
  
4373acf5   wesley88   1
509
510
511
512
  }
   /deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
    background-color: #fff;
  }
ab818baa   杨鑫   '1'
513
  
ab818baa   杨鑫   '1'
514
  
3f535f30   杨鑫   '初始'
515
516
  </style>
  <style lang="scss" scoped>
4373acf5   wesley88   1
517
518
519
    ::v-deep .bian_css{
      .el-dialog__header{
        padding:0px;
3f535f30   杨鑫   '初始'
520
      }
3f535f30   杨鑫   '初始'
521
    }
4373acf5   wesley88   1
522
523
    ::v-deep .buttonHover:hover{
      color:#3f9b6a !important;
3f535f30   杨鑫   '初始'
524
525
526
527
      border-color: #c5e1d2 !important;
      background-color: #ecf5f0 !important;
      outline: none;
    }
4373acf5   wesley88   1
528
529
530
    ::v-deep .el-pagination__total{
          position: absolute;
          left: 33px;
3f535f30   杨鑫   '初始'
531
532
    }
  </style>