21,893
社区成员




$(document).on('change','.figure',function(){
var val = $(this).parent().prev().children().val();
var value = $(this).val();
var fh=$(this);
$.ajax({
url:"{{ path('detail_stock_ajax',{ 'icmoId':icmoId }) }}",
type: "POST",
data: {brandId:val,figureId:value},
success:function(msg){
fh.parent().parent().children('td').eq(12).empty();
fh.parent().parent().children('td').eq(12).html(msg.stock);
}
})
});
$brandId = $request->request->get('brandId');
$figureId = $request->request->get('figureId');
$brand = $this->getDoctrine()->getRepository('DianzibuyStoreroomDepartmentBundle:DzbStoreroomProductBrand')->findOneById($brandId)->getId();
$products = $this->getDoctrine()->getRepository('DianzibuyStoreroomDepartmentBundle:DzbStoreroomProduct')->findByTitle($figureId);
foreach($products as $value){
if($value->getBrand()->getId() == $brand){
$stock = $value->getStock();
}
}
return new JsonResponse(array('stock' => $stock));
rename,可能是权限。可能是文件不存在。
打开错误提示功能看看错误信息是什么
急!!!在线等!!