Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 642cb291
authored
Dec 04, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单
1 parent
c6025938
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
276 additions
and
7 deletions
src/api/modules/orderManage.js
src/views/orderManage/index.vue
src/api/modules/orderManage.js
View file @
642cb29
...
...
@@ -42,4 +42,39 @@ const orderExportApi = params => {
})
}
export
default
{
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
}
\ No newline at end of file
// 订单核销
const
writeOffApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.verfication`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 快递信息
const
addDeliveryApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
order.addDelivery`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 退款审核 - 详情
const
examineDetailApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
orderRefund.detail`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getListApi
,
getCountApi
,
getOrderDetailApi
,
orderExportApi
,
writeOffApi
,
addDeliveryApi
,
examineDetailApi
}
\ No newline at end of file
src/views/orderManage/index.vue
View file @
642cb29
...
...
@@ -41,14 +41,34 @@
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看订单
</el-button>
<el-button
v-if=
"scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14"
type=
"text"
@
click=
"handle
Delete
(scope.scope)"
>
订单核销
</el-button>
<el-button
v-if=
"scope.scope.deliveryType == 2 && scope.scope.orderStatus == 13"
type=
"text"
@
click=
"handle
Delete
(scope.scope)"
>
输入快递信息
</el-button>
<
el-button
v-if=
"scope.scope.orderStatus == 6"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
退款审核
</el-button
>
<el-button
v-if=
"scope.scope.orderStatus == 9"
type=
"text"
@
click=
"handle
Delete
(scope.scope)"
>
确认收货
</el-button>
<el-button
v-if=
"scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14"
type=
"text"
@
click=
"handle
WriteOff
(scope.scope)"
>
订单核销
</el-button>
<el-button
v-if=
"scope.scope.deliveryType == 2 && scope.scope.orderStatus == 13"
type=
"text"
@
click=
"handle
ExpressInfo
(scope.scope)"
>
输入快递信息
</el-button>
<
!--
<el-button
v-if=
"scope.scope.orderStatus == 6"
type=
"text"
@
click=
"handleExamine(scope.scope)"
>
退款审核
</el-button>
--
>
<el-button
v-if=
"scope.scope.orderStatus == 9"
type=
"text"
@
click=
"handle
Receiving
(scope.scope)"
>
确认收货
</el-button>
</div>
</GLTable>
<!-- 表格区域 - 全部订单/售后订单 - end -->
</div>
<!-- 快递信息 -->
<glsx-dialog
v-if=
"isExpressVisible"
title=
"输入快递信息"
:isVisible
.
sync=
"isExpressVisible"
@
confirmDialog=
"handleExpressConfirm"
@
closeDialog=
"handleExpressClose"
>
<glsx-combi-form
ref=
"expressRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"expressForm"
:formData=
"expressFormData"
:formRules=
"expressRules"
>
</glsx-combi-form>
</glsx-dialog>
<!-- 订单核销 -->
<glsx-dialog
v-if=
"isWriteOffVisible"
title=
"订单核销(请确保用户到店后核销,避免引起不必要问题)"
:isVisible
.
sync=
"isWriteOffVisible"
@
confirmDialog=
"handleWriteOffConfirm"
@
closeDialog=
"handleWriteOffClose"
>
<glsx-combi-form
ref=
"writeOffRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"writeOffForm"
:formData=
"writeOffFormData"
:formRules=
"writeOffRules"
>
</glsx-combi-form>
</glsx-dialog>
<!-- 退款审核 -->
<!--
<glsx-dialog
v-if=
"isExamineVisible"
title=
"退款审核"
:isVisible
.
sync=
"isExamineVisible"
@
confirmDialog=
"handleExamineConfirm"
@
closeDialog=
"handleExamineClose"
>
<glsx-combi-form
ref=
"examineRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"examineForm"
:formData=
"examineFormData"
:formRules=
"examineRules"
>
</glsx-combi-form>
</glsx-dialog>
-->
<!-- 确认收获 -->
<!--
<glsx-dialog
v-if=
"isReceivingVisible"
title=
"确认收货"
:isVisible
.
sync=
"isReceivingVisible"
@
confirmDialog=
"handleReceivingConfirm"
@
closeDialog=
"handleReceivingClose"
>
<glsx-combi-form
ref=
"receivingRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"receivingForm"
:formData=
"receivingFormData"
:formRules=
"receivingRules"
>
</glsx-combi-form>
</glsx-dialog>
-->
</div>
</
template
>
...
...
@@ -61,6 +81,7 @@ export default {
return
{
size
:
'small'
,
activeName
:
'allOrder'
,
orderCode
:
''
,
oldVal
:
{
orderStatuses
:
[]
},
...
...
@@ -153,6 +174,79 @@ export default {
optionsName
:
'deliveryTypeList'
}
],
// 快递信息
isExpressVisible
:
false
,
editChildRef
:
'editChildRef'
,
expressForm
:
{
deliveryCompany
:
''
,
deliveryNumber
:
''
},
expressRules
:
{
deliveryCompany
:
[{
required
:
true
,
message
:
'快递公司是必填项'
,
trigger
:
'change'
}],
deliveryNumber
:
[{
required
:
true
,
message
:
'快递单号是必填项'
,
trigger
:
'change'
}]
},
expressFormData
:
[
{
label
:
'快递公司'
,
name
:
'deliveryCompany'
,
type
:
'input'
,
maxlength
:
20
},
{
label
:
'快递单号'
,
name
:
'deliveryNumber'
,
type
:
'input'
,
maxlength
:
20
}
],
// 订单核销
isWriteOffVisible
:
false
,
writeOffForm
:
{
writeOffCode
:
''
},
writeOffRules
:
{
writeOffCode
:
[{
required
:
true
,
message
:
'核销码是必填项'
,
trigger
:
'change'
}]
},
writeOffFormData
:
[
{
label
:
'核销码'
,
name
:
'writeOffCode'
,
type
:
'input'
,
maxlength
:
32
}
],
// 退款审核
isExamineVisible
:
false
,
examineForm
:
{
examineCode
:
''
},
examineRules
:
{
examineCode
:
[{
required
:
true
,
message
:
'核销码是必填项'
,
trigger
:
'change'
}]
},
examineFormData
:
[
{
label
:
'核销码'
,
name
:
'examineCode'
,
type
:
'input'
,
maxlength
:
32
}
],
// 确认收获
isReceivingVisible
:
false
,
receivingForm
:
{
receivingCode
:
''
},
receivingRules
:
{
receivingCode
:
[{
required
:
true
,
message
:
'核销码是必填项'
,
trigger
:
'change'
}]
},
receivingFormData
:
[
{
label
:
'核销码'
,
name
:
'receivingCode'
,
type
:
'input'
,
maxlength
:
32
}
],
// 表格
getListApi
:
this
.
$apis
.
orderManage
.
getListApi
,
tableParams
:
{
...
...
@@ -312,9 +406,149 @@ export default {
this
.
$router
.
push
(
'/orderManage/orderDetail/'
+
row
.
orderCode
)
},
handleDelete
(
row
)
{
this
.
secondConfirm
(
'删除'
,
'此功能只删除小程序对应分类区,不会删除分类下的商品,确定删除此分类?'
,
'classifyList'
,
'deleteClassifyApi'
,
{
id
:
row
.
id
})
// 输入快递信息 - start
handleExpressClose
()
{
this
.
isExpressVisible
=
!
this
.
isExpressVisible
this
.
orderCode
=
''
this
.
expressForm
=
{
deliveryCompany
:
''
,
deliveryNumber
:
''
}
},
handleExpressConfirm
()
{
this
.
$refs
.
expressRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
expressForm
)
params
.
orderCode
=
this
.
orderCode
this
.
$apis
.
orderManage
.
addDeliveryApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleExpressClose
()
this
.
handleSearch
()
}
})
}
})
},
handleExpressInfo
(
row
)
{
this
.
handleExpressClose
()
this
.
orderCode
=
row
.
orderCode
},
// 输入快递信息 - end
// 订单核销 - start
handleWriteOffClose
()
{
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
this
.
orderCode
=
''
this
.
writeOffForm
=
{
writeOffCode
:
''
}
},
handleWriteOffConfirm
()
{
this
.
$refs
.
writeOffRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
writeOffForm
)
params
.
orderCode
=
this
.
orderCode
this
.
$apis
.
orderManage
.
writeOffApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleWriteOffClose
()
this
.
handleSearch
()
}
})
}
})
},
handleWriteOff
(
row
)
{
this
.
handleWriteOffClose
()
this
.
orderCode
=
row
.
orderCode
},
// 订单核销 - end
// 退款审核 - start
handleExamineClose
()
{
this
.
isExamineVisible
=
!
this
.
isExamineVisible
this
.
orderCode
=
''
this
.
examineForm
=
{
examineCode
:
''
}
},
handleExamineConfirm
()
{
this
.
$refs
.
examineRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
examineForm
)
params
.
orderCode
=
this
.
orderCode
this
.
$apis
.
orderManage
.
examineApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleExamineClose
()
this
.
handleSearch
()
}
})
}
})
},
handleExamine
(
row
)
{
// this.handleExamineClose()
this
.
orderCode
=
row
.
orderCode
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
,
id
:
row
.
id
}).
then
(
res
=>
{
this
.
examineForm
=
res
||
{}
})
},
// 退款审核 - end
// 确认收货 - start
handleReceivingClose
()
{
this
.
isReceivingVisible
=
!
this
.
isReceivingVisible
this
.
orderCode
=
''
this
.
receivingForm
=
{
receivingCode
:
''
}
},
handleReceivingConfirm
()
{
this
.
$refs
.
receivingRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
receivingForm
)
params
.
orderCode
=
this
.
orderCode
this
.
$apis
.
orderManage
.
receivingApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleReceivingClose
()
this
.
handleSearch
()
}
})
}
})
},
handleReceiving
(
row
)
{
this
.
handleReceivingClose
()
this
.
orderCode
=
row
.
orderCode
},
// 确认收货 - end
handleSearch
()
{
this
.
$refs
.
allOrderRef
.
refreshTable
()
...
...
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