Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
337114dd
Commit
337114dd
authored
May 22, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split
parent
ddf941b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
split.vue
pages/mesPlan/split.vue
+7
-2
No files found.
pages/mesPlan/split.vue
View file @
337114dd
...
...
@@ -39,7 +39,7 @@
</Col>
<Col
span=
"12"
>
<FormItem
label=
"分解数量"
style=
"width:100%"
prop=
"splitQuantity"
>
<InputNumber
:min=
"
1"
v-model=
"orderForm.splitQuantity"
:step=
"1
"
style=
"width:180px"
></InputNumber>
<InputNumber
:min=
"
0"
v-model=
"orderForm.splitQuantity
"
style=
"width:180px"
></InputNumber>
<Button
type=
"primary"
@
click=
"addSplitOrder"
>
确定
</Button>
</FormItem>
</Col>
...
...
@@ -177,6 +177,11 @@ export default {
},
//确定增加数量
addSplitOrder
()
{
if
(
this
.
orderForm
.
splitQuantity
<
2
||
this
.
orderForm
.
splitQuantity
==
undefined
)
{
this
.
dataList
=
[];
return
;
}
if
(
this
.
orderForm
.
quantity
>=
this
.
orderForm
.
splitQuantity
)
{
this
.
dataListRetrun
.
items
=
[];
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
...
...
@@ -267,7 +272,7 @@ export default {
this
.
orderForm
=
this
.
$u
.
clone
(
this
.
row
);
this
.
orderForm
.
planStartTime
=
this
.
orderForm
.
demandStartDate
;
this
.
orderForm
.
planEndTime
=
this
.
orderForm
.
demandFinishDate
;
this
.
orderForm
.
splitQuantity
=
2
;
//
this.orderForm.splitQuantity = 2;
this
.
dataListRetrun
.
id
=
this
.
orderForm
.
id
;
this
.
dataListRetrun
.
quantity
=
this
.
orderForm
.
quantity
;
this
.
dataListRetrun
.
mesCode
=
this
.
orderForm
.
mesCode
;
...
...
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