Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陈婉清
/
scrm-micro-mall
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 b5c8b867
authored
Apr 27, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
0396304a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
22 deletions
src/views/goodsOrder/detail.vue
src/views/goodsOrder/index.vue
src/views/goodsWarehouse/index.vue
src/views/goodsWarehouse/warehouse.vue
src/views/saleOrder/detail.vue
src/views/saleOrder/index.vue
src/views/goodsOrder/detail.vue
View file @
b5c8b86
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<div
class=
"ctnr"
>
<div
class=
"ctnr"
>
<div
class=
"stutas-wrap"
>
<div
class=
"stutas-wrap"
>
<span>
订单状态:
</span>
<span>
订单状态:
</span>
<span
class=
"stutas-circle"
:style=
"
{backgroundColor: transfStatus(orderInfo.payStatus,orderInfo.orderStatus).color}">
</span>
<span
v-if=
"!isLoading"
class=
"stutas-circle"
:style=
"
{backgroundColor: transfStatus(orderInfo.payStatus,orderInfo.orderStatus).color}">
</span>
<span>
{{
transfStatus
(
orderInfo
.
payStatus
,
orderInfo
.
orderStatus
).
name
}}
</span>
<span
v-if=
"!isLoading"
>
{{
transfStatus
(
orderInfo
.
payStatus
,
orderInfo
.
orderStatus
).
name
}}
</span>
</div>
</div>
<div
class=
"info-wrap order-info"
>
<div
class=
"info-wrap order-info"
>
<div
class=
"title"
>
订单信息
</div>
<div
class=
"title"
>
订单信息
</div>
...
@@ -51,6 +51,7 @@ export default {
...
@@ -51,6 +51,7 @@ export default {
editForm
:
{
editForm
:
{
name
:
123
name
:
123
},
},
isLoading
:
false
,
orderInfo
:{},
orderInfo
:{},
shipmentsParams
:
{
shipmentsParams
:
{
listName
:
'shipments'
,
listName
:
'shipments'
,
...
@@ -193,8 +194,10 @@ export default {
...
@@ -193,8 +194,10 @@ export default {
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
background
:
'rgba(0, 0, 0, 0.3)'
})
})
this
.
isLoading
=
true
this
.
$apis
.
platformGoods
.
getOrderDetail
({
subOrderCode
:
id
}).
then
(
res
=>
{
this
.
$apis
.
platformGoods
.
getOrderDetail
({
subOrderCode
:
id
}).
then
(
res
=>
{
loading
.
close
()
loading
.
close
()
this
.
isLoading
=
false
if
(
res
?.
id
){
if
(
res
?.
id
){
const
{
receiveName
,
receiveMobile
,
provinceName
,
cityName
,
townName
,
address
}
=
res
?.
receiveAddress
||
{}
const
{
receiveName
,
receiveMobile
,
provinceName
,
cityName
,
townName
,
address
}
=
res
?.
receiveAddress
||
{}
res
.
addInfo
=
`
${
receiveName
}
${
receiveMobile
}
${
provinceName
}${
cityName
}${
townName
}${
address
}
`
res
.
addInfo
=
`
${
receiveName
}
${
receiveMobile
}
${
provinceName
}${
cityName
}${
townName
}${
address
}
`
...
@@ -205,6 +208,7 @@ export default {
...
@@ -205,6 +208,7 @@ export default {
this
.
orderInfo
=
res
this
.
orderInfo
=
res
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
isLoading
=
false
loading
.
close
()
loading
.
close
()
console
.
log
(
err
)
console
.
log
(
err
)
})
})
...
...
src/views/goodsOrder/index.vue
View file @
b5c8b86
...
@@ -184,7 +184,7 @@ export default {
...
@@ -184,7 +184,7 @@ export default {
transfStatus
:
util
.
transfStatus
,
transfStatus
:
util
.
transfStatus
,
changeTable
(
id
){
changeTable
(
id
){
this
.
orderFormObj
.
requestType
=
id
this
.
orderFormObj
.
requestType
=
id
this
.
handle
Reset
()
this
.
handle
Search
()
},
},
handleReset
(){
handleReset
(){
this
.
orderFormObj
=
{
this
.
orderFormObj
=
{
...
...
src/views/goodsWarehouse/index.vue
View file @
b5c8b86
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<categoryCascader
:categoryCode
.
sync=
"goodsFormObj"
></categoryCascader>
<categoryCascader
:categoryCode
.
sync=
"goodsFormObj"
></categoryCascader>
</div>
</div>
<div
slot=
"supplyPriceSlot"
>
<div
slot=
"supplyPriceSlot"
>
<inputNumRange
:formData=
"goodsFormObj"
:keyObj=
"
{from: 'start
Price', to:'end
Price'}">
</inputNumRange>
<inputNumRange
:formData=
"goodsFormObj"
:keyObj=
"
{from: 'start
SellPrice', to:'endSell
Price'}">
</inputNumRange>
</div>
</div>
<div
slot=
"spreadPriceSlot"
>
<div
slot=
"spreadPriceSlot"
>
<inputNumRange
:formData=
"goodsFormObj"
:keyObj=
"
{from: 'startDiffPrice', to:'endDiffPrice'}">
</inputNumRange>
<inputNumRange
:formData=
"goodsFormObj"
:keyObj=
"
{from: 'startDiffPrice', to:'endDiffPrice'}">
</inputNumRange>
...
...
src/views/goodsWarehouse/warehouse.vue
View file @
b5c8b86
...
@@ -72,7 +72,6 @@ export default {
...
@@ -72,7 +72,6 @@ export default {
{
{
label
:
'商品信息'
,
label
:
'商品信息'
,
name
:
'goodsSkuName'
,
name
:
'goodsSkuName'
,
placeholder
:
'商品名称/spu/sku/品牌名称'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
50
,
maxlength
:
50
,
isClear
:
true
isClear
:
true
...
...
src/views/saleOrder/detail.vue
View file @
b5c8b86
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<div
class=
"ctnr"
>
<div
class=
"ctnr"
>
<div
class=
"stutas-wrap"
>
<div
class=
"stutas-wrap"
>
<span>
售后状态:
</span>
<span>
售后状态:
</span>
<span
class=
"stutas-circle"
:style=
"
{backgroundColor: (orderInfo.returnOrderStatus == 1003 || orderInfo.returnOrderStatus == 1006) ? '#2CCA74': '#5850FF'}">
</span>
<span
v-if=
"!isLoading"
class=
"stutas-circle"
:style=
"
{backgroundColor: (orderInfo.returnOrderStatus == 1003 || orderInfo.returnOrderStatus == 1006) ? '#2CCA74': '#5850FF'}">
</span>
<span>
{{
(
orderInfo
.
returnOrderStatus
==
1003
||
orderInfo
.
returnOrderStatus
==
1006
)
?
'售后完成'
:
'售后中'
}}
</span>
<span
v-if=
"!isLoading"
>
{{
(
orderInfo
.
returnOrderStatus
==
1003
||
orderInfo
.
returnOrderStatus
==
1006
)
?
'售后完成'
:
'售后中'
}}
</span>
</div>
</div>
<div
class=
"info-wrap order-info"
>
<div
class=
"info-wrap order-info"
>
<div
class=
"title"
>
售后信息
</div>
<div
class=
"title"
>
售后信息
</div>
...
@@ -54,6 +54,7 @@ export default {
...
@@ -54,6 +54,7 @@ export default {
editForm
:
{
editForm
:
{
name
:
123
name
:
123
},
},
isLoading
:
false
,
showEmailInfo
:
false
,
showEmailInfo
:
false
,
orderInfo
:
{},
orderInfo
:
{},
shipmentsParams
:
{
shipmentsParams
:
{
...
@@ -168,23 +169,26 @@ export default {
...
@@ -168,23 +169,26 @@ export default {
text
:
'Loading'
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
background
:
'rgba(0, 0, 0, 0.3)'
})
})
this
.
isLoading
=
true
this
.
$apis
.
platformGoods
.
getSaleOrderDetail
({
afterSalesOrderCode
:
id
}).
then
(
res
=>
{
this
.
$apis
.
platformGoods
.
getSaleOrderDetail
({
afterSalesOrderCode
:
id
}).
then
(
res
=>
{
loading
.
close
()
loading
.
close
()
if
(
res
?.
id
){
this
.
isLoading
=
false
let
{
applyQty
,
refundPrice
,
outRefundType
,
refundStatus
,
tparReturnOrderCode
,
returnType
,
returnReasonType
,
refundedDate
}
=
res
||
{}
if
(
res
?.
id
){
const
{
brandName
,
goodsSkuName
,
goodsImageUrl
}
=
res
.
orderGoods
||
{}
let
{
applyQty
,
refundPrice
,
outRefundType
,
refundStatus
,
tparReturnOrderCode
,
returnType
,
returnReasonType
,
refundedDate
}
=
res
||
{}
this
.
showEmailInfo
=
returnType
==
1001
const
{
brandName
,
goodsSkuName
,
goodsImageUrl
}
=
res
.
orderGoods
||
{}
res
.
returnType
=
{
1001
:
'退货退款'
,
1002
:
'仅退款'
,
1003
:
'退货换货'
}[
returnType
]
||
'--'
this
.
showEmailInfo
=
returnType
==
1001
res
.
returnReasonType
=
reasonObj
[
returnReasonType
]
res
.
returnType
=
{
1001
:
'退货退款'
,
1002
:
'仅退款'
,
1003
:
'退货换货'
}[
returnType
]
||
'--'
refundStatus
=
refundStatus
!=
1003
?
refundStatusObj
[
refundStatus
]
:
outRefundTypeObj
[
outRefundType
]
res
.
returnReasonType
=
reasonObj
[
returnReasonType
]
res
.
goodsInfoTableDate
=
[{
brandName
,
goodsSkuName
,
goodsImageUrl
,
applyQty
,
refundPrice
,
refundStatus
,
tparReturnOrderCode
}]
refundStatus
=
refundStatus
!=
1003
?
refundStatusObj
[
refundStatus
]
:
outRefundTypeObj
[
outRefundType
]
res
.
createdDate
=
res
.
createdDate
?
util
.
dateFormat
(
res
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
goodsInfoTableDate
=
[{
brandName
,
goodsSkuName
,
goodsImageUrl
,
applyQty
,
refundPrice
,
refundStatus
,
tparReturnOrderCode
}]
res
.
refundedDate
=
refundedDate
?
util
.
dateFormat
(
refundedDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
createdDate
=
res
.
createdDate
?
util
.
dateFormat
(
res
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
expressInfo
=
[{
expressName
:
res
.
expressName
,
expressNo
:
res
.
expressNo
,
refundedDate
:
res
.
refundedDate
}]
res
.
refundedDate
=
refundedDate
?
util
.
dateFormat
(
refundedDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
this
.
orderInfo
=
res
res
.
expressInfo
=
[{
expressName
:
res
.
expressName
,
expressNo
:
res
.
expressNo
,
refundedDate
:
res
.
refundedDate
}]
}
this
.
orderInfo
=
res
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
isLoading
=
false
loading
.
close
()
loading
.
close
()
console
.
log
(
err
)
console
.
log
(
err
)
})
})
...
...
src/views/saleOrder/index.vue
View file @
b5c8b86
...
@@ -200,7 +200,7 @@ export default {
...
@@ -200,7 +200,7 @@ export default {
methods
:
{
methods
:
{
changeTable
(
id
){
changeTable
(
id
){
this
.
orderFormObj
.
requestType
=
id
this
.
orderFormObj
.
requestType
=
id
this
.
handle
Reset
()
this
.
handle
Search
()
},
},
handleReset
(){
handleReset
(){
this
.
orderFormObj
=
{
this
.
orderFormObj
=
{
...
...
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