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 f317e01f
authored
Aug 22, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复一轮测试bug
1 parent
916885da
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
35 deletions
src/views/goodsOrder/detail.vue
src/views/goodsOrder/index.vue
src/views/pointProducts/detail.vue
src/views/pointProducts/index.vue
src/views/pointProducts/wDetail.vue
src/views/pointProducts/warehouse.vue
src/views/goodsOrder/detail.vue
View file @
f317e01
...
@@ -221,7 +221,7 @@ export default {
...
@@ -221,7 +221,7 @@ export default {
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
}
`
res
.
addInfo
=
res
.
addInfo
.
replaceAll
(
'null'
,
''
)
res
.
addInfo
=
res
.
addInfo
.
replaceAll
(
'null'
,
''
)
res
.
payPrice
=
res
.
redeemPoints
?
res
.
redeemPoints
+
'积分'
+
'+'
+
res
.
payPrice
+
'元'
:
res
.
payPrice
+
'元'
res
.
payPrice
=
res
.
redeemPoints
?
res
.
redeemPoints
+
'积分'
+
'+'
+
(
res
.
payPrice
||
0
)
+
'元'
:
res
.
payPrice
+
'元'
res
.
subOrderGoodsList
=
res
?.
subOrderGoodsList
?.
length
?
res
?.
subOrderGoodsList
:
[]
res
.
subOrderGoodsList
=
res
?.
subOrderGoodsList
?.
length
?
res
?.
subOrderGoodsList
:
[]
// res.logisticsStatus = undefined
// res.logisticsStatus = undefined
this
.
orderInfo
=
res
this
.
orderInfo
=
res
...
...
src/views/goodsOrder/index.vue
View file @
f317e01
...
@@ -162,7 +162,7 @@ export default {
...
@@ -162,7 +162,7 @@ export default {
prop
:
'salePrice'
,
prop
:
'salePrice'
,
align
:
'right'
,
align
:
'right'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
businessType
==
1
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
cell
.
salePrice
+
'元'
:
cell
.
salePrice
return
cell
.
businessType
==
1
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
cell
.
salePrice
+
'元'
:
cell
.
salePrice
+
'元'
}
}
},
},
{
{
...
@@ -175,7 +175,7 @@ export default {
...
@@ -175,7 +175,7 @@ export default {
line
:
1
,
line
:
1
,
align
:
'right'
,
align
:
'right'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
businessType
==
1
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
cell
.
salePrice
+
'元'
:
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
return
cell
.
businessType
==
1
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
cell
.
salePrice
+
'元'
:
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
}
}
},
},
{
{
...
...
src/views/pointProducts/detail.vue
View file @
f317e01
...
@@ -68,8 +68,8 @@
...
@@ -68,8 +68,8 @@
<el-button
type=
"primary"
:disabled=
"goodsInfo.shelvesStatus == 1002"
v-if=
"goodsInfo.goodsPosition==1"
<el-button
type=
"primary"
:disabled=
"goodsInfo.shelvesStatus == 1002"
v-if=
"goodsInfo.goodsPosition==1"
@
click=
"handleSale"
>
上架销售
@
click=
"handleSale"
>
上架销售
</el-button>
</el-button>
<el-button
type=
"primary"
v-if=
"goodsInfo.goodsPosition==2"
plain
@
click=
"handleOff"
>
下架
至仓库
</el-button>
<el-button
type=
"primary"
v-if=
"goodsInfo.goodsPosition==2"
plain
@
click=
"handleOff"
>
下架
</el-button>
<el-button
type=
"primary"
v-if=
"goodsInfo.goodsPosition==1"
plain
@
click=
"handleRemove"
>
移出
仓库
</el-button>
<el-button
type=
"primary"
v-if=
"goodsInfo.goodsPosition==1"
plain
@
click=
"handleRemove"
>
移出
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -192,7 +192,7 @@ export default {
...
@@ -192,7 +192,7 @@ export default {
// return (this.redeemPoints == this.goodsInfo.redeemPoints) && (this.salePrice == this.goodsInfo.salePrice)
// return (this.redeemPoints == this.goodsInfo.redeemPoints) && (this.salePrice == this.goodsInfo.salePrice)
// },
// },
setPriceFn
(
e
)
{
setPriceFn
(
e
)
{
if
(
!
this
.
redeemPoints
)
{
if
(
(
!
Number
(
this
.
redeemPoints
))
)
{
this
.
salePrice
=
this
.
goodsInfo
.
salePrice
this
.
salePrice
=
this
.
goodsInfo
.
salePrice
this
.
redeemPoints
=
this
.
goodsInfo
.
redeemPoints
this
.
redeemPoints
=
this
.
goodsInfo
.
redeemPoints
this
.
$message
.
error
(
'请输入大于0的积分'
)
this
.
$message
.
error
(
'请输入大于0的积分'
)
...
@@ -217,10 +217,10 @@ export default {
...
@@ -217,10 +217,10 @@ export default {
this
.
operateFn
(
'batchSaleApi'
,
'上架销售'
)
this
.
operateFn
(
'batchSaleApi'
,
'上架销售'
)
},
},
handleOff
()
{
handleOff
()
{
this
.
operateFn
(
'batchOffApi'
,
'下架
至仓库
'
)
this
.
operateFn
(
'batchOffApi'
,
'下架'
)
},
},
handleRemove
()
{
handleRemove
()
{
this
.
operateFn
(
'batchRemoveApi'
,
'移出
仓库
'
)
this
.
operateFn
(
'batchRemoveApi'
,
'移出'
)
},
},
operateFn
(
Api
,
operate
)
{
operateFn
(
Api
,
operate
)
{
let
tip
=
`确定把该商品
${
operate
}
吗?`
let
tip
=
`确定把该商品
${
operate
}
吗?`
...
...
src/views/pointProducts/index.vue
View file @
f317e01
...
@@ -159,11 +159,12 @@ export default {
...
@@ -159,11 +159,12 @@ export default {
width
:
150
,
width
:
150
,
prop
:
'marketPrice'
prop
:
'marketPrice'
},
},
// {
{
// label: '已兑换',
label
:
'已兑换'
,
// width: 150,
width
:
150
,
// prop: 'saleAmount'
prop
:
'saleAmount'
,
// },
sortable
:
'custom'
},
// {
// {
// label: '真实销量',
// label: '真实销量',
// width: 150,
// width: 150,
...
@@ -277,12 +278,16 @@ export default {
...
@@ -277,12 +278,16 @@ export default {
confirmPriceChange
(
e
)
{
confirmPriceChange
(
e
)
{
this
.
batchPrice
=
e
.
batchPrice
this
.
batchPrice
=
e
.
batchPrice
this
.
batchCount
=
e
.
batchCount
this
.
batchCount
=
e
.
batchCount
console
.
log
(
this
.
batchCount
)
if
(
!
Number
(
this
.
batchCount
)
&&
this
.
isConversionRate
)
return
this
.
$message
({
if
(
!
this
.
batchCount
||
this
.
batchCount
==
0
)
return
this
.
$message
({
message
:
'请输入大于0的积分'
,
message
:
'请输入大于0的积分'
,
type
:
'error'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
customClass
:
'msgHierarchy'
});
});
if
(
!
this
.
isConversionRate
&&
this
.
batchCount
!=
'0'
&&
(
!
this
.
batchCount
||
this
.
batchCount
.
replace
(
/
\s
*/g
,
''
)
===
''
||
!
Number
(
this
.
batchCount
)))
return
this
.
$message
({
message
:
'请输入积分'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
});
this
.
setPriceFn
({},
{},
!
this
.
isConversionRate
)
this
.
setPriceFn
({},
{},
!
this
.
isConversionRate
)
this
.
handleClose
()
this
.
handleClose
()
},
},
...
...
src/views/pointProducts/wDetail.vue
View file @
f317e01
...
@@ -65,8 +65,8 @@
...
@@ -65,8 +65,8 @@
<el-button
type=
"primary"
:disabled=
"goodsInfo.shelvesStatus == 1002"
v-if=
"goodsInfo.goodsPosition==1"
<el-button
type=
"primary"
:disabled=
"goodsInfo.shelvesStatus == 1002"
v-if=
"goodsInfo.goodsPosition==1"
@
click=
"handleSale"
>
上架销售
@
click=
"handleSale"
>
上架销售
</el-button>
</el-button>
<el-button
type=
"primary"
v-if=
"goodsInfo.goodsPosition==2"
plain
@
click=
"handleOff"
>
下架
至仓库
</el-button>
<el-button
type=
"primary"
v-if=
"goodsInfo.goodsPosition==2"
plain
@
click=
"handleOff"
>
下架
</el-button>
<el-button
type=
"primary"
v-if=
"goodsInfo.goodsPosition==1"
plain
@
click=
"handleRemove"
>
移出
仓库
</el-button>
<el-button
type=
"primary"
v-if=
"goodsInfo.goodsPosition==1"
plain
@
click=
"handleRemove"
>
移出
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -183,12 +183,12 @@ export default {
...
@@ -183,12 +183,12 @@ export default {
console
.
log
(
err
)
console
.
log
(
err
)
})
})
},
},
focusPoints
()
{
//
focusPoints() {
//进入了积分输入框且没有修改值
//
//进入了积分输入框且没有修改值
return
(
this
.
redeemPoints
==
this
.
goodsInfo
.
redeemPoints
)
&&
(
this
.
salePrice
==
this
.
goodsInfo
.
salePrice
)
//
return (this.redeemPoints == this.goodsInfo.redeemPoints) && (this.salePrice == this.goodsInfo.salePrice)
},
//
},
setPriceFn
(
type
,
e
)
{
setPriceFn
(
type
,
e
)
{
if
(
!
this
.
redeemPoints
)
{
if
(
!
Number
(
this
.
redeemPoints
)
)
{
this
.
salePrice
=
this
.
goodsInfo
.
salePrice
this
.
salePrice
=
this
.
goodsInfo
.
salePrice
this
.
redeemPoints
=
this
.
goodsInfo
.
redeemPoints
this
.
redeemPoints
=
this
.
goodsInfo
.
redeemPoints
this
.
$message
.
error
(
'请输入大于0的积分'
)
this
.
$message
.
error
(
'请输入大于0的积分'
)
...
@@ -214,10 +214,10 @@ export default {
...
@@ -214,10 +214,10 @@ export default {
this
.
operateFn
(
'batchSaleApi'
,
'上架销售'
)
this
.
operateFn
(
'batchSaleApi'
,
'上架销售'
)
},
},
handleOff
()
{
handleOff
()
{
this
.
operateFn
(
'batchOffApi'
,
'下架
至仓库
'
)
this
.
operateFn
(
'batchOffApi'
,
'下架'
)
},
},
handleRemove
()
{
handleRemove
()
{
this
.
operateFn
(
'batchRemoveApi'
,
'移出
仓库
'
)
this
.
operateFn
(
'batchRemoveApi'
,
'移出'
)
},
},
operateFn
(
Api
,
operate
)
{
operateFn
(
Api
,
operate
)
{
let
tip
=
`确定把该商品
${
operate
}
吗?`
let
tip
=
`确定把该商品
${
operate
}
吗?`
...
...
src/views/pointProducts/warehouse.vue
View file @
f317e01
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
<el-button
:size=
"size"
@
click=
"batchRemove(
{}, 1)">批量移出
</el-button>
<el-button
:size=
"size"
@
click=
"batchRemove(
{}, 1)">批量移出
</el-button>
</div>
</div>
</div>
</div>
<GLTable
class=
"pointTable"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"tableRef"
@
sortChange=
"sortChange"
:pageConf=
"pageConf"
<GLTable
class=
"pointTable"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"tableRef"
@
sortChange=
"sortChange"
:pageConf=
"pageConf"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
>
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"goodsNameSlot"
class=
"goodsNameSlot"
slot-scope=
"scope"
>
<div
slot=
"goodsNameSlot"
class=
"goodsNameSlot"
slot-scope=
"scope"
>
...
@@ -48,7 +49,7 @@
...
@@ -48,7 +49,7 @@
<span>
{{
scope
.
scope
.
shelvesStatus
==
1001
?
'可上架'
:
'已下架'
}}
</span>
<span>
{{
scope
.
scope
.
shelvesStatus
==
1001
?
'可上架'
:
'已下架'
}}
</span>
</div>
</div>
</GLTable>
</GLTable>
<setPriceDialog
v-if=
"isVisible"
:echoParams=
"echoParams"
:isConversionRate=
"isConversionRate"
:visible=
"isVisible"
<setPriceDialog
v-if=
"isVisible"
:echoParams=
"echoParams"
:isConversionRate=
"isConversionRate"
:visible=
"isVisible"
@
handleClose=
"handleClose"
@
confirm=
"confirmPriceChange"
>
@
handleClose=
"handleClose"
@
confirm=
"confirmPriceChange"
>
</setPriceDialog>
</setPriceDialog>
</div>
</div>
...
@@ -69,7 +70,7 @@ export default {
...
@@ -69,7 +70,7 @@ export default {
batchPrice
:
''
,
batchPrice
:
''
,
batchCount
:
''
,
batchCount
:
''
,
editParams
:
{},
editParams
:
{},
echoParams
:{},
echoParams
:
{},
isConversionRate
:
false
,
isConversionRate
:
false
,
goodsFormObj
:
{
goodsFormObj
:
{
goodsPosition
:
1
,
goodsPosition
:
1
,
...
@@ -154,19 +155,19 @@ export default {
...
@@ -154,19 +155,19 @@ export default {
label
:
'供货价(元)'
,
label
:
'供货价(元)'
,
prop
:
'sellPrice'
,
prop
:
'sellPrice'
,
width
:
150
,
width
:
150
,
line
:
1
line
:
1
},
},
{
{
label
:
'市场价(元)'
,
label
:
'市场价(元)'
,
prop
:
'marketPrice'
,
prop
:
'marketPrice'
,
width
:
150
,
width
:
150
,
line
:
1
line
:
1
},
},
{
{
label
:
'库存'
,
label
:
'库存'
,
prop
:
'goodsStock'
,
prop
:
'goodsStock'
,
width
:
150
,
width
:
150
,
line
:
1
,
line
:
1
,
sortable
:
'custom'
,
sortable
:
'custom'
,
},
},
{
{
...
@@ -174,7 +175,7 @@ export default {
...
@@ -174,7 +175,7 @@ export default {
prop
:
'shelvesStatus'
,
prop
:
'shelvesStatus'
,
addHtml
:
'shelvesStatusSlot'
,
addHtml
:
'shelvesStatusSlot'
,
width
:
150
,
width
:
150
,
line
:
1
,
line
:
1
,
}
}
]
]
},
},
...
@@ -261,11 +262,17 @@ export default {
...
@@ -261,11 +262,17 @@ export default {
confirmPriceChange
(
e
)
{
confirmPriceChange
(
e
)
{
this
.
batchPrice
=
e
.
batchPrice
this
.
batchPrice
=
e
.
batchPrice
this
.
batchCount
=
e
.
batchCount
this
.
batchCount
=
e
.
batchCount
if
(
!
this
.
batchCount
||
this
.
batchCount
==
0
)
return
this
.
$message
({
console
.
log
(
this
.
batchCount
!=
'0'
)
if
(
!
Number
(
this
.
batchCount
)
&&
this
.
isConversionRate
)
return
this
.
$message
({
message
:
'请输入大于0的积分'
,
message
:
'请输入大于0的积分'
,
type
:
'error'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
customClass
:
'msgHierarchy'
});
});
if
(
!
this
.
isConversionRate
&&
this
.
batchCount
!=
'0'
&&
(
!
this
.
batchCount
||
this
.
batchCount
.
replace
(
/
\s
*/g
,
''
)
===
''
||
!
Number
(
this
.
batchCount
)))
return
this
.
$message
({
message
:
'请输入积分'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
});
this
.
setPriceFn
({},
{},
!
this
.
isConversionRate
)
this
.
setPriceFn
({},
{},
!
this
.
isConversionRate
)
this
.
handleClose
()
this
.
handleClose
()
},
},
...
@@ -427,11 +434,11 @@ export default {
...
@@ -427,11 +434,11 @@ export default {
}
}
}
}
/
deep
/
.pointTable
.el-table
.ascending
.sort-caret.ascending
{
/
deep
/
.pointTable
.el-table
.ascending
.sort-caret.ascending
{
border-bottom-color
:
#5850ff
;
border-bottom-color
:
#5850ff
;
}
}
/
deep
/
.pointTable
.el-table
.descending
.sort-caret.descending
{
/
deep
/
.pointTable
.el-table
.descending
.sort-caret.descending
{
border-top-color
:
#5850ff
!important
;
border-top-color
:
#5850ff
!important
;
}
}
</
style
>
</
style
>
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