Commit 89fd6ac4 by 江和松

生产领料单新增时被限制的问题处理

parent c2c8e9aa
......@@ -62,17 +62,17 @@ $(function () {
var item = e.items[0];
//仓库下拉框
if (e.field == "whCode") {
loadChange(grid,e,"price");
}
//金额计算
if (e.field == "price") {
if(item.price && item.invQty){
let totalAmount = item.price * item.invQty;
resultGrid.setCellValue(item, 'amount', totalAmount)
}
}
// if (e.field == "whCode") {
// loadChange(grid,e,"price");
// }
//
// //金额计算
// if (e.field == "price") {
// if(item.price && item.invQty){
// let totalAmount = item.price * item.invQty;
// resultGrid.setCellValue(item, 'amount', totalAmount)
// }
// }
});
},
onSuccess: function (e) {
......
......@@ -67,7 +67,7 @@
defaultValue="0"
data-regex="/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt="请输入数字,该值最大可设置17位整数和3位小数!"
required="true"/>
required="false" enable="false"/>
<EF:EFColumn ename="amount" cname="金额" width="120" align="right" enable="false" format="{0:N3}"/>
<EF:EFComboColumn cname="提交状态" ename="submitStatus" width="90" align="center" required="false">
<EF:EFCodeOption codeName="hggp.sc.productStatus" />
......
......@@ -163,7 +163,7 @@ $(function (){
},
beforeEdit: function (e) {
let item = e.model;
if(item.status != '0'){
if(item.status === '1'){
e.preventDefault();
}
},
......
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