You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
55 lines
1.6 KiB
|
|
var rollList = []
|
|
var roll = []
|
|
// 拆分卷
|
|
function splitRoll() {
|
|
let rollVo = {
|
|
"rollno": $('#rollno').val(),
|
|
"statusDb": "I",
|
|
"pickQty": $('#pickQty').val(),
|
|
}
|
|
$.ajax({
|
|
url: "/finishedProduct/crollinfo/splitRoll",
|
|
contentType: 'application/json',
|
|
type: "POST",
|
|
data: JSON.stringify(rollVo),
|
|
dataType: "json",
|
|
beforeSend: function (request) {
|
|
request.setRequestHeader("token", $.cookie("token"));
|
|
},
|
|
success: function (data) {
|
|
if (data.code == 0) {
|
|
roll = data.rollList
|
|
rollList.push(roll)
|
|
roll.forEach((item, index) => {
|
|
var str = '<tr id = ' + item.line+item.pickingNo + '>' +
|
|
'<th class="" style="text-align:center;background-color: #ffff;">' +
|
|
'<span>' + item.rollno + '</span></th>' +
|
|
'<th class="" style="text-align:center;background-color: #ffff;">' +
|
|
'<span>' + item.rollqty + '</span></th>' +
|
|
'</tr>';
|
|
$("#roll_table").append(str);
|
|
})
|
|
}
|
|
if (data.code == 201) {
|
|
layer.alert(data.msg)
|
|
}
|
|
if (data.code == 202) {
|
|
layer.alert(data.msg)
|
|
}else {
|
|
layer.alert(data.msg)
|
|
}
|
|
if (data.code == 401) {
|
|
layer.alert('用户身份已过期');
|
|
window.location.href = "/login"
|
|
}
|
|
},
|
|
error: function (data) {
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
|
|
|