Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
04ed9e60
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
Star
154
Fork
127
代码
文件
提交
分支
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看板
提交
04ed9e60
编写于
7月 07, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 工艺路线管理修改
上级
aeeb3cf5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
191 deletion
+0
-191
erp-produce/src/main/resources/template/js/erpFarm/erpFarmChoose.js
...e/src/main/resources/template/js/erpFarm/erpFarmChoose.js
+0
-159
erp-produce/src/main/resources/template/js/erpWorkProcedure/erpWorkProcedureChoose.js
...es/template/js/erpWorkProcedure/erpWorkProcedureChoose.js
+0
-4
erp-produce/src/main/resources/template/tpl/erpFarm/erpFarmChoose.html
...rc/main/resources/template/tpl/erpFarm/erpFarmChoose.html
+0
-28
未找到文件。
erp-produce/src/main/resources/template/js/erpFarm/erpFarmChoose.js
已删除
100644 → 0
浏览文件 @
aeeb3cf5
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
tableCheckBoxUtil
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
,
tableCheckBoxUtil
=
layui
.
tableCheckBoxUtil
;
var
checkType
=
'
1
'
;
// 车间选择类型:1.单选;2.多选
if
(
!
isNull
(
parent
.
farmCheckType
)){
checkType
=
parent
.
farmCheckType
;
}
else
{
checkType
=
GetUrlParam
(
"
checkType
"
);
}
var
procedureId
=
GetUrlParam
(
"
procedureId
"
);
//设置提示信息
var
s
=
"
车间选择规则:
"
;
if
(
checkType
==
"
1
"
){
s
+=
'
1.单选,双击指定行数据即可选中;
'
;
}
else
{
s
+=
'
1.多选;
'
;
//显示保存按钮
$
(
"
#saveCheckBox
"
).
show
();
}
if
(
!
isNull
(
procedureId
))
{
s
+=
'
2.包含指定工序的车间可以选择;
'
;
}
s
+=
'
如没有查到要选择的车间,请检查车间信息是否满足当前规则。
'
;
$
(
"
#showInfo
"
).
html
(
s
);
initTable
();
function
initTable
(){
if
(
checkType
==
'
2
'
)
{
var
ids
=
[];
$
.
each
(
parent
.
farmMationList
,
function
(
i
,
item
)
{
ids
.
push
(
item
.
id
);
});
tableCheckBoxUtil
.
init
({
gridId
:
'
messageTable
'
,
filterId
:
'
messageTable
'
,
fieldName
:
'
id
'
,
ids
:
ids
});
}
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
erpBasePath
+
'
erpfarm001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
type
:
checkType
==
'
1
'
?
'
radio
'
:
'
checkbox
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
number
'
,
title
:
'
车间编号
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
250
},
{
field
:
'
enabled
'
,
title
:
'
状态
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
commonEnable
"
,
'
id
'
,
d
.
enabled
,
'
name
'
);
}}
]],
done
:
function
(
res
,
curr
,
count
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
res
.
searchFilter
,
form
,
"
请输入名称、车间编号
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
if
(
checkType
==
'
1
'
)
{
for
(
var
i
=
0
;
i
<
res
.
rows
.
length
;
i
++
)
{
// 未启用/指定工序该车间没有的设置为不可选中
if
(
res
.
rows
[
i
].
enabled
!=
1
)
{
systemCommonUtil
.
disabledRow
(
res
.
rows
[
i
].
LAY_TABLE_INDEX
,
'
radio
'
);
}
if
(
!
isNull
(
procedureId
)
&&
getInPoingArr
(
res
.
rows
[
i
].
workProcedureList
,
"
procedureId
"
,
procedureId
)
==
null
)
{
systemCommonUtil
.
disabledRow
(
res
.
rows
[
i
].
LAY_TABLE_INDEX
,
'
radio
'
);
}
}
$
(
'
#messageTable
'
).
next
().
find
(
'
.layui-table-body
'
).
find
(
"
table
"
).
find
(
"
tbody
"
).
children
(
"
tr
"
).
on
(
'
dblclick
'
,
function
(){
var
dubClick
=
$
(
'
#messageTable
'
).
next
().
find
(
'
.layui-table-body
'
).
find
(
"
table
"
).
find
(
"
tbody
"
).
find
(
"
.layui-table-hover
"
);
if
(
!
dubClick
.
find
(
"
input[type='radio']
"
).
prop
(
"
disabled
"
))
{
dubClick
.
find
(
"
input[type='radio']
"
).
prop
(
"
checked
"
,
true
);
form
.
render
();
var
chooseIndex
=
JSON
.
stringify
(
dubClick
.
data
(
'
index
'
));
var
obj
=
res
.
rows
[
chooseIndex
];
parent
.
farmMation
=
obj
;
parent
.
refreshCode
=
'
0
'
;
parent
.
layer
.
close
(
index
);
}
});
$
(
'
#messageTable
'
).
next
().
find
(
'
.layui-table-body
'
).
find
(
"
table
"
).
find
(
"
tbody
"
).
children
(
"
tr
"
).
on
(
'
click
'
,
function
(){
var
click
=
$
(
'
#messageTable
'
).
next
().
find
(
'
.layui-table-body
'
).
find
(
"
table
"
).
find
(
"
tbody
"
).
find
(
"
.layui-table-hover
"
);
if
(
!
click
.
find
(
"
input[type='radio']
"
).
prop
(
"
disabled
"
))
{
click
.
find
(
"
input[type='radio']
"
).
prop
(
"
checked
"
,
true
);
form
.
render
();
}
})
}
else
{
for
(
var
i
=
0
;
i
<
res
.
rows
.
length
;
i
++
)
{
// 未启用/指定工序该车间没有的设置为不可选中
if
(
res
.
rows
[
i
].
enabled
!=
1
)
{
systemCommonUtil
.
disabledRow
(
res
.
rows
[
i
].
LAY_TABLE_INDEX
,
'
checkbox
'
);
}
if
(
!
isNull
(
procedureId
)
&&
getInPoingArr
(
res
.
rows
[
i
].
workProcedureList
,
"
procedureId
"
,
procedureId
)
==
null
)
{
systemCommonUtil
.
disabledRow
(
res
.
rows
[
i
].
LAY_TABLE_INDEX
,
'
checkbox
'
);
}
}
// 多选
tableCheckBoxUtil
.
checkedDefault
({
gridId
:
'
messageTable
'
,
fieldName
:
'
id
'
});
}
}
});
form
.
render
();
}
// 保存按钮-多选才有
$
(
"
body
"
).
on
(
"
click
"
,
"
#saveCheckBox
"
,
function
()
{
var
selectedData
=
tableCheckBoxUtil
.
getValue
({
gridId
:
'
messageTable
'
});
if
(
selectedData
.
length
==
0
)
{
winui
.
window
.
msg
(
"
请选择车间
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
parent
.
farmMationList
=
[].
concat
(
selectedData
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
});
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
erpFarmChoose
'
,
{});
});
\ No newline at end of file
erp-produce/src/main/resources/template/js/erpWorkProcedure/erpWorkProcedureChoose.js
浏览文件 @
04ed9e60
...
...
@@ -61,10 +61,6 @@ layui.config({
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
name
'
,
title
:
'
工序名称
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
number
'
,
title
:
'
工序编号
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
unitPrice
'
,
title
:
'
参考单价
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
departmentMation
'
,
title
:
'
执行部门
'
,
align
:
'
left
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
departmentMation
?.
name
);
}},
{
field
:
'
content
'
,
title
:
'
工序内容
'
,
align
:
'
left
'
,
width
:
200
}
]],
done
:
function
(
res
,
curr
,
count
){
...
...
erp-produce/src/main/resources/template/tpl/erpFarm/erpFarmChoose.html
已删除
100644 → 0
浏览文件 @
aeeb3cf5
<!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-tip alert-info"
id=
"showInfo"
>
</div>
<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=
"saveCheckBox"
class=
"winui-toolbtn search-table-btn-right"
type=
"button"
style=
"display: none;"
><i
class=
"fa fa-save"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
</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/erpFarm/
'
}).
use
(
'
erpFarmChoose
'
);
</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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录