|
@@ -10,7 +10,6 @@ $(function () {
|
|
}
|
|
}
|
|
|
|
|
|
let storeId = getQueryString("storeId");
|
|
let storeId = getQueryString("storeId");
|
|
- console.log(storeId);
|
|
|
|
if(storeId){
|
|
if(storeId){
|
|
vm.storeId = storeId;
|
|
vm.storeId = storeId;
|
|
}
|
|
}
|
|
@@ -24,16 +23,14 @@ $(function () {
|
|
datatype: "json",
|
|
datatype: "json",
|
|
colModel: [
|
|
colModel: [
|
|
{label: 'mafrId', name: 'mafrId', index: 'mafr_id', key: true, hidden: true},
|
|
{label: 'mafrId', name: 'mafrId', index: 'mafr_id', key: true, hidden: true},
|
|
- {label: '产品中文名', name: 'productName', index: 'product_name', width: 80},
|
|
|
|
- {label: '门店编号', name: 'shopSn', index: 'shop_sn', width: 80},
|
|
|
|
- {label: '商品编码', name: 'goodsSn', index: 'goods_sn', 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: 'qualifiedAmount', index: 'qualified_amount', width: 80},
|
|
|
|
- {label: '赠品条码', name: 'giftBarcode', index: 'gift_barcode', width: 80},
|
|
|
|
- {label: '营销活动编号', name: 'mkaId', index: 'mka_id', width: 80},
|
|
|
|
- {label: '截止日期', name: 'deadline', index: 'deadline', width: 80}],
|
|
|
|
|
|
+ {label: '产品中文名', name: 'productName', index: 'product_name', width: 80, align: 'center'},
|
|
|
|
+ {label: '商品编码', name: 'goodsSn', index: 'goods_sn', 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: 'qualifiedAmount', index: 'qualified_amount', width: 80, align: 'center'},
|
|
|
|
+ {label: '赠品条码', name: 'giftBarcode', index: 'gift_barcode', width: 80, align: 'center'},
|
|
|
|
+ {label: '截止日期', name: 'deadline', index: 'deadline', width: 80, align: 'center'}],
|
|
viewrecords: true,
|
|
viewrecords: true,
|
|
postData: {'mkaId': vm.mkaId},
|
|
postData: {'mkaId': vm.mkaId},
|
|
height: 550,
|
|
height: 550,
|
|
@@ -102,7 +99,12 @@ let vm = new Vue({
|
|
},
|
|
},
|
|
saveOrUpdate: function (event) {
|
|
saveOrUpdate: function (event) {
|
|
let url = vm.mkActivitiesFullGift.mafrId == null ? "../mkactivitiesfullgift/save" : "../mkactivitiesfullgift/update";
|
|
let url = vm.mkActivitiesFullGift.mafrId == null ? "../mkactivitiesfullgift/save" : "../mkactivitiesfullgift/update";
|
|
- $.ajax({
|
|
|
|
|
|
+
|
|
|
|
+ //添加上层的门店编号与营销方式编号
|
|
|
|
+ vm.mkActivitiesFullGift.shopSn = vm.storeId;
|
|
|
|
+ vm.mkActivitiesFullGift.mkaId = vm.mkaId;
|
|
|
|
+
|
|
|
|
+ $.ajax({
|
|
type: "POST",
|
|
type: "POST",
|
|
url: url,
|
|
url: url,
|
|
contentType: "application/json",
|
|
contentType: "application/json",
|