Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
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 ef9c51ff
authored
Apr 23, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
de59c470
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
17 deletions
src/util/util.js
src/views/goodsOrder/detail.vue
src/views/goodsOrder/index.vue
src/views/goodsWarehouse/detail.vue
src/views/goodsWarehouse/warehouse.vue
src/views/saleOrder/detail.vue
src/util/util.js
View file @
ef9c51f
...
@@ -69,7 +69,8 @@ util.getExplorer = function() {
...
@@ -69,7 +69,8 @@ util.getExplorer = function() {
}
}
return
browserType
return
browserType
}
}
util
.
transfStatus
=
function
(
key
)
{
util
.
transfStatus
=
function
(
firstKey
,
key
)
{
if
(
firstKey
==
1001
)
return
{
name
:
'待支付'
,
color
:
'#FDB757'
}
let
arr1
=
[
1002
,
1006
,
1007
,
1008
]
let
arr1
=
[
1002
,
1006
,
1007
,
1008
]
let
arr2
=
[
1003
,
1004
,
1005
,
1012
]
let
arr2
=
[
1003
,
1004
,
1005
,
1012
]
if
(
arr1
.
includes
(
+
key
)){
if
(
arr1
.
includes
(
+
key
)){
...
@@ -78,10 +79,8 @@ util.transfStatus = function(key) {
...
@@ -78,10 +79,8 @@ util.transfStatus = function(key) {
return
{
name
:
'已关闭'
,
color
:
'#999999'
}
return
{
name
:
'已关闭'
,
color
:
'#999999'
}
}
else
if
(
key
==
1009
){
}
else
if
(
key
==
1009
){
return
{
name
:
'已完成'
,
color
:
'#2CCA74'
}
return
{
name
:
'已完成'
,
color
:
'#2CCA74'
}
}
else
if
(
key
==
1010
){
return
{
name
:
'售后/退款'
,
color
:
'#EB4E4E'
}
}
else
{
}
else
{
return
{
name
:
'
待支付'
,
color
:
'#FDB757
'
}
return
{
name
:
'
售后/退款'
,
color
:
'#EB4E4E
'
}
}
}
}
}
export
default
util
export
default
util
\ No newline at end of file
\ No newline at end of file
src/views/goodsOrder/detail.vue
View file @
ef9c51f
...
@@ -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.orderStatus).color}">
</span>
<span
class=
"stutas-circle"
:style=
"
{backgroundColor: transfStatus(orderInfo.
payStatus,orderInfo.
orderStatus).color}">
</span>
<span>
{{
transfStatus
(
orderInfo
.
orderStatus
).
name
}}
</span>
<span>
{{
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>
...
...
src/views/goodsOrder/index.vue
View file @
ef9c51f
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<p
class=
"phone"
>
{{
scope
.
scope
.
customerPhone
}}
</p>
<p
class=
"phone"
>
{{
scope
.
scope
.
customerPhone
}}
</p>
</div>
</div>
<div
slot=
"orderStatusSlot"
slot-scope=
"scope"
>
<div
slot=
"orderStatusSlot"
slot-scope=
"scope"
>
<span
class=
"circle"
:style=
"
{backgroundColor: transfStatus(scope.scope.orderStatus).color}">
</span>
<span
class=
"circle"
:style=
"
{backgroundColor: transfStatus(scope.scope.
payStatus,scope.scope.
orderStatus).color}">
</span>
<span>
{{
transfStatus
(
scope
.
scope
.
orderStatus
).
name
}}
</span>
<span>
{{
transfStatus
(
scope
.
scope
.
payStatus
,
scope
.
scope
.
orderStatus
).
name
}}
</span>
</div>
</div>
<div
slot=
"orderNoSlot"
class=
"userInfoSlot"
slot-scope=
"scope"
>
<div
slot=
"orderNoSlot"
class=
"userInfoSlot"
slot-scope=
"scope"
>
<p
class=
"name"
>
第三方:
{{
scope
.
scope
.
thirdSubOrderCode
||
'--'
}}
</p>
<p
class=
"name"
>
第三方:
{{
scope
.
scope
.
thirdSubOrderCode
||
'--'
}}
</p>
...
...
src/views/goodsWarehouse/detail.vue
View file @
ef9c51f
...
@@ -61,10 +61,10 @@
...
@@ -61,10 +61,10 @@
<
script
>
<
script
>
const
attrList
=
[
const
attrList
=
[
{
//
{
label
:
'商品特点'
,
//
label:'商品特点',
key
:
'goodsCharacteristic'
//
key: 'goodsCharacteristic'
},
//
},
{
{
label
:
'供货价(元)'
,
label
:
'供货价(元)'
,
key
:
'sellPrice'
key
:
'sellPrice'
...
...
src/views/goodsWarehouse/warehouse.vue
View file @
ef9c51f
...
@@ -29,10 +29,14 @@
...
@@ -29,10 +29,14 @@
</div>
</div>
<div
slot=
"setPriceSlot"
slot-scope=
"scope"
>
<div
slot=
"setPriceSlot"
slot-scope=
"scope"
>
<el-input
type=
"text"
v-model=
"scope.scope.salePrice"
onkeyup=
"value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/\.
{2,}/g, '').replace('.', '$#$')
<el-input
type=
"text"
v-model=
"scope.scope.salePrice"
onkeyup=
"value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/\.
{2,}/g, '').replace('.', '$#$')
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value" @blur="setPriceFn($event, scope.scope)">
</el-input>
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value" @blur="setPriceFn($event, scope.scope)"
placeholder="请输入"
>
</el-input>
</div>
</div>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
</div>
<div
slot=
"shelvesStatusSlot"
slot-scope=
"scope"
>
<span
class=
"circle"
:style=
"
{color: scope.scope== 1001 ? '#2CCA74' : '#999999'}">
</span>
<span>
{{
scope
.
scope
==
1001
?
'可上架'
:
'已下架'
}}
</span>
</div>
</div>
</GLTable>
</GLTable>
<setPriceDialog
v-if=
"isVisible"
:visible=
"isVisible"
@
handleClose=
"handleClose"
@
confirm=
"confirmPriceChange"
>
<setPriceDialog
v-if=
"isVisible"
:visible=
"isVisible"
@
handleClose=
"handleClose"
@
confirm=
"confirmPriceChange"
>
...
@@ -145,6 +149,7 @@ export default {
...
@@ -145,6 +149,7 @@ export default {
{
{
label
:
'商品状态'
,
label
:
'商品状态'
,
prop
:
'shelvesStatus'
,
prop
:
'shelvesStatus'
,
addHtml
:
'shelvesStatusSlot'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
shelvesStatus
==
1001
?
'可上架'
:
'可下架'
return
cellValue
.
shelvesStatus
==
1001
?
'可上架'
:
'可下架'
}
}
...
@@ -176,10 +181,10 @@ export default {
...
@@ -176,10 +181,10 @@ export default {
},
},
{
{
type
:
'el-button'
,
type
:
'el-button'
,
name
:
'移
除
仓库'
,
name
:
'移
出
仓库'
,
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
fn
:
'移
除
仓库'
fn
:
'移
出
仓库'
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
this
.
batchRemove
(
row
.
scope
)
click
:
row
=>
this
.
batchRemove
(
row
.
scope
)
...
...
src/views/saleOrder/detail.vue
View file @
ef9c51f
...
@@ -41,6 +41,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -41,6 +41,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
import
util
from
'@/util/util'
import
util
from
'@/util/util'
const
reasonObj
=
{
1001
:
'商品无货'
,
1002
:
'发货时间问题'
,
1003
:
'不想要了/不喜欢'
,
1004
:
'商品信息填写错误'
,
1005
:
'地址信息填写错误'
,
1006
:
'商品降价'
,
1007
:
'其他'
,
1008
:
'尺码不合适'
,
1009
:
'无理由退货'
,
1010
:
'发票问题'
,
1011
:
'商品与页面描述不符'
,
1012
:
'发错货'
,
1013
:
'质量问题'
,
1014
:
'买错尺码/颜色/型号'
,
1015
:
'商品缺少或破损'
,
1016
:
'买错了'
}
const
reasonObj
=
{
1001
:
'商品无货'
,
1002
:
'发货时间问题'
,
1003
:
'不想要了/不喜欢'
,
1004
:
'商品信息填写错误'
,
1005
:
'地址信息填写错误'
,
1006
:
'商品降价'
,
1007
:
'其他'
,
1008
:
'尺码不合适'
,
1009
:
'无理由退货'
,
1010
:
'发票问题'
,
1011
:
'商品与页面描述不符'
,
1012
:
'发错货'
,
1013
:
'质量问题'
,
1014
:
'买错尺码/颜色/型号'
,
1015
:
'商品缺少或破损'
,
1016
:
'买错了'
}
const
refundStatusObj
=
{
1000
:
'待审核'
,
1001
:
'审核通过'
,
1002
:
'已收货'
,
1003
:
'已退款'
,
1004
:
'已生成新订单'
,
1005
:
'审核不通过'
}
const
refundStatusObj
=
{
1000
:
'待审核'
,
1001
:
'审核通过'
,
1002
:
'已收货'
,
1003
:
'已退款'
,
1004
:
'已生成新订单'
,
1005
:
'审核不通过'
}
const
outRefundTypeObj
=
{
0
:
'退款成功'
,
1
:
'退款关闭'
,
2
:
'退款处理中'
,
3
:
'退款异常'
}
export
default
{
export
default
{
name
:
'goodsOrderDetail'
,
name
:
'goodsOrderDetail'
,
data
()
{
data
()
{
...
@@ -161,11 +162,11 @@ export default {
...
@@ -161,11 +162,11 @@ export default {
this
.
$apis
.
platformGoods
.
getSaleOrderDetail
({
afterSalesOrderCode
:
id
}).
then
(
res
=>
{
this
.
$apis
.
platformGoods
.
getSaleOrderDetail
({
afterSalesOrderCode
:
id
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
?.
id
){
if
(
res
?.
id
){
let
{
applyQty
,
refundPrice
,
refundStatus
,
tparReturnOrderCode
,
returnType
,
returnReasonType
,
refundedDate
}
=
res
||
{}
let
{
applyQty
,
refundPrice
,
outRefundType
,
refundStatus
,
tparReturnOrderCode
,
returnType
,
returnReasonType
,
refundedDate
}
=
res
||
{}
const
{
brandName
,
goodsSkuName
}
=
res
.
orderGoods
||
{}
const
{
brandName
,
goodsSkuName
}
=
res
.
orderGoods
||
{}
res
.
returnType
=
{
1001
:
'退货退款'
,
1002
:
'仅退款'
,
1003
:
'退货换货'
}[
returnType
]
||
'--'
res
.
returnType
=
{
1001
:
'退货退款'
,
1002
:
'仅退款'
,
1003
:
'退货换货'
}[
returnType
]
||
'--'
res
.
returnReasonType
=
reasonObj
[
returnReasonType
]
res
.
returnReasonType
=
reasonObj
[
returnReasonType
]
refundStatus
=
refundStatus
Obj
[
refundStatus
]
||
'--'
refundStatus
=
refundStatus
!=
1003
?
refundStatusObj
[
refundStatus
]
:
outRefundTypeObj
[
outRefundType
]
res
.
goodsInfoTableDate
=
[{
brandName
,
goodsSkuName
,
applyQty
,
refundPrice
,
refundStatus
,
tparReturnOrderCode
}]
res
.
goodsInfoTableDate
=
[{
brandName
,
goodsSkuName
,
applyQty
,
refundPrice
,
refundStatus
,
tparReturnOrderCode
}]
res
.
refundedDate
=
refundedDate
?
util
.
dateFormat
(
refundedDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
refundedDate
=
refundedDate
?
util
.
dateFormat
(
refundedDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
res
.
expressInfo
=
[{
expressName
:
res
.
expressName
,
expressNo
:
res
.
expressNo
,
refundedDate
:
res
.
refundedDate
}]
res
.
expressInfo
=
[{
expressName
:
res
.
expressName
,
expressNo
:
res
.
expressNo
,
refundedDate
:
res
.
refundedDate
}]
...
...
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