Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 44483511
authored
Aug 15, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
e7e4a5bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
src/views/inSale/purchase.vue
src/views/inSale/purchase.vue
View file @
4448351
...
...
@@ -41,7 +41,7 @@
<div
class=
"goodsItemCon"
v-for=
"(item, index) in purchaseList"
:class=
"[
{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index">
<!-- 图片
{{
item
.
thumbUrl
}}
-->
<img
:src=
"item.goodsInfo.thumbUrl
?item.goodsInfo.thumbUrl:
defaultImg"
class=
"img"
alt=
""
/>
<img
:src=
"item.goodsInfo.thumbUrl
? item.goodsInfo.thumbUrl :
defaultImg"
class=
"img"
alt=
""
/>
<span
class=
"goodsName one-line-ellipsis"
>
{{
item
.
upgradeGoods
.
upgradeGoodsName
}}
</span>
<!-- 名称
{{
item
.
goodsName
}}
-->
<span
class=
"purchaseOrderCount"
>
编码:
{{
item
.
upgradeGoods
.
type
}}
</span>
...
...
@@ -70,8 +70,9 @@
<el-form
ref=
"form"
label-width=
"94px"
size=
"small"
>
<el-form-item
label=
"购买数量/卷:"
>
<el-input-number
v-model=
"goodsNumber"
@
change=
"handleChange"
:min=
"1"
:max=
"9999"
></el-input-number>
{{
membraneTypeList
.
includes
(
goodsInfo
.
goodsInfo
&&
goodsInfo
.
goodsInfo
.
goodsType
)
?
`卷(1卷=${goodsInfo.goodsInfo&&goodsInfo.goodsInfo.convertedValue || 30
}
米)`
:
'件'
}}
:max=
"9999"
></el-input-number>
{{
membraneTypeList
.
includes
(
goodsInfo
.
goodsInfo
&&
goodsInfo
.
goodsInfo
.
goodsType
)
?
`卷(1卷=${goodsInfo.goodsInfo && goodsInfo.goodsInfo.convertedValue || 30
}
米)`
:
'件'
}}
<
/el-form-item
>
<
/el-form
>
<
/div
>
...
...
@@ -130,7 +131,7 @@ export default {
data
()
{
return
{
emptyImgUrl
:
require
(
'@/assets/empty.png'
),
defaultImg
:
require
(
'@/assets/default.png'
),
defaultImg
:
require
(
'@/assets/default.png'
),
addressComVisible
:
false
,
addressInfo
:
{
}
,
purchaseList
:
[],
...
...
@@ -212,7 +213,6 @@ export default {
this
.
$apis
.
purchase
.
listWithPagePurchaseInfo
(
params
)
.
then
(
result
=>
{
console
.
log
(
result
)
const
{
list
,
total
}
=
result
this
.
purchaseList
=
list
this
.
total
=
total
...
...
@@ -231,11 +231,17 @@ export default {
this
.
listWithPagePurchaseInfo
()
}
,
handleDetail
(
item
)
{
const
{
provinceName
}
=
this
.
addressInfo
if
(
provinceName
==
null
)
{
this
.
$message
.
error
(
'请先完善收货地址'
)
return
}
this
.
goodsInfo
=
item
this
.
totalPrice
=
new
BigNumber
(
this
.
goodsInfo
.
shopPurchasePrice
)
.
times
(
this
.
goodsNumber
)
.
dp
(
2
)
.
toNumber
()
this
.
isBuy
=
true
}
,
// 每页条数
...
...
@@ -266,7 +272,7 @@ export default {
areaName
}
if
(
provinceName
==
null
)
{
this
.
$message
.
error
(
'请先完善
发
货地址'
)
this
.
$message
.
error
(
'请先完善
收
货地址'
)
return
}
this
.
throttleSubmit
=
true
...
...
@@ -562,16 +568,19 @@ export default {
}
}
}
.
gl
-
form
-
page
{
.
gl
-
form
-
page
{
display
:
flex
;
justify
-
content
:
center
;
}
.
searchCon
{
.
searchCon
{
/
deep
/
.
el
-
input__inner
{
width
:
284
px
;
width
:
284
px
;
}
/deep/
.
el
-
form
-
item
{
margin
-
right
:
12
px
;
/deep/
.
el
-
form
-
item
{
margin
-
right
:
12
px
;
}
}
<
/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