3f535f30
杨鑫
'初始'
|
1
2
|
<template>
<div style="background-color:#f7f7f7;padding:10px 10px;">
|
c3bca151
wesley88
1
|
3
|
<div class="zhuti" v-if="onaction == '1'">
|
3f535f30
杨鑫
'初始'
|
4
|
<div style="height:58px;line-height:58px;">
|
09d4e1dc
wesley88
1
|
5
6
|
<div style="color:#0006"> <span>招商方案管理</span> <span style="padding:0 5px;">></span> <span
style="color:#000000e6">招商方案管理</span></div>
|
3f535f30
杨鑫
'初始'
|
7
|
</div>
|
c3bca151
wesley88
1
|
8
|
<!-- 线上 -->
|
3f535f30
杨鑫
'初始'
|
9
10
11
|
<div>
<!-- 搜索 -->
<div class="formSearch">
|
c3bca151
wesley88
1
|
12
|
<el-form :inline="true" :model="pagequery">
|
09d4e1dc
wesley88
1
|
13
14
15
|
<el-form-item label="方案名称">
<el-input v-model="pagequery.planName" placeholder="请输入" style="width:168px;">
</el-input>
|
c3bca151
wesley88
1
|
16
|
</el-form-item>
|
09d4e1dc
wesley88
1
|
17
18
19
20
21
|
<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>
|
c3bca151
wesley88
1
|
22
23
|
</el-select>
</el-form-item>
|
c3bca151
wesley88
1
|
24
25
|
</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
|
</div>
|
c3bca151
wesley88
1
|
34
35
36
37
|
<div style="margin-bottom: 20px;">
<el-button @click="removeonaction('2')" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;"
icon="el-icon-circle-plus-outline">新增</el-button>
<!-- <el-button @click="" style="background-color: #3F9B6A;color: #fff">批量导入</el-button> -->
|
3f535f30
杨鑫
'初始'
|
38
39
|
</div>
<!-- 表格 -->
|
c3bca151
wesley88
1
|
40
41
|
<el-table :data="tableData" :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
6d7925d7
wesley88
1
|
42
|
|
09d4e1dc
wesley88
1
|
43
44
|
<el-table-column label="招商方案名称" prop="planName" show-overflow-tooltip max-width="200"/>
<el-table-column label="涵盖资源数" prop="createTime">
|
2d4e37fb
wesley88
1
|
45
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
46
|
{{scope.row.resourceManagement?(scope.row.resourceManagement.split(',').length):0}}
|
2d4e37fb
wesley88
1
|
47
|
</template>
|
3f535f30
杨鑫
'初始'
|
48
|
</el-table-column>
|
09d4e1dc
wesley88
1
|
49
|
<el-table-column label="创建时间" prop="createTime">
|
2d4e37fb
wesley88
1
|
50
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
51
|
{{scope.row.createTime || '-' }}
|
2d4e37fb
wesley88
1
|
52
53
|
</template>
</el-table-column>
|
09d4e1dc
wesley88
1
|
54
|
<el-table-column label="创建人" prop="createUser">
|
2d4e37fb
wesley88
1
|
55
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
56
|
{{scope.row.createUser || '-' }}
|
2d4e37fb
wesley88
1
|
57
|
</template>
|
c3bca151
wesley88
1
|
58
|
</el-table-column>
|
09d4e1dc
wesley88
1
|
59
|
<el-table-column label="状态">
|
2d4e37fb
wesley88
1
|
60
|
<template slot-scope="scope">
|
09d4e1dc
wesley88
1
|
61
|
{{scope.row.auditStatus =='1'?'待审核':scope.row.auditStatus =='2'?'审核通过':scope.row.auditStatus =='3'?'已驳回':scope.row.auditStatus =='4'?'已撤回':''}}
|
2d4e37fb
wesley88
1
|
62
63
|
</template>
</el-table-column>
|
09d4e1dc
wesley88
1
|
64
|
<el-table-column label="操作" fixed="right">
|
3f535f30
杨鑫
'初始'
|
65
|
<template slot-scope="scope">
|
c3bca151
wesley88
1
|
66
|
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
|
09d4e1dc
wesley88
1
|
67
68
69
70
71
|
<!-- v-if="scope.row.auditStatus == '4'" -->
<div class="tableBtn greens" v-if="scope.row.auditStatus == '4'" @click="removeinfo(scope.row,'编辑')">编辑</div>
<div class="tableBtn greens" v-if="scope.row.auditStatus == '4'" @click="closemsg(scope.row)">删除</div>
<div class="tableBtn greens" v-if="scope.row.auditStatus == '4'" @click="removeinfozz(scope.row,'1','提交审核')">提交审核</div>
<div class="tableBtn greens" v-if="scope.row.auditStatus == '1'" @click="removeinfozz(scope.row,'4',' 撤回')">撤回</div>
|
3f535f30
杨鑫
'初始'
|
72
73
74
|
</template>
</el-table-column>
</el-table>
|
c3bca151
wesley88
1
|
75
76
77
78
79
80
|
<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
杨鑫
'初始'
|
81
|
</div>
|
c3bca151
wesley88
1
|
82
83
84
85
86
87
88
89
90
91
92
93
|
</div>
</div>
<div class="zhuti" v-if="onaction == '2'">
<div style="height:58px;line-height:58px;">
|
09d4e1dc
wesley88
1
|
94
|
<div style="color:#0006"> <span>招商方案管理</span> <span style="padding:0 5px;">></span> <span
|
c3bca151
wesley88
1
|
95
96
97
98
99
100
101
102
|
style="color:#000000e6">新增</span></div>
</div>
<div style="padding: 20px 20px 20px 0;">
<add @removeonaction="removeonaction"></add>
</div>
</div>
<div class="zhuti" v-if="onaction == '3'">
|
09d4e1dc
wesley88
1
|
103
104
|
<!-- <div style="height:58px;line-height:58px;">
<div style="color:#0006"> <span>招商方案管理</span> <span style="padding:0 5px;">></span> <span
|
c3bca151
wesley88
1
|
105
|
style="color:#000000e6">查看</span></div>
|
09d4e1dc
wesley88
1
|
106
|
</div> -->
|
c3bca151
wesley88
1
|
107
|
<div>
|
09d4e1dc
wesley88
1
|
108
|
<fa :editbgid="detailsinfo" @removeonaction="removeonaction"></fa>
|
c3bca151
wesley88
1
|
109
110
111
112
|
</div>
</div>
<div class="zhuti" v-if="onaction == '4'">
<div style="height:58px;line-height:58px;">
|
09d4e1dc
wesley88
1
|
113
|
<div style="color:#0006"> <span>招商方案管理</span> <span style="padding:0 5px;">></span> <span
|
c3bca151
wesley88
1
|
114
115
116
117
|
style="color:#000000e6">{{contractChangeReason}}</span></div>
</div>
<div style="padding: 20px 20px 20px 0;">
<add :info="detailsinfo" @removeonaction="removeonaction"></add>
|
3f535f30
杨鑫
'初始'
|
118
119
|
</div>
</div>
|
c3bca151
wesley88
1
|
120
121
122
123
124
125
126
|
<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>
</el-dialog>
|
3f535f30
杨鑫
'初始'
|
127
|
</div>
|
c3bca151
wesley88
1
|
128
129
|
|
3f535f30
杨鑫
'初始'
|
130
131
132
|
</template>
<script>
|
2d4e37fb
wesley88
1
|
133
|
import {
|
c3bca151
wesley88
1
|
134
135
|
delList,
editList,
|
c3bca151
wesley88
1
|
136
137
138
|
getAlls
} from '@/api/information';
import add from '@/components/add/addfa'
|
09d4e1dc
wesley88
1
|
139
|
import fa from '@/components/chakan/fa'
|
6831f623
wesley88
1
|
140
141
142
|
import {
fangGetAll,
fangDel,
|
09d4e1dc
wesley88
1
|
143
|
fangEdit
|
6831f623
wesley88
1
|
144
|
} from '@/api/fangli'
|
c3bca151
wesley88
1
|
145
146
147
148
149
|
import cl from '@/components/change/cl.vue'
import {
cereResourceStrategy,
editStatus,
cereBusinessOperationadd,
|
09d4e1dc
wesley88
1
|
150
|
queryAllByLimit
|
c3bca151
wesley88
1
|
151
|
} from '@/api/newly.js'
|
2d4e37fb
wesley88
1
|
152
|
export default {
|
2d4e37fb
wesley88
1
|
153
154
|
data() {
return {
|
c3bca151
wesley88
1
|
155
156
157
158
159
160
161
162
|
lvdaoList:[],
oncetype:'',
addcl:false,
oninfo:{},
multipleSelection:[],
contractChangeReason: '',
detailsinfo: {},
pagequery: {
|
6831f623
wesley88
1
|
163
164
|
// belongingRegion:'',
// shopName:'',
|
09d4e1dc
wesley88
1
|
165
|
pageNumber: 0,
|
2d4e37fb
wesley88
1
|
166
|
pageSize: 10,
|
6831f623
wesley88
1
|
167
168
|
// belongingGreenwaySection:'',
// belongingDepartment:''
|
2d4e37fb
wesley88
1
|
169
|
},
|
2d4e37fb
wesley88
1
|
170
|
tableData: [],
|
c3bca151
wesley88
1
|
171
|
total: 0,
|
6831f623
wesley88
1
|
172
|
onaction: '1',
|
c3bca151
wesley88
1
|
173
|
formInline: {
|
2d4e37fb
wesley88
1
|
174
|
},
|
2d4e37fb
wesley88
1
|
175
176
|
}
},
|
c3bca151
wesley88
1
|
177
178
179
180
181
182
183
184
|
computed: {
regionOptions() {
return this.$store.state.app.regionOptions;
}
},
components: {
cl,
add,
|
09d4e1dc
wesley88
1
|
185
|
fa,
|
c3bca151
wesley88
1
|
186
187
188
|
},
async created() {
this.getAll()
|
2d4e37fb
wesley88
1
|
189
|
},
|
2d4e37fb
wesley88
1
|
190
|
methods: {
|
c3bca151
wesley88
1
|
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
|
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: '绑定成功',
type: 'success'
})
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'
})
}
})
|
3f535f30
杨鑫
'初始'
|
232
|
},
|
c3bca151
wesley88
1
|
233
234
235
|
mingClose() {
this.multipleSelection = []
this.addcl = false
|
3f535f30
杨鑫
'初始'
|
236
|
},
|
c3bca151
wesley88
1
|
237
238
239
240
241
|
async opencl(row,e) {
this.oncetype = e
this.oninfo = row
this.multipleSelection = []
this.addcl = true
|
3f535f30
杨鑫
'初始'
|
242
|
},
|
c3bca151
wesley88
1
|
243
244
245
|
gettime() {
// 获取当前时间
let currentTime = new Date();
|
3f535f30
杨鑫
'初始'
|
246
|
|
c3bca151
wesley88
1
|
247
248
|
// 获取年份
let year = currentTime.getFullYear();
|
3f535f30
杨鑫
'初始'
|
249
|
|
c3bca151
wesley88
1
|
250
251
|
// 获取月份(注意月份是从0开始计数的,所以需要加1)
let month = currentTime.getMonth() + 1;
|
3f535f30
杨鑫
'初始'
|
252
|
|
c3bca151
wesley88
1
|
253
254
|
// 获取日期
let day = currentTime.getDate();
|
3f535f30
杨鑫
'初始'
|
255
|
|
c3bca151
wesley88
1
|
256
257
|
// 获取小时
let hours = currentTime.getHours();
|
3f535f30
杨鑫
'初始'
|
258
|
|
c3bca151
wesley88
1
|
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
|
// 获取分钟
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
杨鑫
'初始'
|
278
|
|
2d4e37fb
wesley88
1
|
279
|
},
|
c3bca151
wesley88
1
|
280
281
282
283
284
285
286
|
removeinfozz(row, e, tit) {
let that = this
this.$confirm('确定要' + tit + '吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
|
09d4e1dc
wesley88
1
|
287
288
289
|
fangEdit({
id: row.id,
auditStatus: e
|
c3bca151
wesley88
1
|
290
|
}).then(res => {
|
c3bca151
wesley88
1
|
291
292
293
294
295
|
if (res.code == 200) {
this.$message({
message: tit + '成功',
type: 'success'
})
|
c3bca151
wesley88
1
|
296
297
298
299
300
301
302
|
this.removeonaction('1')
} else {
this.$message({
message: res.msg,
type: 'error'
})
}
|
c3bca151
wesley88
1
|
303
304
|
})
})
|
2d4e37fb
wesley88
1
|
305
|
},
|
c3bca151
wesley88
1
|
306
307
308
|
details(row) {
this.detailsinfo = row
this.onaction = '3'
|
2d4e37fb
wesley88
1
|
309
|
},
|
c3bca151
wesley88
1
|
310
311
312
313
|
removeinfo(row, e) {
this.contractChangeReason = e
this.detailsinfo = row
this.onaction = '4'
|
2d4e37fb
wesley88
1
|
314
|
},
|
c3bca151
wesley88
1
|
315
|
async getAll() {
|
09d4e1dc
wesley88
1
|
316
|
const res = await queryAllByLimit(this.pagequery)
|
c3bca151
wesley88
1
|
317
318
319
320
321
322
323
|
this.tableData = res.data.content
this.total = res.data.totalElements
},
removeonaction(e) {
console.error(e)
this.onaction = e
this.pagequery.pageNumber = 0
|
2d4e37fb
wesley88
1
|
324
325
326
|
this.getAll()
},
handleCurrentChange(val) {
|
c3bca151
wesley88
1
|
327
328
|
this.pagequery.pageNumber = val - 1
this.getAll()
|
2d4e37fb
wesley88
1
|
329
330
|
},
handleSizeChange(val) {
|
c3bca151
wesley88
1
|
331
332
333
|
this.pagequery.pageSize = val
this.pagequery.pageNumber = 0
this.getAll()
|
2d4e37fb
wesley88
1
|
334
|
},
|
c3bca151
wesley88
1
|
335
336
337
338
|
// 查询按钮
async onSubmit() {
this.pagequery.pageNumber = 0
this.getAll()
|
2d4e37fb
wesley88
1
|
339
|
},
|
c3bca151
wesley88
1
|
340
|
//重置按钮
|
2d4e37fb
wesley88
1
|
341
|
resetting() {
|
c3bca151
wesley88
1
|
342
343
344
345
346
347
348
349
350
|
this.pagequery = {
belongingRegion:'',
shopName:'',
pageNumber: 0,
pageSize: 10,
belongingGreenwaySection:'',
belongingDepartment:''
},
this.getAll()
|
2d4e37fb
wesley88
1
|
351
|
},
|
c3bca151
wesley88
1
|
352
353
|
//删除
closemsg(item) {
|
2d4e37fb
wesley88
1
|
354
355
356
357
358
359
360
361
362
363
364
365
366
|
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') {
|
09d4e1dc
wesley88
1
|
367
|
fangDel({
|
c3bca151
wesley88
1
|
368
|
id: item.id
|
2d4e37fb
wesley88
1
|
369
370
371
372
373
374
375
376
377
378
379
380
381
|
}).then(res => {
this.$message({
message: '删除成功',
type: 'success'
})
this.getAll()
done();
})
} else {
done();
}
}
})
|
c3bca151
wesley88
1
|
382
|
},
|
3f535f30
杨鑫
'初始'
|
383
|
}
|
3f535f30
杨鑫
'初始'
|
384
|
|
2d4e37fb
wesley88
1
|
385
|
}
|
c3bca151
wesley88
1
|
386
|
</script>
|
3f535f30
杨鑫
'初始'
|
387
|
|
c3bca151
wesley88
1
|
388
|
<style lang="scss" scoped>
|
2d4e37fb
wesley88
1
|
389
|
.formSearch {
|
3f535f30
杨鑫
'初始'
|
390
391
392
393
394
395
|
display: flex;
width: 100%;
font-size: 14px;
justify-content: space-between;
}
|
c3bca151
wesley88
1
|
396
397
398
399
|
.zhuti {
padding: 0 20px 20px 20px;
min-height: calc(100vh - 50px - 20px);
background-color: #Fff;
|
2d4e37fb
wesley88
1
|
400
|
|
2d4e37fb
wesley88
1
|
401
402
|
}
|
c3bca151
wesley88
1
|
403
404
405
406
|
.chengeXia {
border-bottom: 6px solid #3F9B6A;
padding-bottom: 4px;
color: #3F9B6A;
|
2d4e37fb
wesley88
1
|
407
408
|
}
|
c3bca151
wesley88
1
|
409
410
411
|
.tableBtn {
display: inline-block;
margin-right: 10px;
|
2d4e37fb
wesley88
1
|
412
|
cursor: pointer;
|
3f535f30
杨鑫
'初始'
|
413
414
|
}
</style>
|