Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_53077510
production_ssm
提交
5bbd443f
P
production_ssm
项目概览
weixin_53077510
/
production_ssm
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
production_ssm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5bbd443f
编写于
10月 07, 2016
作者:
M
megagao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加了文件
上级
758d4d17
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
162 addition
and
0 deletion
+162
-0
src/main/webapp/WEB-INF/jsp/NewFile.jsp
src/main/webapp/WEB-INF/jsp/NewFile.jsp
+162
-0
未找到文件。
src/main/webapp/WEB-INF/jsp/NewFile.jsp
0 → 100644
浏览文件 @
5bbd443f
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<link
href=
"js/kindeditor-4.1.10/themes/default/default.css"
type=
"text/css"
rel=
"stylesheet"
>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"js/kindeditor-4.1.10/kindeditor-all-min.js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"js/kindeditor-4.1.10/lang/zh_CN.js"
></script>
<table
class=
"easyui-datagrid"
id=
"customList"
title=
"订单列表"
data-options=
"singleSelect:false,collapsible:true,pagination:true,url:'custom/list',method:'get',pageSize:30,toolbar:toolbar"
>
<thead>
<tr>
<th
data-options=
"field:'ck',checkbox:true"
></th>
<th
data-options=
"field:'customId',width:100"
>
客户编号
</th>
<th
data-options=
"field:'customName',width:100"
>
客户名称
</th>
<th
data-options=
"field:'fullName',width:200"
>
客户全称
</th>
<th
data-options=
"field:'address',width:100"
>
地址
</th>
<th
data-options=
"field:'fax',width:100,align:'right'"
>
传真
</th>
<th
data-options=
"field:'email',width:100,align:'right'"
>
邮箱
</th>
<th
data-options=
"field:'ownerName',width:60,align:'center'"
>
经理姓名
</th>
<th
data-options=
"field:'ownerTel',width:100,align:'center'"
>
联系电话
</th>
<th
data-options=
"field:'status',width:60,align:'center',formatter:TAOTAO.formatCustomStatus"
>
客户状态
</th>
<th
data-options=
"field:'note',width:130,align:'center' formatter:formatNote"
>
备注
</th>
</tr>
</thead>
</table>
<div
id=
"customEditWindow"
class=
"easyui-window"
title=
"编辑订单"
data-options=
"modal:true,closed:true,resizable:true,iconCls:'icon-save',href:'custom/edit'"
style=
"width:65%;height:80%;padding:10px;"
>
</div>
<div
id=
"noteDialog"
class=
"easyui-dialog"
title=
"备注"
data-options=
"modal:false,closed:true,resizable:true,iconCls:'icon-save'"
style=
"width:65%;height:80%;padding:10px;display: none"
>
<form
id=
"noteForm"
class=
"itemForm"
method=
"post"
>
<table
cellpadding=
"5"
>
<tr>
<td>
备注:
</td>
<td>
<textarea
style=
"width:800px;height:300px;visibility:hidden;"
name=
"note"
></textarea>
</td>
</tr>
</table>
</form>
</div>
<script>
function
onClickRow
(
index
)
{
var
rows
=
$
(
'
#orderList
'
).
datagrid
(
'
getRows
'
);
return
rows
[
index
];
}
function
formatNote
(
value
,
row
,
index
){
return
"
<a href=javascript:openNote(
"
+
index
+
"
)>
"
+
"
备注
"
+
"
</a>
"
;
}
function
openNote
(
index
){
var
row
=
onClickRow
(
index
);
alert
(
row
.
note
);
$
(
"
#noteDialog
"
).
dialog
({
onOpen
:
function
(){
var
noteEditor
;
noteEditor
=
TAOTAO
.
createEditor
(
"
#noteForm [name=note]
"
);
noteEditor
.
html
(
row
.
note
);
},
onBeforeClose
:
function
(
event
,
ui
)
{
// 关闭Dialog前移除编辑器
KindEditor
.
remove
(
"
#noteForm [name=note]
"
);
}
}).
dialog
(
"
open
"
);
};
function
getSelectionsIds
(){
var
customList
=
$
(
"
#customList
"
);
var
sels
=
customList
.
datagrid
(
"
getSelections
"
);
var
ids
=
[];
for
(
var
i
in
sels
){
ids
.
push
(
sels
[
i
].
customId
);
}
ids
=
ids
.
join
(
"
,
"
);
return
ids
;
}
var
toolbar
=
[{
text
:
'
新增
'
,
iconCls
:
'
icon-add
'
,
handler
:
function
(){
$
(
"
.tree-title:contains('新增客户')
"
).
parent
().
click
();
}
},{
text
:
'
编辑
'
,
iconCls
:
'
icon-edit
'
,
handler
:
function
(){
var
ids
=
getSelectionsIds
();
if
(
ids
.
length
==
0
){
$
.
messager
.
alert
(
'
提示
'
,
'
必须选择一个客户才能编辑!
'
);
return
;
}
if
(
ids
.
indexOf
(
'
,
'
)
>
0
){
$
.
messager
.
alert
(
'
提示
'
,
'
只能选择一个客户!
'
);
return
;
}
$
(
"
#customEditWindow
"
).
window
({
onLoad
:
function
(){
//回显数据
var
data
=
$
(
"
#customList
"
).
datagrid
(
"
getSelections
"
)[
0
];
$
(
"
#customEditForm
"
).
form
(
"
load
"
,
data
);
customEditEditor
.
html
(
data
.
note
);
}
}).
window
(
"
open
"
);
}
},{
text
:
'
删除
'
,
iconCls
:
'
icon-cancel
'
,
handler
:
function
(){
var
ids
=
getSelectionsIds
();
if
(
ids
.
length
==
0
){
$
.
messager
.
alert
(
'
提示
'
,
'
未选中客户!
'
);
return
;
}
$
.
messager
.
confirm
(
'
确认
'
,
'
确定删除ID为
'
+
ids
+
'
的客户吗?
'
,
function
(
r
){
if
(
r
){
var
params
=
{
"
ids
"
:
ids
};
$
.
post
(
"
custom/delete_batch
"
,
params
,
function
(
data
){
if
(
data
.
status
==
200
){
$
.
messager
.
alert
(
'
提示
'
,
'
删除客户成功!
'
,
undefined
,
function
(){
$
(
"
#customList
"
).
datagrid
(
"
reload
"
);
});
}
});
}
});
}
},
'
-
'
,{
text
:
'
下架
'
,
iconCls
:
'
icon-remove
'
,
handler
:
function
(){
var
ids
=
getSelectionsIds
();
if
(
ids
.
length
==
0
){
$
.
messager
.
alert
(
'
提示
'
,
'
未选中客户!
'
);
return
;
}
$
.
messager
.
confirm
(
'
确认
'
,
'
确定下架ID为
'
+
ids
+
'
的客户吗?
'
,
function
(
r
){
if
(
r
){
var
params
=
{
"
ids
"
:
ids
};
$
.
post
(
"
/rest/custom/instock
"
,
params
,
function
(
data
){
if
(
data
.
status
==
200
){
$
.
messager
.
alert
(
'
提示
'
,
'
下架客户成功!
'
,
undefined
,
function
(){
$
(
"
#customList
"
).
datagrid
(
"
reload
"
);
});
}
});
}
});
}
},{
text
:
'
刷新
'
,
iconCls
:
'
icon-reload
'
,
handler
:
function
(){
$
(
"
#customList
"
).
datagrid
(
"
reload
"
);
}
}];
</script>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录