Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
a9a12697
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1430
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看板
提交
a9a12697
编写于
6月 08, 2024
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 表单布局修改
上级
bfd5b92c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
20 deletion
+31
-20
common/src/main/resources/template/js/dsFormPage/pageShow.js
common/src/main/resources/template/js/dsFormPage/pageShow.js
+2
-2
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderList.js
.../resources/template/js/purchaseOrder/purchaseOrderList.js
+20
-12
web/src/main/resources/template/assets/lib/layui/customer/activitiUtil.js
...ources/template/assets/lib/layui/customer/activitiUtil.js
+2
-2
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
...s/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+7
-4
未找到文件。
common/src/main/resources/template/js/dsFormPage/pageShow.js
浏览文件 @
a9a12697
...
...
@@ -98,12 +98,12 @@ layui.config({
dsFormUtil
.
initCreatePage
(
'
content
'
,
pageMation
);
}
else
if
(
pageMation
.
type
==
'
edit
'
)
{
// 编辑布局
dsFormUtil
.
getBusinessData
(
businessId
,
serviceClassName
,
function
(
data
)
{
dsFormUtil
.
getBusinessData
(
businessId
,
serviceClassName
,
pageMation
,
function
(
data
)
{
dsFormUtil
.
initEditPage
(
'
content
'
,
pageMation
,
data
);
});
}
else
if
(
pageMation
.
type
==
'
details
'
)
{
// 详情布局
dsFormUtil
.
getBusinessData
(
businessId
,
serviceClassName
,
function
(
data
)
{
dsFormUtil
.
getBusinessData
(
businessId
,
serviceClassName
,
pageMation
,
function
(
data
)
{
dsFormUtil
.
initDetailsPage
(
'
content
'
,
pageMation
,
data
);
});
}
else
if
(
pageMation
.
type
==
'
simpleTable
'
)
{
...
...
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderList.js
浏览文件 @
a9a12697
...
...
@@ -23,26 +23,34 @@ layui.config({
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
oddNumber
'
,
title
:
'
单号
'
,
width
:
200
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
,
rowspan
:
'
2
'
},
{
field
:
'
oddNumber
'
,
title
:
'
单号
'
,
rowspan
:
'
2
'
,
width
:
200
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
oddNumber
+
'
</a>
'
;
}},
{
field
:
'
holderMation
'
,
title
:
'
供应商
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
{
field
:
'
holderMation
'
,
title
:
'
供应商
'
,
rowspan
:
'
2
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
holderMation
?.
name
);
}},
{
field
:
'
totalPrice
'
,
title
:
'
合计金额
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
operTime
'
,
title
:
'
单据日期
'
,
align
:
'
center
'
,
width
:
140
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
100
,
templet
:
function
(
d
)
{
{
field
:
'
totalPrice
'
,
title
:
'
合计金额
'
,
rowspan
:
'
2
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
operTime
'
,
title
:
'
单据日期
'
,
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
140
},
{
colspan
:
'
2
'
,
title
:
'
来源单据信息
'
,
align
:
'
center
'
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
rowspan
:
'
2
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
getNotUndefinedVal
(
d
.
processInstanceId
)
+
'
</a>
'
;
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
90
,
templet
:
function
(
d
)
{
{
field
:
'
state
'
,
title
:
'
状态
'
,
rowspan
:
'
2
'
,
width
:
90
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
erpOrderStateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
}},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
rowspan
:
'
2
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
rowspan
:
'
2
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
rowspan
:
'
2
'
,
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
],
[
{
field
:
'
fromTypeId
'
,
title
:
'
来源类型
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
purchaseOrderFromType
"
,
'
id
'
,
d
.
fromTypeId
,
'
name
'
);
}},
{
field
:
'
fromId
'
,
title
:
'
单据编号
'
,
width
:
200
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
fromMation
?.
oddNumber
);
}}
]],
done
:
function
(
json
)
{
matchingLanguage
();
...
...
web/src/main/resources/template/assets/lib/layui/customer/activitiUtil.js
浏览文件 @
a9a12697
...
...
@@ -70,7 +70,7 @@ var activitiUtil = {
}
else
{
// 这里为什么要给objectId和objectKey赋值,因为表单组件中有用到该值
if
(
showType
==
'
details
'
)
{
dsFormUtil
.
getBusinessData
(
businessId
,
serviceClassName
,
function
(
data
)
{
dsFormUtil
.
getBusinessData
(
businessId
,
serviceClassName
,
pageMation
,
function
(
data
)
{
if
(
pageMation
.
serviceBeanCustom
.
serviceBean
.
teamAuth
)
{
objectId
=
data
.
objectId
;
objectKey
=
data
.
objectKey
;
...
...
@@ -78,7 +78,7 @@ var activitiUtil = {
dsFormUtil
.
initDetailsPage
(
'
showForm
'
,
pageMation
,
data
);
});
}
else
if
(
showType
==
'
edit
'
)
{
dsFormUtil
.
getBusinessData
(
businessId
,
serviceClassName
,
function
(
data
)
{
dsFormUtil
.
getBusinessData
(
businessId
,
serviceClassName
,
pageMation
,
function
(
data
)
{
if
(
pageMation
.
serviceBeanCustom
.
serviceBean
.
teamAuth
)
{
objectId
=
data
.
objectId
;
objectKey
=
data
.
objectKey
;
...
...
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
浏览文件 @
a9a12697
...
...
@@ -76,17 +76,20 @@ var dsFormUtil = {
pageMation
:
{},
getBusinessData
:
function
(
businessId
,
serviceClassName
,
callback
)
{
getBusinessData
:
function
(
businessId
,
serviceClassName
,
pageMation
,
callback
)
{
if
(
isNull
(
businessId
))
{
winui
.
window
.
msg
(
"
业务数据id为空
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
params
=
{
objectId
:
businessId
,
objectKey
:
serviceClassName
serviceClassName
:
serviceClassName
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
queryBusinessDataByObject
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
if
(
typeof
(
callback
)
==
"
function
"
)
{
const
businessApi
=
pageMation
.
businessApi
var
url
=
""
;
eval
(
'
url =
'
+
businessApi
.
serviceStr
);
AjaxPostUtil
.
request
({
url
:
url
+
"
getDataByObjectId
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
if
(
typeof
(
callback
)
==
"
function
"
)
{
callback
(
json
.
bean
);
}
}});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录