From b650e00a5e5ecdad78014452c8bfa60b3ffbfca7 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 20 三月 2021 10:56:11 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/custOrder/custOrder.js | 32 ++++++++++++++++++++++++++++---- 1 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/static/js/custOrder/custOrder.js b/src/main/webapp/static/js/custOrder/custOrder.js index d3a2c81..932e1f0 100644 --- a/src/main/webapp/static/js/custOrder/custOrder.js +++ b/src/main/webapp/static/js/custOrder/custOrder.js @@ -228,7 +228,8 @@ {field: 'locNo', title: '璐т綅', align: 'center'}, {field: 'prior$', title: '鎺ㄨ崘璐т綅', align: 'center', width: 100}, {field: 'reduce', title: '鏁伴噺', align: 'center', width: 80, style: 'font-weight: bold'}, - {field: 'remQty', title: '浣欓噺', align: 'center', width: 80}, + // {field: 'remQty', title: '浣欓噺', align: 'center', width: 80}, + {field: 'total', title: '鎬婚噺', align: 'center', width: 80}, ]], done: function () { tableX.merges('stoPreTab', [0,1]); @@ -253,7 +254,8 @@ , area: ['400px'] , btn: ['搴撳瓨璋冩嫧', '鍙栨秷'] }, function() { - // todo 搴撳瓨璋冩嫧 + // 搴撳瓨璋冩嫧 + stockTransfer(data.number); layer.closeAll(); }, function() { // printPakouts(data.number); @@ -308,10 +310,10 @@ shadeClose: true , btn: ['搴撳瓨璋冩嫧', '鍙栨秷'] }, function() { - // todo 搴撳瓨璋冩嫧 + // 搴撳瓨璋冩嫧 layer.closeAll(); }, function() { - // printPakouts(data.number); + alert(number) layer.closeAll(); } ) @@ -326,6 +328,28 @@ // }); } + // 搴撳瓨璋冩嫧 + function stockTransfer(number) { + + $.ajax({ + url: baseUrl + "/work/stock/transfer", + headers: {'token': localStorage.getItem('token')}, + data: { + number: number + }, + method: 'POST', + success: function (res) { + if (res.code === 200) { + layer.msg(res.msg, {icon: 1}) + } else if (res.code === 403) { + top.location.href = baseUrl + "/"; + } else { + layer.msg(res.msg, {icon: 2}) + } + } + }); + } + // 鎵撳嵃鎷h揣鍗� function printPakouts(docNumber) { $.ajax({ -- Gitblit v1.9.1