3f535f30
杨鑫
'初始'
|
1
2
|
<template>
<div style="background-color:#f7f7f7;padding:10px 10px;">
|
09d4e1dc
wesley88
1
|
3
|
<div class="zhuti" v-if="onaction == '1'">
|
3f535f30
杨鑫
'初始'
|
4
5
6
7
|
<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>
|
09d4e1dc
wesley88
1
|
8
|
<!-- 线上 -->
|
3f535f30
杨鑫
'初始'
|
9
10
11
|
<div>
<!-- 搜索 -->
<div class="formSearch">
|
09d4e1dc
wesley88
1
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<el-form :inline="true" :model="pagequery">
<el-form-item label="方案名称">
<el-input v-model="pagequery.planName" placeholder="请输入" style="width:168px;">
</el-input>
</el-form-item>
<!-- <el-form-item label="状态" prop="auditStatus">
<el-select v-model="pagequery.auditStatus" clearable placeholder="请选择" style="margin-right: 15px">
<el-option label="待审核" value="1"></el-option>
<el-option label="审核通过" value="2"></el-option>
<el-option label="已驳回" value="3"></el-option>
</el-select>
</el-form-item> -->
</el-form>
|
3f535f30
杨鑫
'初始'
|
26
27
28
29
30
31
32
|
<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>
|
3f535f30
杨鑫
'初始'
|
33
34
|
</div>
<!-- 表格 -->
|
09d4e1dc
wesley88
1
|
35
36
|
<el-table :data="tableData" :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
6d7925d7
wesley88
1
|
37
|
|
09d4e1dc
wesley88
1
|
38
39
|
<el-table-column label="招商方案名称" prop="planName" show-overflow-tooltip max-width="200"/>
<el-table-column label="涵盖资源数" prop="createTime">
|
ab818baa
杨鑫
'1'
|
40
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
41
|
{{scope.row.resourceManagement?(scope.row.resourceManagement.split(',').length):0}}
|
2d4e37fb
wesley88
1
|
42
43
|
</template>
</el-table-column>
|
09d4e1dc
wesley88
1
|
44
|
<el-table-column label="创建时间" prop="createTime">
|
2d4e37fb
wesley88
1
|
45
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
46
|
{{scope.row.createTime || '-' }}
|
2d4e37fb
wesley88
1
|
47
48
|
</template>
</el-table-column>
|
09d4e1dc
wesley88
1
|
49
|
<el-table-column label="创建人" prop="createUser">
|
2d4e37fb
wesley88
1
|
50
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
51
|
{{scope.row.createUser || '-' }}
|
2d4e37fb
wesley88
1
|
52
53
|
</template>
</el-table-column>
|
09d4e1dc
wesley88
1
|
54
|
<el-table-column label="状态">
|
2d4e37fb
wesley88
1
|
55
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
56
|
{{scope.row.auditStatus =='1'?'待审核':scope.row.auditStatus =='2'?'审核通过':scope.row.auditStatus =='3'?'已驳回':scope.row.auditStatus =='4'?'已撤回':''}}
|
2d4e37fb
wesley88
1
|
57
58
|
</template>
</el-table-column>
|
09d4e1dc
wesley88
1
|
59
|
<el-table-column label="操作" fixed="right">
|
3f535f30
杨鑫
'初始'
|
60
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
61
|
<div @click="details(scope.row,'1')" class="tableBtn greens">查看</div>
|
a6a3878d
杨鑫
最新绿道
|
62
63
|
<div class="tableBtn greens" @click="details(scope.row,'2')" v-if="scope.row.auditStatus == '1'">审核</div>
<!-- <div @click="openOAitem(scope.row)" class="tableBtn greens" v-if="scope.row.auditStatus == '1'">OA审核</div> -->
|
3f535f30
杨鑫
'初始'
|
64
65
66
|
</template>
</el-table-column>
</el-table>
|
09d4e1dc
wesley88
1
|
67
68
69
70
71
72
|
<div style="display: flex;justify-content: space-between;" class="bom">
<div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
<el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="pagequery.pageSize"
background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
|
3f535f30
杨鑫
'初始'
|
73
|
</div>
|
09d4e1dc
wesley88
1
|
74
|
|
3f535f30
杨鑫
'初始'
|
75
|
</div>
|
09d4e1dc
wesley88
1
|
76
|
|
3f535f30
杨鑫
'初始'
|
77
|
</div>
|
09d4e1dc
wesley88
1
|
78
79
80
81
82
83
84
85
86
87
|
<div class="zhuti" v-if="onaction == '2'">
<div style="height:58px;line-height:58px;">
<div style="color:#0006"> <span>招商方案审核</span> <span style="padding:0 5px;">></span> <span
style="color:#000000e6">新增</span></div>
|
2d4e37fb
wesley88
1
|
88
|
</div>
|
09d4e1dc
wesley88
1
|
89
90
91
|
<div style="padding: 20px 20px 20px 0;">
<add @removeonaction="removeonaction"></add>
|
2d4e37fb
wesley88
1
|
92
|
</div>
|
09d4e1dc
wesley88
1
|
93
94
95
96
97
98
|
</div>
<div class="zhuti" v-if="onaction == '3'">
<!-- <div style="height:58px;line-height:58px;">
<div style="color:#0006"> <span>招商方案审核</span> <span style="padding:0 5px;">></span> <span
style="color:#000000e6">查看</span></div>
</div> -->
|
2d4e37fb
wesley88
1
|
99
|
<div>
|
09d4e1dc
wesley88
1
|
100
101
102
103
104
105
106
107
108
109
|
<fa :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction"></fa>
</div>
</div>
<div class="zhuti" v-if="onaction == '4'">
<div style="height:58px;line-height:58px;">
<div style="color:#0006"> <span>招商方案审核</span> <span style="padding:0 5px;">></span> <span
style="color:#000000e6">{{contractChangeReason}}</span></div>
</div>
<div style="padding: 20px 20px 20px 0;">
<add :info="detailsinfo" @removeonaction="removeonaction"></add>
|
2d4e37fb
wesley88
1
|
110
|
</div>
|
09d4e1dc
wesley88
1
|
111
112
113
114
115
116
117
|
</div>
<el-dialog :visible.sync="addcl" title="选择策略" width="65%" append-to-body center
:close-on-click-modal="false" :close-on-press-escape="false" :show-close="false">
<cl :resourcesId="oncetype+oninfo.id" v-if="addcl" @minSev="minSev" @mingClose="mingClose"></cl>
|
2d4e37fb
wesley88
1
|
118
|
</el-dialog>
|
3f535f30
杨鑫
'初始'
|
119
|
</div>
|
09d4e1dc
wesley88
1
|
120
121
|
|
3f535f30
杨鑫
'初始'
|
122
123
124
|
</template>
<script>
|
3f535f30
杨鑫
'初始'
|
125
|
import {
|
09d4e1dc
wesley88
1
|
126
127
|
delList,
editList,
|
09d4e1dc
wesley88
1
|
128
129
130
131
|
getAlls
} from '@/api/information';
import add from '@/components/add/addfa'
import fa from '@/components/chakan/fa'
|
2d4e37fb
wesley88
1
|
132
133
|
import {
fangGetAll,
|
2d4e37fb
wesley88
1
|
134
|
fangDel,
|
09d4e1dc
wesley88
1
|
135
136
137
138
139
140
141
142
143
|
fangEdit
} from '@/api/fangli'
import cl from '@/components/change/cl.vue'
import {
cereResourceStrategy,
editStatus,
cereBusinessOperationadd,
queryAllByLimit
} from '@/api/newly.js'
|
a6a3878d
杨鑫
最新绿道
|
144
145
146
147
|
import {
examine,
startOa
} from '@/api/oa.js'
|
2d4e37fb
wesley88
1
|
148
|
export default {
|
2d4e37fb
wesley88
1
|
149
150
|
data() {
return {
|
09d4e1dc
wesley88
1
|
151
152
153
154
155
156
157
158
159
|
issp:'1',
lvdaoList:[],
oncetype:'',
addcl:false,
oninfo:{},
multipleSelection:[],
contractChangeReason: '',
detailsinfo: {},
pagequery: {
|
60cd6339
杨鑫
'最新'
|
160
|
pageNumber: 0,
|
2d4e37fb
wesley88
1
|
161
|
pageSize: 10,
|
09d4e1dc
wesley88
1
|
162
|
auditStatus:'1'
|
2d4e37fb
wesley88
1
|
163
|
},
|
09d4e1dc
wesley88
1
|
164
165
166
167
|
tableData: [],
total: 0,
onaction: '1',
formInline: {
|
2d4e37fb
wesley88
1
|
168
|
},
|
a6a3878d
杨鑫
最新绿道
|
169
|
oainfo:{}
|
09d4e1dc
wesley88
1
|
170
|
}
|
2d4e37fb
wesley88
1
|
171
|
},
|
09d4e1dc
wesley88
1
|
172
173
174
175
176
177
178
179
180
181
182
183
|
computed: {
regionOptions() {
return this.$store.state.app.regionOptions;
}
},
components: {
cl,
add,
fa,
},
async created() {
this.getAll()
|
2d4e37fb
wesley88
1
|
184
|
},
|
2d4e37fb
wesley88
1
|
185
|
methods: {
|
a6a3878d
杨鑫
最新绿道
|
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
|
openOAitem(row){
console.log(row,'11111')
// if(row.cereBasicInformationShop.shopName){
// }
// return
this.oainfo = row
let that = this
this.$confirm('确定是否提交OA?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let row = this.oainfo
let token = localStorage.getItem('token')
let obj = {
businessKey:row.id,
businessName:row.planName+'方案审核',
type:3,
}
console.log(obj,'obj')
startOa(obj).then(res => {
if (res.code == '200') {
this.$message({
type: 'success',
message: '发起成功'
})
this.resetting()
} else {
this.$message({
type: 'error',
message: res.message
})
}
})
})
},
|
09d4e1dc
wesley88
1
|
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
|
minSev(e) {
this.multipleSelection = e
console.error(this.multipleSelection)
let ids = []
for (let index = 0; index < this.multipleSelection.length; index++) {
ids.push(this.multipleSelection[index].id)
}
console.error(ids)
let c1 = {
resourcesId: this.oncetype+this.oninfo.id,
rentalPoliciesIds: ids,
}
console.error(c1)
cereResourceStrategy(c1).then(res => {
if (res.code == 200) {
this.addcl = false
this.$message({
message: '绑定成功',
|
2d4e37fb
wesley88
1
|
243
244
|
type: 'success'
})
|
09d4e1dc
wesley88
1
|
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
editStatus({
resourcesId: this.oncetype+this.oninfo.id,
publishStatus: '1'
}).then(res => {
this.onSubmit()
})
cereBusinessOperationadd({
type:'发布',
resourceId: this.oncetype+this.oninfo.id,
operator: localStorage.getItem('roleName'),
operationTime: this.gettime()
}).then(res => {
console.error(res)
})
} else {
this.$message({
message: '绑定失败',
type: 'error'
})
}
|
2d4e37fb
wesley88
1
|
265
|
})
|
3f535f30
杨鑫
'初始'
|
266
|
},
|
09d4e1dc
wesley88
1
|
267
268
269
|
mingClose() {
this.multipleSelection = []
this.addcl = false
|
3f535f30
杨鑫
'初始'
|
270
|
},
|
09d4e1dc
wesley88
1
|
271
272
273
274
275
|
async opencl(row,e) {
this.oncetype = e
this.oninfo = row
this.multipleSelection = []
this.addcl = true
|
3f535f30
杨鑫
'初始'
|
276
|
},
|
09d4e1dc
wesley88
1
|
277
278
279
|
gettime() {
// 获取当前时间
let currentTime = new Date();
|
3f535f30
杨鑫
'初始'
|
280
|
|
09d4e1dc
wesley88
1
|
281
282
|
// 获取年份
let year = currentTime.getFullYear();
|
3f535f30
杨鑫
'初始'
|
283
|
|
09d4e1dc
wesley88
1
|
284
285
|
// 获取月份(注意月份是从0开始计数的,所以需要加1)
let month = currentTime.getMonth() + 1;
|
3f535f30
杨鑫
'初始'
|
286
|
|
09d4e1dc
wesley88
1
|
287
288
|
// 获取日期
let day = currentTime.getDate();
|
3f535f30
杨鑫
'初始'
|
289
|
|
09d4e1dc
wesley88
1
|
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
|
// 获取小时
let hours = currentTime.getHours();
// 获取分钟
let minutes = currentTime.getMinutes();
// 获取秒数
let seconds = currentTime.getSeconds();
// 获取毫秒数
let milliseconds = currentTime.getMilliseconds();
// 格式化时间为 YYYY-MM-DD
let formattedDate = `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
// 格式化时间为 HH:MM:SS
let formattedTime =
`${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
// 格式化时间为 YYYY-MM-DD HH:MM:SS
let formattedDateTime = `${formattedDate} ${formattedTime}`;
return formattedDateTime
|
3f535f30
杨鑫
'初始'
|
312
|
|
2d4e37fb
wesley88
1
|
313
|
},
|
09d4e1dc
wesley88
1
|
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
|
removeinfozz(row, e, tit) {
let that = this
this.$confirm('确定要' + tit + '吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
fangEdit({
id: row.id,
auditStatus: e
}).then(res => {
if (res.code == 200) {
this.$message({
message: tit + '成功',
type: 'success'
})
this.removeonaction('1')
} else {
this.$message({
message: res.msg,
type: 'error'
})
}
})
})
|
2d4e37fb
wesley88
1
|
339
|
},
|
09d4e1dc
wesley88
1
|
340
341
342
343
|
details(row,type) {
this.issp = type
this.detailsinfo = row
this.onaction = '3'
|
2d4e37fb
wesley88
1
|
344
|
},
|
09d4e1dc
wesley88
1
|
345
346
347
348
|
removeinfo(row, e) {
this.contractChangeReason = e
this.detailsinfo = row
this.onaction = '4'
|
2d4e37fb
wesley88
1
|
349
|
},
|
09d4e1dc
wesley88
1
|
350
351
352
353
|
async getAll() {
const res = await queryAllByLimit(this.pagequery)
this.tableData = res.data.content
this.total = res.data.totalElements
|
2d4e37fb
wesley88
1
|
354
|
},
|
09d4e1dc
wesley88
1
|
355
356
357
358
|
removeonaction(e) {
console.error(e)
this.onaction = e
this.pagequery.pageNumber = 0
|
2d4e37fb
wesley88
1
|
359
360
|
this.getAll()
},
|
09d4e1dc
wesley88
1
|
361
362
363
|
handleCurrentChange(val) {
this.pagequery.pageNumber = val - 1
this.getAll()
|
2d4e37fb
wesley88
1
|
364
|
},
|
09d4e1dc
wesley88
1
|
365
366
367
368
|
handleSizeChange(val) {
this.pagequery.pageSize = val
this.pagequery.pageNumber = 0
this.getAll()
|
2d4e37fb
wesley88
1
|
369
|
},
|
09d4e1dc
wesley88
1
|
370
371
372
|
// 查询按钮
async onSubmit() {
this.pagequery.pageNumber = 0
|
2d4e37fb
wesley88
1
|
373
|
this.getAll()
|
09d4e1dc
wesley88
1
|
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
|
},
//重置按钮
resetting() {
this.pagequery = {
pageNumber: 0,
pageSize: 10,
auditStatus:'1'
},
this.getAll()
},
//删除
closemsg(item) {
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') {
fangDel({
id: item.id
}).then(res => {
this.$message({
message: '删除成功',
type: 'success'
})
this.getAll()
done();
})
} else {
done();
}
}
})
|
2d4e37fb
wesley88
1
|
414
415
|
},
}
|
3f535f30
杨鑫
'初始'
|
416
|
|
2d4e37fb
wesley88
1
|
417
|
}
|
09d4e1dc
wesley88
1
|
418
|
</script>
|
3f535f30
杨鑫
'初始'
|
419
|
|
09d4e1dc
wesley88
1
|
420
|
<style lang="scss" scoped>
|
2d4e37fb
wesley88
1
|
421
|
.formSearch {
|
3f535f30
杨鑫
'初始'
|
422
423
424
425
|
display: flex;
width: 100%;
font-size: 14px;
justify-content: space-between;
|
3f535f30
杨鑫
'初始'
|
426
427
|
}
|
09d4e1dc
wesley88
1
|
428
429
430
431
|
.zhuti {
padding: 0 20px 20px 20px;
min-height: calc(100vh - 50px - 20px);
background-color: #Fff;
|
3f535f30
杨鑫
'初始'
|
432
|
|
3f535f30
杨鑫
'初始'
|
433
|
}
|
3f535f30
杨鑫
'初始'
|
434
|
|
09d4e1dc
wesley88
1
|
435
436
437
|
.chengeXia {
border-bottom: 6px solid #3F9B6A;
padding-bottom: 4px;
|
2d4e37fb
wesley88
1
|
438
|
color: #3F9B6A;
|
2d4e37fb
wesley88
1
|
439
|
}
|
2d4e37fb
wesley88
1
|
440
|
|
09d4e1dc
wesley88
1
|
441
442
443
444
|
.tableBtn {
display: inline-block;
margin-right: 10px;
cursor: pointer;
|
3f535f30
杨鑫
'初始'
|
445
|
}
|
60cd6339
杨鑫
'最新'
|
446
|
</style>
|