...
|
...
|
@@ -16,7 +16,7 @@ new common.dropDown({ |
|
|
}
|
|
|
});
|
|
|
|
|
|
var smallSortId=tabTree.selected[2] ? tabTree.selected[2].id : "";
|
|
|
var smallSortId = tabTree.selected[2] ? tabTree.selected[2].id : "";
|
|
|
|
|
|
var g = new common.grid({
|
|
|
el: "#basicTable",
|
...
|
...
|
@@ -85,6 +85,16 @@ var getAllSortName = function(){ |
|
|
return sortNames;
|
|
|
};
|
|
|
|
|
|
var getAllSort = function(){
|
|
|
var sorts = [];
|
|
|
for (var i = 0; i < 3; i++) {
|
|
|
if(tabTree.selected[i]){
|
|
|
sorts.push(tabTree.selected[i]);
|
|
|
}
|
|
|
}
|
|
|
return sorts;
|
|
|
};
|
|
|
|
|
|
var appendAllSortName = function(allSorts){
|
|
|
if(allSorts === 'undefined' || allSorts.length === 0){
|
|
|
return '';
|
...
|
...
|
@@ -150,6 +160,11 @@ $(document).on('click', '#add-btn', function () { |
|
|
common.util.__ajax({
|
|
|
url: '/erpproduct/standardSort/add',
|
|
|
data: (function () {
|
|
|
|
|
|
if(smallSortId === 'undefined' || smallSortId <= 0 || smallSortId === null){
|
|
|
common.util.__tip("请选择分类", "warning");
|
|
|
return;
|
|
|
}
|
|
|
var standardSortName = $('#standardSortName').val();
|
|
|
if (standardSortName === '' || $.trim(standardSortName) === '')
|
|
|
{
|
...
|
...
|
|