Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
fcaf1605
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看板
提交
fcaf1605
编写于
1月 10, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增财务单据类型选择功能
上级
b6daf5c7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
159 addition
and
1 deletion
+159
-1
dsform/src/main/resources/template/js/dsFormObjectRelation/dsFormObjectRelationChooseByFirstTypeCode.js
...jectRelation/dsFormObjectRelationChooseByFirstTypeCode.js
+63
-0
dsform/src/main/resources/template/tpl/dsFormObjectRelation/dsFormObjectRelationChooseByFirstTypeCode.html
...ctRelation/dsFormObjectRelationChooseByFirstTypeCode.html
+36
-0
ifs/src/main/resources/template/js/income/incomeAdd.js
ifs/src/main/resources/template/js/income/incomeAdd.js
+8
-0
ifs/src/main/resources/template/tpl/income/incomeAdd.html
ifs/src/main/resources/template/tpl/income/incomeAdd.html
+7
-0
web/src/main/resources/template/assets/lib/layui/customer/dsFormUtil.js
...esources/template/assets/lib/layui/customer/dsFormUtil.js
+25
-1
web/src/main/resources/template/assets/lib/layui/customer/voucher/voucherUtil.js
...template/assets/lib/layui/customer/voucher/voucherUtil.js
+20
-0
未找到文件。
dsform/src/main/resources/template/js/dsFormObjectRelation/dsFormObjectRelationChooseByFirstTypeCode.js
0 → 100644
浏览文件 @
fcaf1605
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
fsCommon
'
,
'
fsTree
'
],
function
(
exports
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
fsTree
=
layui
.
fsTree
,
fsCommon
=
layui
.
fsCommon
;
var
firstTypeCode
=
GetUrlParam
(
"
firstTypeCode
"
);
/********* tree 处理 start *************/
var
orderType
=
""
;
var
ztree
=
null
;
fsTree
.
render
({
id
:
"
treeDemo
"
,
url
:
"
dsFormObjectRelation007?userToken=
"
+
getCookie
(
'
userToken
'
)
+
"
&loginPCIp=
"
+
returnCitySN
[
"
cip
"
]
+
"
&firstTypeCode=
"
+
firstTypeCode
+
"
&language=
"
+
languageType
,
clickCallback
:
onClickTree
,
onDblClick
:
onClickTree
},
function
(
id
){
ztree
=
$
.
fn
.
zTree
.
getZTreeObj
(
id
);
});
var
chooseNode
=
null
;
// 异步加载的方法
function
onClickTree
(
event
,
treeId
,
treeNode
)
{
if
(
treeNode
==
undefined
)
{
orderType
=
""
;
}
else
{
if
(
treeNode
.
isParent
!=
0
){
return
;
}
chooseNode
=
treeNode
;
}
}
/********* tree 处理 end *************/
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formChooseBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
isNull
(
chooseNode
)){
winui
.
window
.
msg
(
"
请选择单据类型.
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
parent
.
dsFormUtil
.
dsFormObjectRelationChoose
=
chooseNode
;
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}
return
false
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
exports
(
'
dsFormObjectRelationChooseByFirstTypeCode
'
,
{});
});
dsform/src/main/resources/template/tpl/dsFormObjectRelation/dsFormObjectRelationChooseByFirstTypeCode.html
0 → 100644
浏览文件 @
fcaf1605
<!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"
/>
<link
href=
"../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin: 0 auto; padding: 20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
style=
"width: 100%; float: left;"
>
<ul
id=
"treeDemo"
class=
"ztree fsTree"
method=
"get"
isRoot=
"1"
treeIdKey=
"id"
inputs=
"parentId"
treePIdKey=
"pId"
clickCallbackInputs=
"parentId:$id"
treeName=
"name"
></ul>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formChooseBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/jquery-min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/dsFormObjectRelation/
'
}).
use
(
'
dsFormObjectRelationChooseByFirstTypeCode
'
);
</script>
</body>
</html>
\ No newline at end of file
ifs/src/main/resources/template/js/income/incomeAdd.js
浏览文件 @
fcaf1605
...
...
@@ -119,6 +119,14 @@ layui.config({
});
});
// 选择单据类型
$
(
"
body
"
).
on
(
"
click
"
,
"
#chooseOrderTypeBtn
"
,
function
(
e
){
var
_this
=
$
(
this
);
dsFormUtil
.
openDsFormObjectRelationChooseByFirstTypeCodeChoosePage
(
"
IFS
"
,
function
(
dsFormObjectRelationChoose
){
_this
.
parent
().
find
(
"
input
"
).
val
(
dsFormObjectRelationChoose
.
name
);
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
...
...
ifs/src/main/resources/template/tpl/income/incomeAdd.html
浏览文件 @
fcaf1605
...
...
@@ -30,6 +30,13 @@
<i
class=
"fa fa-plus-circle input-icon"
id=
"chooseSetOfBooksBtn"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
单据类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"orderType"
name=
"orderType"
win-verify=
"required"
placeholder=
"请选择单据类型"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"chooseOrderTypeBtn"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
列表项
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
...
...
web/src/main/resources/template/assets/lib/layui/customer/dsFormUtil.js
浏览文件 @
fcaf1605
...
...
@@ -350,6 +350,30 @@ var dsFormUtil = {
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
},
async
:
false
});
}
},
/**
* 业务逻辑与动态表单的关联关系类型,也可叫单据类型
*
* @param firstTypeCode 所属一级分类的code
* @param callback 回调函数
*/
dsFormObjectRelationChoose
:
{},
// 已经选择的单据类型
openDsFormObjectRelationChooseByFirstTypeCodeChoosePage
:
function
(
firstTypeCode
,
callback
){
_openNewWindows
({
url
:
"
../../tpl/dsFormObjectRelation/dsFormObjectRelationChooseByFirstTypeCode.html?firstTypeCode=
"
+
firstTypeCode
,
title
:
"
单据类型
"
,
pageId
:
"
dsFormObjectRelationChooseByFirstTypeCode
"
,
area
:
[
'
480px
'
,
'
500px
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
if
(
typeof
(
callback
)
==
"
function
"
)
{
callback
(
dsFormUtil
.
dsFormObjectRelationChoose
);
}
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
},
};
\ No newline at end of file
web/src/main/resources/template/assets/lib/layui/customer/voucher/voucherUtil.js
浏览文件 @
fcaf1605
...
...
@@ -56,6 +56,26 @@ var voucherUtil = {
voucherUtil
.
initClickEvent
();
},
initData
:
function
(
boxId
,
data
){
$
(
"
#
"
+
boxId
).
html
(
voucherUtil
.
tableHtmlDom
);
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
voucherUtil
.
addItem
();
var
_this
=
$
(
"
#useTable
"
).
find
(
"
tr
"
)[
i
];
_this
.
find
(
"
.col_summary
"
).
find
(
"
textarea
"
).
val
();
// 摘要
_this
.
find
(
"
.col_voucher
"
).
find
(
"
.cell_val
"
).
attr
(
"
dataId
"
);
// 凭证
_this
.
find
(
"
.col_voucher
"
).
find
(
"
.cell_val
"
).
html
();
_this
.
find
(
"
.col_subject
"
).
find
(
"
.cell_val
"
).
attr
(
"
dataId
"
,
""
);
// 会计科目
_this
.
find
(
"
.col_subject
"
).
find
(
"
.cell_val
"
).
html
();
_this
.
find
(
"
.col_debite
"
).
find
(
"
.cell_val
"
).
html
();
// 借方金额
_this
.
find
(
"
.col_credit
"
).
find
(
"
.cell_val
"
).
html
();
// 贷方金额
}
voucherUtil
.
initClickEvent
();
},
initClickEvent
:
function
(){
$
(
"
body
"
).
on
(
"
click
"
,
"
td[data-edit]
"
,
function
(){
var
_this
=
$
(
this
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录