已经完成

修改所属仓库与仓库信息绑定
master
森屿海巷 3 years ago
parent 9a6c74dccd
commit 5e95479e1e

@ -544,6 +544,7 @@ var table = {
}
var actions = [];
$.each(datas, function(index, dict) {
if (dict.efficiencyLevel == ('' + value)) {
var listClass = $.common.equals("default", dict.listClass) || $.common.isEmpty(dict.listClass) ? "" : "badge badge-" + dict.listClass;
actions.push($.common.sprintf("<span class='%s'>%s</span>", listClass, dict.levelName));
@ -552,6 +553,23 @@ var table = {
});
return actions.join('');
},
selectStoreDictLabelLocation: function(datas, value) {
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
return '';
}
var actions = [];
$.each(datas, function(index, dict) {
if (dict.storeCode == ('' + value)) {
var listClass = $.common.equals("default", dict.listClass) || $.common.isEmpty(dict.listClass) ? "" : "badge badge-" + dict.listClass;
actions.push($.common.sprintf("<span class='%s'>%s</span>", listClass, dict.storeName));
return false;
}
});
return actions.join('');
},
// 回显数据字典(字符串数组)
selectDictLabels: function(datas, value, separator) {
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {

@ -82,6 +82,7 @@
var locationinfo = [[${@dict.getType('location_info')}]];
var efficiencyDatas = [[${@baseEfficiencyLevelService.selectBaseEfficiencyLevelList(null)}]];
var storeInfoDatas = [[${@baseStoreInfoService.selectBaseStoreInfoList(null)}]];
var prefix = ctx + "system/baselocationinfo";
@ -115,7 +116,11 @@
},
{
field: 'storeCode',
title: '所属仓库'
title: '所属仓库',
formatter: function(value, row, index) {
console.log(storeInfoDatas);
return $.table.selectStoreDictLabelLocation(storeInfoDatas, value);
}
},
{
field: 'locationArea',

Loading…
Cancel
Save