Files
T-DAS/Epost.TestToolsWeb/Content/js/payment_Gc.js

90 lines
2.2 KiB
JavaScript
Raw Normal View History

2023-01-13 15:30:20 +08:00
function show(value) {
$.ajax({
type: "POST",
url: "/Home/GetLocationInfo",
data: { shelves: value },
success: function (data) {
if (data.result == "1") {
// $(".bgcolor1").html("");
//$("#location1").html("");
//$("#gdname1").html("");
var uls = $(".bgcolor1 span");
if (uls.size() > 0) {
$.each(uls, function (i) {
$(this).html("");
});
}
var loclist = jQuery.parseJSON(data.msg);
for (var i = 0; i < loclist.length; i++) {
if (i > 2) {
break;
}
var x = i + 1;
var gsname = loclist[i].Goodsname;
if (gsname.length > 15) {
gsname = gsname.substring(0, 15) + "...";
}
$("#location" + x).html(loclist[i].Location);
$("#gdname" + x).html(gsname);
$("#locationcount").html(value + "号货架共" + loclist[i].Count + "个待拣货位");
var $box = $('.payment_time_mask');
$box.css({
display: "block",
});
}
}
}
});
}
//点击关闭按钮的时候,遮罩层关闭
$(".payment_time_mask li").on('click', function () {
$("#bg,.payment_time_mask").css("display", "none");
});
//点击关闭按钮的时候,遮罩层关闭
$(".payment_time_mask_show li").on('click', function () {
$("#bg,.payment_time_mask_show").css("display", "none");
});
function clickSKU(value) {
var sku = $("#showsku" + value).html();
$.ajax({
type: "POST",
url: "/Home/DisplayJobBySKU",
data: { sku: sku },
success: function (data) {
}
});
}
function clickLocation(value) {
var loc = $("#location" + value).html();
if (loc != "") {
$.ajax({
type: "POST",
url: "/Home/DisplayJobByLoc",
data: { location: loc },
success: function (data) {
}
});
}
}