From 357de6228f120de8072c482d04bd7577e4f5db0b Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 23 三月 2021 16:29:20 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/custOrder/custOrder.js | 77 +++++++++++++++++++++++++-------------
1 files changed, 51 insertions(+), 26 deletions(-)
diff --git a/src/main/webapp/static/js/custOrder/custOrder.js b/src/main/webapp/static/js/custOrder/custOrder.js
index 6ea3339..beae1f1 100644
--- a/src/main/webapp/static/js/custOrder/custOrder.js
+++ b/src/main/webapp/static/js/custOrder/custOrder.js
@@ -38,7 +38,7 @@
cols: [[
{type: 'checkbox'}
// ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
- ,{field: 'number', align: 'center',title: '閿�鍞崟鍙�'}
+ ,{field: 'number', align: 'center',title: '鍗曞彿'}
,{field: 'btypeId', align: 'center',title: '瀹㈡埛缂栧彿'}
,{field: 'etypeId', align: 'center',title: '缁忔墜浜虹紪鍙�', hide: true}
@@ -206,7 +206,7 @@
,closeBtn: false
,offset: '100px'
// ,area: ['800px','450px']
- ,area: '800px'
+ ,area: '1000px'
,shade: 0.5
,shadeClose: true
,id: 'LAY_layuipro'
@@ -224,14 +224,16 @@
height: 432,
cols: [[
{field: 'title', title: '鍟嗗搧', align: 'center'},
- {field: 'anfme', title: '鎬绘暟閲�', align: 'center', style: 'font-weight: bold', width: 80},
+ {field: 'anfme', title: '鎬绘暟閲�', align: 'center', style: 'font-weight: bold', width: 90},
+ {field: 'type', title: '浠撳簱', align: 'center', templet: '#typeTpl', width: 90},
{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: 'reduce', title: '鏁伴噺', align: 'center', width: 90, style: 'font-weight: bold'},
+ // {field: 'remQty', title: '浣欓噺', align: 'center', width: 80},
+ {field: 'total', title: '鎬婚噺', align: 'center', width: 90},
]],
done: function () {
- tableX.merges('stoPreTab', [0,1]);
+ tableX.merges('stoPreTab', [0,1,2]);
$('.layui-table-body.layui-table-main').css("overflow", "auto")
}
});
@@ -253,7 +255,8 @@
, area: ['400px']
, btn: ['搴撳瓨璋冩嫧', '鍙栨秷']
}, function() {
- // todo 搴撳瓨璋冩嫧
+ // 搴撳瓨璋冩嫧
+ stockTransfer(data.number);
layer.closeAll();
}, function() {
// printPakouts(data.number);
@@ -308,22 +311,44 @@
shadeClose: true
, btn: ['搴撳瓨璋冩嫧', '鍙栨秷']
}, function() {
- // todo 搴撳瓨璋冩嫧
+ // 搴撳瓨璋冩嫧
layer.closeAll();
}, function() {
- // printPakouts(data.number);
+ alert(number)
layer.closeAll();
}
)
} else if (res.code === 403){
top.location.href = baseUrl+"/";
} else {
- layer.msg(res.msg)
+ layer.msg(res.msg, {icon: 2})
}
$(".layui-laypage-btn")[0].click();
}
})
// });
+ }
+
+ // 搴撳瓨璋冩嫧
+ 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揣鍗�
@@ -487,22 +512,22 @@
page: {
curr: pageCurr
},
- done: function (res, curr, count) {
- if (res.code === 403) {
- top.location.href = baseUrl+"/";
- }
- pageCurr=curr;
- if (res.data.length === 0 && count !== 0) {
- tableIns.reload({
- where: searchData,
- page: {
- curr: pageCurr-1
- }
- });
- pageCurr -= 1;
- }
- limit(child);
- }
+ // done: function (res, curr, count) {
+ // if (res.code === 403) {
+ // top.location.href = baseUrl+"/";
+ // }
+ // pageCurr=curr;
+ // if (res.data.length === 0 && count !== 0) {
+ // tableIns.reload({
+ // where: searchData,
+ // page: {
+ // curr: pageCurr-1
+ // }
+ // });
+ // pageCurr -= 1;
+ // }
+ // limit(child);
+ // }
});
}
--
Gitblit v1.9.1