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
4ca4c829
Commit
4ca4c829
authored
Nov 06, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskTime workHourManage
parent
acb8e040
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
split.vue
pages/mesPlan/split.vue
+14
-1
No files found.
pages/mesPlan/split.vue
View file @
4ca4c829
...
...
@@ -47,6 +47,7 @@
<DatePicker
v-model=
"row.demandDate"
type=
"daterange"
placeholder=
"请选择日期"
style=
"width:240px"
:transfer=
"true"
:options=
"optionsDate"
@
on-change=
"inputOrderCat(row,index)"
></DatePicker>
</
template
>
</Table>
<p>
剩余数量:{{amount}}
</p>
</div>
</template>
...
...
@@ -131,7 +132,8 @@ export default {
type
:
"number"
,
trigger
:
"change"
}]
}
},
amount
:
0
,
};
},
props
:
{
...
...
@@ -210,6 +212,15 @@ export default {
forDemandStartDate
,
forDemandFinishDate
];
let
splitAmount
=
0
this
.
dataList
.
forEach
(
el
=>
{
splitAmount
=
Number
(
splitAmount
)
+
Number
(
el
.
quantity
)
})
this
.
amount
=
this
.
orderForm
.
quantity
-
splitAmount
// setTimeout(() => {
// this.amount = this.orderForm.quantity - splitAmount
// }, 1000);
},
getFormatDate
(
dates
)
{
const
d
=
new
Date
(
dates
);
...
...
@@ -264,6 +275,8 @@ export default {
this
.
dataListRetrun
.
quantity
=
this
.
orderForm
.
quantity
;
this
.
dataListRetrun
.
mesCode
=
this
.
orderForm
.
mesCode
;
this
.
dataList
=
[]
this
.
amount
=
this
.
orderForm
.
quantity
}
}
}
...
...
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