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
f73bf79b
Commit
f73bf79b
authored
Jun 05, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
starorder
parent
7c15c3ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
161 additions
and
25 deletions
+161
-25
viewer.vue
components/page/viewer.vue
+89
-0
api.js
pages/produce/execute/api.js
+4
-0
index.vue
pages/produce/execute/starOrder/index.vue
+65
-25
iview.js
plugins/iview.js
+3
-0
No files found.
components/page/viewer.vue
0 → 100644
View file @
f73bf79b
<
template
>
<div>
<viewer
:options=
"options"
:images=
"images"
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<template
slot-scope=
"scope"
>
<figure
class=
"images"
>
<div
class=
"image-wrapper"
v-for=
"
{source, thumbnail} in scope.images" :key="source">
<img
class=
"image"
:src=
"thumbnail"
:data-source=
"source"
:alt=
"source.split('?image=').pop()"
/>
</div>
</figure>
</
template
>
</viewer>
</div>
</template>
<
script
>
export
default
{
name
:
'viewerImg'
,
props
:
{
images
:
{
type
:
Array
,
default
:
[]
}
},
data
()
{
return
{
options
:
{
inline
:
true
,
button
:
true
,
navbar
:
true
,
title
:
false
,
toolbar
:
true
,
tooltip
:
true
,
movable
:
true
,
zoomable
:
true
,
rotatable
:
true
,
scalable
:
true
,
transition
:
true
,
fullscreen
:
true
,
keyboard
:
true
,
url
:
"data-source"
}
// images: [...sourceImages].splice(0, 5)
};
},
computed
:
{},
methods
:
{
inited
(
viewer
)
{
this
.
$viewer
=
viewer
;
}
},
watch
:
{
images
(
v
)
{
if
(
v
&&
v
.
length
>
0
)
{
this
.
images
=
v
;
}
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.viewer {
height: 100%;
.images {
height: 100%;
display: flex;
justify-content: center;
align-content: center;
align-items: center;
flex-wrap: wrap;
padding: 5px;
.image-wrapper {
display: inline-block;
width: calc(10% - 20px);
margin: 5px 5px 0 5px;
.image {
width: 100%;
cursor: pointer;
display: inline-block;
}
}
}
}
</
style
>
\ No newline at end of file
pages/produce/execute/api.js
View file @
f73bf79b
...
...
@@ -7,4 +7,8 @@ export default {
submitData
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutequalityrecord/checkdispatchproduct`
,
params
);
},
//工单联合信息
orderanddispatchinfos
(
params
)
{
return
Api
.
get
(
`
${
PlanUrl
}
/orderexecutenew/orderanddispatchinfos`
,
params
);
},
}
\ No newline at end of file
pages/produce/execute/starOrder/index.vue
View file @
f73bf79b
...
...
@@ -48,49 +48,45 @@
<div
class=
"footer_box"
>
<div
class=
"ul_box fl"
>
<ul>
<li>
名称:名称1
</li>
<li>
图号:UIGT-763245
</li>
<li>
状态:未开工
</li>
<li>
订单编号:097543346
</li>
<li>
订单属性1:
</li>
<li>
订单属性2:
</li>
<li>
订单属性3:
</li>
<li>
计划数量:10
</li>
<li>
节点日期:2020-02-25
</li>
<li>
产品名称:
{{
entity
.
productName
}}
</li>
<li>
图号:
{{
entity
.
drawnNumber
}}
</li>
<li>
状态:
{{
entity
.
status
}}
</li>
<li>
订单编号:
{{
entity
.
mesCode
}}
</li>
<li>
批次号:
{{
entity
.
batchNumber
}}
</li>
<li>
计划数量:
{{
entity
.
quantity
}}
</li>
<li>
节点日期:
{{
entity
.
demandFinishDate
}}
</li>
</ul>
</div>
<div
class=
"ul_box fl"
>
<ul>
<li>
工序名称:名称1
</li>
<li>
工序序号:UIGT-763245
</li>
<li>
派工数量:66
</li>
<li>
资源名称:23366
</li>
<li>
资源编号:986732038
</li>
<li>
人员信息:
</li>
<li>
开始时间:
</li>
<li>
结束时间:
</li>
<li>
单件工时:10
</li>
<li>
准备工时:2020-02-25
</li>
<li>
工序名称:
{{
entity
.
seqName
}}
</li>
<li>
工序序号:
{{
entity
.
seqNo
}}
</li>
<li>
派工数量:
{{
entity
.
dispatchQuantity
}}
</li>
<li>
人员信息:
{{
entity
.
userNames
}}
</li>
<li>
准备工时:
{{
entity
.
setupTime
}}
</li>
</ul>
</div>
<div
class=
"img_box fl"
style=
"background:#DDD"
>
<vie
/>
<div
class=
"img_box fl"
style=
"background:#DDD"
>
<ViewerImg
:images=
"images"
/>
</div>
</div>
</div>
</
template
>
<
script
>
import
Vie
from
'../../../test/viewer'
import
Api
from
"../api"
;
import
ApiTech
from
"../../../technology/productMix/product/api"
;
export
default
{
name
:
"starOrder"
,
components
:
{
Vie
},
data
()
{
return
{
starmodal
:
true
,
downUrl
:
fileUrlDown
,
contentMsge
:
"<ul><li>暂停 2020-02-06 15:35</li><li>继续 2020-02-06 15:35</li></ul>"
,
images
:
[],
entity
:
{},
id
:
Number
(
this
.
$route
.
query
.
id
),
eid
:
""
};
},
created
()
{
...
...
@@ -100,6 +96,7 @@ export default {
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{
this
.
load
(
this
.
id
)
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
...
...
@@ -111,12 +108,55 @@ export default {
starFun
()
{
this
.
$Message
.
success
(
"开工..."
);
},
load
(
v
)
{
let
params
=
{
id
:
v
};
Api
.
orderanddispatchinfos
(
params
)
.
then
(
r
=>
{
if
(
r
.
success
&&
r
.
result
)
{
this
.
entity
=
r
.
result
;
if
(
r
.
result
.
productId
&&
r
.
result
.
productId
>
0
)
{
ApiTech
.
get
({
id
:
r
.
result
.
productId
}).
then
(
res
=>
{
if
(
res
.
success
&&
res
.
result
)
{
this
.
eid
=
res
.
result
.
productUrlList
;
//查询上传到文件服务器上的文件
let
parms
=
{
app
:
"technology"
,
eid
:
this
.
eid
,
name
:
""
,
field
:
""
};
this
.
$http
.
sysUser
.
getFile
(
parms
).
then
(
res1
=>
{
if
(
res1
.
data
!=
[]
&&
res1
.
data
.
length
>
0
)
{
this
.
images
=
[];
res1
.
data
.
forEach
(
datas
=>
{
this
.
images
.
push
(
this
.
downUrl
+
datas
.
downloadPath
)
});
alert
(
JSON
.
stringify
(
this
.
images
))
}
});
}
});
}
}
})
.
catch
(
e
=>
{
this
.
$Message
.
error
(
"连接错误"
);
});
},
inited
(
viewer
)
{
this
.
$viewer
=
viewer
;
},
show
()
{
this
.
$viewer
.
show
();
}
},
watch
:{
images
(
v
){
this
.
images
=
v
}
}
};
</
script
>
plugins/iview.js
View file @
f73bf79b
...
...
@@ -54,6 +54,7 @@ import DTSpan from '@/components/page/dtSpan.vue'
import
DTSearch
from
'@/components/page/dtSearch.vue'
import
InputTime
from
'@/components/page/inputTime.vue'
import
OutputTime
from
'@/components/page/outputTime.vue'
import
ViewerImg
from
'@/components/page/viewer.vue'
// import FormMaking from 'form-making'
// import 'form-making/dist/FormMaking.css'
...
...
@@ -113,6 +114,8 @@ Vue.component("DTSpan", DTSpan)
Vue
.
component
(
"DTSearch"
,
DTSearch
)
Vue
.
component
(
"InputTime"
,
InputTime
)
Vue
.
component
(
"OutputTime"
,
OutputTime
)
Vue
.
component
(
"ViewerImg"
,
ViewerImg
)
//注入mock
// require("../mock")
...
...
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