Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
da76c127
Commit
da76c127
authored
Jan 25, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
税率和含税单价 为0的时候,入库金额和入库单价及含税金额应该也是0,不能为空
parent
14431f53
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
21 deletions
+39
-21
index.vue
...mponents/components/BatchSignEditInstorageItems/index.vue
+9
-3
storageDetailsCreateCom.vue
...torageRecallItemCom/component/storageDetailsCreateCom.vue
+12
-6
storageDetailsCreateCom.vue
...arehousingNewOrEdit/component/storageDetailsCreateCom.vue
+12
-6
index.vue
...ivateComponents/components/StorageDetailsCreate/index.vue
+6
-6
No files found.
applications/dee-mes/src/privateComponents/components/BatchSignEditInstorageItems/index.vue
View file @
da76c127
...
...
@@ -276,6 +276,9 @@ export default {
isVirtualFlag
=
true
this
.
$set
(
this
.
form
,
'taxRate'
,
0
)
this
.
$set
(
this
.
form
,
'taxUnitPrice'
,
0
)
!
this
.
form
.
stockUnitPrice
&&
this
.
$set
(
this
.
form
,
'stockUnitPrice'
,
0
)
!
this
.
form
.
stockPrice
&&
this
.
$set
(
this
.
form
,
'stockPrice'
,
0
)
!
this
.
form
.
taxPrice
&&
this
.
$set
(
this
.
form
,
'taxPrice'
,
0
)
}
else
{
isVirtualFlag
=
false
}
...
...
@@ -292,6 +295,9 @@ export default {
isVirtualFlag
=
true
this
.
$set
(
this
.
form
,
'taxRate'
,
0
)
this
.
$set
(
this
.
form
,
'taxUnitPrice'
,
0
)
!
this
.
form
.
stockUnitPrice
&&
this
.
$set
(
this
.
form
,
'stockUnitPrice'
,
0
)
!
this
.
form
.
stockPrice
&&
this
.
$set
(
this
.
form
,
'stockPrice'
,
0
)
!
this
.
form
.
taxPrice
&&
this
.
$set
(
this
.
form
,
'taxPrice'
,
0
)
}
else
{
isVirtualFlag
=
false
}
...
...
@@ -1955,7 +1961,7 @@ export default {
taxPrice
:
(
this
.
form
.
taxUnitPrice
*
this
.
form
.
reqAmount
).
toFixed
(
2
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
taxPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
taxPrice
:
0
})
}
// 入库单价=含税单价/(1+税率/100)
...
...
@@ -1970,7 +1976,7 @@ export default {
).
toFixed
(
8
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockUnitPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockUnitPrice
:
0
})
}
// 入库金额=含税单价/(1+税率/100)* 入库数量
...
...
@@ -1986,7 +1992,7 @@ export default {
).
toFixed
(
2
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockPrice
:
0
})
}
},
save
()
{
...
...
applications/dee-mes/src/privateComponents/components/InStorageRecallItemCom/component/storageDetailsCreateCom.vue
View file @
da76c127
...
...
@@ -279,6 +279,9 @@ export default {
isVirtualFlag
=
true
this
.
$set
(
this
.
form
,
'taxRate'
,
0
)
this
.
$set
(
this
.
form
,
'taxUnitPrice'
,
0
)
!
this
.
form
.
stockUnitPrice
&&
this
.
$set
(
this
.
form
,
'stockUnitPrice'
,
0
)
!
this
.
form
.
stockPrice
&&
this
.
$set
(
this
.
form
,
'stockPrice'
,
0
)
!
this
.
form
.
taxPrice
&&
this
.
$set
(
this
.
form
,
'taxPrice'
,
0
)
}
else
{
isVirtualFlag
=
false
}
...
...
@@ -295,6 +298,9 @@ export default {
isVirtualFlag
=
true
this
.
$set
(
this
.
form
,
'taxRate'
,
0
)
this
.
$set
(
this
.
form
,
'taxUnitPrice'
,
0
)
!
this
.
form
.
stockUnitPrice
&&
this
.
$set
(
this
.
form
,
'stockUnitPrice'
,
0
)
!
this
.
form
.
stockPrice
&&
this
.
$set
(
this
.
form
,
'stockPrice'
,
0
)
!
this
.
form
.
taxPrice
&&
this
.
$set
(
this
.
form
,
'taxPrice'
,
0
)
}
else
{
isVirtualFlag
=
false
}
...
...
@@ -1958,7 +1964,7 @@ export default {
taxPrice
:
(
this
.
form
.
taxUnitPrice
*
this
.
form
.
reqAmount
).
toFixed
(
2
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
taxPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
taxPrice
:
0
})
}
// 入库单价=含税单价/(1+税率/100)
...
...
@@ -1973,7 +1979,7 @@ export default {
).
toFixed
(
8
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockUnitPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockUnitPrice
:
0
})
}
// 入库金额=含税单价/(1+税率/100)* 入库数量
...
...
@@ -1989,7 +1995,7 @@ export default {
).
toFixed
(
2
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockPrice
:
0
})
}
},
save
()
{
...
...
@@ -2023,11 +2029,11 @@ export default {
'urgency'
:
this
.
form
.
urgency
,
'arrivedDrawNo'
:
this
.
form
.
arrivedDrawNo
||
'/'
,
'arrivalVer'
:
this
.
form
.
arrivalVer
||
'/'
,
'stockUnitPrice'
:
this
.
form
.
stockUnitPrice
,
'stockUnitPrice'
:
this
.
form
.
stockUnitPrice
||
0
,
'taxRate'
:
this
.
form
.
taxRate
,
'stockPrice'
:
this
.
form
.
stockPrice
,
'stockPrice'
:
this
.
form
.
stockPrice
||
0
,
'taxUnitPrice'
:
this
.
form
.
taxUnitPrice
,
'taxPrice'
:
this
.
form
.
taxPrice
,
'taxPrice'
:
this
.
form
.
taxPrice
||
0
,
'storageZoneName'
:
this
.
form
.
storageZoneName
,
'storageZoneId'
:
typeof
(
this
.
form
.
storageZone
)
===
'object'
?
this
.
form
.
storageZone
.
id
:
this
.
form
.
storageZone
,
'storageZoneIdType'
:
'ExtDxProductWorkCenter'
,
...
...
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/component/storageDetailsCreateCom.vue
View file @
da76c127
...
...
@@ -277,6 +277,9 @@ export default {
isVirtualFlag
=
true
this
.
$set
(
this
.
form
,
'taxRate'
,
0
)
this
.
$set
(
this
.
form
,
'taxUnitPrice'
,
0
)
!
this
.
form
.
stockUnitPrice
&&
this
.
$set
(
this
.
form
,
'stockUnitPrice'
,
0
)
!
this
.
form
.
stockPrice
&&
this
.
$set
(
this
.
form
,
'stockPrice'
,
0
)
!
this
.
form
.
taxPrice
&&
this
.
$set
(
this
.
form
,
'taxPrice'
,
0
)
}
else
{
isVirtualFlag
=
false
}
...
...
@@ -293,6 +296,9 @@ export default {
isVirtualFlag
=
true
this
.
$set
(
this
.
form
,
'taxRate'
,
0
)
this
.
$set
(
this
.
form
,
'taxUnitPrice'
,
0
)
!
this
.
form
.
stockUnitPrice
&&
this
.
$set
(
this
.
form
,
'stockUnitPrice'
,
0
)
!
this
.
form
.
stockPrice
&&
this
.
$set
(
this
.
form
,
'stockPrice'
,
0
)
!
this
.
form
.
taxPrice
&&
this
.
$set
(
this
.
form
,
'taxPrice'
,
0
)
}
else
{
isVirtualFlag
=
false
}
...
...
@@ -1945,7 +1951,7 @@ export default {
taxPrice
:
(
this
.
form
.
taxUnitPrice
*
this
.
form
.
reqAmount
).
toFixed
(
2
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
taxPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
taxPrice
:
0
})
}
// 入库单价=含税单价/(1+税率/100)
...
...
@@ -1960,7 +1966,7 @@ export default {
).
toFixed
(
8
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockUnitPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockUnitPrice
:
0
})
}
// 入库金额=含税单价/(1+税率/100)* 入库数量
...
...
@@ -1976,7 +1982,7 @@ export default {
).
toFixed
(
2
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockPrice
:
0
})
}
},
save
()
{
...
...
@@ -2011,11 +2017,11 @@ export default {
'urgency'
:
this
.
form
.
urgency
,
'arrivedDrawNo'
:
this
.
form
.
arrivedDrawNo
||
'/'
,
'arrivalVer'
:
this
.
form
.
arrivalVer
||
'/'
,
'stockUnitPrice'
:
this
.
form
.
stockUnitPrice
,
'stockUnitPrice'
:
this
.
form
.
stockUnitPrice
||
0
,
'taxRate'
:
this
.
form
.
taxRate
,
'stockPrice'
:
this
.
form
.
stockPrice
,
'stockPrice'
:
this
.
form
.
stockPrice
||
0
,
'taxUnitPrice'
:
this
.
form
.
taxUnitPrice
,
'taxPrice'
:
this
.
form
.
taxPrice
,
'taxPrice'
:
this
.
form
.
taxPrice
||
0
,
'storageZoneName'
:
this
.
form
.
storageZoneName
,
'storageZoneId'
:
typeof
(
this
.
form
.
storageZone
)
===
'object'
?
this
.
form
.
storageZone
.
id
:
this
.
form
.
storageZone
,
'storageZoneIdType'
:
'ExtDxProductWorkCenter'
,
...
...
applications/dee-mes/src/privateComponents/components/StorageDetailsCreate/index.vue
View file @
da76c127
...
...
@@ -741,7 +741,7 @@ export default {
taxPrice
:
(
this
.
form
.
taxUnitPrice
*
this
.
form
.
reqAmount
).
toFixed
(
2
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
taxPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
taxPrice
:
0
})
}
// 入库单价=含税单价/(1+税率/100)
...
...
@@ -756,7 +756,7 @@ export default {
).
toFixed
(
8
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockUnitPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockUnitPrice
:
0
})
}
// 入库金额=含税单价/(1+税率/100)* 入库数量
...
...
@@ -772,7 +772,7 @@ export default {
).
toFixed
(
2
)
})
}
else
{
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockPrice
:
''
})
this
.
form
=
Object
.
assign
({},
this
.
form
,
{
stockPrice
:
0
})
}
},
save
()
{
...
...
@@ -800,11 +800,11 @@ export default {
'urgency'
:
this
.
form
.
urgency
,
'arrivedDrawNo'
:
this
.
form
.
arrivedDrawNo
,
'arrivalVer'
:
this
.
form
.
arrivalVer
,
'stockUnitPrice'
:
this
.
form
.
stockUnitPrice
,
'stockUnitPrice'
:
this
.
form
.
stockUnitPrice
||
0
,
'taxRate'
:
this
.
form
.
taxRate
,
'stockPrice'
:
this
.
form
.
stockPrice
,
'stockPrice'
:
this
.
form
.
stockPrice
||
0
,
'taxUnitPrice'
:
this
.
form
.
taxUnitPrice
,
'taxPrice'
:
this
.
form
.
taxPrice
,
'taxPrice'
:
this
.
form
.
taxPrice
||
0
,
'storageZoneId'
:
this
.
form
.
storageZone
,
'storageZoneIdType'
:
'ExtDxProductWorkCenter'
,
'inventoryReqId'
:
this
.
basicData
.
rows
.
id
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment