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
Show 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 @@
...
@@ -41,7 +41,7 @@
<div
class=
"goodsItemCon"
v-for=
"(item, index) in purchaseList"
<div
class=
"goodsItemCon"
v-for=
"(item, index) in purchaseList"
:class=
"[
{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index">
:class=
"[
{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index">
<!-- 图片
{{
item
.
thumbUrl
}}
-->
<!-- 图片
{{
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>
<span
class=
"goodsName one-line-ellipsis"
>
{{
item
.
upgradeGoods
.
upgradeGoodsName
}}
</span>
<!-- 名称
{{
item
.
goodsName
}}
-->
<!-- 名称
{{
item
.
goodsName
}}
-->
<span
class=
"purchaseOrderCount"
>
编码:
{{
item
.
upgradeGoods
.
type
}}
</span>
<span
class=
"purchaseOrderCount"
>
编码:
{{
item
.
upgradeGoods
.
type
}}
</span>
...
@@ -70,8 +70,9 @@
...
@@ -70,8 +70,9 @@
<el-form
ref=
"form"
label-width=
"94px"
size=
"small"
>
<el-form
ref=
"form"
label-width=
"94px"
size=
"small"
>
<el-form-item
label=
"购买数量/卷:"
>
<el-form-item
label=
"购买数量/卷:"
>
<el-input-number
v-model=
"goodsNumber"
@
change=
"handleChange"
:min=
"1"
<el-input-number
v-model=
"goodsNumber"
@
change=
"handleChange"
:min=
"1"
:max=
"9999"
></el-input-number>
{{
membraneTypeList
.
includes
(
goodsInfo
.
goodsInfo
&&
goodsInfo
.
goodsInfo
.
goodsType
)
?
:max=
"9999"
></el-input-number>
{{
`卷(1卷=${goodsInfo.goodsInfo&&goodsInfo.goodsInfo.convertedValue || 30
}
米)`
:
'件'
}}
membraneTypeList
.
includes
(
goodsInfo
.
goodsInfo
&&
goodsInfo
.
goodsInfo
.
goodsType
)
?
`卷(1卷=${goodsInfo.goodsInfo && goodsInfo.goodsInfo.convertedValue || 30
}
米)`
:
'件'
}}
<
/el-form-item
>
<
/el-form-item
>
<
/el-form
>
<
/el-form
>
<
/div
>
<
/div
>
...
@@ -130,7 +131,7 @@ export default {
...
@@ -130,7 +131,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
emptyImgUrl
:
require
(
'@/assets/empty.png'
),
emptyImgUrl
:
require
(
'@/assets/empty.png'
),
defaultImg
:
require
(
'@/assets/default.png'
),
defaultImg
:
require
(
'@/assets/default.png'
),
addressComVisible
:
false
,
addressComVisible
:
false
,
addressInfo
:
{
}
,
addressInfo
:
{
}
,
purchaseList
:
[],
purchaseList
:
[],
...
@@ -212,7 +213,6 @@ export default {
...
@@ -212,7 +213,6 @@ export default {
this
.
$apis
.
purchase
this
.
$apis
.
purchase
.
listWithPagePurchaseInfo
(
params
)
.
listWithPagePurchaseInfo
(
params
)
.
then
(
result
=>
{
.
then
(
result
=>
{
console
.
log
(
result
)
const
{
list
,
total
}
=
result
const
{
list
,
total
}
=
result
this
.
purchaseList
=
list
this
.
purchaseList
=
list
this
.
total
=
total
this
.
total
=
total
...
@@ -231,11 +231,17 @@ export default {
...
@@ -231,11 +231,17 @@ export default {
this
.
listWithPagePurchaseInfo
()
this
.
listWithPagePurchaseInfo
()
}
,
}
,
handleDetail
(
item
)
{
handleDetail
(
item
)
{
const
{
provinceName
}
=
this
.
addressInfo
if
(
provinceName
==
null
)
{
this
.
$message
.
error
(
'请先完善收货地址'
)
return
}
this
.
goodsInfo
=
item
this
.
goodsInfo
=
item
this
.
totalPrice
=
new
BigNumber
(
this
.
goodsInfo
.
shopPurchasePrice
)
this
.
totalPrice
=
new
BigNumber
(
this
.
goodsInfo
.
shopPurchasePrice
)
.
times
(
this
.
goodsNumber
)
.
times
(
this
.
goodsNumber
)
.
dp
(
2
)
.
dp
(
2
)
.
toNumber
()
.
toNumber
()
this
.
isBuy
=
true
this
.
isBuy
=
true
}
,
}
,
// 每页条数
// 每页条数
...
@@ -266,7 +272,7 @@ export default {
...
@@ -266,7 +272,7 @@ export default {
areaName
areaName
}
}
if
(
provinceName
==
null
)
{
if
(
provinceName
==
null
)
{
this
.
$message
.
error
(
'请先完善
发
货地址'
)
this
.
$message
.
error
(
'请先完善
收
货地址'
)
return
return
}
}
this
.
throttleSubmit
=
true
this
.
throttleSubmit
=
true
...
@@ -562,16 +568,19 @@ export default {
...
@@ -562,16 +568,19 @@ export default {
}
}
}
}
}
}
.
gl
-
form
-
page
{
.
gl
-
form
-
page
{
display
:
flex
;
display
:
flex
;
justify
-
content
:
center
;
justify
-
content
:
center
;
}
}
.
searchCon
{
.
searchCon
{
/
deep
/
.
el
-
input__inner
{
/
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
>
<
/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