1、日期相加:
Ext.Date.add(new Date(), Ext.Date.DAY, 15)
2、Grid表格列可编辑:
{
header : "实际已交货量",
tooltip : \'实际已交货量\',
dataIndex : \'actualQuantityDelivered\',
width : 100,
editor : {
xtype : \'numberfield\',
maxLength : 100,
allowNegative : false,
allowDecimals : true,
decimalPrecision : 4
},
sortable : true
}
{
header : "包装说明",
tooltip : \'包装说明\',
dataIndex : \'packDesc\',
id : \'packDesc\',
width : 100,
editor : Ext.create(\'Ext.form.ComboBox\', {
store : packDescStore,
defaultListConfig : {
maxHeight : 150
},
valueField : COMMON.COMBOX_KEY,
displayField : COMMON.COMBOX_VALUE,
anchor : \'100%\',
editable : false,
mode : \'local\',
triggerAction : \'all\',
selectOnFocus : true,
emptyText : \'请选择\'
}),
sortable : true
}