Commit 52c8311e by liuyang

2024-08-01 1、付款单逻辑调整先审核再核销 2、新增选择公司回写公司名称

parent 50e71e74
...@@ -283,7 +283,7 @@ public class ServiceHGCW016 extends ServiceBase { ...@@ -283,7 +283,7 @@ public class ServiceHGCW016 extends ServiceBase {
hgcw016.fromMap(resultRows.get(i)); hgcw016.fromMap(resultRows.get(i));
hgcw016.setCancelStatus(2); hgcw016.setCancelStatus(2);
if (hgcw016.getReviewStatus() == 0){ if (hgcw016.getReviewStatus() == 0){
throw new Exception("请先审核!"); throw new PlatException("请先审核!");
} }
DaoUtils.update("HGCW016.writeoff", hgcw016); DaoUtils.update("HGCW016.writeoff", hgcw016);
} }
......
$(function() { $(function() {
var companyCodeBox = __eiInfo.getBlock("roleCompany").getMappedRows();
// 查询 // 查询
$("#QUERY").on("click", function () { $("#QUERY").on("click", function () {
...@@ -26,7 +27,19 @@ $(function() { ...@@ -26,7 +27,19 @@ $(function() {
defaultValue: function () { defaultValue: function () {
return currShortDate(); return currShortDate();
} }
},
{
field: "companyCode",
template: function (dataItem) {
for (let i = 0; i < companyCodeBox.length; i++) {
if (companyCodeBox[i]['companyCode'] === dataItem['companyCode']) {
dataItem["companyName"] = companyCodeBox[i]['companyName'];
return companyCodeBox[i]['companyName'];
}
} }
return dataItem["companyCode"];
}
},
], ],
loadComplete: function (grid) { loadComplete: function (grid) {
$("#BTN_CHOICE").on("click",choiceFunc); $("#BTN_CHOICE").on("click",choiceFunc);
...@@ -177,11 +190,11 @@ function submitFunc() { ...@@ -177,11 +190,11 @@ function submitFunc() {
} }
var flag = true; var flag = true;
rows.forEach(function (row) { rows.forEach(function (row) {
if (row.cancelStatus == "1") { /* if (row.cancelStatus == "1") {
message("勾选的数据中有未核销的单据!"); message("勾选的数据中有未核销的单据!");
flag = false; flag = false;
return; return;
} }*/
if (row.reviewStatus == "3") { if (row.reviewStatus == "3") {
message("勾选的数据中有已经提交的单据!"); message("勾选的数据中有已经提交的单据!");
flag = false; flag = false;
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
align="center" filter="contains" sort="true"> align="center" filter="contains" sort="true">
<EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/> <EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFColumn ename="companyName" cname="公司名称" hidden="true"/>
<EF:EFComboColumn ename="partyA" cname="供应商名称" width="120" align="left" defaultValue="" <EF:EFComboColumn ename="partyA" cname="供应商名称" width="120" align="left" defaultValue=""
filter="contains" readonly="true"> filter="contains" readonly="true">
<EF:EFOptions blockId="sup_record_block_id" <EF:EFOptions blockId="sup_record_block_id"
...@@ -54,7 +55,7 @@ ...@@ -54,7 +55,7 @@
columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" defaultValue="1"> columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" defaultValue="1">
<EF:EFCodeOption codeName="hggp.cw.cancelStatus"/> <EF:EFCodeOption codeName="hggp.cw.cancelStatus"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFComboColumn ename="reviewStatus" cname="审状态" width="100" align="center" readonly="true" <EF:EFComboColumn ename="reviewStatus" cname="审状态" width="100" align="center" readonly="true"
columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" defaultValue="0"> columnTemplate="#=textField#" itemTemplate="#=textField#" enable="false" defaultValue="0">
<EF:EFCodeOption codeName="hggp.cw.reviewStatus"/> <EF:EFCodeOption codeName="hggp.cw.reviewStatus"/>
</EF:EFComboColumn> </EF:EFComboColumn>
......
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