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 4bc4910f
authored
Oct 14, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(交付管理): 添加膜卷号显示与校验功能
在交付详情和新增页面添加膜卷号显示列,并实现膜卷号的必填校验和数量匹配校验
1 parent
8e92bbcd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
src/views/DeliverList/deliverAdd.vue
src/views/DeliverList/deliverDetail.vue
src/views/DeliverList/deliverAdd.vue
View file @
4bc4910
...
@@ -385,6 +385,7 @@ export default {
...
@@ -385,6 +385,7 @@ export default {
for
(
let
j
=
0
;
j
<
item
.
goodsWarehousingList
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
item
.
goodsWarehousingList
.
length
;
j
++
)
{
let
subItem
=
item
.
goodsWarehousingList
[
j
]
let
subItem
=
item
.
goodsWarehousingList
[
j
]
if
(
this
.
manageMode
)
{
if
(
this
.
manageMode
)
{
if
(
this
.
membraneTypeList
.
includes
(
item
.
goodsType
))
{
// 校验:膜卷号必填
// 校验:膜卷号必填
if
(
!
subItem
.
filmRollList
||
(
subItem
.
filmRollList
&&
subItem
.
filmRollList
.
length
==
0
))
{
if
(
!
subItem
.
filmRollList
||
(
subItem
.
filmRollList
&&
subItem
.
filmRollList
.
length
==
0
))
{
this
.
$message
({
this
.
$message
({
...
@@ -404,6 +405,7 @@ export default {
...
@@ -404,6 +405,7 @@ export default {
return
true
return
true
}
}
}
}
}
subItem
.
increaseStockNum
=
subItem
.
increaseStockNum
*
(
item
.
stockNum
/
item
.
purchaseNumber
)
subItem
.
increaseStockNum
=
subItem
.
increaseStockNum
*
(
item
.
stockNum
/
item
.
purchaseNumber
)
}
}
params
.
id
=
this
.
detailInfo
.
orderDeliveryId
params
.
id
=
this
.
detailInfo
.
orderDeliveryId
...
...
src/views/DeliverList/deliverDetail.vue
View file @
4bc4910
...
@@ -45,6 +45,15 @@
...
@@ -45,6 +45,15 @@
scope
.
scope
.
alternateUnits
).
toFixed
(
2
)
:
parseFloat
(
scope
.
scope
.
increaseStockNum
).
toFixed
(
2
))
+
scope
.
scope
.
alternateUnits
).
toFixed
(
2
)
:
parseFloat
(
scope
.
scope
.
increaseStockNum
).
toFixed
(
2
))
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'卷'
:
'件'
)
:
'-'
}}
<
/span
>
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'卷'
:
'件'
)
:
'-'
}}
<
/span
>
<
/template
>
<
/template
>
<
template
slot
=
"film"
slot
-
scope
=
"scope"
>
<
div
v
-
if
=
"manageMode && membraneTypeList.includes(scope.scope.goodsType)"
>
<
el
-
button
v
-
if
=
"!scope.scope.filmRollList"
type
=
"text"
>--<
/el-button
>
<
div
v
-
else
>
<
span
class
=
"film-txt"
>
{{
scope
.
scope
.
filmRollList
.
join
(
','
)
}}
<
/span
>
<
/div
>
<
/div
>
<
div
v
-
else
>--<
/div
>
<
/template
>
<
/GLTable
>
<
/GLTable
>
<
/el-form
>
<
/el-form
>
<
div
v
-
else
class
=
"message"
>
<
div
v
-
else
class
=
"message"
>
...
@@ -105,6 +114,11 @@ export default {
...
@@ -105,6 +114,11 @@ export default {
addHtml
:
'increaseStockNum'
addHtml
:
'increaseStockNum'
}
,
}
,
{
{
label
:
'膜卷号'
,
prop
:
'filmRollList'
,
addHtml
:
'film'
}
,
{
label
:
'入库仓库'
,
label
:
'入库仓库'
,
prop
:
'yqMerchantName'
prop
:
'yqMerchantName'
}
,
}
,
...
@@ -124,15 +138,23 @@ export default {
...
@@ -124,15 +138,23 @@ export default {
}
}
]
]
}
,
}
,
manageMode
:
false
,
tableData
:
[],
tableData
:
[],
detailInfo
:
{
}
detailInfo
:
{
}
}
}
}
,
}
,
created
()
{
}
,
created
()
{
this
.
getManageMode
()
}
,
methods
:
{
methods
:
{
handleDetailClose
()
{
handleDetailClose
()
{
this
.
dialogShow
=
false
this
.
dialogShow
=
false
}
,
}
,
getManageMode
()
{
this
.
$apis
.
purchaseShopping
.
getManageMode
({
}
).
then
(
res
=>
{
this
.
manageMode
=
res
}
)
}
,
getDetail
()
{
getDetail
()
{
this
.
$apis
.
delivery
.
getDeliveryDetail
({
id
:
this
.
id
}
).
then
(
res
=>
{
this
.
$apis
.
delivery
.
getDeliveryDetail
({
id
:
this
.
id
}
).
then
(
res
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
...
...
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