LT_CODE_TEST0503

貢獻者:maos2012 類別:代码 時間:2018-05-03 14:12:20 收藏數:18 評分:0
返回上页 舉報此文章
请选择举报理由:




收藏到我的文章 改錯字
function getPurchaseGoodsList(){
$.post(pathStr+"queryProductList",{
//"product.saleState":19130126542738},
function(result){
if(result.actionResult ==0){
$("#new_purchase_order_goods_name").html("");
$("#new_purchase_order_goods_name").append("< option value='none' >"+""+"< /option >");
goodsInfnObj=[];
purchaseAllGoodsInfo=[];
showCon(JSON.stringify(result));
for(var i = 0;i< result.productList.length;i++)
{
var rec = result.productList[i];
var goodsInfo={
"id":rec.id,
"productUniqueCode": rec.productUniqueCode,
"productName":rec.productName,
"spec":rec.spec,
"unit":rec.unitName,
"costPrice": rec.costPrice
};
purchaseAllGoodsInfo.push(goodsInfo);
$("#new_purchase_order_goods_name").append("< option value='"+
rec.id +"'>"+rec.productName + "< /option>");
}
}
else if( result.actionResult == 16)
{
timeoutProcess();
}
},"json");}
function getPurchaseSupplier()
{
$.post(pathStr+"querySupplierList",
{
"supplier.state":1
},function(result)
{
if(result.actionResult ==0)
{
$("#new_purchase_order_supplier").html("");
if(supplierId ==0)
{
$("#new_purchase_order_supplier").append("< option value='none'>< /option>");
}
else
{
$("#new_purchase_order_supplier").append("< option value='"+supplierId+"'>"
+supplierName+"< /option>");
}
for(var i = 0;i< result.supList.length;i++)
{
var rec = result.supList[i];
if(rec.id != supplierId)
{
$("#new_purchase_order_supplier").append
("< option value='"+rec.id +"'>"+rec.name + "< /option>");
}
}
}
else if( result.actionResult == 16)
{
timeoutProcess();
}
},"json");
}
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
文章熱度:
文章難度:
文章質量:
說明:系統根據文章的熱度、難度、質量自動認證,已認證的文章將參與打字排名!

本文打字排名TOP20

登录后可见

用户更多文章推荐