|
@@ -4,13 +4,13 @@ $(function () {
|
|
|
datatype: "json",
|
|
|
colModel: [
|
|
|
{label: 'id', name: 'id', index: 'id', key: true, hidden: true},
|
|
|
- {label: '分销渠道名称', name: 'distFlag', index: 'dist_flag', width: 80, align: 'center'},
|
|
|
- {label: '所属三方商户', name: 'thirdPartyMerchName', index: 'thirdPartyMerchName', width: 70, align: 'center'},
|
|
|
- {label: '所属供应商', name: 'childSupplierName', index: 'childSupplierName', width: 70, align: 'center'},
|
|
|
- {label: '商品', name: 'goodsName', index: 'goodsName', width: 80, align: 'center'},
|
|
|
- {label: '商品所属分销商', name: 'goodsDistName', index: 'distName', width: 70, align: 'center'},
|
|
|
- {label: '商品价格', name: 'goodsPrice', index: 'goods_price', width: 50, align: 'center'},
|
|
|
- {label: '分配方式', name: 'allocType', index: 'alloc_type', width: 50, align: 'center',
|
|
|
+ {label: '分销渠道名称', name: 'distFlag', index: 'dist_flag', width: 180},
|
|
|
+ {label: '所属三方商户', name: 'thirdPartyMerchName', index: 'thirdPartyMerchName', width: 170, align: 'center'},
|
|
|
+ {label: '所属供应商', name: 'childSupplierName', index: 'childSupplierName', width: 170, align: 'center'},
|
|
|
+ {label: '商品', name: 'goodsName', index: 'goodsName', width: 180, align: 'center'},
|
|
|
+ {label: '商品所属分销商', name: 'goodsDistName', index: 'distName', width: 170, align: 'center'},
|
|
|
+ {label: '商品价格', name: 'goodsPrice', index: 'goods_price', width: 150, align: 'right'},
|
|
|
+ {label: '分配方式', name: 'allocType', index: 'alloc_type', width: 80, align: 'center',
|
|
|
formatter: function (value) {
|
|
|
if (value == '00') {
|
|
|
return '比例';
|
|
@@ -19,11 +19,11 @@ $(function () {
|
|
|
}
|
|
|
return '';
|
|
|
}},
|
|
|
- {label: '子级分销商id规则', name: 'expendDistIds', index: 'expendDistIds', width: 80, align: 'center'},
|
|
|
- {label: '子级分销额度分配规则', name: 'expendDistLines', index: 'expendDistLines', width: 80, align: 'center'},
|
|
|
- {label: '子级分销商', name: 'expendDistName', index: 'expend_dist_id', width: 80, align: 'center'},
|
|
|
- {label: '子级分销商额度【点数/金额】', name: 'expendDistPrice', index: 'expend_dist_price', width: 100, align: 'center'},
|
|
|
- {label: '子级分销商等级', name: 'expendDistLevel', index: 'expend_dist_level', width: 70, align: 'center',
|
|
|
+ {label: '子级分销商id规则', name: 'expendDistIds', index: 'expendDistIds', width: 180},
|
|
|
+ {label: '子级分销额度分配规则', name: 'expendDistLines', index: 'expendDistLines', width: 180},
|
|
|
+ {label: '子级分销商', name: 'expendDistName', index: 'expend_dist_id', width: 180},
|
|
|
+ {label: '子级分销商额度【点数/金额】', name: 'expendDistPrice', index: 'expend_dist_price', width: 220},
|
|
|
+ {label: '子级分销商等级', name: 'expendDistLevel', index: 'expend_dist_level', width: 120, align: 'center',
|
|
|
formatter: function (value) {
|
|
|
if (value == '1') {
|
|
|
return '一级';
|
|
@@ -34,10 +34,10 @@ $(function () {
|
|
|
}
|
|
|
return '';
|
|
|
}},
|
|
|
- {label: '订单编号', name: 'orderSn', index: 'orderSn', width: 100, align: 'center'},
|
|
|
+ {label: '订单编号', name: 'orderSn', index: 'orderSn', width: 180},
|
|
|
// {label: '订单用户', name: 'userName', index: 'userName', width: 70},
|
|
|
// {label: '来源', name: 'expendSource', index: 'expend_source', width: 80},
|
|
|
- {label: '是否有效', name: 'isValid', index: 'is_valid', width: 60, align: 'center',
|
|
|
+ {label: '是否有效', name: 'isValid', index: 'is_valid', width: 80, align: 'center',
|
|
|
formatter: function (value) {
|
|
|
if (value == '0') {
|
|
|
return '有效';
|
|
@@ -47,11 +47,11 @@ $(function () {
|
|
|
return '';
|
|
|
}},
|
|
|
// {label: '备注', name: 'note', index: 'note', width: 60},
|
|
|
- {label: '创建时间', name: 'createTime', index: 'create_time', width: 110, align: 'center',
|
|
|
+ {label: '创建时间', name: 'createTime', index: 'create_time', width: 160, align: 'center',
|
|
|
formatter: function (value) {
|
|
|
return transDate(value, 'yyyy-MM-dd hh:mm:ss');
|
|
|
}},
|
|
|
- {label: '修改时间', name: 'modTime', index: 'mod_time', width: 110, align: 'center',
|
|
|
+ {label: '修改时间', name: 'modTime', index: 'mod_time', width: 160, align: 'center',
|
|
|
formatter: function (value) {
|
|
|
return transDate(value, 'yyyy-MM-dd hh:mm:ss');
|
|
|
}}],
|
|
@@ -62,6 +62,9 @@ $(function () {
|
|
|
rownumbers: true,
|
|
|
rownumWidth: 25,
|
|
|
autowidth: true,
|
|
|
+ shrinkToFit: false,
|
|
|
+ autoScroll: true, //开启水平滚动条
|
|
|
+ width: 1500,
|
|
|
multiselect: true,
|
|
|
pager: "#jqGridPager",
|
|
|
jsonReader: {
|
|
@@ -76,7 +79,7 @@ $(function () {
|
|
|
order: "order"
|
|
|
},
|
|
|
gridComplete: function () {
|
|
|
- $("#jqGrid").closest(".ui-jqgrid-bdiv").css({"overflow-x": "hidden"});
|
|
|
+ $("#jqGrid").closest(".ui-jqgrid-bdiv").css({"overflow-x": "scroll"});
|
|
|
}
|
|
|
});
|
|
|
});
|