Index: ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownEntryForm.js =================================================================== diff -u -r26742 -r30858 --- ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownEntryForm.js (.../godownEntryForm.js) (revision 26742) +++ ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownEntryForm.js (.../godownEntryForm.js) (revision 30858) @@ -379,28 +379,6 @@ {header : "id",dataIndex : 'id',hidden : true}, {header : "disposableGoodsID",dataIndex : 'disposableGoodsID',hidden : true}, {header : "名称",dataIndex : 'name',width : 250,menuDisabled : true}, - {header : "数量",dataIndex : 'amount',width : 50,menuDisabled : true, - editor : new top.Ext.form.TextField({ - regex: /^\d+$/, - regexText:'只能输入数字', - allowBlank : false, - listeners:{ - change :function(field,newVal,oldVal){ - if(commonEntry.isOpen()){ - field.setValue(oldVal); - return false; - } - var grid = top.Ext.getCmp('godownEntryItemGrid'); - setTotalMoney(grid); - },focus:function(){ - if(commonEntry.isOpen()){ - alert('查看和编辑入库单时不能修改数量'); - return false; - } - } - } - }) - }, {header : "生产日期",width : 80,dataIndex : 'produceDate',hidden : !sstsConfig.showProduceDateOfDisposableGoods,menuDisabled : true, renderer:top.Ext.util.Format.dateRenderer('Y-m-d'), editor : new top.Ext.form.DateExtensiableField({ minWidth : 177, @@ -433,6 +411,28 @@ allowBlank : false }) }, + {header : "数量",dataIndex : 'amount',width : 50,menuDisabled : true, + editor : new top.Ext.form.TextField({ + regex: /^\d+$/, + regexText:'只能输入数字', + allowBlank : false, + listeners:{ + change :function(field,newVal,oldVal){ + if(commonEntry.isOpen()){ + field.setValue(oldVal); + return false; + } + var grid = top.Ext.getCmp('godownEntryItemGrid'); + setTotalMoney(grid); + },focus:function(){ + if(commonEntry.isOpen()){ + alert('查看和编辑入库单时不能修改数量'); + return false; + } + } + } + }) + }, {header : "单价",dataIndex : 'cost',width : 50,menuDisabled : true, editor : new top.Ext.form.TextField({ regex: /^(([1-9]+[0-9]*.{1}[0-9]+)|([0].{1}[1-9]+[0-9]*)|([1-9][0-9]*)|([0][.][0-9]+[1-9]*))$/, @@ -454,7 +454,8 @@ } } }) - }, + }, + {header : "总价",width : 70,menuDisabled : true,dataIndex : 'totalPrice', renderer:renderTotalPrice}, {id : 'expandColumn',header : "供应商",width : 150,dataIndex : 'supplierName',menuDisabled : true, editor : sstsConfig.godownEntryNeedVerify == true ? false : new top.Ext.form.ComboBox({ queryParam : 'supplierName', @@ -521,7 +522,6 @@ }, {header : "标签合格",width : 80,menuDisabled : true,dataIndex : 'qualifiedLabel',hidden:!sstsConfig.godownEntryShowQualified}, {header : "验收合格",width : 80,menuDisabled : true,dataIndex : 'qualifiedCheck',hidden:!sstsConfig.godownEntryShowQualified}, - {header : "总价",width : 70,menuDisabled : true,dataIndex : 'totalPrice', renderer:renderTotalPrice}, {header : "生物检测",width : 70,menuDisabled : true,dataIndex : 'hasBiologicalTestReport', editor : new top.Ext.form.ComboBox({ minChars : 0,