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
ba2f8b55
Commit
ba2f8b55
authored
Apr 23, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
cd48db28
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
657 additions
and
4 deletions
+657
-4
add.vue
pages/technology/routing_header/add.vue
+123
-0
api.js
pages/technology/routing_header/api.js
+20
-0
detail.vue
pages/technology/routing_header/detail.vue
+72
-0
edit.vue
pages/technology/routing_header/edit.vue
+119
-0
index.vue
pages/technology/routing_header/index.vue
+195
-0
search.vue
pages/technology/routing_header/search.vue
+123
-0
index.js
plugins/request/index.js
+4
-4
config.js
static/config.js
+1
-0
No files found.
pages/technology/routing_header/add.vue
0 → 100644
View file @
ba2f8b55
<
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('unicode')"
prop=
"unicode"
>
<Input
v-model=
"entity.unicode"
>
</Input>
</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('code')"
prop=
"code"
>
<Input
v-model=
"entity.code"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('productId')"
prop=
"productId"
>
<InputNumber
v-model=
"entity.productId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('version')"
prop=
"version"
>
<Input
v-model=
"entity.version"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('author')"
prop=
"author"
>
<InputNumber
v-model=
"entity.author"
></InputNumber>
</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('isMain')"
prop=
"isMain"
>
<InputNumber
v-model=
"entity.isMain"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('upId')"
prop=
"upId"
>
<InputNumber
v-model=
"entity.upId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('upDetailId')"
prop=
"upDetailId"
>
<InputNumber
v-model=
"entity.upDetailId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('routingType')"
prop=
"routingType"
>
<InputNumber
v-model=
"entity.routingType"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"mes.routing_header.status"
v-model=
"entity.status"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('approvalStatus')"
prop=
"approvalStatus"
>
<Dictionary
code=
"mes.routing_header.approval_status"
v-model=
"entity.approvalStatus"
></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('approvalStatusRemark')"
prop=
"approvalStatusRemark"
>
<Input
v-model=
"entity.approvalStatusRemark"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('auditUserId1')"
prop=
"auditUserId1"
>
<Input
v-model=
"entity.auditUserId1"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('auditUserId2')"
prop=
"auditUserId2"
>
<Input
v-model=
"entity.auditUserId2"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('platesnum')"
prop=
"platesnum"
>
<InputNumber
v-model=
"entity.platesnum"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isEffect')"
prop=
"isEffect"
>
<Input
v-model=
"entity.isEffect"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('versionnotes')"
prop=
"versionnotes"
>
<Input
v-model=
"entity.versionnotes"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('phase')"
prop=
"phase"
>
<InputNumber
v-model=
"entity.phase"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('versionid')"
prop=
"versionid"
>
<InputNumber
v-model=
"entity.versionid"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isSendPpm')"
prop=
"isSendPpm"
>
<InputNumber
v-model=
"entity.isSendPpm"
></InputNumber>
</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
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
}
}
},
props
:
{
v
:
Object
,
eid
:
Number
},
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_header"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
},
watch
:
{
v
()
{
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
)
},
eid
(
v
)
{
if
(
v
>
0
)
{
}
}
}
}
</
script
>
\ No newline at end of file
pages/technology/routing_header/api.js
0 → 100644
View file @
ba2f8b55
import
Api
from
'@/plugins/request'
export
default
{
index
:
`
${
technologyUrl
}
routingheader/paged`
,
paged
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/paged`
,
params
);
},
get
(
params
){
return
Api
.
get
(
`
${
technologyUrl
}
routingheader/get`
,
params
);
},
create
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/create`
,
params
);
},
update
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/update`
,
params
);
},
//删除:
delete
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/batchdelete`
,
params
);
}
}
\ No newline at end of file
pages/technology/routing_header/detail.vue
0 → 100644
View file @
ba2f8b55
<
template
>
<div
class=
"detail"
>
<Row>
<Filed
:span=
"12"
:name=
"l('classId')"
>
{{
entity
.
classId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('unicode')"
>
{{
entity
.
unicode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('code')"
>
{{
entity
.
code
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('productId')"
>
{{
entity
.
productId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('version')"
>
{{
entity
.
version
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('author')"
>
{{
entity
.
author
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('departmentId')"
>
{{
entity
.
departmentId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isMain')"
>
{{
entity
.
isMain
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('upId')"
>
{{
entity
.
upId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('upDetailId')"
>
{{
entity
.
upDetailId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingType')"
>
{{
entity
.
routingType
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
entity
.
status
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('approvalStatus')"
>
{{
entity
.
approvalStatus
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('remark')"
>
{{
entity
.
remark
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('approvalStatusRemark')"
>
{{
entity
.
approvalStatusRemark
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('auditUserId1')"
>
{{
entity
.
auditUserId1
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('auditUserId2')"
>
{{
entity
.
auditUserId2
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('platesnum')"
>
{{
entity
.
platesnum
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isEffect')"
>
{{
entity
.
isEffect
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('versionnotes')"
>
{{
entity
.
versionnotes
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('phase')"
>
{{
entity
.
phase
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('versionid')"
>
{{
entity
.
versionid
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('isSendPpm')"
>
{{
entity
.
isSendPpm
}}
</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
},
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_header"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
}
}
}
}
</
script
>
\ No newline at end of file
pages/technology/routing_header/edit.vue
0 → 100644
View file @
ba2f8b55
<
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('unicode')"
prop=
"unicode"
>
<Input
v-model=
"entity.unicode"
>
</Input>
</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('code')"
prop=
"code"
>
<Input
v-model=
"entity.code"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('productId')"
prop=
"productId"
>
<InputNumber
v-model=
"entity.productId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('version')"
prop=
"version"
>
<Input
v-model=
"entity.version"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('author')"
prop=
"author"
>
<InputNumber
v-model=
"entity.author"
></InputNumber>
</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('isMain')"
prop=
"isMain"
>
<InputNumber
v-model=
"entity.isMain"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('upId')"
prop=
"upId"
>
<InputNumber
v-model=
"entity.upId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('upDetailId')"
prop=
"upDetailId"
>
<InputNumber
v-model=
"entity.upDetailId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('routingType')"
prop=
"routingType"
>
<InputNumber
v-model=
"entity.routingType"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"mes.routing_header.status"
v-model=
"entity.status"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('approvalStatus')"
prop=
"approvalStatus"
>
<Dictionary
code=
"mes.routing_header.approval_status"
v-model=
"entity.approvalStatus"
></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('approvalStatusRemark')"
prop=
"approvalStatusRemark"
>
<Input
v-model=
"entity.approvalStatusRemark"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('auditUserId1')"
prop=
"auditUserId1"
>
<Input
v-model=
"entity.auditUserId1"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('auditUserId2')"
prop=
"auditUserId2"
>
<Input
v-model=
"entity.auditUserId2"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('platesnum')"
prop=
"platesnum"
>
<InputNumber
v-model=
"entity.platesnum"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isEffect')"
prop=
"isEffect"
>
<Input
v-model=
"entity.isEffect"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('versionnotes')"
prop=
"versionnotes"
>
<Input
v-model=
"entity.versionnotes"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('phase')"
prop=
"phase"
>
<InputNumber
v-model=
"entity.phase"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('versionid')"
prop=
"versionid"
>
<InputNumber
v-model=
"entity.versionid"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('isSendPpm')"
prop=
"isSendPpm"
>
<InputNumber
v-model=
"entity.isSendPpm"
></InputNumber>
</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
},
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
$emit
(
'on-load'
)
})
},
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_header"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
}
}
}
}
</
script
>
\ No newline at end of file
pages/technology/routing_header/index.vue
0 → 100644
View file @
ba2f8b55
<
template
>
<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>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button></FormItem>
</Form></
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</div>
</template>
<
script
>
import
Api
from
'./api'
import
Search
from
'./search'
export
default
{
name
:
'list'
,
components
:{
Search
},
head
:
{
title
:
"工艺规程"
,
author
:
"henq"
,
description
:
"routing_header 2020/4/23 17:58:42"
,
},
data
()
{
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:{
op
:
"unicode,name,code"
,
value
:
null
}
},
modal
:
false
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"lastModificationTime"
,
title
:
this
.
l
(
"lastModificationTime"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
l
(
"lastModifierUserId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"deleterUserId"
,
title
:
this
.
l
(
"deleterUserId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"deletionTime"
,
title
:
this
.
l
(
"deletionTime"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"classId"
,
title
:
this
.
l
(
"classId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"unicode"
,
title
:
this
.
l
(
"unicode"
)
,
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
:
"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
},
{
key
:
"upId"
,
title
:
this
.
l
(
"upId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"upDetailId"
,
title
:
this
.
l
(
"upDetailId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"routingType"
,
title
:
this
.
l
(
"routingType"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
)
,
align
:
"left"
,
high
:
true
,
code
:
'mes.routing_header.status'
},
{
key
:
"approvalStatus"
,
title
:
this
.
l
(
"approvalStatus"
)
,
align
:
"left"
,
high
:
true
,
code
:
'mes.routing_header.approval_status'
},
{
key
:
"remark"
,
title
:
this
.
l
(
"remark"
)
,
align
:
"left"
,
high
:
true
},
{
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
:
"isDeleted"
,
title
:
this
.
l
(
"isDeleted"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"platesnum"
,
title
:
this
.
l
(
"platesnum"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"isEffect"
,
title
:
this
.
l
(
"isEffect"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"versionnotes"
,
title
:
this
.
l
(
"versionnotes"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"phase"
,
title
:
this
.
l
(
"phase"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"versionid"
,
title
:
this
.
l
(
"versionid"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"isSendPpm"
,
title
:
this
.
l
(
"isSendPpm"
)
,
align
:
"left"
,
high
:
true
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
140
,
align
:
'center'
,
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
{
class
:
"action"
},
[
h
(
'op'
,
{
attrs
:
{
oprate
:
'detail'
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
.
id
)
}
},
'查看'
),
h
(
'op'
,
{
attrs
:
{
oprate
:
'copy'
},
on
:
{
click
:
()
=>
this
.
copy
(
params
.
row
.
id
)
}
},
'克隆'
),
h
(
'op'
,
{
attrs
:
{
oprate
:
'edit'
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
'编辑'
),
h
(
'op'
,
{
attrs
:
{
oprate
:
'remove'
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
'删除'
)
])
}
},
]
}
},
mounted
(){
console
.
log
(
this
);
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
methods
:{
addOk
()
{
this
.
$refs
.
grid
.
load
()
this
.
modal
=
false
this
.
curId
=
0
;
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
},
add
(
id
)
{
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
detail
=
import
(
'./add'
)
this
.
modal
=
true
;
},
copy
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"克隆"
;
this
.
detail
=
import
(
'./add'
)
this
.
modal
=
true
;
},
detail
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
detail
=
import
(
'./detail'
)
this
.
modal
=
true
;
},
edit
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"编辑"
;
this
.
detail
=
import
(
'./edit'
)
this
.
modal
=
true
;
},
remove
(
id
)
{
this
.
deletelModal
=
true
;
this
.
curId
=
id
;
},
removeOk
()
{
Api
.
delete
([
this
.
curId
]).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
'删除成功'
)
}
})
},
removeCancel
()
{
this
.
deletelModal
=
false
;
},
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
},
l
(
key
)
{
/*
routing_header:{
id:'',
creationTime:'创建时间',
creatorUserId:'创建人',
lastModificationTime:'最近修改时间',
lastModifierUserId:'最近修改人',
deleterUserId:'上传人',
deletionTime:'删除时间',
classId:'类id',
unicode:'unicode',
name:'工艺名称',
code:'工艺编号',
productId:'产品id',
version:'版本',
author:'作者',
departmentId:'主制车间',
isMain:'主工艺',
upId:'父工艺',
upDetailId:'',
routingType:'工艺类型',
status:'状态',
approvalStatus:'审批状态',
remark:'备注',
approvalStatusRemark:'审批备注',
auditUserId1:'审批人',
auditUserId2:'审批人',
isDeleted:'是否删除',
platesnum:'板数',
isEffect:'是否有效',
versionnotes:'版本说明',
phase:'阶段',
versionid:'版本ID',
isSendPpm:'是否发送PPM',
}
*/
let
vkey
=
"routing_header"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
}
}
}
</
script
>
<
style
lang=
"less"
>
</
style
>
\ No newline at end of file
pages/technology/routing_header/search.vue
0 → 100644
View file @
ba2f8b55
<
template
>
<Form
ref=
"form"
:model=
"condition"
:label-width=
"90"
>
<Row>
<Col
:span=
"12"
:v-if=
"condition.id.show"
><FormItem
:label=
"l('id')"
prop=
"id"
>
<Input
v-model=
"condition.id.value"
>
</Input>
</FormItem></Col>
<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.deleterUserId.show"
><FormItem
:label=
"l('deleterUserId')"
prop=
"deleterUserId"
>
<Input
v-model=
"condition.deleterUserId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.deletionTime.show"
><FormItem
:label=
"l('deletionTime')"
prop=
"deletionTime"
>
<DatePicker
type=
"daterange"
v-model=
"condition.deletionTime.value"
></DatePicker>
</FormItem></Col>
<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.unicode.show"
><FormItem
:label=
"l('unicode')"
prop=
"unicode"
>
<Input
v-model=
"condition.unicode.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.code.show"
><FormItem
:label=
"l('code')"
prop=
"code"
>
<Input
v-model=
"condition.code.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.productId.show"
><FormItem
:label=
"l('productId')"
prop=
"productId"
>
<Input
v-model=
"condition.productId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.version.show"
><FormItem
:label=
"l('version')"
prop=
"version"
>
<Input
v-model=
"condition.version.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.author.show"
><FormItem
:label=
"l('author')"
prop=
"author"
>
<Input
v-model=
"condition.author.value"
>
</Input>
</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.isMain.show"
><FormItem
:label=
"l('isMain')"
prop=
"isMain"
>
<Input
v-model=
"condition.isMain.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.upId.show"
><FormItem
:label=
"l('upId')"
prop=
"upId"
>
<Input
v-model=
"condition.upId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.upDetailId.show"
><FormItem
:label=
"l('upDetailId')"
prop=
"upDetailId"
>
<Input
v-model=
"condition.upDetailId.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.routingType.show"
><FormItem
:label=
"l('routingType')"
prop=
"routingType"
>
<Input
v-model=
"condition.routingType.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.status.show"
><FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"mes.routing_header.status"
v-model=
"condition.status.value"
></Dictionary>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.approvalStatus.show"
><FormItem
:label=
"l('approvalStatus')"
prop=
"approvalStatus"
>
<Dictionary
code=
"mes.routing_header.approval_status"
v-model=
"condition.approvalStatus.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.approvalStatusRemark.show"
><FormItem
:label=
"l('approvalStatusRemark')"
prop=
"approvalStatusRemark"
>
<Input
v-model=
"condition.approvalStatusRemark.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.auditUserId1.show"
><FormItem
:label=
"l('auditUserId1')"
prop=
"auditUserId1"
>
<Input
v-model=
"condition.auditUserId1.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.auditUserId2.show"
><FormItem
:label=
"l('auditUserId2')"
prop=
"auditUserId2"
>
<Input
v-model=
"condition.auditUserId2.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.isDeleted.show"
><FormItem
:label=
"l('isDeleted')"
prop=
"isDeleted"
>
<Input
v-model=
"condition.isDeleted.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.platesnum.show"
><FormItem
:label=
"l('platesnum')"
prop=
"platesnum"
>
<Input
v-model=
"condition.platesnum.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.isEffect.show"
><FormItem
:label=
"l('isEffect')"
prop=
"isEffect"
>
<Input
v-model=
"condition.isEffect.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.versionnotes.show"
><FormItem
:label=
"l('versionnotes')"
prop=
"versionnotes"
>
<Input
v-model=
"condition.versionnotes.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.phase.show"
><FormItem
:label=
"l('phase')"
prop=
"phase"
>
<Input
v-model=
"condition.phase.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.versionid.show"
><FormItem
:label=
"l('versionid')"
prop=
"versionid"
>
<Input
v-model=
"condition.versionid.value"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
:v-if=
"condition.isSendPpm.show"
><FormItem
:label=
"l('isSendPpm')"
prop=
"isSendPpm"
>
<Input
v-model=
"condition.isSendPpm.value"
>
</Input>
</FormItem></Col>
</Row>
</Form>
</
template
>
<
script
>
import
Api
from
'./api'
export
default
{
name
:
'Add'
,
data
()
{
return
{
condition
:
{
id
:{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
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
},
deleterUserId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
deletionTime
:{
op
:
"Range"
,
value
:
null
,
show
:
true
},
classId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
unicode
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
name
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
code
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
productId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
version
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
author
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
departmentId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
isMain
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
upId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
upDetailId
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
routingType
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
status
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
approvalStatus
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
remark
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
approvalStatusRemark
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
auditUserId1
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
auditUserId2
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
isDeleted
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
platesnum
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
isEffect
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
versionnotes
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
phase
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
versionid
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
isSendPpm
:{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
},
}
},
methods
:
{
handleClose
()
{
this
.
$emit
(
'on-close'
)
},
l
(
key
)
{
key
=
"routing_header"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
}
}
</
script
>
\ No newline at end of file
plugins/request/index.js
View file @
ba2f8b55
...
...
@@ -126,10 +126,10 @@ service.interceptors.response.use(
},
error
=>
{
if
(
error
&&
error
.
response
)
{
if
(
error
.
response
.
status
==
"401"
){
window
.
location
.
href
=
'/account/login'
;
return
;
}
//
if(error.response.status=="401"){
//
window.location.href = '/account/login';
//
return;
//
}
switch
(
error
.
response
.
status
)
{
case
400
:
error
.
message
=
'请求错误'
;
break
;
case
401
:
error
.
message
=
'未授权,请登录'
;
break
;
...
...
static/config.js
View file @
ba2f8b55
...
...
@@ -49,6 +49,7 @@ const systemApi = {
window
.
iconImg
=
`http://
${
hostAddress
}
:3006/imgicon/`
;
//待办任务图标路径
window
.
apsManualUrl
=
`http://
${
apsAdress
}
:10091/api/services/app`
;
//aps手工排产
window
.
apsUrl
=
`http://
${
apsAdress
}
:10110/api/services/app`
;
//aps排产
window
.
technologyUrl
=
`http://localhost:10031/api/services/app/`
;
//oidc配置:
window
.
authConfig
=
{
authority
:
`http://
${
address
}
:10010`
,
...
...
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