Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-purchase
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2e5c408d
authored
Nov 30, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
发货单单位换算错误
1 parent
ec993848
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
11 deletions
src/views/DeliverList/deliverDetail.vue
src/views/DeliverList/deliverDetail.vue
View file @
2e5c408
<
template
>
<GLDialog
v-if=
"dialogShow"
bigTitle=
"详细信息"
mode=
"big"
:visible
.
sync=
"dialogShow"
:close-on-click-modal=
"false"
:hasFooter=
"false"
>
<GLDialog
v-if=
"dialogShow"
bigTitle=
"详细信息"
mode=
"big"
:visible
.
sync=
"dialogShow"
:close-on-click-modal=
"false"
:hasFooter=
"false"
>
<div
class=
"detail-info"
>
<div>
发货单号:
...
...
@@ -23,18 +24,26 @@
</div>
<div>
发货数量:
<span>
{{
membraneTypeList
.
includes
(
detailInfo
.
goodsType
)
?
`${detailInfo.purchaseNumber
}
卷`
:
`${detailInfo.purchaseNumber
}
件`
}}
<
/span
>
<
span
class
=
"lookNumber"
@
click
=
"lookNumber(detailInfo.deliveryCardList)"
v
-
if
=
"detailInfo.deliveryCardList && detailInfo.deliveryCardList.length > 0"
>
查看卡号
<
/span
>
<span>
{{
membraneTypeList
.
includes
(
detailInfo
.
goodsType
)
?
`${detailInfo.purchaseNumber
}
卷`
:
`${detailInfo.purchaseNumber
}
件`
}}
<
/span
>
<
span
class
=
"lookNumber"
@
click
=
"lookNumber(detailInfo.deliveryCardList)"
v
-
if
=
"detailInfo.deliveryCardList && detailInfo.deliveryCardList.length > 0"
>
查看卡号
<
/span
>
<
/div
>
<
div
>
可用库存数量:
<
span
>
{{
detailInfo
.
stockNum
}}
{{
membraneTypeList
.
includes
(
detailInfo
.
goodsType
)
?
`米`
:
`件`
}}
<
/span
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"addForm"
:
model
=
"detailInfo"
size
=
"small"
v
-
if
=
"detailInfo.deliveryCardList === null||detailInfo.deliveryCardList.length==0"
>
<
GLTable
:
tableData
=
"detailInfo.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
el
-
form
ref
=
"addForm"
:
model
=
"detailInfo"
size
=
"small"
v
-
if
=
"detailInfo.deliveryCardList === null || detailInfo.deliveryCardList.length == 0"
>
<
GLTable
:
tableData
=
"detailInfo.goodsWarehousingList"
:
noDataImg
=
"url"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
>
<
template
slot
=
"increaseStockNum"
slot
-
scope
=
"scope"
>
<
span
>
{{
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
`${scope.scope.increaseStockNum
}
米`
:
`${scope.scope.increaseStockNum
}
件`
}}
<
/span
>
<!--
<
span
>
{{
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
`${scope.scope.increaseStockNum
}
米`
:
`${scope.scope.increaseStockNum
}
件`
}}
<
/span> --
>
<
span
>
{{
scope
.
scope
.
increaseStockNum
||
scope
.
scope
.
increaseStockNum
==
0
?
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
parseFloat
(
scope
.
scope
.
increaseStockNum
/
scope
.
scope
.
alternateUnits
).
toFixed
(
2
)
:
parseFloat
(
scope
.
scope
.
increaseStockNum
).
toFixed
(
2
))
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'卷'
:
'件'
)
:
'-'
}}
<
/span
>
<
/template
>
<
/GLTable
>
<
/el-form
>
...
...
@@ -44,7 +53,8 @@
<
/div
>
<!--
<
/template> --
>
<
el
-
dialog
width
=
"750px"
title
=
"查看发货卡号"
:
visible
.
sync
=
"innerVisible"
append
-
to
-
body
>
<
GLTable
class
=
"look-card-wrap"
:
tableData
=
"tableData"
:
noDataImg
=
"url"
:
tableParams
=
"innerParams"
:
hasPage
=
"false"
><
/GLTable
>
<
GLTable
class
=
"look-card-wrap"
:
tableData
=
"tableData"
:
noDataImg
=
"url"
:
tableParams
=
"innerParams"
:
hasPage
=
"false"
>
<
/GLTable
>
<
/el-dialog
>
<
/GLDialog
>
<
/template
>
...
...
@@ -124,8 +134,14 @@ export default {
}
,
getDetail
()
{
this
.
$apis
.
delivery
.
getDeliveryDetail
({
id
:
this
.
id
}
).
then
(
res
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
if
(
res
.
code
==
0
)
{
data
.
goodsWarehousingList
.
forEach
(
item
=>
{
// 换算单位
// item.deliveryDetailList.forEach(info =>
{
item
.
alternateUnits
=
data
?.
stockNum
/
data
?.
purchaseNumber
//
}
)
}
)
this
.
detailInfo
=
data
}
}
)
...
...
@@ -148,42 +164,49 @@ export default {
color
:
#
666666
ff
;
font
-
size
:
14
px
;
margin
-
bottom
:
16
px
;
span
{
color
:
#
333333
ff
;
}
.
add
-
btn
{
font
-
size
:
14
px
;
color
:
#
5850
ff
;
cursor
:
pointer
;
}
}
.
table
-
wrap
{
border
:
1
px
solid
#
e5e5e5
;
padding
:
16
px
;
box
-
sizing
:
border
-
box
;
margin
-
top
:
16
px
;
/deep/
.
el
-
form
-
item__error
{
padding
-
top
:
2
px
;
z
-
index
:
9999999
;
position
:
static
;
}
}
.
lookNumber
{
font
-
size
:
14
px
;
color
:
#
5850
ff
!
important
;
cursor
:
pointer
;
margin
-
left
:
8
px
;
}
.
look
-
card
-
wrap
{
max
-
height
:
600
px
;
overflow
-
y
:
scroll
;
overflow
-
x
:
hidden
;
/deep/
.
el
-
table
th
.
el
-
table__cell
>
.
cell
{
/deep/
.
el
-
table
th
.
el
-
table__cell
>
.
cell
{
padding
:
0
16
px
;
text
-
align
:
center
;
}
/deep/
.
el
-
table__body
td
.
el
-
table__cell
{
text
-
align
:
center
;
}
}
<
/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