给单据做限制,限制管理员录入

This commit is contained in:
季圣华
2019-11-21 21:48:42 +08:00
parent db48da60b0
commit 8a57477153
18 changed files with 538 additions and 3 deletions

View File

@@ -347,6 +347,9 @@
var oldAccount = "";
function addAccount() {
if(checkPower()){
return;
}
$('#accountDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加结算账户');
$(".window-mask").css({width: webW, height: webH});
$('#accountFM').form('clear');

View File

@@ -442,6 +442,9 @@
var oldDepot = "";
function addDepot() {
if(checkPower()){
return;
}
$('#depotDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加仓库信息');
$(".window-mask").css({width: webW, height: webH});
$('#depotFM').form('clear');

View File

@@ -346,6 +346,9 @@
var oldInOutItem = "";
function addInOutItem() {
if(checkPower()){
return;
}
$('#inOutItemDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加收支项目');
$(".window-mask").css({width: webW, height: webH});
$('#inOutItemFM').form('clear');

View File

@@ -154,6 +154,9 @@
});
function addOrganization() {
if(checkPower()){
return;
}
$('#OrganizationFM').form('clear');
$('#organizationDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加机构信息');
$(".window-mask").css({width: webW, height: webH});

View File

@@ -374,6 +374,9 @@
//增加
function addSerialNumber() {
if(checkPower()){
return;
}
$('#serialNumberDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加序列号信息');
$(".window-mask").css({width: webW, height: webH});
$('#materialId').val('');

View File

@@ -298,6 +298,9 @@
var pageTotal = 0; //数据总量
function addSystemConfig() {
if(checkPower()){
return;
}
if(pageTotal>=1) {
$.messager.alert('提示', '只能填写一条系统配置信息', 'warning');
} else {

View File

@@ -319,6 +319,9 @@
var oldUnit = "";
function addUnit() {
if(checkPower()){
return;
}
$('#unitDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加计量单位');
$(".window-mask").css({width: webW, height: webH});
$('#unitFM').form('clear');

View File

@@ -359,6 +359,9 @@
var oldLoginName = "";
function addUser() {
if(checkPower()){
return;
}
$('#userDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加用户');
$(".window-mask").css({width: webW, height: webH});
$('#usernameFM').form('clear');

View File

@@ -1107,6 +1107,9 @@
}
function addMaterial() {
if(checkPower()){
return;
}
$('#materialFM input').val(""); //将输入框全部清空
bindMProperty(); //根据商品属性绑定

View File

@@ -329,6 +329,9 @@
var oldPerson = "";
function addPerson() {
if(checkPower()){
return;
}
$('#personFM').form('clear');
$('#personDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加经手人信息');
$(".window-mask").css({width: webW, height: webH});