wangxiaoming 7 سال پیش
والد
کامیت
48a7fcfb48
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      watero-rst-web/src/main/webapp/WEB-INF/views/pts/bom/add_bom.ftl

+ 5 - 0
watero-rst-web/src/main/webapp/WEB-INF/views/pts/bom/add_bom.ftl

@@ -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){
             }