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
c989632e
Commit
c989632e
authored
Feb 16, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dp
parent
e9c1d92c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
781 additions
and
872 deletions
+781
-872
index.html
...l/src/main/resources/templates/views/kmes/gphy/index.html
+284
-226
index.html
...l/src/main/resources/templates/views/kmes/gpjy/index.html
+249
-219
index.html
...l/src/main/resources/templates/views/kmes/gpwx/index.html
+248
-215
index.html
...l/src/main/resources/templates/views/kmes/zpfk/index.html
+0
-161
zpfkdetails.html
...main/resources/templates/views/kmes/zpfk/zpfkdetails.html
+0
-51
No files found.
gavel/src/main/resources/templates/views/kmes/gphy/index.html
View file @
c989632e
<div
id=
"kmesGphy"
class=
"gui-div"
>
<table
class=
"toolbar-table"
data-options=
"id: 'kmesGphyTable',herf:'kzzx/gridset/query'"
></table>
<!-- 表格工具栏开始 -->
<div
id=
"kmesGphyTable-toolbar"
class=
"gui-toolbar"
data-options=
"grid:{type:'datagrid',id:'kmesGphyTable'}"
>
<div
class=
"navbar-toolbar"
>
<a
class=
"toolbar-print toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-export toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-add toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-cancelzp toolbar"
href=
"javascript:void(0)"
></a>
<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
;
}
#kwrkb01
{
height
:
100%
;
width
:
100%
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
align-items
:
stretch
}
#kwrkb01
div
{
box-sizing
:
border-box
;
}
.toptitle
{
height
:
50px
;
width
:
100%
;
background-color
:
#00aaff
;
color
:
#FFFFFF
;
text-align
:
center
;
line-height
:
50px
;
}
.left
{
height
:
calc
(
100%
-
60px
);
width
:
40%
;
}
.right
{
height
:
calc
(
100%
-
60px
);
width
:
calc
(
60%
-
10px
);
border
:
#EEEEEE
1px
solid
;
}
.rightPdf
{
height
:
100%
;
width
:
100%
;
}
.cbinfor
{
width
:
100%
;
height
:
40%
;
}
.tab
{
width
:
100%
;
height
:
60%
;
padding-top
:
10px
;
}
.cpif
{
width
:
100%
;
height
:
50%
;
border
:
1px
solid
#EEEEEE
;
}
.cprz
{
width
:
100%
;
height
:
50%
;
border
:
1px
solid
#EEEEEE
;
}
.cpiftop
{
width
:
100%
;
height
:
40px
;
border-bottom
:
1px
solid
#EEEEEE
;
line-height
:
40px
;
display
:
flex
;
justify-content
:
center
;
}
.cpifbot
{
height
:
calc
(
100%
-
40px
);
}
.ery
{
width
:
50%
;
height
:
50%
;
display
:
flex
;
align-items
:
center
;
}
.ery
span
{
padding-left
:
20px
;
display
:
inline-block
;
width
:
70px
;
}
.tipul
>
li
{
width
:
150px
;
padding-left
:
20px
;
float
:
left
;
line-height
:
50px
;
}
.tipuli2
{
float
:
right
!important
;
}
.maintab
{
height
:
100%
;
width
:
100%
;
overflow
:
auto
;
border
:
0.5px
solid
#EEEEEE
;
}
.showtab
{
height
:
100%
;
width
:
100%
;
}
</style>
<div
id=
"kwrkb01"
>
<!-- 顶部信息条 -->
<div
class=
"toptitle"
>
<ul
class=
"tipul"
style=
"height: 100%;"
>
<li>
ADMIN
</li>
<li>
系统管理员
</li>
<li
class=
"tipuli2"
>
{{systime}}
</li>
<li
class=
"tipuli2"
style=
"margin-right: 200px;"
>
计数:30
</li>
<li
class=
"tipuli2"
>
当前工序:焊接
</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div
class=
"left"
>
<!-- 左上信息表 -->
<div
class=
"cbinfor"
>
<div
class=
"cpif"
>
<!-- top -->
<div
class=
"cpiftop"
style=
"display: flex;align-items: center;"
>
<span>
序列号
</span>
:
<input
name=
"xlh"
/>
</div>
<!-- bot -->
<div
class=
"cpifbot"
style=
"display: flex;flex-wrap: wrap;"
>
<div
class=
"ery"
>
<span>
工序
</span><input
name=
"gx"
/>
</div>
<div
class=
"ery"
>
<span>
工单
</span><input
name=
"gd"
/>
</div>
<div
class=
"ery"
>
<span>
产品SN
</span><input
name=
"cpsn"
/>
</div>
<div
class=
"ery"
>
<span>
品号
</span><input
name=
"ph"
/>
</div>
</div>
</div>
<!-- 日志 -->
<div
class=
"cprz"
>
<div
style=
"height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;"
>
日志
</div>
<div
style=
"height: calc(100% - 20px);display: flex;"
>
<div
style=
"width: 80%;height: 100%;background-color: #393456;color: #FFFFFF;"
>
<span>
>>Tips
</span>
</div>
<div
style=
"width: 20%;height: 100%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;"
>
<b>
ok
</b>
</div>
</div>
</div>
</div>
<div
class=
"form-sub"
>
<form
class=
"query-criteria"
>
<ul>
<li
class=
"gui-form-row"
>
<div
class=
"gui-col-sm4"
>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
加工日期:
</label>
<div
class=
"gui-input-date-start"
>
<input
type=
"text"
name=
"start"
style=
"width: 100%"
>
</div>
</div>
<div
class=
"gui-col-sm6"
>
<div
class=
"gui-input-date-end"
>
<input
type=
"text"
name=
"end"
style=
"width: 100%"
>
</div>
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
生产工单:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"wodjid"
style=
"width: 100%"
>
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
产品条码:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"wosnid"
style=
"width: 100%"
></div>
</div>
<input
type=
"hidden"
name=
"bxid"
/>
<input
type=
"hidden"
name=
"fkrid"
/>
<input
type=
"hidden"
name=
"gxid"
/>
</li>
</ul>
<span
class=
"toolbar-search-span"
><a
class=
"toolbar-search1"
style=
"color:white;"
href=
"javascript:void(0)"
></a></span>
</form>
<!-- 左下表格 -->
<div
class=
"tab"
>
<div
class=
"maintab"
>
<table
class=
"showtab"
>
</table>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div
class=
"right"
>
<canvas
id=
"gphy"
class=
"rightPdf"
></canvas>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
$
(
function
()
{
/*js初始化*/
var
$div
=
$
(
'#kmesGphy'
);
var
$datagrid
=
$div
.
find
(
".toolbar-table"
);
var
$datStart
=
$div
.
find
(
"input[name='start']"
);
var
$datEnd
=
$div
.
find
(
"input[name='end']"
);
var
$cbxdyZt
=
$div
.
find
(
'input[name="smzt"]'
);
var
$txtScgd
=
$div
.
find
(
'input[name="wodjid"]'
);
var
$txtWosnid
=
$div
.
find
(
'input[name="wosnid"]'
);
var
jzcs
=
0
;
var
gxName
=
''
;
var
gzzxid
=
""
;
var
gzzxname
=
""
;
var
fkrName
=
""
;
function
paramsInit
()
{
}
function
pageInit
()
{
$datStart
.
iDatebox
();
$datEnd
.
iDatebox
();
$txtScgd
.
iTextbox
();
$txtWosnid
.
iTextbox
();
$cbxdyZt
.
iCombobox
({
valueField
:
'value'
,
textField
:
'text'
});
var
options
=
{
url
:
'kmes/gphy'
,
noRequest
:
true
,
columns
:
[[
{
title
:
"条码"
,
field
:
"wosnid"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"生产工单"
,
field
:
"woDjid"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"工序编码"
,
field
:
"bzgxCode"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"标准工序"
,
field
:
"bzgxName"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"反馈工序"
,
field
:
"fkgx"
,
fieldType
:
"ftString"
,
width
:
100
,
hidden
:
true
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
fieldType
:
"ftString"
,
width
:
192
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"规格型号"
,
field
:
"wlxxGg"
,
fieldType
:
"ftString"
,
width
:
200
},
{
title
:
"合格"
,
field
:
"hgbz"
,
align
:
"center"
,
fieldType
:
"ftString"
,
width
:
100
,
formatter
:
function
(
value
,
index
,
row
){
var
map
=
{
Y
:
"合格"
,
N
:
"不合格"
};
if
(
value
==
"Y"
){
return
"<span style='color: #216d4c'>"
+
map
[
value
]
+
"</span>"
;
}
else
if
(
value
==
"N"
){
return
"<span style='color: indianred'>"
+
map
[
value
]
+
"</span>"
;
}
else
{
return
''
}
}},
{
title
:
"合格数量"
,
field
:
"hgsl"
,
fieldType
:
"int"
,
width
:
100
},
{
title
:
"不合格数量"
,
field
:
"bhgsl"
,
fieldType
:
"int"
,
width
:
100
},
{
title
:
"反馈数量"
,
field
:
"fksl"
,
fieldType
:
"int"
},
{
title
:
"反馈人"
,
field
:
"fkr"
,
fieldType
:
"ftString"
},
{
title
:
"反馈时间"
,
field
:
"fksj"
,
fieldType
:
"ftDateTime"
}
]],
dialog
:
{
footerIn
:
true
,
href
:
'kmes/gphy/edit'
,
maximized
:
true
,
width
:
1080
,
height
:
640
,
modal
:
true
,
draggable
:
false
,
onSaveCallback
:
function
()
{
},
onBeforeLoad
:
function
()
{
$
(
this
).
dialog
(
"options"
).
queryParams
=
$
.
extend
({},
DataBind
.
collectData
(
$div
),{
gxName
:
gxName
,
gzzxid
:
gzzxid
,
gzzxname
:
gzzxname
,
fkrName
:
fkrName
,
})
},
messager
:
function
()
{
var
flag
=
true
;
if
(
$div
.
find
(
"input[name='gxid']"
).
val
()
==
""
){
gas
.
confirm
(
"您尚未选择工序,无法进行反馈操作。是否重新选择工序?"
,
function
()
{
run
();
flag
=
false
;
},
function
()
{
flag
=
true
});
}
else
{
flag
=
false
}
return
flag
},
onDestroy
:
function
()
{
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
}
},
onLoadSuccess
:
function
()
{
if
(
jzcs
==
0
){
$div
.
find
(
".toolbar-add"
).
click
()
}
jzcs
++
},
};
$div
.
Holder
(
options
);
$
(
"#kmesGphyTable-toolbar"
).
find
(
".toolbar-cancelzp"
).
iMenubutton
({
event
:
'doAjax'
,
text
:
'取消装配'
,
onClick
:
function
()
{
var
selectedRow
=
$div
.
find
(
'.toolbar-table'
).
datagrid
(
'getSelected'
);
if
(
selectedRow
==
null
){
$
.
messager
.
alert
(
'提示'
,
'请选中一条数据进行操作'
);
return
false
;
}
gas
.
confirm
(
"是否执行该操作"
,
function
()
{
var
index
=
$div
.
find
(
'.toolbar-table'
).
datagrid
(
"getRowIndex"
,
selectedRow
);
HTTP
.
post
(
'kmes/gphy/delGpzp'
,{
gpfkid
:
selectedRow
.
id
},
function
(
result
)
{
if
(
result
[
'success'
]){
$div
.
find
(
'.toolbar-table'
).
datagrid
(
"deleteRow"
,
index
);
$
.
messager
.
alert
(
'提示'
,
'取消装配成功!'
);
}
else
{
$
.
messager
.
alert
(
'提示'
,
result
[
'message'
]
||
'取消装配失败,请重新操作!'
);
}
})
})
}
});
$
(
"#kmesGphyTable-toolbar"
).
find
(
".toolbar-search1"
).
iMenubutton
({
text
:
'搜索'
,
iconCls
:
"fa fa-search"
,
btnCls
:
""
,
onClick
:
function
()
{
if
(
$div
.
find
(
"input[name='gxid']"
).
val
()
==
""
){
gas
.
confirm
(
"您尚未选择工序,是否重新选择工序?"
,
function
()
{
run
();
});
}
else
{
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
}
<script
type=
"text/javascript"
>
let
Vkwrkb01
=
new
Vue
({
el
:
"#kwrkb01"
,
mounted
()
{
dbenlarge
(
'kwrkb01'
)
pdfshow
(
"pdf/dcAcess.pdf"
,
"gphy"
,
5000
).
then
(
e
=>
{
this
.
sivpdf
=
e
})
// this.sivpdf=
this
.
initpage
()
this
.
gettime
()
this
.
appdestory
()
},
destroyed
()
{
clearInterval
(
this
.
sivdestory
)
clearInterval
(
this
.
sivpdf
)
clearInterval
(
this
.
sivtimer
)
},
data
:
function
(){
return
{
systime
:
""
,
tabdata
:[
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
],
sivtimer
:
null
,
//时间计数器
sivpdf
:
null
,
sivdestory
:
null
}
});
}
/*数据初始化*/
function
dataInit
(
obj
){
$cbxdyZt
.
iCombobox
(
"loadData"
,[{
value
:
"Y"
,
text
:
"已扫描"
},
{
value
:
"N"
,
text
:
"未扫描"
}]);
}
/*用户操作*/
function
run
(
res
){
gas
.
Dialog
({
title
:
"选择工序"
,
width
:
480
,
height
:
280
,
minimizable
:
false
,
maximizable
:
false
,
href
:
"kmes/gphy/gx"
,
onInit
:
function
(
element
)
{
},
methods
:{
// 初始化页面
initpage
(){
let
$xlh
=
$
(
"#kwrkb01"
).
find
(
'input[name="xlh"]'
)
let
$gx
=
$
(
"#kwrkb01"
).
find
(
'input[name="gx"]'
)
let
$gd
=
$
(
"#kwrkb01"
).
find
(
'input[name="gd"]'
)
let
$cpsn
=
$
(
"#kwrkb01"
).
find
(
'input[name="cpsn"]'
)
let
$ph
=
$
(
"#kwrkb01"
).
find
(
'input[name="ph"]'
)
let
$tab
=
$
(
"#kwrkb01"
).
find
(
'.showtab'
)
$xlh
.
textbox
({
width
:
'84%'
})
$gx
.
textbox
({
width
:
'200'
})
$gd
.
textbox
({
width
:
'200'
})
$cpsn
.
textbox
({
width
:
'200'
})
$ph
.
textbox
({
width
:
'200'
})
$tab
.
datagrid
({
height
:
'100%'
,
fitColumns
:
true
,
columns
:[[
{
field
:
'ph'
,
title
:
'品号'
,
width
:
'21%'
,
styler
:
function
(
value
,
row
,
index
){
if
(
index
<
3
){
return
'background-color:mediumturquoise;color:#fff;'
;
}},
},
{
field
:
'pm'
,
title
:
'品名'
,
width
:
'21%'
,
styler
:
function
(
value
,
row
,
index
){
if
(
index
<
3
){
return
'background-color:mediumturquoise;color:#fff;'
;
}},
},
{
field
:
'ggxh'
,
title
:
'规格型号'
,
width
:
'21.5%'
,
styler
:
function
(
value
,
row
,
index
){
if
(
index
<
3
){
return
'background-color:mediumturquoise;color:#fff;'
;
}},
},
{
field
:
'sl'
,
title
:
'数量'
,
width
:
'20%'
,
styler
:
function
(
value
,
row
,
index
){
if
(
index
<
3
){
return
'background-color:mediumturquoise;color:#fff;'
;
}},
},
{
field
:
'zpsl'
,
title
:
'装配数量'
,
width
:
'20%'
,
styler
:
function
(
value
,
row
,
index
){
if
(
index
<
3
){
return
'background-color:mediumturquoise;color:#fff;'
;
}},
},
]],
data
:
this
.
tabdata
});
},
regResultHandler
:
function
(
element
)
{
if
(
!
element
.
form
(
"validate"
)){
return
false
}
var
data
=
DataBind
.
collectData
(
element
);
$div
.
find
(
"input[name='bxid']"
).
val
(
data
.
bxid
||
""
);
$div
.
find
(
"input[name='gxid']"
).
val
(
data
.
gxid
||
""
);
$div
.
find
(
"input[name='fkrid']"
).
val
(
window
.
sessionStorage
.
getItem
(
'userId'
));
fkrName
=
window
.
sessionStorage
.
getItem
(
'userName'
);
gxName
=
data
.
gxName
||
""
;
gzzxid
=
data
.
gzzxid
||
''
;
gzzxname
=
data
.
gzzxname
||
""
;
$datagrid
.
datagrid
(
"options"
).
url
=
"kmes/gphy/query"
;
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
))
/* 展示时间 */
gettime
(){
let
that
=
this
let
nowtime
nowtime
=
new
Date
().
getTime
()
that
.
systime
=
new
Date
(
nowtime
).
Format
(
"yyyy-MM-dd hh:mm"
)
this
.
sivtimer
=
setInterval
(
function
(){
nowtime
=
new
Date
().
getTime
()
that
.
systime
=
new
Date
(
nowtime
).
Format
(
"yyyy-MM-dd hh:mm"
)
},
20000
)
},
})
}
gas
.
load
(
paramsInit
,
pageInit
,
dataInit
,
run
);
})
function
showZp
(
id
){
gas
.
Dialog
({
title
:
"不合格详情"
,
width
:
640
,
height
:
360
,
href
:
"kmes/test4/bhgXq"
,
onInit
:
function
(
element
)
{
},
appdestory
(){
let
that
=
this
this
.
sivdestory
=
setInterval
(
function
(){
if
(
!
$
(
"#kwrkb01"
).
height
()){
Vkwrkb01
.
$destroy
()
}
},
3000
)
}
}
})
}
</script>
</script>
gavel/src/main/resources/templates/views/kmes/gpjy/index.html
View file @
c989632e
<div
id=
"kmesJy"
class=
"gui-div"
>
<table
class=
"toolbar-table"
data-options=
"id: 'kmesJyTable',herf:'kzzx/gridset/query'"
></table>
<!-- 表格工具栏开始 -->
<div
id=
"kmesJyTable-toolbar"
class=
"gui-toolbar"
data-options=
"grid:{type:'datagrid',id:'kmesJyTable'}"
>
<div
class=
"navbar-toolbar"
>
<a
class=
"toolbar-print toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-export toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-add toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-canceljy toolbar"
href=
"javascript:void(0)"
></a>
</div>
<div
class=
"form-sub"
>
<form
class=
"query-criteria"
>
<ul>
<li
class=
"gui-form-row"
>
<div
class=
"gui-col-sm4"
>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
加工日期:
</label>
<div
class=
"gui-input-date-start"
>
<input
type=
"text"
name=
"start"
style=
"width: 100%"
>
</div>
</div>
<div
class=
"gui-col-sm6"
>
<div
class=
"gui-input-date-end"
>
<input
type=
"text"
name=
"end"
style=
"width: 100%"
>
</div>
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
生产工单:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"wodjid"
style=
"width: 100%"
></div>
<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
{
height
:
100%
;
width
:
100%
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
align-items
:
stretch
}
#kwrkb04
div
{
box-sizing
:
border-box
;
}
.toptitle
{
height
:
50px
;
width
:
100%
;
background-color
:
#00aaff
;
color
:
#FFFFFF
;
text-align
:
center
;
line-height
:
50px
;
}
.left
{
height
:
calc
(
100%
-
60px
);
width
:
40%
;
}
.right
{
height
:
calc
(
100%
-
60px
);
width
:
calc
(
60%
-
10px
);
border
:
#EEEEEE
1px
solid
;
}
.rightPdf
{
height
:
100%
;
width
:
100%
;
}
.cbinfor
{
width
:
100%
;
height
:
60%
;
}
.tab
{
width
:
100%
;
height
:
40%
;
padding-top
:
10px
;
}
.cpif
{
width
:
100%
;
height
:
40%
;
border
:
1px
solid
#EEEEEE
;
}
.cprz
{
width
:
100%
;
height
:
60%
;
border
:
1px
solid
#EEEEEE
;
}
.cpiftop
{
width
:
100%
;
height
:
40px
;
border-bottom
:
1px
solid
#EEEEEE
;
line-height
:
40px
;
display
:
flex
;
justify-content
:
center
;
}
.cpifbot
{
height
:
calc
(
100%
-
40px
);
}
.ery
{
width
:
50%
;
height
:
50%
;
display
:
flex
;
align-items
:
center
;
}
.ery
span
{
padding-left
:
20px
;
display
:
inline-block
;
width
:
70px
;
}
.tipul
>
li
{
width
:
150px
;
padding-left
:
20px
;
float
:
left
;
line-height
:
50px
;
}
.tipuli2
{
float
:
right
!important
;
}
.maintab
{
height
:
100%
;
width
:
100%
;
overflow
:
auto
;
border
:
0.5px
solid
#EEEEEE
;
}
.showtab
{
height
:
100%
;
width
:
100%
;
}
</style>
<div
id=
"kwrkb04"
>
<!-- 顶部信息条 -->
<div
class=
"toptitle"
>
<ul
class=
"tipul"
style=
"height: 100%;"
>
<li>
ADMIN
</li>
<li>
系统管理员
</li>
<li>
甲班
</li>
<li
class=
"tipuli2"
>
{{systime}}
</li>
<li
class=
"tipuli2"
style=
"margin-right: 200px;"
>
计数:30
</li>
<li
class=
"tipuli2"
>
当前工序:焊接
</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div
class=
"left"
>
<!-- 左上信息表 -->
<div
class=
"cbinfor"
>
<div
class=
"cpif"
>
<!-- top -->
<div
class=
"cpiftop"
style=
"display: flex;align-items: center;"
>
<span>
序列号
</span>
:
<input
name=
"xlh"
/>
</div>
<!-- bot -->
<div
class=
"cpifbot"
style=
"display: flex;flex-wrap: wrap;"
>
<div
class=
"ery"
>
<span>
工序
</span><input
name=
"gx"
/>
</div>
<div
class=
"ery"
>
<span>
工单
</span><input
name=
"gd"
/>
</div>
<div
class=
"ery"
>
<span>
产品SN
</span><input
name=
"cpsn"
/>
</div>
<div
class=
"ery"
>
<span>
品号
</span><input
name=
"ph"
/>
</div>
</div>
</div>
<!-- 日志 -->
<div
class=
"cprz"
>
<div
style=
"height: 100%;display: flex;align-items: center;"
>
<div
style=
"width: 60%;height: 100%;background-color: #FFFFFF;color: #FFFFFF;display: flex;flex-wrap: wrap;justify-content:space-around;align-items: center;"
>
<div
style=
"height: 45%;width: 90%;background-color: #00AAFF;display: flex;align-items: center;justify-content: center;color: #FFFFFF;"
>
<span
style=
"font-size: 20px;font-weight: 800;"
>
合格数量:0
</span>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
产品条码:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"wosnid"
style=
"width: 100%"
></div>
<div
style=
"height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;"
>
<span
style=
"font-size: 20px;font-weight: 800;"
>
NG数量:0
</span>
</div>
<input
type=
"hidden"
name=
"bxid"
/>
<input
type=
"hidden"
name=
"fkrid"
/>
<input
type=
"hidden"
name=
"gxid"
/>
</li>
</ul>
<span
class=
"toolbar-search-span"
><a
class=
"toolbar-search1"
style=
"color: white"
href=
"javascript:void(0)"
></a></span>
</form>
</div>
<div
style=
"width: 40%;height: 95%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;"
>
<b
style=
"font-size: 60px;"
>
ok
</b>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div
class=
"tab"
>
<div
class=
"maintab"
>
<div
style=
"height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;"
>
日志
</div>
<div
style=
"height: calc(100% - 20px);display: flex;"
>
<div
style=
"width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;"
>
<span>
>>Tips
</span>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div
class=
"right"
>
<canvas
id=
"gpjypdf"
class=
"rightPdf"
></canvas>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
/*js初始化*/
$
(
function
()
{
var
$div
=
$
(
'#kmesJy'
);
var
$datagrid
=
$div
.
find
(
".toolbar-table"
);
var
$datStart
=
$div
.
find
(
"input[name='start']"
);
var
$datEnd
=
$div
.
find
(
"input[name='end']"
);
var
$txtScgd
=
$div
.
find
(
'input[name="wodjid"]'
);
var
$txtWosnid
=
$div
.
find
(
'input[name="wosnid"]'
);
var
jzcs
=
0
;
var
gxName
=
''
;
var
gzzxid
=
""
;
var
gzzxname
=
""
;
var
fkrName
=
""
;
function
paramsInit
()
{
gpjy_hgsl
=
0
;
gpjy_jysl
=
0
;
}
function
pageInit
()
{
$datStart
.
iDatebox
();
$datEnd
.
iDatebox
();
$txtScgd
.
iTextbox
();
$txtWosnid
.
iTextbox
();
var
options
=
{
url
:
'kmes/gpjy'
,
noRequest
:
true
,
columns
:
[[
{
title
:
"条码"
,
field
:
"wosnid"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"生产工单"
,
field
:
"woDjid"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"工序编码"
,
field
:
"bzgxCode"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"标准工序"
,
field
:
"bzgxName"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"反馈工序"
,
field
:
"fkgx"
,
fieldType
:
"ftString"
,
width
:
100
,
hidden
:
true
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
fieldType
:
"ftString"
,
width
:
192
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"规格型号"
,
field
:
"wlxxGg"
,
fieldType
:
"ftString"
,
width
:
200
},
{
title
:
"合格"
,
field
:
"hgbz"
,
align
:
"center"
,
fieldType
:
"ftString"
,
width
:
100
,
formatter
:
function
(
value
,
index
,
row
){
var
map
=
{
Y
:
"合格"
,
N
:
"不合格"
};
if
(
value
==
"Y"
){
return
"<span style='color: #216d4c'>"
+
map
[
value
]
+
"</span>"
;
}
else
if
(
value
==
"N"
){
return
"<span style='color: indianred'>"
+
map
[
value
]
+
"</span>"
;
}
else
{
return
''
}
}},
{
title
:
"合格数量"
,
field
:
"hgsl"
,
fieldType
:
"int"
,
width
:
100
},
{
title
:
"不合格数量"
,
field
:
"bhgsl"
,
fieldType
:
"int"
,
width
:
100
},
{
title
:
"反馈数量"
,
field
:
"fksl"
,
fieldType
:
"int"
},
{
title
:
"反馈人"
,
field
:
"fkr"
,
fieldType
:
"ftString"
},
{
title
:
"反馈时间"
,
field
:
"fksj"
,
fieldType
:
"ftDateTime"
}
]],
dialog
:
{
footerIn
:
true
,
maximized
:
true
,
width
:
960
,
height
:
640
,
modal
:
true
,
href
:
'kmes/gpjy/edit'
,
draggable
:
false
,
onSaveCallback
:
function
(
opt
,
data
)
{
},
onBeforeLoad
:
function
()
{
$
(
this
).
dialog
(
"options"
).
queryParams
=
$
.
extend
({},
DataBind
.
collectData
(
$div
),{
gxName
:
gxName
,
gzzxid
:
gzzxid
,
gzzxname
:
gzzxname
,
fkrName
:
fkrName
,
})
},
messager
:
function
()
{
var
flag
=
true
;
if
(
$div
.
find
(
"input[name='gxid']"
).
val
()
==
""
){
gas
.
confirm
(
"您尚未选择工序,无法进行反馈操作。是否重新选择工序?"
,
function
()
{
run
();
flag
=
false
;
},
function
()
{
flag
=
true
});
}
else
{
flag
=
false
}
return
flag
},
onDestroy
:
function
()
{
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
}
<script
type=
"text/javascript"
>
let
Vkwrkb04
=
new
Vue
({
el
:
"#kwrkb04"
,
mounted
()
{
dbenlarge
(
'kwrkb04'
)
pdfshow
(
"pdf/dcAcess.pdf"
,
"gpjypdf"
,
5000
).
then
(
e
=>
{
this
.
sivpdf
=
e
})
// this.sivpdf=
this
.
initpage
()
this
.
gettime
()
this
.
appdestory
()
},
onLoadSuccess
:
function
()
{
if
(
jzcs
==
0
){
$div
.
find
(
".toolbar-add"
).
click
()
}
jzcs
++
destroyed
()
{
clearInterval
(
this
.
sivdestory
)
clearInterval
(
this
.
sivpdf
)
clearInterval
(
this
.
sivtimer
)
},
};
$div
.
Holder
(
options
);
/*取消检验*/
$
(
"#kmesJyTable-toolbar"
).
find
(
".toolbar-canceljy"
).
iMenubutton
({
event
:
'doAjax'
,
text
:
'取消检验'
,
onClick
:
function
()
{
var
selectedRow
=
$div
.
find
(
'.toolbar-table'
).
datagrid
(
'getSelected'
);
if
(
selectedRow
==
null
){
$
.
messager
.
alert
(
'提示'
,
'请选中一条数据进行操作'
);
return
false
;
data
:
function
(){
return
{
systime
:
""
,
tabdata
:[
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
],
sivtimer
:
null
,
//时间计数器
sivpdf
:
null
,
sivdestory
:
null
}
gas
.
confirm
(
"是否执行该操作"
,
function
()
{
HTTP
.
post
(
'kmes/gpjy/delGpjy'
,
{
gpfkid
:
selectedRow
.
id
},
function
(
result
)
{
if
(
result
[
'success'
])
{
var
index
=
$div
.
find
(
'.toolbar-table'
).
datagrid
(
"getRowIndex"
,
selectedRow
);
$div
.
find
(
'.toolbar-table'
).
datagrid
(
"deleteRow"
,
index
);
$
.
messager
.
alert
(
'提示'
,
'取消检验成功!'
);
}
else
{
$
.
messager
.
alert
(
'提示'
,
result
[
'message'
]
||
'取消检验失败,请重新操作!'
);
}
},
methods
:{
// 初始化页面
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%'
})
})
}
});
$
(
"#kmesJyTable-toolbar"
).
find
(
".toolbar-search1"
).
iMenubutton
({
text
:
'搜索'
,
iconCls
:
"fa fa-search"
,
btnCls
:
""
,
onClick
:
function
()
{
if
(
$div
.
find
(
"input[name='gxid']"
).
val
()
==
""
){
gas
.
confirm
(
"您尚未选择工序。是否重新选择工序?"
,
function
()
{
run
();
});
}
else
{
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
$gx
.
textbox
({
width
:
'200'
})
$gd
.
textbox
({
width
:
'200'
})
$cpsn
.
textbox
({
width
:
'200'
})
$ph
.
textbox
({
width
:
'200'
})
},
/* 展示时间 */
gettime
(){
let
that
=
this
let
nowtime
nowtime
=
new
Date
().
getTime
()
that
.
systime
=
new
Date
(
nowtime
).
Format
(
"yyyy-MM-dd hh:mm"
)
this
.
sivtimer
=
setInterval
(
function
(){
nowtime
=
new
Date
().
getTime
()
that
.
systime
=
new
Date
(
nowtime
).
Format
(
"yyyy-MM-dd hh:mm"
)
},
20000
)
},
appdestory
(){
let
that
=
this
this
.
sivdestory
=
setInterval
(
function
(){
if
(
!
$
(
"#kwrkb04"
).
height
()){
Vkwrkb04
.
$destroy
()
}
},
3000
)
}
}
});
}
/*数据初始化*/
function
dataInit
(
obj
){
}
/*用户操作*/
function
run
(
res
){
gas
.
Dialog
({
title
:
"选择工序"
,
width
:
480
,
height
:
280
,
minimizable
:
false
,
maximizable
:
false
,
href
:
"kmes/gpjy/gx"
,
onInit
:
function
(
element
)
{
},
regResultHandler
:
function
(
element
)
{
if
(
!
element
.
form
(
"validate"
)){
return
false
}
var
data
=
DataBind
.
collectData
(
element
);
$div
.
find
(
"input[name='bxid']"
).
val
(
data
.
bxid
||
""
);
$div
.
find
(
"input[name='gxid']"
).
val
(
data
.
gxid
||
""
);
$div
.
find
(
"input[name='fkrid']"
).
val
(
window
.
sessionStorage
.
getItem
(
'userId'
));
fkrName
=
window
.
sessionStorage
.
getItem
(
'userName'
);
gxName
=
data
.
gxName
||
""
;
gzzxid
=
data
.
gzzxid
||
''
;
gzzxname
=
data
.
gzzxname
||
""
;
$datagrid
.
datagrid
(
"options"
).
url
=
"kmes/gpjy/query"
;
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
},
})
}
gas
.
load
(
paramsInit
,
pageInit
,
dataInit
,
run
);
</script>
})
function
showBhgXq
(
id
){
gas
.
Dialog
({
title
:
"不合格详情"
,
width
:
640
,
height
:
360
,
href
:
"kmes/gpjy/bhgXq"
,
onInit
:
function
(
element
)
{
},
})
}
</script>
gavel/src/main/resources/templates/views/kmes/gpwx/index.html
View file @
c989632e
<div
id=
"kmesGpwx"
class=
"gui-div"
>
<table
class=
"toolbar-table"
data-options=
"id: 'kmesGpwxTable',herf:'kzzx/gridset/query'"
></table>
<!-- 表格工具栏开始 -->
<div
id=
"kmesGpwxTable-toolbar"
class=
"gui-toolbar"
data-options=
"grid:{type:'datagrid',id:'kmesGpwxTable'}"
>
<div
class=
"navbar-toolbar"
>
<a
class=
"toolbar-print toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-export toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-add toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-cancelwx toolbar"
href=
"javascript:void(0)"
></a>
<!-- <a class="toolbar-reviewBhg toolbar" href="javascript:void(0)"></a>-->
</div>
<div
class=
"form-sub"
>
<form
class=
"query-criteria"
>
<ul>
<li
class=
"gui-form-row"
>
<div
class=
"gui-col-sm4"
>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
加工日期:
</label>
<div
class=
"gui-input-date-start"
>
<input
type=
"text"
name=
"start"
style=
"width: 100%"
>
</div>
</div>
<div
class=
"gui-col-sm6"
>
<div
class=
"gui-input-date-end"
>
<input
type=
"text"
name=
"end"
style=
"width: 100%"
>
</div>
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
生产工单:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"wodjid"
style=
"width: 100%"
></div>
<style
type=
"text/css"
>
*
{
margin
:
0
;
padding
:
0
;
}
#kwrkb04
{
height
:
100%
;
width
:
100%
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
align-items
:
stretch
}
#kwrkb04
div
{
box-sizing
:
border-box
;
}
.toptitle
{
height
:
50px
;
width
:
100%
;
background-color
:
#00aaff
;
color
:
#FFFFFF
;
text-align
:
center
;
line-height
:
50px
;
}
.left
{
height
:
calc
(
100%
-
60px
);
width
:
40%
;
}
.right
{
height
:
calc
(
100%
-
60px
);
width
:
calc
(
60%
-
10px
);
border
:
#EEEEEE
1px
solid
;
}
.rightPdf
{
height
:
100%
;
width
:
100%
;
}
.cbinfor
{
width
:
100%
;
height
:
60%
;
}
.tab
{
width
:
100%
;
height
:
40%
;
padding-top
:
10px
;
}
.cpif
{
width
:
100%
;
height
:
40%
;
border
:
1px
solid
#EEEEEE
;
}
.cprz
{
width
:
100%
;
height
:
60%
;
border
:
1px
solid
#EEEEEE
;
}
.cpiftop
{
width
:
100%
;
height
:
40px
;
border-bottom
:
1px
solid
#EEEEEE
;
line-height
:
40px
;
display
:
flex
;
justify-content
:
center
;
}
.cpifbot
{
height
:
calc
(
100%
-
40px
);
}
.ery
{
width
:
50%
;
height
:
50%
;
display
:
flex
;
align-items
:
center
;
}
.ery
span
{
padding-left
:
20px
;
display
:
inline-block
;
width
:
70px
;
}
.tipul
>
li
{
width
:
150px
;
padding-left
:
20px
;
float
:
left
;
line-height
:
50px
;
}
.tipuli2
{
float
:
right
!important
;
}
.maintab
{
height
:
100%
;
width
:
100%
;
overflow
:
auto
;
border
:
0.5px
solid
#EEEEEE
;
}
.showtab
{
height
:
100%
;
width
:
100%
;
}
</style>
<div
id=
"kwrkb04"
>
<!-- 顶部信息条 -->
<div
class=
"toptitle"
>
<ul
class=
"tipul"
style=
"height: 100%;"
>
<li>
ADMIN
</li>
<li>
系统管理员
</li>
<li>
甲班
</li>
<li
class=
"tipuli2"
>
{{systime}}
</li>
<li
class=
"tipuli2"
style=
"margin-right: 200px;"
>
计数:30
</li>
<li
class=
"tipuli2"
>
当前工序:焊接
</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div
class=
"left"
>
<!-- 左上信息表 -->
<div
class=
"cbinfor"
>
<div
class=
"cpif"
>
<!-- top -->
<div
class=
"cpiftop"
style=
"display: flex;align-items: center;"
>
<span>
序列号
</span>
:
<input
name=
"xlh"
/>
</div>
<!-- bot -->
<div
class=
"cpifbot"
style=
"display: flex;flex-wrap: wrap;"
>
<div
class=
"ery"
>
<span>
工序
</span><input
name=
"gx"
/>
</div>
<div
class=
"ery"
>
<span>
工单
</span><input
name=
"gd"
/>
</div>
<div
class=
"ery"
>
<span>
产品SN
</span><input
name=
"cpsn"
/>
</div>
<div
class=
"ery"
>
<span>
品号
</span><input
name=
"ph"
/>
</div>
</div>
</div>
<!-- 日志 -->
<div
class=
"cprz"
>
<div
style=
"height: 100%;display: flex;align-items: center;"
>
<div
style=
"width: 60%;height: 100%;background-color: #FFFFFF;color: #FFFFFF;display: flex;flex-wrap: wrap;justify-content:space-around;align-items: center;"
>
<div
style=
"height: 45%;width: 90%;background-color: #00AAFF;display: flex;align-items: center;justify-content: center;color: #FFFFFF;"
>
<span
style=
"font-size: 20px;font-weight: 800;"
>
合格数量:0
</span>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
产品条码:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"wosnid"
style=
"width: 100%"
></div>
<div
style=
"height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;"
>
<span
style=
"font-size: 20px;font-weight: 800;"
>
NG数量:0
</span>
</div>
<input
type=
"hidden"
name=
"bxid"
/>
<input
type=
"hidden"
name=
"fkrid"
/>
<input
type=
"hidden"
name=
"gxid"
/>
</li>
</ul>
<span
class=
"toolbar-search-span"
><a
class=
"toolbar-search1"
style=
"color: white"
href=
"javascript:void(0)"
></a></span>
</form>
</div>
<div
style=
"width: 40%;height: 95%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;"
>
<b
style=
"font-size: 60px;"
>
ok
</b>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div
class=
"tab"
>
<div
class=
"maintab"
>
<div
style=
"height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;"
>
日志
</div>
<div
style=
"height: calc(100% - 20px);display: flex;"
>
<div
style=
"width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;"
>
<span>
>>Tips
</span>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div
class=
"right"
>
<canvas
id=
"pdf"
class=
"rightPdf"
></canvas>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
/*js初始化*/
$
(
function
()
{
var
$div
=
$
(
'#kmesGpwx'
);
var
$datagrid
=
$div
.
find
(
".toolbar-table"
);
var
$datStart
=
$div
.
find
(
"input[name='start']"
);
var
$datEnd
=
$div
.
find
(
"input[name='end']"
);
var
$txtScgd
=
$div
.
find
(
'input[name="wodjid"]'
);
var
$txtWosnid
=
$div
.
find
(
'input[name="wosnid"]'
);
var
jzcs
=
0
;
var
gxName
=
''
;
var
gzzxid
=
""
;
var
gzzxname
=
""
;
var
fkrName
=
""
;
function
paramsInit
()
{
gpwx_wgsl
=
0
;
gpwx_hgsl
=
0
;
gpwx_bfsl
=
0
;
}
function
pageInit
()
{
$datStart
.
iDatetimebox
();
$datEnd
.
iDatetimebox
();
$txtScgd
.
iTextbox
();
$txtWosnid
.
iTextbox
();
var
options
=
{
url
:
'kmes/gpwx'
,
noRequest
:
true
,
columns
:
[[
{
title
:
"条码"
,
field
:
"wosnid"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"生产工单"
,
field
:
"woDjid"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"工序编码"
,
field
:
"bzgxCode"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"标准工序"
,
field
:
"bzgxName"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"反馈工序"
,
field
:
"fkgx"
,
fieldType
:
"ftString"
,
width
:
100
,
hidden
:
true
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
fieldType
:
"ftString"
,
width
:
192
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
fieldType
:
"ftString"
,
width
:
240
},
{
title
:
"规格型号"
,
field
:
"wlxxGg"
,
fieldType
:
"ftString"
,
width
:
200
},
{
title
:
"合格"
,
field
:
"hgbz"
,
align
:
"center"
,
fieldType
:
"ftString"
,
width
:
100
,
formatter
:
function
(
value
,
index
,
row
){
var
map
=
{
Y
:
"合格"
,
N
:
"不合格"
};
if
(
value
==
"Y"
){
return
"<span style='color: #216d4c'>"
+
map
[
value
]
+
"</span>"
;
}
else
if
(
value
==
"N"
){
return
"<span style='color: indianred'>"
+
map
[
value
]
+
"</span>"
;
}
else
{
return
''
}
}},
{
title
:
"合格数量"
,
field
:
"hgsl"
,
fieldType
:
"int"
,
width
:
100
},
{
title
:
"不合格数量"
,
field
:
"bhgsl"
,
fieldType
:
"int"
,
width
:
100
},
{
title
:
"反馈数量"
,
field
:
"fksl"
,
fieldType
:
"int"
},
{
title
:
"反馈人"
,
field
:
"fkr"
,
fieldType
:
"ftString"
},
{
title
:
"反馈时间"
,
field
:
"fksj"
,
fieldType
:
"ftDateTime"
}
]],
dialog
:
{
footerIn
:
true
,
maximized
:
true
,
modal
:
true
,
width
:
960
,
height
:
640
,
href
:
'kmes/gpwx/edit'
,
draggable
:
false
,
onSaveCallback
:
function
(
opt
,
data
)
{
},
onBeforeLoad
:
function
()
{
$
(
this
).
dialog
(
"options"
).
queryParams
=
$
.
extend
({},
DataBind
.
collectData
(
$div
),{
gxName
:
gxName
,
gzzxid
:
gzzxid
,
gzzxname
:
gzzxname
,
fkrName
:
fkrName
,
})
},
messager
:
function
()
{
var
flag
=
true
;
if
(
$div
.
find
(
"input[name='gxid']"
).
val
()
==
""
){
gas
.
confirm
(
"您尚未选择工序,无法进行反馈操作。是否重新选择工序?"
,
function
()
{
run
();
flag
=
false
;
},
function
()
{
flag
=
true
});
}
else
{
flag
=
false
}
return
flag
},
onDestroy
:
function
()
{
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
}
<script
type=
"text/javascript"
>
let
Vkwrkb04
=
new
Vue
({
el
:
"#kwrkb04"
,
mounted
()
{
dbenlarge
(
'kwrkb04'
)
pdfshow
(
"pdf/dcAcess.pdf"
,
"pdf"
,
5000
).
then
(
e
=>
{
this
.
sivpdf
=
e
})
// this.sivpdf=
this
.
initpage
()
this
.
gettime
()
this
.
appdestory
()
},
onLoadSuccess
:
function
()
{
if
(
jzcs
==
0
){
$div
.
find
(
".toolbar-add"
).
click
()
}
jzcs
++
destroyed
()
{
clearInterval
(
this
.
sivdestory
)
clearInterval
(
this
.
sivpdf
)
clearInterval
(
this
.
sivtimer
)
},
};
$div
.
Holder
(
options
);
/*取消维修*/
$
(
"#kmesGpwxTable-toolbar"
).
find
(
".toolbar-cancelwx"
).
iMenubutton
({
event
:
'doAjax'
,
text
:
'取消维修'
,
onClick
:
function
()
{
var
selectedRow
=
$div
.
find
(
'.toolbar-table'
).
datagrid
(
'getSelected'
);
if
(
selectedRow
==
null
){
$
.
messager
.
alert
(
'提示'
,
'请选中一条数据进行操作'
);
return
false
;
data
:
function
(){
return
{
systime
:
""
,
tabdata
:[
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
{
ph
:
10
,
pm
:
"GT-RBZ6"
,
ggxh
:
"RBG-AK"
,
sl
:
13
,
zpsl
:
12
},
],
sivtimer
:
null
,
//时间计数器
sivpdf
:
null
,
sivdestory
:
null
}
gas
.
confirm
(
"是否执行该操作"
,
function
()
{
HTTP
.
post
(
'kmes/gpwx/delGpwx'
,{
gpfkid
:
selectedRow
.
id
},
function
(
result
)
{
if
(
result
[
'success'
]){
var
index
=
$div
.
find
(
'.toolbar-table'
).
datagrid
(
"getRowIndex"
,
selectedRow
);
$div
.
find
(
'.toolbar-table'
).
datagrid
(
"deleteRow"
,
index
);
$
.
messager
.
alert
(
'提示'
,
'取消维修成功!'
);
}
else
{
$
.
messager
.
alert
(
'提示'
,
result
[
'message'
]
||
'取消维修失败,请重新操作!'
);
},
methods
:{
// 初始化页面
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
(){
let
that
=
this
let
nowtime
nowtime
=
new
Date
().
getTime
()
that
.
systime
=
new
Date
(
nowtime
).
Format
(
"yyyy-MM-dd hh:mm"
)
this
.
sivtimer
=
setInterval
(
function
(){
nowtime
=
new
Date
().
getTime
()
that
.
systime
=
new
Date
(
nowtime
).
Format
(
"yyyy-MM-dd hh:mm"
)
},
20000
)
},
appdestory
(){
let
that
=
this
this
.
sivdestory
=
setInterval
(
function
(){
if
(
!
$
(
"#kwrkb04"
).
height
()){
Vkwrkb04
.
$destroy
()
}
})})
}
});
$
(
"#kmesGpwxTable-toolbar"
).
find
(
".toolbar-search1"
).
iMenubutton
({
text
:
'搜索'
,
iconCls
:
"fa fa-search"
,
btnCls
:
""
,
onClick
:
function
()
{
if
(
$div
.
find
(
"input[name='gxid']"
).
val
()
==
""
){
gas
.
confirm
(
"您尚未选择工序,是否重新选择工序?"
,
function
()
{
run
();
});
}
else
{
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
},
3000
)
}
}
});
}
/*数据初始化*/
function
dataInit
(
obj
){
}
/*数据初始化*/
function
dataInit
(
obj
){
}
/*用户操作*/
function
run
(
res
){
gas
.
Dialog
({
title
:
"选择工序"
,
width
:
480
,
height
:
280
,
minimizable
:
false
,
maximizable
:
false
,
href
:
"kmes/gpwx/gx"
,
onInit
:
function
(
element
)
{
},
regResultHandler
:
function
(
element
)
{
if
(
!
element
.
form
(
"validate"
)){
return
false
}
var
data
=
DataBind
.
collectData
(
element
);
$div
.
find
(
"input[name='bxid']"
).
val
(
data
.
bxid
||
""
);
$div
.
find
(
"input[name='gxid']"
).
val
(
data
.
gxid
||
""
);
$div
.
find
(
"input[name='fkrid']"
).
val
(
window
.
sessionStorage
.
getItem
(
'userId'
));
fkrName
=
window
.
sessionStorage
.
getItem
(
'userName'
);
gxName
=
data
.
gxName
||
""
;
gzzxid
=
data
.
gzzxid
||
''
;
gzzxname
=
data
.
gzzxname
||
""
;
$datagrid
.
datagrid
(
"options"
).
url
=
"kmes/gpfk/query"
;
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
},
})
}
gas
.
load
(
paramsInit
,
pageInit
,
dataInit
,
run
);
});
function
showBhgXq
(
id
){
})
</script>
}
</script>
gavel/src/main/resources/templates/views/kmes/zpfk/index.html
deleted
100644 → 0
View file @
e9c1d92c
<style>
#kmesZpfkList
.product-nav-list
{
top
:
0
}
</style>
<div
id=
"kmesWOZpfk"
class=
"gui-layout gui-div"
style=
"height: 100%;width:100%;position: relative;overflow: hidden"
>
<div
data-options=
"region:'north'"
style=
"height:80px;width:100%;"
>
<div
class=
"gui-toolbar"
style=
"display: block"
data-options=
"grid:{type:'datagrid',id:'kmesWOZpfkTable'}"
>
<div
class=
"navbar-toolbar"
>
<a
class=
"toolbar-print toolbar"
href=
"javascript:void(0)"
></a>
</div>
<div
class=
"form-sub"
>
<form
class=
"query-criteria"
>
<ul>
<li
class=
"gui-form-row"
>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
项目:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"xminfo"
class=
"gui-textbox"
style=
"width: 100%"
>
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
生产单号:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"wodjid"
class=
"gui-textbox"
style=
"width: 100%"
>
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
客户:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"khinfo"
class=
"gui-textbox"
style=
"width: 100%"
>
</div>
</div>
</li>
</ul>
<span
class=
"toolbar-search-span"
><a
class=
"toolbar-search1"
href=
"javascript:void(0)"
style=
"color: white"
></a></span>
</form>
</div>
</div>
</div>
<div
data-options=
"region:'west',split:true"
style=
"width:54%;height:100%;position: relative"
>
<div
class=
"gui-div"
>
<table
class=
"toolbar-table"
data-options=
"id: 'kmesWOZpfkTable',herf:'kzzx/gridset/query',type:'datagrid'"
></table>
</div>
</div>
<div
data-options=
"region:'center'"
>
<div
class=
"gui-div"
id=
"kmesZpfkList"
>
<table
class=
"toolbar-table"
data-options=
"id: 'kmesZpfkListTable',herf:'kzzx/gridset/query'"
></table>
</div>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
$
(
function
()
{
/*js初始化*/
var
$div
=
$
(
'#kmesWOZpfk'
);
var
$jdfkDtlList
=
$
(
"#kmesZpfkList"
);
var
$datagrid
=
$div
.
find
(
'.toolbar-table:first'
);
var
$datagridWOJdfk
=
$jdfkDtlList
.
find
(
'.toolbar-table:first'
);
var
$searchBtn
=
$div
.
find
(
".toolbar-search1"
);
var
$xswwcCheckbox
=
$
(
"#xswwcChk"
);
function
paramInit
(
ops
){
}
function
pageInit
(
ops
)
{
$xswwcCheckbox
.
iCheckbox
({
label
:
"仅显示未完成"
,
});
var
options
=
{
url
:
"kmes/zpfk"
,
noRequest
:
true
,
columns
:
[[
{
title
:
"snid"
,
field
:
"id"
,
width
:
120
,
hidden
:
true
},
{
title
:
"条码"
,
field
:
"code"
,
width
:
220
},
{
title
:
"生产订单号"
,
field
:
"djid"
,
width
:
120
},
{
title
:
"项目编码"
,
field
:
"xmCode"
,
fieldType
:
"ftString"
,
width
:
192
},
{
title
:
"项目名称"
,
field
:
"xmName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
title
:
"客户编码"
,
field
:
"khxxCode"
,
fieldType
:
"ftString"
,
width
:
192
},
{
title
:
"客户名称"
,
field
:
"khxxName"
,
fieldType
:
"ftString"
,
width
:
192
}
]],
onLoadSuccess
:
function
()
{
},
datagrid
:{
onSelect
:
function
(
rowIndex
,
rowData
)
{
if
(
rowData
){
loadList
(
rowData
.
code
)
}
}
},
dialog
:{
href
:
"kmes/zpfk/edit"
,
footerIn
:
true
,
}
};
$div
.
Holder
(
options
);
$jdfkDtlList
.
Container
({
columns
:[[
{
title
:
"装配计划编码"
,
field
:
"zpjhid"
,
width
:
180
,
hidden
:
true
},
{
title
:
"主机sn"
,
field
:
"wosnCode"
,
width
:
180
,
hidden
:
true
},
{
title
:
"物料ID"
,
field
:
"wlid"
,
width
:
180
,
hidden
:
true
},
{
title
:
"组件编码"
,
field
:
"zjCode"
,
width
:
180
},
{
title
:
"组件名称"
,
field
:
"zpjhName"
,
fieldType
:
"ftString"
},
{
title
:
"关键件条码"
,
field
:
"cz"
,
fieldType
:
"ftString"
,
width
:
140
,
align
:
"center"
,
formatter
:
function
(
value
,
row
,
index
)
{
return
'<a style="margin-right: 10px;color: dodgerblue" onclick="onReivewGjj(
\'
'
+
row
.
wlid
+
'
\'
,
\'
'
+
row
.
zpjhid
+
'
\'
)">详情</a>'
;
}
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
fieldType
:
"ftString"
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
fieldType
:
"ftString"
},
{
title
:
"需求数量"
,
field
:
"xqsl"
,
fieldType
:
"int"
},
{
title
:
"已装配数量"
,
field
:
"yzpsl"
,
fieldType
:
"int"
}
]]
});
$searchBtn
.
iMenubutton
({
iconCls
:
'fa fa-search'
,
text
:
'搜索'
,
onClick
:
function
()
{
run
();
loadList
(
'1'
)
}
});
}
/*数据初始化*/
function
dataInit
(
ops
){
}
/*用户操作*/
function
run
(
ops
){
$datagrid
.
datagrid
(
"options"
).
url
=
"kmes/zpfk/query"
;
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
));
}
function
loadList
(
snid
)
{
$datagridWOJdfk
.
datagrid
(
"loading"
);
HTTP
.
post
(
"kmes/zpfk/query/detail"
,{
snid
:
snid
},
function
(
res
)
{
if
(
res
.
success
){
$datagridWOJdfk
.
datagrid
(
"loaded"
);
$datagridWOJdfk
.
datagrid
(
'clientPaging'
,
{
data
:
res
.
data
.
records
||
[]});
}
})
}
gas
.
load
(
paramInit
,
pageInit
,
dataInit
,
run
);
})
function
onReivewGjj
(
wlid
,
jhid
)
{
gas
.
Dialog
({
title
:
"详情"
,
width
:
960
,
height
:
480
,
href
:
"kmes/zpfk/hyinfo/index"
,
footerIn
:
true
,
onBeforeLoad
:
function
()
{
$
(
this
).
dialog
(
"options"
).
queryParams
=
{
wlid
:
wlid
,
jhid
:
jhid
}
},
})
}
</script>
gavel/src/main/resources/templates/views/kmes/zpfk/zpfkdetails.html
deleted
100644 → 0
View file @
e9c1d92c
<div
id=
"zpfkdetails"
class=
"e-dialog-container"
data-options=
"width: 1020,height: 600"
>
<div
class=
"e-dialog-body"
style=
""
>
<div
style=
"width: 100%;height: 100%"
class=
"bznrList"
id =
"bznrList"
></div>
</div>
<div
class=
"e-dialog-footer"
>
<a
href=
"javascript:void(0);"
class=
"e-dialog-cancel"
></a>
</div>
</div>
<script>
$
(
function
()
{
var
$Container
=
$
(
"#zpfkdetails"
);
var
params
=
$Container
.
parent
().
dialog
(
"options"
).
queryParams
;
var
wlid
=
""
;
var
zpjhid
=
""
;
function
paramInit
(
ops
){
wlid
=
params
.
wlid
;
zpjhid
=
params
.
jhid
;
}
function
pageInit
(){
jglk
()
}
function
dataInit
(){
}
function
run
(){
}
function
jglk
()
{
var
$right
=
$Container
.
find
(
".bznrList"
);
var
$righColumns
=
[
{
title
:
"条码"
,
field
:
"wlsnid"
,
width
:
100
},
{
title
:
"装配人"
,
field
:
"cjr"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"装配时间"
,
field
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
];
$right
.
datagrid
({
title
:
"条码信息"
,
columns
:[
new
$
.
common
.
formatterCol
(
$righColumns
)],
pagination
:
false
});
HTTP
.
post
(
"kmes/zpfk/queryZpfkDetails"
,{
wlid
:
wlid
,
zpjhid
:
zpjhid
},
function
(
res
)
{
if
(
res
.
success
){
$right
.
datagrid
(
"loadData"
,
res
.
data
.
records
||
[])
}
})
}
gas
.
load
(
paramInit
,
pageInit
,
dataInit
,
run
);
})
</script>
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