Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b028b8e9
authored
Aug 15, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单
1 parent
3ace2c08
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
2 deletions
vue3-lw-pc/src/api/customer/index.js
vue3-lw-pc/src/api/salesCenter/orderInfo.js
vue3-lw-pc/src/views/customerManage/customer/detail.vue
vue3-lw-pc/src/views/customerManage/customer/infoTab.vue
vue3-lw-pc/src/views/salesCenter/orderInfo/index.vue
vue3-lw-pc/src/api/customer/index.js
View file @
b028b8e
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
let
getway
=
window
.
lwConfig
.
services
.
wecom
let
getway
=
window
.
lwConfig
.
services
.
wecom
const
service
=
getway
+
'/customer'
const
service
=
getway
+
'/customer'
const
order
=
getway
+
'/weSubstitute/customer/order'
/**
/**
* 客户列表
* 客户列表
...
@@ -280,3 +281,26 @@ export function findCustomerAddWay(params) {
...
@@ -280,3 +281,26 @@ export function findCustomerAddWay(params) {
params
,
params
,
})
})
}
}
// 订单 - 订单状态
export
function
orderStatus
(
params
)
{
return
request
({
url
:
getway
+
'/substitute/customer/order/property/order/status'
,
params
,
})
}
// 订单 - 订单列表
export
function
orderList
(
params
)
{
return
request
({
url
:
order
,
params
,
})
}
// 订单 - 详情
export
function
orderDetail
(
id
)
{
return
request
({
url
:
order
+
'/'
+
id
,
})
}
vue3-lw-pc/src/api/salesCenter/orderInfo.js
View file @
b028b8e
...
@@ -61,6 +61,14 @@ export function remove(id) {
...
@@ -61,6 +61,14 @@ export function remove(id) {
})
})
}
}
export
function
fnRemove
(
ids
)
{
return
request
({
url
:
groundBase
+
'/property'
,
method
:
'delete'
,
params
:
{
ids
},
})
}
// 列表新增
// 列表新增
export
function
add
(
data
)
{
export
function
add
(
data
)
{
return
request
({
return
request
({
...
...
vue3-lw-pc/src/views/customerManage/customer/detail.vue
0 → 100644
View file @
b028b8e
<
template
>
<div>
<el-dialog
title=
"订单详情"
v-model=
"dialogVisible"
width=
"30%"
v-if=
"dialogVisible"
:before-close=
"handleClose"
>
<div
class=
"g-card"
>
<div
class=
"title"
>
订单信息
</div>
</div>
<div
class=
"g-card"
>
<div
class=
"title"
>
商品信息
</div>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
orderDetail
}
from
'@/api/customer'
export
default
{
data
()
{
return
{
dialogVisible
:
false
,
ruleForm
:
{},
}
},
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
,
},
id
:
{
type
:
String
,
default
:
''
,
},
},
watch
:
{
visible
:
{
handler
(
val
)
{
this
.
dialogVisible
=
val
if
(
!
val
)
{
this
.
ruleForm
=
{}
}
else
{
this
.
orderDetail
(
this
.
id
)
}
},
},
},
methods
:
{
// 点击×按钮
handleClose
()
{
this
.
$emit
(
'close'
,
false
)
},
orderDetail
(
id
)
{
orderDetail
(
id
).
then
((
res
)
=>
{
console
.
log
(
res
)
})
},
},
}
</
script
>
<
style
></
style
>
vue3-lw-pc/src/views/customerManage/customer/infoTab.vue
View file @
b028b8e
This diff is collapsed.
Click to expand it.
vue3-lw-pc/src/views/salesCenter/orderInfo/index.vue
View file @
b028b8e
...
@@ -159,6 +159,7 @@ import {
...
@@ -159,6 +159,7 @@ import {
getList
,
getList
,
remove
,
remove
,
listMove
,
listMove
,
fnRemove
,
getCodeCategoryList
,
getCodeCategoryList
,
addCodeCategory
,
addCodeCategory
,
updateCodeCategory
,
updateCodeCategory
,
...
@@ -322,14 +323,18 @@ export default {
...
@@ -322,14 +323,18 @@ export default {
this
.
msgInfo
(
'请选择要删除项!'
)
this
.
msgInfo
(
'请选择要删除项!'
)
return
return
}
}
const
ids
=
id
||
this
.
ids
.
join
(
','
)
const
ids
=
this
.
ids
.
join
(
','
)
this
.
$confirm
(
'是否确认删除?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认删除?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
,
})
})
.
then
(()
=>
{
.
then
(()
=>
{
return
remove
(
ids
)
if
(
id
)
{
return
remove
(
id
)
}
else
{
return
fnRemove
(
ids
)
}
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
msgSuccess
(
'删除成功'
)
this
.
msgSuccess
(
'删除成功'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment