增加仓库和客户配置开关(完成1阶段)

This commit is contained in:
季圣华
2019-08-04 00:54:53 +08:00
parent d1c720b27f
commit 63e20b12ca
9 changed files with 342 additions and 38 deletions

View File

@@ -73,6 +73,39 @@
}
}
/**
* 获取公司信息
*/
function getSystemConfig() {
var info = null;
$.ajax({
type:"get",
url: "/systemConfig/list",
dataType: "json",
data: ({
currentPage: 1,
pageSize: 100
}),
async: false,
success: function (res) {
if (res && res.code === 200) {
if(res.data && res.data.page) {
var array = res.data.page.rows;
if(array.length > 0) {
info = array[0];
}
}
}
},
//此处添加错误处理
error:function() {
$.messager.alert('查询失败','查询系统配置信息异常,请稍后再试!','error');
return;
}
});
return info;
}
/**
* js生成唯一ID值 32位值随机值
* @returns 生成的字符串