|
@@ -23,21 +23,33 @@ $(function () {
|
|
|
datatype: "json",
|
|
|
colModel: [
|
|
|
{label: 'mapId', name: 'mapId', index: 'map_id', key: true, hidden: true},
|
|
|
- {label: '产品中文名', name: 'productName', index: 'product_name', width: 80},
|
|
|
- {label: '赠送方式- 1 :固定值 2:倍率', name: 'activityGiveType', index: 'activity_give_type', width: 80},
|
|
|
- {label: '赠送数值', name: 'activityGiveNum', index: 'activity_give_num', width: 80},
|
|
|
- {label: '门店编号', name: 'shopSn', index: 'shop_sn', width: 80},
|
|
|
- {label: '商品sku', name: 'sku', index: 'sku', width: 80},
|
|
|
- {label: '条形码', name: 'barcode', index: 'barcode', width: 80},
|
|
|
- {label: '商品品牌', name: 'productBrand', index: 'product_brand', width: 80},
|
|
|
- {label: '商品系列', name: 'productSeries', index: 'product_series', width: 80},
|
|
|
- {label: '营销活动编号', name: 'mkaId', index: 'mka_id', width: 80},
|
|
|
- {label: '是否与积分抵扣互斥,0:不互斥 1:互斥', name: 'rejectScore', index: 'reject_score', width: 80},
|
|
|
- {label: '截止日期', name: 'deadline', index: 'deadline', width: 80},
|
|
|
- {label: '创建时间', name: 'createTime', index: 'create_time', width: 80},
|
|
|
- {label: '创建人编号', name: 'createrSn', index: 'creater_sn', width: 80},
|
|
|
- {label: '修改人编号', name: 'moderSn', index: 'moder_sn', width: 80},
|
|
|
- {label: '修改时间', name: 'updateTime', index: 'update_time', width: 80}],
|
|
|
+ {label: '产品中文名', name: 'productName', index: 'product_name', width: 80,align: 'center'},
|
|
|
+ {label: '赠送方式', name: 'activityGiveType', index: 'activity_give_type', width: 80,align: 'center',
|
|
|
+ formatter: function (value) {
|
|
|
+ if (value == '1') {
|
|
|
+ return '固定值';
|
|
|
+ } else if (value == '2') {
|
|
|
+ return '倍率';
|
|
|
+ }
|
|
|
+ return '-';
|
|
|
+ }},
|
|
|
+ {label: '赠送数值', name: 'activityGiveNum', index: 'activity_give_num', width: 80,align: 'center'},
|
|
|
+ {label: '商品sku', name: 'sku', index: 'sku', width: 80,align: 'center'},
|
|
|
+ {label: '条形码', name: 'barcode', index: 'barcode', width: 80,align: 'center'},
|
|
|
+ {label: '商品品牌', name: 'productBrand', index: 'product_brand', width: 80,align: 'center'},
|
|
|
+ {label: '商品系列', name: 'productSeries', index: 'product_series', width: 80,align: 'center'},
|
|
|
+ // {label: '营销活动编号', name: 'mkaId', index: 'mka_id', width: 80},
|
|
|
+ {label: '是否与积分抵扣互斥', name: 'rejectScore', index: 'reject_score', width: 80,align: 'center',
|
|
|
+ formatter: function (value) {
|
|
|
+ if (value == '0') {
|
|
|
+ return '不互斥';
|
|
|
+ } else if (value == '1') {
|
|
|
+ return '互斥';
|
|
|
+ }
|
|
|
+ return '-';
|
|
|
+ }},
|
|
|
+ {label: '截止日期', name: 'deadline', index: 'deadline', width: 80,align: 'center'},
|
|
|
+ {label: '创建时间', name: 'createTime', index: 'deadline', width: 80,align: 'center'}],
|
|
|
viewrecords: true,
|
|
|
height: 550,
|
|
|
rowNum: 10,
|
|
@@ -76,14 +88,15 @@ let vm = new Vue({
|
|
|
]
|
|
|
},
|
|
|
q: {
|
|
|
- name: ''
|
|
|
+ sku: ''
|
|
|
},
|
|
|
isMkactivitiesShow: true,
|
|
|
mkCode: '',
|
|
|
uploadData:[],
|
|
|
storeId : '',
|
|
|
mkaId : '',
|
|
|
- activityGiveTypes:{}
|
|
|
+ activityGiveTypes:{},
|
|
|
+ rejectScores:{}
|
|
|
},
|
|
|
methods: {
|
|
|
query: function () {
|
|
@@ -106,6 +119,9 @@ let vm = new Vue({
|
|
|
},
|
|
|
saveOrUpdate: function (event) {
|
|
|
let url = vm.mkActivitiesPresentIntegral.mapId == null ? "../mkactivitiespresentintegral/save" : "../mkactivitiespresentintegral/update";
|
|
|
+ vm.mkActivitiesPresentIntegral.mkaId=vm.mkaId;
|
|
|
+ vm.mkActivitiesPresentIntegral.shop_sn=vm.storeId;
|
|
|
+
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
url: url,
|
|
@@ -161,7 +177,7 @@ let vm = new Vue({
|
|
|
vm.showList = true;
|
|
|
let page = $("#jqGrid").jqGrid('getGridParam', 'page');
|
|
|
$("#jqGrid").jqGrid('setGridParam', {
|
|
|
- postData: {'name': vm.q.name},
|
|
|
+ postData: {'sku': vm.q.sku,'activityGiveType':vm.q.activityGiveType},
|
|
|
page: page
|
|
|
}).trigger("reloadGrid");
|
|
|
vm.handleReset('formValidate');
|
|
@@ -183,5 +199,8 @@ let vm = new Vue({
|
|
|
$.get("../sys/macro/queryMacrosByValue?value=activityGiveType", function (r) {
|
|
|
vm.activityGiveTypes = r.list;
|
|
|
});
|
|
|
+ $.get("../sys/macro/queryMacrosByValue?value=rejectScore", function (r) {
|
|
|
+ vm.rejectScores = r.list;
|
|
|
+ });
|
|
|
}
|
|
|
});
|