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
a98ba853
Commit
a98ba853
authored
Feb 18, 2022
by
周毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除文件
parent
aad39b27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
343 deletions
+0
-343
edit.html
.../src/main/resources/templates/views/kmes/wlgylx/edit.html
+0
-180
index.html
...src/main/resources/templates/views/kmes/wlgylx/index.html
+0
-163
No files found.
gavel/src/main/resources/templates/views/kmes/wlgylx/edit.html
deleted
100644 → 0
View file @
aad39b27
<div
id=
"kmesGylxEdit"
class=
"e-dialog-container"
data-options=
"width:680,height:360"
>
<div
class=
"e-single-dialog"
>
<input
type=
"hidden"
name=
"flag"
>
<input
type=
"hidden"
name=
"id"
>
<input
type=
"hidden"
name=
"sysversion"
>
<div
class=
"gui-row"
>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
工厂:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"gcid"
data-toggle=
"gui-textbox"
data-options=
"required:true"
>
</div>
</div>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
工作中心:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"gzzxid"
data-toggle=
"gui-textbox"
data-options=
"required:true"
>
</div>
</div>
</div>
<div
class=
"gui-row"
>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
序号:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"xh"
data-toggle=
"gui-textbox"
data-options=
"required:true"
>
</div>
</div>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
标准工序:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"bzgxid"
data-toggle=
"gui-textbox"
data-options=
"required:true"
>
</div>
</div>
</div>
<div
class=
"gui-row"
>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
物料:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"wlid"
data-toggle=
"gui-textbox"
data-title=
"gylxcode"
data-options=
"required:true"
>
</div>
</div>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
工艺路线名称:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"name"
data-toggle=
"gui-textbox"
data-options=
"required:true"
>
</div>
</div>
</div>
<div
class=
"gui-row"
>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
工序类型:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"gxlx"
data-toggle=
"gui-textbox"
data-options=
"required:true"
>
</div>
</div>
<div
class=
"gui-col-sm6"
>
<label
class=
"gui-form-label"
>
工序标志:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"gxbz"
data-toggle=
"gui-textbox"
data-options=
"required:true"
>
</div>
</div>
</div>
<div
class=
"gui-row"
>
<div
class=
"gui-col-sm12"
>
<label
class=
"gui-form-label"
>
备注:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"bz"
data-toggle=
"gui-textbox"
>
</div>
</div>
</div>
</div>
<div
class=
"e-dialog-footer"
>
<a
href=
"javascript:void(0);"
class=
"e-dialog-ok"
></a>
<a
href=
"javascript:void(0);"
class=
"e-dialog-cancel"
></a>
</div>
</div>
<script>
$
(
function
()
{
var
$div
=
$
(
'#kmesGylxEdit'
);
var
$cbxGcid
=
$div
.
find
(
'input[name="gcid"]'
);
var
$cbxGzzxid
=
$div
.
find
(
'input[name="gzzxid"]'
);
var
$cbxGxlx
=
$div
.
find
(
'input[name="gxlx"]'
);
var
$cbxGxbz
=
$div
.
find
(
'input[name="gxbz"]'
);
var
$edtWlid
=
$div
.
find
(
'input[name="wlid"]'
);
var
$cbxBzgxid
=
$div
.
find
(
'input[name="bzgxid"]'
);
var
$edtName
=
$div
.
find
(
'input[name="name"]'
);
var
$edtXh
=
$div
.
find
(
'input[name="xh"]'
);
var
$bInit
=
true
;
function
pageInit
(
ops
){
$cbxGcid
.
iCombobox
({
valueField
:
'id'
,
textField
:
'name'
,
onSelect
:
doSelectGcid
});
$cbxGzzxid
.
iCombobox
({
valueField
:
'id'
,
textField
:
'name'
,
onSelect
:
doSelectGzzxid
});
$cbxGxlx
.
iCombobox
({
valueField
:
'id'
,
textField
:
'name'
});
$cbxGxbz
.
iCombobox
({
valueField
:
'id'
,
textField
:
'name'
});
$cbxBzgxid
.
iCombobox
({
valueField
:
'id'
,
textField
:
'name'
,
onSelect
:
doSelectBzgxid
});
Auxiliary
.
box
(
$edtWlid
,
"WLID"
);
}
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/bzgx/queryNotTybzBzgx'
,
{},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxBzgxid
.
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/gylx/init/gxbz'
,
{},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxGxbz
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
},
ops
);
if
(
$div
.
closest
(
"form"
).
attr
(
"tag"
)
==
"add"
){
$edtWlid
.
textbox
(
"setValue"
,
$div
.
parent
().
dialog
(
"options"
).
wlid
);
$edtWlid
.
textbox
(
"setText"
,
$div
.
parent
().
dialog
(
"options"
).
wlname
);
// $div.find('input[name="wlid"]').val($div.parent().dialog("options").wlid);
}
}
function
run
(
ops
){
$bInit
=
false
;
}
gas
.
load
(
pageInit
,
dataInit
,
run
);
function
doSelectGcid
(
res
){
if
(
$div
.
closest
(
"form"
).
attr
(
"tag"
)
!=
"add"
&&
$bInit
)
return
false
;
gas
.
post
(
'gygl/gzzx/query'
,
{
gcid
:
res
.
id
},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxGzzxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
});
}
function
doSelectGzzxid
(
res
){
if
(
$div
.
closest
(
"form"
).
attr
(
"tag"
)
!=
"add"
&&
$bInit
)
return
false
;
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
);
}
});
}
function
doSelectBzgxid
(
res
){
if
(
$div
.
closest
(
"form"
).
attr
(
"tag"
)
!=
"add"
&&
$bInit
)
return
false
;
gas
.
post
(
'gygl/bzgx/queryById'
,
{
id
:
res
.
id
},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
&&
res
.
data
.
records
.
length
>
0
){
var
bzgx
=
res
.
data
.
records
[
0
];
$edtName
.
textbox
(
'setValue'
,
bzgx
.
name
||
""
);
$edtXh
.
textbox
(
'setValue'
,
bzgx
.
xh
||
""
);
}
});
}
})
</script>
gavel/src/main/resources/templates/views/kmes/wlgylx/index.html
deleted
100644 → 0
View file @
aad39b27
<div
id=
"hzGylx"
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:'hzGylxTable'}"
>
<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>
</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=
"condition"
class=
"gui-textbox"
style=
"width: 160px"
>
</div>
</div>
</li>
</ul>
<span
class=
"toolbar-search-span"
><a
class=
"toolbar-search-wlxx"
href=
"javascript:void(0)"
></a></span>
</form>
</div>
</div>
</div>
<div
data-options=
"region:'center'"
>
<div
class=
"gui-div"
>
<table
class=
"toolbar-table toolbar-holder"
data-options=
"id: 'hzGylxTable',herf:'kzzx/gridset/query',type:'datagrid'"
></table>
</div>
</div>
<div
data-options=
"region:'west',split:true"
style=
"width:45%;height:100%;position: relative"
>
<div
id=
"hzGylxWlList"
class=
"gui-div"
>
<table
class=
"toolbar-table"
data-options=
"id: 'hzGylxWlListTable',herf:'kzzx/gridset/query'"
></table>
</div>
</div>
</div>
<!--
hzGylxWlList左边的主表
hzGylx右边的表
-->
<!-- 表格工具栏结束 -->
<script>
$
(
function
()
{
/*js初始化*/
var
$div
=
$
(
'#hzGylx'
);
var
$wlList
=
$
(
"#hzGylxWlList"
);
var
$datagrid
=
$div
.
find
(
'.toolbar-table:first'
);
var
$datagridWo
=
$wlList
.
find
(
'.toolbar-table:first'
);
var
$searchBtn
=
$div
.
find
(
".toolbar-search-wlxx"
);
var
$wlsxColumns
=
[];
var
$gxlxArray
=
[];
var
$gxbzArray
=
[];
function
paramInit
(
ops
){
gas
.
postHTTP
(
"wo/wogylx/init/gxlx"
,
{},
function
(
result
){
if
(
result
.
success
){
$gxlxArray
=
result
.
data
.
records
;
}
},
ops
);
gas
.
post
(
'gygl/gylx/init/gxbz'
,
{},
function
(
res
){
$gxbzArray
=
res
.
data
.
records
;
},
ops
);
//初始化物料属性
initWlsxColumns
(
$wlsxColumns
,
ops
);
}
function
pageInit
(
ops
)
{
$searchBtn
.
iMenubutton
({
iconCls
:
'fa fa-search'
,
text
:
'搜索'
,
onClick
:
function
()
{
run
()
}
});
$wlList
.
Container
({
columns
:
[[
{
title
:
"物料编码"
,
field
:
"code"
,
width
:
120
},
{
title
:
"物料名称"
,
field
:
"name"
,
width
:
140
},
{
title
:
"物料分类"
,
field
:
"flname"
,
width
:
120
},
{
title
:
"机种"
,
field
:
"jzname"
,
width
:
120
},
{
title
:
"规格"
,
field
:
"gg"
,
width
:
100
}
].
concat
(
$wlsxColumns
)],
onLoadSuccess
:
function
()
{
$datagrid
.
datagrid
(
'clientPaging'
,
{
data
:[]});
},
datagrid
:{
onSelect
:
function
(
rowIndex
,
rowData
)
{
if
(
rowData
){
loadList
(
rowData
.
id
)
}
}
}
});
var
options
=
{
url
:
"kmes/wlgylx"
,
fontPage
:
true
,
noRequest
:
true
,
columns
:[[
{
title
:
"序号"
,
field
:
"xh"
,
fieldType
:
"int"
,
align
:
"center"
,
width
:
60
},
{
title
:
"工艺路线名称"
,
field
:
"name"
,
fieldType
:
"ftString"
,
width
:
180
},
{
title
:
"工作中心"
,
field
:
"gzzxName"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"备注"
,
field
:
"bz"
,
fieldType
:
"ftString"
,
width
:
200
},
{
title
:
"维护人"
,
field
:
"whr"
,
fieldType
:
"ftString"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
}
]],
dialog
:{
href
:
"kmes/wlgylx/edit"
,
footerIn
:
true
,
onBeforeLoad
:
function
()
{
var
selectedRow
=
$datagridWo
.
datagrid
(
"getSelected"
);
if
(
selectedRow
){
$
(
this
).
dialog
(
"options"
).
wlid
=
selectedRow
.
id
;
$
(
this
).
dialog
(
"options"
).
wlname
=
selectedRow
.
name
;
}
},
onSaveCallback
:
function
(
a
,
b
)
{
var
selectedRow
=
$datagridWo
.
datagrid
(
"getSelected"
);
debugger
if
(
selectedRow
){
if
(
selectedRow
.
id
!=
b
.
wlid
){
run
(
ops
);
}
else
{
loadList
(
selectedRow
.
id
);
}
}
}
}
};
$div
.
Holder
(
options
);
}
/*数据初始化*/
function
dataInit
(
ops
){
}
/*用户操作*/
function
run
(
ops
){
debugger
$datagridWo
.
datagrid
(
"options"
).
url
=
"kmes/wlgylx/queryWlxx"
;
$datagridWo
.
datagrid
(
"reload"
,
DataBind
.
collectData
(
$div
));
}
function
loadList
(
wlid
)
{
$datagrid
.
datagrid
(
"loading"
);
HTTP
.
post
(
"kmes/wlgylx/query"
,{
wlid
:
wlid
},
function
(
res
)
{
if
(
res
.
success
){
debugger
$datagrid
.
datagrid
(
"loaded"
);
$datagrid
.
datagrid
(
'clientPaging'
,
{
data
:
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