商品信息的库存增加延迟加载功能
This commit is contained in:
@@ -617,18 +617,18 @@
|
|||||||
MaterialId: mId,
|
MaterialId: mId,
|
||||||
MonthTime: monthTime
|
MonthTime: monthTime
|
||||||
},
|
},
|
||||||
async: false,
|
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if (res && res.rows && res.rows[0]) {
|
if (res && res.rows && res.rows[0]) {
|
||||||
thisStock = res.rows[0].thisSum;
|
thisStock = res.rows[0].thisSum;
|
||||||
|
$("#tablePanel .class-" + rec.Id).text(thisStock); //延迟加载库存数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error:function() {
|
error:function() {
|
||||||
$.messager.alert('查询提示','查询数据后台异常,请稍后再试!','error');
|
$.messager.alert('查询提示','查询数据后台异常,请稍后再试!','error');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return thisStock;
|
return "<span class='class-" + rec.Id +"'>" + thisStock + "</span>";
|
||||||
}},
|
}},
|
||||||
{ title: '零售价',field: 'RetailPrice',width:60},
|
{ title: '零售价',field: 'RetailPrice',width:60},
|
||||||
{ title: '最低售价',field: 'LowPrice',width:70},
|
{ title: '最低售价',field: 'LowPrice',width:70},
|
||||||
|
|||||||
Reference in New Issue
Block a user