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 0cd4f841
authored
Aug 22, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
一轮bug修复+UI走查
1 parent
a37032ca
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
75 additions
and
37 deletions
src/api/modules/platformGoods.js
src/components/inputNumRange/index.vue
src/views/goodsOrder/detail.vue
src/views/goodsOrder/index.vue
src/views/pointProducts/index.vue
src/views/pointProducts/warehouse.vue
src/views/saleOrder/detail.vue
src/api/modules/platformGoods.js
View file @
0cd4f84
...
...
@@ -30,6 +30,7 @@ const addWarehouseApi = params => {
sign
:
true
})
}
// 分页查询仓库/销售中商品
const
getListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
goods.stockroom.page`
...
...
src/components/inputNumRange/index.vue
View file @
0cd4f84
...
...
@@ -32,13 +32,13 @@
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'InputNumberRange'
,
props
:
{
// 是否禁用
disabled
:
{
type
:
Boolean
,
...
...
@@ -62,15 +62,15 @@
}
},
},
data
()
{
return
{
}
},
methods
:
{
// from输入框change事件
handleInputChangeFrom
(
value
)
{
// let from = this.formData[this.keyObj.from]
...
...
@@ -79,7 +79,7 @@
// this.formData[this.keyObj.to] = from
// }
},
// to输入框change事件
handleInputChangeTo
(
value
)
{
// let from = this.formData[this.keyObj.from]
...
...
@@ -111,9 +111,11 @@
}
.center
{
margin-top
:
1px
;
color
:
#666
;
}
.unit
{
margin-right
:
10px
;
color
:
#666
;
}
}
.is-disabled
{
...
...
@@ -123,4 +125,3 @@
cursor
:
not-allowed
;
}
</
style
>
\ No newline at end of file
src/views/goodsOrder/detail.vue
View file @
0cd4f84
...
...
@@ -117,7 +117,7 @@ export default {
label
:
'单价 (元)'
,
prop
:
'salePrice'
,
formatter
:
cell
=>
{
return
cell
.
redeemPoints
?
cell
.
redeemPoints
+
'积分'
+
cell
.
salePrice
+
'元'
:
cell
.
salePrice
+
'元'
return
cell
.
redeemPoints
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
).
toFixed
(
2
)
+
'元'
:
(
cell
.
salePrice
).
toFixed
(
2
)
+
'元'
}
},
{
...
...
@@ -127,14 +127,14 @@ export default {
{
label
:
'小计 (元)'
,
formatter
:
cell
=>
{
return
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
return
cell
.
redeemPoints
+
'积分'
+
'+'
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
}
},
{
label
:
'实收金额 (元)'
,
prop
:
'orderAmount'
,
formatter
:
cell
=>
{
return
cell
.
redeemPoints
?
cell
.
redeemPoints
+
'积分'
+
cell
.
salePrice
+
'元'
:
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
return
cell
.
redeemPoints
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
).
toFixed
(
2
)
+
'元'
:
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
}
}
]
...
...
@@ -221,7 +221,7 @@ export default {
const
{
receiveName
,
receiveMobile
,
provinceName
,
cityName
,
townName
,
address
}
=
res
?.
receiveAddress
||
{}
res
.
addInfo
=
`
${
receiveName
}
${
receiveMobile
}
${
provinceName
}${
cityName
}${
townName
}${
address
}
`
res
.
addInfo
=
res
.
addInfo
.
replaceAll
(
'null'
,
''
)
res
.
payPrice
=
res
.
payPrice
?
res
.
payPrice
+
'元'
:
'--
'
res
.
payPrice
=
res
.
redeemPoints
?
res
.
redeemPoints
+
'积分'
+
'+'
+
res
.
payPrice
+
'元'
:
res
.
payPrice
+
'元
'
res
.
subOrderGoodsList
=
res
?.
subOrderGoodsList
?.
length
?
res
?.
subOrderGoodsList
:
[]
// res.logisticsStatus = undefined
this
.
orderInfo
=
res
...
...
src/views/goodsOrder/index.vue
View file @
0cd4f84
...
...
@@ -146,7 +146,9 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
tableParams
:
{
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
{
width
:
80
},
tableColumns
:
[
{
label
:
'商品名称'
,
...
...
@@ -155,10 +157,12 @@ export default {
},
{
label
:
'单价 (元)'
,
width
:
100
,
width
:
180
,
line
:
1
,
prop
:
'salePrice'
,
align
:
'right'
,
formatter
:
cell
=>
{
return
cell
.
businessType
==
1
?
cell
.
redeemPoints
+
'积分'
+
cell
.
salePrice
+
'元'
:
cell
.
salePrice
return
cell
.
businessType
==
1
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
cell
.
salePrice
+
'元'
:
cell
.
salePrice
}
},
{
...
...
@@ -167,9 +171,11 @@ export default {
},
{
label
:
'实收金额 (元)'
,
width
:
130
,
width
:
150
,
line
:
1
,
align
:
'right'
,
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/index.vue
View file @
0cd4f84
...
...
@@ -20,7 +20,7 @@
<el-button
:size=
"size"
type=
"primary"
plain
@
click=
"batchPriceChange"
>
批量改价
</el-button>
</div>
</div>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"tableRef"
:pageConf=
"pageConf"
@
sortChange=
"sortChange"
<GLTable
class=
"pointTable"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"tableRef"
:pageConf=
"pageConf"
@
sortChange=
"sortChange"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"goodsNameSlot"
class=
"goodsNameSlot"
slot-scope=
"scope"
>
...
...
@@ -125,7 +125,9 @@ export default {
listName
:
'list'
,
mutiSelectName
:
'goodsIndex'
,
mutiSelectUniqueKey
:
'id'
,
tableOption
:
true
,
tableOption
:
{
width
:
120
},
tableColumns
:
[
{
label
:
'商品名称'
,
...
...
@@ -142,7 +144,7 @@ export default {
},
{
label
:
'兑换价'
,
width
:
18
0
,
width
:
22
0
,
addHtml
:
'setPriceSlot'
,
prop
:
'salePrice'
,
sortable
:
'custom'
,
...
...
@@ -158,6 +160,11 @@ export default {
prop
:
'marketPrice'
},
// {
// label: '已兑换',
// width: 150,
// prop: 'saleAmount'
// },
// {
// label: '真实销量',
// width: 150,
// prop: 'saleAmount',
...
...
@@ -270,8 +277,8 @@ export default {
confirmPriceChange
(
e
)
{
this
.
batchPrice
=
e
.
batchPrice
this
.
batchCount
=
e
.
batchCount
if
(
!
this
.
batchCount
&&
this
.
batchCount
!==
0
&&
this
.
batchCount
!==
'0'
)
return
this
.
$message
({
message
:
'请输入积分'
,
if
(
!
this
.
batchCount
||
this
.
batchCount
==
0
)
return
this
.
$message
({
message
:
'请输入
大于0的
积分'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
});
...
...
@@ -293,7 +300,7 @@ export default {
},
handleShelf
(
item
,
isAll
)
{
const
api
=
this
.
$apis
.
platformGoods
.
batchOffApi
this
.
batchFn
(
api
,
'下架
至仓库
'
,
item
,
isAll
)
this
.
batchFn
(
api
,
'下架'
,
item
,
isAll
)
},
batchFn
(
Api
,
operate
,
item
,
isAll
)
{
let
params
=
{
...
...
@@ -423,4 +430,11 @@ export default {
}
}
}
/
deep
/
.pointTable
.el-table
.ascending
.sort-caret.ascending
{
border-bottom-color
:
#5850ff
;
}
/
deep
/
.pointTable
.el-table
.descending
.sort-caret.descending
{
border-top-color
:
#5850ff
!important
;
}
</
style
>
src/views/pointProducts/warehouse.vue
View file @
0cd4f84
...
...
@@ -21,7 +21,7 @@
<el-button
:size=
"size"
@
click=
"batchRemove(
{}, 1)">批量移出
</el-button>
</div>
</div>
<GLTable
@
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"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"goodsNameSlot"
class=
"goodsNameSlot"
slot-scope=
"scope"
>
...
...
@@ -129,7 +129,7 @@ export default {
mutiSelectName
:
'goodsIndex'
,
mutiSelectUniqueKey
:
'id'
,
tableOption
:
{
width
:
250
width
:
175
},
tableColumns
:
[
{
...
...
@@ -147,26 +147,34 @@ export default {
},
{
label
:
'兑换价'
,
width
:
15
0
,
width
:
22
0
,
addHtml
:
'setPriceSlot'
},
{
label
:
'供货价(元)'
,
prop
:
'sellPrice'
prop
:
'sellPrice'
,
width
:
150
,
line
:
1
},
{
label
:
'市场价(元)'
,
prop
:
'marketPrice'
prop
:
'marketPrice'
,
width
:
150
,
line
:
1
},
{
label
:
'库存'
,
prop
:
'goodsStock'
,
width
:
150
,
line
:
1
,
sortable
:
'custom'
,
},
{
label
:
'商品状态'
,
prop
:
'shelvesStatus'
,
addHtml
:
'shelvesStatusSlot'
addHtml
:
'shelvesStatusSlot'
,
width
:
150
,
line
:
1
,
}
]
},
...
...
@@ -176,7 +184,7 @@ export default {
name
:
'详情'
,
attrs
:
{
type
:
'text'
,
fn
:
'
商品
详情'
fn
:
'详情'
},
listeners
:
{
click
:
row
=>
this
.
goDetaillPage
(
row
.
scope
)
...
...
@@ -201,7 +209,7 @@ export default {
name
:
'移出'
,
attrs
:
{
type
:
'text'
,
fn
:
'移出
仓库
'
fn
:
'移出'
},
listeners
:
{
click
:
row
=>
this
.
batchRemove
(
row
.
scope
)
...
...
@@ -253,8 +261,8 @@ export default {
confirmPriceChange
(
e
)
{
this
.
batchPrice
=
e
.
batchPrice
this
.
batchCount
=
e
.
batchCount
if
(
!
this
.
batchCount
&&
this
.
batchCount
!==
0
&&
this
.
batchCount
!==
'0'
)
return
this
.
$message
({
message
:
'请输入积分'
,
if
(
!
this
.
batchCount
||
this
.
batchCount
==
0
)
return
this
.
$message
({
message
:
'请输入
大于0的
积分'
,
type
:
'error'
,
customClass
:
'msgHierarchy'
});
...
...
@@ -334,7 +342,7 @@ export default {
const
list
=
this
.
getAllData
()
if
(
!
list
?.
length
)
return
this
.
$message
.
error
(
`请选择要
${
operate
}
的商品`
)
params
.
ids
=
list
.
map
(
item
=>
item
.
id
)
conversionRateAll
=
list
.
every
(
item
=>
item
.
redeemPoints
&&
item
.
salePrice
)
conversionRateAll
=
list
.
every
(
item
=>
item
.
redeemPoints
)
tip
=
`确定把已选的
${
list
.
length
}
个商品全部
${
operate
}
?`
}
console
.
log
(
conversionRateAll
)
...
...
@@ -342,7 +350,7 @@ export default {
type
:
'warning'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
if
(
operate
==
'上架销售'
&&
(
!
isAll
&&
(
!
item
.
redeemPoints
||
!
item
.
salePrice
))
||
(
isAll
&&
!
conversionRateAll
))
{
if
(
operate
==
'上架销售'
&&
(
!
isAll
&&
(
!
item
.
redeemPoints
))
||
(
isAll
&&
!
conversionRateAll
))
{
this
.
$message
.
error
(
'请先输入兑换价'
)
return
}
...
...
@@ -418,4 +426,12 @@ export default {
}
}
/
deep
/
.pointTable
.el-table
.ascending
.sort-caret.ascending
{
border-bottom-color
:
#5850ff
;
}
/
deep
/
.pointTable
.el-table
.descending
.sort-caret.descending
{
border-top-color
:
#5850ff
!important
;
}
</
style
>
src/views/saleOrder/detail.vue
View file @
0cd4f84
...
...
@@ -95,7 +95,7 @@ export default {
label
:
'申请金额 (元)'
,
prop
:
'refundPrice'
,
formatter
:
cell
=>
{
return
cell
.
redeemPoints
?
cell
.
redeemPoints
+
'积分'
+
cell
.
refundPrice
+
'元'
:
cell
.
refundPrice
+
'元'
return
cell
.
redeemPoints
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
cell
.
refundPrice
+
'元'
:
cell
.
refundPrice
+
'元'
}
},
{
...
...
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