Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
e66062fc
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看板
提交
e66062fc
编写于
5月 02, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 新增客户回访功能
上级
28e24117
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
2623 addition
and
2092 deletion
+2623
-2092
crm/src/main/resources/template/js/follow/crmFollowList.js
crm/src/main/resources/template/js/follow/crmFollowList.js
+154
-0
crm/src/main/resources/template/tpl/follow/crmFollowList.html
...src/main/resources/template/tpl/follow/crmFollowList.html
+25
-0
web/src/main/resources/template/assets/lib/winui/css/winui.css
...rc/main/resources/template/assets/lib/winui/css/winui.css
+2443
-2092
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+1
-0
未找到文件。
crm/src/main/resources/template/js/follow/crmFollowList.js
0 → 100644
浏览文件 @
e66062fc
var
objectKey
=
""
;
var
objectId
=
""
;
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
;
objectKey
=
GetUrlParam
(
"
objectKey
"
);
objectId
=
GetUrlParam
(
"
objectId
"
);
if
(
isNull
(
objectKey
)
||
isNull
(
objectId
))
{
winui
.
window
.
msg
(
"
请传入适用对象信息
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
authPermission
=
teamObjectPermissionUtil
.
checkTeamBusinessAuthPermission
(
objectId
,
'
crmFollowUpAuthEnum
'
);
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
crmBasePath
+
'
queryFollowUpList
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
oddNumber
'
,
title
:
'
回访编号
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
oddNumber
+
'
</a>
'
;
}},
{
field
:
'
contractId
'
,
title
:
'
合同
'
,
width
:
200
,
templet
:
function
(
d
)
{
return
d
.
contractMation
?.
title
;
}},
{
field
:
'
typeId
'
,
title
:
'
类型
'
,
align
:
'
center
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
sysDictDataUtil
.
getDictDataNameByCodeAndKey
(
'
FOLLOW_UP_TYPE
'
,
d
.
typeId
);
}},
{
field
:
'
contacts
'
,
title
:
'
联系人
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
d
.
contactsMation
?.
name
;
}},
{
field
:
'
satisfaction
'
,
title
:
'
客户满意度
'
,
align
:
'
center
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
sysDictDataUtil
.
getDictDataNameByCodeAndKey
(
'
FOLLOW_UP_SATISFACTION
'
,
d
.
satisfaction
);
}},
{
field
:
'
followUserId
'
,
title
:
'
回访人
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
d
.
followUserMation
?.
name
;
}},
{
field
:
'
followTime
'
,
title
:
'
回访时间
'
,
align
:
'
center
'
,
width
:
100
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
align
:
'
left
'
,
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
:
150
,
templet
:
function
(
d
)
{
var
str
=
''
;
if
(
authPermission
[
'
edit
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
'
}
if
(
authPermission
[
'
delete
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete"><language showName="com.skyeye.deleteBtn"></language></a>
'
}
return
str
;
}}
]],
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
===
'
edit
'
)
{
edit
(
data
);
}
else
if
(
layEvent
===
'
delete
'
)
{
del
(
data
);
}
else
if
(
layEvent
===
'
details
'
)
{
details
(
data
);
}
});
// 新增
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
parent
.
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2024050200001&objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
,
null
),
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
crmDocumentaryAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 编辑
function
edit
(
data
)
{
parent
.
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2024050200002&objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
+
'
&id=
'
+
data
.
id
,
null
),
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
crmDocumentaryEdit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 详情
function
details
(
data
)
{
parent
.
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2024050200003&objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
+
'
&id=
'
+
data
.
id
,
null
),
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
crmDocumentaryDetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 删除
function
del
(
data
,
obj
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
crmBasePath
+
"
deleteFollowUpById
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
DELETE
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{
objectKey
:
objectKey
,
objectId
:
objectId
},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
crmFollowList
'
,
{});
});
\ No newline at end of file
crm/src/main/resources/template/tpl/follow/crmFollowList.html
0 → 100644
浏览文件 @
e66062fc
<!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>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"add"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></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/follow/
'
}).
use
(
'
crmFollowList
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/assets/lib/winui/css/winui.css
浏览文件 @
e66062fc
此差异已折叠。
点击以展开。
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
e66062fc
...
...
@@ -88,6 +88,7 @@
"crmOpportunityStateEnum"
:
{
"name"
:
"商机状态"
,
"className"
:
"skyeye-crm#com.skyeye.opportunity.classenum.CrmOpportunityStateEnum"
},
"crmOpportunityAuthEnum"
:
{
"name"
:
"商机权限"
,
"className"
:
"skyeye-crm#com.skyeye.opportunity.classenum.CrmOpportunityAuthEnum"
,
"pageUrl"
:
"../../tpl/crmOpportunity/crmOpportunityList.html"
},
"crmDocumentaryAuthEnum"
:
{
"name"
:
"跟单权限"
,
"className"
:
"skyeye-crm#com.skyeye.documentary.classenum.CrmDocumentaryAuthEnum"
,
"pageUrl"
:
"../../tpl/documentary/crmDocumentaryList.html"
},
"crmFollowUpAuthEnum"
:
{
"name"
:
"回访权限"
,
"className"
:
"skyeye-crm#com.skyeye.follow.classenum.CrmFollowUpAuthEnum"
,
"pageUrl"
:
"../../tpl/follow/crmFollowList.html"
},
"accountSubjectType"
:
{
"name"
:
"会计科目类型"
,
"className"
:
"skyeye-ifs#com.skyeye.subject.classenum.AccountSubjectType"
},
"amountDirection"
:
{
"name"
:
"余额方向"
,
"className"
:
"skyeye-ifs#com.skyeye.subject.classenum.AmountDirection"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录