1.可编辑框,view.refund.ExchageRefundWin,oms
plugins:[
Ext.create('Ext.grid.plugin.CellEditing',{
clicksToEdit:1 //设置单击单元格编辑
})
],
{header : '数量',dataIndex : 'skucount',flex:1,sortable:false,
editor:{
xtype: 'numberfield',
minValue:0,
allowBlank: false,
decimalPrecision:1 //1位小数点
}
},
2.不根据id排序,不查询
sortable:false,
3.string类型与int类型
if("1".equals(prohead.getBrandcode())){//品牌是string类型
cellList.add("淘宝");
}else if("0".equals(prohead.getBrandcode())){
cellList.add("天猫");
}
==============================
if(refund.getHasGoodReturn()==1){//是否退货,int类型
cellList.add("是");
}else if(refund.getHasGoodReturn()==0){
cellList.add("否");
}
4.导入的时候如果不加长度判断,而Excel中的字段没有数据,
那么会报错
如果加长度判断,Excel中的字段没有数据,就不导入数据,不会报错,
if(proInfo.length>2){
pro.setShortname(proInfo[2]);
}
5.换货单保存之后没有提示“操作成功”
success:function(rpt,opts){
myMask.destroy();
var result=Ext.decode(rpt.responseText);
if(result.success==true){
Ext.Msg.alert("温馨提示",Ext.decode(rpt.responseText).data);//加上这句就好了
me.destroy();
}else{
Ext.Msg.alert("温馨提示",Ext.decode(rpt.responseText).data);
}
},
6.换货单
(1).绑定订单的交易单号在订单的基本信息中
(2).换货单的条形码在商品资料的子表中
(3).换货单要绑定订单,不然报错:No origin bean specified
7.店铺退款原因修改页面状态没有获取到
新增和修改关闭状态获取不到,{"k":1,"v":"开启"},
状态是int类型,所以1不能加双引号
8.java.io.IOException: Unable to establish loopback connection
解决:把Windows Firewall停掉
9.order.setId(null);//id为空,生成一个新的订单
plugins:[
Ext.create('Ext.grid.plugin.CellEditing',{
clicksToEdit:1 //设置单击单元格编辑
})
],
{header : '数量',dataIndex : 'skucount',flex:1,sortable:false,
editor:{
xtype: 'numberfield',
minValue:0,
allowBlank: false,
decimalPrecision:1 //1位小数点
}
},
2.不根据id排序,不查询
sortable:false,
3.string类型与int类型
if("1".equals(prohead.getBrandcode())){//品牌是string类型
cellList.add("淘宝");
}else if("0".equals(prohead.getBrandcode())){
cellList.add("天猫");
}
==============================
if(refund.getHasGoodReturn()==1){//是否退货,int类型
cellList.add("是");
}else if(refund.getHasGoodReturn()==0){
cellList.add("否");
}
4.导入的时候如果不加长度判断,而Excel中的字段没有数据,
那么会报错
如果加长度判断,Excel中的字段没有数据,就不导入数据,不会报错,
if(proInfo.length>2){
pro.setShortname(proInfo[2]);
}
5.换货单保存之后没有提示“操作成功”
success:function(rpt,opts){
myMask.destroy();
var result=Ext.decode(rpt.responseText);
if(result.success==true){
Ext.Msg.alert("温馨提示",Ext.decode(rpt.responseText).data);//加上这句就好了
me.destroy();
}else{
Ext.Msg.alert("温馨提示",Ext.decode(rpt.responseText).data);
}
},
6.换货单
(1).绑定订单的交易单号在订单的基本信息中
(2).换货单的条形码在商品资料的子表中
(3).换货单要绑定订单,不然报错:No origin bean specified
7.店铺退款原因修改页面状态没有获取到
新增和修改关闭状态获取不到,{"k":1,"v":"开启"},
状态是int类型,所以1不能加双引号
8.java.io.IOException: Unable to establish loopback connection
解决:把Windows Firewall停掉
9.order.setId(null);//id为空,生成一个新的订单