Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
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
gavelinfo
kwell-mes
Commits
65bc0a53
Commit
65bc0a53
authored
Feb 17, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改easytextbox为普通textbox,适用vue
parent
7116e4d1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
286 additions
and
218 deletions
+286
-218
dbenlarge.js
gavel/src/main/resources/static/js/dbenlarge.js
+11
-1
index.html
...l/src/main/resources/templates/views/kmes/gphy/index.html
+201
-153
index.html
...l/src/main/resources/templates/views/kmes/gpjy/index.html
+30
-26
index.html
...l/src/main/resources/templates/views/kmes/gpwx/index.html
+44
-38
No files found.
gavel/src/main/resources/static/js/dbenlarge.js
View file @
65bc0a53
...
...
@@ -28,13 +28,23 @@ function exitFullscreen() {
}
}
function
dbenlarge
(
domid
,
isTrue
)
{
function
dbenlarge
(
domid
,
isTrue
,
func
)
{
let
is
=
isTrue
document
.
getElementById
(
domid
).
style
.
backgroundColor
=
"#FFFFFF"
document
.
getElementById
(
domid
).
addEventListener
(
'dblclick'
,
function
(
e
)
{
fullScreen
(
document
.
getElementById
(
domid
));
setTimeout
(()
=>
{
if
(
func
){
func
()
}
},
300
)
},
false
);
if
(
isTrue
){
fullScreen
(
document
.
getElementById
(
domid
));
setTimeout
(()
=>
{
if
(
func
){
func
()
}
},
300
)
}
}
gavel/src/main/resources/templates/views/kmes/gphy/index.html
View file @
65bc0a53
This diff is collapsed.
Click to expand it.
gavel/src/main/resources/templates/views/kmes/gpjy/index.html
View file @
65bc0a53
...
...
@@ -96,6 +96,13 @@
height
:
100%
;
width
:
100%
;
}
.easyuitext
{
height
:
30px
;
border
:
0.5px
solid
#D3D3D3
;
}
.wid70
{
width
:
70%
;
}
</style>
<div
id=
"gpjykb"
>
<!-- 顶部信息条 -->
...
...
@@ -117,21 +124,21 @@
<div
class=
"cpif"
>
<!-- top -->
<div
class=
"cpiftop"
style=
"display: flex;align-items: center;"
>
<span>
序列号
</span>
:
<input
name=
"xlh"
/>
<span>
序列号
</span>
:
<input
class=
"easyuitext "
style=
"width: 84%;"
v-model=
"xlh"
@
keydown=
"scanxlh()"
name=
"xlh"
/>
</div>
<!-- bot -->
<div
class=
"cpifbot"
style=
"display: flex;flex-wrap: wrap;"
>
<div
class=
"ery"
>
<span>
工序
</span><input
name=
"gx"
/>
<span>
工序
</span><input
class=
"easyuitext wid70"
v-model=
"gx"
name=
"gx"
/>
</div>
<div
class=
"ery"
>
<span>
工单
</span><input
name=
"gd"
/>
<span>
工单
</span><input
class=
"easyuitext wid70"
v-model=
"gd"
name=
"gd"
/>
</div>
<div
class=
"ery"
>
<span>
产品SN
</span><input
name=
"cpsn"
/>
<span>
产品SN
</span><input
class=
"easyuitext wid70"
v-model=
"cpsn"
name=
"cpsn"
/>
</div>
<div
class=
"ery"
>
<span>
品号
</span><input
name=
"ph"
/>
<span>
品号
</span><input
class=
"easyuitext wid70"
v-model=
"ph"
name=
"ph"
/>
</div>
</div>
</div>
...
...
@@ -159,7 +166,7 @@
日志
</div>
<div
style=
"height: calc(100% - 20px);display: flex;"
>
<div
style=
"width: 100%;height: 100%;background-color: #393456;color: #FFFFFF
;"
>
<div
class=
"rz"
style=
"width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto
;"
>
<span>
>>Tips
</span>
</div>
</div>
...
...
@@ -191,6 +198,11 @@
},
data
:
function
(){
return
{
xlh
:
""
,
gx
:
""
,
gd
:
""
,
cpsn
:
""
,
ph
:
""
,
systime
:
""
,
tabdata
:[
...
...
@@ -201,28 +213,20 @@
}
},
methods
:{
// 扫码事件
scanxlh
(
e
){
var
evt
=
window
.
event
||
e
;
if
(
evt
.
keyCode
==
13
)
{
console
.
log
(
this
.
xlh
)
$
(
"#gpjykb"
).
find
(
".rz"
).
append
(
"<br>>"
+
"<span>"
+
"正在查询:"
+
this
.
xlh
+
"</sapn>"
)
this
.
addtop
=
this
.
addtop
+
600
$
(
"#gpjykb"
).
find
(
".rz"
).
scrollTop
(
this
.
addtop
)
this
.
xlh
=
""
}
},
// 初始化页面
initpage
(){
let
$xlh
=
$
(
"#gpjykb"
).
find
(
'input[name="xlh"]'
)
let
$gx
=
$
(
"#gpjykb"
).
find
(
'input[name="gx"]'
)
let
$gd
=
$
(
"#gpjykb"
).
find
(
'input[name="gd"]'
)
let
$cpsn
=
$
(
"#gpjykb"
).
find
(
'input[name="cpsn"]'
)
let
$ph
=
$
(
"#gpjykb"
).
find
(
'input[name="ph"]'
)
$xlh
.
textbox
({
width
:
'84%'
})
$gx
.
textbox
({
width
:
'200'
})
$gd
.
textbox
({
width
:
'200'
})
$cpsn
.
textbox
({
width
:
'200'
})
$ph
.
textbox
({
width
:
'200'
})
},
/* 展示时间 */
gettime
(){
...
...
gavel/src/main/resources/templates/views/kmes/gpwx/index.html
View file @
65bc0a53
<style
type=
"text/css"
>
<script
src=
"js/pdfshow.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"js/dbenlarge.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<style
type=
"text/css"
>
*
{
margin
:
0
;
padding
:
0
;
}
#
kwrkb04
{
#
gpwxkb
{
height
:
100%
;
width
:
100%
;
display
:
flex
;
...
...
@@ -11,7 +13,7 @@
justify-content
:
space-between
;
align-items
:
stretch
}
#
kwrkb04
div
{
#
gpwxkb
div
{
box-sizing
:
border-box
;
}
.toptitle
{
...
...
@@ -94,8 +96,15 @@
height
:
100%
;
width
:
100%
;
}
.easyuitext
{
height
:
30px
;
border
:
0.5px
solid
#D3D3D3
;
}
.wid70
{
width
:
70%
;
}
</style>
<div
id=
"
kwrkb04
"
>
<div
id=
"
gpwxkb
"
>
<!-- 顶部信息条 -->
<div
class=
"toptitle"
>
<ul
class=
"tipul"
style=
"height: 100%;"
>
...
...
@@ -115,21 +124,21 @@
<div
class=
"cpif"
>
<!-- top -->
<div
class=
"cpiftop"
style=
"display: flex;align-items: center;"
>
<span>
序列号
</span>
:
<input
name=
"xlh"
/>
<span>
序列号
</span>
:
<input
class=
"easyuitext "
style=
"width: 84%;"
v-model=
"xlh"
@
keydown=
"scanxlh()"
name=
"xlh"
/>
</div>
<!-- bot -->
<div
class=
"cpifbot"
style=
"display: flex;flex-wrap: wrap;"
>
<div
class=
"ery"
>
<span>
工序
</span><input
name=
"gx"
/>
<span>
工序
</span><input
class=
"easyuitext wid70"
v-model=
"gx"
name=
"gx"
/>
</div>
<div
class=
"ery"
>
<span>
工单
</span><input
name=
"gd"
/>
<span>
工单
</span><input
class=
"easyuitext wid70"
v-model=
"gd"
name=
"gd"
/>
</div>
<div
class=
"ery"
>
<span>
产品SN
</span><input
name=
"cpsn"
/>
<span>
产品SN
</span><input
class=
"easyuitext wid70"
v-model=
"cpsn"
name=
"cpsn"
/>
</div>
<div
class=
"ery"
>
<span>
品号
</span><input
name=
"ph"
/>
<span>
品号
</span><input
class=
"easyuitext wid70"
v-model=
"ph"
name=
"ph"
/>
</div>
</div>
</div>
...
...
@@ -157,7 +166,7 @@
日志
</div>
<div
style=
"height: calc(100% - 20px);display: flex;"
>
<div
style=
"width: 100%;height: 100%;background-color: #393456;color: #FFFFFF
;"
>
<div
class=
"rz"
style=
"width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto
;"
>
<span>
>>Tips
</span>
</div>
</div>
...
...
@@ -166,15 +175,15 @@
</div>
<!-- 右侧信息pdf -->
<div
class=
"right"
>
<canvas
id=
"pdf"
class=
"rightPdf"
></canvas>
<canvas
id=
"
gpwx
pdf"
class=
"rightPdf"
></canvas>
</div>
</div>
<script
type=
"text/javascript"
>
let
V
kwrkb04
=
new
Vue
({
el
:
"#
kwrkb04
"
,
let
V
gpwxkb
=
new
Vue
({
el
:
"#
gpwxkb
"
,
mounted
()
{
dbenlarge
(
'
kwrkb04
'
,
1
)
pdfshow
(
"pdf/dcAcess.pdf"
,
"pdf"
,
5000
).
then
(
e
=>
{
dbenlarge
(
'
gpwxkb
'
,
1
)
pdfshow
(
"pdf/dcAcess.pdf"
,
"
gpwx
pdf"
,
5000
).
then
(
e
=>
{
this
.
sivpdf
=
e
})
// this.sivpdf=
...
...
@@ -189,9 +198,14 @@
},
data
:
function
(){
return
{
xlh
:
""
,
gx
:
""
,
gd
:
""
,
cpsn
:
""
,
ph
:
""
,
systime
:
""
,
tabdata
:[
],
sivtimer
:
null
,
//时间计数器
sivpdf
:
null
,
...
...
@@ -199,28 +213,20 @@
}
},
methods
:{
// 扫码事件
scanxlh
(
e
){
var
evt
=
window
.
event
||
e
;
if
(
evt
.
keyCode
==
13
)
{
console
.
log
(
this
.
xlh
)
$
(
"#gpwxkb"
).
find
(
".rz"
).
append
(
"<br>>"
+
"<span>"
+
"正在查询:"
+
this
.
xlh
+
"</sapn>"
)
this
.
addtop
=
this
.
addtop
+
600
$
(
"#gpwxkb"
).
find
(
".rz"
).
scrollTop
(
this
.
addtop
)
this
.
xlh
=
""
}
},
// 初始化页面
initpage
(){
let
$xlh
=
$
(
"#kwrkb04"
).
find
(
'input[name="xlh"]'
)
let
$gx
=
$
(
"#kwrkb04"
).
find
(
'input[name="gx"]'
)
let
$gd
=
$
(
"#kwrkb04"
).
find
(
'input[name="gd"]'
)
let
$cpsn
=
$
(
"#kwrkb04"
).
find
(
'input[name="cpsn"]'
)
let
$ph
=
$
(
"#kwrkb04"
).
find
(
'input[name="ph"]'
)
$xlh
.
textbox
({
width
:
'84%'
})
$gx
.
textbox
({
width
:
'200'
})
$gd
.
textbox
({
width
:
'200'
})
$cpsn
.
textbox
({
width
:
'200'
})
$ph
.
textbox
({
width
:
'200'
})
},
/* 展示时间 */
gettime
(){
...
...
@@ -236,8 +242,8 @@
appdestory
(){
let
that
=
this
this
.
sivdestory
=
setInterval
(
function
(){
if
(
!
$
(
"#
kwrkb04
"
).
height
()){
V
kwrkb04
.
$destroy
()
if
(
!
$
(
"#
gpwxkb
"
).
height
()){
V
gpwxkb
.
$destroy
()
}
},
3000
)
}
...
...
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