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
0256ea60
Commit
0256ea60
authored
Mar 15, 2022
by
yff
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.gavelinfo.com:gavelinfo/kwell-mes
parents
d4183e15
7bc5748b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
484 additions
and
2 deletions
+484
-2
public.css
gavel/src/main/resources/static/css/dashboard/public.css
+3
-0
index.html
gavel/src/main/resources/templates/views/bom/bom/index.html
+1
-2
edit.html
gavel/src/main/resources/templates/views/gygl/gylx/edit.html
+303
-0
index.html
...l/src/main/resources/templates/views/gygl/gylx/index.html
+177
-0
No files found.
gavel/src/main/resources/static/css/dashboard/public.css
View file @
0256ea60
...
...
@@ -3,6 +3,9 @@
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
}
*,
body
{
padding
:
0px
;
margin
:
0px
;
color
:
#ffffff
;
/*font-family: "微软雅黑";*/
}
video
{
object-fit
:
cover
!important
;
}
html
,
body
{
background
:
url("../../images/dashboard/bg.png")
no-repeat
;
background-size
:
cover
;
...
...
gavel/src/main/resources/templates/views/bom/bom/index.html
View file @
0256ea60
...
...
@@ -191,7 +191,6 @@ $(function () {
gas
.
showWarning
(
"请选择一条数据!"
);
return
true
}
console
.
log
(
selectedRow
)
if
(
selectedRow
.
bomid
==
"root"
&&
opentype
==
"edit"
){
gas
.
showWarning
(
"无法操作根节点!"
);
return
true
...
...
@@ -321,7 +320,7 @@ $(function () {
gas
.
showWarning
(
"请选择一条数据进行删除操作!"
);
return
false
}
if
(
selectedNode
.
v
id
==
"root"
){
if
(
selectedNode
.
bom
id
==
"root"
){
gas
.
showWarning
(
"产品结构不允许删除!"
);
return
false
}
...
...
gavel/src/main/resources/templates/views/gygl/gylx/edit.html
0 → 100644
View file @
0256ea60
This diff is collapsed.
Click to expand it.
gavel/src/main/resources/templates/views/gygl/gylx/index.html
0 → 100644
View file @
0256ea60
<div
id=
"gyglGylx"
class=
"gui-div"
>
<table
class=
"toolbar-table"
data-options=
"id: 'gyglGylxTable',herf:'kzzx/gridset/query'"
></table>
<!-- 表格工具栏开始 -->
<div
id=
"gyglGylxTable-toolbar"
class=
"gui-toolbar"
data-options=
"grid:{type:'datagrid',id:'gyglGylxTable'}"
>
<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-review toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-add toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-copy toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-edit toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-delete toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-attachment toolbar"
href=
"javascript:void(0)"
></a>
<a
class=
"toolbar-run 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="gcid" class="gui-textbox">
</div>
</div>-->
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
工作中心:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"gzzxid"
class=
"gui-textbox"
>
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
工序类型:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"gxlx"
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=
"bzgxid"
class=
"gui-textbox"
>
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
工艺号:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"code"
class=
"gui-textbox"
>
</div>
</div>
</li>
</ul>
<span
class=
"toolbar-search-span"
><a
class=
"toolbar-search"
href=
"javascript:void(0)"
></a></span>
</form>
</div>
</div>
</div>
<!-- 表格工具栏结束 -->
<script>
$
(
function
()
{
/*js初始化*/
var
$div
=
$
(
'#gyglGylx'
);
var
$datagrid
=
$div
.
find
(
".toolbar-table"
);
var
$cbxGcid
=
$div
.
find
(
'input[name="gcid"]'
);
var
$cbxBzgxid
=
$div
.
find
(
'input[name="bzgxid"]'
);
var
$cbxGxlx
=
$div
.
find
(
'input[name="gxlx"]'
);
var
$cbxGzzxid
=
$div
.
find
(
'input[name="gzzxid"]'
);
var
$gxlxArray
=
[];
var
$gxbzArray
=
[];
function
paramInit
(
ops
){
gas
.
post
(
'gygl/gylx/init/gxlx'
,
{},
function
(
res
){
$gxlxArray
=
res
.
data
.
records
;
},
ops
);
gas
.
post
(
'gygl/gylx/init/gxbz'
,
{},
function
(
res
){
$gxbzArray
=
res
.
data
.
records
;
},
ops
);
}
function
pageInit
()
{
var
options
=
{
url
:
'gygl/gylx'
,
noRequest
:
true
,
columns
:
[[
{
title
:
"序号1"
,
field
:
"xh"
,
fieldType
:
"int"
,
align
:
"center"
,
width
:
60
},
{
title
:
"工艺路线号"
,
field
:
"gylxcode"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"工序名称"
,
field
:
"name"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"工作中心"
,
field
:
"gzzxName"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"标准工序"
,
field
:
"bzgxName"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
fieldType
:
"ftString"
,
width
:
140
},
/* {title: "规格", field: "wlxxGg", fieldType: "ftString",width:140},*/
{
title
:
"工序类型"
,
field
:
"gxlx"
,
fieldType
:
"combobox"
,
width
:
80
,
props
:
{
data
:
$gxlxArray
}},
{
title
:
"工序标志"
,
field
:
"gxbz"
,
fieldType
:
"combobox"
,
width
:
80
,
props
:
{
data
:
$gxbzArray
}},
{
title
:
"设备数量"
,
field
:
"sbsl"
,
fieldType
:
"float"
},
{
title
:
"作业人数"
,
field
:
"zyrsl"
,
fieldType
:
"float"
},
{
title
:
"排队耗时"
,
field
:
"pdhs"
,
fieldType
:
"float"
},
{
title
:
"准备耗时"
,
field
:
"zbhs"
,
fieldType
:
"float"
},
{
title
:
"加工耗时"
,
field
:
"jghs"
,
fieldType
:
"float"
},
{
title
:
"转移耗时"
,
field
:
"zyhs"
,
fieldType
:
"float"
},
{
title
:
"关键工序"
,
field
:
"gjgx"
,
fieldType
:
"checkbox"
,
width
:
80
},
{
title
:
"单位时间产量"
,
field
:
"dwsjcl"
,
fieldType
:
"float"
},
{
title
:
"排产倍数"
,
field
:
"pcbs"
,
fieldType
:
"float"
},
{
title
:
"状态"
,
field
:
"tybz"
,
fieldType
:
"tybz"
,
width
:
80
},
{
title
:
"停用日期"
,
field
:
"tyrq"
,
fieldType
:
"ftDateTime"
},
{
title
:
"备注"
,
field
:
"bz"
,
fieldType
:
"ftString"
,
width
:
200
},
{
title
:
"维护人"
,
field
:
"whr"
,
fieldType
:
"ftString"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
title
:
"附件数"
,
field
:
"attachcount"
,
fieldType
:
"int"
}
]],
dialog
:
{
footerIn
:
true
,
href
:
'gygl/gylx/edit'
}
};
$div
.
Holder
(
options
);
//$cbxGcid.iCombobox({valueField:'id', textField:'name', onSelect: doSelectGcid});
$cbxGzzxid
.
iCombobox
({
valueField
:
'id'
,
textField
:
'name'
,
allowNull
:
true
,
onSelect
:
doSelectBzgxid
});
$cbxBzgxid
.
iCombobox
({
valueField
:
'id'
,
textField
:
'name'
,
allowNull
:
true
});
$cbxGxlx
.
iCombobox
({
valueField
:
'id'
,
textField
:
'name'
,
allowNull
:
true
});
}
/*数据初始化*/
function
dataInit
(
ops
){
gas
.
post
(
'jcsj/common/gc/query'
,
{},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxGcid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
},
ops
);
gas
.
post
(
'gygl/gzzx/query'
,
{},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxGzzxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
},
ops
);
gas
.
post
(
'gygl/gylx/init/gxlx'
,
{},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxGxlx
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
},
ops
);
gas
.
post
(
'gygl/bzgx/queryNotTybzBzgx'
,
{},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
},
ops
);
}
/*用户操作*/
function
run
(
ops
){
$datagrid
.
datagrid
(
"options"
).
url
=
"gygl/gylx/query"
;
$datagrid
.
datagrid
(
"load"
,
DataBind
.
collectData
(
$div
))
}
gas
.
load
(
paramInit
,
pageInit
,
dataInit
,
run
);
function
doSelectGcid
(
res
){
gas
.
post
(
'gygl/gzzx/query'
,
{
gcid
:
res
.
id
},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxGzzxid
.
iCombobox
(
'setValue'
,
''
);
$cbxGzzxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
});
}
function
doSelectBzgxid
(
res
){
gas
.
post
(
'gygl/bzgx/queryNotTybzBzgx'
,
{
gzzxid
:
res
.
id
},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxBzgxid
.
iCombobox
(
'setValue'
,
''
);
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
});
}
})
</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