|  | @@ -4,12 +4,13 @@ $(function () {
 | 
	
		
			
				|  |  |          datatype: "json",
 | 
	
		
			
				|  |  |          colModel: [
 | 
	
		
			
				|  |  |              {label: 'ID', name: 'id', index: 'id', hidden: true, key: true},
 | 
	
		
			
				|  |  | -            {label: '商品编码', name: 'goodsSn', index: 'goods_Sn', width: 60},
 | 
	
		
			
				|  |  | -            {label: 'SKU', name: 'sku', index: 'sku', width: 80},
 | 
	
		
			
				|  |  | -            {label: '商品类型', name: 'categoryName', index: 'category_id', width: 40},
 | 
	
		
			
				|  |  | -            {label: '名称', name: 'name', index: 'name', width: 160},
 | 
	
		
			
				|  |  | +            {label: '商户名称', name: 'merchName', index: 'merchName', width: 100, align: 'center'},
 | 
	
		
			
				|  |  | +            {label: '商品编码', name: 'goodsSn', index: 'goods_Sn', width: 60, align: 'center'},
 | 
	
		
			
				|  |  | +            {label: 'SKU', name: 'sku', index: 'sku', width: 80, align: 'center'},
 | 
	
		
			
				|  |  | +            {label: '商品类型', name: 'categoryName', index: 'category_id', width: 40, align: 'center'},
 | 
	
		
			
				|  |  | +            {label: '名称', name: 'name', index: 'name', width: 160, align: 'center'},
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  | -                label: '货品业务类型', name: 'goodsBizType', index: 'goods_biz_type', width: 70,
 | 
	
		
			
				|  |  | +                label: '货品业务类型', name: 'goodsBizType', index: 'goods_biz_type', width: 70, align: 'center',
 | 
	
		
			
				|  |  |                  formatter: function (value) {
 | 
	
		
			
				|  |  |                      if (value == '00') {
 | 
	
		
			
				|  |  |                          return '保税备货';
 | 
	
	
		
			
				|  | @@ -21,8 +22,8 @@ $(function () {
 | 
	
		
			
				|  |  |                      return '普通货物';
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  | -            {label: '零售价格', name: 'retailPrice', index: 'retail_price', width: 80},
 | 
	
		
			
				|  |  | -            {label: '市场价', name: 'marketPrice', index: 'market_price', width: 80},
 | 
	
		
			
				|  |  | +            {label: '零售价格', name: 'retailPrice', index: 'retail_price', width: 80, align: 'center'},
 | 
	
		
			
				|  |  | +            {label: '市场价', name: 'marketPrice', index: 'market_price', width: 80, align: 'center'},
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  label: '上架', name: 'isOnSale', index: 'is_on_sale', width: 40, align: 'center',
 | 
	
		
			
				|  |  |                  formatter: function (value) {
 | 
	
	
		
			
				|  | @@ -45,16 +46,16 @@ $(function () {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              },*/
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  | -                label: '录入日期', name: 'addTime', index: 'add_time', width: 80,
 | 
	
		
			
				|  |  | +                label: '录入日期', name: 'addTime', index: 'add_time', width: 80, align: 'center',
 | 
	
		
			
				|  |  |                  formatter: function (value) {
 | 
	
		
			
				|  |  |                      return transDate(value, 'yyyy-MM-dd hh:mm:ss');
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          ],
 | 
	
		
			
				|  |  |          viewrecords: true,
 | 
	
		
			
				|  |  | -        height: 675,
 | 
	
		
			
				|  |  | -        rowNum: 15,
 | 
	
		
			
				|  |  | -        rowList: [15, 30, 50],
 | 
	
		
			
				|  |  | +        height: 575,
 | 
	
		
			
				|  |  | +        rowNum: 10,
 | 
	
		
			
				|  |  | +        rowList: [10, 30, 50],
 | 
	
		
			
				|  |  |          rownumbers: true,
 | 
	
		
			
				|  |  |          rownumWidth: 25,
 | 
	
		
			
				|  |  |          autowidth: true,
 | 
	
	
		
			
				|  | @@ -122,12 +123,13 @@ var vm = new Vue({
 | 
	
		
			
				|  |  |                  {required: true, message: '名称不能为空', trigger: 'blur'}
 | 
	
		
			
				|  |  |              ]*/
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        q: {name: '', goodsSn: '', category: '', categoryTwo: ''},
 | 
	
		
			
				|  |  | +        q: {name: '', goodsSn: '', category: '', categoryTwo: '', merchSn: ''},
 | 
	
		
			
				|  |  |          attributes: [],
 | 
	
		
			
				|  |  |          attributeEntityList: [{'id': '', 'goodsId': '', 'attributeId': '', 'value': '', 'isDelete': 0}],
 | 
	
		
			
				|  |  |          productEntityList: [{'id': '', 'goodsId': '', 'goodsSpecificationIds': '', 'goodsSpecificationNameValue': '', 'goodsSn': '', 'goodsNumber': '', 'isDelete': 0, 'goodsDefault': 0}],
 | 
	
		
			
				|  |  |          queryCategories: [],//一级分类
 | 
	
		
			
				|  |  |          queryCategoriesTwo: [],
 | 
	
		
			
				|  |  | +        queryMerch: [],
 | 
	
		
			
				|  |  |          categories: [],//一级分类
 | 
	
		
			
				|  |  |          categoriesTwo: [],
 | 
	
		
			
				|  |  |          macros: [],//商品单位
 | 
	
	
		
			
				|  | @@ -176,7 +178,8 @@ var vm = new Vue({
 | 
	
		
			
				|  |  |                  name: '',
 | 
	
		
			
				|  |  |                  goodsSn: '',
 | 
	
		
			
				|  |  |                  category: '',
 | 
	
		
			
				|  |  | -                categoryTwo: ''
 | 
	
		
			
				|  |  | +                categoryTwo: '',
 | 
	
		
			
				|  |  | +                merchSn: ''
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          query: function () {
 | 
	
	
		
			
				|  | @@ -413,7 +416,8 @@ var vm = new Vue({
 | 
	
		
			
				|  |  |                      'name': vm.q.name,
 | 
	
		
			
				|  |  |                      'goodsSn': vm.q.goodsSn,
 | 
	
		
			
				|  |  |                      'category': vm.q.category,
 | 
	
		
			
				|  |  | -                    'categoryTwo': vm.q.categoryTwo
 | 
	
		
			
				|  |  | +                    'categoryTwo': vm.q.categoryTwo,
 | 
	
		
			
				|  |  | +                    'merchSn': vm.q.merchSn
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  page: page
 | 
	
		
			
				|  |  |              }).trigger("reloadGrid");
 | 
	
	
		
			
				|  | @@ -472,6 +476,7 @@ var vm = new Vue({
 | 
	
		
			
				|  |  |                  vm.queryCategoriesTwo = r.list;
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          getAttributes: function (opt) {
 | 
	
		
			
				|  |  |              var value = opt.value;
 | 
	
		
			
				|  |  |              $.get("../attribute/query?attributeCategoryId=" + value, function (r) {
 | 
	
	
		
			
				|  | @@ -616,6 +621,9 @@ var vm = new Vue({
 | 
	
		
			
				|  |  |          $.get("../category/getCategorySelect", function (r) {
 | 
	
		
			
				|  |  |              vm.queryCategories = r.list;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | +        $.get("../merch/queryAll", function (r) {
 | 
	
		
			
				|  |  | +            vm.queryMerch = r.list;
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  });
 |