|
@@ -68,7 +68,35 @@
|
|
|
<div class="formControls col-1 col-sm-1" style="width: 100px;">
|
|
|
<input type="submit" style="" class="btn btn-primary add-order-button" value="出库" >
|
|
|
</div>
|
|
|
- <div class="formControls col-6 col-sm-6" id="msg" style="display: none; line-height: 31px;color:#f00">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="msg" style="display: none">
|
|
|
+ <div class="formControls col-5 col-sm-5" style="margin-left: 200px">
|
|
|
+ <div id="iconfontId" style="display: none;">
|
|
|
+ <i class="Hui-iconfont" style="font-size: 70px;color: #00B83F;" ></i>
|
|
|
+ </div>
|
|
|
+ <div id="iconfontId2" style="display: none;">
|
|
|
+ <i class="Hui-iconfont" style="font-size: 70px;color: #00B83F;"></i>
|
|
|
+ </div>
|
|
|
+ <br>
|
|
|
+ <span style="font-size: 30px;;margin-left: -200px" id="isMsgId">出库成功</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="tableId" style="display: none">
|
|
|
+ <div class="formControls col-6 col-sm-6">
|
|
|
+ <span>请确认订单产品以及订单产品数量</span>
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th width="50">订单产品</th>
|
|
|
+ <th width="50">产品数量</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="productHtml">
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</br>
|
|
@@ -145,8 +173,28 @@
|
|
|
callback: function (data) {//异步回调函数
|
|
|
if (data) {
|
|
|
$("#msg").show();
|
|
|
- $("#msg").html(data.resultMsg);
|
|
|
+ $("#isMsgId").html(data.resultMsg);
|
|
|
if(data.returnCode == 200){
|
|
|
+ $("#tableId").show();
|
|
|
+ $("#iconfontId2").hide();
|
|
|
+ $("#iconfontId").show();
|
|
|
+ var html = "";
|
|
|
+ if (data.returnMsg.itemList.length > 0 ) {
|
|
|
+ for(var i=0;i<data.returnMsg.itemList.length;i++){
|
|
|
+ var product = data.returnMsg.itemList[i];
|
|
|
+ html += '<tr class="text-c">' +
|
|
|
+ ' <td>'+ cufte(product.itemProductName) +'</td>' +
|
|
|
+ ' <td>'+ cufte(product.itemNum) +'</td>' +
|
|
|
+ ' </tr>';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $("#productHtml").html(html);
|
|
|
+ }else{
|
|
|
+ $("#iconfontId").hide();
|
|
|
+ $("#iconfontId2").show();
|
|
|
+ $("#tableId").hide();
|
|
|
+ $("#productHtml").html("");
|
|
|
+
|
|
|
}
|
|
|
|
|
|
$("#postNum").val("");
|