From 397dbf892f842c834af17a91c788c94fd96003f8 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期一, 29 五月 2023 19:13:31 +0800 Subject: [PATCH] 问题修改 --- igds-app/js/admin/inout-in-handle-list.js | 45 +++++++++++++++++++++------------------------ 1 files changed, 21 insertions(+), 24 deletions(-) diff --git a/igds-app/js/admin/inout-in-handle-list.js b/igds-app/js/admin/inout-in-handle-list.js index d63cb19..669873a 100644 --- a/igds-app/js/admin/inout-in-handle-list.js +++ b/igds-app/js/admin/inout-in-handle-list.js @@ -55,6 +55,7 @@ if (result.code == "0000") { inHandleData = result.data; renderData(); + mui.toast(result.msg); } else { renderData(); mui.toast(result.msg); @@ -119,29 +120,25 @@ //娓叉煋椤甸潰 function renderData() { var html = ''; - if(inHandleData){ - if (inHandleData && inHandleData.length > 0) { - $.each(inHandleData, function(index, item) { - html += '<li><div class="con"><div class="top">'; - html += '<div class="info">杞︾墝鍙�: <b>' + (item.plateNum == null ? "" : item.plateNum) +'</b></div>'; - html += '<a href="" id = "' + item.id + '" plateNum = "' + item.plateNum + '" depotName = "' + item.depotName + '" storeKeeperName = "' + (item.storeKeeperName == "" || item - .storeKeeperName == "" ? '--' : item.storeKeeperName) + '" class="link">鍊间粨<span class="mui-icon mui-icon-arrowright"></span></a>'; - html += '</div><div class="box">'; - html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i19.png);">'; - html += '<div class="h3">' + (item.depotName == null ? "" : item.depotName) + '</div>'; - html += '<div class="bot">鐩爣浠撳簱</div></div></div>'; - html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i20.png);">'; - html += '<div class="h3">' + (item.foodVarietyName == null ? "" : item.foodVarietyName) + '</div>'; - html += '<div class="bot">绮鍝佺</div></div></div>'; - html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i21.png);">'; - html += '<div class="h3">' + (item.foodLevelName == null ? "" : item.foodLevelName) + '</div>'; - html += '<div class="bot">绮绛夌骇</div></div></div>'; - html += '</div></div></li>'; - }) - } else { - html += '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">鏆傛棤鍏ュ簱寰呭�间粨淇℃伅</div></div></li>'; - } - }else{ + if (inHandleData && inHandleData.length > 0) { + $.each(inHandleData, function(index, item) { + html += '<li><div class="con"><div class="top">'; + html += '<div class="info">杞︾墝鍙�: <b>' + (item.plateNum == null ? "" : item.plateNum) +'</b></div>'; + html += '<a href="" id = "' + item.id + '" plateNum = "' + item.plateNum + '" depotName = "' + item.depotName + '" storeKeeperName = "' + (item.storeKeeperName == "" || item + .storeKeeperName == "" ? '--' : item.storeKeeperName) + '" class="link">鍊间粨<span class="mui-icon mui-icon-arrowright"></span></a>'; + html += '</div><div class="box">'; + html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i19.png);">'; + html += '<div class="h3">' + (item.depotName == null ? "" : item.depotName) + '</div>'; + html += '<div class="bot">鐩爣浠撳簱</div></div></div>'; + html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i20.png);">'; + html += '<div class="h3">' + (item.foodVarietyName == null ? "" : item.foodVarietyName) + '</div>'; + html += '<div class="bot">绮鍝佺</div></div></div>'; + html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i21.png);">'; + html += '<div class="h3">' + (item.foodLevelName == null ? "" : item.foodLevelName) + '</div>'; + html += '<div class="bot">绮绛夌骇</div></div></div>'; + html += '</div></div></li>'; + }) + } else { html += '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">鏆傛棤鍏ュ簱寰呭�间粨淇℃伅</div></div></li>'; } $("#handleList").html(html); @@ -167,7 +164,7 @@ picker.show(function(SelectedItem) { console.log(JSON.stringify(SelectedItem)); //鐜板満鍊间粨 - if(SelectedItem.value == 'photo'){ + if(SelectedItem[0].value == 'photo'){ mui.openWindow({ url: "inout-in-handle.html", id: "inout-in-handle", -- Gitblit v1.9.3