Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
83e780da
authored
Aug 22, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表:列表重构: 完善订单发货、修改地址、订单调价、订单备注
parent
be143ea2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
src/views/mall/trade/order/components/DeliveryOrderForm.vue
+1
-0
src/views/mall/trade/order/index.vue
+2
-9
No files found.
src/views/mall/trade/order/components/DeliveryOrderForm.vue
View file @
83e780da
...
@@ -66,6 +66,7 @@ const submitForm = async () => {
...
@@ -66,6 +66,7 @@ const submitForm = async () => {
const
data
=
unref
(
formData
)
const
data
=
unref
(
formData
)
if
(
radio
.
value
===
'2'
)
{
if
(
radio
.
value
===
'2'
)
{
data
.
logisticsId
=
0
data
.
logisticsId
=
0
data
.
logisticsNo
=
''
}
}
await
TradeOrderApi
.
delivery
(
data
)
await
TradeOrderApi
.
delivery
(
data
)
message
.
success
(
t
(
'common.updateSuccess'
))
message
.
success
(
t
(
'common.updateSuccess'
))
...
...
src/views/mall/trade/order/index.vue
View file @
83e780da
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"配送方式"
width=
"120"
>
<el-table-column
align=
"center"
label=
"配送方式"
width=
"120"
>
<
template
#
default
>
<
template
#
default
>
<
span>
{{
scope
.
row
.
deliveryType
||
'快递'
}}
</span
>
<
dict-tag
:type=
"DICT_TYPE.DELIVERY_TYPE"
:value=
"scope.row.deliveryType"
/
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"160"
>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"160"
>
...
@@ -189,10 +189,6 @@
...
@@ -189,10 +189,6 @@
<Icon
icon=
"ep:chat-line-square"
/>
<Icon
icon=
"ep:chat-line-square"
/>
订单备注
订单备注
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
command=
"refund"
>
<Icon
icon=
"ep:credit-card"
/>
立即退款
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</
template
>
</
template
>
</el-dropdown>
</el-dropdown>
...
@@ -221,7 +217,7 @@
...
@@ -221,7 +217,7 @@
min-width=
"180"
min-width=
"180"
prop=
"payTime"
prop=
"payTime"
/>
/>
<el-table-column
align=
"center"
label=
"支付类型"
min-width=
"1
0
0"
prop=
"payChannelCode"
>
<el-table-column
align=
"center"
label=
"支付类型"
min-width=
"1
2
0"
prop=
"payChannelCode"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<dict-tag
<dict-tag
v-if=
"row.payChannelCode"
v-if=
"row.payChannelCode"
...
@@ -314,13 +310,10 @@ const spanMethod = ({ rowIndex, columnIndex }: SpanMethodProps) => {
...
@@ -314,13 +310,10 @@ const spanMethod = ({ rowIndex, columnIndex }: SpanMethodProps) => {
}
}
/** 操作分发 */
/** 操作分发 */
const
handleCommand
=
(
command
:
string
,
row
:
OrderVO
)
=>
{
const
handleCommand
=
(
command
:
string
,
row
:
OrderVO
)
=>
{
console
.
log
(
row
)
switch
(
command
)
{
switch
(
command
)
{
case
'orderRemarks'
:
case
'orderRemarks'
:
orderRemarksFormRef
.
value
?.
open
(
row
)
orderRemarksFormRef
.
value
?.
open
(
row
)
break
break
case
'refund'
:
break
case
'delivery'
:
case
'delivery'
:
deliveryOrderFormRef
.
value
?.
open
(
row
.
id
)
deliveryOrderFormRef
.
value
?.
open
(
row
.
id
)
break
break
...
...
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