From 716ce196a6360cd0729d20723d7d49894bfbbc28 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期二, 09 五月 2023 17:21:44 +0800 Subject: [PATCH] 出库值仓 --- igds-app/js/admin/warn-list.js | 71 +++++++++++++++++++++++++++++++---- 1 files changed, 62 insertions(+), 9 deletions(-) diff --git a/igds-app/js/admin/warn-list.js b/igds-app/js/admin/warn-list.js index 525270c..287d930 100644 --- a/igds-app/js/admin/warn-list.js +++ b/igds-app/js/admin/warn-list.js @@ -4,8 +4,7 @@ var data = { "interfaceId": "5801", "tokenAuth": "", - "sign": "10003", - "outId": "10003", + "outId": "58011", "reqDateTime": new Date(), "data": { "deptId": "", @@ -15,11 +14,10 @@ var dataPop = { "interfaceId": "5802", "tokenAuth": "", - "sign": "10003", - "outId": "10003", + "outId": "58021", "reqDateTime": new Date(), "data": { - "id":"", + "id": "", "status": "", "remark": "" } @@ -71,7 +69,53 @@ mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div") } }) + // warnData ={ + // "data": [ + // { + // "id": "88", + // "name": "鎷夌洰浜涜皟", + // "type": "nostrud", + // "eventType": "cillumreprehenderitest", + // "level": "1", + // "status": "40", + // "time": "2006-11-01 14:01:36", + // "info": "dolor", + // "depotId": "6", + // "depotName": "鐭垮叡鍜屼腑杩�", + // "remark":"00000" + // }, + // { + // "id": "56", + // "name": "娉曢兘璞″彨涓庡眬", + // "type": "cillumreprehenderitUt", + // "eventType": "in", + // "level": "2", + // "status": "20", + // "time": "1981-02-18 22:28:23", + // "info": "deserunt Excepteur aliqua veniam commodo", + // "depotId": "28", + // "depotName": "榫欑敤鏀圭礌", + // "remark":"1111" + // },{ + // "id": "72", + // "name": "鍗庢灄涔濆埆", + // "type": "exdeseruntcillumeu", + // "eventType": "aliqua sint dolor aute", + // "level": "1", + // "status": "10", + // "time": "1978-07-23 12:17:27", + // "info": "deserunt nostrud id tempor", + // "depotId": "70", + // "depotName": "鍘垮織閫夊彧", + // "remark":"" + // } + // ] + // } + + + renderWarn(); } + //榛樿鑾峰彇褰撳ぉ鏃ユ湡(yyyy-MM-dd) function getDate() { @@ -137,7 +181,8 @@ var warnList = warnData.data; if (warnList && warnList.length > 0) { $.each(warnList, function(index, item) { - html += '<li><div class="con myfancy" onclick="openPop('+item.id+')">'; + html += '<li><div class="con myfancy" onclick="openPop(\'' + item.id + '\',\'' + (item.remark == + null ? "" : item.remark) + '\',\'' + item.status + '\')">'; if (item.status == '10') { html += '<span class="type">鏈鐞�</span>'; } @@ -154,7 +199,8 @@ html += '<div class="txt">'; html += '<div class="box"><div class="group c"><div class="desc">' + item.type + '</div><div class="ort">璀﹀憡绫诲瀷</div></div></div>'; - html += '<div class="box"><div class="group c1"><div class="desc">' + item.depotName + + html += '<div class="box"><div class="group c1"><div class="desc">' + (item.depotName == null || + item.depotName == "" ? "--" : item.depotName) + '</div><div class="ort">浠撳簱鍚嶇О</div></div></div>'; if (item.level == '1') { html += @@ -183,8 +229,15 @@ //鎵撳紑寮圭獥 -function openPop(warnId) { +function openPop(warnId, remark, status) { dataPop.data.id = warnId; + var html = '' + if (status == '10') { + html += '<button type="button" class="mui-btn cancel" onclick="handleWarn("1")">蹇界暐</button>' + html += '<button type="button" class="mui-btn confirm" onclick="handleWarn("2")">澶勭悊</button>' + } + $("#handleWarn").html(html); + $("#textareaPop").val(remark) $('#m-pop').css('display', 'flex'); } //璀﹀憡澶勭悊 @@ -197,7 +250,7 @@ dataPop.data.status = '30' // mui.toast("璀﹀憡澶勭悊"); } - dataPop.data.remark = mui("#textareaPop")[0].value; + dataPop.data.remark = mui("#textareaPop")[0].value; //璇锋眰 mui.ajax(url, { type: "POST", -- Gitblit v1.9.3