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
ce79bc68
Commit
ce79bc68
authored
Apr 30, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
technology
parent
a79178b1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
505 additions
and
351 deletions
+505
-351
base.less
assets/css/base.less
+11
-2
filed.vue
components/page/filed.vue
+2
-2
index.vue
pages/aps/plan/index.vue
+1
-1
add.vue
pages/technology/details/add.vue
+5
-5
api.js
pages/technology/details/api.js
+1
-1
detail.vue
pages/technology/details/detail.vue
+74
-83
edit.vue
pages/technology/details/edit.vue
+160
-138
expand.vue
pages/technology/details/expand.vue
+63
-13
index.vue
pages/technology/details/index.vue
+36
-6
add.vue
pages/technology/details/routingStep/add.vue
+14
-22
detail.vue
pages/technology/details/routingStep/detail.vue
+51
-64
edit.vue
pages/technology/details/routingStep/edit.vue
+1
-0
edit.vue
pages/technology/details/routingqccard/edit.vue
+1
-0
index.vue
pages/technology/details/routingqccard/index.vue
+0
-1
index.vue
pages/technology/index.vue
+33
-8
base.css
src/assets/css/base.css
+52
-5
No files found.
assets/css/base.less
View file @
ce79bc68
...
@@ -591,7 +591,12 @@ html body {
...
@@ -591,7 +591,12 @@ html body {
.new-orange {
.new-orange {
color: #ff9900;
color: #ff9900;
}
}
.blueTitle{
color: #2680EB;
}
.grayTitle{
color: #333;
}
/*图标*/
/*图标*/
...
@@ -1239,4 +1244,8 @@ html [type=button] {
...
@@ -1239,4 +1244,8 @@ html [type=button] {
.h100{
.h100{
height: 100%;
height: 100%;
}
}
\ No newline at end of file
//显示富文本框样式
.detail .ivu-row .filed-col p .html p{
margin: 0 10px 0 0;
}
\ No newline at end of file
components/page/filed.vue
View file @
ce79bc68
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
border-top: none;
border-top: none;
height: 100%;
height: 100%;
.filed-col {
.filed-col {
max-width: 970px;
border: 1px solid #ddd;
border: 1px solid #ddd;
border-right: none;
border-right: none;
margin: 0 -1px -1px -1px;
margin: 0 -1px -1px -1px;
...
@@ -47,7 +47,7 @@ export default {
...
@@ -47,7 +47,7 @@ export default {
height: 100%;
height: 100%;
}
}
p {
p {
max-width: 870px;
height: 100%;
height: 100%;
word-break: break-all;
word-break: break-all;
word-wrap: break-word;
word-wrap: break-word;
...
...
pages/aps/plan/index.vue
View file @
ce79bc68
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<Modal
v-model=
"scheduleModal"
title=
"移入排产"
width=
"800"
>
<Modal
v-model=
"scheduleModal"
title=
"移入排产"
width=
"800"
>
<p>
</p>
<p>
</p>
<h4>
请选择排产模型:
</h4>
<h4>
请选择排产模型:
</h4>
<Dictionary
code=
"aps.plan.scheduleType"
v-model=
"scheduleType"
class=
"radioList"
border=
"true"
type=
"radio"
@
on-change=
"onchangeScheduleType"
></Dictionary>
<Dictionary
code=
"aps.plan.scheduleType"
v-model=
"scheduleType"
class=
"radioList"
:
border=
"true"
type=
"radio"
@
on-change=
"onchangeScheduleType"
></Dictionary>
<p
class=
"pl30 pt10"
v-show=
"scheduleType!=null"
>
<p
class=
"pl30 pt10"
v-show=
"scheduleType!=null"
>
确定将订单
确定将订单
<span
class=
"fwBold"
>
{{resultsOrderList}}
</span>
移入
<span
class=
"fwBold"
>
{{resultsOrderList}}
</span>
移入
...
...
pages/technology/details/add.vue
View file @
ce79bc68
...
@@ -179,16 +179,16 @@ export default {
...
@@ -179,16 +179,16 @@ export default {
taskSeq
:
null
,
taskSeq
:
null
,
taskContent
:
""
,
taskContent
:
""
,
resourceType
:
null
,
resourceType
:
null
,
runtime
:
null
,
runtime
:
0
,
efficiencyValue
:
null
,
efficiencyValue
:
null
,
singleOut
:
null
,
singleOut
:
null
,
isOutside
:
null
,
isOutside
:
null
,
isImportant
:
null
,
isImportant
:
null
,
outsideTime
:
null
,
outsideTime
:
0
,
isImportantResources
:
null
,
isImportantResources
:
null
,
schedulingWorkingHours
:
null
,
schedulingWorkingHours
:
0
,
realWorkingHours
:
null
,
realWorkingHours
:
0
,
realRuntime
:
null
,
realRuntime
:
0
,
isParticipateIntime
:
null
,
isParticipateIntime
:
null
,
equipType
:
""
,
equipType
:
""
,
},
},
...
...
pages/technology/details/api.js
View file @
ce79bc68
...
@@ -11,7 +11,7 @@ export default {
...
@@ -11,7 +11,7 @@ export default {
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/create`
,
params
);
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/create`
,
params
);
},
},
update
(
params
)
{
update
(
params
)
{
return
Api
.
p
os
t
(
`
${
technologyUrl
}
routingdetail/update`
,
params
);
return
Api
.
p
u
t
(
`
${
technologyUrl
}
routingdetail/update`
,
params
);
},
},
delete
(
id
)
{
delete
(
id
)
{
return
Api
.
delete
(
`
${
technologyUrl
}
routingdetail/delete`
,
{
return
Api
.
delete
(
`
${
technologyUrl
}
routingdetail/delete`
,
{
...
...
pages/technology/details/detail.vue
View file @
ce79bc68
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('taskSeq')"
>
{{
entity
.
taskSeq
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('classId')"
>
{{
entity
.
classId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingHeaderId')"
>
{{
entity
.
routingHeaderId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('equipType')"
>
{{
entity
.
equipType
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('resourceType')"
>
<Filed
:span=
"12"
:name=
"l('taskSeq')"
>
{{
entity
.
taskSeq
}}
</Filed>
<state
code=
"Process.routing_detail.resource_type"
:value=
"entity.resourceType"
type=
"text"
></state>
<Filed
:span=
"24"
:name=
"l('description')"
>
{{
entity
.
description
}}
</Filed>
</Filed>
<Filed
:span=
"12"
:name=
"l('taskContent')"
>
{{
entity
.
taskContent
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isImportant')"
>
<Filed
:span=
"12"
:name=
"l('resourceId')"
>
{{
entity
.
resourceId
}}
</Filed>
<state
code=
"Process.state"
:value=
"entity.isImportant"
type=
"text"
></state>
<Filed
:span=
"12"
:name=
"l('resourceType')"
>
{{
entity
.
resourceType
}}
</Filed>
</Filed>
<Filed
:span=
"12"
:name=
"l('runtime')"
>
{{
entity
.
runtime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isImportantResources')"
>
<Filed
:span=
"12"
:name=
"l('setupTime')"
>
{{
entity
.
setupTime
}}
</Filed>
<state
code=
"Process.state"
:value=
"entity.isImportantResources"
type=
"text"
></state>
<Filed
:span=
"12"
:name=
"l('transportTime')"
>
{{
entity
.
transportTime
}}
</Filed>
</Filed>
<Filed
:span=
"12"
:name=
"l('checkTime')"
>
{{
entity
.
checkTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('schedulingWorkingHours')"
>
{{
entity
.
schedulingWorkingHours
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkFlag')"
>
{{
entity
.
checkFlag
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('runtime')"
>
{{
entity
.
runtime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('efficiencyValue')"
>
{{
entity
.
efficiencyValue
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('realRuntime')"
>
{{
entity
.
realRuntime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('singleOut')"
>
{{
entity
.
singleOut
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('realWorkingHours')"
>
{{
entity
.
realWorkingHours
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isOutside')"
>
{{
entity
.
isOutside
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isOutside')"
>
<Filed
:span=
"12"
:name=
"l('departmentId')"
>
{{
entity
.
departmentId
}}
</Filed>
<state
code=
"Process.state"
:value=
"entity.isOutside"
type=
"text"
></state>
<Filed
:span=
"12"
:name=
"l('isImportant')"
>
{{
entity
.
isImportant
}}
</Filed>
</Filed>
<Filed
:span=
"12"
:name=
"l('milestoneId')"
>
{{
entity
.
milestoneId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('outsideTime')"
>
{{
entity
.
outsideTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('phaseId')"
>
{{
entity
.
phaseId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isParticipateIntime')"
>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
entity
.
status
}}
</Filed>
<state
code=
"Process.state"
:value=
"entity.isParticipateIntime"
type=
"text"
></state>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
</Filed>
<Filed
:span=
"12"
:name=
"l('extend')"
>
{{
entity
.
extend
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('efficiencyValue')"
>
{{
entity
.
efficiencyValue
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('outsideTime')"
>
{{
entity
.
outsideTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('singleOut')"
>
{{
entity
.
singleOut
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('performanceHours')"
>
{{
entity
.
performanceHours
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('taskContent')"
>
<Filed
:span=
"12"
:name=
"l('resourceCode')"
>
{{
entity
.
resourceCode
}}
</Filed>
<div
v-html=
"entity.taskContent"
class=
"html"
></div>
<Filed
:span=
"12"
:name=
"l('isImportantResources')"
>
{{
entity
.
isImportantResources
}}
</Filed>
</Filed>
<Filed
:span=
"12"
:name=
"l('schedulingWorkingHours')"
>
{{
entity
.
schedulingWorkingHours
}}
</Filed>
</Row>
<Filed
:span=
"12"
:name=
"l('realWorkingHours')"
>
{{
entity
.
realWorkingHours
}}
</Filed>
</div>
<Filed
:span=
"12"
:name=
"l('realRuntime')"
>
{{
entity
.
realRuntime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('performanceWorkingHours')"
>
{{
entity
.
performanceWorkingHours
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isParticipateIntime')"
>
{{
entity
.
isParticipateIntime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('equipType')"
>
{{
entity
.
equipType
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('equipTypeId')"
>
{{
entity
.
equipTypeId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('note')"
>
{{
entity
.
note
}}
</Filed>
</Row>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
'Add'
,
name
:
"Add"
,
data
()
{
data
()
{
return
{
return
{
entity
:
{},
entity
:
{},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
code
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
}
},
props
:
{
eid
:
Number
},
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
},
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
$emit
(
'on-load'
)
})
},
handleClose
()
{
this
.
$emit
(
'on-close'
)
},
l
(
key
)
{
key
=
"routing_detail"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
}
},
};
watch
:
{
},
eid
(
v
)
{
props
:
{
if
(
v
>
0
)
{
eid
:
Number
this
.
load
(
v
);
},
}
mounted
()
{
}
if
(
this
.
eid
>
0
)
{
}
this
.
load
(
this
.
eid
);
}
}
</
script
>
},
\ No newline at end of file
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
$emit
(
"on-load"
);
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
l
(
key
)
{
key
=
"routing_detail"
+
"."
+
key
;
return
this
.
$t
(
key
);
}
},
watch
:
{
eid
(
v
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
}
};
</
script
>
pages/technology/details/edit.vue
View file @
ce79bc68
This diff is collapsed.
Click to expand it.
pages/technology/details/expand.vue
View file @
ce79bc68
...
@@ -8,10 +8,14 @@
...
@@ -8,10 +8,14 @@
:height=
"gridHeight"
:height=
"gridHeight"
:page=
"false"
:page=
"false"
></DataGrid>
></DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
@
data=
"getData"
/>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
import
ApiStep
from
"./routingStep/api"
;
export
default
{
export
default
{
name
:
"expand"
,
name
:
"expand"
,
props
:
{
props
:
{
...
@@ -49,7 +53,10 @@ export default {
...
@@ -49,7 +53,10 @@ export default {
key
:
"stepSeq"
,
key
:
"stepSeq"
,
title
:
this
.
l
(
"stepSeq"
),
title
:
this
.
l
(
"stepSeq"
),
align
:
"left"
,
align
:
"left"
,
width
:
120
width
:
150
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
style
:
"padding-left:10px"
},
params
.
row
.
stepSeq
);
}
},
},
{
{
key
:
"name"
,
key
:
"name"
,
...
@@ -61,26 +68,28 @@ export default {
...
@@ -61,26 +68,28 @@ export default {
title
:
this
.
l
(
"status"
),
title
:
this
.
l
(
"status"
),
align
:
"center"
,
align
:
"center"
,
code
:
"Process.Status"
,
code
:
"Process.Status"
,
width
:
1
0
0
width
:
1
5
0
},
},
{
{
key
:
"stepContent"
,
key
:
"stepContent"
,
title
:
this
.
l
(
"stepContent"
),
title
:
this
.
l
(
"stepContent"
),
align
:
"left"
,
align
:
"left"
,
width
:
800
,
width
:
800
,
tooltip
:
true
tooltip
:
true
,
},
hide
:
true
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
),
hide
:
true
,
align
:
"left"
},
},
{
{
key
:
"creatorUserId"
,
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
),
title
:
this
.
l
(
"creatorUserId"
),
hide
:
true
,
align
:
"left"
,
align
:
"left"
type
:
"user"
,
width
:
200
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
),
align
:
"left"
,
width
:
200
},
},
{
{
title
:
"操作"
,
title
:
"操作"
,
...
@@ -101,7 +110,7 @@ export default {
...
@@ -101,7 +110,7 @@ export default {
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"edit"
},
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
,
params
.
index
)
}
},
},
"编辑"
"编辑"
),
),
...
@@ -118,7 +127,12 @@ export default {
...
@@ -118,7 +127,12 @@ export default {
}
}
],
],
listExpand
:
[],
listExpand
:
[],
gridHeight
:
50
gridHeight
:
50
,
modal
:
false
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
index
:
0
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -134,6 +148,42 @@ export default {
...
@@ -134,6 +148,42 @@ export default {
this
.
gridHeight
=
102
;
this
.
gridHeight
=
102
;
}
}
},
},
view
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
"./routingStep/detail"
);
this
.
modal
=
true
;
},
edit
(
id
,
index
)
{
this
.
curId
=
id
;
this
.
index
=
index
;
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
"./routingStep/edit"
);
this
.
modal
=
true
;
},
remove
(
id
)
{
ApiStep
.
delete
(
id
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"删除成功"
);
this
.
$emit
(
'showDetail'
);
}
});
},
ok
()
{
// this.load();
this
.
modal
=
false
;
this
.
curId
=
0
;
},
getData
(
data
)
{
//let tempList=this.$u.clone(this.listExpand)
//tempList[this.index]=data
//this.$refs.gridExpand.list=tempList
this
.
$emit
(
'showDetail'
);
},
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
;
},
l
(
key
)
{
l
(
key
)
{
let
vkey
=
"routing_step"
+
"."
+
key
;
let
vkey
=
"routing_step"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
return
this
.
$t
(
vkey
)
||
key
;
...
...
pages/technology/details/index.vue
View file @
ce79bc68
...
@@ -6,7 +6,14 @@
...
@@ -6,7 +6,14 @@
</
template
>
</
template
>
</DataGrid>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
:headid=
"hid"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"curId"
:headid=
"hid"
:eName=
"curName"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</Modal>
</div>
</div>
</template>
</template>
...
@@ -40,6 +47,7 @@ export default {
...
@@ -40,6 +47,7 @@ export default {
title
:
"新增"
,
title
:
"新增"
,
detail
:
null
,
detail
:
null
,
curId
:
0
,
curId
:
0
,
curName
:
""
,
hid
:
0
,
hid
:
0
,
columns
:
[
columns
:
[
{
{
...
@@ -49,6 +57,15 @@ export default {
...
@@ -49,6 +57,15 @@ export default {
return
h
(
expandRow
,
{
return
h
(
expandRow
,
{
props
:
{
props
:
{
row
:
params
.
row
.
steps
row
:
params
.
row
.
steps
},
on
:
{
//监听子组件showDetail事件
showDetail
:
value
=>
{
//确保dom更新完成
this
.
$nextTick
(()
=>
{
this
.
toRefresh
();
});
}
}
}
});
});
}
}
...
@@ -247,7 +264,9 @@ export default {
...
@@ -247,7 +264,9 @@ export default {
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"detail"
},
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
addStep
(
params
.
row
.
id
,
params
.
row
.
name
)
}
},
},
"新增"
"新增"
),
),
...
@@ -290,7 +309,7 @@ export default {
...
@@ -290,7 +309,7 @@ export default {
}
else
{
}
else
{
this
.
easySearch
.
routingHeaderId
.
value
=
this
.
$route
.
query
.
id
;
this
.
easySearch
.
routingHeaderId
.
value
=
this
.
$route
.
query
.
id
;
}
}
this
.
hid
=
this
.
$route
.
query
.
id
;
this
.
hid
=
this
.
easySearch
.
routingHeaderId
.
value
;
},
},
mounted
()
{
mounted
()
{
this
.
load
();
this
.
load
();
...
@@ -306,8 +325,9 @@ export default {
...
@@ -306,8 +325,9 @@ export default {
methods
:
{
methods
:
{
load
()
{
load
()
{
this
.
list
=
[];
let
params
=
{
let
params
=
{
id
:
this
.
$route
.
query
.
id
id
:
this
.
h
id
};
};
Api
.
getdetailsteps
(
params
)
Api
.
getdetailsteps
(
params
)
.
then
(
r
=>
{
.
then
(
r
=>
{
...
@@ -320,7 +340,7 @@ export default {
...
@@ -320,7 +340,7 @@ export default {
});
});
},
},
ok
()
{
ok
()
{
this
.
$refs
.
grid
.
load
();
this
.
load
();
this
.
modal
=
false
;
this
.
modal
=
false
;
this
.
curId
=
0
;
this
.
curId
=
0
;
},
},
...
@@ -354,7 +374,7 @@ export default {
...
@@ -354,7 +374,7 @@ export default {
remove
(
id
)
{
remove
(
id
)
{
Api
.
delete
(
id
).
then
(
r
=>
{
Api
.
delete
(
id
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
load
();
this
.
$Message
.
success
(
"删除成功"
);
this
.
$Message
.
success
(
"删除成功"
);
}
}
});
});
...
@@ -363,6 +383,16 @@ export default {
...
@@ -363,6 +383,16 @@ export default {
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
modal
=
false
;
this
.
modal
=
false
;
},
},
addStep
(
detailId
,
detailName
)
{
this
.
curId
=
detailId
;
this
.
curName
=
detailName
;
this
.
title
=
"新增工步"
;
this
.
detail
=
()
=>
import
(
"./routingStep/add"
);
this
.
modal
=
true
;
},
toRefresh
()
{
this
.
load
();
},
l
(
key
)
{
l
(
key
)
{
/*
/*
routing_detail:{
routing_detail:{
...
...
pages/technology/details/routingStep/add.vue
View file @
ce79bc68
<
template
>
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Row>
<Col
:span=
"12"
>
<
!--
<
Col
:span=
"12"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
style=
"width:200px"
v-model=
"entity.routingHeaderId"
></InputNumber>
<InputNumber
style=
"width:200px"
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
-->
<Col
:span=
"
12
"
>
<Col
:span=
"
24
"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<FormItem
label=
"工艺名称"
>
<InputNumber
style=
"width:200px"
v-model=
"entity.routingDetailId"
></InputNumber>
{{
eName
}}
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<Col
:span=
"12"
>
...
@@ -115,23 +115,12 @@ export default {
...
@@ -115,23 +115,12 @@ export default {
return
{
return
{
disabled
:
false
,
disabled
:
false
,
entity
:
{
entity
:
{
creationTime
:
null
,
routingHeaderId
:
0
,
creatorUserId
:
null
,
routingDetailId
:
0
,
lastModificationTime
:
null
,
lastModifierUserId
:
null
,
isDeleted
:
null
,
deleterUserId
:
null
,
deletionTime
:
null
,
routingHeaderId
:
null
,
routingDetailId
:
null
,
classId
:
null
,
stepSeq
:
null
,
stepSeq
:
null
,
name
:
""
,
name
:
""
,
description
:
""
,
status
:
null
,
status
:
null
,
remark
:
""
,
stepContent
:
""
,
stepContent
:
""
,
extend
:
""
},
},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
...
@@ -140,18 +129,21 @@ export default {
...
@@ -140,18 +129,21 @@ export default {
},
},
props
:
{
props
:
{
v
:
Object
,
v
:
Object
,
eid
:
Number
eid
:
Number
,
//工序id
eName
:
String
,
//工序名称
headid
:
Number
,
//工艺id
},
},
mounted
()
{
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
},
},
methods
:
{
methods
:
{
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
disabled
=
true
;
this
.
entity
.
routingHeaderId
=
this
.
headid
this
.
entity
.
routingDetailId
=
this
.
eid
Api
.
create
(
this
.
entity
)
Api
.
create
(
this
.
entity
)
.
then
(
r
=>
{
.
then
(
r
=>
{
this
.
disabled
=
false
;
this
.
disabled
=
false
;
...
...
pages/technology/details/routingStep/detail.vue
View file @
ce79bc68
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('stepSeq')"
>
{{
entity
.
stepSeq
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{
entity
.
creationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creatorUserId')"
>
{{
entity
.
creatorUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
entity
.
status
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('lastModificationTime')"
>
{{
entity
.
lastModificationTime
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('stepContent')"
><div
v-html=
"entity.stepContent"
class=
"html"
></div></Filed>
<Filed
:span=
"12"
:name=
"l('lastModifierUserId')"
>
{{
entity
.
lastModifierUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{
entity
.
creationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isDeleted')"
>
{{
entity
.
isDeleted
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creatorUserId')"
>
{{
entity
.
creatorUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deleterUserId')"
>
{{
entity
.
deleterUserId
}}
</Filed>
</Row>
<Filed
:span=
"12"
:name=
"l('deletionTime')"
>
{{
entity
.
deletionTime
}}
</Filed>
</div>
<Filed
:span=
"12"
:name=
"l('routingHeaderId')"
>
{{
entity
.
routingHeaderId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingDetailId')"
>
{{
entity
.
routingDetailId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('classId')"
>
{{
entity
.
classId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('stepSeq')"
>
{{
entity
.
stepSeq
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('description')"
>
{{
entity
.
description
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
entity
.
status
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('stepContent')"
>
{{
entity
.
stepContent
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('extend')"
>
{{
entity
.
extend
}}
</Filed>
</Row>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
'Add'
,
name
:
"Add"
,
data
()
{
data
()
{
return
{
return
{
entity
:
{},
entity
:
{},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
code
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
}
},
props
:
{
eid
:
Number
},
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
},
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
$emit
(
'on-load'
)
})
},
handleClose
()
{
this
.
$emit
(
'on-close'
)
},
l
(
key
)
{
key
=
"routing_step"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
}
},
};
watch
:
{
},
eid
(
v
)
{
props
:
{
if
(
v
>
0
)
{
eid
:
Number
this
.
load
(
v
);
},
}
mounted
()
{
}
if
(
this
.
eid
>
0
)
{
}
this
.
load
(
this
.
eid
);
}
}
},
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
$emit
(
"on-load"
);
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
l
(
key
)
{
key
=
"routing_step"
+
"."
+
key
;
return
this
.
$t
(
key
);
}
},
watch
:
{
eid
(
v
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
}
};
</
script
>
</
script
>
\ No newline at end of file
pages/technology/details/routingStep/edit.vue
View file @
ce79bc68
...
@@ -145,6 +145,7 @@ export default {
...
@@ -145,6 +145,7 @@ export default {
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
this
.
$emit
(
"on-ok"
);
this
.
$emit
(
"data"
,
this
.
entity
);
}
else
{
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
this
.
$Message
.
error
(
"保存失败"
);
}
}
...
...
pages/technology/details/routingqccard/edit.vue
View file @
ce79bc68
...
@@ -177,6 +177,7 @@ export default {
...
@@ -177,6 +177,7 @@ export default {
},
},
props
:
{
props
:
{
headid
:
Number
,
headid
:
Number
,
eName
:
String
,
eid
:
Number
eid
:
Number
},
},
mounted
()
{
mounted
()
{
...
...
pages/technology/details/routingqccard/index.vue
View file @
ce79bc68
...
@@ -282,7 +282,6 @@ export default {
...
@@ -282,7 +282,6 @@ export default {
},
},
add
()
{
add
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
...
...
pages/technology/index.vue
View file @
ce79bc68
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
}
}
.fullWindow {
.fullWindow {
position: fixed;
position: fixed;
width: 100%;
width: 100%;
left: 0;
left: 0;
top: 50px;
top: 50px;
bottom: 0;
bottom: 0;
...
@@ -68,14 +68,25 @@
...
@@ -68,14 +68,25 @@
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</Modal>
<div
class=
"fullWindow flex fd"
v-if=
"viewModal"
>
<div
class=
"fullWindow flex fd"
v-if=
"viewModal"
>
<div
class=
"top flex"
>
<div
class=
"top flex"
>
<div
v-width=
"200"
>
<div
v-width=
"200"
>
<a
class=
"back_href"
@
click=
"viewClose"
>
<a
class=
"back_href"
@
click=
"viewClose"
>
<Icon
type=
"ios-undo-outline"
size=
"24"
/>
返回工艺规程
<Icon
type=
"ios-undo-outline"
size=
"24"
/>
返回工艺规程
</a>
</a>
</div>
</div>
<div
class=
"fg"
>
工艺信息
</div>
<div
class=
"fg tc f14 fwBold blueTitle"
>
工艺信息
{{l('code')}}:
<span
class=
"grayTitle"
>
{{titleObj.code}}
</span>
{{l('name')}}:
<span
class=
"grayTitle"
>
{{titleObj.name}}
</span>
{{l('routingType')}}:
<span
class=
"grayTitle"
>
{{titleObj.routingType}}
</span>
{{l('version')}}:
<span
class=
"grayTitle"
>
{{titleObj.version}}
</span>
{{l('departmentId')}}:
<span
class=
"grayTitle"
>
{{titleObj.departmentId}}
</span>
</div>
</div>
</div>
<div
class=
"fg"
>
<div
class=
"fg"
>
<iframe
width=
"100%"
id=
"infoFrame"
height=
"100%"
frameborder=
"0"
:src=
"src"
></iframe>
<iframe
width=
"100%"
id=
"infoFrame"
height=
"100%"
frameborder=
"0"
:src=
"src"
></iframe>
...
@@ -246,7 +257,7 @@ export default {
...
@@ -246,7 +257,7 @@ export default {
"op"
,
"op"
,
{
{
attrs
:
{
oprate
:
"detail"
},
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
)
}
},
},
"查看"
"查看"
),
),
...
@@ -270,7 +281,14 @@ export default {
...
@@ -270,7 +281,14 @@ export default {
]);
]);
}
}
}
}
]
],
titleObj
:
{
code
:
""
,
//工艺编号
name
:
""
,
//工艺名称
routingType
:
0
,
//工艺类型
version
:
""
,
//工艺版本
departmentId
:
null
//车间
}
};
};
},
},
created
()
{
created
()
{
...
@@ -298,12 +316,19 @@ export default {
...
@@ -298,12 +316,19 @@ export default {
this
.
showMenu
=
true
;
this
.
showMenu
=
true
;
},
},
// 详情页面
// 详情页面
view
(
id
)
{
view
(
row
)
{
// this.$router.push("technology/details");
// this.$router.push("technology/details");
// window.open("/technology/details","_blank")
// window.open("/technology/details","_blank")
this
.
viewModal
=
true
;
this
.
viewModal
=
true
;
this
.
titleObj
=
{
code
:
row
.
code
,
name
:
row
.
name
,
routingType
:
row
.
routingType
,
version
:
row
.
version
,
departmentId
:
row
.
departmentId
};
// this.info=()=>import("./details")
// this.info=()=>import("./details")
this
.
src
=
"/technology/details?id="
+
id
;
this
.
src
=
"/technology/details?id="
+
row
.
id
;
},
},
viewClose
()
{
viewClose
()
{
this
.
viewModal
=
false
;
this
.
viewModal
=
false
;
...
...
src/assets/css/base.css
View file @
ce79bc68
...
@@ -8,6 +8,37 @@ html body {
...
@@ -8,6 +8,37 @@ html body {
#__layout
{
#__layout
{
height
:
100%
;
height
:
100%
;
}
}
/*flex*/
.flex
{
display
:
flex
;
}
.fc-m
{
justify-content
:
center
;
}
.fc-e
{
justify-content
:
flex-end
;
}
.fc-b
{
justify-content
:
space-between
;
}
.fc-a
{
justify-content
:
space-around
;
}
.fd
{
flex-direction
:
column
;
}
.fg
{
flex-grow
:
1
;
}
.fg2
{
flex-grow
:
2
;
}
.fos
{
order
:
-1
;
}
.foe
{
order
:
99
;
}
/*字体*/
/*字体*/
.ib
{
.ib
{
display
:
inline
;
display
:
inline
;
...
@@ -37,6 +68,11 @@ html body {
...
@@ -37,6 +68,11 @@ html body {
color
:
#f23a3a
;
color
:
#f23a3a
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.stitle
{
height
:
40px
;
background-color
:
#F5F6FA
;
line-height
:
40px
;
}
.lh10
{
.lh10
{
line-height
:
10px
;
line-height
:
10px
;
}
}
...
@@ -55,6 +91,9 @@ html body {
...
@@ -55,6 +91,9 @@ html body {
.lh40
{
.lh40
{
line-height
:
40px
;
line-height
:
40px
;
}
}
.lh50
{
line-height
:
50px
;
}
/*边距*/
/*边距*/
.m10
{
.m10
{
margin
:
10px
;
margin
:
10px
;
...
@@ -412,6 +451,12 @@ html body {
...
@@ -412,6 +451,12 @@ html body {
.new-orange
{
.new-orange
{
color
:
#ff9900
;
color
:
#ff9900
;
}
}
.blueTitle
{
color
:
#2680EB
;
}
.grayTitle
{
color
:
#333
;
}
/*图标*/
/*图标*/
i
.iconfont
{
i
.iconfont
{
cursor
:
pointer
;
cursor
:
pointer
;
...
@@ -515,7 +560,6 @@ textarea::-webkit-input-placeholder {
...
@@ -515,7 +560,6 @@ textarea::-webkit-input-placeholder {
display
:
none
;
display
:
none
;
}
}
.zh-tree
{
.zh-tree
{
position
:
relative
;
display
:
block
;
display
:
block
;
width
:
250px
;
width
:
250px
;
float
:
left
;
float
:
left
;
...
@@ -536,12 +580,9 @@ textarea::-webkit-input-placeholder {
...
@@ -536,12 +580,9 @@ textarea::-webkit-input-placeholder {
border-bottom
:
#e4e6ed
solid
1px
;
border-bottom
:
#e4e6ed
solid
1px
;
}
}
.zh-tree
.zh-box
{
.zh-tree
.zh-box
{
height
:
-110%
;
width
:
100%
;
width
:
100%
;
overflow-y
:
auto
;
height
:
100%
;
padding
:
15px
;
padding
:
15px
;
margin-bottom
:
-5000px
;
padding-bottom
:
5000px
;
}
}
.content-right
{
.content-right
{
margin-left
:
10px
;
margin-left
:
10px
;
...
@@ -930,3 +971,9 @@ html [type=button] {
...
@@ -930,3 +971,9 @@ html [type=button] {
.content
{
.content
{
padding-left
:
5px
;
padding-left
:
5px
;
}
}
.h100
{
height
:
100%
;
}
.detail
.ivu-row
.filed-col
p
.html
p
{
margin
:
0
10px
0
0
;
}
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