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
d3738e98
Commit
d3738e98
authored
Jul 01, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改配件最大默认数量
parent
7bd7f39e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
XhParts.vue
src/components/createCom/XhParts.vue
+3
-4
adjust.vue
src/components/select-parts/adjust.vue
+1
-1
addParts.vue
src/pages/parts/addParts.vue
+1
-1
No files found.
src/components/createCom/XhParts.vue
View file @
d3738e98
...
...
@@ -67,13 +67,12 @@
},
},
mounted
()
{
this
.
getWorkOrderParts
()
console
.
log
(
'-------getWorkOrderParts--------'
,
this
.
disabled
)
this
.
getWorkOrderParts
()
},
methods
:
{
getWorkOrderParts
()
{
// this.lists = JSON.parse(this.dataValue) || []
this
.
lists
=
this
.
dataValue
?
JSON
.
parse
(
this
.
dataValue
)
:
[]
// this.lists = JSON.parse(this.dataValue) || []
this
.
lists
=
this
.
dataValue
?
JSON
.
parse
(
this
.
dataValue
)
:
[]
},
partsChange
(
val
,
index
)
{
this
.
$set
(
this
.
lists
[
index
],
'quantity'
,
val
)
...
...
src/components/select-parts/adjust.vue
View file @
d3738e98
...
...
@@ -5,7 +5,7 @@
{{
info
.
name
}}
</view>
<view
class=
"num"
>
<u-number-box
v-if=
"!disabled"
v-model=
"info.quantity"
:min=
"info.min || 0"
:max=
"info.max || 999"
@
change=
"numChange"
></u-number-box>
<u-number-box
v-if=
"!disabled"
v-model=
"info.quantity"
:min=
"info.min || 0"
:max=
"info.max || 999
9
"
@
change=
"numChange"
></u-number-box>
<text
class=
"nums"
v-else
>
x
{{
info
.
quantity
||
1
}}
</text>
</view>
</view>
...
...
src/pages/parts/addParts.vue
View file @
d3738e98
...
...
@@ -194,7 +194,7 @@ export default {
const
lists
=
data
.
map
(
v
=>
{
v
.
quantity
=
0
v
.
disabled
=
true
v
.
max
=
999
v
.
max
=
999
9
const
images
=
v
.
images
?
v
.
images
.
split
(
','
)
:
[]
v
.
images
=
images
[
0
]
return
v
...
...
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