|
|
@@ -19,7 +19,7 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
// 新增 |
|
|
|
$('#lr_add').on('click', function () { |
|
|
|
learun.layerForm({ |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '新增', |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/Form', |
|
|
@@ -50,9 +50,9 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_delete').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/DeleteForm', { keyValue: keyValue}, function () { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/DeleteForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
@@ -65,7 +65,8 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/Acc_GoodsDemage/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "宿舍楼", name: "Dormitory", width: 100, align: "left", |
|
|
|
{ |
|
|
|
label: "宿舍楼", name: "Dormitory", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Acc_DormitoryData', |
|
|
@@ -75,8 +76,10 @@ var bootstrap = function ($, learun) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
}}, |
|
|
|
{ label: "单元", name: "Unit", width: 100, align: "left", |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "单元", name: "Unit", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Acc_UnitData', |
|
|
@@ -86,8 +89,10 @@ var bootstrap = function ($, learun) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
}}, |
|
|
|
{ label: "楼层", name: "Floor", width: 100, align: "left", |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "楼层", name: "Floor", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Acc_FloorData', |
|
|
@@ -97,8 +102,10 @@ var bootstrap = function ($, learun) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
}}, |
|
|
|
{ label: "宿舍", name: "RId", width: 100, align: "left", |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "宿舍", name: "RId", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Acc_RoomData', |
|
|
@@ -108,27 +115,33 @@ var bootstrap = function ($, learun) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
}}, |
|
|
|
{ label: "物品", name: "Goods", width: 100, align: "left"}, |
|
|
|
{ label: "价格", name: "Price", width: 100, align: "left"}, |
|
|
|
{ label: "破坏者", name: "DeangeUserr", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op,$cell) { |
|
|
|
learun.clientdata.getAsync('user', { |
|
|
|
key: value, |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.name); |
|
|
|
} |
|
|
|
}); |
|
|
|
}}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "物品", name: "Goods", width: 100, align: "left" }, |
|
|
|
{ label: "价格", name: "Price", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "破坏者", name: "DeangeUserr", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', |
|
|
|
key: value, |
|
|
|
keyId: 'stuno', |
|
|
|
callback: function (_data) { |
|
|
|
console.log(_data,123) |
|
|
|
callback(_data['stuname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
mainId:'ID', |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|