Commit 52cd2a31 authored by 1650842865's avatar 1650842865

其他领料申请成本中心或内部订单必填一个;选择后成本中心或者内部订单后加个延迟事件

parent 5f711a78
......@@ -48,7 +48,9 @@ function bindEvent(){
$('#aufnrName').val(null);
Public.tip("选择成本中心,不能选择内部订单");
}
initUsed(data.KOSTL);
setTimeout(function () {
initUsed(data.KOSTL);
}, 100)
}
});
$('#aufnrName').searchbox({
......@@ -66,7 +68,9 @@ function bindEvent(){
$('#kostlName').val(null);
Public.tip("选择内部订单,不能选择成本中心");
}
initUsed("");
setTimeout(function () {
initUsed("");
}, 100)
}
});
}
......@@ -205,9 +209,9 @@ function initUsed(kostl){
columns.some(column => {
if (column.name == "used"){
column.editor.required = Public.isNotBlank(kostl)? true:false;
return true;
//return true;
}
return false;
//return false;
})
columns.splice(0,1)
......@@ -263,3 +267,13 @@ function getExtendedData(processAction) {
}
return extendedData;
}
function checkConstraints(){
var kostlName = $("#kostlName").val();
var aufnrName = $("#aufnrName").val();
if (Public.isBlank(kostlName) && Public.isBlank(aufnrName)){
Public.tip("请选择成本中心或内部订单");
return false;
}
return true;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment