Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
71842b8f
Commit
71842b8f
authored
Jul 11, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商家端-立即发货修改种
parent
ca282633
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
19 deletions
+23
-19
src/views/businessOrder/details.vue
+19
-18
src/views/businessOrder/index.vue
+4
-1
No files found.
src/views/businessOrder/details.vue
View file @
71842b8f
...
...
@@ -224,7 +224,6 @@
methods
:
{
// 取消订单提交事件
confirmCancelOrderSubmit
(){
console
.
log
(
"+++"
+
this
.
form
.
orderNo
)
cancelOrderMethod
(
{
orderNo
:
this
.
form
.
orderNo
,
refundRemark
:
this
.
refundRemark
,
...
...
@@ -263,23 +262,25 @@
this
.
$axios
.
get
(
"/admin/merchantMallOrder/isVirtualGoods"
,{
params
:{
orderNo
:
this
.
id
},
}).
then
(
response
=>
{
if
(
response
.
data
.
data
){
this
.
form
.
orderNo
=
this
.
id
this
.
dialogVisibleShipsImmediately
=
true
}
else
{
// 虚拟商品 二次确认直接发货
this
.
$confirm
(
'是否确认发货?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
data
=>
{
shipsImmediately
(
this
.
form
).
then
(
r
=>
{
this
.
$message
.
success
(
'发货成功'
)
}).
catch
(
e
=>
{
console
.
log
(
'错误'
,
e
.
message
)
})
})
}
console
.
log
(
"结果返回:"
+
JSON
.
stringify
(
response
))
// if(response.data.data){
// this.form.orderNo=this.id
// this.dialogVisibleShipsImmediately = true
// }else {
// // 虚拟商品 二次确认直接发货
// this.$confirm('是否确认发货?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(data => {
// shipsImmediately(this.form).then(r => {
// this.$message.success('发货成功')
// }).catch(e =>{
// console.log('错误', e.message)
// })
// })
// }
},
error
=>
{
console
.
log
(
'错误'
,
error
.
message
)
})
...
...
src/views/businessOrder/index.vue
View file @
71842b8f
...
...
@@ -192,9 +192,12 @@
// 立即发货-对话框
shipsImmediately
(
row
){
this
.
form
.
orderNo
=
row
.
orderNo
this
.
$axios
.
get
(
"/admin/merchantMallOrder/isVirtualGoods"
,{
this
.
$axios
.
get
(
"/admin/merchantMallOrder/isNeedMailed"
,{
params
:{
orderNo
:
row
.
orderNo
},
}).
then
(
response
=>
{
alert
(
JSON
.
stringify
(
response
.
data
))
if
(
response
.
data
){
console
.
log
(
"需邮寄,填写信息"
)}
else
{
console
.
log
(
"无需邮寄,二次确认即可"
)}
// if(response.data.data){
// this.form.orderNo=row.orderNo
// this.dialogVisibleShipsImmediately = true
...
...
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