Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
5a695695
提交
5a695695
authored
10月 28, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(promotion/display_schedule/): 新增:AP 计划上报_增加搜索功能
上级
c60735d9
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
148 行增加
和
13 行删除
+148
-13
index.vue
src/views/promotion/components/CommonPlan/index.vue
+5
-3
index.vue
src/views/promotion/components/SearchList/index.vue
+64
-0
display.vue
src/views/promotion/display_schedule/tabs/display.vue
+22
-4
schedule.vue
src/views/promotion/display_schedule/tabs/schedule.vue
+19
-2
schedule_dis.vue
src/views/promotion/display_schedule/tabs/schedule_dis.vue
+19
-2
snack.vue
src/views/promotion/display_schedule/tabs/snack.vue
+19
-2
没有找到文件。
src/views/promotion/components/CommonPlan/index.vue
浏览文件 @
5a695695
...
@@ -117,7 +117,7 @@ const props = defineProps({
...
@@ -117,7 +117,7 @@ const props = defineProps({
})
})
}
}
})
})
const
emit
=
defineEmits
([
'updateColumns'
,
'getTableList'
])
const
emit
=
defineEmits
([
'updateColumns'
,
'getTableList'
,
'updateShowSearch'
])
// 右上角工具
// 右上角工具
const
showSearch
=
ref
(
true
)
const
showSearch
=
ref
(
true
)
...
@@ -143,6 +143,10 @@ const getTableList = () => {
...
@@ -143,6 +143,10 @@ const getTableList = () => {
emit
(
'getTableList'
)
emit
(
'getTableList'
)
}
}
watch
(
showSearch
,
(
newVal
)
=>
{
emit
(
'updateShowSearch'
,
newVal
)
})
</
script
>
</
script
>
<
style
scoped
<
style
scoped
...
@@ -208,8 +212,6 @@ const getTableList = () => {
...
@@ -208,8 +212,6 @@ const getTableList = () => {
}
}
}
}
::v-deep
(
.column-style
)
{
::v-deep
(
.column-style
)
{
.cell
{
.cell
{
...
...
src/views/promotion/components/SearchList/index.vue
0 → 100644
浏览文件 @
5a695695
<
template
>
<div
class=
"search"
v-show=
"showSearch"
>
<el-form
:inline=
"true"
:model=
"queryParams"
class=
"demo-form-inline"
>
<el-form-item
label=
"计划月份"
>
<el-date-picker
v-model=
"queryParams.salesMonth"
type=
"month"
placeholder=
"选择计划月份"
@
change=
"handleChange"
clearable
/>
</el-form-item>
<el-form-item
label=
"大区/战区"
>
<el-input
v-model=
"queryParams.deptName"
placeholder=
"请输入大区/战区"
@
input=
"handleChange"
clearable
/>
</el-form-item>
<el-form-item
label=
"经销商编码/名称"
>
<el-input
v-model=
"queryParams.dealerCN"
placeholder=
"请输入经销商编码/名称"
@
input=
"handleChange"
clearable
/>
</el-form-item>
<el-form-item
label=
"系统名称"
>
<el-input
v-model=
"queryParams.lineNameLike"
placeholder=
"请输入系统名称"
@
input=
"handleChange"
clearable
/>
</el-form-item>
<el-form-item
label=
"门店编码/名称"
>
<el-input
v-model=
"queryParams.storeCN"
placeholder=
"请输入门店编码/名称"
@
input=
"handleChange"
clearable
/>
</el-form-item>
</el-form>
</div>
</
template
>
<
script
setup
>
const
props
=
defineProps
({
showSearch
:
{
type
:
Boolean
,
default
:
true
}
})
const
queryParams
=
reactive
({
salesMonth
:
''
,
deptName
:
''
,
dealerCN
:
''
,
lineNameLike
:
''
,
storeCN
:
''
})
const
emits
=
defineEmits
([
'change'
])
const
handleChange
=
()
=>
{
emits
(
'change'
,
queryParams
)
}
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
\ No newline at end of file
src/views/promotion/display_schedule/tabs/display.vue
浏览文件 @
5a695695
<
template
>
<
template
>
<!-- 常规陈列 -->
<!-- 常规陈列 -->
<SearchList
:showSearch=
"showSearch"
@
change=
"searchChange"
/>
<CommonPlan
:tableData=
"tableData"
<CommonPlan
:tableData=
"tableData"
:isLoading=
"isLoading"
:isLoading=
"isLoading"
:total=
"total"
:total=
"total"
...
@@ -8,12 +10,14 @@
...
@@ -8,12 +10,14 @@
:visibleProps=
"visibleProps"
:visibleProps=
"visibleProps"
:params=
"params"
:params=
"params"
@
updateColumns=
"updateColumns"
@
updateColumns=
"updateColumns"
@
getTableList=
"getTableList"
/>
@
getTableList=
"getTableList"
@
updateShowSearch=
"updateShowSearch"
/>
</
template
>
</
template
>
<
script
setup
<
script
setup
lang=
"jsx"
>
lang=
"jsx"
>
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
SearchList
from
'@/views/promotion/components/SearchList'
import
{
getDisplayList
,
submitDisplayPlan
}
from
'@/api'
import
{
getDisplayList
,
submitDisplayPlan
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
onMounted
}
from
'vue'
;
import
{
onMounted
}
from
'vue'
;
...
@@ -557,7 +561,7 @@
...
@@ -557,7 +561,7 @@
{
{
label
:
"计划主题地堆-是否"
,
label
:
"计划主题地堆-是否"
,
prop
:
"plannedThemedFloorStack"
,
prop
:
"plannedThemedFloorStack"
,
visible
:
fals
e
,
visible
:
tru
e
,
type
:
'string'
,
type
:
'string'
,
fill
:
true
,
fill
:
true
,
width
:
140
width
:
140
...
@@ -980,7 +984,7 @@
...
@@ -980,7 +984,7 @@
// 表格数据
// 表格数据
const
tableData
=
ref
([])
const
tableData
=
ref
([])
const
isLoading
=
ref
(
true
)
const
isLoading
=
ref
(
true
)
cons
t
params
=
reactive
({
le
t
params
=
reactive
({
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
20
,
pageSize
:
20
,
})
})
...
@@ -1001,7 +1005,7 @@
...
@@ -1001,7 +1005,7 @@
item
.
closingDate
=
parseTime
(
item
.
closingDate
,
'{y}-{m}-{d}'
)
item
.
closingDate
=
parseTime
(
item
.
closingDate
,
'{y}-{m}-{d}'
)
// 修改时间
// 修改时间
item
.
updateTime
=
parseTime
(
item
.
updateTime
,
'{y}-{m}-{d} {h}:{i}:{s}'
)
item
.
updateTime
=
parseTime
(
item
.
updateTime
,
'{y}-{m}-{d} {h}:{i}:{s}'
)
// 动态新增列:门店名称+门店编码+经销山名称(填报模式下,合并到一起)
// 动态新增列:门店名称+门店编码+经销山名称(填报模式下,合并到一起)
item
.
storeNameCodeDealerName
=
item
.
storeName
+
'
\
n('
+
item
.
storeCode
+
')'
+
'
\
n('
+
item
.
dealerName
+
')'
item
.
storeNameCodeDealerName
=
item
.
storeName
+
'
\
n('
+
item
.
storeCode
+
')'
+
'
\
n('
+
item
.
dealerName
+
')'
})
})
...
@@ -1010,6 +1014,20 @@
...
@@ -1010,6 +1014,20 @@
isLoading
.
value
=
false
isLoading
.
value
=
false
}
}
getTableList
()
getTableList
()
const
showSearch
=
ref
(
true
)
const
updateShowSearch
=
(
newVal
)
=>
{
showSearch
.
value
=
newVal
}
const
searchChange
=
(
newVal
)
=>
{
// 计划月份
if
(
newVal
.
salesMonth
)
{
newVal
.
salesMonth
=
parseTime
(
newVal
.
salesMonth
,
'{y}-{m}-{d}'
)
}
params
=
{
...
params
,
...
newVal
}
getTableList
()
}
</
script
>
</
script
>
<
style
scoped
<
style
scoped
...
...
src/views/promotion/display_schedule/tabs/schedule.vue
浏览文件 @
5a695695
<
template
>
<
template
>
<!-- 档期计划 -->
<!-- 档期计划 -->
<SearchList
:showSearch=
"showSearch"
@
change=
"searchChange"
/>
<CommonPlan
:tableData=
"tableData"
<CommonPlan
:tableData=
"tableData"
:isLoading=
"isLoading"
:isLoading=
"isLoading"
:total=
"total"
:total=
"total"
...
@@ -8,12 +9,14 @@
...
@@ -8,12 +9,14 @@
:visibleProps=
"visibleProps"
:visibleProps=
"visibleProps"
:params=
"params"
:params=
"params"
@
updateColumns=
"updateColumns"
@
updateColumns=
"updateColumns"
@
getTableList=
"getTableList"
/>
@
getTableList=
"getTableList"
@
updateShowSearch=
"updateShowSearch"
/>
</
template
>
</
template
>
<
script
setup
<
script
setup
lang=
"jsx"
>
lang=
"jsx"
>
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
SearchList
from
'@/views/promotion/components/SearchList'
import
{
getDisplayScheduleList
,
submitDisplaySchedulePlan
}
from
'@/api'
import
{
getDisplayScheduleList
,
submitDisplaySchedulePlan
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
...
@@ -1071,7 +1074,7 @@
...
@@ -1071,7 +1074,7 @@
// 表格数据
// 表格数据
const
tableData
=
ref
([])
const
tableData
=
ref
([])
const
isLoading
=
ref
(
true
)
const
isLoading
=
ref
(
true
)
cons
t
params
=
reactive
({
le
t
params
=
reactive
({
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
20
,
pageSize
:
20
,
})
})
...
@@ -1130,6 +1133,20 @@
...
@@ -1130,6 +1133,20 @@
// 当内容宽度大于元素宽度时,表示内容溢出
// 当内容宽度大于元素宽度时,表示内容溢出
return
width
>
col
.
width
;
return
width
>
col
.
width
;
};
};
const
showSearch
=
ref
(
true
)
const
updateShowSearch
=
(
newVal
)
=>
{
showSearch
.
value
=
newVal
}
const
searchChange
=
(
newVal
)
=>
{
// 计划月份
if
(
newVal
.
salesMonth
)
{
newVal
.
salesMonth
=
parseTime
(
newVal
.
salesMonth
,
'{y}-{m}-{d}'
)
}
params
=
{
...
params
,
...
newVal
}
getTableList
()
}
</
script
>
</
script
>
<
style
scoped
<
style
scoped
...
...
src/views/promotion/display_schedule/tabs/schedule_dis.vue
浏览文件 @
5a695695
<
template
>
<
template
>
<!-- 档期陈列 -->
<!-- 档期陈列 -->
<SearchList
:showSearch=
"showSearch"
@
change=
"searchChange"
/>
<CommonPlan
:tableData=
"tableData"
<CommonPlan
:tableData=
"tableData"
:isLoading=
"isLoading"
:isLoading=
"isLoading"
:total=
"total"
:total=
"total"
...
@@ -8,12 +9,14 @@
...
@@ -8,12 +9,14 @@
:visibleProps=
"visibleProps"
:visibleProps=
"visibleProps"
:params=
"params"
:params=
"params"
@
updateColumns=
"updateColumns"
@
updateColumns=
"updateColumns"
@
getTableList=
"getTableList"
/>
@
getTableList=
"getTableList"
@
updateShowSearch=
"updateShowSearch"
/>
</
template
>
</
template
>
<
script
setup
<
script
setup
lang=
"jsx"
>
lang=
"jsx"
>
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
SearchList
from
'@/views/promotion/components/SearchList'
import
{
getDisplayScheduleDetail
,
submitDisplayScheduleDetail
}
from
'@/api'
import
{
getDisplayScheduleDetail
,
submitDisplayScheduleDetail
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
onMounted
}
from
'vue'
;
import
{
onMounted
}
from
'vue'
;
...
@@ -775,7 +778,7 @@
...
@@ -775,7 +778,7 @@
// 表格数据
// 表格数据
const
tableData
=
ref
([])
const
tableData
=
ref
([])
const
isLoading
=
ref
(
true
)
const
isLoading
=
ref
(
true
)
cons
t
params
=
reactive
({
le
t
params
=
reactive
({
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
20
,
pageSize
:
20
,
})
})
...
@@ -814,6 +817,20 @@
...
@@ -814,6 +817,20 @@
isLoading
.
value
=
false
isLoading
.
value
=
false
}
}
getTableList
()
getTableList
()
const
showSearch
=
ref
(
true
)
const
updateShowSearch
=
(
newVal
)
=>
{
showSearch
.
value
=
newVal
}
const
searchChange
=
(
newVal
)
=>
{
// 计划月份
if
(
newVal
.
salesMonth
)
{
newVal
.
salesMonth
=
parseTime
(
newVal
.
salesMonth
,
'{y}-{m}-{d}'
)
}
params
=
{
...
params
,
...
newVal
}
getTableList
()
}
</
script
>
</
script
>
<
style
scoped
<
style
scoped
...
...
src/views/promotion/display_schedule/tabs/snack.vue
浏览文件 @
5a695695
<
template
>
<
template
>
<!-- 零食陈列 -->
<!-- 零食陈列 -->
<SearchList
:showSearch=
"showSearch"
@
change=
"searchChange"
/>
<CommonPlan
:tableData=
"tableData"
<CommonPlan
:tableData=
"tableData"
:isLoading=
"isLoading"
:isLoading=
"isLoading"
:total=
"total"
:total=
"total"
...
@@ -8,12 +9,14 @@
...
@@ -8,12 +9,14 @@
:visibleProps=
"visibleProps"
:visibleProps=
"visibleProps"
:params=
"params"
:params=
"params"
@
updateColumns=
"updateColumns"
@
updateColumns=
"updateColumns"
@
getTableList=
"getTableList"
/>
@
getTableList=
"getTableList"
@
updateShowSearch=
"updateShowSearch"
/>
</
template
>
</
template
>
<
script
setup
<
script
setup
lang=
"jsx"
>
lang=
"jsx"
>
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
CommonPlan
from
'@/views/promotion/components/CommonPlan'
import
SearchList
from
'@/views/promotion/components/SearchList'
import
{
getSnackPlanList
,
submitSnackPlan
}
from
'@/api'
import
{
getSnackPlanList
,
submitSnackPlan
}
from
'@/api'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
onMounted
}
from
'vue'
;
import
{
onMounted
}
from
'vue'
;
...
@@ -548,7 +551,7 @@
...
@@ -548,7 +551,7 @@
// 表格数据
// 表格数据
const
tableData
=
ref
([])
const
tableData
=
ref
([])
const
isLoading
=
ref
(
true
)
const
isLoading
=
ref
(
true
)
cons
t
params
=
reactive
({
le
t
params
=
reactive
({
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
20
,
pageSize
:
20
,
})
})
...
@@ -597,6 +600,20 @@
...
@@ -597,6 +600,20 @@
// 当内容宽度大于元素宽度时,表示内容溢出
// 当内容宽度大于元素宽度时,表示内容溢出
return
width
>
col
.
width
;
return
width
>
col
.
width
;
};
};
const
showSearch
=
ref
(
true
)
const
updateShowSearch
=
(
newVal
)
=>
{
showSearch
.
value
=
newVal
}
const
searchChange
=
(
newVal
)
=>
{
// 计划月份
if
(
newVal
.
salesMonth
)
{
newVal
.
salesMonth
=
parseTime
(
newVal
.
salesMonth
,
'{y}-{m}-{d}'
)
}
params
=
{
...
params
,
...
newVal
}
getTableList
()
}
</
script
>
</
script
>
<
style
scoped
<
style
scoped
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论