Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
0d956e80
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1283
Star
158
Fork
129
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
0d956e80
编写于
9月 30, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: BOM方案管理托管到表单布局
上级
1414c495
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
0 addition
and
1531 deletion
+0
-1531
erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
...roduce/src/main/resources/template/js/erpBom/erpBomAdd.js
+0
-382
erp-produce/src/main/resources/template/js/erpBom/erpBomDetail.js
...uce/src/main/resources/template/js/erpBom/erpBomDetail.js
+0
-97
erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
...oduce/src/main/resources/template/js/erpBom/erpBomEdit.js
+0
-399
erp-produce/src/main/resources/template/js/erpBom/erpBomList.js
...oduce/src/main/resources/template/js/erpBom/erpBomList.js
+0
-125
erp-produce/src/main/resources/template/tpl/erpBom/erpBomAdd.html
...uce/src/main/resources/template/tpl/erpBom/erpBomAdd.html
+0
-161
erp-produce/src/main/resources/template/tpl/erpBom/erpBomDetail.html
.../src/main/resources/template/tpl/erpBom/erpBomDetail.html
+0
-164
erp-produce/src/main/resources/template/tpl/erpBom/erpBomEdit.html
...ce/src/main/resources/template/tpl/erpBom/erpBomEdit.html
+0
-169
erp-produce/src/main/resources/template/tpl/erpBom/erpBomList.html
...ce/src/main/resources/template/tpl/erpBom/erpBomList.html
+0
-34
未找到文件。
erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
已删除
100644 → 0
浏览文件 @
1414c495
// bom表商品选择必备参数
var
materialMationList
=
[];
//工序选择必备参数
var
procedureCheckType
=
2
;
//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var
procedureMationList
=
new
Array
();
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
textool
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
textool
=
layui
.
textool
;
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
//下拉框模板
var
selTemplate
=
getFileContent
(
'
tpl/template/select-option-must.tpl
'
);
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
ztreeNode
.
length
==
0
){
winui
.
window
.
msg
(
'
请选择子件清单。
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
childObject
=
new
Array
();
var
wheatherError
=
false
;
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
item
.
needNum
=
$
(
"
#needNum
"
+
item
.
materialId
).
val
();
item
.
type
=
$
(
"
#type
"
+
item
.
materialId
).
val
();
item
.
wastagePrice
=
$
(
"
#wastage
"
+
item
.
materialId
).
val
();
item
.
remark
=
$
(
"
#remark
"
+
item
.
materialId
).
val
();
childObject
.
push
(
item
);
if
(
item
.
materialId
==
erpOrderUtil
.
chooseProductMation
.
materialId
){
winui
.
window
.
msg
(
'
子件清单中不能包含父件信息。
'
,
{
icon
:
2
,
time
:
2000
});
wheatherError
=
true
;
return
false
;
}
if
(
item
.
needNum
==
0
){
winui
.
window
.
msg
(
'
子件数量不能为0。
'
,
{
icon
:
2
,
time
:
2000
});
wheatherError
=
true
;
return
false
;
}
});
if
(
wheatherError
){
return
false
;
}
var
params
=
{
bomTitle
:
$
(
"
#bomTitle
"
).
val
(),
materialId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
materialId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
materialId
,
//商品id
normsId
:
$
(
"
#unitList
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
sealPrice
:
getSealPrice
(
erpOrderUtil
.
chooseProductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
childStr
:
JSON
.
stringify
(
childObject
)
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
function
getSealPrice
(
unitList
,
normId
){
var
unitIndex
=
-
1
;
$
.
each
(
unitList
,
function
(
i
,
item
)
{
if
(
item
.
id
==
normId
){
unitIndex
=
i
;
return
false
;
}
});
if
(
unitIndex
>=
0
){
return
unitList
[
unitIndex
].
salePrice
;
}
}
/********* tree 处理 start *************/
var
ztreeNode
=
new
Array
();
var
setting
=
{
id
:
"
treeDemo
"
,
check
:
{
enable
:
false
},
view
:
{
showLine
:
false
,
showIcon
:
false
,
addDiyDom
:
addDiyDom
,
fontCss
:
setFontCss
,
expandSpeed
:
'
speed
'
},
async
:
{
//异步加载
enable
:
false
},
data
:
{
key
:
{
name
:
'
productName
'
},
simpleData
:
{
enable
:
true
,
idKey
:
'
materialId
'
,
pIdKey
:
'
pId
'
,
rootPId
:
0
}
},
edit
:
{
enable
:
true
,
drag
:
{
isCopy
:
false
,
isMove
:
true
,
prev
:
true
,
inner
:
true
,
next
:
true
},
showRenameBtn
:
false
},
callback
:
{
beforeDrag
:
beforeDrag
,
beforeDrop
:
beforeDrop
,
onDrop
:
onDrop
,
onRemove
:
onRemove
}
};
$
.
fn
.
zTree
.
init
(
$
(
"
#treeDemo
"
),
setting
,
ztreeNode
);
loadTr
();
//获取表格标题
var
li_head
=
$
(
"
#tableHeader
"
).
html
();
function
loadTr
(){
var
rows
=
$
(
"
#treeDemo
"
).
find
(
'
li
'
);
if
(
rows
.
length
==
0
)
{
$
(
"
#treeDemo
"
).
append
(
li_head
);
$
(
"
#treeDemo
"
).
append
(
'
<li><div style="text-align: center;line-height: 30px;" >无符合条件数据</div></li>
'
)
}
else
{
rows
.
eq
(
0
).
before
(
li_head
)
}
//刷新节点数据重置金额
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
$
(
"
#allPrice
"
+
item
.
materialId
).
html
(
parseInt
(
item
.
needNum
)
*
parseFloat
(
item
.
unitPrice
));
});
}
//在拖拽之前
function
beforeDrag
(
treeId
,
treeNodes
)
{
return
true
;
}
//用于捕获节点拖拽操作结束之前的事件回调函数,并且根据返回值确定是否允许此拖拽操作
function
beforeDrop
(
treeId
,
treeNodes
,
targetNode
,
moveType
)
{
return
true
;
}
//拖拽操作结束后的回调函数
function
onDrop
(
event
,
treeId
,
treeNodes
,
targetNode
,
moveType
)
{
var
nodesIndex
=
-
1
;
//拖拽节点所在索引
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
//拖拽节点
if
(
item
.
materialId
==
treeNodes
[
0
].
materialId
){
nodesIndex
=
i
;
return
false
;
}
});
//"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点
//如果 moveType = null,表明拖拽无效
if
(
!
isNull
(
moveType
)){
if
(
'
inner
'
==
moveType
){
//依然为父节点
if
(
nodesIndex
>=
0
){
ztreeNode
[
nodesIndex
].
pId
=
targetNode
.
materialId
;
}
}
}
//拖拽节点是否为父目录
if
(
nodesIndex
>=
0
){
ztreeNode
[
nodesIndex
].
isParent
=
'
true
'
;
}
//修改目标节点为父目录
if
(
targetNode
){
targetNode
.
isParent
=
'
true
'
;
}
//刷新树节点
refreshTree
();
}
//移除节点
function
onRemove
(
event
,
treeId
,
treeNode
)
{
var
treeNodeIndex
=
-
1
;
deleteNode
(
treeNode
);
//刷新树节点
refreshTree
();
}
//删除节点操作
function
deleteNode
(
treeNode
){
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
if
(
item
.
materialId
==
treeNode
.
materialId
){
treeNodeIndex
=
i
;
return
false
;
}
});
if
(
treeNodeIndex
>=
0
){
ztreeNode
.
splice
(
treeNodeIndex
,
1
);
}
if
(
!
isNull
(
treeNode
.
children
)
&&
treeNode
.
children
.
length
>
0
){
$
.
each
(
treeNode
.
children
,
function
(
i
,
item
)
{
deleteNode
(
item
);
});
}
}
/**
* 刷新树节点
*/
function
refreshTree
(){
var
treeObj
=
$
.
fn
.
zTree
.
getZTreeObj
(
"
treeDemo
"
);
treeObj
.
refresh
();
loadTr
();
}
/**
* 自定义DOM节点
*/
function
addDiyDom
(
treeId
,
treeNode
)
{
var
spaceWidth
=
15
;
var
liObj
=
$
(
"
#
"
+
treeNode
.
tId
);
var
aObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_a
"
);
var
switchObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_switch
"
);
var
icoObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_ico
"
);
var
spanObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_span
"
);
aObj
.
attr
(
'
title
'
,
''
);
aObj
.
append
(
'
<div class="diy swich"></div>
'
);
var
div
=
$
(
liObj
).
find
(
'
div
'
).
eq
(
0
);
switchObj
.
remove
();
spanObj
.
remove
();
icoObj
.
remove
();
div
.
append
(
switchObj
);
div
.
append
(
spanObj
);
var
spaceStr
=
"
<span style='height:1px;display: inline-block;width:
"
+
(
spaceWidth
*
treeNode
.
level
)
+
"
px'></span>
"
;
switchObj
.
before
(
spaceStr
);
aObj
.
append
(
getDataUseHandlebars
(
$
(
"
#tableBody
"
).
html
(),
treeNode
));
//设置商品来源选中
$
(
"
#type
"
+
treeNode
.
materialId
).
val
(
treeNode
.
type
);
form
.
render
(
"
select
"
);
}
function
setFontCss
(
treeId
,
treeNode
)
{
return
(
!!
treeNode
.
highlight
)
?
{
color
:
"
#00ff66
"
,
"
font-weight
"
:
"
bold
"
}
:
{
color
:
"
#333
"
,
"
font-weight
"
:
"
normal
"
};
}
/********* tree 处理 end *************/
//新增子件
$
(
"
body
"
).
on
(
"
click
"
,
"
#addRow
"
,
function
(
e
)
{
materialMationList
=
[];
_openNewWindows
({
url
:
"
../../tpl/material/materialChooseToProduce.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
materialChooseToProduce
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
$
.
each
(
materialMationList
,
function
(
i
,
item
)
{
if
(
!
inZtreeNode
(
item
.
materialId
)){
ztreeNode
.
push
(
item
);
}
});
$
.
fn
.
zTree
.
init
(
$
(
"
#treeDemo
"
),
setting
,
ztreeNode
);
loadTr
();
}});
});
//工序选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.procedureSel
"
,
function
()
{
var
proId
=
$
(
this
).
attr
(
"
id
"
).
replace
(
"
procedureSel
"
,
""
);
var
selIndex
=
-
1
;
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
if
(
item
.
materialId
==
proId
){
selIndex
=
i
;
return
false
;
}
});
if
(
selIndex
>=
0
){
procedureMationList
=
[].
concat
(
ztreeNode
[
selIndex
].
procedureMationList
);
_openNewWindows
({
url
:
"
../../tpl/erpWorkProcedure/erpWorkProcedureChoose.html
"
,
title
:
"
工序选择
"
,
pageId
:
"
erpWorkProcedureChoose
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
ztreeNode
[
selIndex
].
procedureMationList
=
[].
concat
(
procedureMationList
);
var
str
=
""
;
var
title
=
""
;
$
.
each
(
procedureMationList
,
function
(
i
,
item
)
{
str
+=
''
+
'
<span class="layui-badge layui-bg-gray">
'
+
item
.
number
+
'
</span>
'
+
item
.
procedureName
+
'
,
'
;
title
+=
item
.
number
+
'
、
'
+
item
.
procedureName
+
'
\n
'
;
});
$
(
"
#procedureBox
"
+
proId
).
html
(
'
<img class="procedureSel" id="procedureSel
'
+
proId
+
'
" src="../../assets/images/forum-menu.png"/>
'
+
str
);
$
(
"
#procedureBox
"
+
proId
).
attr
(
'
title
'
,
title
);
}});
}
else
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
});
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
materialName
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
materialModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
form
.
render
(
"
select
"
);
});
});
/**
* 判断该商品是否在树节点里面
*/
function
inZtreeNode
(
materialId
){
var
inNodeIndex
=
-
1
;
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
if
(
item
.
materialId
==
materialId
){
inNodeIndex
=
i
;
return
false
;
}
});
if
(
inNodeIndex
>=
0
){
return
true
;
}
else
{
return
false
;
}
}
//数量变化
$
(
"
body
"
).
on
(
"
input
"
,
"
.needNum
"
,
function
()
{
var
proId
=
$
(
this
).
attr
(
"
id
"
).
replace
(
"
needNum
"
,
""
);
var
value
=
parseInt
(
isNull
(
$
(
this
).
val
())
?
"
0
"
:
$
(
this
).
val
());
calculatedTotalPrice
(
proId
,
value
);
});
$
(
"
body
"
).
on
(
"
change
"
,
"
.needNum
"
,
function
()
{
var
proId
=
$
(
this
).
attr
(
"
id
"
).
replace
(
"
needNum
"
,
""
);
var
value
=
parseInt
(
isNull
(
$
(
this
).
val
())
?
"
0
"
:
$
(
this
).
val
());
calculatedTotalPrice
(
proId
,
value
);
});
function
calculatedTotalPrice
(
proId
,
needNum
){
var
inNodeIndex
=
-
1
;
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
if
(
item
.
materialId
==
proId
){
inNodeIndex
=
i
;
return
false
;
}
});
if
(
inNodeIndex
>=
0
){
ztreeNode
[
inNodeIndex
].
needNum
=
needNum
;
$
(
"
#allPrice
"
+
proId
).
html
(
needNum
*
parseFloat
(
ztreeNode
[
inNodeIndex
].
unitPrice
));
//修改节点信息
var
zTree
=
$
.
fn
.
zTree
.
getZTreeObj
(
"
treeDemo
"
);
var
node
=
zTree
.
getNodeByParam
(
"
materialId
"
,
proId
);
node
.
needNum
=
needNum
;
zTree
.
updateNode
(
node
);
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
.diy-input
"
,
function
()
{
$
(
this
).
focus
();
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
erp-produce/src/main/resources/template/js/erpBom/erpBomDetail.js
已删除
100644 → 0
浏览文件 @
1414c495
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom003
"
,
params
:
{
id
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
(
"
#showForm
"
).
html
(
getDataUseHandlebars
(
$
(
"
#mainHtml
"
).
html
(),
json
));
$
.
fn
.
zTree
.
init
(
$
(
"
#treeDemo
"
),
setting
,
json
.
bean
.
bomMaterialList
);
loadTr
();
$
.
each
(
json
.
bean
.
bomMaterialList
,
function
(
i
,
item
)
{
$
(
"
#allPrice
"
+
item
.
productId
).
html
(
parseInt
(
item
.
needNum
)
*
parseFloat
(
item
.
unitPrice
));
});
matchingLanguage
();
form
.
render
();
}});
/********* tree 处理 start *************/
var
setting
=
{
id
:
"
treeDemo
"
,
check
:
{
enable
:
false
},
view
:
{
showLine
:
false
,
showIcon
:
false
,
addDiyDom
:
addDiyDom
,
fontCss
:
setFontCss
,
expandSpeed
:
'
speed
'
},
async
:
{
//异步加载
enable
:
false
},
data
:
{
key
:
{
name
:
'
productName
'
},
simpleData
:
{
enable
:
true
,
idKey
:
'
productId
'
,
pIdKey
:
'
pId
'
,
rootPId
:
0
}
}
};
//获取表格标题
var
li_head
=
$
(
"
#tableHeader
"
).
html
();
function
loadTr
(){
var
rows
=
$
(
"
#treeDemo
"
).
find
(
'
li
'
);
if
(
rows
.
length
==
0
)
{
$
(
"
#treeDemo
"
).
append
(
li_head
);
$
(
"
#treeDemo
"
).
append
(
'
<li><div style="text-align: center;line-height: 30px;" >无符合条件数据</div></li>
'
)
}
else
{
rows
.
eq
(
0
).
before
(
li_head
)
}
}
/**
* 自定义DOM节点
*/
function
addDiyDom
(
treeId
,
treeNode
)
{
var
spaceWidth
=
15
;
var
liObj
=
$
(
"
#
"
+
treeNode
.
tId
);
var
aObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_a
"
);
var
switchObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_switch
"
);
var
icoObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_ico
"
);
var
spanObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_span
"
);
aObj
.
attr
(
'
title
'
,
''
);
aObj
.
append
(
'
<div class="diy swich"></div>
'
);
var
div
=
$
(
liObj
).
find
(
'
div
'
).
eq
(
0
);
switchObj
.
remove
();
spanObj
.
remove
();
icoObj
.
remove
();
div
.
append
(
switchObj
);
div
.
append
(
spanObj
);
var
spaceStr
=
"
<span style='height:1px;display: inline-block;width:
"
+
(
spaceWidth
*
treeNode
.
level
)
+
"
px'></span>
"
;
switchObj
.
before
(
spaceStr
);
aObj
.
append
(
getDataUseHandlebars
(
$
(
"
#tableBody
"
).
html
(),
treeNode
));
//设置商品来源选中
$
(
"
#type
"
+
treeNode
.
productId
).
val
(
treeNode
.
type
);
form
.
render
(
"
select
"
);
}
function
setFontCss
(
treeId
,
treeNode
)
{
return
(
!!
treeNode
.
highlight
)
?
{
color
:
"
#00ff66
"
,
"
font-weight
"
:
"
bold
"
}
:
{
color
:
"
#333
"
,
"
font-weight
"
:
"
normal
"
};
}
/********* tree 处理 end *************/
});
});
\ No newline at end of file
erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
已删除
100644 → 0
浏览文件 @
1414c495
// bom表商品选择必备参数
var
materialMationList
=
[];
//工序选择必备参数
var
procedureCheckType
=
2
;
//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var
procedureMationList
=
new
Array
();
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
textool
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
textool
=
layui
.
textool
;
var
ztreeNode
=
new
Array
();
var
selTemplate
=
getFileContent
(
'
tpl/template/select-option-must.tpl
'
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom005
"
,
params
:
{
id
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
$
(
"
#showForm
"
).
html
(
getDataUseHandlebars
(
$
(
"
#mainHtml
"
).
html
(),
json
));
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
// 初始化父件商品信息
erpOrderUtil
.
chooseProductMation
=
{
materialId
:
json
.
bean
.
materialId
,
materialName
:
json
.
bean
.
productName
,
materialModel
:
json
.
bean
.
productModel
,
unitList
:
json
.
bean
.
unitList
};
//初始化规格单位
$
(
"
#unitList
"
).
val
(
json
.
bean
.
normsId
);
//加载树表格信息
ztreeNode
=
json
.
bean
.
bomMaterialList
;
$
.
fn
.
zTree
.
init
(
$
(
"
#treeDemo
"
),
setting
,
ztreeNode
);
loadTr
();
matchingLanguage
();
form
.
render
();
}});
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
ztreeNode
.
length
==
0
){
winui
.
window
.
msg
(
'
请选择子件清单。
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
childObject
=
new
Array
();
var
wheatherError
=
false
;
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
item
.
needNum
=
$
(
"
#needNum
"
+
item
.
materialId
).
val
();
item
.
type
=
$
(
"
#type
"
+
item
.
materialId
).
val
();
item
.
wastagePrice
=
$
(
"
#wastage
"
+
item
.
materialId
).
val
();
item
.
remark
=
$
(
"
#remark
"
+
item
.
materialId
).
val
();
childObject
.
push
(
item
);
if
(
item
.
materialId
==
erpOrderUtil
.
chooseProductMation
.
materialId
){
winui
.
window
.
msg
(
'
子件清单中不能包含父件信息。
'
,
{
icon
:
2
,
time
:
2000
});
wheatherError
=
true
;
return
false
;
}
if
(
item
.
needNum
==
0
){
winui
.
window
.
msg
(
'
子件数量不能为0。
'
,
{
icon
:
2
,
time
:
2000
});
wheatherError
=
true
;
return
false
;
}
});
if
(
wheatherError
){
return
false
;
}
var
params
=
{
bomTitle
:
$
(
"
#bomTitle
"
).
val
(),
materialId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
materialId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
materialId
,
//商品id
normsId
:
$
(
"
#unitList
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
sealPrice
:
getSealPrice
(
erpOrderUtil
.
chooseProductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
childStr
:
JSON
.
stringify
(
childObject
),
rowId
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom006
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
function
getSealPrice
(
unitList
,
normId
){
var
unitIndex
=
-
1
;
$
.
each
(
unitList
,
function
(
i
,
item
)
{
if
(
item
.
id
==
normId
){
unitIndex
=
i
;
return
false
;
}
});
if
(
unitIndex
>=
0
){
return
unitList
[
unitIndex
].
salePrice
;
}
}
/********* tree 处理 start *************/
var
setting
=
{
id
:
"
treeDemo
"
,
check
:
{
enable
:
false
},
view
:
{
showLine
:
false
,
showIcon
:
false
,
addDiyDom
:
addDiyDom
,
fontCss
:
setFontCss
,
expandSpeed
:
'
speed
'
},
async
:
{
//异步加载
enable
:
false
},
data
:
{
key
:
{
name
:
'
productName
'
},
simpleData
:
{
enable
:
true
,
idKey
:
'
materialId
'
,
pIdKey
:
'
pId
'
,
rootPId
:
0
}
},
edit
:
{
enable
:
true
,
drag
:
{
isCopy
:
false
,
isMove
:
true
,
prev
:
true
,
inner
:
true
,
next
:
true
},
showRenameBtn
:
false
},
callback
:
{
beforeDrag
:
beforeDrag
,
beforeDrop
:
beforeDrop
,
onDrop
:
onDrop
,
onRemove
:
onRemove
}
};
//获取表格标题
var
li_head
=
$
(
"
#tableHeader
"
).
html
();
function
loadTr
(){
var
rows
=
$
(
"
#treeDemo
"
).
find
(
'
li
'
);
if
(
rows
.
length
==
0
)
{
$
(
"
#treeDemo
"
).
append
(
li_head
);
$
(
"
#treeDemo
"
).
append
(
'
<li><div style="text-align: center;line-height: 30px;" >无符合条件数据</div></li>
'
)
}
else
{
rows
.
eq
(
0
).
before
(
li_head
)
}
//刷新节点数据重置金额
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
$
(
"
#allPrice
"
+
item
.
materialId
).
html
(
parseInt
(
item
.
needNum
)
*
parseFloat
(
item
.
unitPrice
));
});
}
//在拖拽之前
function
beforeDrag
(
treeId
,
treeNodes
)
{
return
true
;
}
//用于捕获节点拖拽操作结束之前的事件回调函数,并且根据返回值确定是否允许此拖拽操作
function
beforeDrop
(
treeId
,
treeNodes
,
targetNode
,
moveType
)
{
return
true
;
}
//拖拽操作结束后的回调函数
function
onDrop
(
event
,
treeId
,
treeNodes
,
targetNode
,
moveType
)
{
var
nodesIndex
=
-
1
;
//拖拽节点所在索引
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
//拖拽节点
if
(
item
.
materialId
==
treeNodes
[
0
].
materialId
){
nodesIndex
=
i
;
return
false
;
}
});
//"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点
//如果 moveType = null,表明拖拽无效
if
(
!
isNull
(
moveType
)){
if
(
'
inner
'
==
moveType
){
//依然为父节点
if
(
nodesIndex
>=
0
){
ztreeNode
[
nodesIndex
].
pId
=
targetNode
.
materialId
;
}
}
}
//拖拽节点是否为父目录
if
(
nodesIndex
>=
0
){
ztreeNode
[
nodesIndex
].
isParent
=
'
true
'
;
}
//修改目标节点为父目录
if
(
targetNode
){
targetNode
.
isParent
=
'
true
'
;
}
//刷新树节点
refreshTree
();
}
//移除节点
function
onRemove
(
event
,
treeId
,
treeNode
)
{
var
treeNodeIndex
=
-
1
;
deleteNode
(
treeNode
);
//刷新树节点
refreshTree
();
}
//删除节点操作
function
deleteNode
(
treeNode
){
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
if
(
item
.
materialId
==
treeNode
.
materialId
){
treeNodeIndex
=
i
;
return
false
;
}
});
if
(
treeNodeIndex
>=
0
){
ztreeNode
.
splice
(
treeNodeIndex
,
1
);
}
if
(
!
isNull
(
treeNode
.
children
)
&&
treeNode
.
children
.
length
>
0
){
$
.
each
(
treeNode
.
children
,
function
(
i
,
item
)
{
deleteNode
(
item
);
});
}
}
/**
* 刷新树节点
*/
function
refreshTree
(){
var
treeObj
=
$
.
fn
.
zTree
.
getZTreeObj
(
"
treeDemo
"
);
treeObj
.
refresh
();
loadTr
();
}
/**
* 自定义DOM节点
*/
function
addDiyDom
(
treeId
,
treeNode
)
{
var
spaceWidth
=
15
;
var
liObj
=
$
(
"
#
"
+
treeNode
.
tId
);
var
aObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_a
"
);
var
switchObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_switch
"
);
var
icoObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_ico
"
);
var
spanObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_span
"
);
aObj
.
attr
(
'
title
'
,
''
);
aObj
.
append
(
'
<div class="diy swich"></div>
'
);
var
div
=
$
(
liObj
).
find
(
'
div
'
).
eq
(
0
);
switchObj
.
remove
();
spanObj
.
remove
();
icoObj
.
remove
();
div
.
append
(
switchObj
);
div
.
append
(
spanObj
);
var
spaceStr
=
"
<span style='height:1px;display: inline-block;width:
"
+
(
spaceWidth
*
treeNode
.
level
)
+
"
px'></span>
"
;
switchObj
.
before
(
spaceStr
);
aObj
.
append
(
getDataUseHandlebars
(
$
(
"
#tableBody
"
).
html
(),
treeNode
));
//设置商品来源选中
$
(
"
#type
"
+
treeNode
.
materialId
).
val
(
treeNode
.
type
);
form
.
render
(
"
select
"
);
}
function
setFontCss
(
treeId
,
treeNode
)
{
return
(
!!
treeNode
.
highlight
)
?
{
color
:
"
#00ff66
"
,
"
font-weight
"
:
"
bold
"
}
:
{
color
:
"
#333
"
,
"
font-weight
"
:
"
normal
"
};
}
/********* tree 处理 end *************/
//新增子件
$
(
"
body
"
).
on
(
"
click
"
,
"
#addRow
"
,
function
(
e
)
{
materialMationList
=
[];
_openNewWindows
({
url
:
"
../../tpl/material/materialChooseToProduce.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
materialChooseToProduce
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
$
.
each
(
materialMationList
,
function
(
i
,
item
)
{
if
(
!
inZtreeNode
(
item
.
materialId
)){
ztreeNode
.
push
(
item
);
}
});
$
.
fn
.
zTree
.
init
(
$
(
"
#treeDemo
"
),
setting
,
ztreeNode
);
loadTr
();
}});
});
//工序选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.procedureSel
"
,
function
()
{
var
proId
=
$
(
this
).
attr
(
"
id
"
).
replace
(
"
procedureSel
"
,
""
);
var
selIndex
=
-
1
;
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
if
(
item
.
materialId
==
proId
){
selIndex
=
i
;
return
false
;
}
});
if
(
selIndex
>=
0
){
procedureMationList
=
[].
concat
(
ztreeNode
[
selIndex
].
procedureMationList
);
_openNewWindows
({
url
:
"
../../tpl/erpWorkProcedure/erpWorkProcedureChoose.html
"
,
title
:
"
工序选择
"
,
pageId
:
"
erpWorkProcedureChoose
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
ztreeNode
[
selIndex
].
procedureMationList
=
[].
concat
(
procedureMationList
);
var
str
=
""
;
var
title
=
""
;
$
.
each
(
procedureMationList
,
function
(
i
,
item
)
{
str
+=
'
<span class="layui-badge layui-bg-gray">
'
+
item
.
number
+
'
</span>
'
+
item
.
procedureName
+
'
,
'
;
title
+=
item
.
number
+
'
、
'
+
item
.
procedureName
+
'
\n
'
;
});
$
(
"
#procedureBox
"
+
proId
).
html
(
'
<img class="procedureSel" id="procedureSel
'
+
proId
+
'
" src="../../assets/images/forum-menu.png"/>
'
+
str
);
$
(
"
#procedureBox
"
+
proId
).
attr
(
'
title
'
,
title
);
}});
}
else
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
});
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
materialName
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
materialModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
form
.
render
(
"
select
"
);
});
});
/**
* 判断该商品是否在树节点里面
*/
function
inZtreeNode
(
materialId
){
var
inNodeIndex
=
-
1
;
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
if
(
item
.
materialId
==
materialId
){
inNodeIndex
=
i
;
return
false
;
}
});
if
(
inNodeIndex
>=
0
){
return
true
;
}
else
{
return
false
;
}
}
// 数量变化
$
(
"
body
"
).
on
(
"
input
"
,
"
.needNum
"
,
function
()
{
var
proId
=
$
(
this
).
attr
(
"
id
"
).
replace
(
"
needNum
"
,
""
);
var
value
=
parseInt
(
isNull
(
$
(
this
).
val
())
?
"
0
"
:
$
(
this
).
val
());
calculatedTotalPrice
(
proId
,
value
);
});
$
(
"
body
"
).
on
(
"
change
"
,
"
.needNum
"
,
function
()
{
var
proId
=
$
(
this
).
attr
(
"
id
"
).
replace
(
"
needNum
"
,
""
);
var
value
=
parseInt
(
isNull
(
$
(
this
).
val
())
?
"
0
"
:
$
(
this
).
val
());
calculatedTotalPrice
(
proId
,
value
);
});
function
calculatedTotalPrice
(
proId
,
needNum
){
var
inNodeIndex
=
-
1
;
$
.
each
(
ztreeNode
,
function
(
i
,
item
)
{
if
(
item
.
materialId
==
proId
){
inNodeIndex
=
i
;
return
false
;
}
});
if
(
inNodeIndex
>=
0
){
ztreeNode
[
inNodeIndex
].
needNum
=
needNum
;
$
(
"
#allPrice
"
+
proId
).
html
(
needNum
*
parseFloat
(
ztreeNode
[
inNodeIndex
].
unitPrice
));
//修改节点信息
var
zTree
=
$
.
fn
.
zTree
.
getZTreeObj
(
"
treeDemo
"
);
var
node
=
zTree
.
getNodeByParam
(
"
materialId
"
,
proId
);
node
.
needNum
=
needNum
;
zTree
.
updateNode
(
node
);
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
.diy-input
"
,
function
()
{
$
(
this
).
focus
();
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
erp-produce/src/main/resources/template/js/erpBom/erpBomList.js
已删除
100644 → 0
浏览文件 @
1414c495
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
authBtn
(
'
1590074984041
'
);
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
erpBasePath
+
'
erpbom001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
bom方案名称
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
}},
{
field
:
'
materialName
'
,
title
:
'
商品名称
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
d
.
normMation
.
materialName
}},
{
field
:
'
materialModel
'
,
title
:
'
商品型号
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
d
.
normMation
.
materialModel
}},
{
field
:
'
unitName
'
,
title
:
'
计量单位
'
,
align
:
'
center
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
d
.
normMation
.
unitName
}},
{
field
:
'
makeNum
'
,
title
:
'
数量
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
consumablesPrice
'
,
title
:
'
耗材总费用
'
,
align
:
'
right
'
,
width
:
100
},
{
field
:
'
procedurePrice
'
,
title
:
'
工序总费用
'
,
align
:
'
right
'
,
width
:
100
},
{
field
:
'
wastagePrice
'
,
title
:
'
耗损总费用
'
,
align
:
'
right
'
,
width
:
100
},
{
field
:
'
sealPrice
'
,
title
:
'
商品销售价
'
,
align
:
'
right
'
,
width
:
100
},
{
field
:
'
remark
'
,
title
:
'
备注说明
'
,
align
:
'
left
'
,
width
:
200
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
150
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入方案名称
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
delete
'
)
{
//删除
deleteAccount
(
data
);
}
else
if
(
layEvent
===
'
details
'
)
{
//详情
details
(
data
);
}
});
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2023092900001
'
,
null
),
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
erpBomAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 详情
function
details
(
data
)
{
_openNewWindows
({
url
:
"
../../tpl/erpBom/erpBomDetail.html
"
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
erpBomDetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
// 编辑
function
edit
(
data
)
{
_openNewWindows
({
url
:
"
../../tpl/erpBom/erpBomEdit.html
"
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
erpBomEdit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
});
}
// 删除
function
deleteAccount
(
data
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom004
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
erpBomList
'
,
{});
});
erp-produce/src/main/resources/template/tpl/erpBom/erpBomAdd.html
已删除
100644 → 0
浏览文件 @
1414c495
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/css/tree-table.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css"
rel=
"stylesheet"
/>
<style
type=
"text/css"
>
.remove
{
position
:
absolute
;
left
:
3px
;
margin-top
:
10px
!important
;
}
.layui-badge
{
line-height
:
15px
!important
;
}
.curSelectedNode
{
background-color
:
#e6e6e6
!important
;
}
.procedureBox
{
word-break
:
keep-all
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.procedureSel
{
float
:
left
;
height
:
20px
;
width
:
20px
;
margin-top
:
5px
;
cursor
:
pointer
;
}
</style>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<span
class=
"hr-title"
>
父件资料
</span><hr>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
BOM方案名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"bomTitle"
name=
"bomTitle"
win-verify=
"required"
placeholder=
"请选择BOM方案名称"
class=
"layui-input"
maxlength=
"50"
/>
<div
class=
"layui-form-mid layui-word-aux"
>
该名称在系统中唯一。
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
商品名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"productName"
name=
"productName"
win-verify=
"required"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"productNameSel"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
商品型号
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"productModel"
name=
"productModel"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
计量单位
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"unitList"
name=
"unitList"
lay-filter=
"unitList"
>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
备注说明
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"remark"
name=
"remark"
placeholder=
"请输入备注说明"
maxlength=
"200"
class=
"layui-textarea"
style=
"height: 100px;"
></textarea>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<span
class=
"hr-title"
>
子件清单
</span><hr>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
列表项
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
style=
"text-align: left;"
>
<button
id=
"addRow"
class=
"winui-toolbtn"
type=
"button"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
选择子件
</button>
</div>
</div>
<ul
id=
"treeDemo"
class=
"ztree fsTree"
></ul>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<!-- 表格标题 -->
<script
type=
"text/html"
id=
"tableHeader"
>
<
li
class
=
"
head
"
>
<
a
>
<
div
class
=
"
diy
"
style
=
"
width: 20%
"
>
商品名称
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 13%
"
>
商品型号
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
计量单位
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
工序
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
数量
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
单价
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
金额
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
耗损
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
商品来源
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
备注
<
/div
>
<
/a
>
<
/li
>
</script>
<!-- 表格行 -->
<script
type=
"text/html"
id=
"tableBody"
>
<
div
class
=
"
diy
"
style
=
"
width: 13%
"
>
{{
productModel
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
{{
unitName
}}
<
/div
>
<
div
class
=
"
diy procedureBox
"
style
=
"
width: 15%
"
id
=
"
procedureBox{{productId}}
"
title
=
"
{{#each procedureMationList}}{{number}}、{{procedureName}} {{/each}}
"
>
<
img
class
=
"
procedureSel
"
id
=
"
procedureSel{{productId}}
"
src
=
"
../../assets/images/forum-menu.png
"
/>
{{
#
each
procedureMationList
}}
<
span
class
=
"
layui-badge layui-bg-gray
"
>
{{
number
}}
<
/span>{{procedureName}}
,
{{
/
each
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
<
input
type
=
"
text
"
id
=
"
needNum{{productId}}
"
name
=
"
needNum{{productId}}
"
win
-
verify
=
"
required|number
"
placeholder
=
"
请输入数量
"
class
=
"
layui-input diy-input needNum
"
value
=
"
{{needNum}}
"
/>
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
{{
unitPrice
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%; min-height: 30px;
"
id
=
"
allPrice{{productId}}
"
><
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
<
input
type
=
"
text
"
id
=
"
wastage{{productId}}
"
name
=
"
wastage{{productId}}
"
win
-
verify
=
"
required|money
"
placeholder
=
"
请输入耗损
"
class
=
"
layui-input diy-input
"
value
=
"
{{wastagePrice}}
"
/>
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%; overflow: visible !important;
"
>
<
select
lay
-
filter
=
"
typeId
"
lay
-
search
=
""
id
=
"
type{{productId}}
"
disabled
>
<
option
value
=
"
1
"
>
自产
<
/option
>
<
option
value
=
"
2
"
>
外购
<
/option
>
<
/select
>
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
<
input
type
=
"
text
"
id
=
"
remark{{productId}}
"
name
=
"
remark{{productId}}
"
placeholder
=
"
请输入备注
"
class
=
"
layui-input diy-input
"
maxlength
=
"
200
"
value
=
"
{{remark}}
"
/>
<
/div
>
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/jquery-min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/erpBom/
'
}).
use
(
'
erpBomAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
erp-produce/src/main/resources/template/tpl/erpBom/erpBomDetail.html
已删除
100644 → 0
浏览文件 @
1414c495
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/css/tree-table.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css"
rel=
"stylesheet"
/>
<style
type=
"text/css"
>
.remove
{
position
:
absolute
;
left
:
3px
;
margin-top
:
10px
!important
;
}
.layui-badge
{
line-height
:
15px
!important
;
}
.curSelectedNode
{
background-color
:
#e6e6e6
!important
;
}
.procedureBox
{
word-break
:
keep-all
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.procedureSel
{
float
:
left
;
height
:
20px
;
width
:
20px
;
margin-top
:
5px
;
cursor
:
pointer
;
}
</style>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
</form>
</div>
<script
type=
"text/html"
id=
"mainHtml"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
父件资料
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
BOM方案名称
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
title
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
商品名称
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
normMation
.
materialName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
商品型号
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
normMation
.
materialModel
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
计量单位
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
normMation
.
unitName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
耗材总费用
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
consumablesPrice
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
工序总费用
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
procedurePrice
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
耗损总费用
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
wastagePrice
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
制造数量
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
makeNum
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
备注说明
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
remark
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
子件清单
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
列表项
:
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
ul
id
=
"
treeDemo
"
class
=
"
ztree fsTree
"
><
/ul
>
<
/div
>
<
/div
>
{{
/
bean
}}
</script>
<!-- 表格标题 -->
<script
type=
"text/html"
id=
"tableHeader"
>
<
li
class
=
"
head
"
>
<
a
>
<
div
class
=
"
diy
"
style
=
"
width: 20%
"
>
商品名称
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 13%
"
>
商品型号
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
计量单位
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
工序
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
数量
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
单价
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
金额
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
耗损
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
商品来源
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
备注
<
/div
>
<
/a
>
<
/li
>
</script>
<!-- 表格行 -->
<script
type=
"text/html"
id=
"tableBody"
>
<
div
class
=
"
diy
"
style
=
"
width: 13%
"
>
{{
productName
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 13%
"
>
{{
productModel
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
{{
unitName
}}
<
/div
>
<
div
class
=
"
diy procedureBox
"
style
=
"
width: 15%
"
id
=
"
procedureBox{{productId}}
"
title
=
"
{{#each procedureMationList}}{{number}}、{{procedureName}} {{/each}}
"
>
{{
#
each
procedureMationList
}}
<
span
class
=
"
layui-badge layui-bg-gray
"
>
{{
number
}}
<
/span>{{procedureName}}
,
{{
/
each
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
{{
needNum
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
{{
unitPrice
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%; min-height: 30px;
"
id
=
"
allPrice{{productId}}
"
><
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
{{
wastagePrice
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%; overflow: visible !important;
"
>
{{
typeName
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
{{
remark
}}
<
/div
>
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/jquery-min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/erpBom/
'
}).
use
(
'
erpBomDetail
'
);
</script>
</body>
</html>
\ No newline at end of file
erp-produce/src/main/resources/template/tpl/erpBom/erpBomEdit.html
已删除
100644 → 0
浏览文件 @
1414c495
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/css/tree-table.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css"
rel=
"stylesheet"
/>
<style
type=
"text/css"
>
.remove
{
position
:
absolute
;
left
:
3px
;
margin-top
:
10px
!important
;
}
.layui-badge
{
line-height
:
15px
!important
;
}
.curSelectedNode
{
background-color
:
#e6e6e6
!important
;
}
.procedureBox
{
word-break
:
keep-all
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.procedureSel
{
float
:
left
;
height
:
20px
;
width
:
20px
;
margin-top
:
5px
;
cursor
:
pointer
;
}
</style>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
</form>
</div>
<script
type=
"text/html"
id=
"mainHtml"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
父件资料
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
BOM方案名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
bomTitle
"
name
=
"
bomTitle
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择BOM方案名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
value
=
"
{{title}}
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
该名称在系统中唯一
。
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
商品名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
productName
"
name
=
"
productName
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择商品
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
value
=
"
{{productName}}
"
/>
<
i
class
=
"
fa fa-plus-circle input-icon
"
id
=
"
productNameSel
"
><
/i
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
商品型号
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
productModel
"
name
=
"
productModel
"
placeholder
=
"
请选择商品
"
class
=
"
layui-input
"
value
=
"
{{productModel}}
"
readonly
=
"
readonly
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
计量单位
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
select
id
=
"
unitList
"
name
=
"
unitList
"
lay
-
filter
=
"
unitList
"
>
{{
#
each
unitList
}}
<
option
value
=
"
{{id}}
"
>
{{
name
}}
<
/option
>
{{
/
each
}}
<
/select
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
备注说明
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
textarea
id
=
"
remark
"
name
=
"
remark
"
placeholder
=
"
请输入备注说明
"
maxlength
=
"
200
"
class
=
"
layui-textarea
"
style
=
"
height: 100px;
"
>
{{
remark
}}
<
/textarea
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
子件清单
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
列表项
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
div
class
=
"
winui-toolbar
"
>
<
div
class
=
"
winui-tool
"
style
=
"
text-align: left;
"
>
<
button
id
=
"
addRow
"
class
=
"
winui-toolbtn
"
type
=
"
button
"
><
i
class
=
"
fa fa-plus
"
aria
-
hidden
=
"
true
"
><
/i>选择子件</
button
>
<
/div
>
<
/div
>
<
ul
id
=
"
treeDemo
"
class
=
"
ztree fsTree
"
><
/ul
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formEditBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
{{
/
bean
}}
</script>
<!-- 表格标题 -->
<script
type=
"text/html"
id=
"tableHeader"
>
<
li
class
=
"
head
"
>
<
a
>
<
div
class
=
"
diy
"
style
=
"
width: 20%
"
>
商品名称
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 13%
"
>
商品型号
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
计量单位
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
工序
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
数量
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
单价
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
金额
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
耗损
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
商品来源
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
备注
<
/div
>
<
/a
>
<
/li
>
</script>
<!-- 表格行 -->
<script
type=
"text/html"
id=
"tableBody"
>
<
div
class
=
"
diy
"
style
=
"
width: 13%
"
>
{{
productModel
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
{{
unitName
}}
<
/div
>
<
div
class
=
"
diy procedureBox
"
style
=
"
width: 15%
"
id
=
"
procedureBox{{productId}}
"
title
=
"
{{#each procedureMationList}}{{number}}、{{procedureName}} {{/each}}
"
>
<
img
class
=
"
procedureSel
"
id
=
"
procedureSel{{productId}}
"
src
=
"
../../assets/images/forum-menu.png
"
/>
{{
#
each
procedureMationList
}}
<
span
class
=
"
layui-badge layui-bg-gray
"
>
{{
number
}}
<
/span>{{procedureName}}
,
{{
/
each
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
<
input
type
=
"
text
"
id
=
"
needNum{{productId}}
"
name
=
"
needNum{{productId}}
"
win
-
verify
=
"
required|number
"
placeholder
=
"
请输入数量
"
class
=
"
layui-input diy-input needNum
"
value
=
"
{{needNum}}
"
/>
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
{{
unitPrice
}}
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%; min-height: 30px;
"
id
=
"
allPrice{{productId}}
"
><
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%
"
>
<
input
type
=
"
text
"
id
=
"
wastage{{productId}}
"
name
=
"
wastage{{productId}}
"
win
-
verify
=
"
required|money
"
placeholder
=
"
请输入耗损
"
class
=
"
layui-input diy-input
"
value
=
"
{{wastagePrice}}
"
/>
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 6%; overflow: visible !important;
"
>
<
select
lay
-
filter
=
"
typeId
"
lay
-
search
=
""
id
=
"
type{{productId}}
"
disabled
>
<
option
value
=
"
1
"
>
自产
<
/option
>
<
option
value
=
"
2
"
>
外购
<
/option
>
<
/select
>
<
/div
>
<
div
class
=
"
diy
"
style
=
"
width: 15%
"
>
<
input
type
=
"
text
"
id
=
"
remark{{productId}}
"
name
=
"
remark{{productId}}
"
placeholder
=
"
请输入备注
"
class
=
"
layui-input diy-input
"
maxlength
=
"
200
"
value
=
"
{{remark}}
"
/>
<
/div
>
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/jquery-min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/erpBom/
'
}).
use
(
'
erpBomEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
erp-produce/src/main/resources/template/tpl/erpBom/erpBomList.html
已删除
100644 → 0
浏览文件 @
1414c495
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"1590074984041"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
auth
(
'
1590226498225
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1590223736115
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
</script>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/erpBom/
'
}).
use
(
'
erpBomList
'
);
</script>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录