|
@@ -91,6 +91,7 @@
|
|
|
|
|
|
</tbody>
|
|
|
</table>
|
|
|
+ <span id="componentsMsg" style="color: red"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -253,8 +254,12 @@
|
|
|
async: false,
|
|
|
success: function(data){
|
|
|
if (data.returnCode == 200) {
|
|
|
+ $("#componentsMsg").html("");
|
|
|
list = data.returnMsg.ptsComponentsList;
|
|
|
}
|
|
|
+ if(data.returnCode != 200 || list.length < 1){ //提示需要添加零件
|
|
|
+ $("#componentsMsg").html("该产品没有对应的零件,请到零件管理添加零件");
|
|
|
+ }
|
|
|
},
|
|
|
error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
}
|