Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
76eb4646
Commit
76eb4646
authored
Sep 16, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 【ID1001759】【扳手会小程序-订单-完工基本信息页面】:选择了不使用物料,提交时还校验了物料的必填项。
parent
8aac43e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
XhParts.vue
src/components/createCom/XhParts.vue
+1
-1
complete.vue
src/pages/order/complete.vue
+2
-1
parts.vue
src/pages/order/parts.vue
+2
-1
No files found.
src/components/createCom/XhParts.vue
View file @
76eb4646
...
...
@@ -128,7 +128,7 @@ export default {
},
partsChange
(
val
,
index
)
{
this
.
$set
(
this
.
lists
[
index
],
'quantity'
,
val
)
this
.
valueChange
(
JSON
.
stringify
(
this
.
lists
))
this
.
valueChange
(
this
.
lists
.
length
>
0
?
JSON
.
stringify
(
this
.
lists
)
:
JSON
.
stringify
([{}]
))
},
minusValue
(
val
,
index
)
{
if
(
val
===
0
)
{
...
...
src/pages/order/complete.vue
View file @
76eb4646
...
...
@@ -254,7 +254,7 @@
:item=
"item"
:value=
"form[item.fieldsName] || ''"
:disabled=
"readOnly"
:maintainStep=
"
maintainStep
"
:maintainStep=
"
list[tabIndex].panelFieldsName
"
@
value-change=
"fieldValueChange"
>
</xh-parts>
...
...
@@ -1160,6 +1160,7 @@ export default {
// 申请费用计算
this
.
calcMoney
()
}
console
.
log
(
"this.form"
,
this
.
form
)
},
// 申请费用计算
calcMoney
()
{
...
...
src/pages/order/parts.vue
View file @
76eb4646
...
...
@@ -113,7 +113,7 @@ export default {
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
const
data
=
res
.
data
||
[]
this
.
lists
=
data
.
map
((
v
)
=>
{
const
lists
=
data
.
map
((
v
)
=>
{
const
max
=
v
.
stock
+
Number
(
v
.
useStock
)
v
.
min
=
1
v
.
checked
=
false
...
...
@@ -123,6 +123,7 @@ export default {
v
.
images
=
images
[
0
]
return
v
})
this
.
lists
=
lists
.
filter
(
v
=>
v
.
max
>
0
)
}
})
},
...
...
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