statics/js/dist/storageBatch.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function callback() {
var a = frameElement.api,
b = (a.data.oper, a.data.callback),
c = $grid.jqGrid("getGridParam", "selarrrow"),
d = c.length,
e = oldRow = parent.curRow,
f = parent.curCol;
if (d > 0) {
parent.$("#grid").jqGrid("restoreCell", e, f);
for (rowid in addList) {
var g = addList[rowid];
if ("" === g.spec) var h = g.number + " " + g.name;
else var h = g.number + " " + g.name + "_" + g.spec;
var i = {
goods: h,
mainUnit: g.unitName,
qty: 1,
price: g.salePrice,
amount: g.salePrice,
locationName: g.locationName
};
if (e > 8 && e > oldRow) var j = parent.$("#grid").jqGrid("addRowData", Number(e) + 1, i, "last");
else var j = parent.$("#grid").jqGrid("setRowData", Number(e), i);
j && parent.$("#" + e).data("goodsInfo", {
id: g.id,
number: g.number,
name: g.name,
spec: g.spec,
unitName: g.unitName
}).data("storageInfo", {
id: g.locationId,
name: g.locationName
}), e++
}
b(e)
}
return !1
}
var api = frameElement.api,
data = api.data || {},
$grid = $("#grid"),
addList = {},
queryConditions = {
skey: "",
isDelete: data.isDelete || 0
},
THISPAGE = {
init: function() {
this.initDom(), this.loadGrid(), this.addEvent()
},
initDom: function() {
this.$_matchCon = $("#matchCon"), this.$_matchCon.placeholder()
},
loadGrid: function() {
$(window).height() - $(".grid-wrap").offset().top - 84;
$grid.jqGrid({
url: "../basedata/invlocation?action=list",
postData: queryConditions,
datatype: "json",
autoWidth: !0,
后面还有 83 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
