

<template>
<div class="app-container">
<el-form class="container-search" :inline="true" :model="form">
<el-form-item label="产品名称">
<el-input size="small" v-model="form.productName" placeholder="产品名称" clearable>el-input>
el-form-item>
<el-form-item>
<el-button plain type="primary">搜索el-button>
<el-button plain type="warning">重置el-button>
el-form-item>
el-form>
<el-row :gutter="20">
<el-col :span="4" style="padding-top:20px">
<img width="200px"
src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F2c%2F81%2F85%2F2c8185c42a4d5309f8f62eaf3b733bfc.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668668919&t=2c991aa3bd0c368c8ac31fb357220d8f" />
el-col>
<el-col :span="6">
<el-form ref="form" :model="form" label-width="80px">
<h3 style="padding-left: 10px;">
Apple无线蓝牙耳机 Apple耳机充电盒子
h3>
<el-form-item label="商品编号">
<span>1000568566span>
el-form-item>
<el-form-item label="生产批次">
<span>M20200001span>
el-form-item>
<el-form-item label="出厂时间">
<span>2022年12月20日span>
el-form-item>
<el-form-item label="生产厂家">
<span>某某设备制造有限公司span>
el-form-item>
<el-form-item label="商品净重">
<span>180gspan>
el-form-item>
<el-form-item label="计划单号">
<span>J2022100007span>
el-form-item>
<el-form-item label="质保时长">
<span>1年span>
el-form-item>
<el-form-item label="使用材料">
<span>塑胶span>
el-form-item>
el-form>
el-col>
<el-col :span="1" class="row-divider">
<el-divider direction="vertical" content-position="center">el-divider>
el-col>
<el-col :span="13">
<div class="clearfix">
<div class="vertical-line" />
<h3 style="display: inline-block;">销售流程h3>
div>
<div style="padding-left:250px">
<el-timeline>
<el-timeline-item v-for="(item, index) in steps" :key="index" :icon="item.icon" :type="item.type"
size="large" :class="item.linecss">
<div v-if="index % 2 != 0">
<div class="odd" style="height:100px">
<strong>{{ item.title }}strong>
<div role="tooltip" class="el-popover el-popper" v-if="item.status == 1"
style="width: 290px;position: absolute; left: -260px; " x-placement="bottom-end">
<el-row>
<el-col :span="5">
<a class="btn-detail">详情a>
el-col>
<el-col :span="19">
<b>{{item.content1 }}b>
<span class="text">{{ item.content2 }}span>
el-col>
el-row>
<div x-arrow="" class="popper__arrow" style="left: 267px;">div>
div>
<el-tag v-if="item.status == 2">进行中el-tag>
<el-tag type="info" v-else-if="item.status == 3">
未开始
el-tag>
div>
<div style="height:100px">div>
div>
<div v-else>
<div class="odd" style="height:100px">div>
<div style="height:100px">
<strong>{{ item.title }}strong>
<div role="tooltip" v-if="item.status == 1" class="el-popover el-popper"
style="width: 290px; position: absolute; left: 30px;" x-placement="bottom-start">
<el-row>
<el-col :span="19">
<b>{{item.content1 }}b>
<span class="text">{{ item.content2 }}span>
el-col>
<el-col :span="5">
<a class="btn-detail">详情a>
el-col>
el-row>
<div x-arrow="" class="popper__arrow" style="left: 8px;">div>
div>
<el-tag v-if="item.status == 2">进行中el-tag>
<el-tag type="info" v-else-if="item.status == 3">
未开始
el-tag>
div>
div>
el-timeline-item>
el-timeline>
div>
el-col>
el-row>
div>
template>
<script>
export default {
data() {
return {
form: {},
steps: [
{
title: "计划",
content1: "计划编号:JH193892492",
content2: "执行人:张三 2022-10-18 16:34:23",
status: "1",
type: "primary",
icon: "el-icon-check",
linecss: "line1"
},
{
title: "出库",
content1: "出库单号:WO2022100007",
content2: "出库人:张元",
status: "1",
type: "primary",
icon: "el-icon-check",
linecss: "line1"
},
{
title: "进店",
content1: "进店单号:T348934",
content2: "进店时间:2022年12月21日",
status: "1",
type: "primary",
icon: "el-icon-check",
linecss: "line2"
},
{
title: "上架",
content1: null,
content2: null,
status: "2",
type: "warning",
icon: "el-icon-minus",
linecss: "line3"
},
{
title: "定期检查",
content1: null,
content2: null,
status: "3",
type: "info",
icon: "el-icon-close",
linecss: "line3"
},
{
title: "盘点",
content1: null,
content2: null,
status: "3",
type: "info",
icon: "el-icon-close",
linecss: "line3"
},
{
title: "登记",
content1: null,
content2: null,
status: "3",
type: "info",
icon: "el-icon-close",
linecss: "line3"
},
{
title: "出售",
content1: null,
content2: null,
status: "3",
type: "info",
icon: "el-icon-close",
linecss: "line3"
}
]
};
},
methods: {}
};
script>
<style scoped>
.vertical-line {
background: #409eff;
width: 3px;
height: 15px;
display: inline-block;
margin-right: 5px;
}
.odd {
position: absolute;
left: -50px;
top: 1px;
}
.odd .el-tag {
left: -100px;
position: relative;
}
.el-timeline-item {
padding-bottom: 1px !important;
}
.el-timeline-item__node--normal {
width: 7px;
height: 7px;
left: 2px;
}
>>>.el-timeline-item__node {
height: 20px;
width: 20px;
margin-left: -4px;
}
>>>.el-timeline-item__tail {
border-left: 4px solid #dfe4ed;
left: 2px;
}
>>>.line1 .el-timeline-item__tail {
border-left: 4px solid #1890ff;
}
>>>.line2 .el-timeline-item__tail {
border-left: 4px solid #ffba00;
}
style>
<style lang="scss">
.el-popper {
z-index: 0 !important;
.btn-detail {
border: 1px solid #1890ff;
padding: 2px 8px;
border-radius: 6px;
font-size: 13px;
color: #1890ff;
}
.text {
display: block;
}
.el-col-5 {
font-weight: 500;
line-height: 250%;
}
}
.el-popover[x-placement^=bottom] .popper__arrow {
border-bottom-color: rgb(198, 204, 206);
}
.el-popover[x-placement^=bottom] .popper__arrow::after {
border-bottom-color: white;
}
.el-divider--vertical {
height: 100%;
background-color: #eff1f8;
}
.row-divider {
height: 600px;
}
.clearfix{
margin-left: -20px;
}
style>

- 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