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
Expand all
Hide 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 {
...
@@ -237,6 +237,7 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
24
default
:
24
},
},
//table控件children子数据控制功能
rowKey
:{
rowKey
:{
type
:[
String
,
Number
]
type
:[
String
,
Number
]
}
}
...
...
i18n/locale/zh-CN.js
View file @
ecd17fa7
...
@@ -903,7 +903,7 @@ export default {
...
@@ -903,7 +903,7 @@ export default {
deleterUserId
:
'删除人'
,
deleterUserId
:
'删除人'
,
mesCode
:
'订单编号'
,
mesCode
:
'订单编号'
,
taskType
:
'任务类型'
,
taskType
:
'任务类型'
,
productId
:
'产品
主键
'
,
productId
:
'产品
Id
'
,
quantity
:
'数量'
,
quantity
:
'数量'
,
remark
:
'备注'
,
remark
:
'备注'
,
taskRequire
:
'任务节点要求'
,
taskRequire
:
'任务节点要求'
,
...
@@ -923,6 +923,15 @@ export default {
...
@@ -923,6 +923,15 @@ export default {
upId
:
'父订单id'
,
upId
:
'父订单id'
,
demandStartDate
:
'投料时间'
,
demandStartDate
:
'投料时间'
,
demandFinishDate
:
'节点时间'
,
demandFinishDate
:
'节点时间'
,
//tempTitle------
stage
:
'阶段'
,
materialId
:
'材料'
,
routing_Method
:
'工艺方法'
,
outer_Envelope_Size
:
'外包络尺寸'
,
guestName
:
'甲方客户'
,
taskCode
:
'甲方任务号'
,
putintDocmentCode
:
'甲方投产输入文件(编号)'
,
technologyDocmentCode
:
'甲方技术输入文件(编号)'
,
},
},
mes_part_task_plan_simulate
:
{
mes_part_task_plan_simulate
:
{
id
:
''
,
id
:
''
,
...
...
pages/mesPlan/add.vue
View file @
ecd17fa7
This diff is collapsed.
Click to expand it.
pages/mesPlan/detail.vue
View file @
ecd17fa7
...
@@ -2,59 +2,45 @@
...
@@ -2,59 +2,45 @@
<div
class=
"detail"
>
<div
class=
"detail"
>
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
entity
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
entity
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('taskType')"
>
{{
entity
.
taskType
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('taskType')"
><state
code=
"plan.order.taskType"
:value=
"entity.taskType"
type=
"text"
></state></Filed>
<Filed
:span=
"12"
:name=
"l('productId')"
>
{{
entity
.
productId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
entity
.
quantity
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
entity
.
quantity
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
><state
code=
"plan.order.status"
:value=
"entity.status"
type=
"text"
></state></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('productName')"
>
{{
entity
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('productName')"
>
{{
entity
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawnNumber')"
>
{{
entity
.
drawnNumber
}}
</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('batchNumber')"
>
{{
entity
.
batchNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('projectNumber')"
>
{{
entity
.
projectNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('projectNumber')"
>
{{
entity
.
projectNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('urgencyLevel')"
>
{{
entity
.
urgencyLevel
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('urgencyLevel')"
><state
code=
"plan.order.urgencyLevel"
:value=
"entity.urgencyLevel"
type=
"text"
></state></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('demandStartDate')"
>
{{
entity
.
demandStartDate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('demandStartDate')"
>
{{
entity
.
demandStartDate
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('demandFinishDate')"
>
{{
entity
.
demandFinishDate
}}
</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>
</Row>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
"
Add
"
,
name
:
"
detail
"
,
data
()
{
data
()
{
return
{
return
{
entity
:
{},
entity
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
};
};
},
},
props
:
{
props
:
{
eid
:
Number
row
:
{
type
:
Object
,
default
:
()
=>
{
return
null
;
}
}
},
},
methods
:
{
methods
:
{
load
(
v
)
{
//
load(v) {
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
//
Api.get({ id: v }).then(r => {
this
.
entity
=
r
.
result
;
//
this.entity = r.result;
this
.
$emit
(
"on-load"
);
//
this.$emit("on-load");
});
//
});
},
//
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
"on-close"
);
this
.
$emit
(
"on-close"
);
},
},
...
@@ -64,9 +50,9 @@ export default {
...
@@ -64,9 +50,9 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
eid
(
v
)
{
row
(
v
)
{
if
(
v
!=
0
)
{
if
(
v
!=
null
)
{
this
.
load
(
v
);
this
.
entity
=
this
.
$u
.
clone
(
this
.
row
);
}
}
}
}
}
}
...
...
pages/mesPlan/edit.vue
View file @
ecd17fa7
This diff is collapsed.
Click to expand it.
pages/mesPlan/index.vue
View file @
ecd17fa7
...
@@ -28,9 +28,8 @@
...
@@ -28,9 +28,8 @@
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
<Input
<Input
placeholder=
"请输入
关键字
订单编号/产品名称"
placeholder=
"请输入订单编号/产品名称"
v-model=
"easySearch.keys.value"
v-model=
"easySearch.keys.value"
style=
"width:240px;"
/>
/>
</FormItem>
</FormItem>
<FormItem>
<FormItem>
...
@@ -49,14 +48,14 @@
...
@@ -49,14 +48,14 @@
<Button
type=
"primary"
class=
"mr10 ml10"
>
批量删除
</Button>
<Button
type=
"primary"
class=
"mr10 ml10"
>
批量删除
</Button>
</
template
>
</
template
>
</DataGrid>
</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"
/>
<Add
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</Modal>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
width=
"1
0
00"
>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
width=
"1
2
00"
>
<Edit
:
eid=
"curId
"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<Edit
:
row=
"rowData
"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</Modal>
<Modal
v-model=
"detailModal"
title=
"详情"
width=
"1
0
00"
>
<Modal
v-model=
"detailModal"
title=
"详情"
width=
"1
2
00"
>
<Detail
:
eid=
"curId
"
/>
<Detail
:
row=
"rowData
"
/>
</Modal>
</Modal>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
<p>
确定删除?
</p>
<p>
确定删除?
</p>
...
@@ -137,13 +136,15 @@ export default {
...
@@ -137,13 +136,15 @@ export default {
title
:
this
.
l
(
"taskType"
),
title
:
this
.
l
(
"taskType"
),
align
:
"center"
,
align
:
"center"
,
high
:
true
,
high
:
true
,
code
:
"plan.order.taskType"
code
:
"plan.order.taskType"
,
width
:
100
,
},
},
{
{
key
:
"quantity"
,
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
),
title
:
this
.
l
(
"quantity"
),
align
:
"right"
,
align
:
"right"
,
high
:
true
high
:
true
,
width
:
80
,
},
},
{
{
key
:
"taskRequire"
,
key
:
"taskRequire"
,
...
@@ -158,7 +159,8 @@ export default {
...
@@ -158,7 +159,8 @@ export default {
title
:
this
.
l
(
"status"
),
title
:
this
.
l
(
"status"
),
align
:
"center"
,
align
:
"center"
,
high
:
true
,
high
:
true
,
code
:
"plan.order.status"
code
:
"plan.order.status"
,
width
:
100
,
},
},
{
{
key
:
"productCode"
,
key
:
"productCode"
,
...
@@ -199,9 +201,10 @@ export default {
...
@@ -199,9 +201,10 @@ export default {
{
{
key
:
"urgencyLevel"
,
key
:
"urgencyLevel"
,
title
:
this
.
l
(
"urgencyLevel"
),
title
:
this
.
l
(
"urgencyLevel"
),
align
:
"
left
"
,
align
:
"
center
"
,
high
:
true
,
high
:
true
,
code
:
"plan.order.urgencyLevel"
code
:
"plan.order.urgencyLevel"
,
width
:
100
,
},
},
{
{
key
:
"productingPreparationPeople"
,
key
:
"productingPreparationPeople"
,
...
@@ -256,7 +259,7 @@ export default {
...
@@ -256,7 +259,7 @@ export default {
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"detail"
},
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
)
}
},
},
"查看"
"查看"
),
),
...
@@ -264,7 +267,7 @@ export default {
...
@@ -264,7 +267,7 @@ export default {
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"edit"
},
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
}
},
},
"编辑"
"编辑"
),
),
...
@@ -662,7 +665,8 @@ export default {
...
@@ -662,7 +665,8 @@ export default {
ownerGustList
:
[],
//甲方客户下拉
ownerGustList
:
[],
//甲方客户下拉
mainDeptList
:
[],
//厂内主体部门下拉
mainDeptList
:
[],
//厂内主体部门下拉
taskTypeList
:
[],
//任务类型
taskTypeList
:
[],
//任务类型
statusList
:
[]
//状态类型
statusList
:
[],
//状态类型
rowData
:{},
//编辑、查看的当前行数据
};
};
},
},
created
()
{
created
()
{
...
@@ -718,13 +722,13 @@ export default {
...
@@ -718,13 +722,13 @@ export default {
search
()
{
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
},
detail
(
id
)
{
detail
(
row
)
{
this
.
detailModal
=
true
;
this
.
detailModal
=
true
;
this
.
curId
=
id
;
this
.
rowData
=
row
;
},
},
edit
(
id
)
{
edit
(
row
)
{
this
.
editModal
=
true
;
this
.
editModal
=
true
;
this
.
curId
=
id
;
this
.
rowData
=
row
;
},
},
remove
(
id
)
{
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