Blame view

admin-web-master/src/components/buscha/busCha.vue 17.3 KB
900ab311   李宇   1
1
  <template>
a6a3878d   杨鑫   最新绿道
2
3
4
5
6
7
8
9
10
  	<div>
  		<div v-show="type == '1'">
  			<el-tabs v-model="xiangTab">
  				<el-tab-pane label="合同信息" name="first">
  					<div style="margin-top: 30px;" class="editcss">
  						<TitleWithCircle title="合同信息" />
  						<div style="padding: 20px;margin-top: 10px;">
  							<el-form :model="info" ref="ruleForm" label-width="140px" class="demo-ruleForm">
  								<!-- <el-row :gutter="20">
4373acf5   wesley88   1
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
                    <el-col :span="9">
                      <el-form-item label="合同类型" prop="contractType">
                        <div class="duiqi">{{info.contractType}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="合同编号" prop="contractNumber">
                        <div class="duiqi">{{info.contractNumber}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="标段号" prop="sectionNumber">
                        <div class="duiqi">{{info.sectionNumber}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="合同名称" prop="contractName">
                        <div class="duiqi">{{info.contractName}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="合同签订日期" prop="contractSigningDate">
                        <div class="duiqi">{{info.contractSigningDate}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="押金" prop="earnestMoney">
                        <div class="duiqi">{{info.earnestMoney}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="起租日期" prop="leaseStartDate">
                        <div class="duiqi">{{info.leaseStartDate}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="终止日期" prop="contractTerminationDate">
                        <div class="duiqi">{{info.contractTerminationDate}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="付款周期" prop="paymentCycle">
                        <div class="duiqi">{{info.paymentCycle}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="租金" prop="contractAmount">
                        <div class="duiqi">{{info.contractAmount}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="付款日" prop="paymentDay">
                        <div class="duiqi">{{info.paymentDay}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="承租人银行账号" prop="tenantBankAccount">
                        <div class="duiqi">{{info.tenantBankAccount}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="出租人名称" prop="tenantName">
                        <div class="duiqi">{{info.tenantName}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="联系电话" prop="tenantTelephone">
                        <div class="duiqi">{{info.tenantTelephone}}</div>
                      </el-form-item>
                    </el-col>
6abe0316   wesley88   1
93
                  </el-row> -->
a6a3878d   杨鑫   最新绿道
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
  								<el-row :gutter="20">
  									<el-col :span="item.width == '50%(半行)'?12:item.width == '100%(一行)'?24:12"
  										v-for="(item,index) in list1">
  										<el-form-item :label="item.name" prop="appendicesContract"
  											v-if="item.type == '附件'">
  											<div class="duiqi greens" @click="item.value?openfile(item.value):''">
  												{{item.value?'查看详情':'暂无文件'}}</div>
  										</el-form-item>
  										<el-form-item :label="item.name" v-else-if="item.type == '图片'">
  											<div v-if="item.value">
  												<div style="display: flex;">
  													<allimg v-if="item1" :src="item1" fit="contain"
  														v-for="item1 in item.value.split(',')"
  														style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;" />
  												</div>
  											</div>
  											<div class="duiqi" v-else>无</div>
  										</el-form-item>
  										<el-form-item :label="item.name" prop="paymentDay"
  											v-else-if="item.type != '资源' && item.type != '商家'">
  											<div class="duiqi">{{item.value}}<span
  													v-if="item.key == 'earnestMoney' || item.key == 'contractAmount'">
  													元</span></div>
  										</el-form-item>
  									</el-col>
  								</el-row>
  								<el-form-item label="附件信息" prop="appendicesContract">
  									<div class="duiqi greens"
  										@click="info.appendicesContract?openfile(info.appendicesContract):''">
  										{{info.appendicesContract?'查看详情':'暂无文件'}}</div>
  								</el-form-item>
  							</el-form>
  						</div>
  						<TitleWithCircle title="合同修订历史" />
  						<div style="padding: 20px;margin-top: 10px;">
  							<el-table :data="list"
  								:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
900ab311   李宇   1
131
  
a6a3878d   杨鑫   最新绿道
132
133
134
  								<el-table-column label="类型">
  									<template slot-scope="scope">
  										{{scope.row.contractChangeReason}}
900ab311   李宇   1
135
  
a6a3878d   杨鑫   最新绿道
136
137
138
139
140
  									</template>
  								</el-table-column>
  								<el-table-column label="操作时间">
  									<template slot-scope="scope">
  										{{scope.row.updateDate}}
900ab311   李宇   1
141
  
a6a3878d   杨鑫   最新绿道
142
143
144
145
146
  									</template>
  								</el-table-column>
  								<el-table-column label="操作人">
  									<template slot-scope="scope">
  										{{scope.row.updateUser}}
900ab311   李宇   1
147
  
a6a3878d   杨鑫   最新绿道
148
149
150
151
152
153
154
155
  									</template>
  								</el-table-column>
  								<el-table-column label="操作">
  									<template slot-scope="scope">
  										<div @click="open(scope.row)" class="tableBtn greens">查看</div>
  									</template>
  								</el-table-column>
  							</el-table>
900ab311   李宇   1
156
  
a6a3878d   杨鑫   最新绿道
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
  						</div>
  					</div>
  				</el-tab-pane>
  				<el-tab-pane label="商家信息" name="second">
  					<div style="margin-top: 30px;" class="editcss">
  						<TitleWithCircle title="基础信息" />
  						<div style="padding: 20px;margin-top: 10px;">
  							<el-form :model="shop" ref="ruleForm" label-width="140px" class="demo-ruleForm">
  								<el-row :gutter="20">
  									<el-col :span="9">
  										<el-form-item label="姓名" prop="name">
  											<div class="duiqi">{{shop.name}}</div>
  										</el-form-item>
  									</el-col>
  									<el-col :span="9">
  										<el-form-item label="手机号" prop="phone">
  											<div class="duiqi">{{shop.phone}}</div>
  										</el-form-item>
  									</el-col>
  								</el-row>
  								<el-row :gutter="20">
  									<el-col :span="9">
  										<el-form-item label="证件类型" prop="idCardType">
  											<div class="duiqi">{{shop.idCardType}}</div>
  										</el-form-item>
  									</el-col>
  									<el-col :span="9">
  										<el-form-item label="身份证号码" prop="idCardNumber">
  											<div class="duiqi">{{shop.idCardNumber}}</div>
  										</el-form-item>
  									</el-col>
  								</el-row>
  								<el-form-item label="身份证照片(正)" prop="idCardFrontImage">
  									<!-- <div style="margin-top: 10px;">
9d8bcb26   wesley88   2
191
                      <el-image style="width: 200px;" :src="$baseURL+shop.idCardFrontImage" fit="contain"></el-image>
1dbc0b2d   wesley88   1
192
                    </div> -->
a6a3878d   杨鑫   最新绿道
193
194
195
196
197
198
199
  									<div style="display: flex;">
  										<allimg :src="shop.idCardFrontImage" fit="contain"
  											style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;" />
  									</div>
  								</el-form-item>
  								<el-form-item label="身份证照片(反)" prop="idCardBackImage">
  									<!-- <div style="margin-top: 10px;">
9d8bcb26   wesley88   2
200
                      <el-image style="width: 200px;" :src="$baseURL+shop.idCardBackImage" fit="contain"></el-image>
1dbc0b2d   wesley88   1
201
                    </div> -->
a6a3878d   杨鑫   最新绿道
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
  									<div style="display: flex;">
  										<allimg :src="shop.idCardBackImage" fit="contain"
  											style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;" />
  									</div>
  								</el-form-item>
  							</el-form>
  						</div>
  					</div>
  				</el-tab-pane>
  				<el-tab-pane label="商户租赁信息" name="third">
  					<div class="editcss">
  						<div>
  							<el-table :data="tableData"
  								:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
  								<el-table-column label="资源名称">
  									<template slot-scope="scope">
  										{{scope.row.shopName ? scope.row.shopName :  scope.row.advertisingName?scope.row.advertisingName:scope.row.venueName}}
900ab311   李宇   1
219
  
a6a3878d   杨鑫   最新绿道
220
221
222
223
224
  									</template>
  								</el-table-column>
  								<el-table-column label="实际使用面积">
  									<template slot-scope="scope">
  										{{scope.row.actualArea ? scope.row.actualArea :  scope.row.actualUsableArea?scope.row.actualUsableArea:'-'}}
900ab311   李宇   1
225
  
a6a3878d   杨鑫   最新绿道
226
227
228
229
230
  									</template>
  								</el-table-column>
  								<el-table-column label="类型">
  									<template slot-scope="scope">
  										{{scope.row.shopName ? '商铺' : scope.row.advertisingType?scope.row.advertisingType:'场地'}}
900ab311   李宇   1
231
  
a6a3878d   杨鑫   最新绿道
232
233
234
  									</template>
  								</el-table-column>
  								<!-- <el-table-column label="状态" min-width="150">
900ab311   李宇   1
235
236
237
238
                  <template slot-scope="scope">
                    {{scope.row.cereContractInformation.tenantName}}
  
                  </template>
4373acf5   wesley88   1
239
                </el-table-column> -->
a6a3878d   杨鑫   最新绿道
240
241
242
243
244
245
  								<el-table-column label="操作">
  									<template slot-scope="scope">
  										<div class="tableBtn greens" @click="details(scope.row)">查看</div>
  									</template>
  								</el-table-column>
  							</el-table>
900ab311   李宇   1
246
  
a6a3878d   杨鑫   最新绿道
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
  						</div>
  					</div>
  				</el-tab-pane>
  			</el-tabs>
  			<div v-if="info.dataStatus == '4' ||info.dataStatus == '5' && issp == '2'" style="margin-top: 20px;">
  				<TitleWithCircle title="审核情况" />
  				<div style="padding: 20px;">
  					<el-form :model="info" label-width="100px" class="demo-ruleForm">
  						<el-form-item label="状态">
  							<el-radio v-model="radio" label="1">通过</el-radio>
  							<el-radio v-model="radio" label="6">不通过</el-radio>
  						</el-form-item>
  						<el-form-item label="审核意见">
  							<el-input maxlength="200" show-word-limit rows="4" v-model="reviewComments"
  								placeholder="请输入审核意见" type="textarea" />
  						</el-form-item>
  					</el-form>
  				</div>
  			</div>
  			<div v-if="(info.dataStatus == '1' || info.dataStatus == '6')&& info.isInterior == '1' && xiangTab=='first'"
  				style="margin-top: 20px;">
  				<TitleWithCircle title="审核结果" />
  				<div style="padding: 20px;">
  					<el-form :model="info" label-width="100px" class="demo-ruleForm">
  						<el-form-item label="状态">
  							<div class="duiqi">{{info.dataStatus=='1'?'使用中':info.dataStatus=='3'?'已拒绝':'无'}}</div>
  						</el-form-item>
  						<el-form-item label="审核意见">
  							<div class="duiqi">{{info.reviewComments || '无'}}</div>
  						</el-form-item>
  					</el-form>
  				</div>
  			</div>
  			<div>
  				<el-button v-if="info.dataStatus == '4' ||info.dataStatus == '5' && issp == '2'" @click="minSev"
  					style="background-color: #3F9B6A;color: #fff;">确定</el-button>
  				<el-button class="buttonHover"
  					style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
  					@click="changetype">返回</el-button>
  			</div>
  		</div>
  		<div v-show="type == '2'">
  			<oneht ref="onhet"></oneht>
  			<div>
  				<el-button class="buttonHover"
  					style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
  					@click="changetype">返回</el-button>
  			</div>
  		</div>
  		<div v-show="type == '3'">
  			<div v-if="detailstype == '商铺'">
  				<resourceCommodity :editbgid="detailsinfo" @removeonaction="removeonaction"></resourceCommodity>
  			</div>
  			<div v-if="detailstype == '广告位'">
  				<chakanmap :editbgid="detailsinfo" @removeonaction="removeonaction"></chakanmap>
  			</div>
  			<div v-if="detailstype == '场地'">
  				<chakancd :editbgid="detailsinfo" @removeonaction="removeonaction"></chakancd>
  			</div>
  		</div>
6abe0316   wesley88   1
307
  
a6a3878d   杨鑫   最新绿道
308
  	</div>
900ab311   李宇   1
309
310
311
  </template>
  
  <script>
a6a3878d   杨鑫   最新绿道
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
  	import oneht from "@/components/chakan/oneht";
  	import {
  		queryByContractcontractNumber
  	} from '../../api/commodityLease.js'
  	import {
  		businessListGetById
  	} from '../../api/business.js'
  	import TitleWithCircle from '@/components/top/index';
  	import {
  		cerePlatformMerchantinfo
  	} from '../../api/newly.js'
  	import resourceCommodity from '@/components/resourceCommodity/index'
  	import chakanmap from '@/components/chakan/map'
  	import allimg from '@/components/chakan/allimg.vue';
  	import chakancd from '@/components/chakan/cd'
  	import {
  		editById
  	} from '@/api/manage.js'
  	import {
  		examine,
  		thirdParty
  	} from '@/api/oa.js'
  	export default {
  		components: {
  			oneht,
  			TitleWithCircle,
  			chakancd,
  			chakanmap,
  			resourceCommodity,
  			allimg
  		},
  		props: {
  			info: {
  				type: Object,
  				default: function() {
  					return {}; // 返回一个空数组作为默认值
  				},
  			},
  			issp: {
  				type: String,
  				default: function() {
  					return '1';
  				},
  			},
  		},
  		data() {
  			return {
  				reviewComments: '',
  				radio: '1',
  				url: '',
  				type: '1',
  				tableData: [],
  				xiangTab: 'first',
  				siteIds: [],
  				list: [],
  				advIds: [],
  				shopIds: [],
  				shop: {},
  				newshop: {},
  				newinfo: {},
  				detailsinfo: {},
  				detailstype: '',
  				list1: []
  			}
  		},
  		created() {
  			console.log(this.info)
  			this.list1 = JSON.parse(this.info.templateInformation)
  			console.log(this.list1)
  			this.url = process.env.VUE_APP_DOMAIN_PREFIX_1
  			let infonew = {
  				contractNumber: this.info.contractNumber
  			}
  			if (this.info.dataStatus == 1) {
  				infonew.dataStatus = '1'
  			}
  			queryByContractcontractNumber(infonew).then(res => {
  				console.error(res)
  				// this.shop = res.data.shop
  				this.siteIds = res.data.siteIds
  				this.shopIds = res.data.shopIds
  				this.advIds = res.data.advIds
  				this.list = res.data.list
  				this.tableData = [...res.data.siteIds, ...res.data.shopIds, ...res.data.advIds]
  			})
  			cerePlatformMerchantinfo({
  				id: this.info.relatedMerchants
  			}).then(res => {
  				console.error(res)
  				this.shop = res.data
  			})
  		},
  		computed: {
900ab311   李宇   1
405
  
a6a3878d   杨鑫   最新绿道
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
  		},
  		methods: {
  		async minSev() {
  				let num = ''
  				if (this.info.messageId != '') {
  					 num = await this.pull()
  				}
  				console.log(num,'numnumnumnum')
  				// if(num != '200'){
  				// 	return 
  				// }
  				editById({
  					isInterior: '1',
  					contractNumber: this.info.contractNumber,
  					dataStatus: this.radio,
  					reviewComments: this.reviewComments ? this.reviewComments : null
  				}).then(res => {
  					
  					if (res.code == 200) {
  						this.$message({
  							message: '处理成功',
  							type: 'success'
  						})
  						this.info.dataStatus = this.radio
  						this.$emit('removeonaction', '1')
  					} else {
  						this.$message({
  							message: '处理失败',
  							type: 'error'
  						})
  					}
  				})
  			},
  			async pull() {
  				let agree = ''
  				if (this.radio == '1') {
  					agree = 'AGREE'
  				} else {
  					agree = 'DISAGREE'
  				}
  				let obj = {
  					doProcessEnum: agree,
  					comment: this.reviewComments ? this.reviewComments : null,
  					taskId: '',
  					procInsId: '',
  					type:1,
  					businessKey:this.info.id
  					
  				}
  				let cost = await thirdParty({type:1})
  				let renwu = JSON.parse(cost.data)
  				let matchedObject = null
  				matchedObject = renwu.find(item => item.businessKey == this.info.id)
  				obj.taskId = matchedObject.taskId
  				obj.procInsId = matchedObject.processInstanceId
  				let res = await examine(obj)
  				return res.code
  			},
  			removeonaction() {
  				this.type = '1'
  			},
  			details(row) {
  				this.detailstype = row.shopName ? '商铺' : row.advertisingType ? '广告位' : '场地'
  				this.detailsinfo = row
  				this.type = '3'
  			},
  			openfile(e) {
  				if (e) {
  					const fullUrl = this.$baseURL + e;
  					try {
  						window.open(fullUrl, '_blank'); // 在新标签页中打开文件
  					} catch (error) {
  						console.error('打开文件失败:', error);
  					}
  				} else {
  					console.error('无文件可查看');
  				}
  			},
  			changetype() {
  				this.xiangTab = 'first'
  				if (this.type == '1') {
  					this.$emit('removeonaction', '1')
  				} else {
  					this.type = '1'
  				}
  			},
  			open(row) {
  				console.error(row)
  				this.type = '2'
  				this.$refs.onhet.open(row)
  			},
  			closeFn() {
  				this.$emit('change', false);
  			},
  		}
  	}
900ab311   李宇   1
502
503
  </script>
  <style>
a6a3878d   杨鑫   最新绿道
504
505
506
507
508
509
510
511
  	.el-form-item__label {
  		color: #a2a2a2;
  	}
  
  	.greens {
  		color: #3F9B6A;
  	}
  </style>