|  | @@ -25,7 +25,15 @@ $(function () {
 | 
	
		
			
				|  |  |              //         }
 | 
	
		
			
				|  |  |              //         return '';
 | 
	
		
			
				|  |  |              //     }},
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            {label: '商户地图是否显示', name: 'isMapShow', index: 'isMapShow', width: 80, align: 'center',
 | 
	
		
			
				|  |  | +                formatter: function (value) {
 | 
	
		
			
				|  |  | +                    if (value == '0') {
 | 
	
		
			
				|  |  | +                        return '否';
 | 
	
		
			
				|  |  | +                    } else if (value == '1') {
 | 
	
		
			
				|  |  | +                        return '是';
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    return '';
 | 
	
		
			
				|  |  | +                }},
 | 
	
		
			
				|  |  |  			{label: '是否有效', name: 'isValid', index: 'is_valid', width: 80, align: 'center',
 | 
	
		
			
				|  |  |                  formatter: function (value) {
 | 
	
		
			
				|  |  |                      if (value == '0') {
 | 
	
	
		
			
				|  | @@ -74,7 +82,7 @@ let vm = new Vue({
 | 
	
		
			
				|  |  |  	data: {
 | 
	
		
			
				|  |  |          showList: true,
 | 
	
		
			
				|  |  |          title: null,
 | 
	
		
			
				|  |  | -		thirdMerchantBiz: {isValid: '', isStockShare:'',isStoreUserShare:''},
 | 
	
		
			
				|  |  | +		thirdMerchantBiz: {isValid: '', isStockShare:'',isStoreUserShare:'',isMapShow:''},
 | 
	
		
			
				|  |  |  		ruleValidate: {
 | 
	
		
			
				|  |  |  			name: [
 | 
	
		
			
				|  |  |  				{required: true, message: '名称不能为空', trigger: 'blur'}
 | 
	
	
		
			
				|  | @@ -94,7 +102,7 @@ let vm = new Vue({
 | 
	
		
			
				|  |  |  			vm.showList = false;
 | 
	
		
			
				|  |  |  			vm.title = "新增";
 | 
	
		
			
				|  |  |              vm.getMerchList();
 | 
	
		
			
				|  |  | -			vm.thirdMerchantBiz = {isValid: 0,isStockShare:0,isStoreUserShare:0};
 | 
	
		
			
				|  |  | +			vm.thirdMerchantBiz = {isValid: 0,isStockShare:0,isStoreUserShare:0,isMapShow:0};
 | 
	
		
			
				|  |  |  			vm.isOperate = true;
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		update: function (event) {
 | 
	
	
		
			
				|  | @@ -111,7 +119,25 @@ let vm = new Vue({
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		saveOrUpdate: function (event) {
 | 
	
		
			
				|  |  |              let url = vm.thirdMerchantBiz.thirdMerchSn == null ? "../thirdmerchantbiz/save" : "../thirdmerchantbiz/update";
 | 
	
		
			
				|  |  | -            confirm('库存是否共享添加成功后则不可修改!确定添加?', function () {
 | 
	
		
			
				|  |  | +            if(vm.isOperate){
 | 
	
		
			
				|  |  | +                confirm('库存是否共享,商户地图是否显示字段添加成功后则不可修改!请确认后添加?', function () {
 | 
	
		
			
				|  |  | +                    $.ajax({
 | 
	
		
			
				|  |  | +                        type: "POST",
 | 
	
		
			
				|  |  | +                        url: url,
 | 
	
		
			
				|  |  | +                        contentType: "application/json",
 | 
	
		
			
				|  |  | +                        data: JSON.stringify(vm.thirdMerchantBiz),
 | 
	
		
			
				|  |  | +                        success: function (r) {
 | 
	
		
			
				|  |  | +                            if (r.code === 0) {
 | 
	
		
			
				|  |  | +                                alert('操作成功', function (index) {
 | 
	
		
			
				|  |  | +                                    vm.reload();
 | 
	
		
			
				|  |  | +                                });
 | 
	
		
			
				|  |  | +                            } else {
 | 
	
		
			
				|  |  | +                                alert(r.msg);
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +            }else{
 | 
	
		
			
				|  |  |                  $.ajax({
 | 
	
		
			
				|  |  |                      type: "POST",
 | 
	
		
			
				|  |  |                      url: url,
 | 
	
	
		
			
				|  | @@ -127,7 +153,7 @@ let vm = new Vue({
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  | -            })
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		del: function (event) {
 | 
	
		
			
				|  |  |              let thirdMerchSns = getSelectedRows();
 |