Commit 2df6c346 by 江和松

生产入库逻辑功能提交修改校验问题处理

parent 5cfe7691
......@@ -216,7 +216,7 @@ public class ServiceHGKC003 extends ServiceBase {
newKc003.setInvWeight(fKc003.getInvWeight().negate());
newKc003.setDepositNoOld(fKc003.getDepositNo());
newKc003.setDepositNo(SequenceGenerator.getNextSequence(HGConstant.SequenceId.PROD_DEPOSIT_NO));
fKc003.setStorageType(HGConstant.StorageType.TH);
newKc003.setStorageType(HGConstant.StorageType.TH);
DaoUtils.insert(HGKC003.INSERT, newKc003);
// 修改库存
HGKCUtils.HgKc010.updateInv(newKc003.getCompanyCode(), newKc003.getWhCode(), newKc003.getPartSpecId(),
......
......@@ -207,7 +207,7 @@
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
ID asc
ID desc
</isEmpty>
</dynamic>
......
......@@ -77,6 +77,11 @@ $(function () {
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
},
onSave: function (e){
// 阻止默认请求,使用自定义删除
e.preventDefault();
update();
}
}
......@@ -167,7 +172,7 @@ function updateSubmitStatus(id) {
/**
* 保存
*/
let save = function () {
let update = function () {
let rows = resultGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据");
......@@ -178,6 +183,12 @@ let save = function () {
let whCode= item.get("whCode");
let whName= item.get("whName");
let price= item.get("price");
let submitStatus= item.get("submitStatus");
if(submitStatus == 1){
message("选中的第" + (index + 1) + "行\"提交状态\",为已提交!");
flag = false;
return false;
}
if(isBlank(whCode)){
message("选中的第" + (index + 1) + "行\"仓库编码\",不能为空!");
flag = false;
......
......@@ -27,6 +27,9 @@
<EF:EFColumn ename="rectificationId" cname="整改通知单ID" enable="false" width="90" align="center" hidden="true"/>
<EF:EFColumn ename="partSpecId" cname="零件规格ID" enable="false" width="90" align="center" hidden="true"/>
<EF:EFComboColumn cname="入库类型" ename="storageType" width="90" align="center" required="false">
<EF:EFCodeOption codeName="hggp.kc.storageType" />
</EF:EFComboColumn>
<EF:EFColumn ename="companyName" cname="公司名称" enable="false" width="140" align="center"/>
<EF:EFColumn ename="projCode" cname="项目编号" enable="false" width="140" align="center"/>
<EF:EFColumn ename="projName" cname="项目名称" enable="false" width="140" align="center"/>
......
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