|
@@ -725,12 +725,17 @@
|
|
|
var html = '';
|
|
|
var chose = "手动输入产品价格"
|
|
|
if (data.returnCode == 200) {
|
|
|
- for(var i=0;i<data.returnMsg.supplyPriceList.length;i++){
|
|
|
- var supplyPriceInfo = data.returnMsg.supplyPriceList[i];
|
|
|
- html += '<option value="'+ supplyPriceInfo.colorPrice/100 +'">'+ supplyPriceInfo.colorPrice/100 +'</option>';
|
|
|
+ if(data.returnMsg.supplyPriceList.length > 0){
|
|
|
+ for(var i=0;i<data.returnMsg.supplyPriceList.length;i++){
|
|
|
+ var supplyPriceInfo = data.returnMsg.supplyPriceList[i];
|
|
|
+ html += '<option value="'+ supplyPriceInfo.colorPrice/100 +'">'+ supplyPriceInfo.colorPrice/100 +'</option>';
|
|
|
+ }
|
|
|
+ html += '<option value="00">'+ chose +'</option>';
|
|
|
+ $("#writeSupplyPrice").hide();
|
|
|
+ }else{
|
|
|
+ html += '<option value="00">'+ chose +'</option>';
|
|
|
+ $("#writeSupplyPrice").show();
|
|
|
}
|
|
|
- html += '<option value="00">'+ chose +'</option>';
|
|
|
- $("#writeSupplyPrice").hide();
|
|
|
}else{
|
|
|
html = '';
|
|
|
}
|