Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
e3de3738
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1438
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看板
提交
e3de3738
编写于
3月 21, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
财务明细单新增/编辑托管到布局
上级
119bf35c
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
7 addition
and
747 deletion
+7
-747
ifs/src/main/resources/template/js/income/incomeAdd.js
ifs/src/main/resources/template/js/income/incomeAdd.js
+0
-169
ifs/src/main/resources/template/js/income/incomeEdit.js
ifs/src/main/resources/template/js/income/incomeEdit.js
+0
-220
ifs/src/main/resources/template/js/income/incomeInfo.js
ifs/src/main/resources/template/js/income/incomeInfo.js
+0
-45
ifs/src/main/resources/template/js/income/incomeList.js
ifs/src/main/resources/template/js/income/incomeList.js
+1
-2
ifs/src/main/resources/template/tpl/income/incomeAdd.html
ifs/src/main/resources/template/tpl/income/incomeAdd.html
+0
-102
ifs/src/main/resources/template/tpl/income/incomeEdit.html
ifs/src/main/resources/template/tpl/income/incomeEdit.html
+0
-110
ifs/src/main/resources/template/tpl/income/incomeInfo.html
ifs/src/main/resources/template/tpl/income/incomeInfo.html
+0
-95
ifs/src/main/resources/template/tpl/income/incomeList.html
ifs/src/main/resources/template/tpl/income/incomeList.html
+1
-1
web/src/main/resources/template/assets/lib/layui/customer/common/systemCommonUtil.js
...late/assets/lib/layui/customer/common/systemCommonUtil.js
+5
-3
未找到文件。
ifs/src/main/resources/template/js/income/incomeAdd.js
已删除
100644 → 0
浏览文件 @
119bf35c
// 兼容动态表单
var
layedit
,
form
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
tagEditor
'
].
concat
(
dsFormUtil
.
mastHaveImport
),
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
laydate
=
layui
.
laydate
;
layedit
=
layui
.
layedit
,
form
=
layui
.
form
;
var
serviceClassName
=
sysServiceMation
[
"
incomeOrder
"
][
"
key
"
];
// 获取单据提交类型
var
submitType
=
erpOrderUtil
.
getSubmitTypeByKey
(
serviceClassName
);
// 加载动态表单
dsFormUtil
.
loadPageByCode
(
"
dsFormShow
"
,
serviceClassName
,
null
);
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
var
handsPersonList
=
new
Array
();
//经手人员
// 单据时间
laydate
.
render
({
elem
:
'
#operTime
'
,
type
:
'
datetime
'
,
value
:
getFormatDate
(),
trigger
:
'
click
'
});
// 初始化账户
systemCommonUtil
.
getSysAccountListByType
(
function
(
json
)
{
$
(
"
#accountId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
});
sysDictDataUtil
.
showDictDataListByDictTypeCode
(
sysDictData
[
"
ifsOrderType
"
][
"
key
"
],
'
radioTree
'
,
"
ifsOrderType
"
,
''
,
form
);
// 初始化列表项选择
voucherUtil
.
init
(
'
showVoucherUtilBox
'
);
matchingLanguage
();
form
.
render
();
// 保存为草稿
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
"
1
"
,
""
);
}
return
false
;
});
// 走工作流的提交审批
form
.
on
(
'
submit(formSubOneBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
saveData
(
"
2
"
,
approvalId
);
});
}
return
false
;
});
// 不走工作流的提交
form
.
on
(
'
submit(formSubTwoBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
"
2
"
,
""
);
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
var
result
=
voucherUtil
.
getData
();
if
(
result
.
length
<
2
)
{
return
false
;
}
var
ifsOrderType
=
$
(
"
#ifsOrderType
"
).
attr
(
"
chooseId
"
);
if
(
isNull
(
ifsOrderType
))
{
winui
.
window
.
msg
(
'
请选择单据类型
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
params
=
{
organType
:
$
(
"
#correspondentUnitType
"
).
val
(),
organId
:
getOrganId
(),
type
:
ifsOrderType
,
handsPersonId
:
handsPersonList
[
0
].
id
,
operTime
:
$
(
"
#operTime
"
).
val
(),
accountId
:
$
(
"
#accountId
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
setOfBooksId
:
sysIfsUtil
.
ifsSetOfBooksMation
.
id
,
initemStr
:
JSON
.
stringify
(
result
),
submitType
:
submitType
,
subType
:
subType
,
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
income002
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
dsFormUtil
.
savePageData
(
"
dsFormShow
"
,
json
.
bean
.
id
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
},
async
:
true
});
}
function
getOrganId
(){
var
correspondentUnitType
=
$
(
"
#correspondentUnitType
"
).
val
();
if
(
correspondentUnitType
==
1
){
// 供应商
return
sysSupplierUtil
.
supplierMation
.
id
;
}
else
if
(
correspondentUnitType
==
2
){
// 客户
return
sysCustomerUtil
.
customerMation
.
id
;
}
}
// 往来单位变化监听
form
.
on
(
'
select(correspondentUnitType)
'
,
function
(
data
)
{
$
(
"
#customName
"
).
val
(
""
);
});
$
(
'
#handsPersonId
'
).
tagEditor
({
initialTags
:
[],
placeholder
:
'
请选择经手人员
'
,
editorTag
:
false
,
beforeTagDelete
:
function
(
field
,
editor
,
tags
,
val
)
{
handsPersonList
=
[].
concat
(
arrayUtil
.
removeArrayPointName
(
handsPersonList
,
val
));
}
});
// 人员选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#toHandsPersonSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
handsPersonList
);
systemCommonUtil
.
chooseOrNotMy
=
"
2
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
2
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
handsPersonList
=
[].
concat
(
systemCommonUtil
.
tagEditorResetData
(
'
handsPersonId
'
,
userReturnList
));
});
});
// 新增行
$
(
"
body
"
).
on
(
"
click
"
,
"
#addRow
"
,
function
()
{
voucherUtil
.
addItem
();
});
// 往来单位选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#customMationSel
"
,
function
(
e
)
{
var
correspondentUnitType
=
$
(
"
#correspondentUnitType
"
).
val
();
if
(
correspondentUnitType
==
1
){
// 供应商
sysSupplierUtil
.
openSysSupplierChoosePage
(
function
(
supplierMation
){
$
(
"
#customName
"
).
val
(
supplierMation
.
supplierName
);
});
}
else
if
(
correspondentUnitType
==
2
){
// 客户
sysCustomerUtil
.
openSysCustomerChoosePage
(
function
(
customerMation
){
$
(
"
#customName
"
).
val
(
customerMation
.
customName
);
});
}
});
// 选择账套
$
(
"
body
"
).
on
(
"
click
"
,
"
#chooseSetOfBooksBtn
"
,
function
(
e
)
{
var
_this
=
$
(
this
);
sysIfsUtil
.
openIfsSetOfBooksListChoosePage
(
function
(
ifsSetOfBooksMation
){
_this
.
parent
().
find
(
"
input
"
).
val
(
ifsSetOfBooksMation
.
name
);
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
ifs/src/main/resources/template/js/income/incomeEdit.js
已删除
100644 → 0
浏览文件 @
119bf35c
// 兼容动态表单
var
layedit
,
form
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
tagEditor
'
].
concat
(
dsFormUtil
.
mastHaveImport
),
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
laydate
=
layui
.
laydate
;
layedit
=
layui
.
layedit
,
form
=
layui
.
form
;
var
serviceClassName
=
sysServiceMation
[
"
incomeOrder
"
][
"
key
"
];
// 获取单据提交类型
var
submitType
=
""
;
var
beanTemplate
=
$
(
"
#beanTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
var
handsPersonList
=
new
Array
();
//经手人员
showGrid
({
id
:
"
showForm
"
,
url
:
flowableBasePath
+
"
income003
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
beanTemplate
,
method
:
"
GET
"
,
ajaxSendAfter
:
function
(
json
)
{
submitType
=
json
.
bean
.
submitType
;
// 单据时间
laydate
.
render
({
elem
:
'
#operTime
'
,
type
:
'
datetime
'
,
trigger
:
'
click
'
});
// 往来单位
$
(
"
#correspondentUnitType
"
).
val
(
json
.
bean
.
organType
);
if
(
json
.
bean
.
organType
==
1
){
// 供应商
sysSupplierUtil
.
supplierMation
=
{
id
:
json
.
bean
.
organId
,
supplierName
:
json
.
bean
.
supplierName
}
}
else
if
(
json
.
bean
.
organType
==
2
){
// 客户信息
sysCustomerUtil
.
customerMation
=
{
id
:
json
.
bean
.
organId
,
customName
:
json
.
bean
.
supplierName
}
}
// 账套
sysIfsUtil
.
ifsSetOfBooksMation
=
{
id
:
json
.
bean
.
setOfBooksId
,
name
:
json
.
bean
.
setOfBooksName
};
erpOrderUtil
.
orderEditPageSetBtnBySubmitType
(
submitType
,
json
.
bean
.
state
);
// 加载动态表单
dsFormUtil
.
loadPageToEditByObjectId
(
"
dsFormShow
"
,
json
.
bean
.
id
);
initOtherMation
(
json
);
var
userNames
=
""
;
handsPersonList
=
json
.
bean
.
userInfo
;
$
.
each
(
handsPersonList
,
function
(
i
,
item
)
{
userNames
+=
item
.
name
+
'
,
'
;
});
// 人员选择
$
(
'
#handsPersonId
'
).
tagEditor
({
initialTags
:
userNames
.
split
(
'
,
'
),
placeholder
:
'
请选择经手人员
'
,
editorTag
:
false
,
beforeTagDelete
:
function
(
field
,
editor
,
tags
,
val
)
{
handsPersonList
=
[].
concat
(
arrayUtil
.
removeArrayPointName
(
handsPersonList
,
val
));
}
});
}
});
function
initOtherMation
(
data
)
{
// 初始化账户
systemCommonUtil
.
getSysAccountListByType
(
function
(
json
)
{
$
(
"
#accountId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
$
(
"
#accountId
"
).
val
(
data
.
bean
.
accountId
);
});
// 初始化列表项选择
voucherUtil
.
initData
(
'
showVoucherUtilBox
'
,
data
.
bean
.
items
);
matchingLanguage
();
form
.
render
();
}
// 保存为草稿
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
1
'
,
""
);
}
return
false
;
});
// 走工作流的提交审批
form
.
on
(
'
submit(formSubOneBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
saveData
(
"
2
"
,
approvalId
);
});
}
return
false
;
});
// 不走工作流的提交
form
.
on
(
'
submit(formSubTwoBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
2
'
,
""
);
}
return
false
;
});
// 工作流中保存
form
.
on
(
'
submit(save)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
3
'
,
""
);
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
var
result
=
voucherUtil
.
getData
();
if
(
result
.
length
<
2
){
return
false
;
}
var
params
=
{
organType
:
$
(
"
#correspondentUnitType
"
).
val
(),
organId
:
getOrganId
(),
type
:
$
(
"
#ifsOrderType
"
).
attr
(
"
chooseId
"
),
handsPersonId
:
handsPersonList
[
0
].
id
,
operTime
:
$
(
"
#operTime
"
).
val
(),
accountId
:
$
(
"
#accountId
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
setOfBooksId
:
sysIfsUtil
.
ifsSetOfBooksMation
.
id
,
initemStr
:
JSON
.
stringify
(
result
),
submitType
:
submitType
,
subType
:
subType
,
approvalId
:
approvalId
,
rowId
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
income004
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
dsFormUtil
.
savePageData
(
"
dsFormShow
"
,
json
.
bean
.
id
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
},
async
:
true
});
}
function
getOrganId
(){
var
correspondentUnitType
=
$
(
"
#correspondentUnitType
"
).
val
();
if
(
correspondentUnitType
==
1
){
// 供应商
return
sysSupplierUtil
.
supplierMation
.
id
;
}
else
if
(
correspondentUnitType
==
2
){
// 客户
return
sysCustomerUtil
.
customerMation
.
id
;
}
}
// 往来单位变化监听
form
.
on
(
'
select(correspondentUnitType)
'
,
function
(
data
)
{
$
(
"
#customName
"
).
val
(
""
);
});
// 人员选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#toHandsPersonSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
handsPersonList
);
systemCommonUtil
.
chooseOrNotMy
=
"
2
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
2
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
handsPersonList
=
[].
concat
(
systemCommonUtil
.
tagEditorResetData
(
'
handsPersonId
'
,
userReturnList
));
});
});
// 新增行
$
(
"
body
"
).
on
(
"
click
"
,
"
#addRow
"
,
function
()
{
voucherUtil
.
addItem
();
});
// 往来单位选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#customMationSel
"
,
function
(
e
)
{
var
correspondentUnitType
=
$
(
"
#correspondentUnitType
"
).
val
();
if
(
correspondentUnitType
==
1
){
// 供应商
sysSupplierUtil
.
openSysSupplierChoosePage
(
function
(
supplierMation
){
$
(
"
#customName
"
).
val
(
supplierMation
.
supplierName
);
});
}
else
if
(
correspondentUnitType
==
2
){
// 客户
sysCustomerUtil
.
openSysCustomerChoosePage
(
function
(
customerMation
){
$
(
"
#customName
"
).
val
(
customerMation
.
customName
);
});
}
});
// 选择账套
$
(
"
body
"
).
on
(
"
click
"
,
"
#chooseSetOfBooksBtn
"
,
function
(
e
)
{
var
_this
=
$
(
this
);
sysIfsUtil
.
openIfsSetOfBooksListChoosePage
(
function
(
ifsSetOfBooksMation
){
_this
.
parent
().
find
(
"
input
"
).
val
(
ifsSetOfBooksMation
.
name
);
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
ifs/src/main/resources/template/js/income/incomeInfo.js
已删除
100644 → 0
浏览文件 @
119bf35c
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
jqprint
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
var
beanTemplate
=
$
(
"
#beanTemplate
"
).
html
();
showGrid
({
id
:
"
showForm
"
,
url
:
flowableBasePath
+
"
income006
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
beanTemplate
,
ajaxSendAfter
:
function
(
json
)
{
// 初始化列表项选择
voucherUtil
.
initDataDetails
(
'
showVoucherUtilBox
'
,
json
.
bean
.
items
);
// 加载动态表单
dsFormUtil
.
loadPageShowDetailsByObjectId
(
"
dsFormShow
"
,
json
.
bean
.
id
);
matchingLanguage
();
form
.
render
();
}
});
// 打印
$
(
"
body
"
).
on
(
"
click
"
,
"
#jprint
"
,
function
(
e
)
{
$
(
"
#showForm
"
).
jqprint
({
title
:
sysMainMation
.
mationTitle
,
debug
:
false
,
//如果是true则可以显示iframe查看效果(iframe默认高和宽都很小,可以再源码中调大),默认是false
importCSS
:
true
,
//true表示引进原来的页面的css,默认是true。(如果是true,先会找$("link[media=print]"),若没有会去找$("link")中的css文件)
printContainer
:
true
,
//表示如果原来选择的对象必须被纳入打印(注意:设置为false可能会打破你的CSS规则)。
operaSupport
:
true
//表示如果插件也必须支持歌opera浏览器,在这种情况下,它提供了建立一个临时的打印选项卡。默认是true
});
});
});
});
\ No newline at end of file
ifs/src/main/resources/template/js/income/incomeList.js
浏览文件 @
e3de3738
...
...
@@ -44,7 +44,7 @@ layui.config({
{
field
:
'
state
'
,
title
:
'
状态
'
,
align
:
'
left
'
,
width
:
80
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
flowableStateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
}},
{
field
:
'
type
'
,
title
:
'
单据类型
'
,
align
:
'
left
'
,
width
:
8
0
,
templet
:
function
(
d
)
{
{
field
:
'
type
'
,
title
:
'
单据类型
'
,
align
:
'
left
'
,
width
:
12
0
,
templet
:
function
(
d
)
{
return
sysDictDataUtil
.
getDictDataNameByCodeAndKey
(
"
IFS_ORDER_TYPE
"
,
d
.
type
);
}},
{
field
:
'
holderKey
'
,
title
:
'
往来单位类型
'
,
align
:
'
left
'
,
width
:
100
,
templet
:
function
(
d
)
{
...
...
@@ -53,7 +53,6 @@ layui.config({
{
field
:
'
holderMation
'
,
title
:
'
往来单位
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
d
.
holderMation
.
name
;
}},
{
field
:
'
totalPrice
'
,
title
:
'
合计金额
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
handsPersonName
'
,
title
:
'
经手人
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
operTime
'
,
title
:
'
单据日期
'
,
align
:
'
center
'
,
width
:
120
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
...
...
ifs/src/main/resources/template/tpl/income/incomeAdd.html
已删除
100644 → 0
浏览文件 @
119bf35c
<!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/winui/css/customer/voucherUtil.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"
>
<span
class=
"hr-title"
>
基本信息
</span><hr>
</div>
<div
class=
"layui-form-item layui-col-xs6"
style=
"height: 40px"
>
<label
class=
"layui-form-label"
>
往来单位
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
style=
"width: 80px"
>
<select
id=
"correspondentUnitType"
lay-search
win-verify=
"required"
lay-filter=
"correspondentUnitType"
style=
"width: 100px"
>
<option
value=
"1"
>
供应商
</option>
<option
value=
"2"
>
客户
</option>
</select>
</div>
<div
class=
"layui-input-block"
style=
"width: calc(100% - 220px); top: -40px; left: 85px;"
>
<input
type=
"text"
id=
"customName"
name=
"customName"
win-verify=
"required"
placeholder=
"请选择往来单位"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"customMationSel"
></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=
"operTime"
name=
"operTime"
win-verify=
"required"
placeholder=
"请选择单据日期"
class=
"layui-input"
/>
</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=
"setOfBooksName"
name=
"setOfBooksName"
win-verify=
"required"
placeholder=
"请选择账套"
class=
"layui-input"
readonly=
"readonly"
/>
<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"
id=
"ifsOrderType"
>
</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"
>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
style=
"text-align: left;"
>
<button
id=
"addRow"
class=
"winui-toolbtn"
type=
"button"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
新增行
</button>
</div>
</div>
<div
id=
"showVoucherUtilBox"
style=
"overflow-x: auto;"
>
</div>
</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"
>
<select
id=
"accountId"
lay-search
win-verify=
"required"
></select>
</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"
>
<input
type=
"text"
id=
"handsPersonId"
name=
"handsPersonId"
win-verify=
"required"
placeholder=
"请选择经手人员"
class=
"layui-input"
style=
"padding-right: 30px;"
/>
<i
class=
"fa fa-user-plus input-icon"
id=
"toHandsPersonSelPeople"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
备注
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"remark"
name=
"remark"
placeholder=
"请输入备注"
class=
"layui-textarea"
style=
"height: 100px;"
maxlength=
"200"
></textarea>
</div>
</div>
<div
id=
"dsFormShow"
>
</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=
"formAddBean"
>
保存为草稿
</button>
<button
class=
"winui-btn submitTypeIsOne"
lay-submit
lay-filter=
"formSubOneBean"
>
提交审批
</button>
<button
class=
"winui-btn submitTypeIsTwo"
lay-submit
lay-filter=
"formSubTwoBean"
>
提交
</button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../assets/lib/layui/customer/voucher/spinbox.js"
></script>
<script
src=
"../../assets/lib/layui/customer/voucher/voucherUtil.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/income/
'
}).
use
(
'
incomeAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
ifs/src/main/resources/template/tpl/income/incomeEdit.html
已删除
100644 → 0
浏览文件 @
119bf35c
<!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/winui/css/customer/voucherUtil.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin: 0 auto; padding: 20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
</form>
</div>
<!-- beanTemplate -->
<script
type=
"text/x-handlebars-template"
id=
"beanTemplate"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
基本信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
style
=
"
height: 40px
"
>
<
label
class
=
"
layui-form-label
"
>
往来单位
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
style
=
"
width: 80px
"
>
<
select
id
=
"
correspondentUnitType
"
lay
-
search
win
-
verify
=
"
required
"
lay
-
filter
=
"
correspondentUnitType
"
style
=
"
width: 100px
"
>
<
option
value
=
"
1
"
>
供应商
<
/option
>
<
option
value
=
"
2
"
>
客户
<
/option
>
<
/select
>
<
/div
>
<
div
class
=
"
layui-input-block
"
style
=
"
width: calc(100% - 220px); top: -40px; left: 85px;
"
>
<
input
type
=
"
text
"
id
=
"
customName
"
name
=
"
customName
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择往来单位
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
value
=
"
{{supplierName}}
"
/>
<
i
class
=
"
fa fa-plus-circle input-icon
"
id
=
"
customMationSel
"
><
/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
=
"
operTime
"
name
=
"
operTime
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择单据日期
"
class
=
"
layui-input
"
value
=
"
{{billTime}}
"
/>
<
/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
=
"
setOfBooksName
"
name
=
"
setOfBooksName
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择账套
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
value
=
"
{{setOfBooksName}}
"
/>
<
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 ver-center
"
chooseId
=
"
{{type}}
"
>
{{
typeName
}}
<
/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
"
>
<
div
class
=
"
winui-toolbar
"
>
<
div
class
=
"
winui-tool
"
style
=
"
text-align: left;
"
>
<
button
id
=
"
addRow
"
class
=
"
winui-toolbtn
"
type
=
"
button
"
><
i
class
=
"
fa fa-plus
"
aria
-
hidden
=
"
true
"
><
/i>新增行</
button
>
<
/div
>
<
/div
>
<
div
id
=
"
showVoucherUtilBox
"
style
=
"
overflow-x: auto;
"
>
<
/div
>
<
/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
"
>
<
select
id
=
"
accountId
"
lay
-
search
win
-
verify
=
"
required
"
><
/select
>
<
/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
"
>
<
input
type
=
"
text
"
id
=
"
handsPersonId
"
name
=
"
handsPersonId
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择经手人员
"
class
=
"
layui-input
"
style
=
"
padding-right: 30px;
"
/>
<
i
class
=
"
fa fa-user-plus input-icon
"
id
=
"
toHandsPersonSelPeople
"
><
/i
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
备注
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
textarea
id
=
"
remark
"
name
=
"
remark
"
placeholder
=
"
请输入备注
"
class
=
"
layui-textarea
"
style
=
"
height: 100px;
"
maxlength
=
"
200
"
>
{{
remark
}}
<
/textarea
>
<
/div
>
<
/div
>
<
div
id
=
"
dsFormShow
"
>
<
/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 formEditBean layui-hide
"
lay
-
submit
lay
-
filter
=
"
formEditBean
"
>
保存为草稿
<
/button
>
<
button
class
=
"
winui-btn formSubOneBean layui-hide
"
lay
-
submit
lay
-
filter
=
"
formSubOneBean
"
>
提交审批
<
/button
>
<
button
class
=
"
winui-btn formSubTwoBean layui-hide
"
lay
-
submit
lay
-
filter
=
"
formSubTwoBean
"
>
提交
<
/button
>
<
button
class
=
"
winui-btn save layui-hide
"
lay
-
submit
lay
-
filter
=
"
save
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
{{
/
bean
}}
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../assets/lib/layui/customer/voucher/spinbox.js"
></script>
<script
src=
"../../assets/lib/layui/customer/voucher/voucherUtil.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/income/
'
}).
use
(
'
incomeEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
ifs/src/main/resources/template/tpl/income/incomeInfo.html
已删除
100644 → 0
浏览文件 @
119bf35c
<!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/winui/css/customer/voucherUtil.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
</form>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block ver-center"
>
<button
class=
"winui-btn"
type=
"button"
id=
"jprint"
>
打印
</button>
</div>
</div>
</div>
<script
type=
"text/x-handlebars-template"
id=
"beanTemplate"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
基本信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
style
=
"
height: 40px
"
>
<
label
class
=
"
layui-form-label
"
>
往来单位
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
style
=
"
width: 70px
"
>
【
{{
organTypeName
}}
】
<
/div
>
<
div
class
=
"
layui-input-block ver-center
"
style
=
"
width: calc(100% - 220px); top: -40px; left: 65px;
"
>
{{
supplierName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
单据日期
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
operTime
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
所属账套
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
setOfBooksName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
类型
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
typeName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
列表项
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
div
id
=
"
showVoucherUtilBox
"
style
=
"
overflow-x: auto;
"
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
收款账户
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
accountName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
经手人
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
handsPersonName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label ver-center
"
>
备注
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
remark
}}
<
/div
>
<
/div
>
<
div
id
=
"
dsFormShow
"
>
<
/div
>
{{
/
bean
}}
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../assets/lib/layui/customer/voucher/spinbox.js"
></script>
<script
src=
"../../assets/lib/layui/customer/voucher/voucherUtil.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/income/
'
}).
use
(
'
incomeInfo
'
);
</script>
</body>
</html>
\ No newline at end of file
ifs/src/main/resources/template/tpl/income/incomeList.html
浏览文件 @
e3de3738
...
...
@@ -32,7 +32,7 @@
{{
#
if
(
auth
(
'
1571638039187
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
15716380
30608
'
)){
}}
{{
#
if
(
auth
(
'
15716380
20191
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
...
...
web/src/main/resources/template/assets/lib/layui/customer/common/systemCommonUtil.js
浏览文件 @
e3de3738
...
...
@@ -1179,20 +1179,22 @@ var dataShowType = {
});
if (`
+
!
isNull
(
defaultId
)
+
`) {
var zTree =
${
showBoxId
}
Object.getCheckedNodes(false);
var type = '
${
showType
}
' == 'radioTree' ? "radio" : "checkbox";
var tempArray = type == 'checkbox' ? JSON.parse('
${
defaultId
}
') : [].push('
${
defaultId
}
');
for (var i = 0; i < zTree.length; i++) {
if ('
${
showType
}
' == 'checkboxTree') {
if($.inArray(zTree[i].id,
${
defaultId
}
) >= 0){
if($.inArray(zTree[i].id,
tempArray
) >= 0){
${
showBoxId
}
Object.checkNode(zTree[i], true, true);
}
} else {
if(zTree[i].id == '
`
+
defaultId
+
`
'){
if(zTree[i].id == '
${
defaultId
}
'){
${
showBoxId
}
Object.checkNode(zTree[i], true, true);
$('#
${
showBoxId
}
').attr('chooseId', zTree[i].id);
}
}
}
if ('
${
showType
}
' == 'checkboxTree') {
$('#
${
showBoxId
}
').attr('chooseId', JSON.stringify(
`
+
defaultId
+
`
));
$('#
${
showBoxId
}
').attr('chooseId', JSON.stringify(
tempArray
));
}
}
})(jQuery);});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录