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
3baca635
Commit
3baca635
authored
Apr 28, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order/add/params
parent
9584543b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
39 deletions
+27
-39
add.vue
pages/mesPlan/add.vue
+27
-39
No files found.
pages/mesPlan/add.vue
View file @
3baca635
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
</Col>
</Col>
</Row>
</Row>
<Row>
<Row>
<Col
span=
"8"
>
<Col
span=
"8"
>
<FormItem
label=
"数量"
style=
"width:100%"
prop=
"quantity"
>
<FormItem
label=
"数量"
style=
"width:100%"
prop=
"quantity"
>
<InputNumber
:min=
"0"
v-model=
"orderSearchForm.quantity"
style=
"width:240px"
></InputNumber>
<InputNumber
:min=
"0"
v-model=
"orderSearchForm.quantity"
style=
"width:240px"
></InputNumber>
...
@@ -72,7 +71,7 @@
...
@@ -72,7 +71,7 @@
<Input
v-model=
"orderSearchForm.projectNumber"
style=
"width:240px"
/>
<Input
v-model=
"orderSearchForm.projectNumber"
style=
"width:240px"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"8"
>
<Col
span=
"8"
>
<FormItem
label=
"批次号"
style=
"width:100%"
>
<FormItem
label=
"批次号"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.batchNumber"
style=
"width:240px"
/>
<Input
v-model=
"orderSearchForm.batchNumber"
style=
"width:240px"
/>
</FormItem>
</FormItem>
...
@@ -90,7 +89,7 @@
...
@@ -90,7 +89,7 @@
<Row>
<Row>
<Col
span=
"24"
>
<Col
span=
"24"
>
<FormItem
label=
"任务节点要求"
style=
"width:100%"
>
<FormItem
label=
"任务节点要求"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.taskRequire"
placeholder
/>
<Input
v-model=
"orderSearchForm.taskRequire"
placeholder
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"24"
>
<Col
span=
"24"
>
...
@@ -169,20 +168,20 @@ export default {
...
@@ -169,20 +168,20 @@ export default {
type
:
"number"
,
type
:
"number"
,
trigger
:
"change"
trigger
:
"change"
}
}
]
,
]
},
},
disabled
:
false
,
disabled
:
false
};
};
},
},
mounted
(){
mounted
()
{
this
.
loadTree
()
this
.
loadTree
()
;
},
},
methods
:
{
methods
:
{
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
formValidate
.
validate
(
v
=>
{
this
.
$refs
.
formValidate
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
disabled
=
true
;
this
.
orderSearchForm
.
status
=
1
this
.
orderSearchForm
.
status
=
1
;
Api
.
mesplancreate
(
this
.
orderSearchForm
)
Api
.
mesplancreate
(
this
.
orderSearchForm
)
.
then
(
r
=>
{
.
then
(
r
=>
{
this
.
disabled
=
false
;
this
.
disabled
=
false
;
...
@@ -202,7 +201,7 @@ export default {
...
@@ -202,7 +201,7 @@ export default {
});
});
},
},
handleClose
()
{
handleClose
()
{
this
.
resetFields
()
this
.
resetFields
()
;
this
.
$emit
(
"on-close"
);
this
.
$emit
(
"on-close"
);
},
},
l
(
key
)
{
l
(
key
)
{
...
@@ -225,33 +224,20 @@ export default {
...
@@ -225,33 +224,20 @@ export default {
}
}
},
},
resetFields
()
{
resetFields
()
{
this
.
orderSearchForm
=
{
this
.
orderSearchForm
=
{
productId
:
null
,
//产品id
productId
:
null
,
//产品id
productName
:
""
,
//产品名称
productName
:
""
,
//产品名称
drawnNumber
:
null
,
//图号
drawnNumber
:
null
,
//图号
taskType
:
null
,
//任务类型
taskType
:
null
,
//任务类型
stage
:
null
,
//阶段
quantity
:
1
,
//数量
materialId
:
null
,
//材料
taskRequire
:
""
,
//任务接点要求
quantity
:
1
,
//数量
demandStartDate
:
this
.
getFormatDate
(
nowDate
),
//开始时间
guestName
:
""
,
//甲方客户
demandFinishDate
:
this
.
getFormatDateEnd
(
tomorrowDate
),
//完成时间
printSupply
:
""
,
//3D打印承制单位
remark
:
""
,
//备注
functionaryOffice
:
""
,
//厂内责任机关
projectNumber
:
""
,
//项目号
mainDepartmentId
:
""
,
//厂内责任主体部门ID
batchNumber
:
""
,
//批次号
taskRequire
:
""
,
//任务接点要求
urgencyLevel
:
null
//紧急程度
putintDocmentCode
:
""
,
//甲方投产输入文件编号
};
technologyDocmentCode
:
""
,
//甲方技术输入文件编号
outerDrawnNumber
:
""
,
//外部图号/模型号
modelVersion
:
""
,
//模型版本
taskCode
:
""
,
//甲方任务号
designer
:
""
,
//甲方设计人员
officeFunctionary
:
""
,
//厂内机关负责人
mainRoutingPeople
:
""
,
//厂内主工艺人员
routing_Method
:
null
,
//工艺方法
outer_Envelope_Size
:
""
,
//包装尺寸
demandStartDate
:
this
.
getFormatDate
(
nowDate
),
//开始时间
demandFinishDate
:
this
.
getFormatDate
(
tomorrowDate
),
//完成时间
remark
:
""
//备注
};
},
},
loadTree
()
{
loadTree
()
{
//打开新增订单窗口加载产品
//打开新增订单窗口加载产品
...
@@ -312,7 +298,8 @@ export default {
...
@@ -312,7 +298,8 @@ export default {
"-"
+
"-"
+
this
.
p
(
d
.
getMonth
()
+
1
)
+
this
.
p
(
d
.
getMonth
()
+
1
)
+
"-"
+
"-"
+
this
.
p
(
d
.
getDate
())
+
" 00:00:01"
;
this
.
p
(
d
.
getDate
())
+
" 00:00:01"
;
return
resDate
;
return
resDate
;
},
},
getFormatDateEnd
(
dates
)
{
getFormatDateEnd
(
dates
)
{
...
@@ -322,13 +309,14 @@ export default {
...
@@ -322,13 +309,14 @@ export default {
"-"
+
"-"
+
this
.
p
(
d
.
getMonth
()
+
1
)
+
this
.
p
(
d
.
getMonth
()
+
1
)
+
"-"
+
"-"
+
this
.
p
(
d
.
getDate
())
+
" 23:59:59"
;
this
.
p
(
d
.
getDate
())
+
" 23:59:59"
;
return
resDate
;
return
resDate
;
},
},
p
(
s
)
{
p
(
s
)
{
return
s
<
10
?
"0"
+
s
:
s
;
return
s
<
10
?
"0"
+
s
:
s
;
}
}
//时间相关end
//时间相关end
}
}
};
};
</
script
>
</
script
>
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