Commit ce40c4ff by liuyang

2024-09-25

1.销售开票保存开票金额校验
parent 268e666b
......@@ -276,7 +276,7 @@ function saveFunc() {
flag = false;
return false;
}
if(isBlank(item.get("totalContractPriceIncluding")) && !isNumber(item.get("totalContractPriceIncluding"))){
if(!isNumber(item.get("totalContractPriceIncluding")) || item.get("totalContractPriceIncluding") <= 0){
message("选中的第"+(index+1)+"行开票总额,不能小于0!");
flag = false;
return false;
......@@ -356,8 +356,8 @@ function fileDetailFunc(id) {
function submitFunc() {
let rows = resultGrid.getCheckedRows();
if (rows.length != 1) {
message("请选择一条数据");
if (rows.length < 1) {
message("请选择数据");
return;
}
var flag = true;
......@@ -416,8 +416,8 @@ function submitFunc() {
function billFunc() {
let rows = resultGrid.getCheckedRows();
if (rows.length != 1) {
message("请选择一条数据");
if (rows.length < 1) {
message("请选择数据");
return;
}
var flag = true;
......
......@@ -77,8 +77,8 @@
columnTemplate="#=textField#" itemTemplate="#=textField#" enable="true" defaultValue="13">
<EF:EFCodeOption codeName="hggp.cw.taxPoints"/>
</EF:EFComboColumn>
<EF:EFColumn ename="totalContractPriceIncluding" cname="开票总额" width="120" enable="true" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="true"
<EF:EFColumn ename="totalContractPriceIncluding" cname="开票总额" width="120" enable="true" readonly="true" format="{0:C2}" editType="number"
displayType="0.00" sort="true" align="right" maxLength="15" required="true" defaultValue="0"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="thisSettlementAmount" cname="不含税金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
......
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