Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
96b21945
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
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看板
提交
96b21945
编写于
1月 06, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
会计科目新增余额方向属性
上级
ba0ad7ab
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
75 addition
and
10 deletion
+75
-10
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectAdd.js
...ces/template/js/ifsAccountSubject/ifsAccountSubjectAdd.js
+5
-0
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectDetails.js
...template/js/ifsAccountSubject/ifsAccountSubjectDetails.js
+1
-0
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectEdit.js
...es/template/js/ifsAccountSubject/ifsAccountSubjectEdit.js
+7
-1
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectList.js
...es/template/js/ifsAccountSubject/ifsAccountSubjectList.js
+10
-1
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectListChoose.js
...plate/js/ifsAccountSubject/ifsAccountSubjectListChoose.js
+4
-1
ifs/src/main/resources/template/tpl/ifsAccountSubject/ifsAccountSubjectAdd.html
.../template/tpl/ifsAccountSubject/ifsAccountSubjectAdd.html
+6
-0
ifs/src/main/resources/template/tpl/ifsAccountSubject/ifsAccountSubjectDetails.html
...plate/tpl/ifsAccountSubject/ifsAccountSubjectDetails.html
+6
-0
ifs/src/main/resources/template/tpl/ifsAccountSubject/ifsAccountSubjectEdit.html
...template/tpl/ifsAccountSubject/ifsAccountSubjectEdit.html
+6
-0
web/src/main/resources/template/assets/lib/layui/customer/accountSubjectUtil.js
.../template/assets/lib/layui/customer/accountSubjectUtil.js
+7
-5
web/src/main/resources/template/assets/lib/layui/customer/sysIfsUtil.js
...esources/template/assets/lib/layui/customer/sysIfsUtil.js
+9
-0
web/src/main/resources/template/assets/lib/winui/winui.js
web/src/main/resources/template/assets/lib/winui/winui.js
+11
-2
web/src/main/resources/template/tpl/template/radio-property.tpl
...c/main/resources/template/tpl/template/radio-property.tpl
+3
-0
未找到文件。
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectAdd.js
浏览文件 @
96b21945
...
...
@@ -10,9 +10,13 @@ layui.config({
var
$
=
layui
.
$
,
textool
=
layui
.
textool
;
var
selTemplate
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
var
radioTemplate
=
getFileContent
(
'
tpl/template/radio-property.tpl
'
);
$
(
"
#type
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
accountSubjectUtil
.
accountSubjectType
}));
// 余额方向
$
(
"
#amountDirectionBox
"
).
html
(
getDataUseHandlebars
(
radioTemplate
,
{
rows
:
sysIfsUtil
.
amountDirection
}));
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
,
...
...
@@ -26,6 +30,7 @@ layui.config({
var
params
=
{
name
:
$
(
"
#name
"
).
val
(),
state
:
$
(
"
input[name='state']:checked
"
).
val
(),
amountDirection
:
$
(
"
input[name='radioProperty']:checked
"
).
val
(),
num
:
$
(
"
#num
"
).
val
(),
type
:
$
(
"
#type
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
()
...
...
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectDetails.js
浏览文件 @
96b21945
...
...
@@ -18,6 +18,7 @@ layui.config({
template
:
$
(
"
#simpleTemplate
"
).
html
(),
ajaxSendAfter
:
function
(
json
){
$
(
"
#state
"
).
html
(
json
.
bean
.
state
==
"
1
"
?
"
<span class='state-up'>启用</span>
"
:
"
<span class='state-down'>停用</span>
"
);
$
(
"
#amountDirectionBox
"
).
html
(
sysIfsUtil
.
getAmountDirectionById
(
json
.
bean
.
amountDirection
));
$
(
"
#type
"
).
html
(
getInPoingArr
(
accountSubjectUtil
.
accountSubjectType
,
"
id
"
,
json
.
bean
.
type
,
"
name
"
));
matchingLanguage
();
form
.
render
();
...
...
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectEdit.js
浏览文件 @
96b21945
...
...
@@ -9,6 +9,8 @@ layui.config({
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
textool
=
layui
.
textool
;
var
selTemplate
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
var
radioTemplate
=
getFileContent
(
'
tpl/template/radio-property.tpl
'
);
showGrid
({
id
:
"
showForm
"
,
...
...
@@ -27,10 +29,13 @@ layui.config({
tools
:
[
'
count
'
,
'
copy
'
,
'
reset
'
,
'
clear
'
]
});
var
selTemplate
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
$
(
"
#type
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
accountSubjectUtil
.
accountSubjectType
}));
$
(
"
#type
"
).
val
(
json
.
bean
.
type
);
// 余额方向
$
(
"
#amountDirectionBox
"
).
html
(
getDataUseHandlebars
(
radioTemplate
,
{
rows
:
sysIfsUtil
.
amountDirection
}));
$
(
"
input:radio[name=radioProperty][value=
"
+
json
.
bean
.
amountDirection
+
"
]
"
).
attr
(
"
checked
"
,
true
);
$
(
"
input:radio[name=state][value=
"
+
json
.
bean
.
state
+
"
]
"
).
attr
(
"
checked
"
,
true
);
matchingLanguage
();
...
...
@@ -41,6 +46,7 @@ layui.config({
rowId
:
parent
.
rowId
,
name
:
$
(
"
#name
"
).
val
(),
state
:
$
(
"
input[name='state']:checked
"
).
val
(),
amountDirection
:
$
(
"
input[name='radioProperty']:checked
"
).
val
(),
num
:
$
(
"
#num
"
).
val
(),
type
:
$
(
"
#type
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
()
...
...
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectList.js
浏览文件 @
96b21945
...
...
@@ -36,7 +36,16 @@ layui.config({
{
field
:
'
type
'
,
title
:
'
类型
'
,
align
:
'
center
'
,
width
:
120
,
templet
:
function
(
d
){
return
getInPoingArr
(
accountSubjectUtil
.
accountSubjectType
,
"
id
"
,
d
.
type
,
"
name
"
);
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
amountDirection
'
,
title
:
'
余额方向
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
){
return
sysIfsUtil
.
getAmountDirectionById
(
d
.
amountDirection
);
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
){
if
(
d
.
state
==
1
){
return
"
<span class='state-up'>启用</span>
"
;
}
else
{
return
"
<span class='state-down'>停用</span>
"
;
}
}},
{
field
:
'
remark
'
,
title
:
'
备注
'
,
align
:
'
left
'
,
width
:
200
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
100
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
...
...
ifs/src/main/resources/template/js/ifsAccountSubject/ifsAccountSubjectListChoose.js
浏览文件 @
96b21945
...
...
@@ -37,6 +37,9 @@ layui.config({
{
field
:
'
type
'
,
title
:
'
类型
'
,
align
:
'
center
'
,
width
:
120
,
templet
:
function
(
d
){
return
getInPoingArr
(
accountSubjectUtil
.
accountSubjectType
,
"
id
"
,
d
.
type
,
"
name
"
);
}},
{
field
:
'
amountDirection
'
,
title
:
'
余额方向
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
){
return
sysIfsUtil
.
getAmountDirectionById
(
d
.
amountDirection
);
}},
{
field
:
'
remark
'
,
title
:
'
备注
'
,
align
:
'
left
'
,
width
:
200
}
]],
done
:
function
(
res
,
curr
,
count
){
...
...
@@ -89,7 +92,7 @@ layui.config({
function
getTableParams
(){
return
{
name
:
$
(
"
#name
"
).
val
(),
state
:
1
,
state
:
1
,
// 已启用
type
:
$
(
"
#type
"
).
val
()
};
}
...
...
ifs/src/main/resources/template/tpl/ifsAccountSubject/ifsAccountSubjectAdd.html
浏览文件 @
96b21945
...
...
@@ -36,6 +36,12 @@
<input
type=
"radio"
name=
"state"
value=
"2"
title=
"禁用"
/>
</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 winui-radio"
win-verify=
"required"
id=
"amountDirectionBox"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
备注
</label>
<div
class=
"layui-input-block"
>
...
...
ifs/src/main/resources/template/tpl/ifsAccountSubject/ifsAccountSubjectDetails.html
浏览文件 @
96b21945
...
...
@@ -39,6 +39,12 @@
<
/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 ver-center
"
id
=
"
amountDirectionBox
"
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
备注
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
...
...
ifs/src/main/resources/template/tpl/ifsAccountSubject/ifsAccountSubjectEdit.html
浏览文件 @
96b21945
...
...
@@ -42,6 +42,12 @@
<
input
type
=
"
radio
"
name
=
"
state
"
value
=
"
2
"
title
=
"
禁用
"
/>
<
/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 winui-radio
"
win
-
verify
=
"
required
"
id
=
"
amountDirectionBox
"
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
备注
<
/label
>
<
div
class
=
"
layui-input-block
"
>
...
...
web/src/main/resources/template/assets/lib/layui/customer/accountSubjectUtil.js
浏览文件 @
96b21945
...
...
@@ -3,11 +3,13 @@ var accountSubjectUtil = {
// 会计科目所属类型JSON串
accountSubjectType
:
[
{
"
id
"
:
"
1
"
,
"
name
"
:
"
资产类
"
},
{
"
id
"
:
"
2
"
,
"
name
"
:
"
负债类
"
},
{
"
id
"
:
"
3
"
,
"
name
"
:
"
权益类
"
},
{
"
id
"
:
"
4
"
,
"
name
"
:
"
成本类
"
},
{
"
id
"
:
"
5
"
,
"
name
"
:
"
损益类
"
}
{
"
id
"
:
"
1
"
,
"
name
"
:
"
资产
"
},
{
"
id
"
:
"
2
"
,
"
name
"
:
"
负债
"
},
{
"
id
"
:
"
3
"
,
"
name
"
:
"
权益
"
},
{
"
id
"
:
"
4
"
,
"
name
"
:
"
成本
"
},
{
"
id
"
:
"
5
"
,
"
name
"
:
"
损益
"
},
{
"
id
"
:
"
6
"
,
"
name
"
:
"
共同
"
},
{
"
id
"
:
"
7
"
,
"
name
"
:
"
其他
"
}
]
}
\ No newline at end of file
web/src/main/resources/template/assets/lib/layui/customer/sysIfsUtil.js
浏览文件 @
96b21945
...
...
@@ -71,4 +71,13 @@ var sysIfsUtil = {
}});
},
// 余额方向
amountDirection
:
[
{
"
id
"
:
"
1
"
,
"
name
"
:
"
借
"
},
{
"
id
"
:
"
2
"
,
"
name
"
:
"
贷
"
}
],
getAmountDirectionById
:
function
(
id
){
return
getInPoingArr
(
sysIfsUtil
.
amountDirection
,
"
id
"
,
id
,
"
name
"
);
}
}
\ No newline at end of file
web/src/main/resources/template/assets/lib/winui/winui.js
浏览文件 @
96b21945
...
...
@@ -443,11 +443,20 @@
$
(
"
body
"
).
append
(
maskReqStr
);
layui
.
each
(
verifyElem
,
function
(
index
,
item
)
{
var
othis
=
$
(
this
),
ver
=
othis
.
attr
(
'
win-verify
'
).
split
(
'
|
'
);
var
tips
=
''
,
value
=
othis
.
val
();
var
tips
=
''
;
var
value
=
othis
.
val
();
// 如果是单选,则获取单选的值
if
(
othis
.
hasClass
(
"
winui-radio
"
)){
value
=
othis
.
find
(
"
input:checked
"
).
val
();
if
(
value
===
undefined
){
value
=
""
;
}
}
othis
.
removeClass
(
DANGER
);
layui
.
each
(
ver
,
function
(
_
,
thisVer
)
{
var
isFn
=
typeof
that
.
verify
[
thisVer
]
===
'
function
'
;
if
(
that
.
verify
[
thisVer
]
&&
(
isFn
?
tips
=
that
.
verify
[
thisVer
](
value
,
item
)
:
!
that
.
verify
[
thisVer
][
0
].
test
(
value
)))
{
if
(
that
.
verify
[
thisVer
]
&&
(
isFn
?
tips
=
that
.
verify
[
thisVer
](
value
,
item
)
:
!
that
.
verify
[
thisVer
][
0
].
test
(
value
)))
{
layer
.
msg
(
tips
||
that
.
verify
[
thisVer
][
1
],
{
icon
:
5
,
shift
:
6
...
...
web/src/main/resources/template/tpl/template/radio-property.tpl
0 → 100644
浏览文件 @
96b21945
{{
#
each
rows
}}
<input
type=
"radio"
name=
"radioProperty"
value=
"{
{
id
}
}"
title=
"{
{
name
}
}"
/>
{
{/
each
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录