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
c8ed0b19
Commit
c8ed0b19
authored
Apr 28, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺规程添加
parent
f3998490
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1554 additions
and
181 deletions
+1554
-181
base.less
assets/css/base.less
+2
-1
zh-CN.js
i18n/locale/zh-CN.js
+45
-36
details.vue
pages/technology/details.vue
+58
-30
index.vue
pages/technology/details/index.vue
+3
-3
add.vue
pages/technology/details/routingDetail/add.vue
+183
-0
api.js
pages/technology/details/routingDetail/api.js
+22
-0
detail.vue
pages/technology/details/routingDetail/detail.vue
+88
-0
edit.vue
pages/technology/details/routingDetail/edit.vue
+145
-0
index.vue
pages/technology/details/routingDetail/index.vue
+415
-0
search.vue
pages/technology/details/routingDetail/search.vue
+126
-0
add.vue
pages/technology/details/routingStep/add.vue
+129
-0
api.js
pages/technology/details/routingStep/api.js
+22
-0
detail.vue
pages/technology/details/routingStep/detail.vue
+70
-0
edit.vue
pages/technology/details/routingStep/edit.vue
+109
-0
index.vue
pages/technology/details/routingStep/index.vue
+25
-55
search.vue
pages/technology/details/routingStep/search.vue
+57
-0
index.vue
pages/technology/index.vue
+54
-8
technolog.less
pages/technology/technolog.less
+1
-48
No files found.
assets/css/base.less
View file @
c8ed0b19
...
@@ -1238,4 +1238,5 @@ html [type=button] {
...
@@ -1238,4 +1238,5 @@ html [type=button] {
}
}
.h100{
.h100{
height: 100%;
height: 100%;
}
}
\ No newline at end of file
\ No newline at end of file
i18n/locale/zh-CN.js
View file @
c8ed0b19
...
@@ -1192,42 +1192,51 @@ export default {
...
@@ -1192,42 +1192,51 @@ export default {
versionid
:
'版本ID'
,
versionid
:
'版本ID'
,
isSendPpm
:
'发送PPM'
,
isSendPpm
:
'发送PPM'
,
},
},
routing_detail
:
{
routing_detail
:{
id
:
''
,
id
:
''
,
creationTime
:
'创建时间'
,
creationTime
:
'创建时间'
,
creatorUserId
:
'创建人'
,
creatorUserId
:
'创建人'
,
lastModificationTime
:
'修改时间'
,
lastModificationTime
:
'最近修改时间'
,
lastModifierUserId
:
'修改人'
,
lastModifierUserId
:
'最近修改人'
,
isDeleted
:
'是否删除'
,
isDeleted
:
'是否删除'
,
deleterUserId
:
'删除人'
,
deleterUserId
:
'删除人'
,
deletionTime
:
'删除时间'
,
deletionTime
:
'删除时间'
,
classId
:
''
,
classId
:
''
,
routingHeaderId
:
'工艺ID'
,
routingHeaderId
:
'工艺规程id'
,
name
:
'工序名'
,
name
:
'工序名称'
,
taskSeq
:
'工序号'
,
taskSeq
:
'工序号'
,
description
:
'工序名称详细描述'
,
description
:
'备注'
,
taskContent
:
'工序内容'
,
taskContent
:
'工序内容'
,
resourceId
:
'设备'
,
resourceId
:
'资源ID'
,
resourceType
:
'设备类型'
,
resourceType
:
'资源类型'
,
runtime
:
'单件排产工时'
,
runtime
:
'单件排产工时'
,
performancehours
:
'绩效工时'
,
setupTime
:
'工序准备工时'
,
transportTime
:
'转运工时'
,
setupTime
:
'工序准备工时'
,
checkTime
:
'检验工时'
,
transportTime
:
'转运工时'
,
checkFlag
:
'检验标识'
,
checkTime
:
'检验工时'
,
efficiencyValue
:
'效率系数'
,
checkFlag
:
'检验标识'
,
singleOut
:
'单件产出'
,
efficiencyValue
:
'效率系数'
,
isOutside
:
'是否外协'
,
singleOut
:
'单件产出'
,
departmentId
:
'工序的承制车间'
,
isOutside
:
'是否外协'
,
isImportant
:
'是否关键工序'
,
departmentId
:
'工序的承制单位'
,
milestoneId
:
'里程碑'
,
isImportant
:
'是否关键工序'
,
phaseId
:
'阶段id'
,
milestoneId
:
'里程碑'
,
status
:
'状态'
,
phaseId
:
'阶段'
,
remark
:
'备注'
,
status
:
'状态'
,
extend
:
'扩展字段'
,
remark
:
'备注'
,
outsideTime
:
'外协工期'
,
extend
:
'扩展字段'
,
performanceHours
:
'绩效工时'
,
outsideTime
:
'外协工期'
,
resourceCode
:
'资源编号'
,
},
isImportantResources
:
'关重资源'
,
schedulingWorkingHours
:
'排产准结工时'
,
realWorkingHours
:
'实作准结工时'
,
realRuntime
:
'实作单件工时'
,
performanceWorkingHours
:
'绩效准结工时'
,
isParticipateIntime
:
'是否参与工时分配'
,
equipType
:
'设备类型'
,
equipTypeId
:
'设备类型ID'
,
note
:
'备注'
,
},
RoutingSupporting
:
{
RoutingSupporting
:
{
id
:
''
,
id
:
''
,
routingHeaderId
:
'工艺规程ID'
,
routingHeaderId
:
'工艺规程ID'
,
...
...
pages/technology/details.vue
View file @
c8ed0b19
<
style
lang=
"less"
>
<
style
lang=
"less"
>
@import './technolog.less';
@import './technolog.less';
.details_box{
background: #f5f7f9;
display: flex;
margin: 0 20px;
flex-direction: column;
.details_body{
flex-grow: 1;
// width: 561px;
text-align: center;
background: white;
.ivu-menu-horizontal {
height: 50px;
line-height: 50px;
border-left: 1px solid #ccc;
background: #f5f7f9;
z-index: 888;
.ivu-menu-item{
width: 140px;
border-right: 1px solid #E0E0E0;
border-bottom: 1px solid #E0E0E0;
border-top: 1px solid #E0E0E0;
background: rgba(243,243,243,1);
}
.ivu-menu-item-active.ivu-menu-item-selected{
background: #fff;
border-top: 2px solid #2d8cf0;
border-bottom: 1px solid #fff;
}
}
}
.bottom_box{
padding: 5px 20px;
background: white;
border: 1px solid #ccc;
border-top: 0;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<Layout
class=
"details_box"
>
<div
class=
"details_box"
>
<Header>
<div
class=
"details_body"
>
<h4
class=
"details_top tc"
>
<Menu
mode=
"horizontal"
theme=
"light"
active-name=
"0"
>
<a
class=
"back_href"
@
click=
"back"
>
<Icon
type=
"ios-undo-outline"
/>
返回工艺规程
</a>
<MenuItem
name=
"0"
to=
"/technology/details/routingDetail"
>
工序
</MenuItem>
<div>
工艺信息
</div>
<MenuItem
name=
"1"
to=
"/technology/details/routingStep"
>
工步
</MenuItem>
</h4>
<div
class=
"details_body"
>
<Menu
mode=
"horizontal"
theme=
"light"
active-name=
"1"
>
<MenuItem
name=
"1"
to=
"/technology/details/working"
>
工序
</MenuItem>
<MenuItem
name=
"2"
to=
"/technology/details/routingqccard"
>
质控卡
</MenuItem>
<MenuItem
name=
"2"
to=
"/technology/details/routingqccard"
>
质控卡
</MenuItem>
<MenuItem
name=
"3"
to=
"/technology/details/routingsupporting"
>
工艺BOM
</MenuItem>
<MenuItem
name=
"3"
to=
"/technology/details/routingsupporting"
>
工艺BOM
</MenuItem>
<
MenuItem
name=
"4"
to=
"/technology/details/setup/setupDetails"
>
生产准备
</MenuItem
>
<
!--
<MenuItem
name=
"4"
to=
"/technology/details/setup/setupDetails"
>
生产准备
</MenuItem>
--
>
</Menu>
</Menu>
</div>
</div>
</Header
>
<div
class=
"bottom_box"
>
<Layout
class=
"bottom_box"
>
{{
headerId
}}
<nuxt-child
keep-alive
></nuxt-child>
<nuxt-child
keep-alive
:headerId=
"headerId"
></nuxt-child>
</Layout
>
</div
>
</
Layout
>
</
div
>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
layout
:
"empty"
,
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
showMenu
:
true
,
showMenu
:
true
,
treeHeight
:
''
,
treeHeight
:
''
,
actNum
:
'1'
,
actNum
:
'1'
,
headerId
:
-
1
}
}
},
},
created
()
{
created
()
{
this
.
treeHeight
=
window
.
innerHeight
-
140
console
.
log
(
"xiang"
,
this
.
$route
,
this
.
router
)
this
.
headerId
=
this
.
$route
.
query
.
id
;
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
mounted
()
{
mounted
()
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
this
.
treeHeight
=
window
.
innerHeight
-
140
})()
}
},
},
computed
:
{
},
computed
:
{
},
methods
:
{
methods
:
{
back
(){
},
this
.
$router
.
push
({
watch
:{
name
:
"technology"
,
// params: { transmitData: lemData }
});
},
}
}
}
}
</
script
>
</
script
>
pages/technology/details/index.vue
View file @
c8ed0b19
<
template
>
<
template
>
<
workingView></workingView
>
<
routingDetail></routingDetail
>
</
template
>
</
template
>
<
script
>
<
script
>
import
workingView
from
'./working/index
'
import
routingDetail
from
'./routingDetail
'
export
default
{
export
default
{
components
:{
workingView
},
components
:{
routingDetail
},
}
}
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
...
...
pages/technology/details/routingDetail/add.vue
0 → 100644
View file @
c8ed0b19
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
><FormItem
:label=
"l('classId')"
prop=
"classId"
>
<InputNumber
v-model=
"entity.classId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"entity.name"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('taskSeq')"
prop=
"taskSeq"
>
<InputNumber
v-model=
"entity.taskSeq"
></InputNumber>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('taskContent')"
prop=
"taskContent"
>
<Input
v-model=
"entity.taskContent"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('resourceId')"
prop=
"resourceId"
>
<InputNumber
v-model=
"entity.resourceId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('resourceType')"
prop=
"resourceType"
>
<Dictionary
code=
"Process.routing_detail.resource_type"
v-model=
"entity.resourceType"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('runtime')"
prop=
"runtime"
>
<InputNumber
v-model=
"entity.runtime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('setupTime')"
prop=
"setupTime"
>
<InputNumber
v-model=
"entity.setupTime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('transportTime')"
prop=
"transportTime"
>
<InputNumber
v-model=
"entity.transportTime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('checkTime')"
prop=
"checkTime"
>
<InputNumber
v-model=
"entity.checkTime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('checkFlag')"
prop=
"checkFlag"
>
<Dictionary
code=
"Process.routing_detail.check_flag"
v-model=
"entity.checkFlag"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('efficiencyValue')"
prop=
"efficiencyValue"
>
<InputNumber
v-model=
"entity.efficiencyValue"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('singleOut')"
prop=
"singleOut"
>
<InputNumber
v-model=
"entity.singleOut"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isOutside')"
prop=
"isOutside"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isOutside"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('departmentId')"
prop=
"departmentId"
>
<InputNumber
v-model=
"entity.departmentId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isImportant')"
prop=
"isImportant"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isImportant"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('milestoneId')"
prop=
"milestoneId"
>
<InputNumber
v-model=
"entity.milestoneId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('phaseId')"
prop=
"phaseId"
>
<InputNumber
v-model=
"entity.phaseId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
></Dictionary>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('extend')"
prop=
"extend"
>
<Input
v-model=
"entity.extend"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('outsideTime')"
prop=
"outsideTime"
>
<InputNumber
v-model=
"entity.outsideTime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('performanceHours')"
prop=
"performanceHours"
>
<InputNumber
v-model=
"entity.performanceHours"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('resourceCode')"
prop=
"resourceCode"
>
<Input
v-model=
"entity.resourceCode"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isImportantResources')"
prop=
"isImportantResources"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isImportantResources"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('schedulingWorkingHours')"
prop=
"schedulingWorkingHours"
>
<InputNumber
v-model=
"entity.schedulingWorkingHours"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('realWorkingHours')"
prop=
"realWorkingHours"
>
<InputNumber
v-model=
"entity.realWorkingHours"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('realRuntime')"
prop=
"realRuntime"
>
<InputNumber
v-model=
"entity.realRuntime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('performanceWorkingHours')"
prop=
"performanceWorkingHours"
>
<InputNumber
v-model=
"entity.performanceWorkingHours"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isParticipateIntime')"
prop=
"isParticipateIntime"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isParticipateIntime"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('equipType')"
prop=
"equipType"
>
<Input
v-model=
"entity.equipType"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('equipTypeId')"
prop=
"equipTypeId"
>
<InputNumber
v-model=
"entity.equipTypeId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
>
</Input>
</FormItem></Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Form>
</
template
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Add'
,
data
()
{
return
{
disabled
:
false
,
entity
:
{
classId
:
null
,
routingHeaderId
:
null
,
name
:
""
,
taskSeq
:
null
,
description
:
""
,
taskContent
:
""
,
resourceId
:
null
,
resourceType
:
null
,
runtime
:
null
,
setupTime
:
null
,
transportTime
:
null
,
checkTime
:
null
,
checkFlag
:
null
,
efficiencyValue
:
null
,
singleOut
:
null
,
isOutside
:
null
,
departmentId
:
null
,
isImportant
:
null
,
milestoneId
:
null
,
phaseId
:
null
,
status
:
null
,
remark
:
""
,
extend
:
""
,
outsideTime
:
null
,
performanceHours
:
null
,
resourceCode
:
""
,
isImportantResources
:
null
,
schedulingWorkingHours
:
null
,
realWorkingHours
:
null
,
realRuntime
:
null
,
performanceWorkingHours
:
null
,
isParticipateIntime
:
null
,
equipType
:
""
,
equipTypeId
:
null
,
note
:
""
},
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
}
}
},
props
:
{
v
:
Object
,
eid
:
Number
},
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
},
methods
:
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
Api
.
create
(
this
.
entity
).
then
((
r
)
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$emit
(
'on-ok'
)
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
}).
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
'保存失败'
)
console
.
warn
(
err
)
})
}
})
},
handleClose
()
{
this
.
$emit
(
'on-close'
)
},
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
.
id
=
0
;
});
},
l
(
key
)
{
key
=
"routing_detail"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
},
watch
:
{
v
()
{
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
)
},
eid
(
v
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
}
}
</
script
>
\ No newline at end of file
pages/technology/details/routingDetail/api.js
0 → 100644
View file @
c8ed0b19
import
Api
from
'@/plugins/request'
export
default
{
index
:
`
${
technologyUrl
}
routingdetail/paged`
,
paged
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/paged`
,
params
);
},
get
(
params
){
return
Api
.
get
(
`
${
technologyUrl
}
routingdetail/get`
,
params
);
},
create
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/create`
,
params
);
},
update
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/update`
,
params
);
},
delete
(
id
)
{
return
Api
.
delete
(
`
${
technologyUrl
}
routingdetail/delete`
,{
params
:{
id
:
id
}});
},
deletes
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/batchdelete`
,
params
);
}
}
\ No newline at end of file
pages/technology/details/routingDetail/detail.vue
0 → 100644
View file @
c8ed0b19
<
template
>
<div
class=
"detail"
>
<Row>
<Filed
:span=
"12"
:name=
"l('classId')"
>
{{
entity
.
classId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingHeaderId')"
>
{{
entity
.
routingHeaderId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('taskSeq')"
>
{{
entity
.
taskSeq
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('description')"
>
{{
entity
.
description
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('taskContent')"
>
{{
entity
.
taskContent
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('resourceId')"
>
{{
entity
.
resourceId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('resourceType')"
>
{{
entity
.
resourceType
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('runtime')"
>
{{
entity
.
runtime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('setupTime')"
>
{{
entity
.
setupTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('transportTime')"
>
{{
entity
.
transportTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkTime')"
>
{{
entity
.
checkTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkFlag')"
>
{{
entity
.
checkFlag
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('efficiencyValue')"
>
{{
entity
.
efficiencyValue
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('singleOut')"
>
{{
entity
.
singleOut
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isOutside')"
>
{{
entity
.
isOutside
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('departmentId')"
>
{{
entity
.
departmentId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isImportant')"
>
{{
entity
.
isImportant
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('milestoneId')"
>
{{
entity
.
milestoneId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('phaseId')"
>
{{
entity
.
phaseId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
entity
.
status
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('extend')"
>
{{
entity
.
extend
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('outsideTime')"
>
{{
entity
.
outsideTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('performanceHours')"
>
{{
entity
.
performanceHours
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('resourceCode')"
>
{{
entity
.
resourceCode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isImportantResources')"
>
{{
entity
.
isImportantResources
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('schedulingWorkingHours')"
>
{{
entity
.
schedulingWorkingHours
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('realWorkingHours')"
>
{{
entity
.
realWorkingHours
}}
</Filed>
<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
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Add'
,
data
()
{
return
{
entity
:
{},
rules
:
{
name
:
[{
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
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
}
}
</
script
>
\ No newline at end of file
pages/technology/details/routingDetail/edit.vue
0 → 100644
View file @
c8ed0b19
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
><FormItem
:label=
"l('classId')"
prop=
"classId"
>
<InputNumber
v-model=
"entity.classId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"entity.name"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('taskSeq')"
prop=
"taskSeq"
>
<InputNumber
v-model=
"entity.taskSeq"
></InputNumber>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('taskContent')"
prop=
"taskContent"
>
<Input
v-model=
"entity.taskContent"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('resourceId')"
prop=
"resourceId"
>
<InputNumber
v-model=
"entity.resourceId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('resourceType')"
prop=
"resourceType"
>
<Dictionary
code=
"Process.routing_detail.resource_type"
v-model=
"entity.resourceType"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('runtime')"
prop=
"runtime"
>
<InputNumber
v-model=
"entity.runtime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('setupTime')"
prop=
"setupTime"
>
<InputNumber
v-model=
"entity.setupTime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('transportTime')"
prop=
"transportTime"
>
<InputNumber
v-model=
"entity.transportTime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('checkTime')"
prop=
"checkTime"
>
<InputNumber
v-model=
"entity.checkTime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('checkFlag')"
prop=
"checkFlag"
>
<Dictionary
code=
"Process.routing_detail.check_flag"
v-model=
"entity.checkFlag"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('efficiencyValue')"
prop=
"efficiencyValue"
>
<InputNumber
v-model=
"entity.efficiencyValue"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('singleOut')"
prop=
"singleOut"
>
<InputNumber
v-model=
"entity.singleOut"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isOutside')"
prop=
"isOutside"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isOutside"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('departmentId')"
prop=
"departmentId"
>
<InputNumber
v-model=
"entity.departmentId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isImportant')"
prop=
"isImportant"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isImportant"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('milestoneId')"
prop=
"milestoneId"
>
<InputNumber
v-model=
"entity.milestoneId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('phaseId')"
prop=
"phaseId"
>
<InputNumber
v-model=
"entity.phaseId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
></Dictionary>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('extend')"
prop=
"extend"
>
<Input
v-model=
"entity.extend"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('outsideTime')"
prop=
"outsideTime"
>
<InputNumber
v-model=
"entity.outsideTime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('performanceHours')"
prop=
"performanceHours"
>
<InputNumber
v-model=
"entity.performanceHours"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('resourceCode')"
prop=
"resourceCode"
>
<Input
v-model=
"entity.resourceCode"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isImportantResources')"
prop=
"isImportantResources"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isImportantResources"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('schedulingWorkingHours')"
prop=
"schedulingWorkingHours"
>
<InputNumber
v-model=
"entity.schedulingWorkingHours"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('realWorkingHours')"
prop=
"realWorkingHours"
>
<InputNumber
v-model=
"entity.realWorkingHours"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('realRuntime')"
prop=
"realRuntime"
>
<InputNumber
v-model=
"entity.realRuntime"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('performanceWorkingHours')"
prop=
"performanceWorkingHours"
>
<InputNumber
v-model=
"entity.performanceWorkingHours"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isParticipateIntime')"
prop=
"isParticipateIntime"
>
<Dictionary
code=
"Process.state"
v-model=
"entity.isParticipateIntime"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('equipType')"
prop=
"equipType"
>
<Input
v-model=
"entity.equipType"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('equipTypeId')"
prop=
"equipTypeId"
>
<InputNumber
v-model=
"entity.equipTypeId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"entity.note"
>
</Input>
</FormItem></Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Form>
</
template
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Edit'
,
data
()
{
return
{
disabled
:
false
,
entity
:
{
},
rules
:
{
name
:
[{
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
;
})
},
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
Api
.
update
(
this
.
entity
).
then
((
r
)
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$emit
(
'on-ok'
)
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
}).
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
'保存失败'
)
console
.
warn
(
err
)
})
}
})
},
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
>
\ No newline at end of file
pages/technology/details/routingDetail/index.vue
0 → 100644
View file @
c8ed0b19
This diff is collapsed.
Click to expand it.
pages/technology/details/routingDetail/search.vue
0 → 100644
View file @
c8ed0b19
<
template
>
<Form
ref=
"form"
:model=
"condition"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
:v-if=
"condition.classId.show"
><FormItem
:label=
"l('classId')"
prop=
"classId"
>
<Input
v-model=
"condition.classId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.routingHeaderId.show"
><FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<Input
v-model=
"condition.routingHeaderId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.name.show"
><FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"condition.name.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.taskSeq.show"
><FormItem
:label=
"l('taskSeq')"
prop=
"taskSeq"
>
<Input
v-model=
"condition.taskSeq.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"24"
:v-if=
"condition.description.show"
><FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"condition.description.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.resourceId.show"
><FormItem
:label=
"l('resourceId')"
prop=
"resourceId"
>
<Input
v-model=
"condition.resourceId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.resourceType.show"
><FormItem
:label=
"l('resourceType')"
prop=
"resourceType"
>
<Dictionary
code=
"Process.routing_detail.resource_type"
v-model=
"condition.resourceType.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.runtime.show"
><FormItem
:label=
"l('runtime')"
prop=
"runtime"
>
<Input
v-model=
"condition.runtime.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.setupTime.show"
><FormItem
:label=
"l('setupTime')"
prop=
"setupTime"
>
<Input
v-model=
"condition.setupTime.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.transportTime.show"
><FormItem
:label=
"l('transportTime')"
prop=
"transportTime"
>
<Input
v-model=
"condition.transportTime.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.checkTime.show"
><FormItem
:label=
"l('checkTime')"
prop=
"checkTime"
>
<Input
v-model=
"condition.checkTime.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.checkFlag.show"
><FormItem
:label=
"l('checkFlag')"
prop=
"checkFlag"
>
<Dictionary
code=
"Process.routing_detail.check_flag"
v-model=
"condition.checkFlag.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.efficiencyValue.show"
><FormItem
:label=
"l('efficiencyValue')"
prop=
"efficiencyValue"
>
<Input
v-model=
"condition.efficiencyValue.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.singleOut.show"
><FormItem
:label=
"l('singleOut')"
prop=
"singleOut"
>
<Input
v-model=
"condition.singleOut.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.isOutside.show"
><FormItem
:label=
"l('isOutside')"
prop=
"isOutside"
>
<Dictionary
code=
"Process.state"
v-model=
"condition.isOutside.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.departmentId.show"
><FormItem
:label=
"l('departmentId')"
prop=
"departmentId"
>
<Input
v-model=
"condition.departmentId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.isImportant.show"
><FormItem
:label=
"l('isImportant')"
prop=
"isImportant"
>
<Dictionary
code=
"Process.state"
v-model=
"condition.isImportant.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.milestoneId.show"
><FormItem
:label=
"l('milestoneId')"
prop=
"milestoneId"
>
<Input
v-model=
"condition.milestoneId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.phaseId.show"
><FormItem
:label=
"l('phaseId')"
prop=
"phaseId"
>
<Input
v-model=
"condition.phaseId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.status.show"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"condition.status.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"24"
:v-if=
"condition.remark.show"
><FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"condition.remark.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.outsideTime.show"
><FormItem
:label=
"l('outsideTime')"
prop=
"outsideTime"
>
<Input
v-model=
"condition.outsideTime.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.performanceHours.show"
><FormItem
:label=
"l('performanceHours')"
prop=
"performanceHours"
>
<Input
v-model=
"condition.performanceHours.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.resourceCode.show"
><FormItem
:label=
"l('resourceCode')"
prop=
"resourceCode"
>
<Input
v-model=
"condition.resourceCode.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.isImportantResources.show"
><FormItem
:label=
"l('isImportantResources')"
prop=
"isImportantResources"
>
<Dictionary
code=
"Process.state"
v-model=
"condition.isImportantResources.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.schedulingWorkingHours.show"
><FormItem
:label=
"l('schedulingWorkingHours')"
prop=
"schedulingWorkingHours"
>
<Input
v-model=
"condition.schedulingWorkingHours.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.realWorkingHours.show"
><FormItem
:label=
"l('realWorkingHours')"
prop=
"realWorkingHours"
>
<Input
v-model=
"condition.realWorkingHours.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.realRuntime.show"
><FormItem
:label=
"l('realRuntime')"
prop=
"realRuntime"
>
<Input
v-model=
"condition.realRuntime.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.performanceWorkingHours.show"
><FormItem
:label=
"l('performanceWorkingHours')"
prop=
"performanceWorkingHours"
>
<Input
v-model=
"condition.performanceWorkingHours.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.isParticipateIntime.show"
><FormItem
:label=
"l('isParticipateIntime')"
prop=
"isParticipateIntime"
>
<Dictionary
code=
"Process.state"
v-model=
"condition.isParticipateIntime.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.equipType.show"
><FormItem
:label=
"l('equipType')"
prop=
"equipType"
>
<Input
v-model=
"condition.equipType.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.equipTypeId.show"
><FormItem
:label=
"l('equipTypeId')"
prop=
"equipTypeId"
>
<Input
v-model=
"condition.equipTypeId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.note.show"
><FormItem
:label=
"l('note')"
prop=
"note"
>
<Input
v-model=
"condition.note.value"
>
</Input>
</FormItem></Col>
</Row>
</Form>
</
template
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Add'
,
data
()
{
return
{
condition
:
{
classId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
routingHeaderId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
name
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
taskSeq
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
description
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
resourceId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
resourceType
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
runtime
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
setupTime
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
transportTime
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
checkTime
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
checkFlag
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
efficiencyValue
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
singleOut
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
isOutside
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
departmentId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
isImportant
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
milestoneId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
phaseId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
status
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
remark
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
outsideTime
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
performanceHours
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
resourceCode
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
isImportantResources
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
schedulingWorkingHours
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
realWorkingHours
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
realRuntime
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
performanceWorkingHours
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
isParticipateIntime
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
equipType
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
equipTypeId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
note
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
},
}
},
methods
:
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
},
l
(
key
)
{
key
=
"routing_detail"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
}
}
</
script
>
\ No newline at end of file
pages/technology/details/routingStep/add.vue
0 → 100644
View file @
c8ed0b19
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
><FormItem
:label=
"l('creationTime')"
prop=
"creationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.creationTime"
></DatePicker>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.lastModificationTime"
></DatePicker>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<InputNumber
v-model=
"entity.lastModifierUserId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<Input
v-model=
"entity.isDeleted"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('classId')"
prop=
"classId"
>
<InputNumber
v-model=
"entity.classId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('stepSeq')"
prop=
"stepSeq"
>
<InputNumber
v-model=
"entity.stepSeq"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"entity.name"
>
</Input>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
></Dictionary>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('stepContent')"
prop=
"stepContent"
>
<Input
v-model=
"entity.stepContent"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('extend')"
prop=
"extend"
>
<Input
v-model=
"entity.extend"
>
</Input>
</FormItem></Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Form>
</
template
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Add'
,
data
()
{
return
{
disabled
:
false
,
entity
:
{
creationTime
:
null
,
creatorUserId
:
null
,
lastModificationTime
:
null
,
lastModifierUserId
:
null
,
isDeleted
:
null
,
deleterUserId
:
null
,
deletionTime
:
null
,
routingHeaderId
:
null
,
routingDetailId
:
null
,
classId
:
null
,
stepSeq
:
null
,
name
:
""
,
description
:
""
,
status
:
null
,
remark
:
""
,
stepContent
:
""
,
extend
:
""
},
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
}
}
},
props
:
{
v
:
Object
,
eid
:
Number
},
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
},
methods
:
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
Api
.
create
(
this
.
entity
).
then
((
r
)
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$emit
(
'on-ok'
)
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
}).
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
'保存失败'
)
console
.
warn
(
err
)
})
}
})
},
handleClose
()
{
this
.
$emit
(
'on-close'
)
},
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
.
id
=
0
;
});
},
l
(
key
)
{
key
=
"routing_step"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
},
watch
:
{
v
()
{
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
)
},
eid
(
v
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
}
}
</
script
>
\ No newline at end of file
pages/technology/details/routingStep/api.js
0 → 100644
View file @
c8ed0b19
import
Api
from
'@/plugins/request'
export
default
{
index
:
`
${
technologyUrl
}
routingstep/paged`
,
paged
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingstep/paged`
,
params
);
},
get
(
params
){
return
Api
.
get
(
`
${
technologyUrl
}
routingstep/get`
,
params
);
},
create
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingstep/create`
,
params
);
},
update
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingstep/update`
,
params
);
},
delete
(
id
)
{
return
Api
.
delete
(
`
${
technologyUrl
}
routingstep/delete`
,{
params
:{
id
:
id
}});
},
deletes
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingstep/batchdelete`
,
params
);
}
}
\ No newline at end of file
pages/technology/details/routingStep/detail.vue
0 → 100644
View file @
c8ed0b19
<
template
>
<div
class=
"detail"
>
<Row>
<Filed
:span=
"12"
:name=
"l('creationTime')"
>
{{
entity
.
creationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creatorUserId')"
>
{{
entity
.
creatorUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('lastModificationTime')"
>
{{
entity
.
lastModificationTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('lastModifierUserId')"
>
{{
entity
.
lastModifierUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isDeleted')"
>
{{
entity
.
isDeleted
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deleterUserId')"
>
{{
entity
.
deleterUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deletionTime')"
>
{{
entity
.
deletionTime
}}
</Filed>
<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
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Add'
,
data
()
{
return
{
entity
:
{},
rules
:
{
name
:
[{
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
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
}
}
</
script
>
\ No newline at end of file
pages/technology/details/routingStep/edit.vue
0 → 100644
View file @
c8ed0b19
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
><FormItem
:label=
"l('creationTime')"
prop=
"creationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.creationTime"
></DatePicker>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<InputNumber
v-model=
"entity.creatorUserId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"date"
v-model=
"entity.lastModificationTime"
></DatePicker>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<InputNumber
v-model=
"entity.lastModifierUserId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<Input
v-model=
"entity.isDeleted"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"date"
v-model=
"entity.deletionTime"
></DatePicker>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('classId')"
prop=
"classId"
>
<InputNumber
v-model=
"entity.classId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('stepSeq')"
prop=
"stepSeq"
>
<InputNumber
v-model=
"entity.stepSeq"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"entity.name"
>
</Input>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"entity.description"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"entity.status"
></Dictionary>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"24"
><FormItem
:label=
"l('stepContent')"
prop=
"stepContent"
>
<Input
v-model=
"entity.stepContent"
type=
"textarea"
:rows=
"5"
></Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('extend')"
prop=
"extend"
>
<Input
v-model=
"entity.extend"
>
</Input>
</FormItem></Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Form>
</
template
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Edit'
,
data
()
{
return
{
disabled
:
false
,
entity
:
{
},
rules
:
{
name
:
[{
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
;
})
},
handleSubmit
()
{
this
.
$refs
.
form
.
validate
((
v
)
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
Api
.
update
(
this
.
entity
).
then
((
r
)
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$emit
(
'on-ok'
)
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
}).
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
'保存失败'
)
console
.
warn
(
err
)
})
}
})
},
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
>
\ No newline at end of file
pages/technology/
index1
.vue
→
pages/technology/
details/routingStep/index
.vue
View file @
c8ed0b19
<
template
>
<
template
>
<div>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
><template
slot=
"easySearch"
><Form
ref=
"formInline"
:model=
"easySearch"
inline
><FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字
unicode/工艺名称/工艺编号
"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
><template
slot=
"easySearch"
><Form
ref=
"formInline"
:model=
"easySearch"
inline
><FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字
工步名称/描述/备注/工步内容
"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button></FormItem>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button></FormItem>
</Form></
template
>
</Form></
template
>
<
template
slot=
"searchForm"
>
<
template
slot=
"searchForm"
>
...
@@ -24,15 +24,15 @@ export default {
...
@@ -24,15 +24,15 @@ export default {
Search
Search
},
},
head
:
{
head
:
{
title
:
"工
艺规程
"
,
title
:
"工
步
"
,
author
:
"henq"
,
author
:
"henq"
,
description
:
"routing_
header 4/26/2020 10:12:38 A
M"
,
description
:
"routing_
step 4/28/2020 4:23:17 P
M"
,
},
},
data
()
{
data
()
{
return
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
,
easySearch
:
{
easySearch
:
{
keys
:{
op
:
"
unicode,name,code
"
,
value
:
null
}
keys
:{
op
:
"
name,description,remark,stepContent
"
,
value
:
null
}
},
},
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
...
@@ -40,33 +40,17 @@ keys:{op:"unicode,name,code",value:null}
...
@@ -40,33 +40,17 @@ keys:{op:"unicode,name,code",value:null}
curId
:
0
,
curId
:
0
,
columns
:
[
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"id"
,
title
:
this
.
l
(
"id"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"lastModificationTime"
,
title
:
this
.
l
(
"lastModificationTime"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"lastModificationTime"
,
title
:
this
.
l
(
"lastModificationTime"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
l
(
"lastModifierUserId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
l
(
"lastModifierUserId"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"classId"
,
title
:
this
.
l
(
"classId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"routingHeaderId"
,
title
:
this
.
l
(
"routingHeaderId"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"unicode"
,
title
:
this
.
l
(
"unicode"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"routingDetailId"
,
title
:
this
.
l
(
"routingDetailId"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"classId"
,
title
:
this
.
l
(
"classId"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"stepSeq"
,
title
:
this
.
l
(
"stepSeq"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"name"
,
title
:
this
.
l
(
"name"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"name"
,
title
:
this
.
l
(
"name"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"code"
,
title
:
this
.
l
(
"code"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"description"
,
title
:
this
.
l
(
"description"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"productId"
,
title
:
this
.
l
(
"productId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"version"
,
title
:
this
.
l
(
"version"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"author"
,
title
:
this
.
l
(
"author"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"departmentId"
,
title
:
this
.
l
(
"departmentId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"isMain"
,
title
:
this
.
l
(
"isMain"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.state'
},
{
key
:
"upId"
,
title
:
this
.
l
(
"upId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"upDetailId"
,
title
:
this
.
l
(
"upDetailId"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"routingType"
,
title
:
this
.
l
(
"routingType"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Routing.routingType'
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Status'
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Status'
},
{
key
:
"approvalStatus"
,
title
:
this
.
l
(
"approvalStatus"
)
,
align
:
"left"
,
high
:
true
,
code
:
'process.RoutingStatus'
},
{
key
:
"approvalStatusRemark"
,
title
:
this
.
l
(
"approvalStatusRemark"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"auditUserId1"
,
title
:
this
.
l
(
"auditUserId1"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"auditUserId2"
,
title
:
this
.
l
(
"auditUserId2"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"platesnum"
,
title
:
this
.
l
(
"platesnum"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"isEffect"
,
title
:
this
.
l
(
"isEffect"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Status'
},
{
key
:
"versionnotes"
,
title
:
this
.
l
(
"versionnotes"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"phase"
,
title
:
this
.
l
(
"phase"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Routing.phase'
},
{
key
:
"versionid"
,
title
:
this
.
l
(
"versionid"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Routing.version'
},
{
key
:
"isSendPpm"
,
title
:
this
.
l
(
"isSendPpm"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Status'
},
{
{
title
:
'操作'
,
title
:
'操作'
,
key
:
'action'
,
key
:
'action'
,
...
@@ -137,42 +121,28 @@ keys:{op:"unicode,name,code",value:null}
...
@@ -137,42 +121,28 @@ keys:{op:"unicode,name,code",value:null}
},
},
l
(
key
)
{
l
(
key
)
{
/*
/*
routing_
header
:{
routing_
step
:{
id:'',
id:'',
creationTime:'创建时间',
creationTime:'创建时间',
creatorUserId:'创建人',
creatorUserId:'创建人',
lastModificationTime:'最近修改时间',
lastModificationTime:'最近修改时间',
lastModifierUserId:'最近修改人',
lastModifierUserId:'最近修改人',
deleterUserId:'上传人',
isDeleted:'是否删除',
deleterUserId:'删除人',
deletionTime:'删除时间',
deletionTime:'删除时间',
classId:'类id',
routingHeaderId:'工艺规程id',
unicode:'unicode',
routingDetailId:'工序id',
name:'工艺名称',
classId:'',
code:'工艺编号',
stepSeq:'工步号',
productId:'产品id',
name:'工步名称',
version:'版本',
description:'描述',
author:'作者',
departmentId:'主制车间',
isMain:'主工艺',
upId:'父工艺',
upDetailId:'',
routingType:'工艺类型',
status:'状态',
status:'状态',
approvalStatus:'审批状态',
remark:'备注',
remark:'备注',
approvalStatusRemark:'审批备注',
stepContent:'工步内容',
auditUserId1:'审批人',
extend:'扩展字段',
auditUserId2:'审批人',
isDeleted:'是否删除',
platesnum:'板数',
isEffect:'是否有效',
versionnotes:'版本说明',
phase:'阶段',
versionid:'版本ID',
isSendPpm:'是否发送PPM',
}
}
*/
*/
let
vkey
=
"routing_
header
"
+
"."
+
key
;
let
vkey
=
"routing_
step
"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
return
this
.
$t
(
vkey
)
||
key
}
}
}
}
...
...
pages/technology/details/routingStep/search.vue
0 → 100644
View file @
c8ed0b19
<
template
>
<Form
ref=
"form"
:model=
"condition"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
:v-if=
"condition.creationTime.show"
><FormItem
:label=
"l('creationTime')"
prop=
"creationTime"
>
<DatePicker
type=
"daterange"
v-model=
"condition.creationTime.value"
></DatePicker>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.creatorUserId.show"
><FormItem
:label=
"l('creatorUserId')"
prop=
"creatorUserId"
>
<Input
v-model=
"condition.creatorUserId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.lastModificationTime.show"
><FormItem
:label=
"l('lastModificationTime')"
prop=
"lastModificationTime"
>
<DatePicker
type=
"daterange"
v-model=
"condition.lastModificationTime.value"
></DatePicker>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.lastModifierUserId.show"
><FormItem
:label=
"l('lastModifierUserId')"
prop=
"lastModifierUserId"
>
<Input
v-model=
"condition.lastModifierUserId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.stepSeq.show"
><FormItem
:label=
"l('stepSeq')"
prop=
"stepSeq"
>
<Input
v-model=
"condition.stepSeq.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.name.show"
><FormItem
:label=
"l('name')"
prop=
"name"
>
<Input
v-model=
"condition.name.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"24"
:v-if=
"condition.description.show"
><FormItem
:label=
"l('description')"
prop=
"description"
>
<Input
v-model=
"condition.description.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.status.show"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"Process.Status"
v-model=
"condition.status.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"24"
:v-if=
"condition.remark.show"
><FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"condition.remark.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"24"
:v-if=
"condition.stepContent.show"
><FormItem
:label=
"l('stepContent')"
prop=
"stepContent"
>
<Input
v-model=
"condition.stepContent.value"
>
</Input>
</FormItem></Col>
</Row>
</Form>
</
template
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Add'
,
data
()
{
return
{
condition
:
{
creationTime
:{
op
:
"Range"
,
value
:
null
,
show
:
true
},
creatorUserId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
lastModificationTime
:{
op
:
"Range"
,
value
:
null
,
show
:
true
},
lastModifierUserId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
stepSeq
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
name
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
description
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
status
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
remark
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
stepContent
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
},
}
},
methods
:
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
},
l
(
key
)
{
key
=
"routing_step"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
}
}
</
script
>
\ No newline at end of file
pages/technology/index.vue
View file @
c8ed0b19
...
@@ -2,11 +2,29 @@
...
@@ -2,11 +2,29 @@
@import "./technolog.less";
@import "./technolog.less";
.lay100 {
.lay100 {
height: calc(100vh - 105px);
height: calc(100vh - 105px);
background-color: #
F5F6FA
;
background-color: #
f5f6fa
;
.con{
.con
{
padding: 5px 5px 0px 10px;
padding: 5px 5px 0px 10px;
}
}
}
}
.fullWindow {
position: fixed;
width: 100%;
left: 0;
top: 50px;
bottom: 0;
right: 0;
// bottom:100%;
// right: 100%;
z-index: 990;
background-color: white;
// background: red;
.top {
height: 42px;
line-height: 42px;
background: #f5f7f9;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<Layout
class=
"lay100"
>
<Layout
class=
"lay100"
>
...
@@ -27,7 +45,12 @@
...
@@ -27,7 +45,12 @@
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入工艺名称/工艺编号"
v-width=
"200"
v-model=
"easySearch.keys.value"
clearable
/>
<Input
placeholder=
"请输入工艺名称/工艺编号"
v-width=
"200"
v-model=
"easySearch.keys.value"
clearable
/>
</FormItem>
</FormItem>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
...
@@ -45,6 +68,19 @@
...
@@ -45,6 +68,19 @@
<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=
"top flex"
>
<div
v-width=
"200"
>
<a
class=
"back_href"
@
click=
"viewClose"
>
<Icon
type=
"ios-undo-outline"
size=
"24"
/>
返回工艺规程
</a>
</div>
<div
class=
"fg"
>
工艺信息
</div>
</div>
<div
class=
"fg"
>
<iframe
width=
"100%"
id=
"infoFrame"
height=
"100%"
frameborder=
"0"
:src=
"src"
></iframe>
</div>
</div>
</Content>
</Content>
</Layout>
</Layout>
</template>
</template>
...
@@ -70,6 +106,9 @@ export default {
...
@@ -70,6 +106,9 @@ export default {
},
},
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
info
:
null
,
viewModal
:
false
,
src
:
null
,
detail
:
null
,
detail
:
null
,
curId
:
0
,
curId
:
0
,
columns
:
[
columns
:
[
...
@@ -259,9 +298,16 @@ export default {
...
@@ -259,9 +298,16 @@ export default {
this
.
showMenu
=
true
;
this
.
showMenu
=
true
;
},
},
// 详情页面
// 详情页面
view
()
{
view
(
id
)
{
// this.$router.push("technology/details");
// this.$router.push("technology/details");
window
.
open
(
"/technology/details"
,
"_blank"
)
// window.open("/technology/details","_blank")
this
.
viewModal
=
true
;
// this.info=()=>import("./details")
this
.
src
=
"/technology/details?id="
+
id
;
},
viewClose
()
{
this
.
viewModal
=
false
;
this
.
src
=
null
;
},
},
ok
()
{
ok
()
{
this
.
$refs
.
grid
.
load
();
this
.
$refs
.
grid
.
load
();
...
@@ -271,8 +317,8 @@ export default {
...
@@ -271,8 +317,8 @@ export default {
search
()
{
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
},
productSearch
(
id
,
item
,
ids
)
{
productSearch
(
id
,
item
,
ids
)
{
let
where
=
{
productId
:
{
op
:
"In"
,
value
:
ids
}}
let
where
=
{
productId
:
{
op
:
"In"
,
value
:
ids
}
};
this
.
$refs
.
grid
.
reload
(
where
);
this
.
$refs
.
grid
.
reload
(
where
);
},
},
add
()
{
add
()
{
...
@@ -312,7 +358,7 @@ export default {
...
@@ -312,7 +358,7 @@ export default {
this
.
modal
=
false
;
this
.
modal
=
false
;
},
},
l
(
key
)
{
l
(
key
)
{
let
vkey
=
"routingHeader"
+
"."
+
key
;
let
vkey
=
"routingHeader"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
}
}
}
...
...
pages/technology/technolog.less
View file @
c8ed0b19
...
@@ -65,54 +65,7 @@
...
@@ -65,54 +65,7 @@
.product-layout .i-layout-content {
.product-layout .i-layout-content {
padding: 4px 10px!important;
padding: 4px 10px!important;
}
}
.details_box{
background: #f5f7f9;
.ivu-layout-header {
height: 32px;
line-height: 37px;
}
.details_top{
height: 32px;
line-height: 32px;
position: relative;
background: #f5f7f9;
border-bottom: 1px solid #ccc;
.back_href{
position: absolute;
left: 20px;
top: 0;
.ivu-icon{
font-size: 20px;
}
}
}
.details_body{
// width: 561px;
text-align: center;
.ivu-menu-horizontal {
height: 50px;
line-height: 50px;
border-left: 1px solid #ccc;
background: #f5f7f9;
z-index: 888;
.ivu-menu-item{
width: 140px;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
background: #f5f7f9;
}
.ivu-menu-item-active.ivu-menu-item-selected{
background: #fff;
border-top: 2px solid #2d8cf0;
border-bottom: 1px solid #fff;
}
}
}
.bottom_box{
margin-top: 50px;
padding: 5px 20px;
}
}
.setdetail_body{
.setdetail_body{
// padding: 0 20px;
// padding: 0 20px;
.ivu-layout-header{
.ivu-layout-header{
...
...
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