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 6fd71fab
authored
Aug 28, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.15.1_10' into 'v3.15.1'
修复二轮bug See merge request
!19
2 parents
be477d76
b643dc3d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
32 deletions
src/views/goodsOrder/detail.vue
src/views/goodsOrder/index.vue
src/views/pointProducts/detail.vue
src/views/pointProducts/wDetail.vue
src/views/pointProducts/warehouse.vue
src/views/selectionStore/index.vue
src/views/whiteList/index.vue
src/views/goodsOrder/detail.vue
View file @
6fd71fa
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</div>
</div>
<div
class=
"orderAmount"
slot=
"orderAmount"
slot-scope=
"scope"
>
<div
class=
"orderAmount"
slot=
"orderAmount"
slot-scope=
"scope"
>
{{
{{
scope
.
scope
.
redeemPoints
?
scope
.
scope
.
redeemPoints
+
'积分'
+
'+'
+
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
scope
.
scope
.
redeemPoints
?
(
scope
.
scope
.
redeemPoints
*
scope
.
scope
.
sellQty
)
+
'积分'
+
'+'
+
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
scope
.
scope
.
salePrice
*
scope
.
scope
.
sellQty
).
toFixed
(
2
)
+
'元'
}}
}}
</div>
</div>
</GLTable>
</GLTable>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
slot=
"effectiveDays"
slot-scope=
"scope"
>
<div
slot=
"effectiveDays"
>
<span
v-show=
"orderInfo.logisticsStatus"
class=
"circle"
<span
v-show=
"orderInfo.logisticsStatus"
class=
"circle"
:style=
"
{backgroundColor: '#5850FF'}">
</span>
:style=
"
{backgroundColor: '#5850FF'}">
</span>
<span>
{{
<span>
{{
...
@@ -148,7 +148,7 @@ export default {
...
@@ -148,7 +148,7 @@ export default {
{
{
label
:
'小计 (元)'
,
label
:
'小计 (元)'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
redeemPoints
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
return
cell
.
redeemPoints
?
(
cell
.
redeemPoints
*
cell
.
sellQty
)
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
}
}
}
,
}
,
{
{
...
...
src/views/goodsOrder/index.vue
View file @
6fd71fa
...
@@ -134,10 +134,10 @@ export default {
...
@@ -134,10 +134,10 @@ export default {
{
{
id
:
''
,
id
:
''
,
value
:
'全部'
value
:
'全部'
},{
},
{
id
:
'0'
,
id
:
'0'
,
value
:
'普通订单'
value
:
'普通订单'
},
},
{
{
id
:
'1'
,
id
:
'1'
,
value
:
'积分订单'
value
:
'积分订单'
...
@@ -151,7 +151,7 @@ export default {
...
@@ -151,7 +151,7 @@ export default {
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
{
tableOption
:
{
width
:
80
width
:
80
},
},
tableColumns
:
[
tableColumns
:
[
{
{
...
@@ -164,7 +164,7 @@ export default {
...
@@ -164,7 +164,7 @@ export default {
width
:
180
,
width
:
180
,
line
:
1
,
line
:
1
,
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
+
'元'
}
}
...
@@ -177,9 +177,9 @@ export default {
...
@@ -177,9 +177,9 @@ export default {
label
:
'实收金额 (元)'
,
label
:
'实收金额 (元)'
,
width
:
150
,
width
:
150
,
line
:
1
,
line
:
1
,
align
:
'right'
,
align
:
'right'
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
businessType
==
1
?
cell
.
redeemPoints
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
return
cell
.
businessType
==
1
?
(
cell
.
redeemPoints
*
cell
.
sellQty
)
+
'积分'
+
'+'
+
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
:
+
(
cell
.
salePrice
*
cell
.
sellQty
).
toFixed
(
2
)
+
'元'
}
}
},
},
{
{
...
...
src/views/pointProducts/detail.vue
View file @
6fd71fa
...
@@ -173,7 +173,6 @@ export default {
...
@@ -173,7 +173,6 @@ export default {
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
background
:
'rgba(0, 0, 0, 0.3)'
})
})
console
.
log
({
id
,
businessType
:
1
})
this
.
$apis
.
platformGoods
.
goodsDetailApi
({
id
,
businessType
:
1
}).
then
(
res
=>
{
this
.
$apis
.
platformGoods
.
goodsDetailApi
({
id
,
businessType
:
1
}).
then
(
res
=>
{
this
.
editing
=
false
this
.
editing
=
false
loading
.
close
()
loading
.
close
()
...
@@ -193,7 +192,7 @@ export default {
...
@@ -193,7 +192,7 @@ export default {
// },
// },
setPriceFn
(
e
)
{
setPriceFn
(
e
)
{
if
((
!
Number
(
this
.
redeemPoints
)))
{
if
((
!
Number
(
this
.
redeemPoints
)))
{
this
.
salePrice
=
this
.
goodsInfo
.
salePrice
this
.
salePrice
=
!
Number
(
this
.
salePrice
)
?
0
:
this
.
salePrice
this
.
redeemPoints
=
this
.
goodsInfo
.
redeemPoints
this
.
redeemPoints
=
this
.
goodsInfo
.
redeemPoints
this
.
$message
.
error
(
'请输入大于0的积分'
)
this
.
$message
.
error
(
'请输入大于0的积分'
)
return
return
...
@@ -202,7 +201,7 @@ export default {
...
@@ -202,7 +201,7 @@ export default {
businessType
:
1
,
businessType
:
1
,
modifyPriceRequestList
:
[{
modifyPriceRequestList
:
[{
id
:
this
.
goodsInfo
.
id
,
id
:
this
.
goodsInfo
.
id
,
salePrice
:
this
.
salePrice
||
0
,
salePrice
:
!
Number
(
this
.
salePrice
)
?
0
:
this
.
salePrice
,
redeemPoints
:
Number
(
this
.
redeemPoints
),
redeemPoints
:
Number
(
this
.
redeemPoints
),
}],
}],
}
}
...
...
src/views/pointProducts/wDetail.vue
View file @
6fd71fa
...
@@ -189,7 +189,7 @@ export default {
...
@@ -189,7 +189,7 @@ export default {
// },
// },
setPriceFn
(
type
,
e
)
{
setPriceFn
(
type
,
e
)
{
if
(
!
Number
(
this
.
redeemPoints
))
{
if
(
!
Number
(
this
.
redeemPoints
))
{
this
.
salePrice
=
this
.
goodsInfo
.
salePrice
this
.
salePrice
=
!
Number
(
this
.
salePrice
)
?
0
:
this
.
salePrice
this
.
redeemPoints
=
this
.
goodsInfo
.
redeemPoints
this
.
redeemPoints
=
this
.
goodsInfo
.
redeemPoints
this
.
$message
.
error
(
'请输入大于0的积分'
)
this
.
$message
.
error
(
'请输入大于0的积分'
)
return
return
...
@@ -199,10 +199,13 @@ export default {
...
@@ -199,10 +199,13 @@ export default {
businessType
:
1
,
businessType
:
1
,
modifyPriceRequestList
:
[{
modifyPriceRequestList
:
[{
id
:
this
.
goodsInfo
.
id
,
id
:
this
.
goodsInfo
.
id
,
salePrice
:
this
.
salePrice
||
0
,
salePrice
:
!
Number
(
this
.
salePrice
)
?
0
:
this
.
salePrice
,
redeemPoints
:
Number
(
this
.
redeemPoints
),
redeemPoints
:
Number
(
this
.
redeemPoints
),
}],
}],
}
}
console
.
log
(
this
.
salePrice
==
''
)
console
.
log
(
!
Number
(
this
.
salePrice
)
?
0
:
this
.
salePrice
)
this
.
$apis
.
platformGoods
.
modifyPriceApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
platformGoods
.
modifyPriceApi
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
$message
.
success
(
'操作成功'
)
...
...
src/views/pointProducts/warehouse.vue
View file @
6fd71fa
...
@@ -342,21 +342,20 @@ export default {
...
@@ -342,21 +342,20 @@ export default {
businessType
:
1
businessType
:
1
}
}
let
tip
=
`确定把
${
item
.
goodsSkuName
}
${
operate
}
?`
let
tip
=
`确定把
${
item
.
goodsSkuName
}
${
operate
}
?`
let
conversionRateAll
//
let conversionRateAll
if
(
isAll
)
{
if
(
isAll
)
{
const
list
=
this
.
getAllData
()
const
list
=
this
.
getAllData
()
if
(
!
list
?.
length
)
return
this
.
$message
.
error
(
`请选择要
${
operate
}
的商品`
)
if
(
!
list
?.
length
)
return
this
.
$message
.
error
(
`请选择要
${
operate
}
的商品`
)
params
.
ids
=
list
.
map
(
item
=>
item
.
id
)
params
.
ids
=
list
.
map
(
item
=>
item
.
id
)
conversionRateAll
=
list
.
every
(
item
=>
item
.
redeemPoints
)
//
conversionRateAll = list.every(item => item.redeemPoints)
tip
=
`确定把已选的
${
list
.
length
}
个商品全部
${
operate
}
?`
tip
=
`确定把已选的
${
list
.
length
}
个商品全部
${
operate
}
?`
}
}
console
.
log
(
conversionRateAll
)
this
.
$confirm
(
tip
,
'提示'
,
{
this
.
$confirm
(
tip
,
'提示'
,
{
type
:
'warning'
,
type
:
'warning'
,
callback
:
action
=>
{
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
if
(
operate
==
'上架销售'
&&
(
!
isAll
&&
(
!
item
.
redeemPoints
))
||
(
isAll
&&
!
conversionRateAll
)
)
{
if
(
operate
==
'上架销售'
&&
(
!
isAll
&&
(
!
item
.
redeemPoints
)))
{
this
.
$message
.
error
(
'请先输入兑换价'
)
this
.
$message
.
error
(
'请先输入兑换价'
)
return
return
}
}
...
...
src/views/selectionStore/index.vue
View file @
6fd71fa
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<GLCombiForm
ref=
"goodsRef"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formObj=
"goodsFormObj"
:formData=
"goodsFormData"
>
<GLCombiForm
ref=
"goodsRef"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formObj=
"goodsFormObj"
:formData=
"goodsFormData"
>
<div
slot=
"categorySlot"
>
<div
slot=
"categorySlot"
>
<!--
<el-cascader
:props=
"categoryProps"
v-model=
"goodsFormObj.categoryCode"
:options=
"categoryList"
></el-cascader>
-->
<!--
<el-cascader
:props=
"categoryProps"
v-model=
"goodsFormObj.categoryCode"
:options=
"categoryList"
></el-cascader>
-->
<categoryCascader
:categoryCode
.
sync=
"goodsFormObj"
></categoryCascader>
<categoryCascader
:checkStrictly=
"true"
:categoryCode
.
sync=
"goodsFormObj"
></categoryCascader>
</div>
</div>
<div
slot=
"supplyPriceSlot"
>
<div
slot=
"supplyPriceSlot"
>
<inputNumRange
:formData=
"goodsFormObj"
:keyObj=
"
{from: 'startSellPrice', to:'endSellPrice'}">
</inputNumRange>
<inputNumRange
:formData=
"goodsFormObj"
:keyObj=
"
{from: 'startSellPrice', to:'endSellPrice'}">
</inputNumRange>
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
categoryCascader
from
'@/components/categoryCascader.vue'
import
categoryCascader
from
'@/components/categoryCascader.vue'
import
inputNumRange
from
'@/components/inputNumRange'
import
inputNumRange
from
'@/components/inputNumRange'
...
@@ -142,7 +142,7 @@ export default {
...
@@ -142,7 +142,7 @@ export default {
],
],
}
}
},
},
components
:
{
components
:
{
inputNumRange
,
inputNumRange
,
categoryCascader
categoryCascader
...
@@ -154,7 +154,7 @@ export default {
...
@@ -154,7 +154,7 @@ export default {
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
handleSizeChange
(
e
){
handleSizeChange
(
e
){
this
.
pageObj
.
pageSize
=
e
this
.
pageObj
.
pageSize
=
e
...
@@ -178,6 +178,14 @@ export default {
...
@@ -178,6 +178,14 @@ export default {
pageSize
,
pageSize
,
categoryCode
:
categoryCode
&&
categoryCode
.
length
?
categoryCode
[
categoryCode
.
length
-
1
]
:
''
categoryCode
:
categoryCode
&&
categoryCode
.
length
?
categoryCode
[
categoryCode
.
length
-
1
]
:
''
}
}
if
(
0
<
params
.
categoryCode
.
length
&&
params
.
categoryCode
.
length
<
6
)
{
let
name
=
params
.
categoryCode
.
length
==
2
?
'categoryCode1'
:
'categoryCode2'
params
[
name
]
=
params
.
categoryCode
delete
params
.
categoryCode
}
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
'Loading'
,
text
:
'Loading'
,
...
@@ -194,11 +202,11 @@ export default {
...
@@ -194,11 +202,11 @@ export default {
loading
.
close
()
loading
.
close
()
console
.
log
(
err
)
console
.
log
(
err
)
})
})
},
},
getCategoryList
(
node
,
resolve
){
getCategoryList
(
node
,
resolve
){
const
params
=
{
const
params
=
{
categoryCode
:
node
?.
value
,
categoryCode
:
node
?.
value
,
categoryLevel
:
node
?.
level
+
1
categoryLevel
:
node
?.
level
+
1
}
}
this
.
$apis
.
platformGoods
.
getCategoryListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
platformGoods
.
getCategoryListApi
(
params
).
then
(
res
=>
{
if
(
res
){
if
(
res
){
...
@@ -207,7 +215,7 @@ export default {
...
@@ -207,7 +215,7 @@ export default {
resolve
(
res
)
resolve
(
res
)
}
}
})
})
},
},
handleReset
(){
handleReset
(){
this
.
goodsFormObj
=
{
this
.
goodsFormObj
=
{
goodsSkuName
:
''
,
goodsSkuName
:
''
,
...
@@ -256,12 +264,12 @@ export default {
...
@@ -256,12 +264,12 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.ctnr
{
.ctnr
{
background-color
:
#fff
;
background-color
:
#fff
;
padding
:
20px
;
padding
:
20px
;
.noData{
.noData{
height
:
calc
(
100vh
-
310px
);
height
:
calc
(
100vh
-
310px
);
min-height
:
300px
;
min-height
:
300px
;
...
@@ -394,7 +402,6 @@ export default {
...
@@ -394,7 +402,6 @@ export default {
}
}
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/whiteList/index.vue
View file @
6fd71fa
...
@@ -104,7 +104,7 @@ export default {
...
@@ -104,7 +104,7 @@ export default {
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'
门店
名称'
,
label
:
'
商户
名称'
,
minWidth
:
300
,
minWidth
:
300
,
prop
:
'merchantName'
prop
:
'merchantName'
},
},
...
...
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