Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
392ac223
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看板
提交
392ac223
编写于
9月 14, 2022
作者:
W
weizhiqiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ERP产品选择列表整改
上级
e1cd343d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
95 deletion
+21
-95
erp/src/main/resources/template/js/material/materialChoose.js
...src/main/resources/template/js/material/materialChoose.js
+12
-17
erp/src/main/resources/template/js/material/materialChooseToProduce.js
...resources/template/js/material/materialChooseToProduce.js
+6
-15
erp/src/main/resources/template/tpl/material/materialChoose.html
.../main/resources/template/tpl/material/materialChoose.html
+2
-33
erp/src/main/resources/template/tpl/material/materialChooseToProduce.html
...ources/template/tpl/material/materialChooseToProduce.html
+1
-30
未找到文件。
erp/src/main/resources/template/js/material/materialChoose.js
浏览文件 @
392ac223
...
...
@@ -121,7 +121,7 @@ layui.config({
{
field
:
'
typeName
'
,
title
:
'
商品来源
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
}
]],
done
:
function
(
res
,
curr
,
count
)
{
done
:
function
(
json
,
curr
,
count
)
{
matchingLanguage
();
if
(
checkType
==
'
1
'
){
$
(
'
#messageTable
'
).
next
().
find
(
'
.layui-table-body
'
).
find
(
"
table
"
).
find
(
"
tbody
"
).
children
(
"
tr
"
).
on
(
'
dblclick
'
,
function
(){
...
...
@@ -129,7 +129,7 @@ layui.config({
dubClick
.
find
(
"
input[type='radio']
"
).
prop
(
"
checked
"
,
true
);
form
.
render
();
var
chooseIndex
=
JSON
.
stringify
(
dubClick
.
data
(
'
index
'
));
var
obj
=
res
.
rows
[
chooseIndex
];
var
obj
=
json
.
rows
[
chooseIndex
];
parent
.
erpOrderUtil
.
chooseProductMation
=
obj
;
parent
.
refreshCode
=
'
0
'
;
...
...
@@ -148,6 +148,11 @@ layui.config({
fieldName
:
'
productId
'
});
}
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入商品名称,型号
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -162,7 +167,7 @@ layui.config({
form
.
render
();
}
//详情
//
详情
function
details
(
data
)
{
rowId
=
data
.
productId
;
_openNewWindows
({
...
...
@@ -174,7 +179,7 @@ layui.config({
}});
}
//保存按钮-多选才有
//
保存按钮-多选才有
$
(
"
body
"
).
on
(
"
click
"
,
"
#saveCheckBox
"
,
function
()
{
var
selectedData
=
tableCheckBoxUtil
.
getValue
({
gridId
:
'
messageTable
'
...
...
@@ -185,13 +190,8 @@ layui.config({
parent
.
refreshCode
=
'
0
'
;
}});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#formSearch
"
,
function
()
{
refreshTable
();
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
...
...
@@ -204,12 +204,7 @@ layui.config({
}
function
getTableParams
()
{
return
{
materialName
:
$
(
"
#materialName
"
).
val
(),
model
:
$
(
"
#model
"
).
val
(),
categoryId
:
categoryId
,
typeNum
:
$
(
"
#typeNum
"
).
val
()
};
return
$
.
extend
(
true
,
{
categoryId
:
categoryId
},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
materialChoose
'
,
{});
...
...
erp/src/main/resources/template/js/material/materialChooseToProduce.js
浏览文件 @
392ac223
...
...
@@ -117,11 +117,15 @@ layui.config({
]],
done
:
function
(
res
,
curr
,
count
){
matchingLanguage
();
//设置选中
//
设置选中
tableCheckBoxUtil
.
checkedDefault
({
gridId
:
'
messageTable
'
,
fieldName
:
'
productId
'
});
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入商品名称,型号
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -269,14 +273,6 @@ layui.config({
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
refreshTable
();
}
return
false
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
...
...
@@ -290,12 +286,7 @@ layui.config({
}
function
getTableParams
()
{
return
{
materialName
:
$
(
"
#materialName
"
).
val
(),
model
:
$
(
"
#model
"
).
val
(),
categoryId
:
categoryId
,
typeNum
:
$
(
"
#typeNum
"
).
val
()
};
return
$
.
extend
(
true
,
{
categoryId
:
categoryId
},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
materialChooseToProduce
'
,
{});
...
...
erp/src/main/resources/template/tpl/material/materialChoose.html
浏览文件 @
392ac223
...
...
@@ -9,41 +9,10 @@
<link
href=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.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=
"materialName"
name=
"materialName"
placeholder=
"请输入商品名称"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
型号
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"model"
name=
"model"
placeholder=
"请输入产品型号"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
商品来源
</label>
<div
class=
"layui-input-inline"
>
<select
lay-filter=
"typeNum"
lay-search=
""
id=
"typeNum"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
自产
</option>
<option
value=
"2"
>
外购
</option>
</select>
</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"
type=
"button"
id=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</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
class=
"layui-btn layui-btn-sm layui-btn-normal"
type=
"button"
id=
"saveCheckBox"
style=
"float: right; display: none;"
>
<i
class=
"fa fa-save"
aria-hidden=
"true"
style=
"margin-right: 5px"
></i>
保存
</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>
<button
class=
"layui-btn layui-btn-sm layui-btn-normal search-table-btn-right"
type=
"button"
id=
"saveCheckBox"
style=
"display: none;"
><i
class=
"fa fa-save"
aria-hidden=
"true"
></i>
保存
</button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
...
...
erp/src/main/resources/template/tpl/material/materialChooseToProduce.html
浏览文件 @
392ac223
...
...
@@ -24,38 +24,9 @@
<body>
<div
id=
"step"
></div>
<div
id=
"firstTab"
>
<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=
"materialName"
name=
"materialName"
placeholder=
"请输入商品名称"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
型号
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"model"
name=
"model"
placeholder=
"请输入产品型号"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
商品来源
</label>
<div
class=
"layui-input-inline"
>
<select
lay-filter=
"typeNum"
lay-search=
""
id=
"typeNum"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
自产
</option>
<option
value=
"2"
>
外购
</option>
</select>
</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-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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录