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
0160f3f5
Commit
0160f3f5
authored
Jul 27, 2021
by
pengyunqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 添加修改功能
parent
e3df03db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
index.vue
src/pages/Groupmeal/Distrib/index.vue
+17
-13
groupmeal.js
src/service/Groupmeal/groupmeal.js
+1
-1
No files found.
src/pages/Groupmeal/Distrib/index.vue
View file @
0160f3f5
...
@@ -32,13 +32,14 @@
...
@@ -32,13 +32,14 @@
{{
scope
.
row
.
list
.
map
((
item
)
=>
item
.
deliverer_name
).
join
(
","
)
}}
{{
scope
.
row
.
list
.
map
((
item
)
=>
item
.
deliverer_name
).
join
(
","
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"prop"
label=
"操作"
width=
"width
"
>
<el-table-column
prop=
"prop"
label=
"操作"
width=
"width"
align=
"center
"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
type=
"primary"
@
click=
"handleModify(scope.row)"
<el-button
type=
"primary"
@
click=
"handleModify(scope.row)"
>
修改
</el-button
>
修改
</el-button
>
>
<el-button
<el-button
type=
"primary"
type=
"primary"
v-show=
scope.row.url
@
click=
"handleDownload(scope.row.url)"
@
click=
"handleDownload(scope.row.url)"
>
下载配送路线
</el-button
>
下载配送路线
</el-button
>
>
...
@@ -50,7 +51,7 @@
...
@@ -50,7 +51,7 @@
class=
"pagination"
class=
"pagination"
@
current-change=
"handleCurrentChange"
@
current-change=
"handleCurrentChange"
v-model
.
current-page=
"page"
v-model
.
current-page=
"page"
:page-size=
"page
_s
ize"
:page-size=
"page
S
ize"
layout=
"prev, pager, next, jumper, ->,page , total"
layout=
"prev, pager, next, jumper, ->,page , total"
:total=
"total"
:total=
"total"
>
>
...
@@ -140,7 +141,7 @@
...
@@ -140,7 +141,7 @@
clearable
clearable
filterable
filterable
>
>
<
!-- <el-option label="电动车" value="electric"></el-option> --
>
<
el-option
:label=
"item.label"
:value=
"item.value"
v-for=
"item in marketingList"
:key=
"item.value"
></el-option
>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<span
class=
"dioFor"
>
已选:{{ multipleSelection.length }}人
</span>
<span
class=
"dioFor"
>
已选:{{ multipleSelection.length }}人
</span>
...
@@ -245,8 +246,9 @@ export default {
...
@@ -245,8 +246,9 @@ export default {
selectActivity
:
""
,
//活动下拉框
selectActivity
:
""
,
//活动下拉框
total
:
0
,
total
:
0
,
page
:
1
,
page
:
1
,
page
_size
:
3
,
page
Size
:
20
,
isEdit
:
false
,
isEdit
:
false
,
marketingList
:[]
};
};
},
},
created
()
{
created
()
{
...
@@ -278,20 +280,21 @@ export default {
...
@@ -278,20 +280,21 @@ export default {
min_capacity
:
""
,
//最小配送量
min_capacity
:
""
,
//最小配送量
tool_type
:
[],
//配送工具
tool_type
:
[],
//配送工具
}),
}),
//分配配送员弹框
this
.
deliverer
=
[],
this
.
resetDate
()
this
.
multipleSelection
=
[];
this
.
multipleSelection
=
[];
this
.
selectActivity
=
""
;
//活动下拉框
this
.
selectActivity
=
""
;
//活动下拉框
},
},
// 获取主页列表
// 获取主页列表
async
getList
()
{
async
getList
()
{
const
{
page
,
pageSize
}
=
this
const
params
=
{
page
,
pageSize
}
try
{
try
{
const
res
=
await
getList
();
const
res
=
await
getList
(
params
);
this
.
distribList
=
res
.
response
.
list
;
this
.
distribList
=
res
.
response
.
list
;
// console.log(res)
this
.
total
=
res
.
response
.
total
;
// this.distribList=[
// ]
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
}
}
...
@@ -326,6 +329,7 @@ export default {
...
@@ -326,6 +329,7 @@ export default {
// 添加的取消
// 添加的取消
addCancel
(){
addCancel
(){
this
.
dialogFormAdd
=
false
this
.
dialogFormAdd
=
false
this
.
getList
()
this
.
resetDate
()
this
.
resetDate
()
},
},
// 分配配送员
// 分配配送员
...
@@ -360,7 +364,7 @@ export default {
...
@@ -360,7 +364,7 @@ export default {
},
},
// 下载路线
// 下载路线
handleDownload
(
url
)
{
handleDownload
(
url
)
{
url
&&
window
.
open
(
url
)
url
&&
window
.
open
(
"http://bp-dev.ini.yidian-inc.com"
+
url
)
console
.
log
(
url
)
console
.
log
(
url
)
},
},
// 分配保存
// 分配保存
...
...
src/service/Groupmeal/groupmeal.js
View file @
0160f3f5
...
@@ -2,7 +2,7 @@ import axios from "@/utils/request";
...
@@ -2,7 +2,7 @@ import axios from "@/utils/request";
// 获取主页配送员列表
// 获取主页配送员列表
export
async
function
getList
(
params
)
{
export
async
function
getList
(
params
)
{
const
res
=
await
axios
.
post
(
"/api/v1/order/deliverer/list_day_deliverer_conf"
,
{
params
}
);
const
res
=
await
axios
.
post
(
"/api/v1/order/deliverer/list_day_deliverer_conf"
,
params
);
return
res
;
return
res
;
}
}
// 获取分配配送员列表
// 获取分配配送员列表
...
...
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