index.vue
48.2 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
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
<template>
<div style="background-color:#f7f7f7;padding:10px 10px;">
<div class="zhuti">
<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 style="display: flex;font-size: 14px">
<div style="margin-right: 4px" @click="chenge(1)" :class="leixing == 1?'chengeXia':''">线上</div>
({{xsNum}}个广告位)
<div style="margin-left: 20px;margin-right: 4px" @click="chenge(2)" :class="leixing == 1?'':'chengeXia'">实体
</div>({{stNum}}个广告位)
</div>
<!-- 主体 -->
<div>
<!-- 搜索 -->
<div class="formSearch">
<el-form :inline="true" :model="formSel">
<el-form-item label="承租人" prop="tenant">
<el-input v-model="formSel.tenant" placeholder="请输入" style="width: 168px;margin-right: 15px" />
</el-form-item>
<el-form-item label="投放时间" prop="createDate">
<el-date-picker style="width:168px;margin-right:5px" v-model="formSel.marketTime"
value-format="yyyy-MM-dd" type="date" prefix-icon="none">
</el-date-picker>
</el-form-item>
<el-form-item label="状态" prop="auditStatus">
<el-select v-model="formSel.auditStatus" placeholder="请选择" style="width: 168px;margin-right: 15px">
<el-option label="待审核" value="1" />
<el-option label="待投放" value="2" />
<el-option label="已驳回" value="3" />
<el-option label="已投放" value="4" />
<el-option label="已终止" value="5" />
</el-select>
</el-form-item>
</el-form>
<div>
<el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">查询
</el-button>
<el-button @click="resetting" class="buttonHover"
style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">重置
</el-button>
</div>
</div>
<div style="margin-bottom:20px;">
<el-button plain @click="addbuss(1)" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;"
icon="el-icon-circle-plus-outline">新增
</el-button>
</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" v-if="leixing == 1">
</el-table-column>
<el-table-column label="广告位编号" min-width="150" prop="advertisingId" v-if="leixing == 2">
</el-table-column>
<el-table-column label="投放位置" prop="placementLocation" min-width="120" v-if="leixing == 2">
</el-table-column>
<el-table-column label="轮播顺序" prop="rotationOrder" min-width="80" v-if="leixing == 1">
<template slot-scope="scope">
{{scope.row.cereAdvertisingInformation.rotationOrder}}
</template>
</el-table-column>
<el-table-column label="投放范围" prop="scopeDeployment" min-width="120" v-if="leixing == 1">
</el-table-column>
<el-table-column label="承租人" prop="tenant" min-width="200">
<template slot-scope="scope">
{{scope.row.cereContractInformation.tenantName}}
</template>
</el-table-column>
<el-table-column prop="contactInformation" label="联系方式" min-width="150">
<template slot-scope="scope">
{{scope.row.cereContractInformation.tenantTelephone}}
</template>
</el-table-column>
<el-table-column prop="applicationTime" label="申请时间" min-width="250">
</el-table-column>
<el-table-column label="投放时间" min-width="250">
<template slot-scope="scope">
{{scope.row.marketTime||'2024-11-1'}}
</template>
</el-table-column>
<el-table-column label="状态" prop="auditStatus" min-width="120">
<template slot-scope="scope">
{{scope.row.auditStatus =='1'?'待审核':scope.row.auditStatus =='2'?'待投放':scope.row.auditStatus =='3'?'已驳回':scope.row.auditStatus =='4'?'已投放':'已终止'}}
</template>
</el-table-column>
<el-table-column label="操作" min-width="350">
<template slot-scope="scope">
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
<div @click="lookHetong(scope.row)" class="tableBtn greens" v-if="scope.row.auditStatus !='5'">合同编辑</div>
<!-- <div @click="toufang(scope.row)" class="tableBtn greens" v-if="leixing == 1 && scope.row.auditStatus =='2'">投放</div>
<div @click="xiajia(scope.row)" class="tableBtn greens" v-if="leixing ==1 && scope.row.auditStatus =='4'">下架</div> -->
<div @click="toufang(scope.row)" class="tableBtn greens"
v-if="leixing == 1 && scope.row.auditStatus =='2'">投放</div>
<div @click="xiajia(scope.row)" class="tableBtn greens" v-if="leixing ==1 && scope.row.auditStatus =='4'">
下架</div>
<div @click="gengGai(scope.row)" class="tableBtn greens"
v-if="leixing == 1&& scope.row.auditStatus !='5'">更改状态</div>
<div @click="handleDelete(scope.row)" class="tableBtn greens" v-if="scope.row.auditStatus =='1'">删除</div>
<!-- <div @click="handleDelete(scope.row)" class="tableBtn greens" >删除</div> -->
</template>
</el-table-column>
</el-table>
<div class="fenye">
<el-pagination :hide-on-single-page='flag' background small :current-page="currentPage"
:page-sizes="[10, 20, 50, 100]" layout="prev, pager, next,total" :total="total "
@size-change="handleSizeChange" @current-change="handleCurrentChange" />
</div>
<!-- 新建-->
<el-dialog title="新增" :visible.sync="ggXin" custom-class='XDD_css' style="padding: 0;" width="70%" center
:close-on-click-modal="false" :show-close="false">
<div style="margin:20px;border:1px solid #EAEAEA">
<div
style="display: flex;flex-wrap: wrap;justify-content: space-between;padding: 5px 10px;background-color: #FAFAFA;align-items: center;">
<div style="line-height: 28px;">广告位选择</div>
<div class="greens" @click="addziyuan = true">
添加
</div>
</div>
<div style="padding: 20px 10px 10px 20px;">
<el-table :data="AddziyuanData"
: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>
<el-table-column label="广告位编号" prop="id" min-width="120">
</el-table-column>
<el-table-column label="广告位名称" prop="advertisingName" min-width="150">
</el-table-column>
<el-table-column label="广告位类型" prop="advertisingType" min-width="200">
</el-table-column>
<el-table-column prop="affiliation" label="所属端" min-width="150">
</el-table-column>
<el-table-column prop="dimensions" label="广告尺寸" min-width="250">
</el-table-column>
</el-table>
</div>
</div>
<div style="padding: 0 20px;">
<div style="padding: 0px 20px 0 0;">
<el-descriptions class="margin-top" :column="3" title="投放信息" border :labelStyle="labelStyle"
:contentStyle="contentStyle">
<el-descriptions-item>
<template slot="label">
投放范围
</template>
<el-select v-model="formInl.scopeDeployment" placeholder="请选择" class="pass_select">
<el-option label="线上广告位" value="线上广告位" v-if="leixing == 1" />
<el-option label="实体广告位" value="实体广告位" v-else />
</el-select>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
投放内容
</template>
<el-upload class="upload-demo" :on-remove="handleRemove" :action="uploadFileUrl"
:on-success="handleUploadSuccess" :file-list="fileData" :auto-upload="true" :listData="1">
<div class="greens" v-if="fileData.length==0"> + 点击上传</div>
</el-upload>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
跳转链接
</template>
<el-input v-model="formInl.jumpLink" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item v-if="leixing == 2">
<template slot="label">
投放位置
</template>
<el-input v-model="formInl.placementLocation" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<!-- <el-descriptions-item >
<template slot="label">
投放时间
</template>
<el-date-picker style="width:168px;margin-right:5px" v-model="formInl.marketTime"
value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" range-separator="-" start-placeholder=""
end-placeholder="" prefix-icon="none">
</el-date-picker>
</el-descriptions-item> -->
</el-descriptions>
</div>
</div>
<div style="padding:20px; ">
<div style="padding: 0px 20px 0 0;">
<el-descriptions class="margin-top" :column="3" title="合同信息" border :labelStyle="labelStyle"
:contentStyle="contentStyle">
<el-descriptions-item>
<template slot="label">
合同编号
</template>
<el-input v-model="heForm.contractNumber" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
标段号
</template>
<el-input v-model="heForm.sectionNumber" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同名称
</template>
<el-input v-model="heForm.contractName" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同金额
</template>
<el-input v-model="heForm.contractAmount" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
保证金
</template>
<el-input v-model="heForm.earnestMoney" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同签订日期
</template>
<el-input v-model="heForm.contractSigningDate" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同终止日期
</template>
<el-input v-model="heForm.contractTerminationDate" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
起止日期
</template>
<el-input v-model="heForm.leaseStartDate" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
出租人名称
</template>
<el-input v-model="heForm.lessorName" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
联系电话
</template>
<el-input v-model="heForm.telephone" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
银行账号
</template>
<el-input v-model="heForm.bankAccount" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
承担人名称
</template>
<el-input v-model="heForm.tenantName" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
承担人联系电话
</template>
<el-input v-model="heForm.tenantTelephone" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
承担人银行账号
</template>
<el-input v-model="heForm.tenantBankAccount" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同附件
</template>
<el-upload class="upload-demo" :on-remove="hetongRemove" :action="uploadFileUrl"
:on-success="hetongUploadSuccess" :file-list="hetongData" :auto-upload="true">
<div class="greens" v-if="hetongData.length==0"> + 点击上传</div>
</el-upload>
</el-descriptions-item>
</el-descriptions>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="closeFn(1)" class="buttonHover"
style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">返回</el-button>
<el-button @click="addCheck('formInline')" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
</span>
<!-- 资源选择 -->
<el-dialog :visible.sync="addziyuan" custom-class='XDD_css' style="padding: 0;" width="50%" append-to-body
center :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false">
<div
style="padding: 10px 13px;font-size: 14px;border-bottom: 1px solid #E5E5E5;display: flex;justify-content: space-between;">
<div>添加</div>
</div>
<div style="padding: 15px;width:100%">
<div style="border: 1px solid #E5E5E5;padding: 1px" id="huodong">
<div
style="padding: 10px 13px;font-size: 14px;border-bottom: 1px solid #E5E5E5;display: flex;justify-content: space-between;">
<div>选择资源</div>
</div>
<div style="padding: 15px;">
<div style="padding: 0px 20px 0px 0px">
<el-table :data="ziyuanData" @current-change="handleSelectionChange" highlight-current-row
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
<el-table-column label="序号" min-width="8%">
<template slot-scope="scope">
{{scope.$index + 1}}
</template>
</el-table-column>
<el-table-column label="编号" prop="id" min-width="22%">
</el-table-column>
<el-table-column label="资源名称" min-width="15%">
<template slot-scope="scope">
{{scope.row.shopName ? scope.row.shopName : scope.row.advertisingName}}
</template>
</el-table-column>
<el-table-column label="资源类型" min-width="15%">
<template slot-scope="scope">
{{scope.row.advertisingType ?scope.row.advertisingType:'商铺'}}
</template>
</el-table-column>
<el-table-column prop="notes" label="对应策略" min-width="15%">
</el-table-column>
</el-table>
</div>
</div>
</div>
</div>
<div style="display: flex;justify-content: flex-end;padding: 10px 20px 10px 0">
<el-button @click="mingClose" class="buttonHover"
style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">取消
</el-button>
<el-button @click="minSev" style="background-color: #3F9B6A;color: #fff;">确定
</el-button>
</div>
</el-dialog>
</el-dialog>
</div>
<!-- 详情框 -->
<el-dialog :visible.sync="detbox" custom-class='bian_css' style="padding: 0;" width="70%" center
:close-on-click-modal="false" :show-close="false">
<div style="padding:15px;">详情</div>
<div style="padding: 0 20px;">
<el-tabs v-model="card">
<el-tab-pane label="租赁人信息" name="first">
<el-form ref="form" label-width="140px">
<el-form-item label="承租人名称">
<el-input v-model="secondData.tenantName" disabled></el-input>
</el-form-item>
<el-form-item label="联系电话">
<el-input v-model="secondData.contactPhone" disabled></el-input>
</el-form-item>
<el-form-item label="主体类型">
<el-select v-model="hetongList.createUser" disabled>
<el-option label="企业" value="企业" />
<el-option label="个人" value="个人" />
</el-select>
</el-form-item>
<el-form-item label="证件类型">
<el-input v-model="secondData.idCardType" disabled placeholder="身份证"></el-input>
</el-form-item>
<el-form-item label="身份证号码">
<el-input v-model="secondData.idCardNumber" disabled placeholder="511191561"></el-input>
</el-form-item>
<el-form-item label="身份证有效期">
<el-input v-model="secondData.idCardNumber" disabled placeholder="2001-3-4至2021-3-4"></el-input>
<!-- <el-date-picker style="width: 100%;" v-model="hetongList.plan_Time"
value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" range-separator="至"
start-placeholder="开始日期" end-placeholder="结束日期" align="right" disabled>
</el-date-picker> -->
</el-form-item>
<el-form-item label="身份证照片(正面)">
<upimg v-model="secondData.coverPoster" :limit="1" :fileSize="1" :isShowTip="false"></upimg>
</el-form-item>
<el-form-item label="身份证照片(反面)">
<upimg v-model="secondData.coverPoster" :limit="1" :fileSize="1" :isShowTip="false"></upimg>
</el-form-item>
<el-form-item label="是否为法人">
<el-input v-model="secondData.founder" disabled></el-input>
</el-form-item>
<el-form-item label="企业授权书">
<upimg v-model="secondData.coverPoster" :limit="1" :fileSize="1" :isShowTip="false"></upimg>
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane label="主体信息" name="three">
<el-form ref="form" label-width="140px">
<el-form-item label="主体名称">
<el-input v-model="secondData.founder" disabled></el-input>
</el-form-item>
<el-form-item label="统一社会信用代码">
<el-input v-model="secondData.founder" disabled></el-input>
</el-form-item>
<el-form-item label="类型">
<el-select v-model="secondData.createUser" placeholder="请选择" disabled>
<el-option label="有限责任公司" value="有限责任公司" />
</el-select>
</el-form-item>
<el-form-item label="法定代表人">
<el-input v-model="secondData.founder" disabled></el-input>
</el-form-item>
<el-form-item label="经营范围">
<el-input type="textarea" v-model="secondData.founder" :rows="4" disabled></el-input>
</el-form-item>
<el-form-item label="注册资本">
<el-input v-model="secondData.founder" disabled></el-input>
</el-form-item>
<el-form-item label="成立日期">
<el-input v-model="secondData.founder" disabled></el-input>
</el-form-item>
<el-form-item label="住所">
<el-input v-model="secondData.founder" disabled></el-input>
</el-form-item>
<el-form-item label="邮箱地址">
<el-input v-model="secondData.founder" disabled></el-input>
</el-form-item>
<el-form-item label="营业期限">
<el-date-picker style="width: 100%;" v-model="secondData.plan_Time" value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
align="right" disabled>
</el-date-picker>
</el-form-item>
<el-form-item label="营业执照">
<upimg v-model="secondData.coverPoster" :limit="1" :fileSize="1" :isShowTip="false"></upimg>
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane label="投放内容" name="second">
<el-form ref="form" label-width="140px">
<el-form-item label="Banner图">
<upimg v-model="secondData.coverPoster" :limit="1" :fileSize="1" :isShowTip="false"></upimg>
</el-form-item>
<el-form-item label="投放内容">
<el-input v-model="secondData.advertisingContent" disabled></el-input>
</el-form-item>
<el-form-item label="跳转链接">
<el-input v-model="secondData.jumpLink" disabled></el-input>
</el-form-item>
<el-form-item label="计划时间">
<el-date-picker style="width: 100%;" v-model="secondData.plan_Time" value-format="yyyy-MM-dd HH:mm:ss"
type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
align="right" disabled>
</el-date-picker>
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane label="投放效果" name="four">
<el-descriptions class="margin-top" :column="3" title="投放信息" border :labelStyle="labelStyle"
:contentStyle="contentStyle">
<el-descriptions-item>
<template slot="label">
点击量
</template>
{{secondData.pageview}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
高频时段
</template>
{{secondData.highFrequencyTime}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
评价点击价格
</template>
{{secondData.averageClickThroughPrice}}
</el-descriptions-item>
</el-descriptions>
<!-- <div>点击量统计表</div> -->
</el-tab-pane>
</el-tabs>
<div style="margin-top: 50px;width: 99%;padding:10px;display:flex;justify-content: flex-end;">
<el-button class="buttonHover" style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;"
@click="closeFn(2)">返回</el-button>
<!-- <el-button style="background-color: #3F9B6A;color: #fff;">确定</el-button> -->
</div>
</div>
</el-dialog>
<!-- 合同 -->
<el-dialog :visible.sync="hetongBox" custom-class='bian_css' style="padding: 0;" width="70%" center
:close-on-click-modal="false" :show-close="false">
<div style="padding:20px">
<el-descriptions class="margin-top" :column="3" title="合同信息" border :labelStyle="labelStyle"
:contentStyle="contentStyle">
<el-descriptions-item>
<template slot="label">
合同编号
</template>
<el-input v-model="hetong.contractNumber" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
标段号
</template>
<el-input v-model="hetong.sectionNumber" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同名称
</template>
<el-input v-model="hetong.contractName" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同金额
</template>
<el-input v-model="hetong.contractAmount" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
保证金
</template>
<el-input v-model="hetong.earnestMoney" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同终止日期
</template>
<el-input v-model="hetong.contractTerminationDate" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
起止日期
</template>
<el-input v-model="hetong.leaseStartDate" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
出租人名称
</template>
<el-input v-model="hetong.lessorName" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
联系电话
</template>
<el-input v-model="hetong.telephone" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
银行账号
</template>
<el-input v-model="hetong.bankAccount" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
承租人联系电话
</template>
<el-input v-model="hetong.tenantTelephone" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
承租人银行账号
</template>
<el-input v-model="hetong.tenantBankAccount" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
广告位编号
</template>
<el-input v-model="secondData.advertisingId" class="pass_input" placeholder="请输入" />
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
合同附件
</template>
<el-upload class="upload-demo" :on-remove="hetongRemove" :action="uploadFileUrl"
:on-success="hetongUploadSuccess" :file-list="hetongData" :auto-upload="true">
<div class="greens" v-if="hetongData.length==0"> + 点击上传</div>
</el-upload>
</el-descriptions-item>
</el-descriptions>
</div>
<div style="margin-top: 50px;width: 99%;padding:10px;display:flex;justify-content: flex-end;">
<el-button class="buttonHover" style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;"
@click="closeFn(3)">返回</el-button>
<el-button @click="EditHetong()" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
<!-- <el-button style="background-color: #3F9B6A;color: #fff;">下载</el-button> -->
</div>
</el-dialog>
<el-dialog :visible.sync="steatShow" custom-class='bian_css' style="padding: 0;" width="55%" center
:close-on-click-modal="false" :show-close="false">
<div style="padding:15px;">更改状态</div>
<div style="padding: 0 20px 20px 20px;">
<el-form ref="form" label-width="140px">
<el-form-item label="广告位名称">
<el-input v-model="secondData.founder" disabled placeholder="绿道广告位"></el-input>
</el-form-item>
<el-form-item label="编号">
<el-input v-model="secondData.id" disabled placeholder="ggw1105"></el-input>
</el-form-item>
<el-form-item label="投放时间">
<el-input v-model="secondData.founder" disabled placeholder="2001-3-4至2021-3-4"></el-input>
<!-- <el-date-picker style="width: 100%;" v-model="secondData.plan_Time"
value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" range-separator="至"
start-placeholder="开始日期" end-placeholder="结束日期" align="right" disabled>
</el-date-picker> -->
</el-form-item>
<el-form-item label="状态">
<el-input v-model="secondData.founder" disabled placeholder="待投放"></el-input>
</el-form-item>
<el-form-item label="状态更改">
<el-select v-model="auditStatusNum" placeholder="请选择">
<el-option label="终止" value="2" />
</el-select>
</el-form-item>
</el-form>
</div>
<div style="margin-top: 50px;width: 99%;padding:10px;display:flex;justify-content: flex-end;">
<el-button class="buttonHover" style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;"
@click="steatShow=false">返回</el-button>
<el-button @click="status" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
<script>
import {
async
} from 'q'
import axios from 'axios'
import {
contractGetAll,
contractDel,
addList,
updateList,
queryById,
hetongById,
hetongadd,
hetongEdit,
hetongDel,
hetongBy
} from '../../api/advertisement.js'
import {
getAlls as map1
} from '../../api/map1'
import {
uploadUrl
} from '@/utils/request'
export default {
data() {
return {
uploadFileUrl: uploadUrl, // 请求地址
fileData: [], //上传附件
hetongBox: false, //合同
detbox: false, //详情
leixing: 1, // 1是线上 2是实体
currentPage: 1,
total: 100,
flag: false,
pageSize: 10,
ggXin: false,
radio: '1',
ggwSel: [],
formInl: {
scopeDeployment: '',
jumpLink: '',
auditStatus: '2',
placementLocation: '',
marketTime: '',
},
tableData: [],
formSel: {
tenant: '',
marketTime: '',
auditStatus: '',
pageNumber: 1,
pageSize: 10,
},
pageindex: {
pageNumber: 1,
pageSize: 10,
scopeDeployment: '线上广告位'
},
chengeTatle: 1,
contractId: '',
secondData: {},
hetong: {},
card: 'first', // 切换
steatShow: false,
addziyuan: false, //资源列表选择
AddziyuanData: [],
multipleSelection: [],
ziyuanData: [],
hetongData: [],
heForm: {
contractNumber: '', //合同对应的ID
sectionNumber: '',
contractName: '',
contractAmount: '',
earnestMoney: '',
contractSigningDate: '',
contractTerminationDate: '',
leaseStartDate: '',
lessorName: '',
telephone: '',
bankAccount: '',
tenantName: '',
tenantTelephone: '',
tenantBankAccount: '',
contractStatus: '', //合同状态
dataStatus: '1', //数据状态(1.使用中 2.往期合同 3.已终止)
}, //合同字段
contentStyle: {
width: '20%',
height: '42px',
},
labelStyle: {
width: '150px',
height: '42px',
color: '#000',
},
xsNum: 0,
stNum: 0,
hetongList: {},
auditStatusNum: ''
}
},
created() {
this.getAll()
let obj = {
pageNumber: 1,
pageSize: 10,
scopeDeployment: '实体广告位'
}
contractGetAll(obj).then(res => {
this.stNum = res.data.content.length
})
},
computed: {
},
methods: {
getTable(val) {
},
chenge(val) {
this.formSel = {
tenant: '',
marketTime: '',
auditStatus: '',
pageNumber: 1,
pageSize: 10,
}
console.log(val)
this.leixing = val
this.chengeTatle = val
if (val == 1) {
this.ggwSel.map(res => {
res.ggwLei = '线上广告位'
})
this.pageindex.scopeDeployment = '线上广告位'
this.getAll((this.pageindex))
} else {
this.ggwSel.map(res => {
res.ggwLei = '实体广告位'
})
this.pageindex.scopeDeployment = '实体广告位'
this.getAll(this.pageindex)
}
},
async getAll(val) {
const res = await contractGetAll(this.pageindex)
if (this.pageindex.scopeDeployment == '线上广告位') {
this.xsNum = res.data.content.length
} else {
this.stNum = res.data.content.length
}
this.tableData = res.data.content
this.total = res.data.content.length
},
// 获取时间
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;
},
// 新增确定按钮
addCheck(formInline) {
// this.ggwSel[this.radio]
if (this.AddziyuanData.length != 0) {
this.formInl.advertisingId = this.AddziyuanData[0].id
}
if (this.fileData.length != 0) {
this.formInl.advertisingContent = JSON.stringify(this.fileData)
}
if (this.hetongData.length != 0) {
this.heForm.appendicesContract = JSON.stringify(this.hetongData)
}
this.heForm.createDate = this.currentTime()
hetongadd(this.heForm).then(res => {
this.formInl.contractId = res.data.id
this.formInl.applicationTime = this.currentTime()
addList(this.formInl).then(res => {
this.getAll()
})
})
this.ggXin = false
},
//删除记录按钮
handleDelete(val) {
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') {
contractDel({
id: val.id
}).then(res => {
this.getTable(this.chengeTatle)
this.getAll()
done();
})
} else {
done();
}
}
})
},
//详情
details(val) {
this.secondData = val
this.hetongList = val.cereContractInformation
this.detbox = true
},
handleSizeChange(val) {
this.pageSize = val
},
handleCurrentChange(val) {
this.currentPage = val
},
async addbuss(val) {
const listGGW = {
pageNumber: 1,
pageSize: 10,
}
if (this.leixing == '1') {
listGGW.advertisingType = '线上广告位'
const res = await map1(listGGW)
this.ziyuanData = res.data.content
} else {
listGGW.advertisingType = '实体广告位'
const res = await map1(listGGW)
this.ziyuanData = res.data.content
}
this.hetongData = []
this.ggXin = true
},
closeFn(val) {
if (val == 1) {
this.ggXin = false
} else if (val == 2) {
this.detbox = false
} else {
this.hetongBox = false
}
},
//查看合同
async lookHetong(val) {
this.hetongData = []
let obj = {
contractNumber: val.contractNumber,
pageNumber: 1,
pageSize: 10,
}
const res = await hetongById(obj)
this.secondData = val
const contentLength = res.data.content.length
// 检查数组是否为空
if (contentLength > 0) {
// 获取最后一个元素并赋值给 this.hetong
this.hetong = res.data.content[contentLength - 1]
}
this.hetongBox = true
},
//编辑合同
async EditHetong(val) {
this.hetong.updateDate = ''
await hetongEdit(this.hetong)
this.hetongBox = false
this.getTable(this.chengeTatle)
},
// 查询按钮
onSubmit() {
if (this.leixing == 1) {
this.formSel.online = '线上广告位'
this.pageindex.scopeDeployment = '线上广告位'
} else {
this.formSel.online = '实体广告位'
this.pageindex.scopeDeployment = '实体广告位'
}
contractGetAll(this.formSel).then(res => {
if (this.pageindex.scopeDeployment == '线上广告位') {
this.xsNum = res.data.content.length
} else {
this.stNum = res.data.content.length
}
this.tableData = res.data.content
this.total = res.data.content.length
})
// const res = await contractGetAll(this.pageindex)
// let res = await queryById(cha)
// this.tableData = res.data
},
//重置按钮
resetting() {
this.formSel = {
tenant: '',
marketTime: '',
auditStatus: '',
pageNumber: 1,
pageSize: 10,
}
if (this.leixing == 1) {
this.pageindex.scopeDeployment = '线上广告位'
} else {
this.pageindex.scopeDeployment = '实体广告位'
}
this.getAll(this.pageindex)
// this.getTable(this.chengeTatle)
},
gengGai(item) {
this.secondData = item
this.steatShow = true
},
minSev() {
this.AddziyuanData = []
this.AddziyuanData.push(this.multipleSelection)
this.addziyuan = false
this.multipleSelection = []
console.log(this.AddziyuanData)
},
mingClose() {
this.multipleSelection = []
this.AddziyuanData = []
this.addziyuan = false
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
handleRemove(file, fileList) {
this.fileData = []
},
handleUploadSuccess(response, file, num) {
console.log(response, file, num)
const fileMsg = {
name: file.name,
url: file.response.data.url,
}
// 将文件地址存储在 uploadedFiles 数组中
this.fileData.push(fileMsg);
},
hetongRemove() {
this.hetongData = []
},
hetongUploadSuccess(response, file, num) {
const fileMsg = {
name: file.name,
url: file.response.data.url,
}
// 将文件地址存储在 uploadedFiles 数组中
this.hetongData.push(fileMsg);
},
childFujian(msg) {
this.fileData = msg
},
async toufang(item) {
await updateList({
id: item.id,
auditStatus: '4'
})
this.getAll()
},
async xiajia(item) {
await updateList({
id: item.id,
auditStatus: '2'
})
this.getAll()
},
async status() {
await updateList({
id: this.secondData.id,
auditStatus: '5'
})
this.steatShow = false
this.getAll()
}
}
}
</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 {
margin-top: 20px;
display: flex;
width: 100%;
font-size: 14px;
justify-content: space-between;
}
.greens {
color: #3F9B6A;
}
.fenye {
margin-top: 20px;
display: flex;
justify-content: flex-end;
position: relative;
}
/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;
}
/deep/.el-form-item__content label:nth-child(1) .is-checked+.el-radio__label {
color: #757575 !important;
}
/deep/.el-form-item__content label:nth-child(1) .is-checked .el-radio__inner {
border-color: #757575 !important;
background: #757575 !important;
}
::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;
}
.hetong {
color: #7DBB9A;
text-decoration: underline;
cursor: pointer;
}
.tfneirong {
padding: 5px;
}
/deep/ .first-column-bg {
background-color: #FAFAFA !important;
}
.el-table tr {
height: 56px;
}
::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: ''
}
}
::v-deep .table3 {
.el-table__empty-block {
display: none;
}
}
.radio-right-side {
display: flex;
justify-content: space-between;
}
/deep/ .radio-right-side .el-radio__label {
display: flex;
align-items: center;
}
/deep/ .radio-right-side .el-radio__inner {
order: 1;
}
/deep/ .radio-right-side .el-radio__input {
display: flex;
order: 2;
}
/deep/ .radio-right-side {
&:hover {
color: #000;
}
.el-radio__input.is-checked {
border-color: none;
}
.el-radio__input.is-checked .el-radio__inner {
background: #3F9B6A;
border-color: #3F9B6A;
}
.el-radio__input.is-checked .el-radio__inner {
color: #000;
}
.el-radio__inner::after {
border: 1px solid #3F9B6A !important;
}
}
/deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
background: none;
}
/* /deep/ .el-input--mini .el-input__inner{
color: #000;
} */
</style>
<style lang="scss" scoped>
::v-deep .bian_css {
.el-dialog__header {
padding: 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: 10px;
}
::v-deep .el-descriptions .is-bordered .el-descriptions-item__cell {
padding: 0 0 0 10px;
}
::v-deep .el-descriptions :not(.is-bordered) .el-descriptions-item__cell {
padding-bottom: 0px;
}
::v-deep .el-descriptions__title {
font-weight: 100;
font-size: 14px;
}
</style>