提交 768d98db 编写于 作者: W weizhiqiang

【架构】人选选择代码整改

上级 63d24458
var clickId = "";//选中的用户组id
var name = ""; //用户组名
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
layui.config({
base: basePath,
......@@ -20,7 +18,6 @@ layui.config({
authBtn('1563451417564');//一键移除用户
authBtn('1572334408610');//同步人员到工作流
var userInfo = ""; //用户id
showLeft();
//初始化左侧菜单用户组数据
......@@ -180,7 +177,7 @@ layui.config({
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'actgroup007',
where: {groupId: clickId, userName: $("#userName").val()},
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
......@@ -210,32 +207,23 @@ layui.config({
// 新增用户
$("body").on("click", "#addUser", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
userList = [].concat(userReturnList);
$.each(userList, function (i, item) {
userInfo += item.id + ',';
})
AjaxPostUtil.request({url: flowableBasePath + "actgroup003", params: {rowId: clickId, userId: userInfo}, type: 'json', callback: function(json){
if(json.returnCode == 0){
userList = [];
userReturnList = [];
userInfo = "";
loadTable();
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2, time: 2000});
}
systemCommonUtil.userReturnList = [];
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
var userInfo = "";
$.each(userReturnList, function (i, item) {
userInfo += item.id + ',';
})
AjaxPostUtil.request({url: flowableBasePath + "actgroup003", params: {rowId: clickId, userId: userInfo}, type: 'json', callback: function(json) {
if (json.returnCode == 0) {
loadTable();
} else {
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
});
});
//一键移除指定用户组下的所有用户
......@@ -295,11 +283,19 @@ layui.config({
});
//搜索条件
function loadTable(){
table.reload("messageTable", {where:{groupId: clickId, userName: $("#userName").val()}});
table.reload("messageTable", {where: getTableParams()});
}
function refreshTable(){
table.reload("messageTable", {page: {curr: 1}, where:{groupId: clickId, userName: $("#userName").val()}});
table.reload("messageTable", {page: {curr: 1}, where: getTableParams()});
}
function getTableParams() {
return {
groupId: clickId,
userName: $("#userName").val()
};
}
//刷新用户
$("body").on("click", "#reloadTable", function(){
loadTable();
......
......@@ -105,8 +105,8 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
chooseUserList[rowIndex] = staffChooseList[0];
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
chooseUserList[rowIndex] = userReturnList[0];
table.reload("messageTable", {data: chooseUserList});
});
});
......
......@@ -105,8 +105,8 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
chooseUserList[rowIndex] = staffChooseList[0];
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
chooseUserList[rowIndex] = userReturnList[0];
table.reload("messageTable", {data: chooseUserList});
});
});
......
......@@ -197,8 +197,8 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
chooseUserList[rowIndex] = staffChooseList[0];
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
chooseUserList[rowIndex] = userReturnList[0];
table.reload("messageTable", {data: chooseUserList});
});
});
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 用品信息
layui.config({
base: basePath,
......@@ -76,28 +71,14 @@ layui.config({
});
// 用品管理人选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#assetAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#assetAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#assetAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('assetAdmin', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 用品信息
layui.config({
base: basePath,
......@@ -103,28 +98,14 @@ layui.config({
// 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#assetAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#assetAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#assetAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('assetAdmin', userReturnList));
});
});
$("body").on("click", ".enclosureItem", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var employeeuserList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 资产信息
layui.config({
......@@ -141,28 +137,14 @@ layui.config({
});
//资产管理人选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#assetAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#assetAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#assetAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('assetAdmin', userReturnList));
});
});
//资产领用人
$('#employeeId').tagEditor({
......@@ -184,28 +166,14 @@ layui.config({
});
//资产领用人选择
$("body").on("click", "#employeePeople", function(e){
userReturnList = [].concat(employeeuserList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#employeeId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#employeeId').tagEditor('removeTag', tags[i]);
}
employeeuserList = [].concat(userReturnList);
//添加新的tag
$.each(employeeuserList, function(i, item){
$('#employeeId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(employeeuserList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
employeeuserList = [].concat(systemCommonUtil.tagEditorResetData('employeeId', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var employeeuserList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 资产信息
layui.config({
......@@ -193,63 +189,35 @@ layui.config({
}
});
//管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#assetAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#assetAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#assetAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
// 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('assetAdmin', userReturnList));
});
});
//领用人选择
$("body").on("click", "#employeePeople", function(e){
userReturnList = [].concat(employeeuserList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#employeeId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#employeeId').tagEditor('removeTag', tags[i]);
}
employeeuserList = [].concat(userReturnList);
//添加新的tag
$.each(employeeuserList, function(i, item){
$('#employeeId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
// 领用人选择
$("body").on("click", "#employeePeople", function(e) {
systemCommonUtil.userReturnList = [].concat(employeeuserList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
employeeuserList = [].concat(systemCommonUtil.tagEditorResetData('employeeId', userReturnList));
});
});
$("body").on("click", ".enclosureItem", function(){
$("body").on("click", ".enclosureItem", function() {
download(fileBasePath + $(this).attr("rowpath"), $(this).html());
});
$("body").on("click", "#cancle", function(){
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 会议室信息
layui.config({
base: basePath,
......@@ -91,28 +86,14 @@ layui.config({
// 会议室管理人选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#roomAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#roomAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#roomAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('roomAdmin', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 会议室信息
layui.config({
base: basePath,
......@@ -120,28 +115,14 @@ layui.config({
// 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#roomAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#roomAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#roomAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('roomAdmin', userReturnList));
});
});
$("body").on("click", ".enclosureItem", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var borrowList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 证照管理
layui.config({
base: basePath,
......@@ -123,29 +118,15 @@ layui.config({
}
});
// 管理人选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#licenceAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#licenceAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#licenceAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#userNameSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('licenceAdmin', userReturnList));
});
});
// 借用人
......@@ -167,32 +148,18 @@ layui.config({
}
});
// 借用人选择
$("body").on("click", "#borrowNameSelPeople", function(e){
userReturnList = [].concat(borrowList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#borrowId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#borrowId').tagEditor('removeTag', tags[i]);
}
borrowList = [].concat(userReturnList);
//添加新的tag
$.each(borrowList, function(i, item){
$('#borrowId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#borrowNameSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(borrowList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
borrowList = [].concat(systemCommonUtil.tagEditorResetData('borrowId', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var borrowList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 证照管理
layui.config({
base: basePath,
......@@ -184,58 +179,30 @@ layui.config({
});
// 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#licenceAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#licenceAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#licenceAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#userNameSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('licenceAdmin', userReturnList));
});
});
// 借用人员选择
$("body").on("click", "#borrowNameSelPeople", function(e){
userReturnList = [].concat(borrowList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#borrowId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#borrowId').tagEditor('removeTag', tags[i]);
}
borrowList = [].concat(userReturnList);
// 添加新的tag
$.each(borrowList, function(i, item){
$('#borrowId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#borrowNameSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(borrowList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
borrowList = [].concat(systemCommonUtil.tagEditorResetData('borrowId', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var borrowuserList = new Array();
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 印章信息
layui.config({
......@@ -79,29 +75,15 @@ layui.config({
}
});
// 管理人选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#sealAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#sealAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#sealAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#userNameSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('sealAdmin', userReturnList));
});
});
// 借用人
......@@ -123,32 +105,18 @@ layui.config({
}
});
// 借用人选择
$("body").on("click", "#borrowPeople", function(e){
userReturnList = [].concat(borrowuserList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "borrowpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#borrowId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#borrowId').tagEditor('removeTag', tags[i]);
}
borrowuserList = [].concat(userReturnList);
//添加新的tag
$.each(borrowuserList, function(i, item){
$('#borrowId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#borrowPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(borrowuserList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
borrowuserList = [].concat(systemCommonUtil.tagEditorResetData('borrowId', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var borrowuserList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 印章信息
layui.config({
......@@ -130,54 +126,26 @@ layui.config({
// 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#sealAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#sealAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#sealAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('sealAdmin', userReturnList));
});
});
// 借用人选择
$("body").on("click", "#borrowPeople", function(e){
userReturnList = [].concat(borrowuserList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#borrowId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#borrowId').tagEditor('removeTag', tags[i]);
}
borrowuserList = [].concat(userReturnList);
//添加新的tag
$.each(borrowuserList, function(i, item){
$('#borrowId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(borrowuserList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
borrowuserList = [].concat(systemCommonUtil.tagEditorResetData('borrowId', userReturnList));
});
});
$("body").on("click", ".enclosureItem", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 车辆信息
layui.config({
base: basePath,
......@@ -134,36 +129,22 @@ layui.config({
}
});
// 车辆管理人选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['600px', '500px'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#vehicleAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#vehicleAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#vehicleAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#userNameSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('vehicleAdmin', userReturnList));
});
});
$("body").on("click", ".enclosureItem", function(){
$("body").on("click", ".enclosureItem", function() {
download(fileBasePath + $(this).attr("rowpath"), $(this).html());
});
$("body").on("click", "#cancle", function(){
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 车辆信息
layui.config({
base: basePath,
......@@ -153,28 +148,14 @@ layui.config({
// 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['600px', '500px'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#vehicleAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#vehicleAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#vehicleAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('vehicleAdmin', userReturnList));
});
});
$("body").on("click", ".enclosureItem", function(){
......
......@@ -78,13 +78,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 移除所有tag
var tags = $('#interviewer').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#interviewer').tagEditor('removeTag', tags[i]);
}
interviewer = [].concat(staffChooseList);
interviewer = [].concat(userReturnList);
// 添加新的tag
$.each(interviewer, function(i, item){
$('#interviewer').tagEditor('addTag', item.name);
......
......@@ -71,13 +71,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 移除所有tag
var tags = $('#chargePersonId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#chargePersonId').tagEditor('removeTag', tags[i]);
}
chargePerson = [].concat(staffChooseList);
chargePerson = [].concat(userReturnList);
// 添加新的tag
$.each(chargePerson, function(i, item){
$('#chargePersonId').tagEditor('addTag', item.name);
......
......@@ -94,13 +94,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 移除所有tag
var tags = $('#chargePersonId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#chargePersonId').tagEditor('removeTag', tags[i]);
}
chargePerson = [].concat(staffChooseList);
chargePerson = [].concat(userReturnList);
// 添加新的tag
$.each(chargePerson, function(i, item){
$('#chargePersonId').tagEditor('addTag', item.name);
......
......@@ -82,13 +82,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 移除所有tag
var tags = $('#personLiable').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#personLiable').tagEditor('removeTag', tags[i]);
}
personLiable = [].concat(staffChooseList);
personLiable = [].concat(userReturnList);
// 添加新的tag
$.each(personLiable, function(i, item){
$('#personLiable').tagEditor('addTag', item.name);
......
......@@ -3,11 +3,6 @@ var responsIdList = new Array();// 商机负责人返回的集合或者进行回
var partIdList = new Array();// 商机参与人返回的集合或者进行回显的集合
var followIdList = new Array();// 商机关注人返回的集合或者进行回显的集合
var userReturnList = new Array();// 选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";// 人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";// 人员选择类型,1.多选;其他。单选
// 已经选择的客户信息
var customerMation = {};
......@@ -156,29 +151,14 @@ layui.config({
});
// 商机负责人选择
$("body").on("click", "#responsIdSelPeople", function(e){
userReturnList = [].concat(responsIdList);
checkType = "2";//人员选择类型,1.多选;其他。单选
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#responsId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#responsId').tagEditor('removeTag', tags[i]);
}
responsIdList = [].concat(userReturnList);
//添加新的tag
$.each(responsIdList, function(i, item){
$('#responsId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(responsIdList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
responsIdList = [].concat(systemCommonUtil.tagEditorResetData('responsId', userReturnList));
});
});
// 商机参与人
......@@ -201,29 +181,14 @@ layui.config({
});
// 商机参与人选择
$("body").on("click", "#partIdSelPeople", function(e){
userReturnList = [].concat(partIdList);
checkType = "1";//人员选择类型,1.多选;其他。单选
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#partId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#partId').tagEditor('removeTag', tags[i]);
}
partIdList = [].concat(userReturnList);
//添加新的tag
$.each(partIdList, function(i, item){
$('#partId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(partIdList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
partIdList = [].concat(systemCommonUtil.tagEditorResetData('partId', userReturnList));
});
});
// 商机关注人
......@@ -246,29 +211,14 @@ layui.config({
});
// 商机关注人选择
$("body").on("click", "#followIdSelPeople", function(e){
checkType = "1";//人员选择类型,1.多选;其他。单选
userReturnList = [].concat(followIdList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#followId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#followId').tagEditor('removeTag', tags[i]);
}
followIdList = [].concat(userReturnList);
//添加新的tag
$.each(followIdList, function(i, item){
$('#followId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(followIdList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
followIdList = [].concat(systemCommonUtil.tagEditorResetData('followId', userReturnList));
});
});
// 客户选择
......
......@@ -3,11 +3,6 @@ var responsIdList = new Array();// 商机负责人返回的集合或者进行回
var partIdList = new Array();// 商机参与人返回的集合或者进行回显的集合
var followIdList = new Array();// 商机关注人返回的集合或者进行回显的集合
var userReturnList = new Array();// 选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";// 人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";// 人员选择类型,1.多选;其他。单选
// 已经选择的客户信息
var customerMation = {};
......@@ -26,9 +21,6 @@ layui.config({
textool = layui.textool;
var selOption = getFileContent('tpl/template/select-option.tpl');
var partId = ""; //商机参与人id
var followId = ""; //商机关注人id
showGrid({
id: "showForm",
url: flowableBasePath + "opportunity004",
......@@ -106,29 +98,14 @@ layui.config({
}
});
$("body").on("click", "#responsIdSelPeople", function(e){
userReturnList = [].concat(responsIdList);
checkType = "2";// 人员选择类型,1.多选;其他。单选
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#responsId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#responsId').tagEditor('removeTag', tags[i]);
}
responsIdList = [].concat(userReturnList);
// 添加新的tag
$.each(responsIdList, function(i, item){
$('#responsId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(responsIdList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
responsIdList = [].concat(systemCommonUtil.tagEditorResetData('responsId', userReturnList));
});
});
/*商机负责人选择结束*/
......@@ -156,29 +133,14 @@ layui.config({
}
});
$("body").on("click", "#partIdSelPeople", function(e){
userReturnList = [].concat(partIdList);
checkType = "1";// 人员选择类型,1.多选;其他。单选
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#partId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#partId').tagEditor('removeTag', tags[i]);
}
partIdList = [].concat(userReturnList);
// 添加新的tag
$.each(partIdList, function(i, item){
$('#partId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(partIdList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
partIdList = [].concat(systemCommonUtil.tagEditorResetData('partId', userReturnList));
});
});
/*商机参与人选择结束*/
......@@ -206,29 +168,14 @@ layui.config({
}
});
$("body").on("click", "#followIdSelPeople", function(e){
userReturnList = [].concat(followIdList);
checkType = "1";// 人员选择类型,1.多选;其他。单选
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#followId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#followId').tagEditor('removeTag', tags[i]);
}
followIdList = [].concat(userReturnList);
// 添加新的tag
$.each(followIdList, function(i, item){
$('#followId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(followIdList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
followIdList = [].concat(systemCommonUtil.tagEditorResetData('followId', userReturnList));
});
});
/*商机关注人选择结束*/
form.render();
......@@ -301,6 +248,7 @@ layui.config({
if(partIdList.length == 0 || isNull($('#partId').tagEditor('getTags')[0].tags)){
params.partId = "";
}else{
var partId = "";
$.each(partIdList, function (i, item) {
partId += item.id + ',';
});
......@@ -310,13 +258,14 @@ layui.config({
if(followIdList.length == 0 || isNull($('#followId').tagEditor('getTags')[0].tags)){
params.followId = "";
}else{
var followId = "";
$.each(followIdList, function (i, item) {
followId += item.id + ',';
});
params.followId = followId;
}
AjaxPostUtil.request({url: flowableBasePath + "opportunity012", params: params, type: 'json', callback: function(json){
if (json.returnCode == 0){
AjaxPostUtil.request({url: flowableBasePath + "opportunity012", params: params, type: 'json', callback: function(json) {
if (json.returnCode == 0) {
parent.layer.close(index);
parent.refreshCode = '0';
} else {
......@@ -326,7 +275,7 @@ layui.config({
}
// 客户选择
$("body").on("click", "#customMationSel", function(e){
$("body").on("click", "#customMationSel", function(e) {
_openNewWindows({
url: "../../tpl/customermanage/customerChoose.html",
title: "选择客户",
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var customerMation = {};
......@@ -84,28 +80,14 @@ layui.config({
});
// 关联人员选择选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#relationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#relationUserId').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#relationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('relationUserId', userReturnList));
});
});
//客户选择
......@@ -149,8 +131,8 @@ layui.config({
return false;
});
function saveData(subType, approvalId){
if(isNull(customerMation.id)){
function saveData(subType, approvalId) {
if(isNull(customerMation.id)) {
winui.window.msg("请选择客户", {icon: 2, time: 2000});
return false;
}
......@@ -188,7 +170,7 @@ layui.config({
});
params.relationUserId = relationUserId;
}
AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract002", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract002", params: params, type: 'json', callback: function(json) {
if (json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var processInstanceId = "";
//已经选择的客户信息
......@@ -114,28 +110,14 @@ layui.config({
// 关联人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#relationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#relationUserId').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#relationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('relationUserId', userReturnList));
});
});
// 客户选择
......
var userList = new Array();// 选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();// 选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";// 人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";// 人员选择类型,1.多选;其他。单选
// 新增客户
layui.config({
......@@ -116,23 +112,18 @@ layui.config({
// 负责人选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
userList = [].concat(userReturnList);
// 添加选择
$.each(userList, function(i, item){
$("#relationUserId").val(item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(userReturnList);
// 添加选择
$.each(userList, function(i, item) {
$("#relationUserId").val(item.name);
});
});
});
$("body").on("click", "#cancle", function(){
......
var userList = new Array();// 选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();// 选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";// 人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";// 人员选择类型,1.多选;其他。单选
layui.config({
base: basePath,
......@@ -138,23 +134,17 @@ layui.config({
// 负责人选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
userList = [].concat(userReturnList);
//添加选择
$.each(userList, function(i, item){
$("#relationUserId").val(item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
userList = [].concat(userReturnList);
//添加选择
$.each(userList, function(i, item){
$("#relationUserId").val(item.name);
});
});
});
$("body").on("click", "#cancle", function(){
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "1";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -62,11 +57,14 @@ layui.config({
// 人员选择
$("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){
userReturnList = [];
var clickId = $(this).attr("id");
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.userReturnList = [];
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 添加新的tag
$.each(staffChooseList, function(i, item){
$.each(userReturnList, function(i, item){
if(clickId == 'toPeopleSelPeople'){
$('#toPeople').tagEditor('addTag', item.email);
}else if(clickId == 'toCcSelPeople'){
......
......@@ -67,9 +67,9 @@ layui.config({
$("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){
userReturnList = [];
var clickId = $(this).attr("id");
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 添加新的tag
$.each(staffChooseList, function(i, item){
$.each(userReturnList, function(i, item){
if(clickId == 'toPeopleSelPeople'){
$('#toPeople').tagEditor('addTag', item.email);
}else if(clickId == 'toCcSelPeople'){
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "1";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 邮件模板
var emailSendModel = {};
// 如果邮件是从别的服务器同步来的,那么包含的附件可能在我们的附件库上没有,这个对象负责存储那些我们的附件库上没有的附件
......@@ -261,11 +256,14 @@ layui.config({
// 人员选择
$("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){
userReturnList = [];
var clickId = $(this).attr("id");
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.userReturnList = [];
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 添加新的tag
$.each(staffChooseList, function(i, item){
$.each(userReturnList, function(i, item) {
if(clickId == 'toPeopleSelPeople'){
$('#toPeople').tagEditor('addTag', item.email);
}else if(clickId == 'toCcSelPeople'){
......
......@@ -3,11 +3,6 @@
var procedureCheckType = 2;//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var procedureMationList = new Array();
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -92,22 +87,16 @@ layui.config({
// 车间负责人选择
$("body").on("click", "#chargeUserIdSelPeople", function(e){
userReturnList = [].concat(chargeUser);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
chargeUser = [].concat(userReturnList);
if(chargeUser.length > 0){
$("#chargeUserId").val(chargeUser[0].name);
}
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(chargeUser);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
chargeUser = [].concat(userReturnList);
if(chargeUser.length > 0){
$("#chargeUserId").val(chargeUser[0].name);
}
});
});
// 取消
......
......@@ -3,11 +3,6 @@
var procedureCheckType = 2;//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var procedureMationList = new Array();
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -111,27 +106,21 @@ layui.config({
});
// 车间负责人选择
$("body").on("click", "#chargeUserIdSelPeople", function(e){
userReturnList = [].concat(chargeUser);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
chargeUser = [].concat(userReturnList);
if(chargeUser.length > 0){
$("#chargeUserId").val(chargeUser[0].name);
}
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#chargeUserIdSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(chargeUser);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
chargeUser = [].concat(userReturnList);
if(chargeUser.length > 0){
$("#chargeUserId").val(chargeUser[0].name);
}
});
});
// 取消
$("body").on("click", "#cancle", function(){
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -102,33 +97,18 @@ layui.config({
}
});
// 工序操作员选择
$("body").on("click", "#procedureUserIdSelPeople", function(e){
checkType = '1';
userReturnList = [].concat(procedureUser);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#procedureUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#procedureUserId').tagEditor('removeTag', tags[i]);
}
procedureUser = [].concat(userReturnList);
// 添加新的tag
$.each(procedureUser, function(i, item){
$('#procedureUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#procedureUserIdSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(procedureUser);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
procedureUser = [].concat(systemCommonUtil.tagEditorResetData('procedureUserId', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -121,29 +116,14 @@ layui.config({
// 工序操作员选择
$("body").on("click", "#procedureUserIdSelPeople", function(e){
checkType = '1';
userReturnList = [].concat(procedureUser);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#procedureUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#procedureUserId').tagEditor('removeTag', tags[i]);
}
procedureUser = [].concat(userReturnList);
// 添加新的tag
$.each(procedureUser, function(i, item){
$('#procedureUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(procedureUser);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
procedureUser = [].concat(systemCommonUtil.tagEditorResetData('procedureUserId', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 已经选择的客户信息
var customerMation = {};
......@@ -243,28 +239,14 @@ layui.config({
// 人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(salesManList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
});
});
// 新增行
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 已经选择的客户信息
var customerMation = {};
......@@ -324,28 +320,14 @@ layui.config({
//人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(salesManList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
});
});
//新增行
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var customerMation = {};
......@@ -343,28 +339,14 @@ layui.config({
//人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(salesManList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
});
});
/*********************** 商品表格操作 start ****************************/
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var customerMation = {};
......@@ -251,29 +247,15 @@ layui.config({
});
//人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#toSalesManSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(salesManList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
});
});
/*********************** 商品表格操作 start ****************************/
//新增行
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var customerMation = {};
......@@ -335,28 +331,14 @@ layui.config({
//人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(salesManList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
});
});
/*********************** 商品表格操作 start ****************************/
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var customerMation = {};
......@@ -253,28 +249,14 @@ layui.config({
//人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(salesManList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
});
});
/*********************** 商品表格操作 start ****************************/
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var customerMation = {};
......@@ -333,30 +329,16 @@ layui.config({
}});
}
//人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
// 人员选择
$("body").on("click", "#toSalesManSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(salesManList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
});
});
/*********************** 商品表格操作 start ****************************/
......
......@@ -79,8 +79,8 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList) {
chooseUser = [].concat(staffChooseList);
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
chooseUser = [].concat(userReturnList);
// 重置数据
systemCommonUtil.tagEditorResetData('principal', chooseUser);
});
......
......@@ -102,9 +102,9 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList) {
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
chooseUser = [].concat(systemCommonUtil.tagEditorResetData('principal', staffChooseList));
chooseUser = [].concat(systemCommonUtil.tagEditorResetData('principal', userReturnList));
});
});
......
......@@ -136,13 +136,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 移除所有tag
var tags = $('#handsPersonId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#handsPersonId').tagEditor('removeTag', tags[i]);
}
handsPersonList = [].concat(staffChooseList);
handsPersonList = [].concat(userReturnList);
// 添加新的tag
$.each(handsPersonList, function(i, item){
$('#handsPersonId').tagEditor('addTag', item.name);
......
......@@ -201,13 +201,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 移除所有tag
var tags = $('#handsPersonId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#handsPersonId').tagEditor('removeTag', tags[i]);
}
handsPersonList = [].concat(staffChooseList);
handsPersonList = [].concat(userReturnList);
// 添加新的tag
$.each(handsPersonList, function(i, item){
$('#handsPersonId').tagEditor('addTag', item.name);
......
var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合
// 我的日报
......@@ -91,7 +86,7 @@ layui.config({
},
ajaxSendAfter:function(json){
var userNames = "";
var userList = json.bean.userInfo;
userList = json.bean.userInfo;
$.each(userList, function (i, item) {
userNames += item.name + ',';
});
......@@ -120,28 +115,14 @@ layui.config({
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo});
//人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
});
});
matchingLanguage();
......
var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合
// 我的月报
......@@ -91,7 +86,7 @@ layui.config({
},
ajaxSendAfter:function(json){
var userNames = "";
var userList = json.bean.userInfo;
userList = json.bean.userInfo;
$.each(userList, function (i, item) {
userNames += item.name + ',';
});
......@@ -120,29 +115,15 @@ layui.config({
// 附件回显
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo});
//人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#userNameSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
});
});
matchingLanguage();
......
......@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 发送日志
layui.config({
base: basePath,
......@@ -22,10 +17,6 @@ layui.config({
form = layui.form;
layedit = layui.layedit;
var userInfo = ""; //日报接收人id
var weekUserInfo = ""; //周报接收人id
var monthUserInfo = ""; //月报接收人id
//日报标题
var today = new Date();
var submitTime = today.getFullYear() + '' + (today.getMonth() + 1) + '' + today.getDate() + '日日报'; 
......@@ -174,6 +165,7 @@ layui.config({
winui.window.msg('请选择收件人', {icon: 2,time: 2000});
return false;
}else{
var userInfo = "";
$.each(userList, function (i, item) {
userInfo += item.id + ',';
});
......@@ -286,6 +278,7 @@ layui.config({
winui.window.msg('请选择收件人', {icon: 2,time: 2000});
return false;
}else{
var weekUserInfo = "";
$.each(userList, function (i, item) {
weekUserInfo += item.id + ',';
});
......@@ -402,6 +395,7 @@ layui.config({
winui.window.msg('请选择收件人', {icon: 2,time: 2000});
return false;
}else{
var monthUserInfo = "";
$.each(userList, function (i, item) {
monthUserInfo += item.id + ',';
});
......@@ -475,28 +469,14 @@ layui.config({
});
//日报人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
});
});
//周报接收人
$('#weekUserName').tagEditor({
......@@ -518,28 +498,14 @@ layui.config({
});
//周报人员选择
$("body").on("click", "#weekUserNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysusersel",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#weekUserName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#weekUserName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#weekUserName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('weekUserName', userReturnList));
});
});
//月报接收人
$('#monthUserName').tagEditor({
......@@ -561,28 +527,14 @@ layui.config({
});
//月报人员选择
$("body").on("click", "#monthUserNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysusersel",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#monthUserName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#monthUserName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#monthUserName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('monthUserName', userReturnList));
});
});
});
......
var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合
// 我的周报
......@@ -20,8 +15,7 @@ layui.config({
var $ = layui.$;
layedit = layui.layedit;
var reg = new RegExp("<br>", "g");
var userId = ""; //月报接收人id
layedit.set({
uploadImage: {
url: reqBasePath + "common003", //接口url
......@@ -91,7 +85,7 @@ layui.config({
},
ajaxSendAfter:function(json){
var userNames = "";
var userList = json.bean.userInfo;
userList = json.bean.userInfo;
$.each(userList, function (i, item) {
userNames += item.name + ',';
});
......@@ -121,28 +115,14 @@ layui.config({
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo});
//人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
});
});
matchingLanguage();
......@@ -212,6 +192,7 @@ layui.config({
winui.window.msg('请选择收件人', {icon: 2,time: 2000});
return false;
}else{
var userId = "";
$.each(userList, function (i, item) {
userId += item.id + ',';
});
......@@ -262,12 +243,12 @@ layui.config({
}
});
$("body").on("click", ".enclosureItem", function(){
$("body").on("click", ".enclosureItem", function() {
download(fileBasePath + $(this).attr("rowpath"), $(this).html());
});
//取消
$("body").on("click", "#weekCancle", function(){
// 取消
$("body").on("click", "#weekCancle", function() {
parent.layer.close(index);
});
});
......
var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "1";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合
layui.config({
......@@ -175,28 +170,14 @@ layui.config({
//人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
......
var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "1";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合
layui.config({
......@@ -17,8 +12,8 @@ layui.config({
layui.use(['form', 'layedit'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
tableSelect = layui.tableSelect,
laydate = layui.laydate;
tableSelect = layui.tableSelect,
laydate = layui.laydate;
layedit = layui.layedit;
//初始化一级公告类型
function initNoticeType(id){
......@@ -158,28 +153,14 @@ layui.config({
});
//人员选择
$("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
});
});
matchingLanguage();
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 项目任命
layui.config({
base: basePath,
......@@ -22,9 +17,6 @@ layui.config({
var toProjectSponsor = new Array();//项目赞助人
var toProjectMembers = new Array();//项目组成员
var projectEnclosureInfoList = new Array();//项目组织和分工的附件
var planEnclosureInfoList = new Array();//实施计划和方案的附件
showGrid({
id: "showForm",
url: flowableBasePath + "proproject013",
......@@ -196,80 +188,38 @@ layui.config({
//项目经理选择
$("body").on("click", "#toProjectManager", function(e){
userReturnList = [].concat(toProjectManager);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#projectManager').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#projectManager').tagEditor('removeTag', tags[i]);
}
toProjectManager = [].concat(userReturnList);
//添加新的tag
$.each(toProjectManager, function(i, item){
$('#projectManager').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(toProjectManager);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
toProjectManager = [].concat(systemCommonUtil.tagEditorResetData('projectManager', userReturnList));
});
});
//项目赞助人选择
$("body").on("click", "#toProjectSponsor", function(e){
userReturnList = [].concat(toProjectSponsor);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#projectSponsor').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#projectSponsor').tagEditor('removeTag', tags[i]);
}
toProjectSponsor = [].concat(userReturnList);
//添加新的tag
$.each(toProjectSponsor, function(i, item){
$('#projectSponsor').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(toProjectSponsor);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
toProjectSponsor = [].concat(systemCommonUtil.tagEditorResetData('projectSponsor', userReturnList));
});
});
//项目组成员选择
$("body").on("click", "#toProjectMembers", function(e){
userReturnList = [].concat(toProjectMembers);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#projectMembers').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#projectMembers').tagEditor('removeTag', tags[i]);
}
toProjectMembers = [].concat(userReturnList);
//添加新的tag
$.each(toProjectMembers, function(i, item){
$('#projectMembers').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(toProjectMembers);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
toProjectMembers = [].concat(systemCommonUtil.tagEditorResetData('projectMembers', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
......
var performIdList = new Array();//执行人返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 项目工作量分配
layui.config({
base: basePath,
......@@ -173,30 +168,16 @@ layui.config({
}
});
//执行人选择
$("body").on("click", "#performIdSelPeople", function(e){
userReturnList = [].concat(performIdList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#performId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#performId').tagEditor('removeTag', tags[i]);
}
performIdList = [].concat(userReturnList);
//添加新的tag
$.each(performIdList, function(i, item){
$('#performId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
// 执行人选择
$("body").on("click", "#performIdSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(performIdList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
performIdList = [].concat(systemCommonUtil.tagEditorResetData('performId', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
......
var performIdList = new Array();//执行人返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 项目工作量分配
layui.config({
base: basePath,
......@@ -129,29 +124,15 @@ layui.config({
}
}
});
$("body").on("click", "#performIdSelPeople", function(e){
userReturnList = [].concat(performIdList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#performId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#performId').tagEditor('removeTag', tags[i]);
}
performIdList = [].concat(userReturnList);
//添加新的tag
$.each(performIdList, function(i, item){
$('#performId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
$("body").on("click", "#performIdSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(performIdList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
performIdList = [].concat(systemCommonUtil.tagEditorResetData('performId', userReturnList));
});
});
matchingLanguage();
form.render();
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//工单接收人信息
var serviceUser = {};
......@@ -219,29 +214,14 @@ layui.config({
});
//工单协助人选择
$("body").on("click", "#cooperationUserIdSelPeople", function(e){
checkType = '1';
userReturnList = [].concat(cooperationUser);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#cooperationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#cooperationUserId').tagEditor('removeTag', tags[i]);
}
cooperationUser = [].concat(userReturnList);
//添加新的tag
$.each(cooperationUser, function(i, item){
$('#cooperationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(cooperationUser);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
cooperationUser = [].concat(systemCommonUtil.tagEditorResetData('cooperationUserId', userReturnList));
});
});
form.on('select(areaProvince)', function(data){
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//工单接收人信息
var serviceUser = {};
......@@ -259,29 +255,14 @@ layui.config({
//工单协助人选择
$("body").on("click", "#cooperationUserIdSelPeople", function(e){
checkType = '1';
userReturnList = [].concat(cooperationUser);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#cooperationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#cooperationUserId').tagEditor('removeTag', tags[i]);
}
cooperationUser = [].concat(userReturnList);
//添加新的tag
$.each(cooperationUser, function(i, item){
$('#cooperationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(cooperationUser);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
cooperationUser = [].concat(systemCommonUtil.tagEditorResetData('cooperationUserId', userReturnList));
});
});
form.on('select(areaProvince)', function(data){
......
......@@ -7,11 +7,6 @@ var marker = null;
var longitude = "";//经度
var latitude = "";//纬度
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -64,24 +59,18 @@ layui.config({
//人员选择
$("body").on("click", "#userIdSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
userList = [].concat(userReturnList);
if(userList.length > 0){
$("#userName").val(userList[0].name);
}else{
$("#userName").val("");
}
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
userList = [].concat(userReturnList);
if(userList.length > 0){
$("#userName").val(userList[0].name);
}else{
$("#userName").val("");
}
});
});
initMap();
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//工单接收人信息
var serviceUser = {};
......@@ -101,29 +96,14 @@ layui.config({
});
//工单协助人选择
$("body").on("click", "#cooperationUserIdSelPeople", function(e){
checkType = '1';
userReturnList = [].concat(cooperationUser);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#cooperationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#cooperationUserId').tagEditor('removeTag', tags[i]);
}
cooperationUser = [].concat(userReturnList);
//添加新的tag
$.each(cooperationUser, function(i, item){
$('#cooperationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(cooperationUser);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
cooperationUser = [].concat(systemCommonUtil.tagEditorResetData('cooperationUserId', userReturnList));
});
});
$("body").on("click", "#cancle", function(){
......
......@@ -213,11 +213,10 @@ var activitiUtil = {
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.userReturnList = [].concat(staffChooseList);
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
var params = {
taskId: task.taskId,
principalUserId: staffChooseList[0].id
principalUserId: userReturnList[0].id
};
AjaxPostUtil.request({url: flowableBasePath + "activitiTask001", params: params, method: "POST", type: 'json', callback: function(json) {
if(json.returnCode == 0) {
......@@ -237,11 +236,10 @@ var activitiUtil = {
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){
systemCommonUtil.userReturnList = [].concat(staffChooseList);
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
var params = {
taskId: task.taskId,
transferredPersonId: staffChooseList[0].id
transferredPersonId: userReturnList[0].id
};
AjaxPostUtil.request({url: flowableBasePath + "activitiTask002", params: params, method: "POST", type: 'json', callback: function(json) {
if(json.returnCode == 0) {
......
......@@ -12,13 +12,13 @@ var sysCustomerUtil = {
*
* @param callback 回调函数
*/
openSysCustomerChoosePage: function (callback){
openSysCustomerChoosePage: function (callback) {
_openNewWindows({
url: "../../tpl/customermanage/customerChoose.html",
title: "客户选择",
pageId: "customerChoose",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
callBack: function(refreshCode) {
if (refreshCode == '0') {
if(typeof(callback) == "function") {
callback(sysCustomerUtil.customerMation);
......
// 系统工具函数
var systemCommonUtil = {
/**
* 已经选择的员工列表
*/
staffChooseList: [],
/**
* 已经选择的图标资源列表
*/
sysIconChooseClass: [],
/**
* 获取系统账户信息
*
......@@ -215,6 +205,10 @@ var systemCommonUtil = {
*
* @param callback 回调函数
*/
chooseOrNotMy: 1, // 人员列表中是否包含自己--1.包含;其他参数不包含
chooseOrNotEmail: 1, // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
checkType: 1, // 人员选择类型,1.多选;其他。单选
userReturnList: [], // 人员选择后的集合
openSysUserStaffChoosePage: function (callback){
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
......@@ -224,7 +218,7 @@ var systemCommonUtil = {
callBack: function(refreshCode){
if (refreshCode == '0') {
if(typeof(callback) == "function") {
callback(systemCommonUtil.staffChooseList);
callback(systemCommonUtil.userReturnList);
}
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
......@@ -261,6 +255,7 @@ var systemCommonUtil = {
*
* @param callback 回调函数
*/
sysIconChooseClass: [], // 已经选择的图标资源列表
openSysEveIconChoosePage: function (callback){
_openNewWindows({
url: "../../tpl/sysEveIcon/sysEveIconListChoose.html",
......
......@@ -29,8 +29,6 @@ layui.config({
//进行数据回显使用
if(parent.systemCommonUtil.userReturnList){
userOperatorReturnList = [].concat(parent.systemCommonUtil.userReturnList);
}else{
userOperatorReturnList = [].concat(parent.userReturnList);
}
//遍历加载已选人员列表
......@@ -42,24 +40,12 @@ layui.config({
// 如果父页面有这个参数,则赋值
if(!isNull(parent.systemCommonUtil.chooseOrNotMy)){
chooseOrNotMy = parent.systemCommonUtil.chooseOrNotMy;
}else{
if(!isNull(parent.chooseOrNotMy)){
chooseOrNotMy = parent.chooseOrNotMy;
}
}
if(!isNull(parent.systemCommonUtil.chooseOrNotEmail)){
chooseOrNotEmail = parent.systemCommonUtil.chooseOrNotEmail;
}else {
if (!isNull(parent.chooseOrNotEmail)) {
chooseOrNotEmail = parent.chooseOrNotEmail;
}
}
if(!isNull(parent.systemCommonUtil.checkType)){
checkType = parent.systemCommonUtil.checkType;
}else {
if (!isNull(parent.checkType)) {
checkType = parent.checkType;
}
}
//设置提示信息
......@@ -135,8 +121,7 @@ layui.config({
//确定
$("body").on("click", "#confimChoose", function(){
parent.userReturnList = [].concat(userOperatorReturnList);
parent.systemCommonUtil.staffChooseList = [].concat(userOperatorReturnList);
parent.systemCommonUtil.userReturnList = [].concat(userOperatorReturnList);
parent.layer.close(index);
parent.refreshCode = '0';
});
......
......@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
//计划类型
var nowCheckType = "";
......@@ -275,34 +270,20 @@ layui.config({
}
});
//计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
// 计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
});
});
//取消
$("body").on("click", "#cancle", function(){
// 取消
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
......
......@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//计划类型
var nowCheckType = "";
......@@ -38,8 +33,6 @@ layui.config({
}
});
var carryPeople = "";//指定人员id
if(!isNull(parent.timeSolt)){
// 如果父页面传递时间段
timeSolt = parent.timeSolt;
......@@ -197,6 +190,7 @@ layui.config({
winui.window.msg('请选择人员', {icon: 2,time: 2000});
return false;
}else{
var carryPeople = "";
$.each(userList, function(i, item){
if(i == 0)
carryPeople = item.id;
......@@ -271,28 +265,14 @@ layui.config({
//计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
});
});
//取消
......
......@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//计划类型
var nowCheckType = "";
......@@ -280,30 +275,16 @@ layui.config({
}
}});
//计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
// 计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
});
});
//取消
......
......@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//计划类型
var nowCheckType = "";
......@@ -38,8 +33,6 @@ layui.config({
}
});
var carryPeople = "";//指定人员id
if(!isNull(parent.timeSolt)){
// 如果父页面传递时间段
timeSolt = parent.timeSolt;
......@@ -197,6 +190,7 @@ layui.config({
winui.window.msg('请选择人员', {icon: 2,time: 2000});
return false;
}else{
var carryPeople = "";
$.each(userList, function(i, item){
if(i == 0)
carryPeople = item.id;
......@@ -269,30 +263,16 @@ layui.config({
}
});
//计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
// 计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
});
});
//取消
......
......@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//计划类型
var nowCheckType = "";
......@@ -39,8 +34,6 @@ layui.config({
}
});
var carryPeople = "";//指定人员id
AjaxPostUtil.request({url:reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
nowCheckType = json.bean.planCycle;
......@@ -222,6 +215,7 @@ layui.config({
winui.window.msg('请选择人员', {icon: 2,time: 2000});
return false;
}else{
var carryPeople = "";
$.each(userList, function(i, item){
if(i == 0)
carryPeople = item.id;
......@@ -282,28 +276,14 @@ layui.config({
//计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
});
});
//取消
......
......@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
//计划类型
var nowCheckType = "";
......@@ -39,8 +34,6 @@ layui.config({
}
});
var carryPeople = "";//指定人员id
AjaxPostUtil.request({url:reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
nowCheckType = json.bean.planCycle;
......@@ -217,16 +210,15 @@ layui.config({
};
//他人执行
if(params.assignmentType === '2'){
//指定人员
if(userList.length == 0 || isNull($('#carryPeople').tagEditor('getTags')[0].tags)){
winui.window.msg('请选择指定人员', {icon: 2,time: 2000});
return false;
}else{
carryPeople = userList[0].id;
params.carryPeople = carryPeople;
}
}
if (params.assignmentType === '2') {
//指定人员
if (userList.length == 0 || isNull($('#carryPeople').tagEditor('getTags')[0].tags)) {
winui.window.msg('请选择指定人员', {icon: 2, time: 2000});
return false;
} else {
params.carryPeople = userList[0].id;
}
}
//是否邮件通知
if($("#whetherMail").val() == 'true'){
......@@ -277,28 +269,14 @@ layui.config({
//计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList);
_openNewWindows({
url: "../../tpl/common/sysusersel.html",
title: "人员选择",
pageId: "sysuserselpage",
area: ['80vw', '80vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
});
});
//取消
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册