Commit 6b6ef52c by liuyang

2024-08-16 生产报工重量可编辑,物料清单总重提示修改

parent 0cb816e1
......@@ -80,10 +80,10 @@
data-errorprompt="请输入数字,该值最大可设置12位整数和3位小数!"/>
<EF:EFColumn ename="totalWt" cname="总重(T)" enable="true" width="100" align="right" format="{0:N3}" sumType="all"
data-regex="/^-?[0-9]{1,12}([.][0-9])?$/"
data-errorprompt="请输入数字,该值最大可设置12位整数和1位小数!"/>
data-errorprompt="请输入数字,该值最大可设置12位整数和3位小数!"/>
<EF:EFColumn ename="unitWt" format="{0:N1}" cname="单重(KG)" maxLength="15" displayType="0.0"
data-regex="/^-?[0-9]{1,12}([.][0-9])?$/" defaultValue="0.000" hidden="true"
data-errorprompt="请输入数字,该值最大可设置12位整数和1位小数!"/>
data-errorprompt="请输入数字,该值最大可设置12位整数和3位小数!"/>
<EF:EFComboColumn enable="false" ename="status" align="center"
columnTemplate="#=textField#" optionLabel=" "
itemTemplate="#=textField#" textField="textField"
......
......@@ -7,8 +7,8 @@ $(function () {
}
var taskWeight = $("#result-0-taskWeight_textField").val();
if(isPositiveNumber(taskWeight)) {
$("#result-0-totalWeight_textField").val((parseInt(taskWeight*(quantity/100))).toFixed(2));
$("#result-0-totalWeight").val((parseInt(taskWeight*(quantity/100))).toFixed(2))
$("#result-0-totalWeight_textField").val((parseFloat(taskWeight*(quantity/100))).toFixed(2));
$("#result-0-totalWeight").val((parseFloat(taskWeight*(quantity/100))).toFixed(2))
}
})
......
......@@ -40,7 +40,7 @@
</div>
<div class="row">
<EF:EFInput ename="result-0-quantity" cname="报工数量" format="{0:0}%" editType="text" colWidth="6" required="true" />
<EF:EFInput ename="result-0-totalWeight" cname="报工重量" format="{0:n2}" editType="text" colWidth="6" readonly="true"/>
<EF:EFInput ename="result-0-totalWeight" cname="报工重量" format="{0:n2}" editType="text" colWidth="6" readonly="false"/>
</div>
</EF:EFRegion>
......
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