Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
adee0d54
Commit
adee0d54
authored
Sep 24, 2021
by
gengshaojing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 自提点管理
parent
7b7d987c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
spellOrderSet.vue
...pages/Activity/releaseProduc/components/spellOrderSet.vue
+19
-11
No files found.
src/pages/Activity/releaseProduc/components/spellOrderSet.vue
View file @
adee0d54
...
@@ -23,8 +23,13 @@
...
@@ -23,8 +23,13 @@
></el-date-picker>
></el-date-picker>
</div>
</div>
<!-- 自提点列表 -->
<!-- 自提点列表 -->
<div
style=
"display: flex; align-items: center; justify-content: space-between"
>
<div>
<search
@
getData=
"getPlaceList"
></search>
</div>
<el-button
type=
"primary"
@
click=
"$router.push('/op/groupmeal/point')"
>
自提点管理
</el-button>
</div>
<search
@
getData=
"getPlaceList"
></search>
<div
<div
class=
"card-wrapper"
class=
"card-wrapper"
v-loading=
"pageLoading"
v-loading=
"pageLoading"
...
@@ -206,6 +211,7 @@
...
@@ -206,6 +211,7 @@
}
,
// 添加自提点 详细信息
}
,
// 添加自提点 详细信息
isPc
:
document
.
documentElement
.
clientWidth
>
600
,
isPc
:
document
.
documentElement
.
clientWidth
>
600
,
searchParams
:
{
}
,
searchParams
:
{
}
,
stagSpellOrderSetArr
:
[],
}
;
}
;
}
,
}
,
computed
:
{
computed
:
{
...
@@ -242,18 +248,16 @@
...
@@ -242,18 +248,16 @@
spellOrderSetArr
:
{
spellOrderSetArr
:
{
// 监听props属性 展示自提点列表(APi默认勾选的)
// 监听props属性 展示自提点列表(APi默认勾选的)
handler
:
async
function
(
newList
)
{
handler
:
async
function
(
newList
)
{
this
.
checkedTakePlacelist
=
this
.
setTableListData
(
// this.stagSpellOrderSetArr = this.setTableListData(newList);
// 选中的自提点列表
this
.
checkedTakePlacelist
=
this
.
setTableListData
(
newList
);
newList
,
);
if
(
this
.
$route
.
query
.
marketing_id
)
{
if
(
this
.
$route
.
query
.
marketing_id
)
{
await
this
.
getPlaceList
();
await
this
.
getPlaceList
();
// 时间赋值
// 时间赋值
this
.
startDate
=
this
.
startTime
;
this
.
startDate
=
this
.
startTime
;
this
.
endDate
=
this
.
endTime
;
this
.
endDate
=
this
.
endTime
;
this
.
checkedTakePlacelist
=
this
.
setTableListData
(
this
.
spellOrderSetArr
);
//
this.checkedTakePlacelist = this.setTableListData(this.spellOrderSetArr);
// 选中的自提点列表
// 选中的自提点列表
this
.
mergeCheckedList
(
this
.
checkedTakePlacelist
);
//
this.mergeCheckedList(this.checkedTakePlacelist);
this
.
signal
=
true
;
this
.
signal
=
true
;
}
}
}
,
}
,
...
@@ -275,9 +279,12 @@
...
@@ -275,9 +279,12 @@
this
.
pageLoading
=
false
;
this
.
pageLoading
=
false
;
this
.
takePlacelist
=
this
.
setTableListData
(
data
.
result
.
list
);
this
.
takePlacelist
=
this
.
setTableListData
(
data
.
result
.
list
);
this
.
pageCount
=
data
.
result
.
total
;
this
.
pageCount
=
data
.
result
.
total
;
if
(
this
.
signal
===
true
)
{
// if (this.signal === true)
{
this
.
mergeCheckedList
(
this
.
currentCheckedTakePlacelist
);
// this.mergeCheckedList();
}
//
}
console
.
log
(
"this.stagSpellOrderSetArrthis.checkedTakePlacelist"
,
this
.
checkedTakePlacelist
);
this
.
mergeCheckedList
();
}
catch
{
}
catch
{
this
.
pageLoading
=
false
;
this
.
pageLoading
=
false
;
ElMessage
.
error
(
"加载失败"
);
ElMessage
.
error
(
"加载失败"
);
...
@@ -336,7 +343,8 @@
...
@@ -336,7 +343,8 @@
/* 自提点勾选的合并
/* 自提点勾选的合并
@current 当前勾选
@current 当前勾选
*/
*/
mergeCheckedList
(
current
)
{
mergeCheckedList
()
{
const
current
=
this
.
currentCheckedTakePlacelist
.
concat
(
this
.
checkedTakePlacelist
);
let
currentIdList
=
current
.
map
((
item
)
=>
{
let
currentIdList
=
current
.
map
((
item
)
=>
{
return
item
.
id
;
return
item
.
id
;
}
);
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment