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
99a2724e
Commit
99a2724e
authored
Nov 06, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split
parent
dc9bb3c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
split.vue
pages/mesPlan/split.vue
+11
-11
No files found.
pages/mesPlan/split.vue
View file @
99a2724e
...
...
@@ -81,14 +81,14 @@ export default {
productName
:
""
,
//产品名称
drawingNo
:
""
,
//图号
orderCat
:
""
,
//任务类型
quantity
:
""
,
//数量
quantity
:
0
,
//数量
remark
:
""
//备注
},
orderForm
:
{
mesCode
:
""
,
//订单编号
productName
:
""
,
//产品名称
stage
:
""
,
//阶段
quantity
:
""
,
//数量
quantity
:
0
,
//数量
planStartTime
:
""
,
//计划开始时间
planEndTime
:
""
,
//计划结束时间
splitQuantity
:
2
,
//分解数量
...
...
@@ -153,7 +153,7 @@ export default {
//打开modal层时给订单list赋值
//alert(JSON.stringify(data))
this
.
dataListRetrun
.
id
=
data
[
0
].
id
;
this
.
dataListRetrun
.
quantity
=
data
[
0
].
quantity
;
this
.
dataListRetrun
.
quantity
=
Number
(
data
[
0
].
quantity
)
;
this
.
dataListRetrun
.
mesCode
=
data
[
0
].
mesCode
;
this
.
orderInfo
=
[];
this
.
dataList
=
[];
...
...
@@ -162,7 +162,7 @@ export default {
mesCode
:
this
.
orderInfo
.
mesCode
,
//订单编号
productName
:
this
.
orderInfo
.
productName
,
//产品名称
stage
:
this
.
orderInfo
.
stage
,
//阶段
quantity
:
this
.
orderInfo
.
quantity
,
//数量
quantity
:
Number
(
this
.
orderInfo
.
quantity
)
,
//数量
planStartTime
:
this
.
orderInfo
.
demandStartDate
,
//计划开始时间
planEndTime
:
this
.
orderInfo
.
demandFinishDate
,
//计划结束时间
splitQuantity
:
2
,
//分解数量
...
...
@@ -190,7 +190,7 @@ export default {
this
.
dataList
.
push
({
mesCode
:
i
+
1
<
10
?
mesCodeSon
+
"0"
+
(
i
+
1
)
:
mesCodeSon
+
""
+
(
i
+
1
),
quantity
:
""
,
quantity
:
0
,
demandDate
:
[
planStartTime
,
planEndTime
],
demandStartDate
:
planStartTime
,
demandFinishDate
:
planEndTime
...
...
@@ -209,7 +209,7 @@ export default {
let
forDemandStartDate
=
this
.
getFormatDate
(
row
.
demandDate
[
0
]);
let
forDemandFinishDate
=
this
.
getFormatDate
(
row
.
demandDate
[
1
]);
this
.
dataListRetrun
.
items
[
index
].
mesCode
=
row
.
mesCode
;
this
.
dataListRetrun
.
items
[
index
].
quantity
=
row
.
quantity
;
this
.
dataListRetrun
.
items
[
index
].
quantity
=
Number
(
row
.
quantity
)
;
this
.
dataListRetrun
.
items
[
index
].
demandStartDate
=
forDemandStartDate
;
this
.
dataListRetrun
.
items
[
index
].
demandFinishDate
=
forDemandFinishDate
;
this
.
dataList
[
index
].
demandDate
=
[
...
...
@@ -220,10 +220,10 @@ export default {
this
.
dataList
.
forEach
(
el
=>
{
splitAmount
=
Number
(
splitAmount
)
+
Number
(
el
.
quantity
)
})
this
.
amount
=
this
.
orderForm
.
quantity
-
splitAmount
this
.
amount
=
Number
(
this
.
orderForm
.
quantity
)
-
splitAmount
},
inputFocus
(
row
,
index
)
{
this
.
amountMax
=
this
.
amount
+
row
.
quantity
this
.
amountMax
=
this
.
amount
+
Number
(
row
.
quantity
)
},
getFormatDate
(
dates
)
{
const
d
=
new
Date
(
dates
);
...
...
@@ -259,7 +259,7 @@ export default {
mesCode
:
this
.
orderInfo
.
mesCode
,
//订单编号
productName
:
""
,
//产品名称
stage
:
""
,
//阶段
quantity
:
""
,
//数量
quantity
:
0
,
//数量
planStartTime
:
""
,
//计划开始时间
planEndTime
:
""
,
//计划结束时间
splitQuantity
:
2
,
//分解数量
...
...
@@ -275,11 +275,11 @@ export default {
this
.
orderForm
.
planEndTime
=
this
.
orderForm
.
demandFinishDate
;
//this.orderForm.splitQuantity = 2;
this
.
dataListRetrun
.
id
=
this
.
orderForm
.
id
;
this
.
dataListRetrun
.
quantity
=
this
.
orderForm
.
quantity
;
this
.
dataListRetrun
.
quantity
=
Number
(
this
.
orderForm
.
quantity
)
;
this
.
dataListRetrun
.
mesCode
=
this
.
orderForm
.
mesCode
;
this
.
dataList
=
[]
this
.
amount
=
this
.
orderForm
.
quantity
this
.
amount
=
Number
(
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