Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
8c6fc8af
提交
8c6fc8af
authored
4月 01, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(promotion): 促销表格改变顺序_强制一行显示超出浮窗_活动日期加周几
同上
上级
f56b2b18
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
57 行增加
和
42 行删除
+57
-42
index.vue
src/mobile_views/promotion/detail/index.vue
+1
-1
promotion.vue
src/mobile_views/promotion/promotion.vue
+1
-1
index.vue
src/views/promotion/plan/index.vue
+55
-40
没有找到文件。
src/mobile_views/promotion/detail/index.vue
浏览文件 @
8c6fc8af
...
...
@@ -14,7 +14,7 @@
v-if=
"planDetail.planStatus === 0"
>
未执行
</p>
<p
v-else
class=
"employee plan-go"
>
执行
</p>
<p
class=
"employee"
>
活动日期:
 
{{
parseTime
(
planDetail
.
date
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/p
>
<p
class=
"employee"
>
活动日期:
 
{{
parseTime
(
planDetail
.
date
,
'{y
}
-{m
}
-{d
}
(周{a
}
)
'
)
}}
<
/p
>
<
p
class
=
"employee"
>
归属人:
&
emsp
;
&
emsp
;{{
planDetail
.
employeeName
}}
(
{{
planDetail
.
employeeNo
}}
)
<
/p
>
<
p
class
=
"employee"
>
战区:
&
emsp
;
&
emsp
;
&
emsp
;{{
planDetail
.
orgName
}}
<
/p
>
...
...
src/mobile_views/promotion/promotion.vue
浏览文件 @
8c6fc8af
...
...
@@ -27,7 +27,7 @@
</
template
>
<
template
#
value
>
<span>
{{
item
.
pattern
}}
</span>
<p>
{{
parseTime
(
item
.
date
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/p
>
<p>
{{
parseTime
(
item
.
date
,
'{y
}
-{m
}
-{d
}
(周{a
}
)
'
)
}}
<
/p
>
<
/template
>
<
/van-cell
>
<
/van-cell-group
>
...
...
src/views/promotion/plan/index.vue
浏览文件 @
8c6fc8af
...
...
@@ -190,7 +190,8 @@
:label=
"item.label"
:width=
"item.width"
:formatter=
"formatter"
:fixed=
"item.fixed"
/>
:fixed=
"item.fixed"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"操作"
width=
"150"
fixed=
"right"
>
...
...
@@ -570,67 +571,68 @@ const tableList = ref([])
const
total
=
ref
(
0
)
const
multiple
=
ref
(
true
)
const
columns
=
ref
([
{
label
:
'活动 ID'
,
prop
:
'id'
,
width
:
90
,
// fixed: true
},
{
label
:
'归属人'
,
prop
:
'employeeName'
,
width
:
9
0
,
width
:
15
0
,
fixed
:
true
},
// {
// label: '归属人工号',
// prop: 'employeeNo',
// width: 140
// },
{
label
:
'
归属人工号
'
,
prop
:
'
employeeNo
'
,
width
:
1
4
0
label
:
'
活动状态
'
,
prop
:
'
planStatus
'
,
width
:
1
0
0
},
{
label
:
'
经销商 ID
'
,
prop
:
'
dealerId
'
,
width
:
1
2
0
label
:
'
活动模式
'
,
prop
:
'
pattern
'
,
width
:
1
0
0
},
{
label
:
'
经销商
'
,
prop
:
'd
ealerNam
e'
,
width
:
22
0
label
:
'
活动日期
'
,
prop
:
'd
at
e'
,
width
:
18
0
},
{
label
:
'系统名称'
,
prop
:
'lineName'
,
width
:
1
0
0
width
:
1
5
0
},
{
label
:
'
店铺编码
'
,
prop
:
'
storeCod
e'
,
width
:
1
6
0
label
:
'
战区
'
,
prop
:
'
orgNam
e'
,
width
:
1
5
0
},
{
label
:
'店铺名称'
,
prop
:
'storeName'
,
width
:
20
0
width
:
15
0
},
{
label
:
'
活动日期
'
,
prop
:
'
dat
e'
,
width
:
1
8
0
label
:
'
店铺编码
'
,
prop
:
'
storeCod
e'
,
width
:
1
6
0
},
{
label
:
'
活动状态
'
,
prop
:
'
planStatus
'
,
width
:
10
0
label
:
'
经销商
'
,
prop
:
'
dealerName
'
,
width
:
22
0
},
{
label
:
'
活动模式
'
,
prop
:
'
pattern
'
,
width
:
1
0
0
label
:
'
经销商 ID
'
,
prop
:
'
dealerId
'
,
width
:
1
2
0
},
{
label
:
'省份'
,
prop
:
'province'
,
width
:
1
0
0
width
:
1
3
0
},
{
label
:
'地址'
,
...
...
@@ -657,11 +659,7 @@ const columns = ref([
prop
:
'incidentals'
,
width
:
100
},
{
label
:
'战区'
,
prop
:
'orgName'
,
width
:
150
},
// {
// label: '城市',
// prop: 'city',
...
...
@@ -670,7 +668,7 @@ const columns = ref([
{
label
:
'创建人'
,
prop
:
'createBy'
,
width
:
1
0
0
width
:
1
2
0
},
{
label
:
'最近修改人'
,
...
...
@@ -681,6 +679,12 @@ const columns = ref([
label
:
'最后修改时间'
,
prop
:
'modifyTime'
,
width
:
250
},
{
label
:
'活动 ID'
,
prop
:
'id'
,
width
:
90
,
// fixed: true
}
])
const
getPlanList
=
async
()
=>
{
...
...
@@ -704,11 +708,22 @@ const formatter = (row, col, value) => {
if
(
col
.
property
===
'planStatus'
)
{
return
value
==
0
?
'未执行'
:
'执行'
}
else
if
(
col
.
property
===
'date'
)
{
return
parseTime
(
value
,
'{y}-{m}-{d}'
)
return
parseTime
(
value
,
'{y}-{m}-{d}
(周{a})
'
)
}
else
if
(
col
.
property
===
'modifyTime'
)
{
return
parseTime
(
value
,
'{y}-{m}-{d} {h}:{i}:{s}'
)
}
else
if
(
col
.
property
===
'clockInTime'
||
col
.
property
===
'clockOutTime'
)
{
return
parseTime
(
value
)
}
else
if
(
col
.
property
===
'employeeName'
)
{
// 判断名字小于 4 个字,少于几个就加几个空格
if
(
value
.
length
===
2
)
{
return
value
+
' '
+
'('
+
row
.
employeeNo
+
')'
}
else
if
(
value
.
length
===
3
)
{
return
value
+
' '
+
'('
+
row
.
employeeNo
+
')'
}
else
{
return
value
+
'('
+
row
.
employeeNo
+
')'
}
}
else
if
(
col
.
property
===
'salary'
||
col
.
property
===
'incidentals'
)
{
return
'¥ '
+
value
+
' 元'
}
else
{
return
value
}
...
...
@@ -1236,7 +1251,7 @@ const uploadChangeFile = async (file) => {
}
.
container
.
el-table
:
:
v-deep
(
.
cell
)
{
white-space
:
pre-line
;
/* white-space: pre-line; */
/* 强制显示 2 行,超出的省略号 */
/* overflow: hidden;
text-overflow: ellipsis;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论