index copy.vue
57.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
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
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
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
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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
<template>
<div style="background-color:#f7f7f7;padding:10px 10px;">
<div class="zhuti" v-if=" detbox ==false">
<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>
<!-- 搜索 -->
<div class="formSearch">
<el-form :inline="true" :model="formSel">
<el-form-item label="商户名称">
<el-input v-model="formSel.leaseName" placeholder="请输入" style="width:168px;"/>
</el-form-item>
<el-form-item label="承租人">
<el-input v-model="formSel.cereContractInformation.tenantName" placeholder="请输入" style="width:168px;"/>
</el-form-item>
<el-form-item label="租赁类型">
<el-select v-model="formSel.leaseType" placeholder="请选择"
style="width:168px;margin-right: 15px">
<el-option label="商铺" value="商铺" />
<el-option label="场地" value="场地" />
<el-option label="广告位" value="广告位" />
</el-select>
</el-form-item>
<el-form-item label="资源名称">
<el-input v-model="formSel.cereContractInformation.shopName" placeholder="请输入" style="width:168px;"/>
</el-form-item>
<el-form-item label="租赁起租日期">
<el-date-picker style="width:168px;" v-model="formSel.cereContractInformation.leaseStartDate"
value-format="yyyy-M-d" type="daterange" range-separator="-" start-placeholder=""
end-placeholder="" prefix-icon="none" >
</el-date-picker>
</el-form-item>
</el-form>
<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>
<!-- <div style="margin-bottom: 20px;">
<div>
<el-button
style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">批量导入</el-button>
<el-button
style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">导出</el-button>
</div>
</div> -->
<!-- 表格 -->
<el-table :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"
>
<!-- <el-table-column label="订单编号" min-width="150" prop="id">
</el-table-column> -->
<el-table-column label="商户名称" min-width="180" prop="leaseName">
<template slot-scope="scope">
{{scope.row.leaseName}}
</template>
</el-table-column>
<el-table-column label="承租人" min-width="100">
<template slot-scope="scope">
{{scope.row.cereContractInformation.tenantName}}
</template>
</el-table-column>
<el-table-column label="租赁类型" prop="leaseType" min-width="100">
<template slot-scope="scope">
{{scope.row.leaseType}}
</template>
</el-table-column>
<!-- <el-table-column label="编号" prop="relatedMerchants" min-width="150">
<template slot-scope="scope">
{{scope.row.relatedMerchants}}
</template>
</el-table-column> -->
<el-table-column label="资源名称" prop="contractName" min-width="180">
<template slot-scope="scope">
{{scope.row.cereContractInformation.shopName}}
</template>
</el-table-column>
<el-table-column prop="contractType" label="租金" min-width="80">
<template slot-scope="scope">
{{scope.row.contractType }}
</template>
</el-table-column>
<el-table-column label="合同编号" prop="contractNumber" min-width="150">
<template slot-scope="scope">
{{scope.row.contractNumber }}
</template>
</el-table-column>
<el-table-column label="租赁起止时间" min-width="150">
<template slot-scope="scope">
{{scope.row.cereContractInformation.leaseStartDate }}
</template>
</el-table-column>
<el-table-column prop="contractTerminationDate" label="租赁状态" min-width="120">
<template slot-scope="scope">
{{scope.row.contractTerminationDate}}
</template>
</el-table-column>
<el-table-column label="操作" min-width="180">
<template slot-scope="scope">
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
<!-- <div @click="details(1,scope.row)" class="tableBtn greens">编辑</div> -->
<div @click="addbuss(3,scope.row)" class="tableBtn greens">生成入驻告知单</div>
<!-- <div @click="addbuss(3,scope.row)" class="tableBtn greens">出租状态更改</div> -->
<!-- <div class="tableBtn greens" @click="delList(scope.row)">删除</div> -->
</template>
</el-table-column>
</el-table>
<div class="fenye">
<el-pagination :hide-on-single-page='flag' background small size="mini" :current-page="currentPage"
:page-sizes="[10, 20, 50, 100]" layout="prev, pager, next,total"
:total="total " @size-change="handleSizeChange" @current-change="handleCurrentChange" />
</div>
</div>
</div>
<!-- 入驻单 -->
<el-dialog title="入驻告知单" :visible.sync="ggXin" custom-class="diaslog_zhong" style="padding: 0;" width="60%" class="dialog_css_Xq" center :close-on-click-modal="false" :show-close="false" >
<div>
<div style="margin-bottom: 20px;">
<el-form ref="form" :model="zhong" label-width="120px">
<el-form-item label="租金">
<el-input v-model="zhong.intentionalRent" ></el-input>
</el-form-item>
<el-form-item label="付款周期">
<el-select v-model="zhong.belongingDepartment" placeholder="请选择" style="margin-top:5px;width: 100%;">
<el-option label="按年" value="按年"></el-option>
<el-option label="按月" value="按月"></el-option>
<el-option label="按日" value="按日"></el-option>
<el-option label="季度" value="季度"></el-option>
</el-select>
</el-form-item>
<el-form-item label="付款日">
<el-select v-model="zhong.name" placeholder="请选择" style="margin-top:5px;width: 100%;">
<el-option :label="val+'号'" :value="val+'号'" v-for="val in 31"></el-option>
</el-select>
</el-form-item>
<el-form-item label="支付类型">
<el-select v-model="zhong.zhifu" placeholder="请选择" style="margin-top:5px;width: 100%;">
<el-option label="线上支付" value="线上支付"></el-option>
<el-option label="线下支付" value="线下支付"></el-option>
</el-select>
</el-form-item>
<el-form-item label="支付方式说明">
<wang-editor v-model="zhong.zhifushuo" ref="editor" :height="200"></wang-editor>
</el-form-item>
<el-form-item label="装修与改造规定">
<wang-editor v-model="zhong.gaizao" ref="editor" :height="200"></wang-editor>
</el-form-item>
<el-form-item label="其他备注信息">
<wang-editor v-model="zhong.noto" ref="editor" :height="200"></wang-editor>
</el-form-item>
</el-form>
</div>
<div style="display: flex;justify-content: flex-end;">
<el-button @click="closeFn(1)" class="buttonHover"
style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">返回</el-button>
<!-- <el-button @click="addCheck(4)" style="background-color: #3F9B6A;color: #fff">保存</el-button> -->
<el-button @click="yulan =true" style="background-color: #3F9B6A;color: #fff">预览</el-button>
</div>
</div>
<el-dialog :visible.sync="yulan" custom-class="actSpye_dialog" style="padding: 0;" width="50%" center :close-on-click-modal="false" append-to-body>
<div style="padding:20px 0">
<div class="form-container" ref="contentToConvert" style="background-color:#fff;">
<div class="form-header">入驻单</div>
<div class="form-group">
<label for="rentAmount">租金:</label>
<input type="text" id="rentAmount" v-model="zhong.intentionalRent" disabled>
</div>
<div class="form-group">
<label for="paymentMethod">付款周期:</label>
<input type="text" id="paymentMethod" v-model="zhong.belongingDepartment" disabled>
</div>
<div class="form-group">
<label>付款日:</label>
<input type="text" id="paymentDate" v-model="zhong.name" disabled>
</div>
<div class="form-group">
<label for="depositAmount">支付类型:</label>
<input type="text" id="depositAmount" v-model="zhong.zhifu" disabled>
</div>
<div class="form-group">
<label for="renovationRules">支付方式说明:</label>
<div style="padding:20px;width:100%;border: 1px solid #ccc;" v-html="zhong.zhifushuo"></div>
</div>
<div class="form-group">
<label for="renovationRules">装修与改造规定:</label>
<div style="padding:20px;width:100%;border: 1px solid #ccc;" v-html="zhong.gaizao"></div>
</div>
<div class="form-group">
<label for="remarks">其他备注信息:</label>
<div style="padding:20px;width:100%;border: 1px solid #ccc;" v-html="zhong.noto"></div>
</div>
</div>
<div style="justify-content:flex-end;margin:20px 20px 0 0;display:flex;">
<el-button @click="downloadPdf" style="background-color: #3F9B6A;color: #fff">下载</el-button>
<!-- <el-button style="background-color: #3F9B6A;color: #fff">打印</el-button> -->
<!-- <el-button style="background-color: #3F9B6A;color: #fff">发送</el-button> -->
</div>
</div>
</el-dialog>
</el-dialog>
<!-- 出租单查看 -->
<el-dialog :visible.sync="outdan" custom-class="tongyong_css" style="padding: 0;" width="60%"
class="dialog_css_Xq" center :close-on-click-modal="false" :show-close="false">
<div style="padding:20px;">
<div style="font-size: 14px;padding-bottom: 20px;color: #000;">出租单</div>
<div>
<el-tabs v-model="xiangTabs">
<el-tab-pane label="商户档案信息" name="first">
<div style="width: 100%">
<el-form ref="ruleForm" :model="ruleForm" label-width="130px">
<el-form-item label="商家类型" prop="intentCustomerName">
<el-select v-model="ruleForm.entityType" placeholder="线上商家" style="width:100%" disabled>
<el-option label="线上商家" value="线上商家" />
<el-option label="实体商家" value="实体商家" />
</el-select>
</el-form-item>
<el-form-item label="经营主体" prop="entityType">
<el-select v-model="ruleForm.entityType" placeholder="企业" style="width:100%" disabled>
<el-option label="企业" value="企业" />
<el-option label="个人" value="个人" />
</el-select>
</el-form-item>
<el-form-item label="经营范围" prop="玩偶的设计、生产、销售及网上销售;玩偶相关配件及服饰的设计、生产与销售;玩偶的定制服务玩偶的进出口业务;玩偶文化的推广与传播,:以及与玩偶相关的技术咨询、技术服务">
<el-input v-model="ruleForm.contactPhone" placeholder="请输入" disabled/>
</el-form-item>
<el-form-item label="开店名称" prop="成都火星">
<el-input v-model="ruleForm.contactPhone" placeholder="请输入" disabled/>
</el-form-item>
<el-form-item label="地址" prop="contactPhone">
<el-input v-model="ruleForm.contactPhone" placeholder="成都市金牛区万达广场1585号" disabled/>
</el-form-item>
<el-form-item label="主体名称" prop="contactPhone">
<el-input v-model="ruleForm.contactPhone" placeholder="成都火星科技有限公司" disabled/>
</el-form-item>
<el-form-item label="统一社会信用代码" prop="contactPhone">
<el-input v-model="ruleForm.contactPhone" placeholder="321564545" disabled/>
</el-form-item>
<el-form-item label="类型" prop="entityType">
<el-select v-model="ruleForm.entityType" placeholder="有限责任公司" style="width:100%" disabled>
<el-option label="有限责任公司" value="有限责任公司" />
</el-select>
</el-form-item>
<el-form-item label="法定代表人" prop="contactPhone">
<el-input v-model="ruleForm.contactPhone" placeholder="张三" disabled/>
</el-form-item>
<el-form-item label="注册资本" prop="registeredCapital">
<el-input v-model="ruleForm.registeredCapital" placeholder="请输入" disabled/>
</el-form-item>
<el-form-item label="成立日期" prop="establishmentDate">
<el-input v-model="ruleForm.establishmentDate" placeholder="请输入" disabled/>
</el-form-item>
<el-form-item label="住所" prop="address">
<el-input v-model="ruleForm.address" placeholder="请输入" disabled/>
</el-form-item>
<el-form-item label="邮箱地址" prop="emailAddress">
<el-input v-model="ruleForm.emailAddress" placeholder="请输入" disabled/>
</el-form-item>
<el-form-item label="营业期限" prop="idCardPhotoBack">
<el-date-picker v-model="businessStartTime" type="daterange" range-separator="至" disabled
start-placeholder="开始时间" end-placeholder="结束时间" value-format="yyyy-MM-dd" />
</el-form-item>
<el-form-item label="营业执照" prop="businessLicense">
<!-- <upimg v-model="ruleForm.businessLicense" :limit="1" :fileSize="1"></upimg> -->
<img :src="ruleForm.businessLicense" alt="">
</el-form-item>
<el-form-item label="经营者姓名" prop="registeredCapital">
<el-input v-model="ruleForm.registeredCapital" placeholder="请输入" disabled/>
</el-form-item>
<el-form-item label="证件类型" prop="idCardType">
<el-select v-model="ruleForm.idCardType" placeholder="请选择" style="width:100%" disabled>
<el-option label="身份证" value="身份证" />
</el-select>
</el-form-item>
<el-form-item label="身份证号" prop="idCardNumber">
<el-input v-model="ruleForm.idCardNumber" placeholder="请输入" disabled/>
</el-form-item>
<el-form-item label="身份证有效期" prop="idCardNumber">
<el-date-picker v-model="idCardValidStart" type="daterange" range-separator="至" start-placeholder="开始时间" disabled
end-placeholder="结束时间" value-format="yyyy-MM-dd" />
</el-form-item>
<el-form-item label="身份证照片(正面)" prop="idCardPhotoFront">
<!-- <upimg v-model="ruleForm.idCardPhotoFront" :limit="1" :fileSize="1"></upimg> -->
<img :src="ruleForm.idCardPhotoFront" alt="">
</el-form-item>
<el-form-item label="身份证照片(反面)" prop="idCardPhotoBack">
<!-- <upimg v-model="ruleForm.idCardPhotoBack" :limit="1" :fileSize="1"></upimg> -->
<img :src="ruleForm.idCardPhotoBack" alt="">
</el-form-item>
<el-form-item label="是否为法人" prop="isLegalPerson">
<el-select v-model="ruleForm.isLegalPerson" placeholder="请选择" style="width:100%" disabled>
<el-option label="否" value="0" />
<el-option label="是" value="1" />
</el-select>
</el-form-item>
<el-form-item label="企业授权书" prop="enterpriseAuthorization">
<!-- <upimg v-model="ruleForm.enterpriseAuthorization" :limit="1" :fileSize="1"></upimg> -->
<img :src="ruleForm.enterpriseAuthorization" alt="">
</el-form-item>
</el-form>
</div>
</el-tab-pane>
<el-tab-pane label="商铺租赁信息" name="second">
<div style="width: 100%">
<!-- <div class="editcss">
<div class="titles">
资源类型
</div>
<div style="padding: 20px;">
<el-form :model="ruleForm" ref="ruleForm" label-width="140px" class="demo-ruleForm">
<el-form-item label="商铺名称" prop="shopName">
<el-input v-model="ruleForm.shopName" placeholder="请输入" style="margin-top: 5px;" :disabled="edit"></el-input>
</el-form-item>
<el-form-item label="场地编号" prop="venueNumber">
<el-input v-model="ruleForm.venueNumber" disabled placeholder="将根据类型自动为资源编号" style="margin-top:5px;" disabled></el-input>
</el-form-item>
<el-form-item label="门牌号" prop="houseNumber">
<el-input v-model="ruleForm.houseNumber" placeholder="请输入" style="margin-top:5px;" :disabled="edit"></el-input>
</el-form-item>
<el-form-item label="建筑形式" prop="architecturalForm">
<el-select v-model="ruleForm.architecturalForm" placeholder="请选择" style="margin-top:5px;width: 100%;" :disabled="edit">
<el-option label="框剪结构" value="框剪结构"></el-option>
<el-option label="区域二" value="区域二"></el-option>
</el-select>
</el-form-item>
<el-form-item label="所属绿道段" prop="belongingGreenwaySection">
<el-select v-model="ruleForm.belongingGreenwaySection" placeholder="请选择" style="margin-top:5px;width: 100%;" :disabled="edit" >
<el-option :label="item.name" :value="item.code" v-for="(item,index) in lvdaoList" :key="index"></el-option>
</el-select>
</el-form-item>
<el-form-item label="所属公园/步道" prop="belongingParkTrail">
<el-select v-model="ruleForm.belongingParkTrail" placeholder="请选择" style="margin-top:5px;width: 100%;" :disabled="edit">
<el-option :label="item.name" :value="item.code" v-for="(item,index) in biangongyuanList"></el-option>
</el-select>
</el-form-item>
<el-form-item label="建筑面积" prop="floorSpace">
<el-input v-model="ruleForm.floorSpace" placeholder="请输入" style="margin-top:5px;" :disabled="edit">
<template slot="append">M<sup>2</sup></template>
</el-input>
</el-form-item>
<el-form-item label="实际使用面积" prop="actualUsableArea">
<el-input v-model="ruleForm.actualUsableArea" placeholder="请输入" style="margin-top:5px;" :disabled="edit">
<template slot="append">M<sup>2</sup></template>
</el-input>
</el-form-item>
<el-form-item label="所属区域" prop="belongingRegion">
<el-select v-model="ruleForm.belongingRegion" placeholder="请选择" style="margin-top:5px;width: 100%;" :disabled="edit">
<el-option label="成华区" value="成华区"></el-option>
<el-option label="武侯区" value="武侯区"></el-option>
<el-option label="锦江区" value="锦江区"></el-option>
<el-option label="青羊区" value="青羊区"></el-option>
<el-option label="金牛区" value="金牛区"></el-option>
<el-option label="双流区" value="双流区"></el-option>
</el-select>
</el-form-item>
<el-form-item label="归属部门" prop="belongingDepartment">
<el-input v-model="ruleForm.belongingDepartment" placeholder="请输入" style="margin-top:5px;" :disabled="edit">
</el-input>
</el-form-item>
<el-form-item label="负责人" prop="head">
<el-input v-model="ruleForm.head" placeholder="请输入" style="margin-top:5px;" :disabled="edit">
</el-input>
</el-form-item>
<el-form-item label="详细位置" prop="detailedLocation">
<el-input v-model="ruleForm.detailedLocation" placeholder="请输入" style="margin-top:5px;" :disabled="edit">
</el-input>
</el-form-item>
<el-form-item label="地图标点" prop="mapPunctuation">
<div style="width: 100%;height: 100px;border: 1px solid #3F9B6A;">
<MapXian :message="parentMessage" :edit='edit' :sendMap='getChildDate'></MapXian>
</div>
</el-form-item>
<el-form-item label="建筑图纸" prop="architecturalDrawings">
<img :src="ruleForm.architecturalDrawings" alt="" style="width:140px;height:140px;">
</el-form-item>
<el-form-item label="商铺描述" prop="shopDescription">
<el-input type="textarea" v-model="ruleForm.shopDescription" style="margin-top:5px;" placeholder="请输入" :disabled="edit" ></el-input>
</el-form-item>
<el-form-item label="展示主图" prop="displayMainImage">
<img :src="ruleForm.displayMainImage" alt="" style="width:140px;height:140px;">
</el-form-item>
<el-form-item label="其他图片/视频" prop="displayMainVidio">
<img :src="ruleForm.displayMainVidio" alt="" style="width:140px;height:140px;">
</el-form-item>
</el-form>
</div>
</div> -->
<div class="editcss">
<div class="titles">
租赁信息
</div>
<div style="margin-bottom: 10px;">
<el-descriptions class="margin-top" :column="3" border :labelStyle="labelStyle"
:contentStyle="contentStyle">
<el-descriptions-item>
<template slot="label">
租赁人
</template>
{{xiangData.tenant}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
意向租期
</template>
{{xiangData.intendedLeaseTerm}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
意向租金
</template>
{{xiangData.intentionalRent}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
租赁主体
</template>
{{xiangData.leasingEntity}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
经营者
</template>
{{xiangData.operator}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
状态
</template>
{{xiangData.state}}
</el-descriptions-item>
</el-descriptions>
</div>
</div>
<div class="editcss">
<div class="titles">
合同信息
</div>
<div>
<el-descriptions class="margin-top" :column="3" border :labelStyle="labelStyle"
:contentStyle="contentStyle">
<el-descriptions-item>
<template slot="label">
合同编号
</template>
{{heData.contractNumber}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
标段号
</template>
{{heData.sectionNumber}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同名称
</template>
{{heData.contractName}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同金额
</template>
{{heData.contractAmount}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
保证金
</template>
{{heData.earnestMoney}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同签订日期
</template>
{{heData.contractSigningDate}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同终止日期
</template>
{{heData.contractTerminationDate}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
起租日期
</template>
{{heData.leaseStartDate}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
出租人名称
</template>
{{heData.lessorName}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
联系电话
</template>
{{heData.telephone}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
银行账号
</template>
{{heData.bankAccount}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
承租人名称
</template>
{{heData.tenantName}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
承租人联系电话
</template>
{{heData.tenantTelephone}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
承租人银行账号
</template>
{{heData.tenantBankAccount}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
商铺编号
</template>
{{heData.shopNumber}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
商铺名称
</template>
{{heData.shopName}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
商铺地址
</template>
{{heData.shopAddress}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
商铺面积
</template>
{{heData.shopArea}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
商品业态
</template>
{{heData.storeFormats}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
经营项目
</template>
{{heData.businessProjects}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同附件
</template>
{{heData.appendicesContract}}
</el-descriptions-item>
</el-descriptions>
</div>
</div>
</div>
</el-tab-pane>
<div style="margin-top: 20px;display: flex;justify-content: flex-end;">
<el-button @click="outdan =false" class="buttonHover"
style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">返回</el-button>
<!-- <el-button @click="bianji" style="background-color: #3F9B6A;color: #fff;">编辑</el-button> -->
</div>
</el-tabs>
</div>
</div>
</el-dialog>
<buscha :detbox="detbox" :list="formInline" @change="change" v-if="detbox"></buscha>
</div>
</template>
<script>
import {
async
} from 'q'
import axios from 'axios'
import {
rentalGetAll,
rentalDel,
rentalAdd
} from '../../../api/rentalMan.js'
import {
updateList,
cereLeasingEdit,
} from '../../../api/manage.js'
import {
gongyuan
} from '../../../api/information';
import upimg from "@/components/ImageUpload/index"
import wangEditor from "@/components/editor/index"
import html2canvas from 'html2canvas'
import jsPDF from 'jspdf'
import buscha from './busCha.vue'
export default {
components: { wangEditor,upimg,buscha},
data() {
return {
hetongBox:false,//合同
detbox:false,//详情
leixing:true,//切换
yulan:false,//预览
index:1,
currentPage: 1,
total: 0,
flag: false,
pageSize: 10,
ggXin: false,
formInline: {
contractNumber:'',
sectionNumber:'',
contractName:'',
contractAmount:'',
earnestMoney:'',
contractSigningDate:'',
contractTerminationDate:'',
leaseStartDate:'',
lessorName:'',
telephone:'',
bankAccount:'',
tenantName:'',
tenantTelephone:'',
tenantBankAccount:'',
shopNumber:'',
shopName:'',
shopAddress:'',
shopArea:'',
storeFormats:'',
businessProjects:'',
appendicesContract:'',
},
heForm: {
contractNumber: '', //合同对应的ID
sectionNumber: '',
contractName: '',
contractAmount: '',
earnestMoney: '',
contractSigningDate: '',
contractTerminationDate: '',
leaseStartDate: '',
lessorName: '',
telephone: '',
bankAccount: '',
tenantName: '',
tenantTelephone: '',
tenantBankAccount: '',
shopNumber: '',
shopName: '',
shopAddress: '',
shopArea: '',
storeFormats: '',
businessProjects: '',
appendicesContract: '',
renewalTime: '', //续约时间
associatedEvents: '', //关联事件
relatedMerchants: '', //关联商家
contractType: '', //合同类型
contractStatus: '', //合同状态
dataStatus: '1', //数据状态(1.使用中 2.往期合同 3.已终止)
}, //合同字段
tableData: [],
formSel: {
leaseName:"",
leaseType:"",
cereContractInformation:{
leaseStartDate:[],
shopName:"",
tenantName:""
},
pageNumber: 1, // 当前页
pageSize: 10 // 每页记录数
},
pageindex: {
pageNumber: 1,
pageSize: 10,
},
zhong:{
intentionalRent:'',
belongingDepartment:'',
name:'',
zhifu:'',
zhifushuo:'',
gaizao:'',
noto:'',
},
detaiList:{},
bianZt:true,//编辑切换
outdan:false,
xiangTabs:'first',
ruleForm:{},
edit:true,
businessStartTime:[],
idCardValidStart:[],
lvdaoList:[],
biangongyuanList:[],
xiangData:{},
heData:{},
contentStyle:{
width:'20%',
height:'42px',
},
labelStyle:{
width:'150px',
height:'42px',
color:'#000',
},
}
},
created() {
this.getAll()
},
computed: {
},
methods: {
chenge(val){
this.formSel={
leaseName:"",
leaseType:"",
cereContractInformation:{
leaseStartDate:[],
shopName:"",
tenantName:""
},
pageNumber: 1, // 当前页
pageSize: 10 // 每页记录数
}
this.leixing = !this.leixing
},
async getAll(val) {
const res = await rentalGetAll(this.pageindex)
this.tableData = res.data.content
this.total = res.data.content.length
},
// 新增确定按钮
async addCheck(val) {
if(val == 2){
this.heForm.updateDate = ''
this.heForm.createDate = this.currentTime()
updateList(this.heForm).then(res=>{
this.formInline.contractNumber = res.data.contractNumber
this.formInline.updateDate = ''
cereLeasingEdit(this.formInline).then(item=>{
this.detbox = false
})
})
}else if(val ==4){
this.ggXin = false
this.getAll()
}
},
// 获取时间
currentTime(){
let date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1; // 月份从0~11,所以加一
let day = date.getDate();
let hours = date.getHours();
let minutes = date.getMinutes();
let seconds = date.getSeconds();
// 为月、日、时、分、秒添加前导零(如果需要)
month = month < 10 ? '0' + month : month;
day = day < 10 ? '0' + day : day;
hours = hours < 10 ? '0' + hours : hours;
minutes = minutes < 10 ? '0' + minutes : minutes;
seconds = seconds < 10 ? '0' + seconds : seconds;
// 拼接日期和时间字符串
let strDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
return strDate;
},
//详情
details(val,item){
this.formInline = item
this.detbox = true
},
change(msg){
this.detbox = msg
},
addbuss(val,item) {
console.log(item)
this.index = val
this.ggXin = true
this.zhong.lessorName = item.cereContractInformation.lessorName
this.zhong.tenantName = item.cereContractInformation.tenantName
this.zhong.leaseAddress = item.leaseAddress
this.zhong.leaseName = item.leaseName
this.zhong.completionTime = item.completionTime
this.zhong.intendedLeaseTerm = item.intendedLeaseTerm
this.zhong.intentionalRent = item.intentionalRent
},
handleSizeChange(val) {
this.pageSize = val
},
async handleCurrentChange(val) {
this.currentPage = val
},
closeFn(val) {
if(val == 1){
this.ggXin = false
}else{
this.detbox = false
}
},
//查看合同
lookHetong(val){
this.hetongBox = true
},
// 查询按钮
async onSubmit() {
let page ={
leaseName:this.formSel.leaseName,
leaseType:this.formSel.leaseType,
cereContractInformation:{
shopName:this.formSel.cereContractInformation.shopName,
tenantName:this.formSel.cereContractInformation.tenantName,
leaseStartDate:[],
},
pageNumber: 1,
pageSize: 10,
}
page.cereContractInformation.leaseStartDate =this.formSel.cereContractInformation.leaseStartDate.join(',')
const res = await rentalGetAll(page)
this.total = res.data.numberOfElements
this.tableData = res.data.content
},
//重置按钮
resetting(){
this.formSel={
leaseName:"",
leaseType:"",
cereContractInformation:{
leaseStartDate:[],
shopName:"",
tenantName:""
},
pageNumber: 1, // 当前页
pageSize: 10 // 每页记录数
},
this.tableData = []
},
// 下载
async downloadPdf() {
const content = this.$refs.contentToConvert;
// 使用 html2canvas 将 div 渲染为画布
const canvas = await html2canvas(content);
// 获取画布的图像数据
const imgData = canvas.toDataURL('image/png');
// 创建一个新的 PDF 文档
const pdf = new jsPDF('p', 'mm', 'a4');
// 添加图像到 PDF,第二个参数是图像格式,第三个参数是缩放比例
const imgWidth = 190; // 图像的宽度(mm)
const imgHeight = (canvas.height * imgWidth) / canvas.width; // 保持图像的宽高比
pdf.addImage(imgData, 'PNG', 10, 10, imgWidth, imgHeight); // 10, 10 是图像在 PDF 中的位置(mm)
// 保存 PDF 文件
pdf.save('downloaded.pdf');
},
// 出租单查看
outlook(item){
this.xiangData = item
this.heData = item.cereContractInformation
this.outdan = true
},
delList(){
const h = this.$createElement;
this.$msgbox({
title: '消息',
message: h('p', null, [
h('span', null, '是否删除当前记录 '),
]),
showCancelButton: true,
showClose:false,
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass:'oe-dialog-btn',
beforeClose: (action, instance, done) => {
if (action === 'confirm') {
done();
} else {
done();
}
}
})
},
}
}
</script>
<style scoped>
.zhuti {
padding: 0 20px 20px 20px;
min-height: calc(100vh - 50px - 20px);
background-color: #Fff;
}
.chengeXia{
border-bottom: 6px solid #3F9B6A;padding-bottom: 4px;color: #3F9B6A;
}
/deep/ .el-form-item__content {
line-height: 0;
}
.formSearch {
display: flex;
width: 100%;
font-size: 14px;
justify-content: space-between;
}
.greens {
color: #3F9B6A;
}
/deep/ .el-table__row {
font-size: 14px;
color:#000000e6;
height:42px;
}
.fenye {
margin-top: 20px;
display: flex;
justify-content: flex-end;
}
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: #3F9B6A;
}
.el-row {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
.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;
}
::v-deep .el-form-item{
margin-bottom:16px;
}
.device-form .el-form-item__label::after {
content: "*";
color: #1A1A1A;
margin-left: 5px;
font-size: 16px;
}
::v-deep .el-dialog__wrapper {
.el-dialog__header {
background-color: #FAFAFA;
}
}
::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
}
.el-select-dropdown__item.selected{
color: #3F9B6A;
}
.el-pagination__sizes .el-input .el-input__inner:hover{
border-color: #3F9B6A;
}
::v-deep .el-dialog__wrapper{
.dialog_css{
margin-right: 12px;
margin-top:61px !important;
.el-dialog__title {
font-size: 16px !important;
font-weight: 600;
color: #000;
}
}
.diaslog_zhong{
margin-left: 20%;
margin-top:61px !important;
}
}
::v-deep .diaslog_zhong{
margin-left: 20%;
margin-top:61px !important;
max-height:600px;
overflow-y: auto;
.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;
}
::v-deep .textarea{
width: 85%;
.el-textarea__inner{
width: 100%;
}
}
::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;
}
.form-container {
max-width: 600px;
margin: 0px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
background-color:#fff;
}
.form-group {
margin-bottom: 15px;
display:flex;
align-items: center
}
.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
width: 152px;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 8px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
.form-group textarea {
resize: vertical;
}
.form-header {
text-align: center;
margin-bottom: 20px;
font-size: 1.5em;
font-weight: bold;
}
.jianju{
margin-bottom:10px;
}
.titles{
position: relative;
padding-left: 10px;
}
.titles::before{
content: '';
width: 2px;
height: 10px;
background-color: #3F9B6A;
position: absolute;
top: 2px;
left: 0;
}
</style>
<style lang="scss" scoped>
::v-deep .bian_css{
.el-dialog__header{
padding:0px;
}
.el-input__inner{
height: 18px;
border: 0px;
margin-top:0px;
}
.el-input__inner:hover{
border: 0px;
}
.el-input__inner:focus {
border: 0px;
}
}
::v-deep .buttonHover:hover{
color:#3f9b6a !important;
border-color: #c5e1d2 !important;
background-color: #ecf5f0 !important;
outline: none;
}
::v-deep .el-pagination__total{
position: absolute;
left: 33px;
}
::v-deep .diaslog_zhong{
.el-dialog__body{
padding:10px 20px 20px 20px;
}
.el-upload--picture-card{
width:130px;
height:130px;
}
}
::v-deep .editcss{
font-size: 14px;
.el-form-item__label{
// color: #AEAEAE;
}
}
</style>