Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
4c1715fe
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1433
Star
162
Fork
130
代码
文件
提交
分支
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看板
提交
4c1715fe
编写于
9月 22, 2022
作者:
W
weizhiqiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
生产模块-填写物料单时选择加工单,加工单列表整改,待验证
上级
d6114868
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
88 addition
and
126 deletion
+88
-126
erp-produce/src/main/resources/template/js/erpMachin/erpMachinStateIsPassNoComplateChoose.js
...late/js/erpMachin/erpMachinStateIsPassNoComplateChoose.js
+86
-104
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinStateIsPassNoComplateChoose.html
...e/tpl/erpMachin/erpMachinStateIsPassNoComplateChoose.html
+2
-22
未找到文件。
erp-produce/src/main/resources/template/js/erpMachin/erpMachinStateIsPassNoComplateChoose.js
浏览文件 @
4c1715fe
...
...
@@ -12,93 +12,90 @@ layui.config({
form
=
layui
.
form
,
table
=
layui
.
table
;
//设置提示信息
var
s
=
'
加工单选择规则:1.单选,双击指定行数据即可选中;2.已审批通过的未完成的加工单。如没有查到要选择的单据,请检查单据信息是否满足当前规则。
'
;
$
(
"
#showInfo
"
).
html
(
s
);
initTable
();
function
initTable
(){
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
erpmachin010
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
false
,
cols
:
[[
{
type
:
'
radio
'
,
rowspan
:
'
2
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
rowspan
:
'
2
'
,
type
:
'
numbers
'
},
{
field
:
'
orderNum
'
,
rowspan
:
'
2
'
,
title
:
'
单据编号
'
,
align
:
'
center
'
,
width
:
180
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
orderNum
+
'
</a>
'
;
}},
{
field
:
'
productionNumber
'
,
rowspan
:
'
2
'
,
title
:
'
生产计划单
'
,
align
:
'
center
'
,
width
:
200
},
{
colspan
:
'
3
'
,
title
:
'
加工成品信息
'
,
align
:
'
center
'
},
{
field
:
'
state
'
,
rowspan
:
'
2
'
,
title
:
'
状态
'
,
align
:
'
left
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
'
1
'
){
return
"
<span class='state-down'>未审核</span>
"
;
}
else
if
(
d
.
state
==
'
2
'
){
return
"
<span class='state-up'>审核中</span>
"
;
}
else
if
(
d
.
state
==
'
3
'
){
return
"
<span class='state-new'>审核通过</span>
"
;
}
else
if
(
d
.
state
==
'
4
'
){
return
"
<span class='state-down'>拒绝通过</span>
"
;
}
else
if
(
d
.
state
==
'
5
'
){
return
"
<span class='state-new'>已完成</span>
"
;
}
else
{
return
"
参数错误
"
;
}
}},
{
colspan
:
'
3
'
,
title
:
'
加工信息
'
,
align
:
'
center
'
},
{
field
:
'
createName
'
,
rowspan
:
'
2
'
,
title
:
'
录入人
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
createTime
'
,
rowspan
:
'
2
'
,
title
:
'
录入日期
'
,
align
:
'
center
'
,
width
:
150
}
],[
{
field
:
'
materialName
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
unitName
'
,
title
:
'
规格
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
needNum
'
,
title
:
'
加工数量
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
departmentName
'
,
title
:
'
部门
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
startTime
'
,
title
:
'
开始时间
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
endTime
'
,
title
:
'
结束时间
'
,
align
:
'
center
'
,
width
:
150
}
]],
done
:
function
(
res
,
curr
,
count
){
matchingLanguage
();
$
(
'
#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
"
);
dubClick
.
find
(
"
input[type='radio']
"
).
prop
(
"
checked
"
,
true
);
form
.
render
();
var
chooseIndex
=
JSON
.
stringify
(
dubClick
.
data
(
'
index
'
));
var
obj
=
res
.
rows
[
chooseIndex
];
//根据加工单id获取该单据下的所有单据中商品以及剩余领料数量
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpmachin011
"
,
params
:
{
rowId
:
obj
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
obj
.
norms
=
[].
concat
(
json
.
rows
);
parent
.
machinMation
=
obj
;
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
erpmachin010
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
type
:
'
radio
'
,
rowspan
:
'
2
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
rowspan
:
'
2
'
,
type
:
'
numbers
'
},
{
field
:
'
orderNum
'
,
rowspan
:
'
2
'
,
title
:
'
单据编号
'
,
align
:
'
center
'
,
width
:
180
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
orderNum
+
'
</a>
'
;
}},
{
field
:
'
productionNumber
'
,
rowspan
:
'
2
'
,
title
:
'
生产计划单
'
,
align
:
'
center
'
,
width
:
200
},
{
colspan
:
'
3
'
,
title
:
'
加工成品信息
'
,
align
:
'
center
'
},
{
field
:
'
state
'
,
rowspan
:
'
2
'
,
title
:
'
状态
'
,
align
:
'
left
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
'
1
'
){
return
"
<span class='state-down'>未审核</span>
"
;
}
else
if
(
d
.
state
==
'
2
'
){
return
"
<span class='state-up'>审核中</span>
"
;
}
else
if
(
d
.
state
==
'
3
'
){
return
"
<span class='state-new'>审核通过</span>
"
;
}
else
if
(
d
.
state
==
'
4
'
){
return
"
<span class='state-down'>拒绝通过</span>
"
;
}
else
if
(
d
.
state
==
'
5
'
){
return
"
<span class='state-new'>已完成</span>
"
;
}
else
{
return
"
参数错误
"
;
}
}},
{
colspan
:
'
3
'
,
title
:
'
加工信息
'
,
align
:
'
center
'
},
{
field
:
'
createName
'
,
rowspan
:
'
2
'
,
title
:
'
录入人
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
createTime
'
,
rowspan
:
'
2
'
,
title
:
'
录入日期
'
,
align
:
'
center
'
,
width
:
150
}
],[
{
field
:
'
materialName
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
unitName
'
,
title
:
'
规格
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
needNum
'
,
title
:
'
加工数量
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
departmentName
'
,
title
:
'
部门
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
startTime
'
,
title
:
'
开始时间
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
endTime
'
,
title
:
'
结束时间
'
,
align
:
'
center
'
,
width
:
150
}
]],
done
:
function
(
json
,
curr
,
count
){
matchingLanguage
();
$
(
'
#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
"
);
dubClick
.
find
(
"
input[type='radio']
"
).
prop
(
"
checked
"
,
true
);
form
.
render
();
var
chooseIndex
=
JSON
.
stringify
(
dubClick
.
data
(
'
index
'
));
var
obj
=
json
.
rows
[
chooseIndex
];
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
"
);
click
.
find
(
"
input[type='radio']
"
).
prop
(
"
checked
"
,
true
);
form
.
render
();
})
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
details
'
)
{
//详情
details
(
data
);
}
});
form
.
render
();
}
//详情
//根据加工单id获取该单据下的所有单据中商品以及剩余领料数量
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpmachin011
"
,
params
:
{
rowId
:
obj
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
obj
.
norms
=
[].
concat
(
json
.
rows
);
parent
.
machinMation
=
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
"
);
click
.
find
(
"
input[type='radio']
"
).
prop
(
"
checked
"
,
true
);
form
.
render
();
})
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
===
'
details
'
)
{
// 详情
details
(
data
);
}
});
// 详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
...
...
@@ -109,16 +106,8 @@ layui.config({
callBack
:
function
(
refreshCode
)
{
}});
}
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
refreshTable
();
}
return
false
;
});
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
...
...
@@ -127,15 +116,8 @@ layui.config({
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
refreshTable
(){
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
{
defaultNumber
:
$
(
"
#defaultNumber
"
).
val
(),
materialName
:
$
(
"
#materialName
"
).
val
()
};
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
erpMachinStateIsPassNoComplateChoose
'
,
{});
...
...
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinStateIsPassNoComplateChoose.html
浏览文件 @
4c1715fe
...
...
@@ -7,30 +7,10 @@
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding-top:10px;"
>
<div
class=
"winui-tip alert-info"
id=
"showInfo"
>
</div>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
单据编号
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"defaultNumber"
name=
"defaultNumber"
placeholder=
"请输入单据编号"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
商品名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"materialName"
name=
"materialName"
placeholder=
"请输入名称"
class=
"layui-input"
/>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
lay-submit
lay-filter=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
class=
"winui-tip alert-info"
id=
"showInfo"
>
加工单选择规则:1.单选,双击指定行数据即可选中;2.已审批通过的未完成的加工单。如没有查到要选择的单据,请检查单据信息是否满足当前规则。
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<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>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录