Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
43f89069
提交
43f89069
authored
10月 10, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(promotion): 修改:Ap 执行上报_新增操作提示列在填报模式中_并且修改零食陈列调用接口
上级
d208081c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
98 行增加
和
5 行删除
+98
-5
index.vue
src/views/promotion/components/CommonPlan/index.vue
+22
-3
display.vue
src/views/promotion/display_schedule/tabs/display.vue
+18
-0
schedule.vue
src/views/promotion/display_schedule/tabs/schedule.vue
+18
-0
schedule_dis.vue
src/views/promotion/display_schedule/tabs/schedule_dis.vue
+18
-0
snack.vue
src/views/promotion/display_schedule/tabs/snack.vue
+22
-2
没有找到文件。
src/views/promotion/components/CommonPlan/index.vue
浏览文件 @
43f89069
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
:label=
"col.label"
:label=
"col.label"
:key=
"col.prop"
:key=
"col.prop"
align=
"center"
align=
"center"
:show-overflow-tooltip=
"col.type === 'string'"
class-name=
"column-style"
class-name=
"column-style"
:width=
"col.width"
:width=
"col.width"
:fixed=
"operation === '填报模式' && col.fixed"
>
:fixed=
"operation === '填报模式' && col.fixed"
>
...
@@ -72,9 +71,10 @@
...
@@ -72,9 +71,10 @@
</template>
</template>
<
script
setup
>
<
script
setup
>
import
{
h
}
from
'vue'
/*************** 操作类型 ***************/
/*************** 操作类型 ***************/
const
operation
=
ref
(
'平铺模式'
);
//
const operation = ref('平铺模式');
//
const operation = ref('填报模式');
const
operation
=
ref
(
'填报模式'
);
const
tableRef
=
ref
(
null
)
const
tableRef
=
ref
(
null
)
const
props
=
defineProps
({
const
props
=
defineProps
({
...
@@ -261,4 +261,22 @@ const getTableList = () => {
...
@@ -261,4 +261,22 @@ const getTableList = () => {
margin
:
0
;
margin
:
0
;
}
}
}
}
/* 操作提示列 */
.operation_tip_cell
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-start
;
p
{
width
:
100%
;
margin
:
0
;
}
p
:first-child
{
background-color
:
#e1e2e6
;
border-bottom
:
1px
solid
#ebeef5
;
}
p
:last-child
{
padding
:
15px
0
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/promotion/display_schedule/tabs/display.vue
浏览文件 @
43f89069
...
@@ -25,6 +25,24 @@
...
@@ -25,6 +25,24 @@
{
{
label
:
"基础信息"
,
// 类型标题
label
:
"基础信息"
,
// 类型标题
children
:
[
children
:
[
{
label
:
'操作提示'
,
prop
:
'operationTip'
,
// 列属性
visible
:
true
,
// 是否显示
type
:
'string'
,
// 列类型
fill
:
true
,
// 是否为填报列
fixed
:
'left'
,
// 是否固定在左侧
width
:
100
,
onlyFill
:
true
,
// 只在填报列显示
render
:
(
_
,
row
,
col
)
=>
{
return
(
<
div
class
=
"operation_tip_cell"
>
<
p
>
计划
<
/p
>
<
p
>
实际
<
/p
>
<
/div
>
)
}
},
{
{
label
:
'计划月份'
,
// 列标题
label
:
'计划月份'
,
// 列标题
prop
:
'salesMonth'
,
// 列属性
prop
:
'salesMonth'
,
// 列属性
...
...
src/views/promotion/display_schedule/tabs/schedule.vue
浏览文件 @
43f89069
...
@@ -28,6 +28,24 @@
...
@@ -28,6 +28,24 @@
{
{
label
:
"基础信息"
,
label
:
"基础信息"
,
children
:
[
children
:
[
{
label
:
'操作提示'
,
prop
:
'operationTip'
,
// 列属性
visible
:
true
,
// 是否显示
type
:
'string'
,
// 列类型
fill
:
true
,
// 是否为填报列
fixed
:
'left'
,
// 是否固定在左侧
width
:
100
,
onlyFill
:
true
,
// 只在填报列显示
render
:
(
_
,
row
,
col
)
=>
{
return
(
<
div
class
=
"operation_tip_cell"
>
<
p
>
计划
<
/p
>
<
p
>
实际
<
/p
>
<
/div
>
)
}
},
{
{
label
:
'计划月份'
,
label
:
'计划月份'
,
prop
:
'salesMonth'
,
prop
:
'salesMonth'
,
...
...
src/views/promotion/display_schedule/tabs/schedule_dis.vue
浏览文件 @
43f89069
...
@@ -25,6 +25,24 @@
...
@@ -25,6 +25,24 @@
{
{
label
:
"基础信息"
,
// 类型标题
label
:
"基础信息"
,
// 类型标题
children
:
[
children
:
[
{
label
:
'操作提示'
,
prop
:
'operationTip'
,
// 列属性
visible
:
true
,
// 是否显示
type
:
'string'
,
// 列类型
fill
:
true
,
// 是否为填报列
fixed
:
'left'
,
// 是否固定在左侧
width
:
100
,
onlyFill
:
true
,
// 只在填报列显示
render
:
(
_
,
row
,
col
)
=>
{
return
(
<
div
class
=
"operation_tip_cell"
>
<
p
>
计划
<
/p
>
<
p
>
实际
<
/p
>
<
/div
>
)
}
},
{
{
"label"
:
"销售大区"
,
"label"
:
"销售大区"
,
"prop"
:
"regionName"
,
"prop"
:
"regionName"
,
...
...
src/views/promotion/display_schedule/tabs/snack.vue
浏览文件 @
43f89069
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<
script
setup
<
script
setup
lang=
"jsx"
>
lang=
"jsx"
>
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
{
getSnackPlanList
,
submit
Display
Plan
}
from
'@/api'
import
{
getSnackPlanList
,
submit
Snack
Plan
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
onMounted
}
from
'vue'
;
import
{
onMounted
}
from
'vue'
;
...
@@ -24,6 +24,24 @@
...
@@ -24,6 +24,24 @@
{
{
label
:
"基础信息"
,
label
:
"基础信息"
,
children
:
[
children
:
[
{
label
:
'操作提示'
,
prop
:
'operationTip'
,
// 列属性
visible
:
true
,
// 是否显示
type
:
'string'
,
// 列类型
fill
:
true
,
// 是否为填报列
fixed
:
'left'
,
// 是否固定在左侧
width
:
100
,
onlyFill
:
true
,
// 只在填报列显示
render
:
(
_
,
row
,
col
)
=>
{
return
(
<
div
class
=
"operation_tip_cell"
>
<
p
>
计划
<
/p
>
<
p
>
实际
<
/p
>
<
/div
>
)
}
},
{
{
"label"
:
"销售大区"
,
"label"
:
"销售大区"
,
"prop"
:
"regionName"
,
"prop"
:
"regionName"
,
...
@@ -222,6 +240,7 @@
...
@@ -222,6 +240,7 @@
"prop"
:
"actualDisplay"
,
"prop"
:
"actualDisplay"
,
"visible"
:
true
,
"visible"
:
true
,
"type"
:
"select"
,
"type"
:
"select"
,
referenceKey
:
"plannedDisplay"
,
"fill"
:
true
,
"fill"
:
true
,
"width"
:
130
,
"width"
:
130
,
"options"
:
[
"options"
:
[
...
@@ -288,6 +307,7 @@
...
@@ -288,6 +307,7 @@
"prop"
:
"actualEndCapQty"
,
"prop"
:
"actualEndCapQty"
,
"visible"
:
true
,
"visible"
:
true
,
"type"
:
"select"
,
"type"
:
"select"
,
referenceKey
:
"plannedEndCapQty"
,
"fill"
:
true
,
"fill"
:
true
,
"options"
:
[
"options"
:
[
{
{
...
@@ -447,7 +467,7 @@
...
@@ -447,7 +467,7 @@
}
}
}
}
await
submit
Display
Plan
({
await
submit
Snack
Plan
({
id
:
row
.
sasdId
,
id
:
row
.
sasdId
,
[
col
.
prop
]:
row
[
col
.
prop
],
// 当前修改列的值
[
col
.
prop
]:
row
[
col
.
prop
],
// 当前修改列的值
...
col
.
requestKey
.
reduce
((
acc
,
key
)
=>
({
...
acc
,
[
key
]:
row
[
key
]
}),
{}),
// 额外携带影响的列字段值
...
col
.
requestKey
.
reduce
((
acc
,
key
)
=>
({
...
acc
,
[
key
]:
row
[
key
]
}),
{}),
// 额外携带影响的列字段值
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论