Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
7e67b74c
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1195
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看板
提交
7e67b74c
编写于
6月 16, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 新增客户/供应商产品明细查看
上级
ea8e2b02
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
123 addition
and
3 deletion
+123
-3
erp/src/main/resources/template/js/holder/holderNormsChildList.js
...main/resources/template/js/holder/holderNormsChildList.js
+71
-0
erp/src/main/resources/template/js/holder/holderNormsList.js
erp/src/main/resources/template/js/holder/holderNormsList.js
+26
-3
erp/src/main/resources/template/tpl/holder/holderNormsChildList.html
...n/resources/template/tpl/holder/holderNormsChildList.html
+25
-0
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+1
-0
未找到文件。
erp/src/main/resources/template/js/holder/holderNormsChildList.js
0 → 100644
浏览文件 @
7e67b74c
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
;
// 关联的客户/供应商/会员购买或者出售的商品link的id
var
id
=
getNotUndefinedVal
(
GetUrlParam
(
"
id
"
));
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
erpBasePath
+
'
queryHolderNormsChildList
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
normsCodeNum
'
,
title
:
'
编码
'
,
align
:
'
left
'
,
width
:
180
,
templet
:
function
(
d
)
{
return
d
.
normsCodeNum
;
}},
{
field
:
'
barCodeMation
'
,
title
:
'
条形码
'
,
align
:
'
center
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
'
<img src="
'
+
systemCommonUtil
.
getFilePath
(
d
.
normsCodeMation
?.
barCodeMation
?.
imagePath
)
+
'
" class="photo-img" lay-event="barCode" style="width: 100px">
'
;
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
align
:
'
center
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
holderNormsChildState
"
,
'
id
'
,
d
.
state
,
'
name
'
);
}},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
120
,
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
===
'
barCode
'
)
{
// 条形码预览
systemCommonUtil
.
showPicImg
(
systemCommonUtil
.
getFilePath
(
data
.
normsCodeMation
?.
barCodeMation
?.
imagePath
));
}
});
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
let
params
=
{
holderId
:
id
}
return
$
.
extend
(
true
,
params
,
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
holderNormsChildList
'
,
{});
});
erp/src/main/resources/template/js/holder/holderNormsList.js
浏览文件 @
7e67b74c
...
...
@@ -31,12 +31,21 @@ layui.config({
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
materialId
'
,
title
:
'
产品名称
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
{
field
:
'
materialId
'
,
title
:
'
产品名称
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
materialMation
?.
name
);
}},
{
field
:
'
normsId
'
,
title
:
'
产品规格
'
,
align
:
'
left
'
,
width
:
40
0
,
templet
:
function
(
d
)
{
{
field
:
'
normsId
'
,
title
:
'
产品规格
'
,
align
:
'
left
'
,
width
:
15
0
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
normsMation
?.
name
);
}}
}},
{
field
:
'
operNumber
'
,
title
:
'
交易数量
'
,
align
:
'
center
'
,
width
:
90
,
templet
:
function
(
d
)
{
let
itemCode
=
d
.
materialMation
?.
itemCode
;
if
(
itemCode
==
1
)
{
// 一物一码
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
operNumber
+
'
</a>
'
;
}
return
getNotUndefinedVal
(
d
.
operNumber
);
}},
{
field
:
'
createTime
'
,
title
:
'
交易时间
'
,
align
:
'
center
'
,
width
:
150
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
...
...
@@ -49,8 +58,22 @@ layui.config({
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
details
'
)
{
// 详情
details
(
data
);
}
});
// 详情
function
details
(
data
)
{
_openNewWindows
({
url
:
'
../../tpl/holder/holderNormsChildList.html?id=
'
+
data
.
id
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
holderNormsChildList
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
...
...
erp/src/main/resources/template/tpl/holder/holderNormsChildList.html
0 → 100644
浏览文件 @
7e67b74c
<!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>
</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/holder/
'
}).
use
(
'
holderNormsChildList
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
7e67b74c
...
...
@@ -56,6 +56,7 @@
"orderItemQualityInspectionType"
:
{
"name"
:
"ERP采购子单据质检类型"
,
"className"
:
"skyeye-erp#com.skyeye.business.classenum.OrderItemQualityInspectionType"
},
"orderArrivalState"
:
{
"name"
:
"采购订单到货状态"
,
"className"
:
"skyeye-erp#com.skyeye.purchase.classenum.OrderArrivalState"
},
"holderNormsChildState"
:
{
"name"
:
"关联的客户/供应商/会员购买或者出售的商品子信息状态"
,
"className"
:
"skyeye-erp#com.skyeye.holder.classenum.HolderNormsChildState"
},
"purchaseOrderFromType"
:
{
"name"
:
"采购订单来源单据类型"
,
"className"
:
"skyeye-erp#com.skyeye.purchase.classenum.PurchaseOrderFromType"
},
"purchaseDeliveryFromType"
:
{
"name"
:
"到货单来源单据类型"
,
"className"
:
"skyeye-erp#com.skyeye.purchase.classenum.PurchaseDeliveryFromType"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录