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
ecd17fa7
Commit
ecd17fa7
authored
Apr 10, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mesPlan
parent
ee3ec524
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
574 additions
and
278 deletions
+574
-278
dataGrid.vue
components/page/dataGrid.vue
+1
-0
zh-CN.js
i18n/locale/zh-CN.js
+10
-1
add.vue
pages/mesPlan/add.vue
+376
-134
detail.vue
pages/mesPlan/detail.vue
+21
-35
edit.vue
pages/mesPlan/edit.vue
+143
-89
index.vue
pages/mesPlan/index.vue
+23
-19
No files found.
components/page/dataGrid.vue
View file @
ecd17fa7
...
...
@@ -237,6 +237,7 @@ export default {
type
:
Number
,
default
:
24
},
//table控件children子数据控制功能
rowKey
:{
type
:[
String
,
Number
]
}
...
...
i18n/locale/zh-CN.js
View file @
ecd17fa7
...
...
@@ -903,7 +903,7 @@ export default {
deleterUserId
:
'删除人'
,
mesCode
:
'订单编号'
,
taskType
:
'任务类型'
,
productId
:
'产品
主键
'
,
productId
:
'产品
Id
'
,
quantity
:
'数量'
,
remark
:
'备注'
,
taskRequire
:
'任务节点要求'
,
...
...
@@ -923,6 +923,15 @@ export default {
upId
:
'父订单id'
,
demandStartDate
:
'投料时间'
,
demandFinishDate
:
'节点时间'
,
//tempTitle------
stage
:
'阶段'
,
materialId
:
'材料'
,
routing_Method
:
'工艺方法'
,
outer_Envelope_Size
:
'外包络尺寸'
,
guestName
:
'甲方客户'
,
taskCode
:
'甲方任务号'
,
putintDocmentCode
:
'甲方投产输入文件(编号)'
,
technologyDocmentCode
:
'甲方技术输入文件(编号)'
,
},
mes_part_task_plan_simulate
:
{
id
:
''
,
...
...
pages/mesPlan/add.vue
View file @
ecd17fa7
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<div
style=
"width:100%;"
>
<Form
:model=
"orderSearchForm"
:label-width=
"95"
:rules=
"ruleValidate"
ref=
"formValidate"
>
<Row>
<Col
:span=
"12"
>
<FormItem
:label=
"l('mesCode')"
prop=
"mesCode"
>
<Input
v-model=
"entity.mesCode"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('taskType')"
prop=
"taskType"
>
<Dictionary
code=
"mes.mes_plan.task_type"
v-model=
"entity.taskType"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productId')"
prop=
"productId"
>
<InputNumber
v-model=
"entity.productId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<InputNumber
v-model=
"entity.quantity"
></InputNumber>
<Col
span=
"8"
>
<FormItem
label=
"产品名称"
style=
"width:100%"
prop=
"productId"
>
<Select
v-model=
"orderSearchForm.productId"
:placeholder=
"placeholdeinfo"
style=
"width:240px;"
>
<Option
v-for=
"(item,index) in list"
:key=
"index"
:value=
"item.value"
style=
"display:none"
:label=
"item.label"
></Option>
<Tree
key=
"mytree"
:data=
"data1"
ref=
"mytree"
:render=
"renderContent"
></Tree>
</Select>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"5"
></Input>
<Col
span=
"8"
>
<FormItem
label=
"产品图号"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.drawnNumber"
style=
"width:240px"
disabled
/>
<Input
v-model=
"orderSearchForm.productName"
style=
"width:240px"
v-show=
"false"
/>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('taskRequire')"
prop=
"taskRequire"
>
<Input
v-model=
"entity.taskRequire"
type=
"textarea"
:rows=
"5"
></Input>
<Col
span=
"8"
>
<FormItem
label=
"任务类型"
style=
"width:100%"
prop=
"taskType"
>
<dictionary
code=
"plan.order.taskType"
v-model=
"orderSearchForm.taskType"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"mes.mes_plan.status"
v-model=
"entity.status"
></Dictionary>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
label=
"阶段"
style=
"width:100%"
prop=
"stage"
>
<dictionary
code=
"plan.order.stage"
v-model=
"orderSearchForm.stage"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('divideMark')"
prop=
"divideMark"
>
<Dictionary
code=
"mes.mes_plan.divide_mark"
v-model=
"entity.divideMark"
></Dictionary>
<Col
span=
"8"
>
<FormItem
label=
"材料"
style=
"width:100%"
prop=
"materialId"
>
<dictionary
code=
"plan.order.material"
v-model=
"orderSearchForm.materialId"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"24
"
>
<FormItem
:label=
"l('productCode')"
prop=
"productCode
"
>
<Input
v-model=
"entity.productCode"
type=
"textarea"
:rows=
"5"
></Input
>
<Col
span=
"8
"
>
<FormItem
label=
"数量"
style=
"width:100%"
prop=
"quantity
"
>
<InputNumber
:min=
"0"
v-model=
"orderSearchForm.quantity"
style=
"width:240px"
></InputNumber
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productName')"
prop=
"productName"
>
<Input
v-model=
"entity.productName"
></Input>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
label=
"工艺方法"
style=
"width:100%"
prop=
"routing_Method"
>
<dictionary
code=
"plan.order.routingMethod"
v-model=
"orderSearchForm.routing_Method"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('drawnNumber')"
prop=
"drawnNumber
"
>
<Input
v-model=
"entity.drawnNumber
"
></Input>
<Col
span=
"8
"
>
<FormItem
label=
"外包络尺寸(mm)"
style=
"width:100%
"
>
<Input
v-model=
"orderSearchForm.outer_Envelope_Size"
style=
"width:240px
"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('rootId')"
prop=
"rootId"
>
<InputNumber
v-model=
"entity.rootId"
></InputNumber>
<Col
span=
"8"
>
<FormItem
label=
"开始时间"
style=
"width:100%"
>
<DatePicker
type=
"date"
placeholder=
"请选择日期"
style=
"width:240px"
@
on-change=
"getStartDate"
v-model=
"orderSearchForm.demandStartDate"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('batchNumber')"
prop=
"batchNumber"
>
<Input
v-model=
"entity.batchNumber"
></Input>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
label=
"完成时间"
style=
"width:100%"
>
<DatePicker
type=
"date"
placeholder=
"请选择日期"
style=
"width:240px"
@
on-change=
"getFinishedDate"
v-model=
"orderSearchForm.demandFinishDate"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('projectNumber')"
prop=
"projectNumber"
>
<Input
v-model=
"entity.projectNumber"
></Input>
<Col
span=
"8"
>
<FormItem
label=
"甲方客户"
style=
"width:100%"
>
<dictionary
code=
"plan.order.guestName"
v-model=
"orderSearchForm.guestName"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('urgencyLevel')"
prop=
"urgencyLevel
"
>
<Dictionary
code=
"mes.mes_plan.urgency_level"
v-model=
"entity.urgencyLevel"
></Dictionary
>
<Col
span=
"8
"
>
<FormItem
label=
"项目号"
style=
"width:100%
"
>
<Input
v-model=
"orderSearchForm.projectNumber"
style=
"width:240px"
/
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productingPreparationPeople')"
prop=
"productingPreparationPeople"
>
<InputNumber
v-model=
"entity.productingPreparationPeople"
></InputNumber>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
label=
"批次号"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.batchNumber"
style=
"width:240px"
/>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productingPreparationFinishDate')"
prop=
"productingPreparationFinishDate"
>
<DatePicker
type=
"date"
v-model=
"entity.productingPreparationFinishDate"
></DatePicker>
<Col
span=
"8"
>
<FormItem
label=
"紧急程度"
style=
"width:100%"
>
<dictionary
style=
"width:240px"
code=
"plan.order.urgencyLevel"
v-model=
"orderSearchForm.urgencyLevel"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('quotationPeople')"
prop=
"quotationPeople
"
>
<InputNumber
v-model=
"entity.quotationPeople"
></InputNumber
>
<Col
span=
"8
"
>
<FormItem
label=
"甲方任务号"
style=
"width:100%
"
>
<Input
v-model=
"orderSearchForm.taskCode"
placeholder
style=
"width:240px"
/
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('quotationFinishDate')"
prop=
"quotationFinishDate"
>
<DatePicker
type=
"date"
v-model=
"entity.quotationFinishDate"
></DatePicker>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
label=
"任务节点要求"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.taskRequire"
placeholder
style=
"width:240px"
/>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('upId')"
prop=
"upId
"
>
<InputNumber
v-model=
"entity.upId"
></InputNumber
>
<Col
span=
"8
"
>
<FormItem
label=
"甲方投产输入文件(编号)"
style=
"width:100%
"
>
<Input
v-model=
"orderSearchForm.putintDocmentCode"
placeholder
style=
"width:240px"
/
>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('demandStartDate')"
prop=
"demandStartDate
"
>
<DatePicker
type=
"date"
v-model=
"entity.demandStartDate"
></DatePicker
>
<Col
span=
"8
"
>
<FormItem
label=
"甲方技术输入文件(编号)"
style=
"width:100%
"
>
<Input
v-model=
"orderSearchForm.technologyDocmentCode"
placeholder
style=
"width:240px"
/
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('demandFinishDate')"
prop=
"demandFinishDate"
>
<DatePicker
type=
"date"
v-model=
"entity.demandFinishDate"
></DatePicker>
</Row>
<Row>
<Col
span=
"24"
>
<FormItem
label=
"备注"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.remark"
placeholder
type=
"textarea"
:rows=
"3"
/>
</FormItem>
</Col>
</Row
>
<Col
span=
"24"
>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Col>
</Row>
</Form>
</div>
</
template
>
<
script
>
var
myDate
=
new
Date
();
var
dayTomorrow
=
new
Date
();
dayTomorrow
.
setTime
(
dayTomorrow
.
getTime
()
+
24
*
60
*
60
*
1000
);
var
nowDate
=
myDate
.
getFullYear
()
+
"-"
+
(
myDate
.
getMonth
()
+
1
)
+
"-"
+
myDate
.
getDate
();
var
tomorrowDate
=
dayTomorrow
.
getFullYear
()
+
"-"
+
(
dayTomorrow
.
getMonth
()
+
1
)
+
"-"
+
dayTomorrow
.
getDate
();
import
Api
from
"./api"
;
export
default
{
name
:
"Add"
,
data
()
{
return
{
disabled
:
false
,
entity
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
divHeight
:
"260px"
,
list
:
[],
data1
:
[],
selectdata
:
[],
placeholdeinfo
:
"请选择"
,
orderSearchForm
:
{
id
:
null
,
productId
:
null
,
//产品id
productName
:
""
,
//产品名称
drawnNumber
:
null
,
//图号
taskType
:
null
,
//任务类型
stage
:
null
,
//阶段
materialId
:
null
,
//材料
quantity
:
1
,
//数量
guestName
:
""
,
//甲方客户
printSupply
:
""
,
//3D打印承制单位
functionaryOffice
:
""
,
//厂内责任机关
mainDepartmentId
:
""
,
//厂内责任主体部门ID
taskRequire
:
""
,
//任务接点要求
putintDocmentCode
:
""
,
//甲方投产输入文件编号
technologyDocmentCode
:
""
,
//甲方技术输入文件编号
outerDrawnNumber
:
""
,
//外部图号/模型号
modelVersion
:
""
,
//模型版本
taskCode
:
""
,
//甲方任务号
designer
:
""
,
//甲方设计人员
officeFunctionary
:
""
,
//厂内机关负责人
mainRoutingPeople
:
""
,
//厂内主工艺人员
routing_Method
:
null
,
//工艺方法
outer_Envelope_Size
:
""
,
//包装尺寸
demandStartDate
:
this
.
getFormatDate
(
nowDate
),
//开始时间
demandFinishDate
:
this
.
getFormatDate
(
tomorrowDate
),
//完成时间
remark
:
""
,
//备注
projectNumber
:
""
,
//项目号
batchNumber
:
""
,
//批次号
urgencyLevel
:
null
//紧急程度
},
ruleValidate
:
{
productId
:
[
{
required
:
true
,
message
:
"请选择产品名称"
,
type
:
"number"
,
trigger
:
"change"
}
],
taskType
:
[
{
required
:
true
,
message
:
"请选择任务类型"
,
trigger
:
"change"
,
type
:
"number"
}
],
stage
:
[
{
required
:
true
,
message
:
"请选择阶段"
,
type
:
"number"
,
trigger
:
"change"
}
],
materialId
:
[
{
required
:
true
,
message
:
"请选择材料"
,
type
:
"number"
,
trigger
:
"change"
}
],
quantity
:
[
{
required
:
true
,
message
:
"请输入数量"
,
type
:
"number"
,
trigger
:
"change"
}
],
routing_Method
:
[
{
required
:
true
,
message
:
"请选择工艺方法"
,
type
:
"number"
,
trigger
:
"change"
}
]
}
};
},
props
:
{
v
:
Object
mounted
()
{
this
.
loadTree
()
},
methods
:
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{
this
.
$refs
.
form
Validate
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
Api
.
create
(
this
.
entity
)
...
...
@@ -161,17 +297,123 @@ export default {
});
},
handleClose
()
{
this
.
resetFields
()
this
.
$emit
(
"on-close"
);
},
l
(
key
)
{
key
=
"mes_plan"
+
"."
+
key
;
return
this
.
$t
(
key
);
},
handleSelect
(
data
)
{
if
(
data
.
length
>
0
)
{
this
.
selectdata
=
[];
this
.
selectdata
=
data
;
this
.
list
=
[];
this
.
list
.
push
({
label
:
data
[
0
].
title
,
value
:
data
[
0
].
id
});
if
(
data
[
0
].
isProduct
==
"1"
)
{
this
.
orderSearchForm
.
productName
=
data
[
0
].
title
;
this
.
orderSearchForm
.
productId
=
data
[
0
].
productId
;
this
.
orderSearchForm
.
drawnNumber
=
data
[
0
].
drawingNo
;
}
else
{
this
.
$Message
.
error
(
"此节点不是产品,请选择产品节点!"
);
}
}
},
resetFields
()
{
this
.
orderSearchForm
=
{
productId
:
null
,
//产品id
productName
:
""
,
//产品名称
drawnNumber
:
null
,
//图号
taskType
:
null
,
//任务类型
stage
:
null
,
//阶段
materialId
:
null
,
//材料
quantity
:
1
,
//数量
guestName
:
""
,
//甲方客户
printSupply
:
""
,
//3D打印承制单位
functionaryOffice
:
""
,
//厂内责任机关
mainDepartmentId
:
""
,
//厂内责任主体部门ID
taskRequire
:
""
,
//任务接点要求
putintDocmentCode
:
""
,
//甲方投产输入文件编号
technologyDocmentCode
:
""
,
//甲方技术输入文件编号
outerDrawnNumber
:
""
,
//外部图号/模型号
modelVersion
:
""
,
//模型版本
taskCode
:
""
,
//甲方任务号
designer
:
""
,
//甲方设计人员
officeFunctionary
:
""
,
//厂内机关负责人
mainRoutingPeople
:
""
,
//厂内主工艺人员
routing_Method
:
null
,
//工艺方法
outer_Envelope_Size
:
""
,
//包装尺寸
demandStartDate
:
this
.
getFormatDate
(
nowDate
),
//开始时间
demandFinishDate
:
this
.
getFormatDate
(
tomorrowDate
),
//完成时间
remark
:
""
//备注
};
},
loadTree
()
{
//打开新增订单窗口加载产品
this
.
resetFields
();
var
sumData
=
[];
this
.
$http
.
order
.
getallselecttree
().
then
(
res
=>
{
if
(
res
.
result
)
{
for
(
var
i
=
0
;
i
<
res
.
result
.
length
;
i
++
)
{
sumData
=
sumData
.
concat
(
res
.
result
[
i
]);
}
this
.
data1
=
sumData
;
}
else
{
this
.
$Message
.
error
(
"加载产品树失败!"
);
}
});
},
renderContent
(
h
,
{
root
,
node
,
data
})
{
//渲染树的样式
return
h
(
"span"
,
{
style
:
{
color
:
data
.
isProduct
!=
"1"
?
"#249E91"
:
"#333"
,
//根据选中状态设置样式
cursor
:
"pointer"
},
on
:
{
click
:
()
=>
{
let
arrTree
=
[];
arrTree
.
push
(
data
);
this
.
handleSelect
(
arrTree
);
//手动选择树节点
}
}
},
data
.
title
);
},
//时间相关start
getStartDate
(
value
)
{
if
(
value
==
""
)
{
this
.
orderSearchForm
.
demandStartDate
=
this
.
getFormatDate
(
nowDate
);
}
else
{
this
.
orderSearchForm
.
demandStartDate
=
this
.
getFormatDate
(
value
);
}
},
getFinishedDate
(
value
)
{
if
(
value
==
""
)
{
this
.
orderSearchForm
.
demandFinishDate
=
this
.
getFormatDate
(
tomorrowDate
);
}
else
{
this
.
orderSearchForm
.
demandFinishDate
=
this
.
getFormatDate
(
value
);
}
},
getFormatDate
(
dates
)
{
const
d
=
new
Date
(
dates
);
const
resDate
=
d
.
getFullYear
()
+
"-"
+
this
.
p
(
d
.
getMonth
()
+
1
)
+
"-"
+
this
.
p
(
d
.
getDate
());
return
resDate
;
},
watch
:
{
v
()
{
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
);
p
(
s
)
{
return
s
<
10
?
"0"
+
s
:
s
;
}
//时间相关end
}
};
</
script
>
pages/mesPlan/detail.vue
View file @
ecd17fa7
...
...
@@ -2,59 +2,45 @@
<div
class=
"detail"
>
<Row>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
entity
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('taskType')"
>
{{
entity
.
taskType
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('productId')"
>
{{
entity
.
productId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('taskType')"
><state
code=
"plan.order.taskType"
:value=
"entity.taskType"
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
entity
.
quantity
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('taskRequire')"
>
{{
entity
.
taskRequire
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
entity
.
status
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('divideMark')"
>
{{
entity
.
divideMark
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('productCode')"
>
{{
entity
.
productCode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
><state
code=
"plan.order.status"
:value=
"entity.status"
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('productName')"
>
{{
entity
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawnNumber')"
>
{{
entity
.
drawnNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('rootId')"
>
{{
entity
.
rootId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('batchNumber')"
>
{{
entity
.
batchNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('projectNumber')"
>
{{
entity
.
projectNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('urgencyLevel')"
>
{{
entity
.
urgencyLevel
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('productingPreparationPeople')"
>
{{
entity
.
productingPreparationPeople
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('productingPreparationFinishDate')"
>
{{
entity
.
productingPreparationFinishDate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quotationPeople')"
>
{{
entity
.
quotationPeople
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quotationFinishDate')"
>
{{
entity
.
quotationFinishDate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('upId')"
>
{{
entity
.
upId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('urgencyLevel')"
><state
code=
"plan.order.urgencyLevel"
:value=
"entity.urgencyLevel"
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('demandStartDate')"
>
{{
entity
.
demandStartDate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('demandFinishDate')"
>
{{
entity
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('taskRequire')"
>
{{
entity
.
taskRequire
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
</Row>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
name
:
"
Add
"
,
name
:
"
detail
"
,
data
()
{
return
{
entity
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
};
},
props
:
{
eid
:
Number
row
:
{
type
:
Object
,
default
:
()
=>
{
return
null
;
}
}
},
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
$emit
(
"on-load"
);
});
},
//
load(v) {
//
Api.get({ id: v }).then(r => {
//
this.entity = r.result;
//
this.$emit("on-load");
//
});
//
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
...
...
@@ -64,9 +50,9 @@ export default {
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
row
(
v
)
{
if
(
v
!=
null
)
{
this
.
entity
=
this
.
$u
.
clone
(
this
.
row
);
}
}
}
...
...
pages/mesPlan/edit.vue
View file @
ecd17fa7
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90
"
>
<Form
:model=
"orderSearchForm"
:label-width=
"95"
:rules=
"ruleValidate"
ref=
"formValidate
"
>
<Row>
<Col
:span=
"12"
>
<FormItem
:label=
"l('mesCode')"
prop=
"mesCode"
>
<Input
v-model=
"entity.mesCode"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('taskType')"
prop=
"taskType"
>
<Dictionary
code=
"mes.mes_plan.task_type"
v-model=
"entity.taskType"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productId')"
prop=
"productId"
>
<InputNumber
v-model=
"entity.productId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<InputNumber
v-model=
"entity.quantity"
></InputNumber>
<!--
<Col
span=
"24"
>
<FormItem
label=
"订单编号"
style=
"width:100%"
>
{{
this
.
orderSearchForm
.
mesCode
}}
</FormItem>
</Col>
-->
<Col
span=
"8"
>
<FormItem
:label=
"l('productName')"
style=
"width:100%"
prop=
"productId"
>
<Select
v-model=
"orderSearchForm.productId"
:placeholder=
"placeholdeinfo"
style=
"width:240px;"
>
<Option
v-for=
"(item,index) in list"
:key=
"index"
:value=
"item.value"
style=
"display:none"
:label=
"item.label"
></Option>
<Tree
key=
"mytree"
:data=
"data1"
ref=
"mytree"
:render=
"renderContent"
></Tree>
</Select>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"5"
></Input>
<Col
span=
"8"
>
<FormItem
:label=
"l('drawnNumber')"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.drawnNumber"
style=
"width:240px"
disabled
/>
<Input
v-model=
"orderSearchForm.productName"
style=
"width:240px"
v-show=
"false"
/>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('taskRequire')"
prop=
"taskRequire"
>
<Input
v-model=
"entity.taskRequire"
type=
"textarea"
:rows=
"5"
></Input>
<Col
span=
"8"
>
<FormItem
:label=
"l('taskType')"
style=
"width:100%"
prop=
"taskType"
>
<dictionary
code=
"plan.order.taskType"
v-model=
"orderSearchForm.taskType"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"mes.mes_plan.status"
v-model=
"entity.status"
></Dictionary>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
:label=
"l('stage')"
style=
"width:100%"
prop=
"stage"
>
<dictionary
code=
"plan.order.stage"
v-model=
"orderSearchForm.stage"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('divideMark')"
prop=
"divideMark"
>
<Dictionary
code=
"mes.mes_plan.divide_mark"
v-model=
"entity.divideMark"
></Dictionary>
<Col
span=
"8"
>
<FormItem
:label=
"l('materialId')"
style=
"width:100%"
prop=
"materialId"
>
<dictionary
code=
"plan.order.material"
v-model=
"orderSearchForm.materialId"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"24
"
>
<FormItem
:label=
"l('
productCode')"
prop=
"productCode
"
>
<Input
v-model=
"entity.productCode"
type=
"textarea"
:rows=
"5"
></Input
>
<Col
span=
"8
"
>
<FormItem
:label=
"l('
quantity')"
style=
"width:100%"
prop=
"quantity
"
>
<Input
Number
:min=
"0"
v-model=
"orderSearchForm.quantity"
style=
"width:240px"
></InputNumber
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productName')"
prop=
"productName"
>
<Input
v-model=
"entity.productName"
></Input>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
:label=
"l('routing_Method')"
style=
"width:100%"
prop=
"routing_Method"
>
<dictionary
code=
"plan.order.routingMethod"
v-model=
"orderSearchForm.routing_Method"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('
drawnNumber')"
prop=
"drawnNumber
"
>
<Input
v-model=
"
entity.drawnNumber
"
></Input>
<Col
span=
"8
"
>
<FormItem
:label=
"l('
outer_Envelope_Size')"
style=
"width:100%
"
>
<Input
v-model=
"
orderSearchForm.outer_Envelope_Size"
style=
"width:240px
"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('rootId')"
prop=
"rootId"
>
<InputNumber
v-model=
"entity.rootId"
></InputNumber>
<Col
span=
"8"
>
<FormItem
:label=
"l('demandStartDate')"
style=
"width:100%"
>
<DatePicker
type=
"date"
placeholder=
"请选择日期"
style=
"width:240px"
@
on-change=
"getStartDate"
v-model=
"orderSearchForm.demandStartDate"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('batchNumber')"
prop=
"batchNumber"
>
<Input
v-model=
"entity.batchNumber"
></Input>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
:label=
"l('demandFinishDate')"
style=
"width:100%"
>
<DatePicker
type=
"date"
placeholder=
"请选择日期"
style=
"width:240px"
@
on-change=
"getFinishedDate"
v-model=
"orderSearchForm.demandFinishDate"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('projectNumber')"
prop=
"projectNumber"
>
<Input
v-model=
"entity.projectNumber"
></Input>
<Col
span=
"8"
>
<FormItem
:label=
"l('guestName')"
style=
"width:100%"
>
<dictionary
code=
"plan.order.guestName"
v-model=
"orderSearchForm.guestName"
style=
"width:240px"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('
urgencyLevel')"
prop=
"urgencyLevel
"
>
<
Dictionary
code=
"mes.mes_plan.urgency_level"
v-model=
"entity.urgencyLevel"
></Dictionary
>
<Col
span=
"8
"
>
<FormItem
:label=
"l('
projectNumber')"
style=
"width:100%
"
>
<
Input
v-model=
"orderSearchForm.projectNumber"
style=
"width:240px"
/
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productingPreparationPeople')"
prop=
"productingPreparationPeople"
>
<InputNumber
v-model=
"entity.productingPreparationPeople"
></InputNumber>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
:label=
"l('batchNumber')"
label=
"批次号"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.batchNumber"
style=
"width:240px"
/>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('productingPreparationFinishDate')"
prop=
"productingPreparationFinishDate"
>
<DatePicker
type=
"date"
v-model=
"entity.productingPreparationFinishDate"
></DatePicker>
<Col
span=
"8"
>
<FormItem
:label=
"l('urgencyLevel')"
style=
"width:100%"
>
<dictionary
style=
"width:240px"
code=
"plan.order.urgencyLevel"
v-model=
"orderSearchForm.urgencyLevel"
></dictionary>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('
quotationPeople')"
prop=
"quotationPeople
"
>
<Input
Number
v-model=
"entity.quotationPeople"
></InputNumber
>
<Col
span=
"8
"
>
<FormItem
:label=
"l('
taskCode')"
style=
"width:100%
"
>
<Input
v-model=
"orderSearchForm.taskCode"
placeholder
style=
"width:240px"
/
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('quotationFinishDate')"
prop=
"quotationFinishDate"
>
<DatePicker
type=
"date"
v-model=
"entity.quotationFinishDate"
></DatePicker>
</Row>
<Row>
<Col
span=
"8"
>
<FormItem
:label=
"l('taskRequire')"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.taskRequire"
placeholder
style=
"width:240px"
/>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('
upId')"
prop=
"upId
"
>
<Input
Number
v-model=
"entity.upId"
></InputNumber
>
<Col
span=
"8
"
>
<FormItem
:label=
"l('
putintDocmentCode')"
style=
"width:100%
"
>
<Input
v-model=
"orderSearchForm.putintDocmentCode"
placeholder
style=
"width:240px"
/
>
</FormItem>
</Col>
<Col
:span=
"12
"
>
<FormItem
:label=
"l('
demandStartDate')"
prop=
"demandStartDate
"
>
<
DatePicker
type=
"date"
v-model=
"entity.demandStartDate"
></DatePicker
>
<Col
span=
"8
"
>
<FormItem
:label=
"l('
technologyDocmentCode')"
style=
"width:100%
"
>
<
Input
v-model=
"orderSearchForm.technologyDocmentCode"
placeholder
style=
"width:240px"
/
>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('demandFinishDate')"
prop=
"demandFinishDate"
>
<DatePicker
type=
"date"
v-model=
"entity.demandFinishDate"
></DatePicker>
</Row>
<Row>
<Col
span=
"24"
>
<FormItem
:label=
"l('remark')"
style=
"width:100%"
>
<Input
v-model=
"orderSearchForm.remark"
placeholder
type=
"textarea"
:rows=
"3"
/>
</FormItem>
</Col>
</Row
>
<Col
span=
"24"
>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Col>
</Row>
</Form>
</
template
>
<
script
>
...
...
@@ -128,14 +175,19 @@ export default {
data
()
{
return
{
disabled
:
false
,
entity
:
{},
orderSearchForm
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
};
},
props
:
{
eid
:
Number
row
:
{
type
:
Object
,
default
:
()
=>
{
return
null
;
}
}
},
methods
:
{
load
(
v
)
{
...
...
@@ -148,7 +200,7 @@ export default {
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
Api
.
update
(
this
.
entity
)
Api
.
update
(
this
.
orderSearchForm
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
...
...
@@ -172,12 +224,14 @@ export default {
l
(
key
)
{
key
=
"mes_plan"
+
"."
+
key
;
return
this
.
$t
(
key
);
}
},
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
row
(
v
)
{
if
(
v
!=
null
)
{
this
.
orderSearchForm
=
this
.
$u
.
clone
(
this
.
row
);
}
}
}
...
...
pages/mesPlan/index.vue
View file @
ecd17fa7
...
...
@@ -28,9 +28,8 @@
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入
关键字
订单编号/产品名称"
placeholder=
"请输入订单编号/产品名称"
v-model=
"easySearch.keys.value"
style=
"width:240px;"
/>
</FormItem>
<FormItem>
...
...
@@ -49,14 +48,14 @@
<Button
type=
"primary"
class=
"mr10 ml10"
>
批量删除
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"addModal"
title=
"新增"
footer-hide
width=
"1
0
00"
>
<Modal
v-model=
"addModal"
title=
"新增"
footer-hide
width=
"1
2
00"
>
<Add
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
width=
"1
0
00"
>
<Edit
:
eid=
"curId
"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
width=
"1
2
00"
>
<Edit
:
row=
"rowData
"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
<Modal
v-model=
"detailModal"
title=
"详情"
width=
"1
0
00"
>
<Detail
:
eid=
"curId
"
/>
<Modal
v-model=
"detailModal"
title=
"详情"
width=
"1
2
00"
>
<Detail
:
row=
"rowData
"
/>
</Modal>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
<p>
确定删除?
</p>
...
...
@@ -137,13 +136,15 @@ export default {
title
:
this
.
l
(
"taskType"
),
align
:
"center"
,
high
:
true
,
code
:
"plan.order.taskType"
code
:
"plan.order.taskType"
,
width
:
100
,
},
{
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
),
align
:
"right"
,
high
:
true
high
:
true
,
width
:
80
,
},
{
key
:
"taskRequire"
,
...
...
@@ -158,7 +159,8 @@ export default {
title
:
this
.
l
(
"status"
),
align
:
"center"
,
high
:
true
,
code
:
"plan.order.status"
code
:
"plan.order.status"
,
width
:
100
,
},
{
key
:
"productCode"
,
...
...
@@ -199,9 +201,10 @@ export default {
{
key
:
"urgencyLevel"
,
title
:
this
.
l
(
"urgencyLevel"
),
align
:
"
left
"
,
align
:
"
center
"
,
high
:
true
,
code
:
"plan.order.urgencyLevel"
code
:
"plan.order.urgencyLevel"
,
width
:
100
,
},
{
key
:
"productingPreparationPeople"
,
...
...
@@ -256,7 +259,7 @@ export default {
"op"
,
{
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
)
}
},
"查看"
),
...
...
@@ -264,7 +267,7 @@ export default {
"op"
,
{
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
}
},
"编辑"
),
...
...
@@ -662,7 +665,8 @@ export default {
ownerGustList
:
[],
//甲方客户下拉
mainDeptList
:
[],
//厂内主体部门下拉
taskTypeList
:
[],
//任务类型
statusList
:
[]
//状态类型
statusList
:
[],
//状态类型
rowData
:{},
//编辑、查看的当前行数据
};
},
created
()
{
...
...
@@ -718,13 +722,13 @@ export default {
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
detail
(
id
)
{
detail
(
row
)
{
this
.
detailModal
=
true
;
this
.
curId
=
id
;
this
.
rowData
=
row
;
},
edit
(
id
)
{
edit
(
row
)
{
this
.
editModal
=
true
;
this
.
curId
=
id
;
this
.
rowData
=
row
;
},
remove
(
id
)
{
...
...
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