...
|
...
|
@@ -20,13 +20,16 @@ var EMUN = { |
|
|
|
|
|
//筛选
|
|
|
$(document).on('click', '#filter-btn', function () {
|
|
|
g.reload(1);
|
|
|
});
|
|
|
//全部
|
|
|
$(document).on('click', '#all-btn', function () {
|
|
|
location.href = '';
|
|
|
var state = $('.state-select').find('.current').find('input').val();
|
|
|
if(state == 1){
|
|
|
sc.reload(1);
|
|
|
}else{
|
|
|
g.reload(1);
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
var pageChooseSourceIds = [];
|
|
|
var g = new common.grid({
|
|
|
el: "#basicTable",
|
...
|
...
|
@@ -121,13 +124,24 @@ var g = new common.grid({ |
|
|
});
|
|
|
g.init('/categorySource/queryCategorySourceList');
|
|
|
|
|
|
//全部
|
|
|
$(document).on('click', '#all-btn', function () {
|
|
|
var state = $('.state-select').find('.current').find('input').val();
|
|
|
$('#sourceName').val('');
|
|
|
if(state == 1){
|
|
|
sc.reload(1);
|
|
|
}else{
|
|
|
g.reload(1);
|
|
|
}
|
|
|
});
|
|
|
var pageUnChooseSourceIds = [];
|
|
|
var sc = new common.grid({
|
|
|
el: "#basicTable",
|
|
|
parms: function() {
|
|
|
return {
|
|
|
state: 1,
|
|
|
categoryId: getCategoryId()
|
|
|
sourceName: common.util.__input("sourceName"),
|
|
|
categoryId: getCategoryId()
|
|
|
}
|
|
|
},
|
|
|
columns: [
|
...
|
...
|
@@ -205,18 +219,16 @@ var sc = new common.grid({ |
|
|
$('input[name="state"]').on('change', function() {
|
|
|
$(this).parent().addClass('current').siblings().removeClass('current');
|
|
|
var state = $('.state-select').find('.current').find('input').val();
|
|
|
$('#sourceName').val('');
|
|
|
if(state == 0){
|
|
|
batchChooseSourceIds = [];
|
|
|
batchChooseSourceNames = [];
|
|
|
$("#productSearchLabelSearch").show();
|
|
|
$("#batchChoose-btn").show();
|
|
|
$("#batchUnChoose-btn").hide();
|
|
|
g.init('/categorySource/queryCategorySourceList');
|
|
|
}else if(state == 1){
|
|
|
$('#sourceName').setValue='';
|
|
|
batchUnChooseSourceIds = [];
|
|
|
batchUnChooseSourceNames = [];
|
|
|
$("#productSearchLabelSearch").hide();
|
|
|
$("#batchChoose-btn").hide();
|
|
|
$("#batchUnChoose-btn").show();
|
|
|
sc.init('/categorySource/queryCategorySourceList');
|
...
|
...
|
@@ -224,7 +236,7 @@ $('input[name="state"]').on('change', function() { |
|
|
|
|
|
});
|
|
|
|
|
|
$(document).on('click', '.batchChoose-btn', function(){
|
|
|
$(document).on('click', '#batchChoose-btn', function(){
|
|
|
if(batchChooseSourceIds.length === 0){
|
|
|
common.util.__tip("未勾选任何直通车!", 'warning');
|
|
|
return false;
|
...
|
...
|
@@ -254,7 +266,7 @@ $(document).on('click', '.batchChoose-btn', function(){ |
|
|
|
|
|
|
|
|
//批量取消选中
|
|
|
$(document).on('click', '.batchUnChoose-btn', function() {
|
|
|
$(document).on('click', '#batchUnChoose-btn', function() {
|
|
|
if(batchUnChooseSourceIds.length === 0) {
|
|
|
common.util.__tip("未勾选任何直通车!", 'warning');
|
|
|
return false;
|
...
|
...
|
|