Commit d96b334b by liuyang

2024-04-29 优化采购申请时,新增存货规格数据回调提交

parent 639aed0e
......@@ -123,7 +123,7 @@ public class ServiceHPCG001 extends ServiceEPBase {
if (hpcg001.getId() == null || hpcg001.getId() == 0) {
this.add(hpcg001,fPz006);
} else {
this.modify(hpcg001);
this.modify(hpcg001,fPz006);
}
}
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
......@@ -159,7 +159,7 @@ public class ServiceHPCG001 extends ServiceEPBase {
/**
* 修改操作
*/
public void modify(HPCG001 hpcg001) {
public void modify(HPCG001 hpcg001,HPPZ006 fPz006) {
// 计算重量
this.calcWeight(hpcg001);
DaoUtils.update(HPCG001.UPDATE, hpcg001);
......
......@@ -319,6 +319,30 @@ let save = function (btnNode) {
flag = false;
return false;
}
let inventType= item.get("inventType");
if(isBlank(inventType)){
message("选中的第"+(index+1)+"行\"存货类型\",不能为空!");
flag = false;
return false;
}
let whCode= item.get("whCode");
if(isBlank(whCode)){
message("选中的第"+(index+1)+"行\"仓库名称\",不能为空!");
flag = false;
return false;
}
let inventName= item.get("inventName");
if(isBlank(inventName)){
message("选中的第"+(index+1)+"行\"存货名称\",不能为空!");
flag = false;
return false;
}
let applyAmount= item.get("applyAmount");
if(applyAmount <=0){
message("选中的第"+(index+1)+"行\"申请数量不能为0!\"");
flag = false;
return false;
}
let status= item.get("proApplyStatus");
if(status=="1"){
message("选中的第"+(index+1)+"行记录已提交,不能修改!");
......@@ -329,7 +353,10 @@ let save = function (btnNode) {
if(flag) {
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
ok: function () {
JSUtils.submitGridsData("result", "HPCG001", "save", true);
JSUtils.submitGridsData("result", "HPCG001", "save", true,
function (e) {
query();
});
btnNode.attr("disabled", false);
}
});
......
......@@ -75,7 +75,7 @@
<EF:EFColumn ename="inventRecordId" cname="规格ID" width="120" align="center" readonly="true" hidden="true"/>
<EF:EFColumn ename="spec" cname="规格" width="120" align="center" readonly="true"/>
<EF:EFColumn ename="applyAmount" cname="申请数量" format="{0:N0}" width="100" align="right"
data-regex="/^-?[0-9]{1,15}?$/" maxLength="15" required="true"
data-regex="/^-?[0-9]{1,15}?$/" maxLength="15" required="true" defaultValue="0"
data-errorprompt="请输入数字,该值最大可设置15位整数!"/>
<EF:EFColumn ename="unitWeight" cname="单重(KG)" enable="false" width="100" align="right" format="{0:N3}"/>
<EF:EFColumn ename="weight" cname="总重(T)" enable="false" width="100" align="right" format="{0:N3}"/>
......
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