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
900731c6
Commit
900731c6
authored
Jun 09, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
d13ee225
5b8f7a69
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
357 additions
and
295 deletions
+357
-295
add.vue
pages/bug/component/add.vue
+1
-1
add.vue
pages/produce/execute/ProcessCase/add.vue
+113
-122
detail.vue
pages/produce/execute/ProcessCase/detail.vue
+56
-63
index.vue
pages/produce/execute/ProcessCase/index.vue
+45
-5
add.vue
pages/produce/execute/ProcessCheck/guidance/add.vue
+26
-87
index.vue
pages/produce/execute/ProcessCheck/guidance/index.vue
+45
-5
orderlist.vue
pages/produce/execute/components/orderlist.vue
+12
-2
execute.less
pages/produce/execute/execute.less
+24
-1
index.vue
pages/produce/execute/index.vue
+20
-5
orderlist.vue
pages/produce/orderlist.vue
+15
-4
No files found.
pages/bug/component/add.vue
View file @
900731c6
...
...
@@ -41,7 +41,7 @@
<FormItem
label
>
<files
ref=
"refFile"
:parms=
"parms"
files
/>
</FormItem>
</Row>
</Row>
</Form>
</div>
</
template
>
...
...
pages/produce/execute/ProcessCase/add.vue
View file @
900731c6
<
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"
>
<InputNumber
v-model=
"entity.isDeleted"
></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('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('title')"
prop=
"title"
>
<Input
v-model=
"entity.title"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('creator')"
prop=
"creator"
>
<Input
v-model=
"entity.creator"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('content')"
prop=
"content"
>
<Input
v-model=
"entity.content"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('filePath')"
prop=
"filePath"
>
<InputFile
v-model=
"entity.filePath"
></InputFile>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('filePaths')"
prop=
"filePaths"
>
<Input
v-model=
"entity.filePaths"
>
</Input>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('dispatchId')"
prop=
"dispatchId"
>
<InputNumber
v-model=
"entity.dispatchId"
></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('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem></Col>
<Col
:span=
"12"
><FormItem
:label=
"l('type')"
prop=
"type"
>
<InputNumber
v-model=
"entity.type"
></InputNumber>
</FormItem></Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Form>
</
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
:span=
"24"
>
<FormItem
:label=
"l('title')"
prop=
"title"
style=
"width:95%"
>
<Input
v-model=
"entity.title"
></Input>
</FormItem>
</Col>
<Col
:span=
"24"
>
<FormItem
label
>
<files
ref=
"refFile"
:parms=
"parms"
files
/>
</FormItem>
<!--
<FormItem
:label=
"l('filePath')"
prop=
"filePath"
>
<InputFile
v-model=
"entity.filePath"
></InputFile>
</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
,
deletionTime
:
null
,
deleterUserId
:
null
,
title
:
""
,
creator
:
""
,
content
:
""
,
filePath
:
""
,
filePaths
:
""
,
dispatchId
:
null
,
routingDetailId
:
null
,
routingHeaderId
:
null
,
type
:
null
},
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
=
"process_case"
+
"."
+
key
;
return
this
.
$t
(
key
)
}
},
watch
:
{
v
()
{
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
)
},
eid
(
v
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
import
Api
from
"./api"
;
export
default
{
name
:
"Add"
,
data
()
{
return
{
disabled
:
false
,
entity
:
{
// creationTime: null,
creatorUserId
:
this
.
$store
.
state
.
userInfo
.
userId
,
// lastModificationTime: null,
// lastModifierUserId: null,
// isDeleted: null,
// deletionTime: null,
// deleterUserId: null,
title
:
""
,
creator
:
this
.
$store
.
state
.
userInfo
.
userName
,
content
:
""
,
filePath
:
""
,
filePaths
:
""
,
dispatchId
:
this
.
$route
.
query
.
id
,
routingDetailId
:
this
.
$route
.
query
.
headid
,
routingHeaderId
:
this
.
$route
.
query
.
routid
,
type
:
1
},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
parms
:{
},
};
},
props
:
{
v
:
Object
,
eid
:
Number
},
created
(){
console
.
log
(
this
.
entity
.
creator
)
},
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
=
"process_case"
+
"."
+
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
}
};
</
script
>
\ No newline at end of file
pages/produce/execute/ProcessCase/detail.vue
View file @
900731c6
<
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('deletionTime')"
>
{{
entity
.
deletionTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deleterUserId')"
>
{{
entity
.
deleterUserId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('title')"
>
{{
entity
.
title
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('creator')"
>
{{
entity
.
creator
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('content')"
>
{{
entity
.
content
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('filePath')"
>
{{
entity
.
filePath
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('filePaths')"
>
{{
entity
.
filePaths
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('dispatchId')"
>
{{
entity
.
dispatchId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingDetailId')"
>
{{
entity
.
routingDetailId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('routingHeaderId')"
>
{{
entity
.
routingHeaderId
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('type')"
>
{{
entity
.
type
}}
</Filed>
</Row>
</div>
<div
class=
"detail"
>
<Row>
<Filed
:span=
"24"
:name=
"l('title')"
>
{{
entity
.
title
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('creationTime')"
>
{{
entity
.
creationTime
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('creator')"
>
{{
entity
.
creator
}}
</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('deletionTime')"
>
{{
entity
.
deletionTime
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('deleterUserId')"
>
{{
entity
.
deleterUserId
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('filePath')"
>
{{
entity
.
filePath
}}
</Filed>
<!--
<Filed
:span=
"12"
:name=
"l('filePaths')"
>
{{
entity
.
filePaths
}}
</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
=
"process_case"
+
"."
+
key
;
return
this
.
$t
(
key
)
import
Api
from
"./api"
;
export
default
{
name
:
"Add"
,
data
()
{
return
{
entity
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
},
watch
:
{
eid
(
v
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
}
};
},
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
=
"process_case"
+
"."
+
key
;
return
this
.
$t
(
key
);
}
},
watch
:
{
eid
(
v
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
}
}
}
};
</
script
>
\ No newline at end of file
pages/produce/execute/ProcessCase/index.vue
View file @
900731c6
...
...
@@ -27,7 +27,37 @@
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
<
template
slot=
"card"
slot-scope=
"{row}"
>
<div
class=
"card_box"
@
click=
"changeCards(row)"
>
<div
class=
"card_body"
>
<Row
class=
"title_i"
>
<Col
:span=
"21"
>
案例名称:
{{
row
.
title
}}
</Col>
<Col
:span=
"3"
class=
"btn_click"
>
<!--
<a
@
click=
"edit(row.id)"
>
<Icon
type=
"ios-create"
@
click=
"edit(row.id)"
/>
</a>
-->
<a
@
click=
"view(row.id)"
>
<Icon
type=
"ios-paper"
/>
</a>
<a
@
click=
"remove(row.id)"
>
<Icon
type=
"ios-trash"
/>
</a>
</Col>
</Row>
<div
class=
"down_text"
>
<Row
:gutter=
"16"
>
<Col
span=
"6"
>
<div
class=
"file"
>
<Icon
type=
"ios-paper"
v-if=
"row.id%2==0"
/>
<Icon
type=
"md-film"
v-else
/>
</div>
</Col>
<Col
span=
"18"
>
<p>
{{
row
.
creationTime
}}
</p>
<p>
{{
row
.
id
}}{{
row
.
creator
}}
</p>
</Col>
</Row>
</div>
</div>
<!--
<div
class=
"card_box"
@
click=
"changeCards(row)"
>
<Row
:gutter=
"16"
>
<Col
span=
"6"
>
<div
class=
"file"
>
...
...
@@ -43,12 +73,15 @@
<p>
{{
row
.
id
}}{{
row
.
creator
}}
</p>
</Col>
</Row>
</div>
</div>
-->
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"
12
00"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"
8
00"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
:mask-closable=
"false"
>
<p>
确定删除?
</p>
</Modal>
</div>
</template>
<
script
>
...
...
@@ -62,7 +95,7 @@ export default {
head
:
{
title
:
"工艺案例"
,
author
:
"henq"
,
description
:
"process_case 6/1/2020 5:06:34 PM"
//
description: "process_case 6/1/2020 5:06:34 PM"
},
data
()
{
return
{
...
...
@@ -72,6 +105,7 @@ export default {
type
:
{
op
:
"Equal"
,
value
:
1
}
},
modal
:
false
,
deletelModal
:
false
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
...
...
@@ -212,7 +246,7 @@ export default {
},
methods
:
{
laodparme
()
{
console
.
log
(
555
);
//
console.log(555);
this
.
$refs
.
grid
.
reload
(
condition
);
},
changeCards
(
carData
)
{
...
...
@@ -251,6 +285,11 @@ export default {
this
.
modal
=
true
;
},
remove
(
id
)
{
this
.
deletelModal
=
true
;
this
.
curId
=
id
;
},
removeOk
(){
let
id
=
this
.
curId
;
Api
.
delete
(
id
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
...
...
@@ -261,6 +300,7 @@ export default {
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
;
this
.
deletedlModal
=
false
;
},
l
(
key
)
{
/*
...
...
pages/produce/execute/ProcessCheck/guidance/add.vue
View file @
900731c6
<
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"
>
<InputNumber
v-model=
"entity.isDeleted"
></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('deleterUserId')"
prop=
"deleterUserId"
>
<InputNumber
v-model=
"entity.deleterUserId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('title')"
prop=
"title"
>
<Col
:span=
"24"
>
<FormItem
:label=
"l('title')"
prop=
"title"
style=
"width:95%"
>
<Input
v-model=
"entity.title"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('creator')"
prop=
"creator"
>
<Input
v-model=
"entity.creator"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('content')"
prop=
"content"
>
<Input
v-model=
"entity.content"
></Input>
<Col
:span=
"24"
>
<FormItem
label
>
<files
ref=
"refFile"
:parms=
"parms"
files
/>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('filePath')"
prop=
"filePath"
>
<!--
<FormItem
:label=
"l('filePath')"
prop=
"filePath"
>
<InputFile
v-model=
"entity.filePath"
></InputFile>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('filePaths')"
prop=
"filePaths"
>
<Input
v-model=
"entity.filePaths"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('dispatchId')"
prop=
"dispatchId"
>
<InputNumber
v-model=
"entity.dispatchId"
></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('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('type')"
prop=
"type"
>
<InputNumber
v-model=
"entity.type"
></InputNumber>
</FormItem>
</FormItem>
-->
</Col>
</Row>
<FormItem>
...
...
@@ -96,32 +29,38 @@ export default {
return
{
disabled
:
false
,
entity
:
{
creationTime
:
null
,
creatorUserId
:
null
,
lastModificationTime
:
null
,
lastModifierUserId
:
null
,
isDeleted
:
null
,
deletionTime
:
null
,
deleterUserId
:
null
,
//
creationTime: null,
creatorUserId
:
this
.
$store
.
state
.
userInfo
.
userId
,
//
lastModificationTime: null,
//
lastModifierUserId: null,
//
isDeleted: null,
//
deletionTime: null,
//
deleterUserId: null,
title
:
""
,
creator
:
""
,
creator
:
this
.
$store
.
state
.
userInfo
.
userName
,
content
:
""
,
filePath
:
""
,
filePaths
:
""
,
dispatchId
:
null
,
routingDetailId
:
null
,
routingHeaderId
:
null
,
type
:
null
dispatchId
:
this
.
$route
.
query
.
id
,
routingDetailId
:
this
.
$route
.
query
.
headid
,
routingHeaderId
:
this
.
$route
.
query
.
routid
,
type
:
2
},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
},
parms
:{
},
};
},
props
:
{
v
:
Object
,
eid
:
Number
},
created
(){
console
.
log
(
this
.
entity
.
creator
)
},
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
...
...
pages/produce/execute/ProcessCheck/guidance/index.vue
View file @
900731c6
...
...
@@ -24,7 +24,37 @@
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
<
template
slot=
"card"
slot-scope=
"{row}"
>
<div
class=
"card_box"
@
click=
"changeCards(row)"
>
<div
class=
"card_body"
>
<Row
class=
"title_i"
>
<Col
:span=
"21"
>
工艺名称:
{{
row
.
title
}}
</Col>
<Col
:span=
"3"
class=
"btn_click"
>
<!--
<a
@
click=
"edit(row.id)"
>
<Icon
type=
"ios-create"
@
click=
"edit(row.id)"
/>
</a>
-->
<a
@
click=
"view(row.id)"
>
<Icon
type=
"ios-paper"
/>
</a>
<a
@
click=
"remove(row.id)"
>
<Icon
type=
"ios-trash"
/>
</a>
</Col>
</Row>
<div
class=
"down_text"
>
<Row
:gutter=
"16"
>
<Col
span=
"6"
>
<div
class=
"file"
>
<Icon
type=
"ios-paper"
v-if=
"row.id%2==0"
/>
<Icon
type=
"md-film"
v-else
/>
</div>
</Col>
<Col
span=
"18"
>
<p>
{{
row
.
creationTime
}}
</p>
<p>
{{
row
.
id
}}{{
row
.
creator
}}
</p>
</Col>
</Row>
</div>
</div>
<!--
<div
class=
"card_box"
@
click=
"changeCards(row)"
>
<Row
:gutter=
"16"
>
<Col
span=
"6"
>
<div
class=
"file"
>
...
...
@@ -40,12 +70,15 @@
<p>
{{
row
.
id
}}{{
row
.
creator
}}
</p>
</Col>
</Row>
</div>
</div>
-->
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
:mask-closable=
"false"
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
:mask-closable=
"false"
>
<p>
确定删除?
</p>
</Modal>
</div>
</template>
<
script
>
...
...
@@ -58,8 +91,8 @@ export default {
},
head
:
{
title
:
"工艺提醒"
,
author
:
"henq"
,
description
:
"process_case 6/1/2020 5:06:34 PM"
//
author: "henq",
//
description: "process_case 6/1/2020 5:06:34 PM"
},
data
()
{
return
{
...
...
@@ -69,6 +102,7 @@ export default {
type
:
{
op
:
"Equal"
,
value
:
2
}
},
modal
:
false
,
deletelModal
:
false
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
...
...
@@ -242,6 +276,11 @@ export default {
this
.
modal
=
true
;
},
remove
(
id
)
{
this
.
deletelModal
=
true
;
this
.
curId
=
id
;
},
removeOk
(){
let
id
=
this
.
curId
;
Api
.
delete
(
id
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
...
...
@@ -252,6 +291,7 @@ export default {
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
;
this
.
deletedlModal
=
false
;
},
l
(
key
)
{
/*
...
...
pages/produce/execute/components/orderlist.vue
View file @
900731c6
...
...
@@ -37,13 +37,17 @@ export default {
return
{
gnFlag
:
0
,
listTasks
:
[],
dataLength
:
0
dataLength
:
0
,
};
},
props
:
{
order
:
{
type
:
String
,
default
:
''
,
},
asc
:
{
type
:
Boolean
,
default
:
true
,
}
},
created
()
{
...
...
@@ -53,7 +57,7 @@ export default {
loadTree
(
value
)
{
let
parmse
=
{
status
:
value
,
isAsc
:
t
rue
isAsc
:
t
his
.
asc
};
Api
.
getCardList
(
parmse
).
then
(
res
=>
{
if
(
res
.
success
)
{
...
...
@@ -73,6 +77,7 @@ export default {
orderId
:
item
.
orderId
,
executeId
:
item
.
executeId
,
headid
:
item
.
routingHeaderId
,
routid
:
item
.
routingDetailId
,
//工序ID
dispatchStatus
:
item
.
status
}
});
...
...
@@ -82,6 +87,11 @@ export default {
order
(
v
)
{
//alert(v)
},
asc
(
v
)
{
this
.
asc
=
v
this
.
loadTree
(
-
9
)
}
}
};
...
...
pages/produce/execute/execute.less
View file @
900731c6
...
...
@@ -126,7 +126,30 @@
padding: 0;
}
}
.card_body{
border: 1px solid #e4e6ed;
border-radius: 4px;
margin-bottom: 30px;
.title_i{
padding: 0 8px;
height: 35px;
line-height: 35px;
color: #fff;
background: #a7b8cc;
font-size: 15px;
}
.btn_click{
text-align: right;
}
.down_text{
background: #a7b8cc33;
padding: 5px 8px;
line-height: 32px;
i{
font-size: 62px;
}
}
}
.gd_box{
.ivu-drawer-wrap{
.ivu-drawer-left{
...
...
pages/produce/execute/index.vue
View file @
900731c6
...
...
@@ -21,11 +21,11 @@
</Select>
</div>
<div
class=
"select_t"
>
<Button
class
>
时间正序排列
</Button>
<Button
@
click=
"changeAsc"
>
{{
ascTitle
}}
</Button>
</div>
</div>
<!-- 列表卡片主内容 -->
<orderlist
ref=
"orderlist"
:order=
"inputId"
/>
<orderlist
ref=
"orderlist"
:
asc=
"asc"
:
order=
"inputId"
/>
</Drawer>
<!-- 功能区 -->
<Drawer
...
...
@@ -59,6 +59,8 @@ export default {
orderId
:
this
.
$route
.
query
.
id
,
condition
:
[],
inputId
:
null
,
asc
:
true
,
ascTitle
:
'时间正序排序'
};
},
created
()
{
...
...
@@ -76,15 +78,16 @@ export default {
mounted
()
{},
comments
:
{},
methods
:
{
starFun
()
{
this
.
$Message
.
success
(
"开工..."
);
},
// getListLength(len){ this.listLength = len },
// 返回工单列表
goToOrder
()
{
this
.
$router
.
push
(
"/produce/orderlist"
);
},
searchOrder
(
value
)
{
if
(
value
==
''
||
value
==
null
||
value
==
undefined
)
{
value
=-
9
}
this
.
$refs
.
orderlist
.
loadTree
(
value
);
},
changeTitle
(
number
,
type
)
{
...
...
@@ -124,6 +127,18 @@ export default {
this
.
$Message
.
info
(
"尊敬的用户,您没有该权限!"
)
// this.detail = () => import("./testdata/index");
}
//测试数据
},
changeAsc
()
{
this
.
asc
=!
this
.
asc
if
(
this
.
asc
)
{
this
.
ascTitle
=
'时间正序排序'
}
else
{
this
.
ascTitle
=
'时间倒序排序'
}
}
},
watch
:
{
...
...
pages/produce/orderlist.vue
View file @
900731c6
...
...
@@ -27,7 +27,10 @@
<Button
:icon=
"iconInfo"
shape=
"circle"
:title=
"titleInfo"
@
click=
"changeShwo"
></Button>
</
template
>
<
template
slot=
"card"
slot-scope=
"{row}"
>
<div
class=
"body"
@
click=
"toExecute(row.id,row.orderId,row.executeId,row.routingHeaderId,row.status)"
>
<div
class=
"body"
@
click=
"toExecute(row.id,row.orderId,row.executeId,row.routingHeaderId,row.routingDetailId,row.status)"
>
<Row
class=
"title-i"
>
<Col
:span=
"10"
class=
"order-code"
>
{{
row
.
productName
}}
</Col>
<Col
:span=
"10"
class=
"order-code"
>
{{
row
.
mesCode
}}
</Col>
...
...
@@ -182,6 +185,7 @@ export default {
params
.
row
.
orderId
,
params
.
row
.
executeId
,
params
.
row
.
routingHeaderId
,
params
.
row
.
routingDetailId
,
params
.
row
.
status
)
}
...
...
@@ -212,11 +216,18 @@ export default {
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
toExecute
(
id
,
orderId
,
executeId
,
headid
,
status
)
{
toExecute
(
id
,
orderId
,
executeId
,
headid
,
routingDetailId
,
status
)
{
//跳转到对应操作页面 获取id:this.$route.query.id
this
.
$router
.
push
({
path
:
"/produce/execute"
,
query
:
{
id
:
id
,
orderId
:
orderId
,
executeId
:
executeId
,
headid
:
headid
,
dispatchStatus
:
status
}
query
:
{
id
:
id
,
//工单ID
orderId
:
orderId
,
//订单id
executeId
:
executeId
,
//订单执行表id
headid
:
headid
,
//工艺规程id
routid
:
routingDetailId
,
//工序ID
dispatchStatus
:
status
}
});
},
tdStyle
(
val
)
{
...
...
@@ -280,7 +291,7 @@ export default {
//返回img需要显示的src值
let
tempUrl
=
""
;
if
(
url
&&
url
.
length
>
0
)
{
tempUrl
=
this
.
downUrl
+
url
;
tempUrl
=
this
.
downUrl
+
url
;
}
else
{
tempUrl
=
iconImg
+
"noPic_product.png"
;
}
...
...
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